mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 02:35:49 +00:00
feature(modules) add pako
This commit is contained in:
parent
7857c14c1d
commit
bb6800ec90
16 changed files with 27 additions and 7 deletions
|
|
@ -23,6 +23,7 @@
|
|||
"ace-builds": "~1.1.8",
|
||||
"fancybox": "~2.1.5",
|
||||
"jquery": "~2.1.3",
|
||||
"menu": "~0.7.5"
|
||||
"menu": "~0.7.5",
|
||||
"pako": "~0.2.5"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -27,6 +27,11 @@
|
|||
"local": "/modules/ace-builds/src-noconflict/ace.js",
|
||||
"remote": "//cdn.jsdelivr.net/ace/{{ version }}/noconflict/ace.js"
|
||||
}, {
|
||||
"name": "pako",
|
||||
"version": "1.2.1",
|
||||
"local": "/modules/pako/dist/pako.min.js",
|
||||
"remote": "//cdn.jsdelivr.net/pako/0.2.5/pako.min.js"
|
||||
},{
|
||||
"name": "fancybox",
|
||||
"version": "2.1.5",
|
||||
"local": [
|
||||
|
|
|
|||
|
|
@ -453,13 +453,20 @@ var CloudCmd, Util, DOM, CloudFunc, io, ace, DiffProto, diff_match_patch, Zip, M
|
|||
|
||||
function zip(value, callback) {
|
||||
var dir = CloudCmd.LIBDIRCLIENT,
|
||||
url = join([
|
||||
dir + 'zip/dist/pako.js',
|
||||
dir + 'zip.js'
|
||||
]);
|
||||
url = dir + 'zip.js';
|
||||
|
||||
DOM.load.js(url, function() {
|
||||
Zip.pack(value, callback);
|
||||
exec.parallel([
|
||||
function(callback) {
|
||||
DOM.load.js(url, callback);
|
||||
},
|
||||
function(callback) {
|
||||
DOM.loadRemote('pako', callback);
|
||||
}
|
||||
], function(error) {
|
||||
if (error)
|
||||
alert(error);
|
||||
else
|
||||
Zip.pack(value, callback);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
3
modules/pako/dist/pako.min.js
vendored
Normal file
3
modules/pako/dist/pako.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
2
modules/pako/dist/pako_deflate.min.js
vendored
Normal file
2
modules/pako/dist/pako_deflate.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
2
modules/pako/dist/pako_inflate.min.js
vendored
Normal file
2
modules/pako/dist/pako_inflate.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue