mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 02:35:49 +00:00
moved jsons to json folder
This commit is contained in:
parent
17e8df88ce
commit
4a65240fa2
7 changed files with 18 additions and 10 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
"appcache" : false,
|
||||
"cache" : {"allowed" : false},
|
||||
"minification" : {
|
||||
"js" : false,
|
||||
"js" : true,
|
||||
"css" : true,
|
||||
"html" : true,
|
||||
"img" : true
|
||||
|
|
@ -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)
|
||||
});
|
||||
});
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -71,7 +71,7 @@
|
|||
});
|
||||
}
|
||||
|
||||
isFileChanged(DIR + 'favicon.ico', true, function(pData){
|
||||
isFileChanged(DIR + 'manifest.yml', true, function(pData){
|
||||
console.log(pData)
|
||||
});
|
||||
})();
|
||||
|
|
@ -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');
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue