diff --git a/client/css/style.css b/client/css/style.css index 42baed2f..57a9f7ab 100644 --- a/client/css/style.css +++ b/client/css/style.css @@ -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; @@ -671,9 +672,9 @@ button { right: -180px; transition: all .4s; -webkit-transform: translateZ(0); - transform: translateZ(0); + transform: translateZ(0); -webkit-perspective: 1000; - perspective: 1000; + perspective: 1000; } } diff --git a/client/index.html b/client/index.html index fe0fe835..452058ae 100644 --- a/client/index.html +++ b/client/index.html @@ -224,7 +224,9 @@ {{type}} {{#equal type "image"}} - + + + {{else}} {{{uri text}}} {{/equal}} diff --git a/config.json b/config.json index 60e4b9a1..597f545d 100644 --- a/config.json +++ b/config.json @@ -1,5 +1,5 @@ { "port": 9000, "theme": "themes/example.css", - "public": true + "public": false } diff --git a/src/clientManager.js b/src/clientManager.js index f28537e8..b1626e2c 100644 --- a/src/clientManager.js +++ b/src/clientManager.js @@ -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; diff --git a/src/plugins/irc-events/image.js b/src/plugins/irc-events/image.js index eb4676a4..3aaa6c3d 100644 --- a/src/plugins/irc-events/image.js +++ b/src/plugins/irc-events/image.js @@ -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); }); + }); } diff --git a/users/example/user.json b/users/example/user.json index 20d94cd3..2c9b569b 100644 --- a/users/example/user.json +++ b/users/example/user.json @@ -1,13 +1,11 @@ { "user": "example", "password": "password", - "networks": [ - { - "host": "irc.rizon.net", - "port": 6667, - "nick": "example", - "realname": "Example User", - "join": "#foo, #bar" - } - ] + "networks": [{ + "host": "irc.rizon.net", + "port": 6667, + "nick": "example", + "realname": "Example User", + "join": "#foo, #bar" + }] }