mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 10:45:47 +00:00
chenged description
This commit is contained in:
parent
caa15189a1
commit
7e7095a642
2 changed files with 15 additions and 24 deletions
|
|
@ -5,8 +5,8 @@
|
|||
"minification" : {
|
||||
"js" : false,
|
||||
"css" : false,
|
||||
"html" : true,
|
||||
"img" : true
|
||||
"html" : false,
|
||||
"img" : false
|
||||
},
|
||||
"github_key" : "891c251b925e4e967fa9",
|
||||
"github_secret" : "afe9bed1e810c5dc44c4c2a953fc6efb1e5b0545",
|
||||
|
|
|
|||
|
|
@ -9,29 +9,20 @@ var CloudCommander, Util, DOM, gapi;
|
|||
|
||||
function authorize(pData){
|
||||
/* https://developers.google.com/drive/credentials */
|
||||
Util.setTimeout({
|
||||
func : function(pCallBack){
|
||||
var lCLIENT_ID = '255175681917.apps.googleusercontent.com',
|
||||
lSCOPES = 'https://www.googleapis.com/auth/drive',
|
||||
lParams = {
|
||||
'client_id' : lCLIENT_ID,
|
||||
'scope' : lSCOPES,
|
||||
'immediate' : true
|
||||
};
|
||||
|
||||
gapi.auth.authorize(lParams, pCallBack);
|
||||
},
|
||||
|
||||
callback : function(pAuthResult){
|
||||
var lRet;
|
||||
if (pAuthResult && !pAuthResult.error){
|
||||
uploadFile(pData);
|
||||
|
||||
lRet = true;
|
||||
}
|
||||
return lRet;
|
||||
}
|
||||
var lCLIENT_ID = '255175681917.apps.googleusercontent.com',
|
||||
lSCOPES = 'https://www.googleapis.com/auth/drive',
|
||||
lParams = {
|
||||
'client_id' : lCLIENT_ID,
|
||||
'scope' : lSCOPES,
|
||||
'immediate' : false
|
||||
};
|
||||
|
||||
setTimeout(function() {
|
||||
gapi.auth.authorize(lParams, function(pAuthResult){
|
||||
if (pAuthResult && !pAuthResult.error)
|
||||
uploadFile(pData);
|
||||
});
|
||||
}, 500);
|
||||
}
|
||||
|
||||
function load(pData){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue