mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-20 18:18:56 +00:00
removed auth.json
This commit is contained in:
parent
daea85ecc8
commit
fce27eb0b3
4 changed files with 24 additions and 12 deletions
|
|
@ -66,12 +66,12 @@ var CloudCommander, $;
|
|||
download: {name: 'Download',callback: function(key, opt){
|
||||
Util.Images.showLoad();
|
||||
|
||||
var lCurrent = Util.getCurrentFile();
|
||||
var lLink = Util.getByTag('a', lCurrent)[0].href;
|
||||
var lCurrent = Util.getCurrentFile(),
|
||||
lLink = Util.getByTag('a', lCurrent)[0].href;
|
||||
|
||||
console.log('downloading file ' + lLink +'...');
|
||||
|
||||
lLink = lLink + '?download';
|
||||
lLink = lLink + '?download';
|
||||
var lId = Util.getIdBySrc(lLink);
|
||||
|
||||
if(!Util.getById(lId)){
|
||||
|
|
|
|||
|
|
@ -3,11 +3,11 @@
|
|||
var https = require('https'),
|
||||
qs = require('querystring'),
|
||||
|
||||
DIR = process.cwd(),
|
||||
SRVDIR = DIR + '/lib/server/',
|
||||
DIR = process.cwd() + '/',
|
||||
SRVDIR = DIR + 'lib/server/',
|
||||
|
||||
srvfunc = require(SRVDIR + 'srvfunc'),
|
||||
Config = srvfunc.require(DIR + '/auth'),
|
||||
Config = srvfunc.require(DIR + 'config'),
|
||||
|
||||
GithubAuth = {
|
||||
host: "github.com",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue