From ae75d3449f01674aad0dd71380361a9feab79a43 Mon Sep 17 00:00:00 2001 From: coderaiser Date: Thu, 11 Jun 2015 02:35:20 -0400 Subject: [PATCH] feature(tmpl) mv index, auth to html --- tmpl/auth.hbs => html/auth.html | 0 tmpl/auth/dropbox.hbs => html/auth/dropbox.html | 0 tmpl/auth/github.hbs => html/auth/github.html | 0 tmpl/fs/index.hbs => html/index.html | 0 lib/client.js | 4 ++-- lib/server/route.js | 9 +++++---- 6 files changed, 7 insertions(+), 6 deletions(-) rename tmpl/auth.hbs => html/auth.html (100%) rename tmpl/auth/dropbox.hbs => html/auth/dropbox.html (100%) rename tmpl/auth/github.hbs => html/auth/github.html (100%) rename tmpl/fs/index.hbs => html/index.html (100%) diff --git a/tmpl/auth.hbs b/html/auth.html similarity index 100% rename from tmpl/auth.hbs rename to html/auth.html diff --git a/tmpl/auth/dropbox.hbs b/html/auth/dropbox.html similarity index 100% rename from tmpl/auth/dropbox.hbs rename to html/auth/dropbox.html diff --git a/tmpl/auth/github.hbs b/html/auth/github.html similarity index 100% rename from tmpl/auth/github.hbs rename to html/auth/github.html diff --git a/tmpl/fs/index.hbs b/html/index.html similarity index 100% rename from tmpl/fs/index.hbs rename to html/index.html diff --git a/lib/client.js b/lib/client.js index 2caf9596..e556fd6f 100644 --- a/lib/client.js +++ b/lib/client.js @@ -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); diff --git a/lib/server/route.js b/lib/server/route.js index 94708efe..3572440e 100644 --- a/lib/server/route.js +++ b/lib/server/route.js @@ -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)