feature(html) path-link -> pathLink

This commit is contained in:
coderaiser 2014-05-27 06:49:10 -04:00
parent 60cc3466f7
commit 0415a304f6
3 changed files with 16 additions and 15 deletions

View file

@ -22,27 +22,27 @@
CONFIG_PATH = JSONDIR + 'config.json',
KEY = DIR + 'ssl/ssl.key',
KEY = DIR + 'ssl/ssl.key',
CERT = DIR + 'ssl/ssl.crt',
HTML_FS_DIR = HTMLDIR + 'fs/',
PATH_INDEX =HTML_FS_DIR + 'index.html',
PATH_INDEX = HTML_FS_DIR + 'index.html',
TMPL_PATH = {
file : HTML_FS_DIR + 'file.html',
panel : HTML_FS_DIR + 'panel.html',
path : HTML_FS_DIR + 'path.html',
pathLink : HTML_FS_DIR + 'path-link.html',
link : HTML_FS_DIR + 'link.html',
},
TMPL_PATH = [
'file',
'panel',
'path',
'pathLink',
'link',
],
Template = {},
FS = CloudFunc.FS;
/* reinit main dir os if we on Win32 should be backslashes */
DIR = main.DIR;
readConfig(init);
@ -145,9 +145,8 @@
function readFiles(params, callback) {
var filesList, paths = {};
filesList = Object.keys(TMPL_PATH)
.map(function(name) {
var path = TMPL_PATH[name];
filesList = TMPL_PATH.map(function(name) {
var path = HTML_FS_DIR + name + '.html';
paths[path] = name;
@ -178,7 +177,9 @@
cert : files[CERT]
};
names = filesList.map(path.basename);
names = TMPL_PATH.map(function(item) {
return item + '.html';
});
msg = CloudFunc.formatMsg('read', names, status);
Util.log(msg);

View file

@ -323,7 +323,7 @@ var Util, DOM, CloudFunc;
this.getExt = getSystemFile(Extensions, DIR_JSON + 'ext.json');
this.getFileTemplate = getSystemFile(FileTemplate, DIR_HTML_FS + 'file.html');
this.getPathTemplate = getSystemFile(PathTemplate, DIR_HTML_FS + 'path.html');
this.getPathLinkTemplate = getSystemFile(PathTemplate, DIR_HTML_FS + 'path-link.html');
this.getPathLinkTemplate = getSystemFile(PathTemplate, DIR_HTML_FS + 'pathLink.html');
this.getLinkTemplate = getSystemFile(PathTemplate, DIR_HTML_FS + 'link.html');
this.execFromModule = function(moduleName, funcName, params) {