mirror of
https://github.com/thelounge/thelounge
synced 2024-11-26 14:00:21 +00:00
Minor changes
This commit is contained in:
parent
4b2db31be2
commit
a904de5d7a
6 changed files with 33 additions and 23 deletions
|
@ -324,7 +324,7 @@ button {
|
|||
}
|
||||
#chat {
|
||||
bottom: 0;
|
||||
font: 12px Consolas, Menlo, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono, Courier New, monospace;
|
||||
font: 13px Consolas, Menlo, Monaco, "Lucida Console", "Liberation Mono", "DejaVu Sans Mono", "Courier New", monospace;
|
||||
left: 0;
|
||||
position: absolute;
|
||||
right: 0;
|
||||
|
@ -395,15 +395,16 @@ button {
|
|||
display: none;
|
||||
}
|
||||
#chat .show-more {
|
||||
background: #fff;
|
||||
border-bottom: 1px solid #e7e7e7;
|
||||
color: #b1c3ce;
|
||||
height: 48px;
|
||||
line-height: 50px;
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
border-bottom: 1px solid #e7e7e7;
|
||||
height: 41px;
|
||||
background: #fff;
|
||||
}
|
||||
#chat .show-more + .messages .msg:first-child span {
|
||||
padding-top: 46px;
|
||||
padding-top: 54px;
|
||||
}
|
||||
#chat .messages {
|
||||
display: table;
|
||||
|
@ -432,7 +433,7 @@ button {
|
|||
#chat .from,
|
||||
#chat .text {
|
||||
display: table-cell;
|
||||
padding: 4px 0;
|
||||
padding: 3px 0;
|
||||
vertical-align: top;
|
||||
}
|
||||
#chat .time {
|
||||
|
@ -538,7 +539,7 @@ button {
|
|||
}
|
||||
#chat .names button {
|
||||
display: block;
|
||||
line-height: 1.8em;
|
||||
line-height: 1.6;
|
||||
}
|
||||
#sign-in label {
|
||||
display: block;
|
||||
|
|
|
@ -224,7 +224,9 @@
|
|||
<span class="text">
|
||||
<em class="type">{{type}}</em>
|
||||
{{#equal type "image"}}
|
||||
<a href="{{text}}" target="_blank">
|
||||
<img src="{{text}}" class="image">
|
||||
</a>
|
||||
{{else}}
|
||||
{{{uri text}}}
|
||||
{{/equal}}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"port": 9000,
|
||||
"theme": "themes/example.css",
|
||||
"public": true
|
||||
"public": false
|
||||
}
|
||||
|
|
|
@ -76,7 +76,8 @@ ClientManager.prototype.addUser = function(name, password) {
|
|||
fs.mkdirSync(path);
|
||||
fs.writeFileSync(
|
||||
path + "/user.json",
|
||||
JSON.stringify(user, null, " ")
|
||||
JSON.stringify(user, null, " "),
|
||||
{mode: "0777"}
|
||||
);
|
||||
} catch(e) {
|
||||
throw e;
|
||||
|
|
|
@ -45,12 +45,20 @@ function fetchImage(url, callback) {
|
|||
mkdirp(path, function(e) {
|
||||
if (e) {
|
||||
console.log(e);
|
||||
return;
|
||||
}
|
||||
var stream = fs.createWriteStream(path + "/" + name);
|
||||
var stream = fs.createWriteStream(
|
||||
path + "/" + name,
|
||||
{mode: "0777"}
|
||||
);
|
||||
var req = request.get(url);
|
||||
req.pipe(stream);
|
||||
req.on("end", function() {
|
||||
req.on("error", function(e) {
|
||||
console.log(e);
|
||||
});
|
||||
req.on("end", function(e, res) {
|
||||
callback(name);
|
||||
});
|
||||
|
||||
});
|
||||
}
|
||||
|
|
|
@ -1,13 +1,11 @@
|
|||
{
|
||||
"user": "example",
|
||||
"password": "password",
|
||||
"networks": [
|
||||
{
|
||||
"networks": [{
|
||||
"host": "irc.rizon.net",
|
||||
"port": 6667,
|
||||
"nick": "example",
|
||||
"realname": "Example User",
|
||||
"join": "#foo, #bar"
|
||||
}
|
||||
]
|
||||
}]
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue