From 5661c131fbfde97a79b39115ac7c83fc1d872564 Mon Sep 17 00:00:00 2001 From: coderaiser Date: Tue, 11 Sep 2012 07:34:12 -0400 Subject: [PATCH] fixed unneeded properties --- config.json | 2 +- css/reset.css | 5 ++++- css/style.css | 2 -- server.js | 18 ++++++++++++------ 4 files changed, 17 insertions(+), 10 deletions(-) diff --git a/config.json b/config.json index 325b96e5..d58f0b2d 100644 --- a/config.json +++ b/config.json @@ -2,7 +2,7 @@ "cache" : {"allowed" : false}, "minification" : { "js" : false, - "css" : false, + "css" : true, "html" : true, "img" : true }, diff --git a/css/reset.css b/css/reset.css index ec9c9b7b..b2bb5aab 100644 --- a/css/reset.css +++ b/css/reset.css @@ -37,7 +37,10 @@ a:hover, a:active { outline: 0; } /* changed ul to panel, it using only in this case for now, and will css * processing cost 33% with name of tag, so it should be match faster */ -.panel{ margin: 1em 0; padding: 0 20px 0 20px; } +.panel{ + /* removed default margins */ + margin: 0 0 0 0; + padding: 0 20px 0 20px; } /* * 1. Display hand cursor for clickable form elements diff --git a/css/style.css b/css/style.css index a90d8af6..1abf9091 100644 --- a/css/style.css +++ b/css/style.css @@ -177,8 +177,6 @@ background:url(/img/panel_refresh.png) 0 -15px no-repeat; } .panel{ border: 1.5px solid rgba(49, 123, 249, .40); - /* remove default margins */ - margin: 0 0 0 0; overflow-y: auto; width:46%; } diff --git a/server.js b/server.js index bc462d0d..7a4ed27a 100644 --- a/server.js +++ b/server.js @@ -99,14 +99,17 @@ try { /* добавляем модуль с функциями */ var CloudFunc; try { - CloudFunc = require(CloudServer.LIBDIR + - '/cloudfunc'); + CloudFunc = require(CloudServer.LIBDIR + + '/cloudfunc'); - CloudServer.Cache = require(CloudServer.LIBDIRSERVER + - '/object').Cache; + CloudServer.Cache = require(CloudServer.LIBDIRSERVER + + '/object').Cache; - CloudServer.Minify = require(CloudServer.LIBDIRSERVER + - '/object').Minify; + CloudServer.Minify = require(CloudServer.LIBDIRSERVER + + '/object').Minify; + + CloudServer.AppCache = require(CloudServer.LIBDIRSERVER + + '/appcache'); }catch(pError){ console.log('could not found one of Cloud Commander SS files'); console.log(pError); @@ -334,6 +337,9 @@ CloudServer._controller = function(pReq, pRes) var lName = '.' + pathname; console.log('reading '+lName); + /* watching is file changed */ + CloudServer.AppCache.watch(lName); + /* сохраняем указатель на response и имя */ CloudServer.Responses[lName] = pRes;