Spaces:
No application file
No application file
culture
commited on
Commit
·
074133a
1
Parent(s):
25a346f
Upload epub.js.diff
Browse files- scripts/epub.js.diff +157 -0
scripts/epub.js.diff
ADDED
|
@@ -0,0 +1,157 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
diff --git a/libs/epub.orig.js b/libs/epub.js
|
| 2 |
+
index c2a047f..bbe850d 100644
|
| 3 |
+
--- a/libs/epub.orig.js
|
| 4 |
+
+++ b/libs/epub.js
|
| 5 |
+
@@ -3262,27 +3262,27 @@ function substitute(content, urls, replacements) {
|
| 6 |
+
/* 8 */
|
| 7 |
+
/***/ (function(module, exports) {
|
| 8 |
+
|
| 9 |
+
-var g;
|
| 10 |
+
-
|
| 11 |
+
-// This works in non-strict mode
|
| 12 |
+
-g = (function() {
|
| 13 |
+
- return this;
|
| 14 |
+
-})();
|
| 15 |
+
-
|
| 16 |
+
-try {
|
| 17 |
+
- // This works if eval is allowed (see CSP)
|
| 18 |
+
- g = g || Function("return this")() || (1,eval)("this");
|
| 19 |
+
-} catch(e) {
|
| 20 |
+
- // This works if the window reference is available
|
| 21 |
+
- if(typeof window === "object")
|
| 22 |
+
- g = window;
|
| 23 |
+
-}
|
| 24 |
+
-
|
| 25 |
+
-// g can still be undefined, but nothing to do about it...
|
| 26 |
+
-// We return undefined, instead of nothing here, so it's
|
| 27 |
+
-// easier to handle this case. if(!global) { ...}
|
| 28 |
+
-
|
| 29 |
+
-module.exports = g;
|
| 30 |
+
+var g;
|
| 31 |
+
+
|
| 32 |
+
+// This works in non-strict mode
|
| 33 |
+
+g = (function() {
|
| 34 |
+
+ return this;
|
| 35 |
+
+})();
|
| 36 |
+
+
|
| 37 |
+
+try {
|
| 38 |
+
+ // This works if eval is allowed (see CSP)
|
| 39 |
+
+ g = g || Function("return this")() || (1,eval)("this");
|
| 40 |
+
+} catch(e) {
|
| 41 |
+
+ // This works if the window reference is available
|
| 42 |
+
+ if(typeof window === "object")
|
| 43 |
+
+ g = window;
|
| 44 |
+
+}
|
| 45 |
+
+
|
| 46 |
+
+// g can still be undefined, but nothing to do about it...
|
| 47 |
+
+// We return undefined, instead of nothing here, so it's
|
| 48 |
+
+// easier to handle this case. if(!global) { ...}
|
| 49 |
+
+
|
| 50 |
+
+module.exports = g;
|
| 51 |
+
|
| 52 |
+
|
| 53 |
+
/***/ }),
|
| 54 |
+
@@ -4971,7 +4971,8 @@ var Contents = function () {
|
| 55 |
+
if (axis === "vertical") {
|
| 56 |
+
this.css("padding", gap / 2 + "px 20px", true);
|
| 57 |
+
} else {
|
| 58 |
+
- this.css("padding", "20px " + gap / 2 + "px", true);
|
| 59 |
+
+ this.css("padding-left", gap / 2 + "px", true);
|
| 60 |
+
+ this.css("padding-right", gap / 2 + "px", true);
|
| 61 |
+
}
|
| 62 |
+
|
| 63 |
+
this.css("box-sizing", "border-box");
|
| 64 |
+
@@ -12166,6 +12167,9 @@ var Packaging = function () {
|
| 65 |
+
metadata.language = this.getElementText(xml, "language");
|
| 66 |
+
metadata.rights = this.getElementText(xml, "rights");
|
| 67 |
+
|
| 68 |
+
+ metadata.series = this.getMetaContent(xml, "calibre:series");
|
| 69 |
+
+ metadata.seriesIndex = this.getMetaContent(xml, "calibre:series_index");
|
| 70 |
+
+
|
| 71 |
+
metadata.modified_date = this.getPropertyText(xml, "dcterms:modified");
|
| 72 |
+
|
| 73 |
+
metadata.layout = this.getPropertyText(xml, "rendition:layout");
|
| 74 |
+
@@ -12371,6 +12375,26 @@ var Packaging = function () {
|
| 75 |
+
return "";
|
| 76 |
+
}
|
| 77 |
+
|
| 78 |
+
+ /**
|
| 79 |
+
+ * Get meta content
|
| 80 |
+
+ * @private
|
| 81 |
+
+ * @param {document} xml
|
| 82 |
+
+ * @param {string} name
|
| 83 |
+
+ * @return {string} text
|
| 84 |
+
+ */
|
| 85 |
+
+
|
| 86 |
+
+ }, {
|
| 87 |
+
+ key: 'getMetaContent',
|
| 88 |
+
+ value: function getMetaContent(xml, name) {
|
| 89 |
+
+ var el = (0, _core.qsp)(xml, "meta", { "name": name });
|
| 90 |
+
+
|
| 91 |
+
+ if (el && el.getAttribute("content")) {
|
| 92 |
+
+ return el.getAttribute("content");
|
| 93 |
+
+ }
|
| 94 |
+
+
|
| 95 |
+
+ return "";
|
| 96 |
+
+ }
|
| 97 |
+
+
|
| 98 |
+
/**
|
| 99 |
+
* Load JSON Manifest
|
| 100 |
+
* @param {document} packageDocument OPF XML
|
| 101 |
+
@@ -16754,31 +16778,30 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
|
| 102 |
+
/* 70 */
|
| 103 |
+
/***/ (function(module, exports) {
|
| 104 |
+
|
| 105 |
+
-module.exports = function(module) {
|
| 106 |
+
- if(!module.webpackPolyfill) {
|
| 107 |
+
- module.deprecate = function() {};
|
| 108 |
+
- module.paths = [];
|
| 109 |
+
- // module.parent = undefined by default
|
| 110 |
+
- if(!module.children) module.children = [];
|
| 111 |
+
- Object.defineProperty(module, "loaded", {
|
| 112 |
+
- enumerable: true,
|
| 113 |
+
- get: function() {
|
| 114 |
+
- return module.l;
|
| 115 |
+
- }
|
| 116 |
+
- });
|
| 117 |
+
- Object.defineProperty(module, "id", {
|
| 118 |
+
- enumerable: true,
|
| 119 |
+
- get: function() {
|
| 120 |
+
- return module.i;
|
| 121 |
+
- }
|
| 122 |
+
- });
|
| 123 |
+
- module.webpackPolyfill = 1;
|
| 124 |
+
- }
|
| 125 |
+
- return module;
|
| 126 |
+
-};
|
| 127 |
+
+module.exports = function(module) {
|
| 128 |
+
+ if(!module.webpackPolyfill) {
|
| 129 |
+
+ module.deprecate = function() {};
|
| 130 |
+
+ module.paths = [];
|
| 131 |
+
+ // module.parent = undefined by default
|
| 132 |
+
+ if(!module.children) module.children = [];
|
| 133 |
+
+ Object.defineProperty(module, "loaded", {
|
| 134 |
+
+ enumerable: true,
|
| 135 |
+
+ get: function() {
|
| 136 |
+
+ return module.l;
|
| 137 |
+
+ }
|
| 138 |
+
+ });
|
| 139 |
+
+ Object.defineProperty(module, "id", {
|
| 140 |
+
+ enumerable: true,
|
| 141 |
+
+ get: function() {
|
| 142 |
+
+ return module.i;
|
| 143 |
+
+ }
|
| 144 |
+
+ });
|
| 145 |
+
+ module.webpackPolyfill = 1;
|
| 146 |
+
+ }
|
| 147 |
+
+ return module;
|
| 148 |
+
+};
|
| 149 |
+
|
| 150 |
+
|
| 151 |
+
/***/ })
|
| 152 |
+
/******/ ]);
|
| 153 |
+
-});
|
| 154 |
+
-//# sourceMappingURL=epub.js.map
|
| 155 |
+
|
| 156 |
+
+});
|
| 157 |
+
|