diff --git a/ChangeLog b/ChangeLog index cda9df8f..d4707bf5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -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 diff --git a/cloudcmd.js b/cloudcmd.js index 2dc1851f..e0a36212 100644 --- a/cloudcmd.js +++ b/cloudcmd.js @@ -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(); diff --git a/config.json b/config.json index 3c8d7ff1..f21f6665 100644 --- a/config.json +++ b/config.json @@ -3,7 +3,7 @@ "appcache" : false, "cache" : {"allowed" : false}, "minification" : { - "js" : true, + "js" : false, "css" : true, "html" : true, "img" : true diff --git a/lib/client/storage/_dropbox.js b/lib/client/storage/_dropbox.js index c6fff5c2..5532e1a9 100644 --- a/lib/client/storage/_dropbox.js +++ b/lib/client/storage/_dropbox.js @@ -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; diff --git a/lib/server/appcache.js b/lib/server/appcache.js index 663409db..e30028a2 100644 --- a/lib/server/appcache.js +++ b/lib/server/appcache.js @@ -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();