mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 02:35:49 +00:00
feature(tmpl) mv index, auth to html
This commit is contained in:
parent
81a958c31a
commit
ae75d3449f
6 changed files with 7 additions and 6 deletions
|
|
@ -1,6 +1,6 @@
|
||||||
var Util, DOM, CloudFunc, join;
|
var Util, DOM, CloudFunc, join;
|
||||||
|
|
||||||
(function(scope, Util, DOM, CloudFunc, join) {
|
(function(scope, Util, DOM, CloudFunc) {
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
scope.CloudCmd = new CloudCmdProto(Util, DOM, CloudFunc);
|
scope.CloudCmd = new CloudCmdProto(Util, DOM, CloudFunc);
|
||||||
|
|
@ -515,4 +515,4 @@ var Util, DOM, CloudFunc, join;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
})(this, Util, DOM, CloudFunc, join);
|
})(this, Util, DOM, CloudFunc);
|
||||||
|
|
|
||||||
|
|
@ -2,10 +2,11 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
var DIR = __dirname + '/../../',
|
var DIR = __dirname + '/../../',
|
||||||
DIR_HTML = DIR + 'tmpl/',
|
DIR_TMPL = DIR + 'tmpl/',
|
||||||
|
DIR_HTML = DIR + 'html/',
|
||||||
DIR_LIB = DIR + 'lib/',
|
DIR_LIB = DIR + 'lib/',
|
||||||
DIR_SERVER = __dirname + '/',
|
DIR_SERVER = __dirname + '/',
|
||||||
DIR_FS = DIR_HTML + 'fs/',
|
DIR_FS = DIR_TMPL + 'fs/',
|
||||||
|
|
||||||
fs = require('fs'),
|
fs = require('fs'),
|
||||||
|
|
||||||
|
|
@ -23,7 +24,7 @@
|
||||||
|
|
||||||
CloudFunc = require(DIR_LIB + 'cloudfunc'),
|
CloudFunc = require(DIR_LIB + 'cloudfunc'),
|
||||||
|
|
||||||
PATH_INDEX = DIR_FS + 'index.hbs',
|
PATH_INDEX = DIR_HTML + 'index.html',
|
||||||
|
|
||||||
TMPL_PATH = [
|
TMPL_PATH = [
|
||||||
'file',
|
'file',
|
||||||
|
|
@ -144,7 +145,7 @@
|
||||||
response : response,
|
response : response,
|
||||||
gzip : true,
|
gzip : true,
|
||||||
name : name,
|
name : name,
|
||||||
mime : 'text/html'
|
//mime : 'text/html'
|
||||||
};
|
};
|
||||||
|
|
||||||
if (!isAuth && !isFS)
|
if (!isAuth && !isFS)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue