- Build: Fix build input for xdomain; update external files per latest
- Docs: Update dev. license badge per latest - Linting (LGTM): Fix paths - Linting (ESLint): Fix ignore path - npm: Fix copy file pathsmaster
parent
0255938873
commit
4c14de143b
|
@ -26,7 +26,7 @@ src/editor/extensions/mathjax
|
|||
|
||||
# Todo: We should at least check `compat/compat` in our other files, however
|
||||
## Two "external" items are modified locally, so we undo their ignoring
|
||||
src/external/*
|
||||
src/external/**/*
|
||||
!src/external/dom-polyfill
|
||||
src/external/dom-polyfill/*
|
||||
!src/external/dom-polyfill/dom-polyfill.js
|
||||
|
|
|
@ -1 +1 @@
|
|||
<svg xmlns="http://www.w3.org/2000/svg" width="839" height="248"><defs><style>text{font-size:11px;font-family:Verdana,DejaVu Sans,Geneva,sans-serif}text.shadow{fill:#010101;fill-opacity:.3}text.high{fill:#fff}</style><linearGradient id="smooth" x2="0" y2="100%"><stop offset="0" stop-color="#aaa" stop-opacity=".1"/><stop offset="1" stop-opacity=".1"/></linearGradient><mask id="round"><rect width="100%" height="100%" rx="3" fill="#fff"/></mask></defs><g id="bg" mask="url(#round)"><path fill="navy" d="M0 0h88v248H0z"/><path fill="#006400" d="M88 0h131v248H88z"/><path fill="green" d="M219 0h266v248H219z"/><path fill="#cc0" d="M485 0h79v248h-79z"/><path fill="#a9a9a9" d="M564 0h106v248H564z"/><path fill="#d3d3d3" d="M670 0h169v248H670z"/><path fill="url(#smooth)" d="M0 0h839v248H0z"/></g><g id="fg"><text class="shadow" x="5.5" y="15">License types</text><text class="high" x="5" y="14">License types</text><text class="shadow" x="5.5" y="27">(all devDeps)</text><text class="high" x="5" y="26">(all devDeps)</text><text class="shadow" x="93.5" y="15">Public</text><text class="high" x="93" y="14">Public</text><text class="shadow" x="93.5" y="27">domain</text><text class="high" x="93" y="26">domain</text><text class="shadow" x="93.5" y="51">1. (MIT OR CC0-1.0)</text><text class="high" x="93" y="50">1. (MIT OR CC0-1.0)</text><text class="shadow" x="93.5" y="63">2. CC0-1.0</text><text class="high" x="93" y="62">2. CC0-1.0</text><text class="shadow" x="93.5" y="75">3. Unlicense</text><text class="high" x="93" y="74">3. Unlicense</text><text class="shadow" x="224.5" y="15">Permissive</text><text class="high" x="224" y="14">Permissive</text><text class="shadow" x="224.5" y="39">1. (AFL-2.1 OR BSD-3-Clause)</text><text class="high" x="224" y="38">1. (AFL-2.1 OR BSD-3-Clause)</text><text class="shadow" x="224.5" y="51">2. (BSD-2-Clause OR (MIT OR Apache-2.0))</text><text class="high" x="224" y="50">2. (BSD-2-Clause OR (MIT OR Apache-2.0))</text><text class="shadow" x="224.5" y="63">3. (GPL-3.0-or-later OR MIT)</text><text class="high" x="224" y="62">3. (GPL-3.0-or-later OR MIT)</text><text class="shadow" x="224.5" y="75">4. (MIT OR Apache-2.0)</text><text class="high" x="224" y="74">4. (MIT OR Apache-2.0)</text><text class="shadow" x="224.5" y="87">5. (MPL-2.0 OR Apache-2.0)</text><text class="high" x="224" y="86">5. (MPL-2.0 OR Apache-2.0)</text><text class="shadow" x="224.5" y="99">6. (WTFPL OR MIT)</text><text class="high" x="224" y="98">6. (WTFPL OR MIT)</text><text class="shadow" x="224.5" y="111">7. 0BSD</text><text class="high" x="224" y="110">7. 0BSD</text><text class="shadow" x="224.5" y="123">8. Apache</text><text class="high" x="224" y="122">8. Apache</text><text class="shadow" x="224.5" y="135">9. Apache-2.0</text><text class="high" x="224" y="134">9. Apache-2.0</text><text class="shadow" x="224.5" y="147">10. Artistic-2.0</text><text class="high" x="224" y="146">10. Artistic-2.0</text><text class="shadow" x="224.5" y="159">11. BSD</text><text class="high" x="224" y="158">11. BSD</text><text class="shadow" x="224.5" y="171">12. BSD-2-Clause</text><text class="high" x="224" y="170">12. BSD-2-Clause</text><text class="shadow" x="224.5" y="183">13. BSD-3-Clause</text><text class="high" x="224" y="182">13. BSD-3-Clause</text><text class="shadow" x="224.5" y="195">14. CC-BY-3.0</text><text class="high" x="224" y="194">14. CC-BY-3.0</text><text class="shadow" x="224.5" y="207">15. CC-BY-4.0</text><text class="high" x="224" y="206">15. CC-BY-4.0</text><text class="shadow" x="224.5" y="219">16. ISC</text><text class="high" x="224" y="218">16. ISC</text><text class="shadow" x="224.5" y="231">17. MIT</text><text class="high" x="224" y="230">17. MIT</text><text class="shadow" x="224.5" y="243">18. Zlib</text><text class="high" x="224" y="242">18. Zlib</text><text class="shadow" x="490.5" y="15">Weakly</text><text class="high" x="490" y="14">Weakly</text><text class="shadow" x="490.5" y="27">protective</text><text class="high" x="490" y="26">protective</text><text class="shadow" x="490.5" y="51">1. LGPL-3.0</text><text class="high" x="490" y="50">1. LGPL-3.0</text><text class="shadow" x="490.5" y="63">2. MPL-2.0</text><text class="high" x="490" y="62">2. MPL-2.0</text><text class="shadow" x="569.5" y="15">Uncategorized</text><text class="high" x="569" y="14">Uncategorized</text><text class="shadow" x="569.5" y="39">1. jsonify (0.0.0)</text><text class="high" x="569" y="38">1. jsonify (0.0.0)</text><text class="shadow" x="675.5" y="15">Missing</text><text class="high" x="675" y="14">Missing</text><text class="shadow" x="675.5" y="39">1. boundary (1.0.1)</text><text class="high" x="675" y="38">1. boundary (1.0.1)</text><text class="shadow" x="675.5" y="51">2. structured-source (3.0.2)</text><text class="high" x="675" y="50">2. structured-source (3.0.2)</text><text class="shadow" x="675.5" y="63">3. taffydb (2.6.2)</text><text class="high" x="675" y="62">3. taffydb (2.6.2)</text></g></svg>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="839" height="236"><defs><style>text{font-size:11px;font-family:Verdana,DejaVu Sans,Geneva,sans-serif}text.shadow{fill:#010101;fill-opacity:.3}text.high{fill:#fff}</style><linearGradient id="smooth" x2="0" y2="100%"><stop offset="0" stop-color="#aaa" stop-opacity=".1"/><stop offset="1" stop-opacity=".1"/></linearGradient><mask id="round"><rect width="100%" height="100%" rx="3" fill="#fff"/></mask></defs><g id="bg" mask="url(#round)"><path fill="navy" d="M0 0h88v236H0z"/><path fill="#006400" d="M88 0h131v236H88z"/><path fill="green" d="M219 0h266v236H219z"/><path fill="#cc0" d="M485 0h79v236h-79z"/><path fill="#a9a9a9" d="M564 0h106v236H564z"/><path fill="#d3d3d3" d="M670 0h169v236H670z"/><path fill="url(#smooth)" d="M0 0h839v236H0z"/></g><g id="fg"><text class="shadow" x="5.5" y="15">License types</text><text class="high" x="5" y="14">License types</text><text class="shadow" x="5.5" y="27">(all devDeps)</text><text class="high" x="5" y="26">(all devDeps)</text><text class="shadow" x="93.5" y="15">Public</text><text class="high" x="93" y="14">Public</text><text class="shadow" x="93.5" y="27">domain</text><text class="high" x="93" y="26">domain</text><text class="shadow" x="93.5" y="51">1. (MIT OR CC0-1.0)</text><text class="high" x="93" y="50">1. (MIT OR CC0-1.0)</text><text class="shadow" x="93.5" y="63">2. CC0-1.0</text><text class="high" x="93" y="62">2. CC0-1.0</text><text class="shadow" x="93.5" y="75">3. Unlicense</text><text class="high" x="93" y="74">3. Unlicense</text><text class="shadow" x="224.5" y="15">Permissive</text><text class="high" x="224" y="14">Permissive</text><text class="shadow" x="224.5" y="39">1. (AFL-2.1 OR BSD-3-Clause)</text><text class="high" x="224" y="38">1. (AFL-2.1 OR BSD-3-Clause)</text><text class="shadow" x="224.5" y="51">2. (BSD-2-Clause OR (MIT OR Apache-2.0))</text><text class="high" x="224" y="50">2. (BSD-2-Clause OR (MIT OR Apache-2.0))</text><text class="shadow" x="224.5" y="63">3. (GPL-3.0-or-later OR MIT)</text><text class="high" x="224" y="62">3. (GPL-3.0-or-later OR MIT)</text><text class="shadow" x="224.5" y="75">4. (MIT OR Apache-2.0)</text><text class="high" x="224" y="74">4. (MIT OR Apache-2.0)</text><text class="shadow" x="224.5" y="87">5. (MPL-2.0 OR Apache-2.0)</text><text class="high" x="224" y="86">5. (MPL-2.0 OR Apache-2.0)</text><text class="shadow" x="224.5" y="99">6. (WTFPL OR MIT)</text><text class="high" x="224" y="98">6. (WTFPL OR MIT)</text><text class="shadow" x="224.5" y="111">7. 0BSD</text><text class="high" x="224" y="110">7. 0BSD</text><text class="shadow" x="224.5" y="123">8. Apache-2.0</text><text class="high" x="224" y="122">8. Apache-2.0</text><text class="shadow" x="224.5" y="135">9. Artistic-2.0</text><text class="high" x="224" y="134">9. Artistic-2.0</text><text class="shadow" x="224.5" y="147">10. BSD</text><text class="high" x="224" y="146">10. BSD</text><text class="shadow" x="224.5" y="159">11. BSD-2-Clause</text><text class="high" x="224" y="158">11. BSD-2-Clause</text><text class="shadow" x="224.5" y="171">12. BSD-3-Clause</text><text class="high" x="224" y="170">12. BSD-3-Clause</text><text class="shadow" x="224.5" y="183">13. CC-BY-3.0</text><text class="high" x="224" y="182">13. CC-BY-3.0</text><text class="shadow" x="224.5" y="195">14. CC-BY-4.0</text><text class="high" x="224" y="194">14. CC-BY-4.0</text><text class="shadow" x="224.5" y="207">15. ISC</text><text class="high" x="224" y="206">15. ISC</text><text class="shadow" x="224.5" y="219">16. MIT</text><text class="high" x="224" y="218">16. MIT</text><text class="shadow" x="224.5" y="231">17. Zlib</text><text class="high" x="224" y="230">17. Zlib</text><text class="shadow" x="490.5" y="15">Weakly</text><text class="high" x="490" y="14">Weakly</text><text class="shadow" x="490.5" y="27">protective</text><text class="high" x="490" y="26">protective</text><text class="shadow" x="490.5" y="51">1. LGPL-3.0</text><text class="high" x="490" y="50">1. LGPL-3.0</text><text class="shadow" x="490.5" y="63">2. MPL-2.0</text><text class="high" x="490" y="62">2. MPL-2.0</text><text class="shadow" x="569.5" y="15">Uncategorized</text><text class="high" x="569" y="14">Uncategorized</text><text class="shadow" x="569.5" y="39">1. jsonify (0.0.0)</text><text class="high" x="569" y="38">1. jsonify (0.0.0)</text><text class="shadow" x="675.5" y="15">Missing</text><text class="high" x="675" y="14">Missing</text><text class="shadow" x="675.5" y="39">1. boundary (1.0.1)</text><text class="high" x="675" y="38">1. boundary (1.0.1)</text><text class="shadow" x="675.5" y="51">2. structured-source (3.0.2)</text><text class="high" x="675" y="50">2. structured-source (3.0.2)</text><text class="shadow" x="675.5" y="63">3. taffydb (2.6.2)</text><text class="high" x="675" y="62">3. taffydb (2.6.2)</text></g></svg>
|
Before Width: | Height: | Size: 4.8 KiB After Width: | Height: | Size: 4.7 KiB |
4
lgtm.yml
4
lgtm.yml
|
@ -2,7 +2,7 @@ extraction:
|
|||
javascript:
|
||||
index:
|
||||
filters:
|
||||
- exclude: "src/editor/xdomain-svgedit-config-iife.js"
|
||||
- exclude: "src/editor/redirect-on-no-module-support.js"
|
||||
- exclude: "src/xdomain-svgedit-config-iife.js"
|
||||
- exclude: "src/svgedit-config-iife.js"
|
||||
- exclude: "src/editor/redirect-on-no-module-support.js"
|
||||
- exclude: "dist"
|
||||
|
|
|
@ -46,7 +46,7 @@
|
|||
"license-badges": "run-s license-badge license-badge-dev",
|
||||
"coverage-badge": "coveradge badges/coverage-badge",
|
||||
"compress-images": "imageoptim \"src/editor/extensions/*.png\" \"src/editor/spinbtn/*.png\" \"src/editor/jgraduate/images/*.{png,gif}\" \"src/editor/images/*.png\"",
|
||||
"copy": "copyfiles -f node_modules/load-stylesheets/dist/index-es.js src/external/load-stylesheets && copyfiles -f node_modules/jamilih/dist/jml-es.js editor/external/jamilih && copyfiles -f node_modules/query-result/esm/index.js editor/external/query-result/esm && copyfiles -f node_modules/qr-manipulation/dist/index-es.js editor/external/qr-manipulation/dist && copyfiles -f node_modules/stackblur-canvas/dist/stackblur-es.js editor/external/stackblur-canvas/dist && copyfiles -f node_modules/regenerator-runtime/runtime.js editor/external/regenerator-runtime && copyfiles -f \"node_modules/core-js-bundle//minified*\" editor/external/core-js-bundle && copyfiles -f \"node_modules/underscore/underscore-*\" editor/jspdf && copyfiles -f \"node_modules/deparam/dist/deparam.esm.js\" editor/external/deparam",
|
||||
"copy": "copyfiles -f node_modules/load-stylesheets/dist/index-es.js src/external/load-stylesheets && copyfiles -f node_modules/jamilih/dist/jml-es.js src/external/jamilih && copyfiles -f node_modules/query-result/esm/index.js src/external/query-result/esm && copyfiles -f node_modules/qr-manipulation/dist/index-es.js src/external/qr-manipulation/dist && copyfiles -f node_modules/stackblur-canvas/dist/stackblur-es.js src/external/stackblur-canvas/dist && copyfiles -f node_modules/regenerator-runtime/runtime.js src/external/regenerator-runtime && copyfiles -f \"node_modules/core-js-bundle//minified*\" src/external/core-js-bundle && copyfiles -f \"node_modules/underscore/underscore-*\" src/editor/jspdf && copyfiles -f \"node_modules/deparam/dist/deparam.esm.js\" src/external/deparam",
|
||||
"remark": "remark -q -f .",
|
||||
"build-html": "babel-node --plugins @babel/plugin-transform-modules-commonjs build/build-html.js",
|
||||
"install-offline": "npm install --prefer-offline --no-audit",
|
||||
|
|
|
@ -44,7 +44,7 @@ export default [
|
|||
plugins
|
||||
},
|
||||
{
|
||||
input: 'src/editor/xdomain-svgedit-config-es.js',
|
||||
input: 'src/xdomain-svgedit-config-es.js',
|
||||
output: {
|
||||
format: 'iife',
|
||||
file: 'src/xdomain-svgedit-config-iife.js'
|
||||
|
|
|
@ -39,7 +39,7 @@
|
|||
|
||||
<!-- If you do not wish to add extensions by URL, you can add calls
|
||||
within the following file to svgEditor.setConfig -->
|
||||
<script type="module" src="../xdomain-svgedit-config-es.js"></script>
|
||||
<script type="module" src="xdomain-svgedit-config-es.js"></script>
|
||||
|
||||
<!-- FEEDS -->
|
||||
<link rel="alternate" type="application/atom+xml"
|
||||
|
|
|
@ -39,7 +39,7 @@
|
|||
|
||||
<!-- If you do not wish to add extensions by URL, you can add calls
|
||||
within the following file to svgEditor.setConfig -->
|
||||
<script defer="defer" src="../xdomain-svgedit-config-iife.js"></script>
|
||||
<script defer="defer" src="xdomain-svgedit-config-iife.js"></script>
|
||||
|
||||
<!-- FEEDS -->
|
||||
<link rel="alternate" type="application/atom+xml"
|
||||
|
|
|
@ -746,7 +746,7 @@ const jml = function jml(...args) {
|
|||
while (node.childNodes[j]) {
|
||||
const cn = node.childNodes[j];
|
||||
cn.remove(); // `j` should stay the same as removing will cause node to be present
|
||||
}
|
||||
} // eslint-disable-next-line unicorn/no-fn-reference-in-iterator
|
||||
|
||||
|
||||
attVal.childNodes.forEach(_childrenToJML(node));
|
||||
|
@ -773,11 +773,13 @@ const jml = function jml(...args) {
|
|||
}
|
||||
|
||||
if (attVal.head) {
|
||||
// eslint-disable-next-line unicorn/no-fn-reference-in-iterator
|
||||
attVal.head.forEach(_appendJML(head));
|
||||
}
|
||||
}
|
||||
|
||||
if (attVal.body) {
|
||||
// eslint-disable-next-line unicorn/no-fn-reference-in-iterator
|
||||
attVal.body.forEach(_appendJMLOrText(body));
|
||||
}
|
||||
}
|
||||
|
@ -1046,7 +1048,7 @@ const jml = function jml(...args) {
|
|||
// Todo: Fix to allow application of stylesheets of style tags within fragments?
|
||||
|
||||
|
||||
return nodes.length <= 1 ? nodes[0] // eslint-disable-next-line
|
||||
return nodes.length <= 1 ? nodes[0] // eslint-disable-next-line unicorn/no-fn-reference-in-iterator
|
||||
: nodes.reduce(_fragReducer, doc.createDocumentFragment()); // nodes;
|
||||
}
|
||||
|
||||
|
|
|
@ -16,6 +16,24 @@ var runtime = (function (exports) {
|
|||
var asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator";
|
||||
var toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
|
||||
|
||||
function define(obj, key, value) {
|
||||
Object.defineProperty(obj, key, {
|
||||
value: value,
|
||||
enumerable: true,
|
||||
configurable: true,
|
||||
writable: true
|
||||
});
|
||||
return obj[key];
|
||||
}
|
||||
try {
|
||||
// IE 8 has a broken Object.defineProperty that only works on DOM objects.
|
||||
define({}, "");
|
||||
} catch (err) {
|
||||
define = function(obj, key, value) {
|
||||
return obj[key] = value;
|
||||
};
|
||||
}
|
||||
|
||||
function wrap(innerFn, outerFn, self, tryLocsList) {
|
||||
// If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator.
|
||||
var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator;
|
||||
|
@ -86,16 +104,19 @@ var runtime = (function (exports) {
|
|||
Generator.prototype = Object.create(IteratorPrototype);
|
||||
GeneratorFunction.prototype = Gp.constructor = GeneratorFunctionPrototype;
|
||||
GeneratorFunctionPrototype.constructor = GeneratorFunction;
|
||||
GeneratorFunctionPrototype[toStringTagSymbol] =
|
||||
GeneratorFunction.displayName = "GeneratorFunction";
|
||||
GeneratorFunction.displayName = define(
|
||||
GeneratorFunctionPrototype,
|
||||
toStringTagSymbol,
|
||||
"GeneratorFunction"
|
||||
);
|
||||
|
||||
// Helper for defining the .next, .throw, and .return methods of the
|
||||
// Iterator interface in terms of a single ._invoke method.
|
||||
function defineIteratorMethods(prototype) {
|
||||
["next", "throw", "return"].forEach(function(method) {
|
||||
prototype[method] = function(arg) {
|
||||
define(prototype, method, function(arg) {
|
||||
return this._invoke(method, arg);
|
||||
};
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -114,9 +135,7 @@ var runtime = (function (exports) {
|
|||
Object.setPrototypeOf(genFun, GeneratorFunctionPrototype);
|
||||
} else {
|
||||
genFun.__proto__ = GeneratorFunctionPrototype;
|
||||
if (!(toStringTagSymbol in genFun)) {
|
||||
genFun[toStringTagSymbol] = "GeneratorFunction";
|
||||
}
|
||||
define(genFun, toStringTagSymbol, "GeneratorFunction");
|
||||
}
|
||||
genFun.prototype = Object.create(Gp);
|
||||
return genFun;
|
||||
|
@ -386,7 +405,7 @@ var runtime = (function (exports) {
|
|||
// unified ._invoke helper method.
|
||||
defineIteratorMethods(Gp);
|
||||
|
||||
Gp[toStringTagSymbol] = "Generator";
|
||||
define(Gp, toStringTagSymbol, "Generator");
|
||||
|
||||
// A Generator should always return itself as the iterator object when the
|
||||
// @@iterator function is called on it. Some browsers' implementations of the
|
||||
|
|
Loading…
Reference in New Issue