Minor changes

This commit is contained in:
Mattias Erming 2014-08-18 16:54:14 -07:00
parent 4b2db31be2
commit a904de5d7a
6 changed files with 33 additions and 23 deletions

View File

@ -324,7 +324,7 @@ button {
} }
#chat { #chat {
bottom: 0; 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; left: 0;
position: absolute; position: absolute;
right: 0; right: 0;
@ -395,15 +395,16 @@ button {
display: none; display: none;
} }
#chat .show-more { #chat .show-more {
background: #fff;
border-bottom: 1px solid #e7e7e7;
color: #b1c3ce; color: #b1c3ce;
height: 48px;
line-height: 50px;
position: absolute; position: absolute;
width: 100%; width: 100%;
border-bottom: 1px solid #e7e7e7;
height: 41px;
background: #fff;
} }
#chat .show-more + .messages .msg:first-child span { #chat .show-more + .messages .msg:first-child span {
padding-top: 46px; padding-top: 54px;
} }
#chat .messages { #chat .messages {
display: table; display: table;
@ -432,7 +433,7 @@ button {
#chat .from, #chat .from,
#chat .text { #chat .text {
display: table-cell; display: table-cell;
padding: 4px 0; padding: 3px 0;
vertical-align: top; vertical-align: top;
} }
#chat .time { #chat .time {
@ -538,7 +539,7 @@ button {
} }
#chat .names button { #chat .names button {
display: block; display: block;
line-height: 1.8em; line-height: 1.6;
} }
#sign-in label { #sign-in label {
display: block; display: block;
@ -671,9 +672,9 @@ button {
right: -180px; right: -180px;
transition: all .4s; transition: all .4s;
-webkit-transform: translateZ(0); -webkit-transform: translateZ(0);
transform: translateZ(0); transform: translateZ(0);
-webkit-perspective: 1000; -webkit-perspective: 1000;
perspective: 1000; perspective: 1000;
} }
} }

View File

@ -224,7 +224,9 @@
<span class="text"> <span class="text">
<em class="type">{{type}}</em> <em class="type">{{type}}</em>
{{#equal type "image"}} {{#equal type "image"}}
<img src="{{text}}" class="image"> <a href="{{text}}" target="_blank">
<img src="{{text}}" class="image">
</a>
{{else}} {{else}}
{{{uri text}}} {{{uri text}}}
{{/equal}} {{/equal}}

View File

@ -1,5 +1,5 @@
{ {
"port": 9000, "port": 9000,
"theme": "themes/example.css", "theme": "themes/example.css",
"public": true "public": false
} }

View File

@ -76,7 +76,8 @@ ClientManager.prototype.addUser = function(name, password) {
fs.mkdirSync(path); fs.mkdirSync(path);
fs.writeFileSync( fs.writeFileSync(
path + "/user.json", path + "/user.json",
JSON.stringify(user, null, " ") JSON.stringify(user, null, " "),
{mode: "0777"}
); );
} catch(e) { } catch(e) {
throw e; throw e;

View File

@ -45,12 +45,20 @@ function fetchImage(url, callback) {
mkdirp(path, function(e) { mkdirp(path, function(e) {
if (e) { if (e) {
console.log(e); console.log(e);
return;
} }
var stream = fs.createWriteStream(path + "/" + name); var stream = fs.createWriteStream(
path + "/" + name,
{mode: "0777"}
);
var req = request.get(url); var req = request.get(url);
req.pipe(stream); req.pipe(stream);
req.on("end", function() { req.on("error", function(e) {
console.log(e);
});
req.on("end", function(e, res) {
callback(name); callback(name);
}); });
}); });
} }

View File

@ -1,13 +1,11 @@
{ {
"user": "example", "user": "example",
"password": "password", "password": "password",
"networks": [ "networks": [{
{ "host": "irc.rizon.net",
"host": "irc.rizon.net", "port": 6667,
"port": 6667, "nick": "example",
"nick": "example", "realname": "Example User",
"realname": "Example User", "join": "#foo, #bar"
"join": "#foo, #bar" }]
}
]
} }