vue3-sphinx-xml 0.3.3 → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Admonition-4dbe3f53.mjs +41 -0
- package/dist/Admonition-4dbe3f53.mjs.map +1 -0
- package/dist/BlockQuote-0b464fcb.mjs +39 -0
- package/dist/BlockQuote-0b464fcb.mjs.map +1 -0
- package/dist/CaptionNumber-02430764.mjs +41 -0
- package/dist/CaptionNumber-02430764.mjs.map +1 -0
- package/dist/ColumnGroup-baa1b99b.mjs +37 -0
- package/dist/ColumnGroup-baa1b99b.mjs.map +1 -0
- package/dist/Comment-f2157760.mjs +31 -0
- package/dist/Comment-f2157760.mjs.map +1 -0
- package/dist/Compound-ae2a8a98.mjs +35 -0
- package/dist/Compound-ae2a8a98.mjs.map +1 -0
- package/dist/Container-19a7431d.mjs +55 -0
- package/dist/Container-19a7431d.mjs.map +1 -0
- package/dist/DirectElementMap-4c6f8e80.mjs +21 -0
- package/dist/DirectElementMap-4c6f8e80.mjs.map +1 -0
- package/dist/DownloadReference-1df41bf0.mjs +40 -0
- package/dist/DownloadReference-1df41bf0.mjs.map +1 -0
- package/dist/Figure-12e7efef.mjs +43 -0
- package/dist/Figure-12e7efef.mjs.map +1 -0
- package/dist/FigureCaption-7b351f25.mjs +46 -0
- package/dist/FigureCaption-7b351f25.mjs.map +1 -0
- package/dist/Footnote-e4b02243.mjs +38 -0
- package/dist/Footnote-e4b02243.mjs.map +1 -0
- package/dist/FootnoteReference-b5b67601.mjs +44 -0
- package/dist/FootnoteReference-b5b67601.mjs.map +1 -0
- package/dist/Image-15e1e5bd.mjs +40 -0
- package/dist/Image-15e1e5bd.mjs.map +1 -0
- package/dist/Legend-878a7ec8.mjs +41 -0
- package/dist/Legend-878a7ec8.mjs.map +1 -0
- package/dist/LineBlock-8eec127a.mjs +38 -0
- package/dist/LineBlock-8eec127a.mjs.map +1 -0
- package/dist/LineSingle-6a9fabdf.mjs +40 -0
- package/dist/LineSingle-6a9fabdf.mjs.map +1 -0
- package/dist/Literal-edb2ce6f.mjs +47 -0
- package/dist/Literal-edb2ce6f.mjs.map +1 -0
- package/dist/LiteralBlock-a2af758b.mjs +42 -0
- package/dist/LiteralBlock-a2af758b.mjs.map +1 -0
- package/dist/Math-7ccdef36.mjs +28 -0
- package/dist/Math-7ccdef36.mjs.map +1 -0
- package/dist/MathBlock-f8b3d549.mjs +59 -0
- package/dist/MathBlock-f8b3d549.mjs.map +1 -0
- package/dist/Note-4413dcab.mjs +39 -0
- package/dist/Note-4413dcab.mjs.map +1 -0
- package/dist/NumberReference-2143cb23.mjs +53 -0
- package/dist/NumberReference-2143cb23.mjs.map +1 -0
- package/dist/Problematic-3d793374.mjs +42 -0
- package/dist/Problematic-3d793374.mjs.map +1 -0
- package/dist/Raw-dcdd7f96.mjs +10 -0
- package/dist/Raw-dcdd7f96.mjs.map +1 -0
- package/dist/Reference-80a8b234.mjs +57 -0
- package/dist/Reference-80a8b234.mjs.map +1 -0
- package/dist/Section-9ba27ca3.mjs +42 -0
- package/dist/Section-9ba27ca3.mjs.map +1 -0
- package/dist/Skip-4a46064f.mjs +19 -0
- package/dist/Skip-4a46064f.mjs.map +1 -0
- package/dist/StandardElement-64bcb6c4.mjs +62 -0
- package/dist/StandardElement-64bcb6c4.mjs.map +1 -0
- package/dist/Text-0d6b5332.mjs +24 -0
- package/dist/Text-0d6b5332.mjs.map +1 -0
- package/dist/Title-4ea6531d.mjs +49 -0
- package/dist/Title-4ea6531d.mjs.map +1 -0
- package/dist/TodoNode-9696576f.mjs +44 -0
- package/dist/TodoNode-9696576f.mjs.map +1 -0
- package/dist/Topic-5c1f63eb.mjs +41 -0
- package/dist/Topic-5c1f63eb.mjs.map +1 -0
- package/dist/Transition-3485737d.mjs +15 -0
- package/dist/Transition-3485737d.mjs.map +1 -0
- package/dist/Warning-5cbf4ef9.mjs +47 -0
- package/dist/Warning-5cbf4ef9.mjs.map +1 -0
- package/dist/basereference-dc2b6871.mjs +42 -0
- package/dist/basereference-dc2b6871.mjs.map +1 -0
- package/dist/{entry.js → entry-185f60c1.mjs} +7937 -6939
- package/dist/entry-185f60c1.mjs.map +1 -0
- package/dist/methods-f5038371.mjs +69 -0
- package/dist/methods-f5038371.mjs.map +1 -0
- package/dist/style.css +1 -1
- package/dist/vue3-sphinx-xml.mjs +12 -0
- package/dist/vue3-sphinx-xml.mjs.map +1 -0
- package/package.json +8 -9
- package/dist/Admonition.js +0 -72
- package/dist/Admonition.js.map +0 -1
- package/dist/BlockQuote.js +0 -42
- package/dist/BlockQuote.js.map +0 -1
- package/dist/CaptionNumber.js +0 -70
- package/dist/CaptionNumber.js.map +0 -1
- package/dist/ColumnGroup.js +0 -44
- package/dist/ColumnGroup.js.map +0 -1
- package/dist/Comment.js +0 -34
- package/dist/Comment.js.map +0 -1
- package/dist/Compound.js +0 -38
- package/dist/Compound.js.map +0 -1
- package/dist/Container.js +0 -79
- package/dist/Container.js.map +0 -1
- package/dist/DirectElementMap.js +0 -22
- package/dist/DirectElementMap.js.map +0 -1
- package/dist/DownloadReference.js +0 -47
- package/dist/DownloadReference.js.map +0 -1
- package/dist/Figure.js +0 -54
- package/dist/Figure.js.map +0 -1
- package/dist/FigureCaption.js +0 -76
- package/dist/FigureCaption.js.map +0 -1
- package/dist/Footnote.js +0 -44
- package/dist/Footnote.js.map +0 -1
- package/dist/FootnoteReference.js +0 -48
- package/dist/FootnoteReference.js.map +0 -1
- package/dist/Image.js +0 -52
- package/dist/Image.js.map +0 -1
- package/dist/Legend.js +0 -44
- package/dist/Legend.js.map +0 -1
- package/dist/LineBlock.js +0 -44
- package/dist/LineBlock.js.map +0 -1
- package/dist/LineSingle.js +0 -45
- package/dist/LineSingle.js.map +0 -1
- package/dist/Literal.js +0 -63
- package/dist/Literal.js.map +0 -1
- package/dist/LiteralBlock.js +0 -49
- package/dist/LiteralBlock.js.map +0 -1
- package/dist/Math.js +0 -25
- package/dist/Math.js.map +0 -1
- package/dist/MathBlock.js +0 -77
- package/dist/MathBlock.js.map +0 -1
- package/dist/Note.js +0 -47
- package/dist/Note.js.map +0 -1
- package/dist/NumberReference.js +0 -59
- package/dist/NumberReference.js.map +0 -1
- package/dist/Problematic.js +0 -44
- package/dist/Problematic.js.map +0 -1
- package/dist/Raw.js +0 -10
- package/dist/Raw.js.map +0 -1
- package/dist/Reference.js +0 -58
- package/dist/Reference.js.map +0 -1
- package/dist/Section.js +0 -52
- package/dist/Section.js.map +0 -1
- package/dist/Skip.js +0 -18
- package/dist/Skip.js.map +0 -1
- package/dist/StandardElement.js +0 -99
- package/dist/StandardElement.js.map +0 -1
- package/dist/Text.js +0 -23
- package/dist/Text.js.map +0 -1
- package/dist/Title.js +0 -65
- package/dist/Title.js.map +0 -1
- package/dist/TodoNode.js +0 -53
- package/dist/TodoNode.js.map +0 -1
- package/dist/Topic.js +0 -48
- package/dist/Topic.js.map +0 -1
- package/dist/Transition.js +0 -9
- package/dist/Transition.js.map +0 -1
- package/dist/Warning.js +0 -55
- package/dist/Warning.js.map +0 -1
- package/dist/basereference.js +0 -41
- package/dist/basereference.js.map +0 -1
- package/dist/entry.js.map +0 -1
- package/dist/methods.js +0 -138
- package/dist/methods.js.map +0 -1
- package/dist/vue3-sphinx-xml.es.js +0 -8
- package/dist/vue3-sphinx-xml.es.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Image-15e1e5bd.mjs","sources":["../src/components/templates/Image.vue"],"sourcesContent":["<template>\n <img :=\"attrs\" />\n</template>\n\n<script setup>\nimport { computed, toRefs, ref } from 'vue'\nimport { useRoute } from 'vue-router'\nimport { useSphinxStore } from '@/stores/sphinx'\n\nimport { useMethods } from '../../composables/methods'\nimport { useChildren } from '../../composables/computed'\nimport { determineRouteUrl } from '../../js/utilities'\n\nconst props = defineProps({\n node: {\n type: undefined,\n default: null,\n },\n componentName: {\n type: String,\n },\n properties: {\n type: Object,\n },\n})\n\nconst { node } = toRefs(props)\nconst { children } = useChildren(node)\nconst { dataObject } = useMethods()\nconst route = useRoute()\nconst sphinxStore = useSphinxStore()\nconst attrs = ref({})\n\nconst uri = computed(() => {\n let imageURI = node.value.getAttribute('uri')\n if (imageURI && !imageURI.startsWith('/') && !imageURI.startsWith('http')) {\n const routeURL = determineRouteUrl(route)\n // Sphinx puts all images in a directory '_images' by default\n // for HTML output. We are saying here that we will map the\n // XML image reference the same way.\n const lastIndex = imageURI.lastIndexOf('/')\n const imageName = imageURI.slice(lastIndex)\n // imageURI = `${this.$store.sphinx.getImagesURL(routeURL)}${imageName}`\n imageURI = [sphinxStore.getImagesURL(routeURL), imageName].join('/')\n }\n return imageURI\n})\n\nattrs.value = dataObject(node.value).attrs\nif (attrs.value) {\n attrs.value.src = uri\n} else {\n attrs.value = { src: uri }\n}\n</script>\n"],"names":["node","toRefs","props","useChildren","dataObject","useMethods","route","useRoute","sphinxStore","useSphinxStore","attrs","ref","uri","computed","imageURI","routeURL","determineRouteUrl","lastIndex","imageName"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;iBA0BM,EAAE,MAAAA,EAAI,IAAKC,EAAOC,CAAK;AACR,IAAAC,EAAYH,CAAI;AACrC,UAAM,EAAE,YAAAI,EAAY,IAAGC,EAAY,GAC7BC,IAAQC,EAAU,GAClBC,IAAcC,EAAgB,GAC9BC,IAAQC,EAAI,EAAE,GAEdC,IAAMC,EAAS,MAAM;AACzB,UAAIC,IAAWd,EAAK,MAAM,aAAa,KAAK;AAC5C,UAAIc,KAAY,CAACA,EAAS,WAAW,GAAG,KAAK,CAACA,EAAS,WAAW,MAAM,GAAG;AACzE,cAAMC,IAAWC,EAAkBV,CAAK,GAIlCW,IAAYH,EAAS,YAAY,GAAG,GACpCI,IAAYJ,EAAS,MAAMG,CAAS;AAE1C,QAAAH,IAAW,CAACN,EAAY,aAAaO,CAAQ,GAAGG,CAAS,EAAE,KAAK,GAAG;AAAA,MACpE;AACD,aAAOJ;AAAA,IACT,CAAC;AAED,WAAAJ,EAAM,QAAQN,EAAWJ,EAAK,KAAK,EAAE,OACjCU,EAAM,QACRA,EAAM,MAAM,MAAME,IAElBF,EAAM,QAAQ,EAAE,KAAKE,EAAK;;;"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { toRefs as l, openBlock as o, createElementBlock as t, normalizeClass as i, unref as r, Fragment as u, renderList as d, createBlock as f, resolveDynamicComponent as _ } from "vue";
|
|
2
|
+
import { a as y, u as g } from "./entry-185f60c1.mjs";
|
|
3
|
+
import "@hsorby/vue3-katex";
|
|
4
|
+
import "katex/dist/katex.min.css";
|
|
5
|
+
import "vue-router";
|
|
6
|
+
import "axios";
|
|
7
|
+
import "path-to-regexp";
|
|
8
|
+
const S = {
|
|
9
|
+
__name: "Legend",
|
|
10
|
+
props: {
|
|
11
|
+
node: {
|
|
12
|
+
type: void 0,
|
|
13
|
+
default: null
|
|
14
|
+
},
|
|
15
|
+
componentName: {
|
|
16
|
+
type: String
|
|
17
|
+
},
|
|
18
|
+
properties: {
|
|
19
|
+
type: Object
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
setup(s) {
|
|
23
|
+
const p = s;
|
|
24
|
+
console.log("***** IN USE *****");
|
|
25
|
+
const { node: n } = l(p), { children: m } = y(n), { classes: a } = g(n);
|
|
26
|
+
return (k, C) => (o(), t("div", {
|
|
27
|
+
class: i(r(a))
|
|
28
|
+
}, [
|
|
29
|
+
(o(!0), t(u, null, d(r(m), (e, c) => (o(), f(_(e.component), {
|
|
30
|
+
key: "container_component_" + c,
|
|
31
|
+
node: e.node,
|
|
32
|
+
componentName: e.name,
|
|
33
|
+
properties: e.properties
|
|
34
|
+
}, null, 8, ["node", "componentName", "properties"]))), 128))
|
|
35
|
+
], 2));
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
export {
|
|
39
|
+
S as default
|
|
40
|
+
};
|
|
41
|
+
//# sourceMappingURL=Legend-878a7ec8.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Legend-878a7ec8.mjs","sources":["../src/components/templates/Legend.vue"],"sourcesContent":["<template>\n <div :class=\"classes\">\n <component\n v-for=\"(c, index) in children\"\n :key=\"'container_component_' + index\"\n :is=\"c.component\"\n :node=\"c.node\"\n :componentName=\"c.name\"\n :properties=\"c.properties\"\n />\n </div>\n</template>\n\n<script setup>\nimport { toRefs } from 'vue'\n\nimport { useChildren, useClasses } from '../../composables/computed'\n\nconsole.log('***** IN USE *****')\nconst props = defineProps({\n node: {\n type: undefined,\n default: null,\n },\n componentName: {\n type: String,\n },\n properties: {\n type: Object,\n },\n})\n\nconst { node } = toRefs(props)\n\nconst { children } = useChildren(node)\nconst { classes } = useClasses(node)\n</script>\n"],"names":["node","toRefs","props","children","useChildren","classes","useClasses"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAkBA,YAAQ,IAAI,oBAAoB;AAchC,UAAM,EAAE,MAAAA,EAAI,IAAKC,EAAOC,CAAK,GAEvB,EAAE,UAAAC,EAAQ,IAAKC,EAAYJ,CAAI,GAC/B,EAAE,SAAAK,EAAO,IAAKC,EAAWN,CAAI;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { toRefs as i, ref as l, openBlock as o, createElementBlock as r, normalizeProps as u, guardReactiveProps as d, Fragment as f, renderList as _, unref as k, createBlock as v, resolveDynamicComponent as y } from "vue";
|
|
2
|
+
import { a as h } from "./entry-185f60c1.mjs";
|
|
3
|
+
import { u as B } from "./methods-f5038371.mjs";
|
|
4
|
+
import "@hsorby/vue3-katex";
|
|
5
|
+
import "katex/dist/katex.min.css";
|
|
6
|
+
import "vue-router";
|
|
7
|
+
import "axios";
|
|
8
|
+
import "path-to-regexp";
|
|
9
|
+
const z = {
|
|
10
|
+
__name: "LineBlock",
|
|
11
|
+
props: {
|
|
12
|
+
node: {
|
|
13
|
+
type: void 0,
|
|
14
|
+
default: null
|
|
15
|
+
},
|
|
16
|
+
componentName: {
|
|
17
|
+
type: String
|
|
18
|
+
},
|
|
19
|
+
properties: {
|
|
20
|
+
type: Object
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
setup(p) {
|
|
24
|
+
const s = p, { dataObject: a } = B(), { node: t } = i(s), n = l({}), { children: m } = h(t);
|
|
25
|
+
return n.value = a(t.value, ["line_block"]).attrs, (b, g) => (o(), r("div", u(d(n.value)), [
|
|
26
|
+
(o(!0), r(f, null, _(k(m), (e, c) => (o(), v(y(e.component), {
|
|
27
|
+
key: "section_component_" + c,
|
|
28
|
+
node: e.node,
|
|
29
|
+
componentName: e.name,
|
|
30
|
+
properties: e.properties
|
|
31
|
+
}, null, 8, ["node", "componentName", "properties"]))), 128))
|
|
32
|
+
], 16));
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
export {
|
|
36
|
+
z as default
|
|
37
|
+
};
|
|
38
|
+
//# sourceMappingURL=LineBlock-8eec127a.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LineBlock-8eec127a.mjs","sources":["../src/components/templates/LineBlock.vue"],"sourcesContent":["<template>\n <div :=\"attrs\">\n <component\n v-for=\"(c, index) in children\"\n :key=\"'section_component_' + index\"\n :is=\"c.component\"\n :node=\"c.node\"\n :componentName=\"c.name\"\n :properties=\"c.properties\"\n />\n </div>\n</template>\n\n<script setup>\nimport { toRefs, ref } from 'vue'\n\nimport { useChildren } from '../../composables/computed'\nimport { useMethods } from '../../composables/methods'\n\nconst props = defineProps({\n node: {\n type: undefined,\n default: null,\n },\n componentName: {\n type: String,\n },\n properties: {\n type: Object,\n },\n})\n\nconst { dataObject } = useMethods()\nconst { node } = toRefs(props)\nconst attrs = ref({})\n\nconst { children } = useChildren(node)\nattrs.value = dataObject(node.value, ['line_block']).attrs\n</script>\n"],"names":["dataObject","useMethods","node","toRefs","props","attrs","ref","children","useChildren"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;iBAgCM,EAAE,YAAAA,EAAY,IAAGC,EAAY,GAC7B,EAAE,MAAAC,EAAI,IAAKC,EAAOC,CAAK,GACvBC,IAAQC,EAAI,EAAE,GAEd,EAAE,UAAAC,EAAQ,IAAKC,EAAYN,CAAI;AACrC,WAAAG,EAAM,QAAQL,EAAWE,EAAK,OAAO,CAAC,YAAY,CAAC,EAAE;;;;;;;;;;"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { toRefs as l, ref as c, openBlock as o, createElementBlock as r, normalizeProps as u, guardReactiveProps as d, Fragment as f, renderList as _, unref as g, createBlock as v, resolveDynamicComponent as y } from "vue";
|
|
2
|
+
import { u as h } from "./methods-f5038371.mjs";
|
|
3
|
+
import { a as k } from "./entry-185f60c1.mjs";
|
|
4
|
+
import "@hsorby/vue3-katex";
|
|
5
|
+
import "katex/dist/katex.min.css";
|
|
6
|
+
import "vue-router";
|
|
7
|
+
import "axios";
|
|
8
|
+
import "path-to-regexp";
|
|
9
|
+
const P = {
|
|
10
|
+
__name: "LineSingle",
|
|
11
|
+
props: {
|
|
12
|
+
node: {
|
|
13
|
+
type: void 0,
|
|
14
|
+
default: null
|
|
15
|
+
},
|
|
16
|
+
componentName: {
|
|
17
|
+
type: String
|
|
18
|
+
},
|
|
19
|
+
properties: {
|
|
20
|
+
type: Object
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
setup(p) {
|
|
24
|
+
const s = p;
|
|
25
|
+
console.log("***** IN USE *****");
|
|
26
|
+
const { node: t } = l(s), { children: a } = k(t), { dataObject: m } = h(), n = c({});
|
|
27
|
+
return n.value = m(t.value, ["line_single"]).attrs, (N, B) => (o(), r("div", u(d(n.value)), [
|
|
28
|
+
(o(!0), r(f, null, _(g(a), (e, i) => (o(), v(y(e.component), {
|
|
29
|
+
key: "footnote_component_" + i,
|
|
30
|
+
node: e.node,
|
|
31
|
+
componentName: e.name,
|
|
32
|
+
properties: e.properties
|
|
33
|
+
}, null, 8, ["node", "componentName", "properties"]))), 128))
|
|
34
|
+
], 16));
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
export {
|
|
38
|
+
P as default
|
|
39
|
+
};
|
|
40
|
+
//# sourceMappingURL=LineSingle-6a9fabdf.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LineSingle-6a9fabdf.mjs","sources":["../src/components/templates/LineSingle.vue"],"sourcesContent":["<template>\n <div :=\"attrs\">\n <component\n v-for=\"(c, index) in children\"\n :key=\"'footnote_component_' + index\"\n :is=\"c.component\"\n :node=\"c.node\"\n :componentName=\"c.name\"\n :properties=\"c.properties\"\n />\n </div>\n</template>\n\n<script setup>\nimport { toRefs, ref } from 'vue'\n\nimport { useMethods } from '../../composables/methods'\nimport { useChildren } from '../../composables/computed'\n\nconsole.log('***** IN USE *****')\n\nconst props = defineProps({\n node: {\n type: undefined,\n default: null,\n },\n componentName: {\n type: String,\n },\n properties: {\n type: Object,\n },\n})\n\nconst { node } = toRefs(props)\nconst { children } = useChildren(node)\nconst { dataObject } = useMethods()\nconst attrs = ref({})\n\nattrs.value = dataObject(node.value, ['line_single']).attrs\n</script>\n"],"names":["node","toRefs","props","children","useChildren","dataObject","useMethods","attrs","ref"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAmBA,YAAQ,IAAI,oBAAoB;AAehC,UAAM,EAAE,MAAAA,EAAI,IAAKC,EAAOC,CAAK,GACvB,EAAE,UAAAC,EAAQ,IAAKC,EAAYJ,CAAI,GAC/B,EAAE,YAAAK,EAAY,IAAGC,EAAY,GAC7BC,IAAQC,EAAI,EAAE;AAEpB,WAAAD,EAAM,QAAQF,EAAWL,EAAK,OAAO,CAAC,aAAa,CAAC,EAAE;;;;;;;;;;"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { toRefs as d, ref as f, openBlock as n, createElementBlock as p, normalizeClass as _, createElementVNode as y, Fragment as h, renderList as v, unref as g, createBlock as k, resolveDynamicComponent as E } from "vue";
|
|
2
|
+
import { u as N } from "./methods-f5038371.mjs";
|
|
3
|
+
import { a as B } from "./entry-185f60c1.mjs";
|
|
4
|
+
import "@hsorby/vue3-katex";
|
|
5
|
+
import "katex/dist/katex.min.css";
|
|
6
|
+
import "vue-router";
|
|
7
|
+
import "axios";
|
|
8
|
+
import "path-to-regexp";
|
|
9
|
+
const C = { class: "pre" }, R = {
|
|
10
|
+
__name: "Literal",
|
|
11
|
+
props: {
|
|
12
|
+
node: {
|
|
13
|
+
type: void 0,
|
|
14
|
+
default: null
|
|
15
|
+
},
|
|
16
|
+
componentName: {
|
|
17
|
+
type: String
|
|
18
|
+
},
|
|
19
|
+
properties: {
|
|
20
|
+
type: Object
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
setup(c) {
|
|
24
|
+
const l = c, { node: r } = d(l), { dataObject: i } = N(), { children: m } = B(r), s = f(["literal", "notranslate"]), e = i(r.value);
|
|
25
|
+
return ((o) => {
|
|
26
|
+
for (const a in o)
|
|
27
|
+
if (o[a].language !== "")
|
|
28
|
+
return !1;
|
|
29
|
+
return !0;
|
|
30
|
+
})(e) || e.attrs && e.attrs.role && s.value.push(e.attrs.role), (o, a) => (n(), p("code", {
|
|
31
|
+
class: _(s.value)
|
|
32
|
+
}, [
|
|
33
|
+
y("span", C, [
|
|
34
|
+
(n(!0), p(h, null, v(g(m), (t, u) => (n(), k(E(t.component), {
|
|
35
|
+
key: "code_component_" + u,
|
|
36
|
+
node: t.node,
|
|
37
|
+
componentName: t.name,
|
|
38
|
+
properties: t.properties
|
|
39
|
+
}, null, 8, ["node", "componentName", "properties"]))), 128))
|
|
40
|
+
])
|
|
41
|
+
], 2));
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
export {
|
|
45
|
+
R as default
|
|
46
|
+
};
|
|
47
|
+
//# sourceMappingURL=Literal-edb2ce6f.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Literal-edb2ce6f.mjs","sources":["../src/components/templates/Literal.vue"],"sourcesContent":["<template>\n <code :class=\"classes\">\n <span class=\"pre\">\n <component\n v-for=\"(c, index) in children\"\n :key=\"'code_component_' + index\"\n :is=\"c.component\"\n :node=\"c.node\"\n :componentName=\"c.name\"\n :properties=\"c.properties\"\n />\n </span>\n </code>\n</template>\n\n<script setup>\nimport { toRefs, ref } from 'vue'\n\nimport { useMethods } from '../../composables/methods'\nimport { useChildren } from '../../composables/computed'\n\nconst props = defineProps({\n node: {\n type: undefined,\n default: null,\n },\n componentName: {\n type: String,\n },\n properties: {\n type: Object,\n },\n})\n\nconst { node } = toRefs(props)\n\nconst { dataObject } = useMethods()\n\nconst { children } = useChildren(node)\n\nconst classes = ref(['literal', 'notranslate'])\n\nconst v = dataObject(node.value)\nconst isEmpty = (d) => {\n for (const i in d) {\n if (d[i].language === '') {\n continue\n }\n return false\n }\n\n return true\n}\n\nif (!isEmpty(v)) {\n if (v.attrs && v.attrs.role) {\n classes.value.push(v.attrs.role)\n }\n}\n</script>\n"],"names":["node","toRefs","props","dataObject","useMethods","children","useChildren","classes","ref","v","d","i"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;iBAkCM,EAAE,MAAAA,EAAI,IAAKC,EAAOC,CAAK,GAEvB,EAAE,YAAAC,EAAY,IAAGC,EAAY,GAE7B,EAAE,UAAAC,EAAQ,IAAKC,EAAYN,CAAI,GAE/BO,IAAUC,EAAI,CAAC,WAAW,aAAa,CAAC,GAExCC,IAAIN,EAAWH,EAAK,KAAK;AAY/B,YAXgB,CAACU,MAAM;AACrB,iBAAWC,KAAKD;AACd,YAAIA,EAAEC,CAAC,EAAE,aAAa;AAGtB,iBAAO;AAGT,aAAO;AAAA,IACT,GAEaF,CAAC,KACRA,EAAE,SAASA,EAAE,MAAM,QACrBF,EAAQ,MAAM,KAAKE,EAAE,MAAM,IAAI;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { toRefs as c, computed as o, resolveDirective as s, withDirectives as p, openBlock as u, createElementBlock as m, createElementVNode as d, normalizeClass as g, toDisplayString as f } from "vue";
|
|
2
|
+
import { c as h } from "./entry-185f60c1.mjs";
|
|
3
|
+
import "@hsorby/vue3-katex";
|
|
4
|
+
import "katex/dist/katex.min.css";
|
|
5
|
+
import "vue-router";
|
|
6
|
+
import "axios";
|
|
7
|
+
import "path-to-regexp";
|
|
8
|
+
const B = {
|
|
9
|
+
__name: "LiteralBlock",
|
|
10
|
+
props: {
|
|
11
|
+
node: {
|
|
12
|
+
type: void 0,
|
|
13
|
+
default: null
|
|
14
|
+
},
|
|
15
|
+
componentName: {
|
|
16
|
+
type: String
|
|
17
|
+
},
|
|
18
|
+
properties: {
|
|
19
|
+
type: Object
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
setup(r) {
|
|
23
|
+
const n = r, { node: t } = c(n), i = o(() => {
|
|
24
|
+
let e = t.value.getAttribute("language");
|
|
25
|
+
return e === "console" || e === "default" ? e = "bash" : e === "text" && (e = "plaintext"), e;
|
|
26
|
+
}), l = o(() => h(t.value.innerHTML));
|
|
27
|
+
return (e, v) => {
|
|
28
|
+
const a = s("highlightjs");
|
|
29
|
+
return p((u(), m("pre", null, [
|
|
30
|
+
d("code", {
|
|
31
|
+
class: g(i.value)
|
|
32
|
+
}, f(l.value), 3)
|
|
33
|
+
])), [
|
|
34
|
+
[a]
|
|
35
|
+
]);
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
export {
|
|
40
|
+
B as default
|
|
41
|
+
};
|
|
42
|
+
//# sourceMappingURL=LiteralBlock-a2af758b.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LiteralBlock-a2af758b.mjs","sources":["../src/components/templates/LiteralBlock.vue"],"sourcesContent":["<template>\n <pre v-highlightjs><code :class=\"sourceLanguage\">{{ sourceCode }}</code></pre>\n</template>\n\n<script setup>\nimport { computed, toRefs } from 'vue'\n\nimport { decodeHTML } from '../../js/utilities'\n\nconst props = defineProps({\n node: {\n type: undefined,\n default: null,\n },\n componentName: {\n type: String,\n },\n properties: {\n type: Object,\n },\n})\n\nconst { node } = toRefs(props)\n\nconst sourceLanguage = computed(() => {\n let language = node.value.getAttribute('language')\n if (language === 'console' || language === 'default') {\n language = 'bash'\n } else if (language === 'text') {\n language = 'plaintext'\n }\n return language\n})\n\nconst sourceCode = computed(() => {\n return decodeHTML(node.value.innerHTML)\n})\n</script>\n"],"names":["node","toRefs","props","sourceLanguage","computed","language","sourceCode","decodeHTML"],"mappings":";;;;;;;;;;;;;;;;;;;;;;iBAsBM,EAAE,MAAAA,EAAI,IAAKC,EAAOC,CAAK,GAEvBC,IAAiBC,EAAS,MAAM;AACpC,UAAIC,IAAWL,EAAK,MAAM,aAAa,UAAU;AACjD,aAAIK,MAAa,aAAaA,MAAa,YACzCA,IAAW,SACFA,MAAa,WACtBA,IAAW,cAENA;AAAA,IACT,CAAC,GAEKC,IAAaF,EAAS,MACnBG,EAAWP,EAAK,MAAM,SAAS,CACvC;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { resolveComponent as n, openBlock as o, createBlock as p } from "vue";
|
|
2
|
+
const a = {
|
|
3
|
+
__name: "Math",
|
|
4
|
+
props: {
|
|
5
|
+
node: {
|
|
6
|
+
type: void 0,
|
|
7
|
+
default: null
|
|
8
|
+
},
|
|
9
|
+
componentName: {
|
|
10
|
+
type: String
|
|
11
|
+
},
|
|
12
|
+
properties: {
|
|
13
|
+
type: Object
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
setup(e) {
|
|
17
|
+
return (r, c) => {
|
|
18
|
+
const t = n("katex-element");
|
|
19
|
+
return o(), p(t, {
|
|
20
|
+
expression: e.node.textContent
|
|
21
|
+
}, null, 8, ["expression"]);
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
export {
|
|
26
|
+
a as default
|
|
27
|
+
};
|
|
28
|
+
//# sourceMappingURL=Math-7ccdef36.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Math-7ccdef36.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { toRefs as _, computed as v, resolveComponent as x, openBlock as a, createElementBlock as i, Fragment as b, renderList as h, createVNode as k } from "vue";
|
|
2
|
+
const y = { class: "katex-block" }, E = {
|
|
3
|
+
__name: "MathBlock",
|
|
4
|
+
props: {
|
|
5
|
+
node: {
|
|
6
|
+
type: void 0,
|
|
7
|
+
default: null
|
|
8
|
+
},
|
|
9
|
+
componentName: {
|
|
10
|
+
type: String
|
|
11
|
+
},
|
|
12
|
+
properties: {
|
|
13
|
+
type: Object
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
setup(s) {
|
|
17
|
+
const l = s, c = ["\\begin{equation}", "\\end{equation}"], d = /* @__PURE__ */ new Map([
|
|
18
|
+
["\\begin{align}", "\\begin{aligned}"],
|
|
19
|
+
["\\begin{eqnarray}", "\\begin{aligned}"],
|
|
20
|
+
["\\end{align}", "\\end{aligned}"],
|
|
21
|
+
["\\end{eqnarray}", "\\end{aligned}"]
|
|
22
|
+
]), { node: p } = _(l), u = v(() => {
|
|
23
|
+
let n = [];
|
|
24
|
+
const r = p.value.innerHTML.split(/\r?\n\r?\n/);
|
|
25
|
+
for (const t of r)
|
|
26
|
+
if (t) {
|
|
27
|
+
let e = t.replaceAll("&", "&");
|
|
28
|
+
for (const o of c)
|
|
29
|
+
e = e.replaceAll(o, "");
|
|
30
|
+
for (let [o, g] of d)
|
|
31
|
+
e = e.replaceAll(o, g);
|
|
32
|
+
m(e) && !f(e) && (e = `\\begin{array}{cc}${e}\\end{array}`), n.push(e);
|
|
33
|
+
}
|
|
34
|
+
return n;
|
|
35
|
+
});
|
|
36
|
+
function m(n) {
|
|
37
|
+
const r = n.search("&"), t = n.search("\\\\");
|
|
38
|
+
return r !== -1 && t !== -1;
|
|
39
|
+
}
|
|
40
|
+
function f(n) {
|
|
41
|
+
const r = n.search("begin{aligned}"), t = n.search("end{aligned}");
|
|
42
|
+
return r !== -1 && t !== -1;
|
|
43
|
+
}
|
|
44
|
+
return (n, r) => {
|
|
45
|
+
const t = x("katex-element");
|
|
46
|
+
return a(), i("div", y, [
|
|
47
|
+
(a(!0), i(b, null, h(u.value, (e, o) => (a(), i("div", {
|
|
48
|
+
key: "math_" + o
|
|
49
|
+
}, [
|
|
50
|
+
k(t, { expression: e }, null, 8, ["expression"])
|
|
51
|
+
]))), 128))
|
|
52
|
+
]);
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
};
|
|
56
|
+
export {
|
|
57
|
+
E as default
|
|
58
|
+
};
|
|
59
|
+
//# sourceMappingURL=MathBlock-f8b3d549.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MathBlock-f8b3d549.mjs","sources":["../src/components/templates/MathBlock.vue"],"sourcesContent":["<template>\n <div class=\"katex-block\">\n <div v-for=\"(formula, index) in formulas\" :key=\"'math_' + index\">\n <katex-element :expression=\"formula\"></katex-element>\n </div>\n </div>\n</template>\n\n<script setup>\nimport { computed, toRefs } from 'vue'\n// Unsupported delimiters/formatting.\nconst removeList = ['\\\\begin{equation}', '\\\\end{equation}']\n\nconst renameMap = new Map([\n ['\\\\begin{align}', '\\\\begin{aligned}'],\n ['\\\\begin{eqnarray}', '\\\\begin{aligned}'],\n ['\\\\end{align}', '\\\\end{aligned}'],\n ['\\\\end{eqnarray}', '\\\\end{aligned}'],\n])\n\nconst props = defineProps({\n node: {\n type: undefined,\n default: null,\n },\n componentName: {\n type: String,\n },\n properties: {\n type: Object,\n },\n})\n\nconst { node } = toRefs(props)\n\nconst formulas = computed(() => {\n let formulas = []\n const multiEquations = node.value.innerHTML.split(/\\r?\\n\\r?\\n/)\n for (const equation of multiEquations) {\n if (equation) {\n let stripped = equation.replaceAll('&', '&')\n for (const item of removeList) {\n stripped = stripped.replaceAll(item, '')\n }\n for (let [key, value] of renameMap) {\n stripped = stripped.replaceAll(key, value)\n }\n if (requiresSplitEnvironment(stripped) && !hasEnvironment(stripped)) {\n // Create an environment that looks like a split environment\n stripped = `\\\\begin{array}{cc}${stripped}\\\\end{array}`\n }\n formulas.push(stripped)\n }\n }\n return formulas\n})\n\nfunction requiresSplitEnvironment(formula) {\n const ampersandIndex = formula.search('&')\n const newLineIndex = formula.search('\\\\\\\\')\n if (ampersandIndex !== -1 && newLineIndex !== -1) {\n return true\n }\n return false\n}\n\nfunction hasEnvironment(formula) {\n // For some reason search doesn't return 0 if looking for \\ at the start of a string.\n // So we don't look for it.\n const beginEnvironmentIndex = formula.search('begin{aligned}')\n const endEnvironmentIndex = formula.search('end{aligned}')\n if (beginEnvironmentIndex !== -1 && endEnvironmentIndex !== -1) {\n return true\n }\n return false\n}\n</script>\n"],"names":["removeList","renameMap","node","toRefs","props","formulas","computed","multiEquations","equation","stripped","item","key","value","requiresSplitEnvironment","hasEnvironment","formula","ampersandIndex","newLineIndex","beginEnvironmentIndex","endEnvironmentIndex"],"mappings":";;;;;;;;;;;;;;;;iBAWMA,IAAa,CAAC,qBAAqB,iBAAiB,GAEpDC,IAAY,oBAAI,IAAI;AAAA,MACxB,CAAC,kBAAkB,kBAAkB;AAAA,MACrC,CAAC,qBAAqB,kBAAkB;AAAA,MACxC,CAAC,gBAAgB,gBAAgB;AAAA,MACjC,CAAC,mBAAmB,gBAAgB;AAAA,IACtC,CAAC,GAeK,EAAE,MAAAC,EAAI,IAAKC,EAAOC,CAAK,GAEvBC,IAAWC,EAAS,MAAM;AAC9B,UAAID,IAAW,CAAE;AACjB,YAAME,IAAiBL,EAAK,MAAM,UAAU,MAAM,YAAY;AAC9D,iBAAWM,KAAYD;AACrB,YAAIC,GAAU;AACZ,cAAIC,IAAWD,EAAS,WAAW,SAAS,GAAG;AAC/C,qBAAWE,KAAQV;AACjB,YAAAS,IAAWA,EAAS,WAAWC,GAAM,EAAE;AAEzC,mBAAS,CAACC,GAAKC,CAAK,KAAKX;AACvB,YAAAQ,IAAWA,EAAS,WAAWE,GAAKC,CAAK;AAE3C,UAAIC,EAAyBJ,CAAQ,KAAK,CAACK,EAAeL,CAAQ,MAEhEA,IAAW,qBAAqBA,CAAQ,iBAE1CJ,EAAS,KAAKI,CAAQ;AAAA,QACvB;AAEH,aAAOJ;AAAA,IACT,CAAC;AAED,aAASQ,EAAyBE,GAAS;AACzC,YAAMC,IAAiBD,EAAQ,OAAO,GAAG,GACnCE,IAAeF,EAAQ,OAAO,MAAM;AAC1C,aAAIC,MAAmB,MAAMC,MAAiB;AAAA,IAIhD;AAEA,aAASH,EAAeC,GAAS;AAG/B,YAAMG,IAAwBH,EAAQ,OAAO,gBAAgB,GACvDI,IAAsBJ,EAAQ,OAAO,cAAc;AACzD,aAAIG,MAA0B,MAAMC,MAAwB;AAAA,IAI9D;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { toRefs as c, ref as l, openBlock as t, createElementBlock as r, normalizeProps as d, guardReactiveProps as u, Fragment as f, renderList as _, unref as v, createBlock as N, resolveDynamicComponent as h, createElementVNode as y } from "vue";
|
|
2
|
+
import { u as k } from "./methods-f5038371.mjs";
|
|
3
|
+
import { a as g } from "./entry-185f60c1.mjs";
|
|
4
|
+
import "@hsorby/vue3-katex";
|
|
5
|
+
import "katex/dist/katex.min.css";
|
|
6
|
+
import "vue-router";
|
|
7
|
+
import "axios";
|
|
8
|
+
import "path-to-regexp";
|
|
9
|
+
const B = /* @__PURE__ */ y("p", { class: "admonition-title" }, "Note", -1), F = {
|
|
10
|
+
__name: "Note",
|
|
11
|
+
props: {
|
|
12
|
+
node: {
|
|
13
|
+
type: void 0,
|
|
14
|
+
default: null
|
|
15
|
+
},
|
|
16
|
+
componentName: {
|
|
17
|
+
type: String
|
|
18
|
+
},
|
|
19
|
+
properties: {
|
|
20
|
+
type: Object
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
setup(p) {
|
|
24
|
+
const a = p, { node: o } = c(a), { dataObject: s } = k(), n = l({}), { children: m } = g(o);
|
|
25
|
+
return n.value = s(o.value, ["admonition", "note"]).attrs, (b, j) => (t(), r("div", d(u(n.value)), [
|
|
26
|
+
B,
|
|
27
|
+
(t(!0), r(f, null, _(v(m), (e, i) => (t(), N(h(e.component), {
|
|
28
|
+
key: "note_component_" + i,
|
|
29
|
+
node: e.node,
|
|
30
|
+
componentName: e.name,
|
|
31
|
+
properties: e.properties
|
|
32
|
+
}, null, 8, ["node", "componentName", "properties"]))), 128))
|
|
33
|
+
], 16));
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
export {
|
|
37
|
+
F as default
|
|
38
|
+
};
|
|
39
|
+
//# sourceMappingURL=Note-4413dcab.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Note-4413dcab.mjs","sources":["../src/components/templates/Note.vue"],"sourcesContent":["<template>\n <div :=\"attrs\">\n <p class=\"admonition-title\">Note</p>\n <component\n v-for=\"(c, index) in children\"\n :key=\"'note_component_' + index\"\n :is=\"c.component\"\n :node=\"c.node\"\n :componentName=\"c.name\"\n :properties=\"c.properties\"\n />\n </div>\n</template>\n\n<script setup>\nimport { toRefs, ref } from 'vue'\n\nimport { useMethods } from '../../composables/methods'\nimport { useChildren } from '../../composables/computed'\n\nconst props = defineProps({\n node: {\n type: undefined,\n default: null,\n },\n componentName: {\n type: String,\n },\n properties: {\n type: Object,\n },\n})\n\nconst { node } = toRefs(props)\nconst { dataObject } = useMethods()\nconst attrs = ref({})\n\nconst { children } = useChildren(node)\n\nattrs.value = dataObject(node.value, ['admonition', 'note']).attrs\n</script>\n"],"names":["node","toRefs","props","dataObject","useMethods","attrs","ref","children","useChildren"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;iBAiCM,EAAE,MAAAA,EAAI,IAAKC,EAAOC,CAAK,GACvB,EAAE,YAAAC,EAAY,IAAGC,EAAY,GAC7BC,IAAQC,EAAI,EAAE,GAEd,EAAE,UAAAC,EAAQ,IAAKC,EAAYR,CAAI;AAErC,WAAAK,EAAM,QAAQF,EAAWH,EAAK,OAAO,CAAC,cAAc,MAAM,CAAC,EAAE;;;;;;;;;;;"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { ref as d, toRefs as _, onMounted as h, computed as v, resolveComponent as k, unref as o, openBlock as i, createBlock as g, withCtx as b, createTextVNode as R, toDisplayString as a, createElementBlock as y } from "vue";
|
|
2
|
+
import { useRoute as C } from "vue-router";
|
|
3
|
+
import { u as x } from "./methods-f5038371.mjs";
|
|
4
|
+
import { u as A } from "./basereference-dc2b6871.mjs";
|
|
5
|
+
import "./entry-185f60c1.mjs";
|
|
6
|
+
import "@hsorby/vue3-katex";
|
|
7
|
+
import "katex/dist/katex.min.css";
|
|
8
|
+
import "axios";
|
|
9
|
+
import "path-to-regexp";
|
|
10
|
+
const B = ["href"], H = {
|
|
11
|
+
__name: "NumberReference",
|
|
12
|
+
props: {
|
|
13
|
+
node: {
|
|
14
|
+
type: void 0,
|
|
15
|
+
default: null
|
|
16
|
+
},
|
|
17
|
+
componentName: {
|
|
18
|
+
type: String
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
setup(c) {
|
|
22
|
+
const s = c, n = d({ path: "", hash: "" }), { node: e } = _(s), l = C(), { isInternalReference: p } = x(), { onReferenceCreated: f } = A(e.value, l, n);
|
|
23
|
+
h(f);
|
|
24
|
+
const u = v(() => {
|
|
25
|
+
if (e.value.childElementCount)
|
|
26
|
+
return e.value.children[0].innerHTML;
|
|
27
|
+
let t = e.value.getAttribute("refid");
|
|
28
|
+
t || (t = e.value.getAttribute("refuri"));
|
|
29
|
+
const r = t.replace("-", " ");
|
|
30
|
+
return "Fig. " + r.charAt(0).toUpperCase() + r.slice(1);
|
|
31
|
+
});
|
|
32
|
+
return (t, r) => {
|
|
33
|
+
const m = k("router-link");
|
|
34
|
+
return o(p)(o(e)) ? (i(), g(m, {
|
|
35
|
+
key: 0,
|
|
36
|
+
to: n.value
|
|
37
|
+
}, {
|
|
38
|
+
default: b(() => [
|
|
39
|
+
R(a(u.value), 1)
|
|
40
|
+
]),
|
|
41
|
+
_: 1
|
|
42
|
+
}, 8, ["to"])) : (i(), y("a", {
|
|
43
|
+
key: 1,
|
|
44
|
+
href: o(e).getAttribute("refuri"),
|
|
45
|
+
target: "_blank"
|
|
46
|
+
}, a(u.value), 9, B));
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
export {
|
|
51
|
+
H as default
|
|
52
|
+
};
|
|
53
|
+
//# sourceMappingURL=NumberReference-2143cb23.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NumberReference-2143cb23.mjs","sources":["../src/components/templates/NumberReference.vue"],"sourcesContent":["<template>\n <router-link v-if=\"isInternalReference(node)\" :to=\"routeDescription\">\n {{ title }}\n </router-link>\n <a v-else :href=\"node.getAttribute('refuri')\" target=\"_blank\">\n {{ title }}\n </a>\n</template>\n\n<script setup>\nimport { computed, onMounted, toRefs, ref } from 'vue'\nimport { useRoute } from 'vue-router'\n\nimport { useMethods } from '../../composables/methods'\nimport { useBaseReference } from '../../composables/basereference'\n\nconst props = defineProps({\n node: {\n type: undefined,\n default: null,\n },\n componentName: {\n type: String,\n },\n})\n\nconst routeDescription = ref({path: '', hash: ''})\nconst { node } = toRefs(props)\nconst route = useRoute()\n\nconst { isInternalReference } = useMethods()\nconst { onReferenceCreated } = useBaseReference(node.value, route, routeDescription)\n\nonMounted(onReferenceCreated)\n\nconst title = computed(() => {\n if (node.value.childElementCount) {\n // A number reference has a single child element that\n // contains the label for the referenced element.\n // This is what we are assuming: <inline classes=\"std std-numref\">Fig. 3</inline>\n return node.value.children[0].innerHTML\n }\n\n let refLabel = node.value.getAttribute('refid')\n if (!refLabel) {\n refLabel = node.value.getAttribute('refuri')\n }\n const t = refLabel.replace('-', ' ')\n return 'Fig. ' + t.charAt(0).toUpperCase() + t.slice(1)\n})\n</script>\n"],"names":["routeDescription","ref","node","toRefs","props","route","useRoute","isInternalReference","useMethods","onReferenceCreated","useBaseReference","onMounted","title","computed","refLabel","t"],"mappings":";;;;;;;;;;;;;;;;;;;;;iBA0BMA,IAAmBC,EAAI,EAAC,MAAM,IAAI,MAAM,GAAE,CAAC,GAC3C,EAAE,MAAAC,EAAI,IAAKC,EAAOC,CAAK,GACvBC,IAAQC,EAAU,GAElB,EAAE,qBAAAC,EAAqB,IAAGC,EAAY,GACtC,EAAE,oBAAAC,EAAoB,IAAGC,EAAiBR,EAAK,OAAOG,GAAOL,CAAgB;AAEnF,IAAAW,EAAUF,CAAkB;AAE5B,UAAMG,IAAQC,EAAS,MAAM;AAC3B,UAAIX,EAAK,MAAM;AAIb,eAAOA,EAAK,MAAM,SAAS,CAAC,EAAE;AAGhC,UAAIY,IAAWZ,EAAK,MAAM,aAAa,OAAO;AAC9C,MAAKY,MACHA,IAAWZ,EAAK,MAAM,aAAa,QAAQ;AAE7C,YAAMa,IAAID,EAAS,QAAQ,KAAK,GAAG;AACnC,aAAO,UAAUC,EAAE,OAAO,CAAC,EAAE,gBAAgBA,EAAE,MAAM,CAAC;AAAA,IACxD,CAAC;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { toRefs as c, ref as a, resolveComponent as m, openBlock as l, createBlock as u, withCtx as d, createElementVNode as _, unref as e, toDisplayString as f } from "vue";
|
|
2
|
+
import { u as h } from "./methods-f5038371.mjs";
|
|
3
|
+
import "./entry-185f60c1.mjs";
|
|
4
|
+
import "@hsorby/vue3-katex";
|
|
5
|
+
import "katex/dist/katex.min.css";
|
|
6
|
+
import "vue-router";
|
|
7
|
+
import "axios";
|
|
8
|
+
import "path-to-regexp";
|
|
9
|
+
const x = ["id"], j = {
|
|
10
|
+
__name: "Problematic",
|
|
11
|
+
props: {
|
|
12
|
+
node: {
|
|
13
|
+
type: void 0,
|
|
14
|
+
default: null
|
|
15
|
+
},
|
|
16
|
+
componentName: {
|
|
17
|
+
type: String
|
|
18
|
+
},
|
|
19
|
+
properties: {
|
|
20
|
+
type: Object
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
setup(o) {
|
|
24
|
+
const r = o, { node: t } = c(r), n = a({ hash: "#" + t.value.getAttribute("refid") }), { extractId: i } = h(), { id: p } = i(t.value);
|
|
25
|
+
return (b, k) => {
|
|
26
|
+
const s = m("router-link");
|
|
27
|
+
return l(), u(s, { to: n.value }, {
|
|
28
|
+
default: d(() => [
|
|
29
|
+
_("span", {
|
|
30
|
+
class: "problematic",
|
|
31
|
+
id: e(p)
|
|
32
|
+
}, f(e(t).textContent), 9, x)
|
|
33
|
+
]),
|
|
34
|
+
_: 1
|
|
35
|
+
}, 8, ["to"]);
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
export {
|
|
40
|
+
j as default
|
|
41
|
+
};
|
|
42
|
+
//# sourceMappingURL=Problematic-3d793374.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Problematic-3d793374.mjs","sources":["../src/components/templates/Problematic.vue"],"sourcesContent":["<template>\n <router-link :to=\"routeDescription\">\n <span class=\"problematic\" :id=\"id\">{{\n node.textContent\n }}</span></router-link\n >\n</template>\n\n<script setup>\nimport { toRefs, ref } from 'vue'\n\nimport { useMethods } from '../../composables/methods'\n\nconst props = defineProps({\n node: {\n type: undefined,\n default: null,\n },\n componentName: {\n type: String,\n },\n properties: {\n type: Object,\n }\n})\n\nconst { node } = toRefs(props)\nconst routeDescription = ref({hash: '#' + node.value.getAttribute('refid')})\n\nconst { extractId } = useMethods()\nconst { id } = extractId(node.value)\n\n</script>\n"],"names":["node","toRefs","props","routeDescription","ref","extractId","useMethods","id"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;iBA0BM,EAAE,MAAAA,EAAI,IAAKC,EAAOC,CAAK,GACvBC,IAAmBC,EAAI,EAAC,MAAM,MAAMJ,EAAK,MAAM,aAAa,OAAO,EAAC,CAAC,GAErE,EAAE,WAAAK,EAAW,IAAGC,EAAY,GAC5B,EAAE,IAAAC,EAAI,IAAGF,EAAUL,EAAK,KAAK;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Raw-dcdd7f96.mjs","sources":["../src/components/templates/Raw.vue"],"sourcesContent":["<template></template>\n\n<script setup>\nconsole.log('**** Intentionally ignoring this element.')\n</script>\n"],"names":[],"mappings":";;;AAGA,mBAAQ,IAAI,2CAA2C;;;"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { ref as _, toRefs as h, onMounted as k, resolveComponent as y, unref as t, openBlock as n, createBlock as s, withCtx as C, createTextVNode as R, toDisplayString as g, createElementBlock as p, Fragment as x, renderList as v, resolveDynamicComponent as B } from "vue";
|
|
2
|
+
import { useRoute as N } from "vue-router";
|
|
3
|
+
import { a as b } from "./entry-185f60c1.mjs";
|
|
4
|
+
import { u as D } from "./methods-f5038371.mjs";
|
|
5
|
+
import { u as M } from "./basereference-dc2b6871.mjs";
|
|
6
|
+
import "@hsorby/vue3-katex";
|
|
7
|
+
import "katex/dist/katex.min.css";
|
|
8
|
+
import "axios";
|
|
9
|
+
import "path-to-regexp";
|
|
10
|
+
const S = ["href"], G = {
|
|
11
|
+
__name: "Reference",
|
|
12
|
+
props: {
|
|
13
|
+
node: {
|
|
14
|
+
type: void 0,
|
|
15
|
+
default: null
|
|
16
|
+
},
|
|
17
|
+
componentName: {
|
|
18
|
+
type: String
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
setup(a) {
|
|
22
|
+
const i = a, r = _({ path: "", hash: "" }), { node: e } = h(i), m = N(), { isInternalReference: u } = D(), { onReferenceCreated: c } = M(
|
|
23
|
+
e.value,
|
|
24
|
+
m,
|
|
25
|
+
r
|
|
26
|
+
);
|
|
27
|
+
k(c);
|
|
28
|
+
const { children: l } = b(e);
|
|
29
|
+
return (w, A) => {
|
|
30
|
+
const f = y("router-link");
|
|
31
|
+
return t(u)(t(e)) ? (n(), s(f, {
|
|
32
|
+
key: 0,
|
|
33
|
+
to: r.value
|
|
34
|
+
}, {
|
|
35
|
+
default: C(() => [
|
|
36
|
+
R(g(t(e).textContent), 1)
|
|
37
|
+
]),
|
|
38
|
+
_: 1
|
|
39
|
+
}, 8, ["to"])) : (n(), p("a", {
|
|
40
|
+
key: 1,
|
|
41
|
+
href: t(e).getAttribute("refuri"),
|
|
42
|
+
target: "_blank"
|
|
43
|
+
}, [
|
|
44
|
+
(n(!0), p(x, null, v(t(l), (o, d) => (n(), s(B(o.component), {
|
|
45
|
+
key: "sub_link_" + d,
|
|
46
|
+
node: o.node,
|
|
47
|
+
componentName: o.name,
|
|
48
|
+
properties: o.properties
|
|
49
|
+
}, null, 8, ["node", "componentName", "properties"]))), 128))
|
|
50
|
+
], 8, S));
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
};
|
|
54
|
+
export {
|
|
55
|
+
G as default
|
|
56
|
+
};
|
|
57
|
+
//# sourceMappingURL=Reference-80a8b234.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Reference-80a8b234.mjs","sources":["../src/components/templates/Reference.vue"],"sourcesContent":["<template>\n <router-link v-if=\"isInternalReference(node)\" :to=\"routeDescription\">\n {{ node.textContent }}\n </router-link>\n <a v-else :href=\"node.getAttribute('refuri')\" target=\"_blank\">\n <component\n v-for=\"(c, index) in children\"\n :key=\"'sub_link_' + index\"\n :is=\"c.component\"\n :node=\"c.node\"\n :componentName=\"c.name\"\n :properties=\"c.properties\"\n />\n </a>\n</template>\n\n<script setup>\nimport { onMounted, toRefs, ref } from 'vue'\nimport { useRoute } from 'vue-router'\n\nimport { useChildren } from '../../composables/computed'\nimport { useMethods } from '../../composables/methods'\nimport { useBaseReference } from '../../composables/basereference'\n\nconst props = defineProps({\n node: {\n type: undefined,\n default: null,\n },\n componentName: {\n type: String,\n },\n})\n\nconst routeDescription = ref({ path: '', hash: '' })\nconst { node } = toRefs(props)\nconst route = useRoute()\n\nconst { isInternalReference } = useMethods()\nconst { onReferenceCreated } = useBaseReference(\n node.value,\n route,\n routeDescription,\n)\n\nonMounted(onReferenceCreated)\nconst { children } = useChildren(node)\n</script>\n"],"names":["routeDescription","ref","node","toRefs","props","route","useRoute","isInternalReference","useMethods","onReferenceCreated","useBaseReference","onMounted","children","useChildren"],"mappings":";;;;;;;;;;;;;;;;;;;;;iBAkCMA,IAAmBC,EAAI,EAAE,MAAM,IAAI,MAAM,IAAI,GAC7C,EAAE,MAAAC,EAAI,IAAKC,EAAOC,CAAK,GACvBC,IAAQC,EAAU,GAElB,EAAE,qBAAAC,EAAqB,IAAGC,EAAY,GACtC,EAAE,oBAAAC,EAAoB,IAAGC;AAAA,MAC7BR,EAAK;AAAA,MACLG;AAAA,MACAL;AAAA,IACF;AAEA,IAAAW,EAAUF,CAAkB;AAC5B,UAAM,EAAE,UAAAG,EAAQ,IAAKC,EAAYX,CAAI;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { toRefs as f, openBlock as t, createElementBlock as o, unref as p, Fragment as i, renderList as c, createBlock as h, resolveDynamicComponent as y } from "vue";
|
|
2
|
+
import { u as k } from "./methods-f5038371.mjs";
|
|
3
|
+
import { a as x } from "./entry-185f60c1.mjs";
|
|
4
|
+
import "@hsorby/vue3-katex";
|
|
5
|
+
import "katex/dist/katex.min.css";
|
|
6
|
+
import "vue-router";
|
|
7
|
+
import "axios";
|
|
8
|
+
import "path-to-regexp";
|
|
9
|
+
const v = ["id"], B = ["id"], L = {
|
|
10
|
+
__name: "Section",
|
|
11
|
+
props: {
|
|
12
|
+
node: {
|
|
13
|
+
type: void 0,
|
|
14
|
+
default: null
|
|
15
|
+
},
|
|
16
|
+
componentName: {
|
|
17
|
+
type: String
|
|
18
|
+
},
|
|
19
|
+
properties: {
|
|
20
|
+
type: Object
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
setup(m) {
|
|
24
|
+
const a = m, { node: n } = f(a), { extractId: d, separateIds: l } = k(), { id: s } = d(n.value), { extraIds: u } = l(n.value, s), { children: _ } = x(n);
|
|
25
|
+
return (I, N) => (t(), o("section", { id: p(s) }, [
|
|
26
|
+
(t(!0), o(i, null, c(p(u), (e, r) => (t(), o("span", {
|
|
27
|
+
key: "id_span_" + r,
|
|
28
|
+
id: e
|
|
29
|
+
}, null, 8, B))), 128)),
|
|
30
|
+
(t(!0), o(i, null, c(p(_), (e, r) => (t(), h(y(e.component), {
|
|
31
|
+
key: "section_component_" + r,
|
|
32
|
+
node: e.node,
|
|
33
|
+
componentName: e.name,
|
|
34
|
+
properties: e.properties
|
|
35
|
+
}, null, 8, ["node", "componentName", "properties"]))), 128))
|
|
36
|
+
], 8, v));
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
export {
|
|
40
|
+
L as default
|
|
41
|
+
};
|
|
42
|
+
//# sourceMappingURL=Section-9ba27ca3.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Section-9ba27ca3.mjs","sources":["../src/components/templates/Section.vue"],"sourcesContent":["<template>\n <section :id=\"id\">\n <span v-for=\"(s, index) in extraIds\" :key=\"'id_span_' + index\" :id=\"s\" />\n <component\n v-for=\"(c, index) in children\"\n :key=\"'section_component_' + index\"\n :is=\"c.component\"\n :node=\"c.node\"\n :componentName=\"c.name\"\n :properties=\"c.properties\"\n />\n </section>\n</template>\n\n<script setup>\nimport { toRefs } from 'vue'\n\nimport { useMethods } from '../../composables/methods'\nimport { useChildren } from '../../composables/computed'\n\nconst props = defineProps({\n node: {\n type: undefined,\n default: null,\n },\n componentName: {\n type: String,\n },\n properties: {\n type: Object,\n }\n})\n\nconst { node } = toRefs(props)\n\nconst { extractId, separateIds } = useMethods()\nconst { id } = extractId(node.value)\nconst { extraIds } = separateIds(node.value, id)\n\nconst { children } = useChildren(node)\n</script>\n"],"names":["node","toRefs","props","extractId","separateIds","useMethods","id","extraIds","children","useChildren"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;iBAiCM,EAAE,MAAAA,EAAI,IAAKC,EAAOC,CAAK,GAEvB,EAAE,WAAAC,GAAW,aAAAC,EAAa,IAAGC,EAAY,GACzC,EAAE,IAAAC,EAAI,IAAGH,EAAUH,EAAK,KAAK,GAC7B,EAAE,UAAAO,EAAQ,IAAKH,EAAYJ,EAAK,OAAOM,CAAE,GAEzC,EAAE,UAAAE,EAAQ,IAAKC,EAAYT,CAAI;;;;;;;;;;;;;;;"}
|