removing bower
: migrate mathjax
Signed-off-by: Pamplemousse <git@xaviermaso.com>
This commit is contained in:
parent
805681f4cc
commit
99b741ba6b
5 changed files with 16 additions and 2 deletions
|
@ -18,7 +18,6 @@
|
||||||
"tests"
|
"tests"
|
||||||
],
|
],
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"MathJax": "3.0.5"
|
|
||||||
},
|
},
|
||||||
"resolutions": {
|
"resolutions": {
|
||||||
"bootstrap": "^v4.0.0",
|
"bootstrap": "^v4.0.0",
|
||||||
|
|
13
package-lock.json
generated
13
package-lock.json
generated
|
@ -49,6 +49,7 @@
|
||||||
"lesshint": "6.3.7",
|
"lesshint": "6.3.7",
|
||||||
"localforage": "^1.5.2",
|
"localforage": "^1.5.2",
|
||||||
"marked": "^1.1.0",
|
"marked": "^1.1.0",
|
||||||
|
"mathjax": "3.0.5",
|
||||||
"open-sans-fontface": "^1.4.0",
|
"open-sans-fontface": "^1.4.0",
|
||||||
"rangy": "~1.3.0",
|
"rangy": "~1.3.0",
|
||||||
"require-css": "0.1.10",
|
"require-css": "0.1.10",
|
||||||
|
@ -3084,6 +3085,12 @@
|
||||||
"node": ">= 8.16.2"
|
"node": ">= 8.16.2"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/mathjax": {
|
||||||
|
"version": "3.0.5",
|
||||||
|
"resolved": "https://registry.npmjs.org/mathjax/-/mathjax-3.0.5.tgz",
|
||||||
|
"integrity": "sha512-9M7VulhltkD8sIebWutK/VfAD+m+6BIFqfpjDh9Pz/etoKUtjO6UMnOhUcDmNl6iApE8C9xrUmaMyNZkZAlrMw==",
|
||||||
|
"dev": true
|
||||||
|
},
|
||||||
"node_modules/media-typer": {
|
"node_modules/media-typer": {
|
||||||
"version": "0.3.0",
|
"version": "0.3.0",
|
||||||
"resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz",
|
"resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz",
|
||||||
|
@ -7731,6 +7738,12 @@
|
||||||
"integrity": "sha512-EkE7RW6KcXfMHy2PA7Jg0YJE1l8UPEZE8k45tylzmZM30/r1M1MUXWQfJlrSbsTeh7m/XTwHbWUENvAJZpp1YA==",
|
"integrity": "sha512-EkE7RW6KcXfMHy2PA7Jg0YJE1l8UPEZE8k45tylzmZM30/r1M1MUXWQfJlrSbsTeh7m/XTwHbWUENvAJZpp1YA==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
|
"mathjax": {
|
||||||
|
"version": "3.0.5",
|
||||||
|
"resolved": "https://registry.npmjs.org/mathjax/-/mathjax-3.0.5.tgz",
|
||||||
|
"integrity": "sha512-9M7VulhltkD8sIebWutK/VfAD+m+6BIFqfpjDh9Pz/etoKUtjO6UMnOhUcDmNl6iApE8C9xrUmaMyNZkZAlrMw==",
|
||||||
|
"dev": true
|
||||||
|
},
|
||||||
"media-typer": {
|
"media-typer": {
|
||||||
"version": "0.3.0",
|
"version": "0.3.0",
|
||||||
"resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz",
|
"resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz",
|
||||||
|
|
|
@ -52,6 +52,7 @@
|
||||||
"lesshint": "6.3.7",
|
"lesshint": "6.3.7",
|
||||||
"localforage": "^1.5.2",
|
"localforage": "^1.5.2",
|
||||||
"marked": "^1.1.0",
|
"marked": "^1.1.0",
|
||||||
|
"mathjax": "3.0.5",
|
||||||
"open-sans-fontface": "^1.4.0",
|
"open-sans-fontface": "^1.4.0",
|
||||||
"rangy": "~1.3.0",
|
"rangy": "~1.3.0",
|
||||||
"require-css": "0.1.10",
|
"require-css": "0.1.10",
|
||||||
|
|
|
@ -36,6 +36,7 @@ Fse.mkdirpSync(componentsPath);
|
||||||
"saferphore",
|
"saferphore",
|
||||||
"jszip",
|
"jszip",
|
||||||
"dragula",
|
"dragula",
|
||||||
|
"mathjax",
|
||||||
].forEach(l => {
|
].forEach(l => {
|
||||||
const source = Path.join("node_modules", l);
|
const source = Path.join("node_modules", l);
|
||||||
const destination = Path.join(componentsPath, l);
|
const destination = Path.join(componentsPath, l);
|
||||||
|
|
|
@ -57,7 +57,7 @@ define([
|
||||||
__stubbed: true,
|
__stubbed: true,
|
||||||
tex2svg: function (a, b) {
|
tex2svg: function (a, b) {
|
||||||
require([
|
require([
|
||||||
'/bower_components/MathJax/es5/tex-svg.js',
|
'/components/mathjax/es5/tex-svg.js',
|
||||||
], function () {
|
], function () {
|
||||||
console.debug("Loaded mathjax");
|
console.debug("Loaded mathjax");
|
||||||
if (Mathjax.__stubbed) {
|
if (Mathjax.__stubbed) {
|
||||||
|
|
Loading…
Reference in a new issue