mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-20 18:18:56 +00:00
feature(cloudcmd) rm appCache
This commit is contained in:
parent
8445d32283
commit
b8a1176c26
7 changed files with 2 additions and 210 deletions
27
cloudcmd.js
27
cloudcmd.js
|
|
@ -15,7 +15,6 @@
|
|||
mellow = require(DIR_SERVER + 'mellow'),
|
||||
ponse = require(DIR_SERVER + 'ponse'),
|
||||
files = require(DIR_SERVER + 'files'),
|
||||
AppCache = require(DIR_SERVER + 'appcache'),
|
||||
update = require(DIR_SERVER + 'update'),
|
||||
minify = require(DIR_SERVER + 'minify'),
|
||||
|
||||
|
|
@ -76,14 +75,6 @@
|
|||
data = options.data,
|
||||
panel = options.panel;
|
||||
|
||||
if (!Config.appCache)
|
||||
data = Util.rmStr(data, [
|
||||
/* min */
|
||||
' manifest=/cloudcmd.appcache',
|
||||
/* normal */
|
||||
' manifest="/cloudcmd.appcache"'
|
||||
]);
|
||||
|
||||
if (!Config.showKeysPanel) {
|
||||
keysPanel = '<div class="keyspanel';
|
||||
data = data.replace(keysPanel + '"', keysPanel +' hidden"');
|
||||
|
|
@ -109,23 +100,6 @@
|
|||
return data;
|
||||
}
|
||||
|
||||
/**
|
||||
* init and process of appcache if it allowed in config
|
||||
*/
|
||||
function appCacheProcessing() {
|
||||
var FONT_REMOTE = '//themes.googleusercontent.com/static/fonts/droidsansmono/v4/ns-m2xQYezAtqh7ai59hJUYuTAAIFFn5GTWtryCmBQ4.woff',
|
||||
FONT_LOCAL = './font/DroidSansMono.woff',
|
||||
JQUERY_REMOTE = '//ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js',
|
||||
JQUERY_LOCAL = './lib/client/jquery.js',
|
||||
files = [{}, {}];
|
||||
|
||||
files[0][FONT_REMOTE] = FONT_LOCAL;
|
||||
files[1][JQUERY_REMOTE] = JQUERY_LOCAL;
|
||||
|
||||
AppCache.addFiles(files);
|
||||
AppCache.createManifest();
|
||||
}
|
||||
|
||||
function init(config) {
|
||||
var paramsStart;
|
||||
|
||||
|
|
@ -149,7 +123,6 @@
|
|||
}
|
||||
|
||||
paramsStart = {
|
||||
appcache : appCacheProcessing,
|
||||
rest : main.rest,
|
||||
route : route
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue