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