vue3-sphinx-xml 0.4.1 → 0.5.0
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-mKTxm7FA.mjs +36 -0
- package/dist/{Admonition-4dbe3f53.mjs.map → Admonition-mKTxm7FA.mjs.map} +1 -1
- package/dist/BlockQuote-CHndoK9X.mjs +34 -0
- package/dist/{BlockQuote-0b464fcb.mjs.map → BlockQuote-CHndoK9X.mjs.map} +1 -1
- package/dist/CaptionNumber-sPHsgDmY.mjs +36 -0
- package/dist/{CaptionNumber-02430764.mjs.map → CaptionNumber-sPHsgDmY.mjs.map} +1 -1
- package/dist/{ColumnGroup-baa1b99b.mjs → ColumnGroup-3gX9uzXr.mjs} +1 -1
- package/dist/{ColumnGroup-baa1b99b.mjs.map → ColumnGroup-3gX9uzXr.mjs.map} +1 -1
- package/dist/{Comment-f2157760.mjs → Comment-BazBmRUy.mjs} +1 -1
- package/dist/{Comment-f2157760.mjs.map → Comment-BazBmRUy.mjs.map} +1 -1
- package/dist/Compound-CuyWvjJc.mjs +30 -0
- package/dist/{Compound-ae2a8a98.mjs.map → Compound-CuyWvjJc.mjs.map} +1 -1
- package/dist/Container-BI_-sUj5.mjs +50 -0
- package/dist/{Container-19a7431d.mjs.map → Container-BI_-sUj5.mjs.map} +1 -1
- package/dist/{DirectElementMap-4c6f8e80.mjs → DirectElementMap-BxB8uEd3.mjs} +1 -1
- package/dist/DirectElementMap-BxB8uEd3.mjs.map +1 -0
- package/dist/DownloadReference-Coj1rk-Q.mjs +36 -0
- package/dist/{DownloadReference-1df41bf0.mjs.map → DownloadReference-Coj1rk-Q.mjs.map} +1 -1
- package/dist/Figure-cm9jrp4J.mjs +38 -0
- package/dist/{Figure-12e7efef.mjs.map → Figure-cm9jrp4J.mjs.map} +1 -1
- package/dist/{FigureCaption-7b351f25.mjs → FigureCaption-CEewNKB3.mjs} +12 -17
- package/dist/{FigureCaption-7b351f25.mjs.map → FigureCaption-CEewNKB3.mjs.map} +1 -1
- package/dist/Footnote-CsDVGKIf.mjs +33 -0
- package/dist/{Footnote-e4b02243.mjs.map → Footnote-CsDVGKIf.mjs.map} +1 -1
- package/dist/{FootnoteReference-b5b67601.mjs → FootnoteReference-mjr_CUNC.mjs} +10 -15
- package/dist/{FootnoteReference-b5b67601.mjs.map → FootnoteReference-mjr_CUNC.mjs.map} +1 -1
- package/dist/Image-DS2T9dhX.mjs +36 -0
- package/dist/{Image-15e1e5bd.mjs.map → Image-DS2T9dhX.mjs.map} +1 -1
- package/dist/Legend-Buf610bh.mjs +35 -0
- package/dist/{Legend-878a7ec8.mjs.map → Legend-Buf610bh.mjs.map} +1 -1
- package/dist/{LineBlock-8eec127a.mjs → LineBlock-CC9E637d.mjs} +9 -14
- package/dist/{LineBlock-8eec127a.mjs.map → LineBlock-CC9E637d.mjs.map} +1 -1
- package/dist/LineSingle-Dlzi5iIV.mjs +34 -0
- package/dist/{LineSingle-6a9fabdf.mjs.map → LineSingle-Dlzi5iIV.mjs.map} +1 -1
- package/dist/{Literal-edb2ce6f.mjs → Literal-DYTpCjPv.mjs} +13 -18
- package/dist/{Literal-edb2ce6f.mjs.map → Literal-DYTpCjPv.mjs.map} +1 -1
- package/dist/LiteralBlock-DKVDMrJf.mjs +37 -0
- package/dist/{LiteralBlock-a2af758b.mjs.map → LiteralBlock-DKVDMrJf.mjs.map} +1 -1
- package/dist/{Math-7ccdef36.mjs → Math-DMrgdPIM.mjs} +1 -1
- package/dist/Math-DMrgdPIM.mjs.map +1 -0
- package/dist/{MathBlock-f8b3d549.mjs → MathBlock-DdqKjCSS.mjs} +5 -5
- package/dist/{MathBlock-f8b3d549.mjs.map → MathBlock-DdqKjCSS.mjs.map} +1 -1
- package/dist/Note-BlaELec8.mjs +34 -0
- package/dist/{Note-4413dcab.mjs.map → Note-BlaELec8.mjs.map} +1 -1
- package/dist/{NumberReference-2143cb23.mjs → NumberReference-bjITftY4.mjs} +13 -18
- package/dist/{NumberReference-2143cb23.mjs.map → NumberReference-bjITftY4.mjs.map} +1 -1
- package/dist/Problematic-CVEE4P8F.mjs +36 -0
- package/dist/{Problematic-3d793374.mjs.map → Problematic-CVEE4P8F.mjs.map} +1 -1
- package/dist/{Raw-dcdd7f96.mjs → Raw-DuZmU9hd.mjs} +1 -1
- package/dist/{Raw-dcdd7f96.mjs.map → Raw-DuZmU9hd.mjs.map} +1 -1
- package/dist/{Reference-80a8b234.mjs → Reference-Orh-jOnR.mjs} +14 -18
- package/dist/{Reference-80a8b234.mjs.map → Reference-Orh-jOnR.mjs.map} +1 -1
- package/dist/Section-CdTfeVfc.mjs +37 -0
- package/dist/{Section-9ba27ca3.mjs.map → Section-CdTfeVfc.mjs.map} +1 -1
- package/dist/{Skip-4a46064f.mjs → Skip-CRGkjuMM.mjs} +1 -1
- package/dist/Skip-CRGkjuMM.mjs.map +1 -0
- package/dist/{StandardElement-64bcb6c4.mjs → StandardElement-CBBrXX4Q.mjs} +15 -20
- package/dist/{StandardElement-64bcb6c4.mjs.map → StandardElement-CBBrXX4Q.mjs.map} +1 -1
- package/dist/{Text-0d6b5332.mjs → Text-CT8nEMkp.mjs} +1 -1
- package/dist/Text-CT8nEMkp.mjs.map +1 -0
- package/dist/Title-3Cns5zt2.mjs +44 -0
- package/dist/{Title-4ea6531d.mjs.map → Title-3Cns5zt2.mjs.map} +1 -1
- package/dist/TodoNode-BR2gUVop.mjs +38 -0
- package/dist/{TodoNode-9696576f.mjs.map → TodoNode-BR2gUVop.mjs.map} +1 -1
- package/dist/Topic-CGDYI81Y.mjs +36 -0
- package/dist/{Topic-5c1f63eb.mjs.map → Topic-CGDYI81Y.mjs.map} +1 -1
- package/dist/{Transition-3485737d.mjs → Transition-CWMp4Zlv.mjs} +1 -1
- package/dist/{Transition-3485737d.mjs.map → Transition-CWMp4Zlv.mjs.map} +1 -1
- package/dist/Warning-Cl6MS7S9.mjs +42 -0
- package/dist/{Warning-5cbf4ef9.mjs.map → Warning-Cl6MS7S9.mjs.map} +1 -1
- package/dist/{basereference-dc2b6871.mjs → basereference-CBz3BfwU.mjs} +3 -3
- package/dist/{basereference-dc2b6871.mjs.map → basereference-CBz3BfwU.mjs.map} +1 -1
- package/dist/{entry-185f60c1.mjs → entry-BmRN0Y-U.mjs} +2153 -2150
- package/dist/entry-BmRN0Y-U.mjs.map +1 -0
- package/dist/{methods-f5038371.mjs → methods-DeDVNJrB.mjs} +2 -2
- package/dist/{methods-f5038371.mjs.map → methods-DeDVNJrB.mjs.map} +1 -1
- package/dist/style.css +1 -1
- package/dist/vue3-sphinx-xml.mjs +3 -7
- package/dist/vue3-sphinx-xml.mjs.map +1 -1
- package/package.json +15 -16
- package/dist/Admonition-4dbe3f53.mjs +0 -41
- package/dist/BlockQuote-0b464fcb.mjs +0 -39
- package/dist/CaptionNumber-02430764.mjs +0 -41
- package/dist/Compound-ae2a8a98.mjs +0 -35
- package/dist/Container-19a7431d.mjs +0 -55
- package/dist/DirectElementMap-4c6f8e80.mjs.map +0 -1
- package/dist/DownloadReference-1df41bf0.mjs +0 -40
- package/dist/Figure-12e7efef.mjs +0 -43
- package/dist/Footnote-e4b02243.mjs +0 -38
- package/dist/Image-15e1e5bd.mjs +0 -40
- package/dist/Legend-878a7ec8.mjs +0 -41
- package/dist/LineSingle-6a9fabdf.mjs +0 -40
- package/dist/LiteralBlock-a2af758b.mjs +0 -42
- package/dist/Math-7ccdef36.mjs.map +0 -1
- package/dist/Note-4413dcab.mjs +0 -39
- package/dist/Problematic-3d793374.mjs +0 -42
- package/dist/Section-9ba27ca3.mjs +0 -42
- package/dist/Skip-4a46064f.mjs.map +0 -1
- package/dist/Text-0d6b5332.mjs.map +0 -1
- package/dist/Title-4ea6531d.mjs +0 -49
- package/dist/TodoNode-9696576f.mjs +0 -44
- package/dist/Topic-5c1f63eb.mjs +0 -41
- package/dist/Warning-5cbf4ef9.mjs +0 -47
- package/dist/entry-185f60c1.mjs.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Image-
|
|
1
|
+
{"version":3,"file":"Image-DS2T9dhX.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":["props","__props","node","toRefs","useChildren","dataObject","useMethods","route","useRoute","sphinxStore","useSphinxStore","attrs","ref","uri","computed","imageURI","routeURL","determineRouteUrl","lastIndex","imageName"],"mappings":";;;;;;;;;;;;;;;;;;;AAaA,UAAMA,IAAQC,GAaR,EAAE,MAAAC,EAAI,IAAKC,EAAOH,CAAK;AACR,IAAAI,EAAYF,CAAI;AACrC,UAAM,EAAE,YAAAG,EAAY,IAAGC,EAAU,GAC3BC,IAAQC,EAAQ,GAChBC,IAAcC,EAAc,GAC5BC,IAAQC,EAAI,CAAE,CAAA,GAEdC,IAAMC,EAAS,MAAM;AACzB,UAAIC,IAAWb,EAAK,MAAM,aAAa,KAAK;AAC5C,UAAIa,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,MACvE;AACE,aAAOJ;AAAA,IACT,CAAC;AAED,WAAAJ,EAAM,QAAQN,EAAWH,EAAK,KAAK,EAAE,OACjCS,EAAM,QACRA,EAAM,MAAM,MAAME,IAElBF,EAAM,QAAQ,EAAE,KAAKE,EAAG;;;"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { toRefs as m, openBlock as n, 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-BmRN0Y-U.mjs";
|
|
3
|
+
const B = {
|
|
4
|
+
__name: "Legend",
|
|
5
|
+
props: {
|
|
6
|
+
node: {
|
|
7
|
+
type: void 0,
|
|
8
|
+
default: null
|
|
9
|
+
},
|
|
10
|
+
componentName: {
|
|
11
|
+
type: String
|
|
12
|
+
},
|
|
13
|
+
properties: {
|
|
14
|
+
type: Object
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
setup(s) {
|
|
18
|
+
console.log("***** IN USE *****");
|
|
19
|
+
const p = s, { node: o } = m(p), { children: a } = y(o), { classes: c } = g(o);
|
|
20
|
+
return (k, C) => (n(), t("div", {
|
|
21
|
+
class: i(r(c))
|
|
22
|
+
}, [
|
|
23
|
+
(n(!0), t(u, null, d(r(a), (e, l) => (n(), f(_(e.component), {
|
|
24
|
+
key: "container_component_" + l,
|
|
25
|
+
node: e.node,
|
|
26
|
+
componentName: e.name,
|
|
27
|
+
properties: e.properties
|
|
28
|
+
}, null, 8, ["node", "componentName", "properties"]))), 128))
|
|
29
|
+
], 2));
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
export {
|
|
33
|
+
B as default
|
|
34
|
+
};
|
|
35
|
+
//# sourceMappingURL=Legend-Buf610bh.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Legend-
|
|
1
|
+
{"version":3,"file":"Legend-Buf610bh.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":["props","__props","node","toRefs","children","useChildren","classes","useClasses"],"mappings":";;;;;;;;;;;;;;;;;AAkBA,YAAQ,IAAI,oBAAoB;AAChC,UAAMA,IAAQC,GAaR,EAAE,MAAAC,EAAI,IAAKC,EAAOH,CAAK,GAEvB,EAAE,UAAAI,EAAQ,IAAKC,EAAYH,CAAI,GAC/B,EAAE,SAAAI,EAAO,IAAKC,EAAWL,CAAI;;;;;;;;;;;;;"}
|
|
@@ -1,12 +1,7 @@
|
|
|
1
|
-
import { toRefs as
|
|
2
|
-
import { a as h } from "./entry-
|
|
3
|
-
import { u as B } from "./methods-
|
|
4
|
-
|
|
5
|
-
import "katex/dist/katex.min.css";
|
|
6
|
-
import "vue-router";
|
|
7
|
-
import "axios";
|
|
8
|
-
import "path-to-regexp";
|
|
9
|
-
const z = {
|
|
1
|
+
import { toRefs as m, ref as i, 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-BmRN0Y-U.mjs";
|
|
3
|
+
import { u as B } from "./methods-DeDVNJrB.mjs";
|
|
4
|
+
const C = {
|
|
10
5
|
__name: "LineBlock",
|
|
11
6
|
props: {
|
|
12
7
|
node: {
|
|
@@ -21,10 +16,10 @@ const z = {
|
|
|
21
16
|
}
|
|
22
17
|
},
|
|
23
18
|
setup(p) {
|
|
24
|
-
const s = p, { dataObject: a } = B(), { node: t } =
|
|
19
|
+
const s = p, { dataObject: a } = B(), { node: t } = m(s), n = i({}), { children: c } = h(t);
|
|
25
20
|
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(
|
|
27
|
-
key: "section_component_" +
|
|
21
|
+
(o(!0), r(f, null, _(k(c), (e, l) => (o(), v(y(e.component), {
|
|
22
|
+
key: "section_component_" + l,
|
|
28
23
|
node: e.node,
|
|
29
24
|
componentName: e.name,
|
|
30
25
|
properties: e.properties
|
|
@@ -33,6 +28,6 @@ const z = {
|
|
|
33
28
|
}
|
|
34
29
|
};
|
|
35
30
|
export {
|
|
36
|
-
|
|
31
|
+
C as default
|
|
37
32
|
};
|
|
38
|
-
//# sourceMappingURL=LineBlock-
|
|
33
|
+
//# sourceMappingURL=LineBlock-CC9E637d.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LineBlock-
|
|
1
|
+
{"version":3,"file":"LineBlock-CC9E637d.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":["props","__props","dataObject","useMethods","node","toRefs","attrs","ref","children","useChildren"],"mappings":";;;;;;;;;;;;;;;;;;AAmBA,UAAMA,IAAQC,GAaR,EAAE,YAAAC,EAAY,IAAGC,EAAU,GAC3B,EAAE,MAAAC,EAAI,IAAKC,EAAOL,CAAK,GACvBM,IAAQC,EAAI,CAAE,CAAA,GAEd,EAAE,UAAAC,EAAQ,IAAKC,EAAYL,CAAI;AACrC,WAAAE,EAAM,QAAQJ,EAAWE,EAAK,OAAO,CAAC,YAAY,CAAC,EAAE;;;;;;;;;;"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { toRefs as m, ref as i, 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-DeDVNJrB.mjs";
|
|
3
|
+
import { a as k } from "./entry-BmRN0Y-U.mjs";
|
|
4
|
+
const x = {
|
|
5
|
+
__name: "LineSingle",
|
|
6
|
+
props: {
|
|
7
|
+
node: {
|
|
8
|
+
type: void 0,
|
|
9
|
+
default: null
|
|
10
|
+
},
|
|
11
|
+
componentName: {
|
|
12
|
+
type: String
|
|
13
|
+
},
|
|
14
|
+
properties: {
|
|
15
|
+
type: Object
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
setup(p) {
|
|
19
|
+
console.log("***** IN USE *****");
|
|
20
|
+
const s = p, { node: n } = m(s), { children: a } = k(n), { dataObject: l } = h(), t = i({});
|
|
21
|
+
return t.value = l(n.value, ["line_single"]).attrs, (N, B) => (o(), r("div", u(d(t.value)), [
|
|
22
|
+
(o(!0), r(f, null, _(g(a), (e, c) => (o(), v(y(e.component), {
|
|
23
|
+
key: "footnote_component_" + c,
|
|
24
|
+
node: e.node,
|
|
25
|
+
componentName: e.name,
|
|
26
|
+
properties: e.properties
|
|
27
|
+
}, null, 8, ["node", "componentName", "properties"]))), 128))
|
|
28
|
+
], 16));
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
export {
|
|
32
|
+
x as default
|
|
33
|
+
};
|
|
34
|
+
//# sourceMappingURL=LineSingle-Dlzi5iIV.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LineSingle-
|
|
1
|
+
{"version":3,"file":"LineSingle-Dlzi5iIV.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":["props","__props","node","toRefs","children","useChildren","dataObject","useMethods","attrs","ref"],"mappings":";;;;;;;;;;;;;;;;;;AAmBA,YAAQ,IAAI,oBAAoB;AAEhC,UAAMA,IAAQC,GAaR,EAAE,MAAAC,EAAI,IAAKC,EAAOH,CAAK,GACvB,EAAE,UAAAI,EAAQ,IAAKC,EAAYH,CAAI,GAC/B,EAAE,YAAAI,EAAY,IAAGC,EAAU,GAC3BC,IAAQC,EAAI,CAAE,CAAA;AAEpB,WAAAD,EAAM,QAAQF,EAAWJ,EAAK,OAAO,CAAC,aAAa,CAAC,EAAE;;;;;;;;;;"}
|
|
@@ -1,12 +1,7 @@
|
|
|
1
|
-
import { toRefs as d, ref as f, openBlock as
|
|
2
|
-
import { u as N } from "./methods-
|
|
3
|
-
import { a as B } from "./entry-
|
|
4
|
-
|
|
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 = {
|
|
1
|
+
import { toRefs as d, ref as f, openBlock as o, createElementBlock as c, 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-DeDVNJrB.mjs";
|
|
3
|
+
import { a as B } from "./entry-BmRN0Y-U.mjs";
|
|
4
|
+
const C = { class: "pre" }, O = {
|
|
10
5
|
__name: "Literal",
|
|
11
6
|
props: {
|
|
12
7
|
node: {
|
|
@@ -20,18 +15,18 @@ const C = { class: "pre" }, R = {
|
|
|
20
15
|
type: Object
|
|
21
16
|
}
|
|
22
17
|
},
|
|
23
|
-
setup(
|
|
24
|
-
const
|
|
25
|
-
return ((
|
|
26
|
-
for (const a in
|
|
27
|
-
if (
|
|
18
|
+
setup(l) {
|
|
19
|
+
const p = l, { node: r } = d(p), { dataObject: i } = N(), { children: m } = B(r), s = f(["literal", "notranslate"]), e = i(r.value);
|
|
20
|
+
return ((n) => {
|
|
21
|
+
for (const a in n)
|
|
22
|
+
if (n[a].language !== "")
|
|
28
23
|
return !1;
|
|
29
24
|
return !0;
|
|
30
|
-
})(e) || e.attrs && e.attrs.role && s.value.push(e.attrs.role), (
|
|
25
|
+
})(e) || e.attrs && e.attrs.role && s.value.push(e.attrs.role), (n, a) => (o(), c("code", {
|
|
31
26
|
class: _(s.value)
|
|
32
27
|
}, [
|
|
33
28
|
y("span", C, [
|
|
34
|
-
(
|
|
29
|
+
(o(!0), c(h, null, v(g(m), (t, u) => (o(), k(E(t.component), {
|
|
35
30
|
key: "code_component_" + u,
|
|
36
31
|
node: t.node,
|
|
37
32
|
componentName: t.name,
|
|
@@ -42,6 +37,6 @@ const C = { class: "pre" }, R = {
|
|
|
42
37
|
}
|
|
43
38
|
};
|
|
44
39
|
export {
|
|
45
|
-
|
|
40
|
+
O as default
|
|
46
41
|
};
|
|
47
|
-
//# sourceMappingURL=Literal-
|
|
42
|
+
//# sourceMappingURL=Literal-DYTpCjPv.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Literal-
|
|
1
|
+
{"version":3,"file":"Literal-DYTpCjPv.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":["props","__props","node","toRefs","dataObject","useMethods","children","useChildren","classes","ref","v","d","i"],"mappings":";;;;;;;;;;;;;;;;;;AAqBA,UAAMA,IAAQC,GAaR,EAAE,MAAAC,EAAI,IAAKC,EAAOH,CAAK,GAEvB,EAAE,YAAAI,EAAY,IAAGC,EAAU,GAE3B,EAAE,UAAAC,EAAQ,IAAKC,EAAYL,CAAI,GAE/BM,IAAUC,EAAI,CAAC,WAAW,aAAa,CAAC,GAExCC,IAAIN,EAAWF,EAAK,KAAK;AAY/B,YAXgB,CAACS,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,37 @@
|
|
|
1
|
+
import { toRefs as s, computed as o, resolveDirective as i, withDirectives as u, openBlock as p, createElementBlock as d, createElementVNode as g, normalizeClass as m, toDisplayString as f } from "vue";
|
|
2
|
+
import { c as h } from "./entry-BmRN0Y-U.mjs";
|
|
3
|
+
const y = {
|
|
4
|
+
__name: "LiteralBlock",
|
|
5
|
+
props: {
|
|
6
|
+
node: {
|
|
7
|
+
type: void 0,
|
|
8
|
+
default: null
|
|
9
|
+
},
|
|
10
|
+
componentName: {
|
|
11
|
+
type: String
|
|
12
|
+
},
|
|
13
|
+
properties: {
|
|
14
|
+
type: Object
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
setup(n) {
|
|
18
|
+
const r = n, { node: t } = s(r), l = o(() => {
|
|
19
|
+
let e = t.value.getAttribute("language");
|
|
20
|
+
return e === "console" || e === "default" ? e = "bash" : e === "text" && (e = "plaintext"), e;
|
|
21
|
+
}), a = o(() => h(t.value.innerHTML));
|
|
22
|
+
return (e, v) => {
|
|
23
|
+
const c = i("highlightjs");
|
|
24
|
+
return u((p(), d("pre", null, [
|
|
25
|
+
g("code", {
|
|
26
|
+
class: m(l.value)
|
|
27
|
+
}, f(a.value), 3)
|
|
28
|
+
])), [
|
|
29
|
+
[c]
|
|
30
|
+
]);
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
export {
|
|
35
|
+
y as default
|
|
36
|
+
};
|
|
37
|
+
//# sourceMappingURL=LiteralBlock-DKVDMrJf.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LiteralBlock-
|
|
1
|
+
{"version":3,"file":"LiteralBlock-DKVDMrJf.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":["props","__props","node","toRefs","sourceLanguage","computed","language","sourceCode","decodeHTML"],"mappings":";;;;;;;;;;;;;;;;;AASA,UAAMA,IAAQC,GAaR,EAAE,MAAAC,EAAI,IAAKC,EAAOH,CAAK,GAEvBI,IAAiBC,EAAS,MAAM;AACpC,UAAIC,IAAWJ,EAAK,MAAM,aAAa,UAAU;AACjD,aAAII,MAAa,aAAaA,MAAa,YACzCA,IAAW,SACFA,MAAa,WACtBA,IAAW,cAENA;AAAA,IACT,CAAC,GAEKC,IAAaF,EAAS,MACnBG,EAAWN,EAAK,MAAM,SAAS,CACvC;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Math-DMrgdPIM.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -14,20 +14,20 @@ const y = { class: "katex-block" }, E = {
|
|
|
14
14
|
}
|
|
15
15
|
},
|
|
16
16
|
setup(s) {
|
|
17
|
-
const l =
|
|
17
|
+
const l = ["\\begin{equation}", "\\end{equation}"], c = /* @__PURE__ */ new Map([
|
|
18
18
|
["\\begin{align}", "\\begin{aligned}"],
|
|
19
19
|
["\\begin{eqnarray}", "\\begin{aligned}"],
|
|
20
20
|
["\\end{align}", "\\end{aligned}"],
|
|
21
21
|
["\\end{eqnarray}", "\\end{aligned}"]
|
|
22
|
-
]), { node: p } = _(
|
|
22
|
+
]), d = s, { node: p } = _(d), u = v(() => {
|
|
23
23
|
let n = [];
|
|
24
24
|
const r = p.value.innerHTML.split(/\r?\n\r?\n/);
|
|
25
25
|
for (const t of r)
|
|
26
26
|
if (t) {
|
|
27
27
|
let e = t.replaceAll("&", "&");
|
|
28
|
-
for (const o of
|
|
28
|
+
for (const o of l)
|
|
29
29
|
e = e.replaceAll(o, "");
|
|
30
|
-
for (let [o, g] of
|
|
30
|
+
for (let [o, g] of c)
|
|
31
31
|
e = e.replaceAll(o, g);
|
|
32
32
|
m(e) && !f(e) && (e = `\\begin{array}{cc}${e}\\end{array}`), n.push(e);
|
|
33
33
|
}
|
|
@@ -56,4 +56,4 @@ const y = { class: "katex-block" }, E = {
|
|
|
56
56
|
export {
|
|
57
57
|
E as default
|
|
58
58
|
};
|
|
59
|
-
//# sourceMappingURL=MathBlock-
|
|
59
|
+
//# sourceMappingURL=MathBlock-DdqKjCSS.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MathBlock-
|
|
1
|
+
{"version":3,"file":"MathBlock-DdqKjCSS.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","props","__props","node","toRefs","formulas","computed","multiEquations","equation","stripped","item","key","value","requiresSplitEnvironment","hasEnvironment","formula","ampersandIndex","newLineIndex","beginEnvironmentIndex","endEnvironmentIndex"],"mappings":";;;;;;;;;;;;;;;;AAWA,UAAMA,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,GAEKC,IAAQC,GAaR,EAAE,MAAAC,EAAI,IAAKC,EAAOH,CAAK,GAEvBI,IAAWC,EAAS,MAAM;AAC9B,UAAID,IAAW,CAAA;AACf,YAAME,IAAiBJ,EAAK,MAAM,UAAU,MAAM,YAAY;AAC9D,iBAAWK,KAAYD;AACrB,YAAIC,GAAU;AACZ,cAAIC,IAAWD,EAAS,WAAW,SAAS,GAAG;AAC/C,qBAAWE,KAAQX;AACjB,YAAAU,IAAWA,EAAS,WAAWC,GAAM,EAAE;AAEzC,mBAAS,CAACC,GAAKC,CAAK,KAAKZ;AACvB,YAAAS,IAAWA,EAAS,WAAWE,GAAKC,CAAK;AAE3C,UAAIC,EAAyBJ,CAAQ,KAAK,CAACK,EAAeL,CAAQ,MAEhEA,IAAW,qBAAqBA,CAAQ,iBAE1CJ,EAAS,KAAKI,CAAQ;AAAA,QAC5B;AAEE,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,34 @@
|
|
|
1
|
+
import { toRefs as c, ref as d, openBlock as t, createElementBlock as p, normalizeProps as u, guardReactiveProps as f, createElementVNode as v, Fragment as N, renderList as _, unref as y, createBlock as k, resolveDynamicComponent as g } from "vue";
|
|
2
|
+
import { u as B } from "./methods-DeDVNJrB.mjs";
|
|
3
|
+
import { a as b } from "./entry-BmRN0Y-U.mjs";
|
|
4
|
+
const E = {
|
|
5
|
+
__name: "Note",
|
|
6
|
+
props: {
|
|
7
|
+
node: {
|
|
8
|
+
type: void 0,
|
|
9
|
+
default: null
|
|
10
|
+
},
|
|
11
|
+
componentName: {
|
|
12
|
+
type: String
|
|
13
|
+
},
|
|
14
|
+
properties: {
|
|
15
|
+
type: Object
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
setup(a) {
|
|
19
|
+
const s = a, { node: o } = c(s), { dataObject: m } = B(), n = d({}), { children: i } = b(o);
|
|
20
|
+
return n.value = m(o.value, ["admonition", "note"]).attrs, (h, r) => (t(), p("div", u(f(n.value)), [
|
|
21
|
+
r[0] || (r[0] = v("p", { class: "admonition-title" }, "Note", -1)),
|
|
22
|
+
(t(!0), p(N, null, _(y(i), (e, l) => (t(), k(g(e.component), {
|
|
23
|
+
key: "note_component_" + l,
|
|
24
|
+
node: e.node,
|
|
25
|
+
componentName: e.name,
|
|
26
|
+
properties: e.properties
|
|
27
|
+
}, null, 8, ["node", "componentName", "properties"]))), 128))
|
|
28
|
+
], 16));
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
export {
|
|
32
|
+
E as default
|
|
33
|
+
};
|
|
34
|
+
//# sourceMappingURL=Note-BlaELec8.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Note-
|
|
1
|
+
{"version":3,"file":"Note-BlaELec8.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":["props","__props","node","toRefs","dataObject","useMethods","attrs","ref","children","useChildren"],"mappings":";;;;;;;;;;;;;;;;;;AAoBA,UAAMA,IAAQC,GAaR,EAAE,MAAAC,EAAI,IAAKC,EAAOH,CAAK,GACvB,EAAE,YAAAI,EAAY,IAAGC,EAAU,GAC3BC,IAAQC,EAAI,CAAE,CAAA,GAEd,EAAE,UAAAC,EAAQ,IAAKC,EAAYP,CAAI;AAErC,WAAAI,EAAM,QAAQF,EAAWF,EAAK,OAAO,CAAC,cAAc,MAAM,CAAC,EAAE;;;;;;;;;;;"}
|
|
@@ -1,13 +1,8 @@
|
|
|
1
|
-
import { ref as d, toRefs as _, onMounted as h, computed as v, resolveComponent as k, unref as o, openBlock as
|
|
1
|
+
import { ref as d, toRefs as _, onMounted as h, computed as v, resolveComponent as k, unref as o, openBlock as a, createBlock as g, withCtx as b, createTextVNode as R, toDisplayString as c, createElementBlock as y } from "vue";
|
|
2
2
|
import { useRoute as C } from "vue-router";
|
|
3
|
-
import { u as x } from "./methods-
|
|
4
|
-
import { u as A } from "./basereference-
|
|
5
|
-
|
|
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 = {
|
|
3
|
+
import { u as x } from "./methods-DeDVNJrB.mjs";
|
|
4
|
+
import { u as A } from "./basereference-CBz3BfwU.mjs";
|
|
5
|
+
const B = ["href"], L = {
|
|
11
6
|
__name: "NumberReference",
|
|
12
7
|
props: {
|
|
13
8
|
node: {
|
|
@@ -18,9 +13,9 @@ const B = ["href"], H = {
|
|
|
18
13
|
type: String
|
|
19
14
|
}
|
|
20
15
|
},
|
|
21
|
-
setup(
|
|
22
|
-
const
|
|
23
|
-
h(
|
|
16
|
+
setup(s) {
|
|
17
|
+
const l = s, n = d({ path: "", hash: "" }), { node: e } = _(l), i = C(), { isInternalReference: f } = x(), { onReferenceCreated: p } = A(e.value, i, n);
|
|
18
|
+
h(p);
|
|
24
19
|
const u = v(() => {
|
|
25
20
|
if (e.value.childElementCount)
|
|
26
21
|
return e.value.children[0].innerHTML;
|
|
@@ -31,23 +26,23 @@ const B = ["href"], H = {
|
|
|
31
26
|
});
|
|
32
27
|
return (t, r) => {
|
|
33
28
|
const m = k("router-link");
|
|
34
|
-
return o(
|
|
29
|
+
return o(f)(o(e)) ? (a(), g(m, {
|
|
35
30
|
key: 0,
|
|
36
31
|
to: n.value
|
|
37
32
|
}, {
|
|
38
33
|
default: b(() => [
|
|
39
|
-
R(
|
|
34
|
+
R(c(u.value), 1)
|
|
40
35
|
]),
|
|
41
36
|
_: 1
|
|
42
|
-
}, 8, ["to"])) : (
|
|
37
|
+
}, 8, ["to"])) : (a(), y("a", {
|
|
43
38
|
key: 1,
|
|
44
39
|
href: o(e).getAttribute("refuri"),
|
|
45
40
|
target: "_blank"
|
|
46
|
-
},
|
|
41
|
+
}, c(u.value), 9, B));
|
|
47
42
|
};
|
|
48
43
|
}
|
|
49
44
|
};
|
|
50
45
|
export {
|
|
51
|
-
|
|
46
|
+
L as default
|
|
52
47
|
};
|
|
53
|
-
//# sourceMappingURL=NumberReference-
|
|
48
|
+
//# sourceMappingURL=NumberReference-bjITftY4.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NumberReference-
|
|
1
|
+
{"version":3,"file":"NumberReference-bjITftY4.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":["props","__props","routeDescription","ref","node","toRefs","route","useRoute","isInternalReference","useMethods","onReferenceCreated","useBaseReference","onMounted","title","computed","refLabel","t"],"mappings":";;;;;;;;;;;;;;;;AAgBA,UAAMA,IAAQC,GAURC,IAAmBC,EAAI,EAAC,MAAM,IAAI,MAAM,GAAE,CAAC,GAC3C,EAAE,MAAAC,EAAI,IAAKC,EAAOL,CAAK,GACvBM,IAAQC,EAAQ,GAEhB,EAAE,qBAAAC,EAAqB,IAAGC,EAAU,GACpC,EAAE,oBAAAC,EAAoB,IAAGC,EAAiBP,EAAK,OAAOE,GAAOJ,CAAgB;AAEnF,IAAAU,EAAUF,CAAkB;AAE5B,UAAMG,IAAQC,EAAS,MAAM;AAC3B,UAAIV,EAAK,MAAM;AAIb,eAAOA,EAAK,MAAM,SAAS,CAAC,EAAE;AAGhC,UAAIW,IAAWX,EAAK,MAAM,aAAa,OAAO;AAC9C,MAAKW,MACHA,IAAWX,EAAK,MAAM,aAAa,QAAQ;AAE7C,YAAMY,IAAID,EAAS,QAAQ,KAAK,GAAG;AACnC,aAAO,UAAUC,EAAE,OAAO,CAAC,EAAE,YAAa,IAAGA,EAAE,MAAM,CAAC;AAAA,IACxD,CAAC;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { toRefs as i, ref as p, resolveComponent as l, openBlock as u, createBlock as d, withCtx as m, createElementVNode as _, unref as e, toDisplayString as f } from "vue";
|
|
2
|
+
import { u as h } from "./methods-DeDVNJrB.mjs";
|
|
3
|
+
const x = ["id"], g = {
|
|
4
|
+
__name: "Problematic",
|
|
5
|
+
props: {
|
|
6
|
+
node: {
|
|
7
|
+
type: void 0,
|
|
8
|
+
default: null
|
|
9
|
+
},
|
|
10
|
+
componentName: {
|
|
11
|
+
type: String
|
|
12
|
+
},
|
|
13
|
+
properties: {
|
|
14
|
+
type: Object
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
setup(o) {
|
|
18
|
+
const n = o, { node: t } = i(n), r = p({ hash: "#" + t.value.getAttribute("refid") }), { extractId: s } = h(), { id: c } = s(t.value);
|
|
19
|
+
return (b, k) => {
|
|
20
|
+
const a = l("router-link");
|
|
21
|
+
return u(), d(a, { to: r.value }, {
|
|
22
|
+
default: m(() => [
|
|
23
|
+
_("span", {
|
|
24
|
+
class: "problematic",
|
|
25
|
+
id: e(c)
|
|
26
|
+
}, f(e(t).textContent), 9, x)
|
|
27
|
+
]),
|
|
28
|
+
_: 1
|
|
29
|
+
}, 8, ["to"]);
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
export {
|
|
34
|
+
g as default
|
|
35
|
+
};
|
|
36
|
+
//# sourceMappingURL=Problematic-CVEE4P8F.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Problematic-
|
|
1
|
+
{"version":3,"file":"Problematic-CVEE4P8F.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":["props","__props","node","toRefs","routeDescription","ref","extractId","useMethods","id"],"mappings":";;;;;;;;;;;;;;;;;AAaA,UAAMA,IAAQC,GAaR,EAAE,MAAAC,EAAI,IAAKC,EAAOH,CAAK,GACvBI,IAAmBC,EAAI,EAAC,MAAM,MAAMH,EAAK,MAAM,aAAa,OAAO,EAAC,CAAC,GAErE,EAAE,WAAAI,EAAW,IAAGC,EAAU,GAC1B,EAAE,IAAAC,EAAI,IAAGF,EAAUJ,EAAK,KAAK;;;;;;;;;;;;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Raw-
|
|
1
|
+
{"version":3,"file":"Raw-DuZmU9hd.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;;;"}
|
|
@@ -1,13 +1,9 @@
|
|
|
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
|
|
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 a, Fragment as x, renderList as v, resolveDynamicComponent as B } from "vue";
|
|
2
2
|
import { useRoute as N } from "vue-router";
|
|
3
|
-
import { a as b } from "./entry-
|
|
4
|
-
import { u as D } from "./methods-
|
|
5
|
-
import { u as M } from "./basereference-
|
|
6
|
-
|
|
7
|
-
import "katex/dist/katex.min.css";
|
|
8
|
-
import "axios";
|
|
9
|
-
import "path-to-regexp";
|
|
10
|
-
const S = ["href"], G = {
|
|
3
|
+
import { a as b } from "./entry-BmRN0Y-U.mjs";
|
|
4
|
+
import { u as D } from "./methods-DeDVNJrB.mjs";
|
|
5
|
+
import { u as M } from "./basereference-CBz3BfwU.mjs";
|
|
6
|
+
const S = ["href"], V = {
|
|
11
7
|
__name: "Reference",
|
|
12
8
|
props: {
|
|
13
9
|
node: {
|
|
@@ -18,17 +14,17 @@ const S = ["href"], G = {
|
|
|
18
14
|
type: String
|
|
19
15
|
}
|
|
20
16
|
},
|
|
21
|
-
setup(
|
|
22
|
-
const
|
|
17
|
+
setup(p) {
|
|
18
|
+
const u = p, r = _({ path: "", hash: "" }), { node: e } = h(u), c = N(), { isInternalReference: i } = D(), { onReferenceCreated: m } = M(
|
|
23
19
|
e.value,
|
|
24
|
-
|
|
20
|
+
c,
|
|
25
21
|
r
|
|
26
22
|
);
|
|
27
|
-
k(
|
|
23
|
+
k(m);
|
|
28
24
|
const { children: l } = b(e);
|
|
29
25
|
return (w, A) => {
|
|
30
26
|
const f = y("router-link");
|
|
31
|
-
return t(
|
|
27
|
+
return t(i)(t(e)) ? (n(), s(f, {
|
|
32
28
|
key: 0,
|
|
33
29
|
to: r.value
|
|
34
30
|
}, {
|
|
@@ -36,12 +32,12 @@ const S = ["href"], G = {
|
|
|
36
32
|
R(g(t(e).textContent), 1)
|
|
37
33
|
]),
|
|
38
34
|
_: 1
|
|
39
|
-
}, 8, ["to"])) : (n(),
|
|
35
|
+
}, 8, ["to"])) : (n(), a("a", {
|
|
40
36
|
key: 1,
|
|
41
37
|
href: t(e).getAttribute("refuri"),
|
|
42
38
|
target: "_blank"
|
|
43
39
|
}, [
|
|
44
|
-
(n(!0),
|
|
40
|
+
(n(!0), a(x, null, v(t(l), (o, d) => (n(), s(B(o.component), {
|
|
45
41
|
key: "sub_link_" + d,
|
|
46
42
|
node: o.node,
|
|
47
43
|
componentName: o.name,
|
|
@@ -52,6 +48,6 @@ const S = ["href"], G = {
|
|
|
52
48
|
}
|
|
53
49
|
};
|
|
54
50
|
export {
|
|
55
|
-
|
|
51
|
+
V as default
|
|
56
52
|
};
|
|
57
|
-
//# sourceMappingURL=Reference-
|
|
53
|
+
//# sourceMappingURL=Reference-Orh-jOnR.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Reference-
|
|
1
|
+
{"version":3,"file":"Reference-Orh-jOnR.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":["props","__props","routeDescription","ref","node","toRefs","route","useRoute","isInternalReference","useMethods","onReferenceCreated","useBaseReference","onMounted","children","useChildren"],"mappings":";;;;;;;;;;;;;;;;;AAwBA,UAAMA,IAAQC,GAURC,IAAmBC,EAAI,EAAE,MAAM,IAAI,MAAM,GAAI,CAAA,GAC7C,EAAE,MAAAC,EAAI,IAAKC,EAAOL,CAAK,GACvBM,IAAQC,EAAQ,GAEhB,EAAE,qBAAAC,EAAqB,IAAGC,EAAU,GACpC,EAAE,oBAAAC,EAAoB,IAAGC;AAAA,MAC7BP,EAAK;AAAA,MACLE;AAAA,MACAJ;AAAA,IACF;AAEA,IAAAU,EAAUF,CAAkB;AAC5B,UAAM,EAAE,UAAAG,EAAQ,IAAKC,EAAYV,CAAI;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|