moved jsons to json folder

This commit is contained in:
coderaiser 2013-01-23 07:25:36 -05:00
parent 17e8df88ce
commit 4a65240fa2
7 changed files with 18 additions and 10 deletions

View file

@ -99,6 +99,8 @@ clicked on menu item.
* Removed getting data from Minify cache.
* Moved jsons to json folder.
2012.12.12, Version 0.1.8

View file

@ -3,7 +3,7 @@
"appcache" : false,
"cache" : {"allowed" : false},
"minification" : {
"js" : false,
"js" : true,
"css" : true,
"html" : true,
"img" : true

View file

@ -4,7 +4,7 @@
*/
var Util, DOM, CloudFunc, $, KeyBinding, CloudCommander = (function(){
"use strict";
'use strict';
var Config, Modules;
@ -388,7 +388,7 @@ function baseInit(pCallBack){
CloudCmd.getConfig = function(pCallBack){
Util.ifExec(Config, pCallBack, function(pCallBack){
DOM.ajax({
url:'/config.json',
url:'/json/config.json',
success: function(pConfig){
Config = pConfig;
Util.exec(pCallBack, pConfig);
@ -400,7 +400,7 @@ CloudCmd.getConfig = function(pCallBack){
CloudCmd.getModules = function(pCallBack){
Util.ifExec(Modules, pCallBack, function(pCallBack){
DOM.ajax({
url:'/modules.json',
url:'/json/modules.json',
success: Util.retExec(pCallBack)
});
});

View file

@ -68,8 +68,9 @@
LIBDIR = main.LIBDIR,
SRVDIR = main.SRVDIR,
/* модуль для работы с путями*/
/* модуль для работы с путями*/
Path = main.path,
crypto = main.crypto,
Fs = main.fs, /* модуль для работы с файловой системой*/
Querystring = main.querystring,
@ -391,9 +392,14 @@
* меняем название html-файла и
* загружаем сжатый html-файл в дальнейшем
*/
var lMinFileName = CloudServer.Minify.MinFolder +
crypto.createHash('sha1')
.update(main.DIR + 'html/index.html')
.digest('hex') + '.html';
CloudServer.INDEX = (CloudServer.Minify._allowed.html ?
CloudServer.Minify.MinFolder + 'index.min.html'
: CloudServer.INDEX);
lMinFileName : CloudServer.INDEX);
/*
* сохраним указатель на response

View file

@ -71,7 +71,7 @@
});
}
isFileChanged(DIR + 'favicon.ico', true, function(pData){
isFileChanged(DIR + 'manifest.yml', true, function(pData){
console.log(pData)
});
})();

View file

@ -1,5 +1,5 @@
(function(){
"strict mode";
'strict mode';
/* Global var accessible from any loaded module */
global.cloudcmd = {};
@ -68,7 +68,7 @@
exports.zlib = zlib = mrequire('zlib'),
/* Main Information */
exports.config = rootrequire('config');
exports.config = rootrequire('json/config');
exports.mainpackage = rootrequire('package');