mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 10:45:47 +00:00
minor changes
This commit is contained in:
parent
b50d98b944
commit
9ea2507fef
5 changed files with 17 additions and 16 deletions
|
|
@ -1,6 +1,6 @@
|
|||
var fs = require('fs'),
|
||||
DIR = process.cwd(),
|
||||
SRVDIR = DIR + '/lib/server/',
|
||||
DIR = process.cwd() + '/',
|
||||
SRVDIR = DIR + 'lib/server/',
|
||||
srvfunc = require(SRVDIR + 'srvfunc'),
|
||||
|
||||
/* varible contain all watched file names
|
||||
|
|
|
|||
|
|
@ -16,6 +16,13 @@ var https = require('https'),
|
|||
method: "POST"
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* function do authentication
|
||||
* @param pCode
|
||||
* @param pCallBack
|
||||
*/
|
||||
|
||||
exports.auth = function(pCode, pCallBack){
|
||||
pCode = pCode.replace('code=','');
|
||||
|
||||
|
|
@ -28,11 +35,7 @@ exports.auth = function(pCode, pCallBack){
|
|||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* function do authentication
|
||||
* @param pCode
|
||||
* @param pCallBack
|
||||
*/
|
||||
|
||||
function authenticate(pCode, pCallBack) {
|
||||
var data = qs.stringify({
|
||||
client_id : Config.oauth_client_id,
|
||||
|
|
|
|||
|
|
@ -5,10 +5,10 @@
|
|||
* - Minify
|
||||
*/
|
||||
|
||||
var DIR = process.cwd(),
|
||||
SRVDIR = DIR + '/lib/server/',
|
||||
var DIR = process.cwd() + '/',
|
||||
SRVDIR = DIR + 'lib/server/',
|
||||
|
||||
srvfunc = require(SRVDIR + '/srvfunc');
|
||||
srvfunc = require(SRVDIR + 'srvfunc');
|
||||
|
||||
/*
|
||||
* Обьект для работы с кэшем
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
/* module make possible connectoin thrue socket.io on a server */
|
||||
|
||||
var DIR = process.cwd(),
|
||||
SRVDIR = DIR + '/lib/server/',
|
||||
var DIR = process.cwd() + '/',
|
||||
SRVDIR = DIR + 'lib/server/',
|
||||
|
||||
srvfunc = require(SRVDIR + '/srvfunc'),
|
||||
srvfunc = require(SRVDIR + 'srvfunc'),
|
||||
|
||||
io = srvfunc.require('socket.io'),
|
||||
exec = require('child_process').exec,
|
||||
|
|
@ -14,7 +14,7 @@ var DIR = process.cwd(),
|
|||
Win32_b = process.platform === 'win32';
|
||||
|
||||
/**
|
||||
* Function listen on servers port
|
||||
* function listen on servers port
|
||||
* @pServer {Object} started server object
|
||||
*/
|
||||
exports.listen = function(pServer){
|
||||
|
|
|
|||
|
|
@ -79,8 +79,6 @@ var CloudServer = {
|
|||
|
||||
/* КОНСТАНТЫ */
|
||||
INDEX : 'index.html',
|
||||
LIBDIR : './lib/',
|
||||
SRVDIR : './lib/server/',
|
||||
Extensions :{
|
||||
'.css' : 'text/css',
|
||||
'.js' : 'text/javascript',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue