forked from webodf/WebODF
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace existing zip implementation with jszip v2.4.0
jszip has a much cleaner API than the existing RawDeflate version. In addition, jszip supports creation of a compressed output stream. As it's non-trivial to make jszip behave with closure compiler, a second concat-only step has been added during compilation to include 3rd party dependencies. Fixes webodf#21.
- Loading branch information
Showing
13 changed files
with
9,194 additions
and
3,871 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
/** | ||
* Copyright (C) 2010-2014 KO GmbH <copyright@kogmbh.com> | ||
* | ||
* @licstart | ||
* This file is part of WebODF. | ||
* | ||
* WebODF is free software: you can redistribute it and/or modify it | ||
* under the terms of the GNU Affero General Public License (GNU AGPL) | ||
* as published by the Free Software Foundation, either version 3 of | ||
* the License, or (at your option) any later version. | ||
* | ||
* WebODF is distributed in the hope that it will be useful, but | ||
* WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU Affero General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU Affero General Public License | ||
* along with WebODF. If not, see <http://www.gnu.org/licenses/>. | ||
* @licend | ||
* | ||
* @source: http://www.webodf.org/ | ||
* @source: https://github.com/kogmbh/WebODF/ | ||
*/ | ||
|
||
/*global externs*/ | ||
|
||
/*jslint nomen: false, emptyblock: true, unparam: true */ | ||
|
||
/** | ||
* @constructor | ||
*/ | ||
function ZipObject() { "use strict"; } | ||
|
||
/** | ||
* @return {!Uint8Array} | ||
*/ | ||
ZipObject.prototype.asUint8Array = function() { "use strict"; }; | ||
|
||
/** | ||
* @constructor | ||
*/ | ||
function JSZip() { "use strict"; } | ||
|
||
/** | ||
* @param {!string} filename | ||
* @param {!Uint8Array=} data | ||
* @param {*=} options | ||
* @return {?ZipObject} | ||
*/ | ||
JSZip.prototype.file = function(filename, data, options) { "use strict"; }; | ||
|
||
/** | ||
* @type {!Array.<!ZipObject>} | ||
*/ | ||
JSZip.prototype.files; | ||
|
||
/** | ||
* @param {*} options | ||
* @return {*} | ||
*/ | ||
JSZip.prototype.generate = function(options) { "use strict"; }; | ||
|
||
/** | ||
* @param {!Uint8Array} data | ||
* @param {*=} options | ||
* @return {undefined} | ||
*/ | ||
JSZip.prototype.load = function(data, options) { "use strict"; }; | ||
|
||
/** | ||
* @param {!string} filename | ||
* @return {undefined} | ||
*/ | ||
JSZip.prototype.remove = function(filename) { "use strict"; }; | ||
|
||
/** | ||
* @type {!function(new:JSZip)} | ||
*/ | ||
externs.JSZip; |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.