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;
|
||||
|
||||
(function(scope, Util, DOM, CloudFunc, join) {
|
||||
(function(scope, Util, DOM, CloudFunc) {
|
||||
'use strict';
|
||||
|
||||
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';
|
||||
|
||||
var DIR = __dirname + '/../../',
|
||||
DIR_HTML = DIR + 'tmpl/',
|
||||
DIR_TMPL = DIR + 'tmpl/',
|
||||
DIR_HTML = DIR + 'html/',
|
||||
DIR_LIB = DIR + 'lib/',
|
||||
DIR_SERVER = __dirname + '/',
|
||||
DIR_FS = DIR_HTML + 'fs/',
|
||||
DIR_FS = DIR_TMPL + 'fs/',
|
||||
|
||||
fs = require('fs'),
|
||||
|
||||
|
|
@ -23,7 +24,7 @@
|
|||
|
||||
CloudFunc = require(DIR_LIB + 'cloudfunc'),
|
||||
|
||||
PATH_INDEX = DIR_FS + 'index.hbs',
|
||||
PATH_INDEX = DIR_HTML + 'index.html',
|
||||
|
||||
TMPL_PATH = [
|
||||
'file',
|
||||
|
|
@ -144,7 +145,7 @@
|
|||
response : response,
|
||||
gzip : true,
|
||||
name : name,
|
||||
mime : 'text/html'
|
||||
//mime : 'text/html'
|
||||
};
|
||||
|
||||
if (!isAuth && !isFS)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue