added ability to authorize on github thru new window, changed redirecting url to /auth and added rout function to cloudcmd.js

This commit is contained in:
coderaiser 2012-12-18 06:32:58 -05:00
parent 32ed528c38
commit 9ce26c1640
9 changed files with 76 additions and 80 deletions

View file

@ -48,6 +48,7 @@
exports.SRVDIR = SRVDIR = __dirname + SLASH,
exports.LIBDIR = LIBDIR = path.normalize(SRVDIR + '../'),
exports.DIR = DIR = path.normalize(LIBDIR + '../'),
exports.HTMLDIR = DIR + 'html/',
/* Functions */
exports.generateHeaders = generateHeaders,
@ -180,7 +181,7 @@
* @param pGzip - данные сжаты gzip'ом
*/
function sendFile(pParams){
var lRet = false,
var lRet,
lName = pParams.name,
lReq = pParams.request,
lRes = pParams.response,

View file

@ -5,11 +5,12 @@
var main = global.cloudcmd.main,
DIR = main.DIR,
LIBDIR = main.LIBDIR;
LIBDIR = main.LIBDIR,
HTMLDIR = main.HTMLDIR;
exports.Minify = {
/* pathes to directories */
INDEX : DIR + 'index.html',
INDEX : HTMLDIR + 'index.html',
/* приватный переключатель минимизации */
_allowed :{
css : true,