mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 10:45:47 +00:00
fixed bug with appcache
This commit is contained in:
parent
a81dc6e75f
commit
fb2faec364
5 changed files with 22 additions and 22 deletions
|
|
@ -188,6 +188,8 @@ Just propose install git and clone from github repo.
|
|||
|
||||
* Fixed bug with client.js minifying.
|
||||
|
||||
* Fixed bug with appcache.
|
||||
|
||||
|
||||
2012.10.01, Version 0.1.7
|
||||
|
||||
|
|
|
|||
|
|
@ -80,7 +80,7 @@
|
|||
{'//ajax.googleapis.com/ajax/libs/jquery/1.8.0/jquery.min.js' : './lib/client/jquery.js'}];
|
||||
|
||||
if(srv.Minify._allowed.css)
|
||||
lFiles.push('./min/all.min.css');
|
||||
lFiles.push('node_modules/minify/min/all.min.css');
|
||||
|
||||
lAppCache.addFiles(lFiles);
|
||||
lAppCache.createManifest();
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
"appcache" : false,
|
||||
"cache" : {"allowed" : false},
|
||||
"minification" : {
|
||||
"js" : true,
|
||||
"js" : false,
|
||||
"css" : true,
|
||||
"html" : true,
|
||||
"img" : true
|
||||
|
|
|
|||
|
|
@ -4,20 +4,19 @@ var CloudCommander, DOM, Dropbox;
|
|||
(function(){
|
||||
"use strict";
|
||||
|
||||
const cloudcmd = CloudCommander,
|
||||
CHOOSER_API = 'https://www.dropbox.com/static/api/1/dropbox.js';
|
||||
|
||||
var CLIENT_ID,
|
||||
DropBoxStore = {},
|
||||
options = {
|
||||
linkType: "direct",
|
||||
success: function(files) {
|
||||
console.log("Here's the file link:" + files[0].link);
|
||||
},
|
||||
cancel: function() {
|
||||
console.log('Chose something');
|
||||
}
|
||||
};
|
||||
var cloudcmd = CloudCommander,
|
||||
CHOOSER_API = 'https://www.dropbox.com/static/api/1/dropbox.js',
|
||||
CLIENT_ID,
|
||||
DropBoxStore = {},
|
||||
options = {
|
||||
linkType: "direct",
|
||||
success: function(files) {
|
||||
console.log("Here's the file link:" + files[0].link);
|
||||
},
|
||||
cancel: function() {
|
||||
console.log('Chose something');
|
||||
}
|
||||
};
|
||||
|
||||
/* PRIVATE FUNCTIONS */
|
||||
|
||||
|
|
@ -35,7 +34,7 @@ var CloudCommander, DOM, Dropbox;
|
|||
func : DropBoxStore.choose
|
||||
|
||||
});
|
||||
|
||||
|
||||
var lDropBoxId = pConfig.dropbox_chooser_key;
|
||||
lElement.setAttribute('data-app-key', lDropBoxId);
|
||||
document.body.appendChild(lElement);
|
||||
|
|
@ -43,14 +42,13 @@ var CloudCommander, DOM, Dropbox;
|
|||
console.timeEnd('dropbox load');
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
DropBoxStore.choose = function(){
|
||||
Dropbox.choose(options);
|
||||
};
|
||||
|
||||
|
||||
DropBoxStore.init = function(){
|
||||
load();
|
||||
this.init = null;
|
||||
};
|
||||
|
||||
cloudcmd.DropBox = DropBoxStore;
|
||||
|
|
|
|||
|
|
@ -59,11 +59,11 @@
|
|||
|
||||
|
||||
exports.createManifest = function(){
|
||||
var lAllNames = main.require('hashes');
|
||||
var lAllNames = main.require('node_modules/minify/hashes');
|
||||
if(lAllNames)
|
||||
for(var lName in lAllNames){
|
||||
if(lName.indexOf('min') > 0)
|
||||
lName = './min/' + lName;
|
||||
lName = 'node_modules/minify/min/' + lName;
|
||||
exports.watch(lName);
|
||||
}
|
||||
processManifest();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue