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 {
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;
}
}

View File

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

View File

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

View File

@ -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;

View File

@ -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);
});
});
}

View File

@ -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"
}]
}