vue3-sphinx-xml 0.4.0 → 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} +7928 -6974
- 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 -54
- package/dist/basereference.js.map +0 -1
- package/dist/entry.js.map +0 -1
- package/dist/methods.js +0 -148
- 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,19 @@
|
|
|
1
|
+
const p = {
|
|
2
|
+
__name: "Skip",
|
|
3
|
+
props: {
|
|
4
|
+
node: {
|
|
5
|
+
type: void 0,
|
|
6
|
+
default: null
|
|
7
|
+
},
|
|
8
|
+
componentName: {
|
|
9
|
+
type: String
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
setup(e) {
|
|
13
|
+
return (n, t) => null;
|
|
14
|
+
}
|
|
15
|
+
};
|
|
16
|
+
export {
|
|
17
|
+
p as default
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=Skip-4a46064f.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Skip-4a46064f.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { toRefs as A, ref as l, openBlock as i, createBlock as d, resolveDynamicComponent as m, unref as p, mergeProps as E, toHandlerKey as k, withCtx as N, createElementBlock as B, Fragment as x, renderList as C } from "vue";
|
|
2
|
+
import { a as j, n as D } from "./entry-185f60c1.mjs";
|
|
3
|
+
import { u as I } 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 P = {
|
|
10
|
+
__name: "StandardElement",
|
|
11
|
+
props: {
|
|
12
|
+
node: {
|
|
13
|
+
type: void 0,
|
|
14
|
+
default: null
|
|
15
|
+
},
|
|
16
|
+
componentName: {
|
|
17
|
+
type: String
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
setup(f) {
|
|
21
|
+
const v = f, { node: n } = A(v), { children: b } = j(n), { dataObject: g } = I(), o = l({}), c = l(!1), r = l(null), h = D.get(n.value.nodeName), a = g(n.value, n.value.getAttribute("classes")), _ = a.class ? a.class.join(" ") : void 0;
|
|
22
|
+
o.value = {
|
|
23
|
+
...a.attrs,
|
|
24
|
+
class: _
|
|
25
|
+
}, o.value.prefix === "" && delete o.value.prefix, n.value.nodeName === "button" && (c.value = !0);
|
|
26
|
+
function y() {
|
|
27
|
+
if (r.value.getAttribute("aria-selected") === "false") {
|
|
28
|
+
const u = r.value.parentElement;
|
|
29
|
+
let s = [];
|
|
30
|
+
for (const e of u.children) {
|
|
31
|
+
const t = document.getElementById(e.id);
|
|
32
|
+
t.setAttribute(
|
|
33
|
+
"aria-selected",
|
|
34
|
+
t.getAttribute("aria-selected") === "true" ? "false" : "true"
|
|
35
|
+
), s.push({ id: e.getAttribute("aria-controls") });
|
|
36
|
+
}
|
|
37
|
+
for (const e of s) {
|
|
38
|
+
const t = document.getElementById(e.id);
|
|
39
|
+
t.hasAttribute("hidden") ? t.removeAttribute("hidden") : t.setAttribute("hidden", "");
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
return (u, s) => (i(), d(m(p(h)), E(o.value, { [k(c.value && "click")]: y }, {
|
|
44
|
+
ref_key: "componentElement",
|
|
45
|
+
ref: r
|
|
46
|
+
}), {
|
|
47
|
+
default: N(() => [
|
|
48
|
+
(i(!0), B(x, null, C(p(b), (e, t) => (i(), d(m(e.component), {
|
|
49
|
+
key: "standard_element_component_" + t,
|
|
50
|
+
node: e.node,
|
|
51
|
+
componentName: e.name,
|
|
52
|
+
properties: e.properties
|
|
53
|
+
}, null, 8, ["node", "componentName", "properties"]))), 128))
|
|
54
|
+
]),
|
|
55
|
+
_: 1
|
|
56
|
+
}, 16));
|
|
57
|
+
}
|
|
58
|
+
};
|
|
59
|
+
export {
|
|
60
|
+
P as default
|
|
61
|
+
};
|
|
62
|
+
//# sourceMappingURL=StandardElement-64bcb6c4.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StandardElement-64bcb6c4.mjs","sources":["../src/components/templates/StandardElement.vue"],"sourcesContent":["<template>\n <component\n :is=\"tag\"\n :=\"attrs\"\n @[isButton&&`click`]=\"buttonClicked\"\n ref=\"componentElement\"\n >\n <component\n v-for=\"(c, index) in children\"\n :key=\"'standard_element_component_' + index\"\n :is=\"c.component\"\n :node=\"c.node\"\n :componentName=\"c.name\"\n :properties=\"c.properties\"\n />\n </component>\n</template>\n\n<script setup>\nimport { defineProps, toRefs, ref } from 'vue'\n\nimport { nodeNameTagNameMap } from '../../js/nodemap'\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})\n\nconst { node } = toRefs(props)\nconst { children } = useChildren(node)\nconst { dataObject } = useMethods()\nconst attrs = ref({})\nconst isButton = ref(false)\nconst componentElement = ref(null)\n\nconst transferAttributes = new Set(['div', 'button'])\nconst tag = nodeNameTagNameMap.get(node.value.nodeName)\n\nconst tmpDataObject = dataObject(node.value, node.value.getAttribute('classes'))\nconst classList = tmpDataObject.class\n ? tmpDataObject.class.join(' ')\n : undefined\nattrs.value = {\n ...tmpDataObject.attrs,\n class: classList,\n}\n\n// An empty prefix attribute causes problems for <ol> elements.\nif (attrs.value.prefix === '') {\n delete attrs.value.prefix\n}\n\nif (node.value.nodeName === 'button') {\n isButton.value = true\n}\n\nfunction buttonClicked() {\n if (componentElement.value.getAttribute('aria-selected') === 'false') {\n const parentElement = componentElement.value.parentElement\n let panels = []\n for (const child of parentElement.children) {\n const el = document.getElementById(child.id)\n el.setAttribute(\n 'aria-selected',\n el.getAttribute('aria-selected') === 'true' ? 'false' : 'true',\n )\n panels.push({ id: child.getAttribute('aria-controls') })\n }\n for (const panel of panels) {\n const el = document.getElementById(panel.id)\n if (el.hasAttribute('hidden')) {\n el.removeAttribute('hidden')\n } else {\n el.setAttribute('hidden', '')\n }\n }\n }\n}\n</script>\n"],"names":["node","toRefs","props","children","useChildren","dataObject","useMethods","attrs","ref","isButton","componentElement","tag","nodeNameTagNameMap","tmpDataObject","classList","buttonClicked","parentElement","panels","child","el","panel"],"mappings":";;;;;;;;;;;;;;;;;;;;iBAmCM,EAAE,MAAAA,EAAI,IAAKC,EAAOC,CAAK,GACvB,EAAE,UAAAC,EAAQ,IAAKC,EAAYJ,CAAI,GAC/B,EAAE,YAAAK,EAAY,IAAGC,EAAY,GAC7BC,IAAQC,EAAI,EAAE,GACdC,IAAWD,EAAI,EAAK,GACpBE,IAAmBF,EAAI,IAAI,GAG3BG,IAAMC,EAAmB,IAAIZ,EAAK,MAAM,QAAQ,GAEhDa,IAAgBR,EAAWL,EAAK,OAAOA,EAAK,MAAM,aAAa,SAAS,CAAC,GACzEc,IAAYD,EAAc,QAC5BA,EAAc,MAAM,KAAK,GAAG,IAC5B;AACJ,IAAAN,EAAM,QAAQ;AAAA,MACZ,GAAGM,EAAc;AAAA,MACjB,OAAOC;AAAA,IACT,GAGIP,EAAM,MAAM,WAAW,MACzB,OAAOA,EAAM,MAAM,QAGjBP,EAAK,MAAM,aAAa,aAC1BS,EAAS,QAAQ;AAGnB,aAASM,IAAgB;AACvB,UAAIL,EAAiB,MAAM,aAAa,eAAe,MAAM,SAAS;AACpE,cAAMM,IAAgBN,EAAiB,MAAM;AAC7C,YAAIO,IAAS,CAAE;AACf,mBAAWC,KAASF,EAAc,UAAU;AAC1C,gBAAMG,IAAK,SAAS,eAAeD,EAAM,EAAE;AAC3C,UAAAC,EAAG;AAAA,YACD;AAAA,YACAA,EAAG,aAAa,eAAe,MAAM,SAAS,UAAU;AAAA,UACzD,GACDF,EAAO,KAAK,EAAE,IAAIC,EAAM,aAAa,eAAe,GAAG;AAAA,QACxD;AACD,mBAAWE,KAASH,GAAQ;AAC1B,gBAAME,IAAK,SAAS,eAAeC,EAAM,EAAE;AAC3C,UAAID,EAAG,aAAa,QAAQ,IAC1BA,EAAG,gBAAgB,QAAQ,IAE3BA,EAAG,aAAa,UAAU,EAAE;AAAA,QAE/B;AAAA,MACF;AAAA,IACH;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { toDisplayString as t } from "vue";
|
|
2
|
+
const o = {
|
|
3
|
+
__name: "Text",
|
|
4
|
+
props: {
|
|
5
|
+
node: {
|
|
6
|
+
type: void 0,
|
|
7
|
+
default: null
|
|
8
|
+
},
|
|
9
|
+
componentName: {
|
|
10
|
+
type: String
|
|
11
|
+
},
|
|
12
|
+
properties: {
|
|
13
|
+
type: Object,
|
|
14
|
+
required: !0
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
setup(e) {
|
|
18
|
+
return (r, p) => t(e.properties.text);
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
export {
|
|
22
|
+
o as default
|
|
23
|
+
};
|
|
24
|
+
//# sourceMappingURL=Text-0d6b5332.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Text-0d6b5332.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { toRefs as _, computed as s, openBlock as o, createBlock as i, resolveDynamicComponent as a, normalizeClass as v, withCtx as y, createElementBlock as N, Fragment as g, renderList as k, unref as C } from "vue";
|
|
2
|
+
import { a as x } 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 E = {
|
|
9
|
+
__name: "Title",
|
|
10
|
+
props: {
|
|
11
|
+
node: {
|
|
12
|
+
type: void 0,
|
|
13
|
+
default: null
|
|
14
|
+
},
|
|
15
|
+
componentName: {
|
|
16
|
+
type: String
|
|
17
|
+
},
|
|
18
|
+
properties: {
|
|
19
|
+
type: Object,
|
|
20
|
+
required: !0
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
setup(l) {
|
|
24
|
+
const c = l, { node: m, properties: n } = _(c), { children: u } = x(m), r = n.value.depth, p = n.value.isTopic, d = s(() => {
|
|
25
|
+
let e = "h" + r;
|
|
26
|
+
return p && (e = "p"), e;
|
|
27
|
+
}), f = s(() => {
|
|
28
|
+
let e = [];
|
|
29
|
+
return p && (e.push("topic-title"), r === 1 && e.push("first")), e;
|
|
30
|
+
});
|
|
31
|
+
return (e, B) => (o(), i(a(d.value), {
|
|
32
|
+
class: v(f.value)
|
|
33
|
+
}, {
|
|
34
|
+
default: y(() => [
|
|
35
|
+
(o(!0), N(g, null, k(C(u), (t, h) => (o(), i(a(t.component), {
|
|
36
|
+
key: "title_component_" + h,
|
|
37
|
+
node: t.node,
|
|
38
|
+
componentName: t.name,
|
|
39
|
+
properties: t.properties
|
|
40
|
+
}, null, 8, ["node", "componentName", "properties"]))), 128))
|
|
41
|
+
]),
|
|
42
|
+
_: 1
|
|
43
|
+
}, 8, ["class"]));
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
export {
|
|
47
|
+
E as default
|
|
48
|
+
};
|
|
49
|
+
//# sourceMappingURL=Title-4ea6531d.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Title-4ea6531d.mjs","sources":["../src/components/templates/Title.vue"],"sourcesContent":["<template>\n <component :is=\"tagName\" :class=\"classes\">\n <component\n v-for=\"(c, index) in children\"\n :key=\"'title_component_' + index\"\n :is=\"c.component\"\n :node=\"c.node\"\n :componentName=\"c.name\"\n :properties=\"c.properties\"\n />\n </component>\n</template>\n<script setup>\nimport { computed, toRefs } from 'vue'\n\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 required: true,\n },\n})\n\nconst { node, properties } = toRefs(props)\n\nconst { children } = useChildren(node)\n\nconst depth = properties.value.depth\nconst isTopic = properties.value.isTopic\n\nconst tagName = computed(() => {\n let tagName = 'h' + depth\n if (isTopic) {\n tagName = 'p'\n }\n return tagName\n})\n\nconst classes = computed(() => {\n let classes = []\n if (isTopic) {\n classes.push('topic-title')\n if (depth === 1) {\n classes.push('first')\n }\n }\n return classes\n})\n</script>\n"],"names":["node","properties","toRefs","props","children","useChildren","depth","isTopic","tagName","computed","classes"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;iBA+BM,EAAE,MAAAA,GAAM,YAAAC,MAAeC,EAAOC,CAAK,GAEnC,EAAE,UAAAC,EAAQ,IAAKC,EAAYL,CAAI,GAE/BM,IAAQL,EAAW,MAAM,OACzBM,IAAUN,EAAW,MAAM,SAE3BO,IAAUC,EAAS,MAAM;AAC7B,UAAID,IAAU,MAAMF;AACpB,aAAIC,MACFC,IAAU,MAELA;AAAA,IACT,CAAC,GAEKE,IAAUD,EAAS,MAAM;AAC7B,UAAIC,IAAU,CAAE;AAChB,aAAIH,MACFG,EAAQ,KAAK,aAAa,GACtBJ,MAAU,KACZI,EAAQ,KAAK,OAAO,IAGjBA;AAAA,IACT,CAAC;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { toRefs as f, openBlock as o, createElementBlock as t, unref as p, Fragment as i, renderList as d, createBlock as h, resolveDynamicComponent as y } from "vue";
|
|
2
|
+
import { u as k } from "./methods-f5038371.mjs";
|
|
3
|
+
import { a as N } 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 x = ["id"], I = ["id"], L = {
|
|
10
|
+
__name: "TodoNode",
|
|
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 m = c;
|
|
25
|
+
console.log("****** IN USE ******");
|
|
26
|
+
const { node: n } = f(m), { extractId: a, separateIds: l } = k(), { id: s } = a(n.value), { extraIds: u } = l(n.value, s), { children: _ } = N(n);
|
|
27
|
+
return (g, v) => (o(), t("section", { id: p(s) }, [
|
|
28
|
+
(o(!0), t(i, null, d(p(u), (e, r) => (o(), t("span", {
|
|
29
|
+
key: "id_span_" + r,
|
|
30
|
+
id: e
|
|
31
|
+
}, null, 8, I))), 128)),
|
|
32
|
+
(o(!0), t(i, null, d(p(_), (e, r) => (o(), h(y(e.component), {
|
|
33
|
+
key: "todo_component_" + r,
|
|
34
|
+
node: e.node,
|
|
35
|
+
componentName: e.name,
|
|
36
|
+
properties: e.properties
|
|
37
|
+
}, null, 8, ["node", "componentName", "properties"]))), 128))
|
|
38
|
+
], 8, x));
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
export {
|
|
42
|
+
L as default
|
|
43
|
+
};
|
|
44
|
+
//# sourceMappingURL=TodoNode-9696576f.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TodoNode-9696576f.mjs","sources":["../src/components/templates/TodoNode.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=\"'todo_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>\nconsole.log(\"****** IN USE ******\")\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":";;;;;;;;;;;;;;;;;;;;;;;;AAeA,YAAQ,IAAI,sBAAsB;AAmBlC,UAAM,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;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { toRefs as d, openBlock as t, createElementBlock as r, unref as n, normalizeClass as u, Fragment as _, renderList as f, createBlock as h, resolveDynamicComponent as y } from "vue";
|
|
2
|
+
import { a as k, u as C } from "./entry-185f60c1.mjs";
|
|
3
|
+
import { u as v } 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 x = ["id"], L = {
|
|
10
|
+
__name: "Topic",
|
|
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(s) {
|
|
24
|
+
const p = s, { node: o } = d(p), { children: c } = k(o), { extractId: i } = v(), { classes: m } = C(o), { id: a } = i(o.value);
|
|
25
|
+
return (B, N) => (t(), r("div", {
|
|
26
|
+
id: n(a),
|
|
27
|
+
class: u(n(m))
|
|
28
|
+
}, [
|
|
29
|
+
(t(!0), r(_, null, f(n(c), (e, l) => (t(), h(y(e.component), {
|
|
30
|
+
key: "section_component_" + l,
|
|
31
|
+
node: e.node,
|
|
32
|
+
componentName: e.name,
|
|
33
|
+
properties: e.properties
|
|
34
|
+
}, null, 8, ["node", "componentName", "properties"]))), 128))
|
|
35
|
+
], 10, x));
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
export {
|
|
39
|
+
L as default
|
|
40
|
+
};
|
|
41
|
+
//# sourceMappingURL=Topic-5c1f63eb.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Topic-5c1f63eb.mjs","sources":["../src/components/templates/Topic.vue"],"sourcesContent":["<template>\n <div :id=\"id\" :class=\"classes\">\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 } from 'vue'\n\nimport { useChildren, useClasses } 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 { node } = toRefs(props)\n\nconst { children } = useChildren(node)\nconst { extractId } = useMethods()\nconst { classes } = useClasses(node)\n\nconst { id } = extractId(node.value)\n\n</script>\n"],"names":["node","toRefs","props","children","useChildren","extractId","useMethods","classes","useClasses","id"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;iBAgCM,EAAE,MAAAA,EAAI,IAAKC,EAAOC,CAAK,GAEvB,EAAE,UAAAC,EAAQ,IAAKC,EAAYJ,CAAI,GAC/B,EAAE,WAAAK,EAAW,IAAGC,EAAY,GAC5B,EAAE,SAAAC,EAAO,IAAKC,EAAWR,CAAI,GAE7B,EAAE,IAAAS,EAAI,IAAGJ,EAAUL,EAAK,KAAK;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Transition-3485737d.mjs","sources":["../src/components/templates/Transition.vue"],"sourcesContent":["<script>\nimport { h } from 'vue'\n\nexport default {\n name: 'Transition',\n render() {\n return h(\n 'hr', // tag name\n { class: ['docutils'] },\n )\n },\n}\n</script>\n"],"names":["_sfc_main","h"],"mappings":";AAGK,MAAAA,IAAU;AAAA,EACb,MAAM;AAAA,EACN,SAAS;AACP,WAAOC;AAAA,MACL;AAAA;AAAA,MACA,EAAE,OAAO,CAAC,UAAU,EAAG;AAAA,IACzB;AAAA,EACD;AACH;"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { toRefs as f, openBlock as t, createElementBlock as o, unref as r, createBlock as p, resolveDynamicComponent as i, withCtx as h, createTextVNode as g, Fragment as x, renderList as y } from "vue";
|
|
2
|
+
import { u as N } 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 v = ["id"], L = {
|
|
10
|
+
__name: "Warning",
|
|
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(a) {
|
|
24
|
+
const s = a, { node: n, properties: m } = f(s), { extractId: c } = N(), { id: d } = c(n.value), { children: l } = k(n), u = "h" + m.value.depth;
|
|
25
|
+
return (w, B) => (t(), o("div", {
|
|
26
|
+
id: r(d),
|
|
27
|
+
class: "admonition warning"
|
|
28
|
+
}, [
|
|
29
|
+
(t(), p(i(u), null, {
|
|
30
|
+
default: h(() => [
|
|
31
|
+
g("Warning")
|
|
32
|
+
]),
|
|
33
|
+
_: 1
|
|
34
|
+
})),
|
|
35
|
+
(t(!0), o(x, null, y(r(l), (e, _) => (t(), p(i(e.component), {
|
|
36
|
+
key: "warning_component_" + _,
|
|
37
|
+
node: e.node,
|
|
38
|
+
componentName: e.name,
|
|
39
|
+
properties: e.properties
|
|
40
|
+
}, null, 8, ["node", "componentName", "properties"]))), 128))
|
|
41
|
+
], 8, v));
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
export {
|
|
45
|
+
L as default
|
|
46
|
+
};
|
|
47
|
+
//# sourceMappingURL=Warning-5cbf4ef9.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Warning-5cbf4ef9.mjs","sources":["../src/components/templates/Warning.vue"],"sourcesContent":["<template>\n <div :id=\"id\" class=\"admonition warning\">\n <component :is=\"tagName\">Warning</component>\n <component\n v-for=\"(c, index) in children\"\n :key=\"'warning_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 { 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, properties } = toRefs(props)\n\nconst { extractId } = useMethods()\nconst { id } = extractId(node.value)\n\nconst { children } = useChildren(node)\nconst tagName = 'h' + properties.value.depth\n</script>\n"],"names":["node","properties","toRefs","props","extractId","useMethods","id","children","useChildren","tagName"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;iBAiCM,EAAE,MAAAA,GAAM,YAAAC,MAAeC,EAAOC,CAAK,GAEnC,EAAE,WAAAC,EAAW,IAAGC,EAAY,GAC5B,EAAE,IAAAC,EAAI,IAAGF,EAAUJ,EAAK,KAAK,GAE7B,EAAE,UAAAO,EAAQ,IAAKC,EAAYR,CAAI,GAC/BS,IAAU,MAAMR,EAAW,MAAM;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { b as o, e as p, d as h } from "./entry-185f60c1.mjs";
|
|
2
|
+
import { u as c } from "./methods-f5038371.mjs";
|
|
3
|
+
const {
|
|
4
|
+
determinePageLocation: l,
|
|
5
|
+
determinePageName: R,
|
|
6
|
+
isInternalReference: u,
|
|
7
|
+
isReferenceToCurrentPage: d,
|
|
8
|
+
parentLevelsInRefURI: P
|
|
9
|
+
} = c(), I = (a, i, t) => {
|
|
10
|
+
const r = o();
|
|
11
|
+
return {
|
|
12
|
+
onReferenceCreated: () => {
|
|
13
|
+
if (u(a)) {
|
|
14
|
+
let s = p(i), e = h(i);
|
|
15
|
+
const n = a.getAttribute("refid");
|
|
16
|
+
if (n && !n.startsWith("#") ? t.value.hash = "#" + n : t.value.hash = n, !d(a)) {
|
|
17
|
+
s = R(a, i);
|
|
18
|
+
let g = P(a);
|
|
19
|
+
if (r.isOffsetReferenceURL(e) && g) {
|
|
20
|
+
let f = e.split("/");
|
|
21
|
+
for (; g--; )
|
|
22
|
+
f.pop();
|
|
23
|
+
f.length === 1 ? e = "/" : e = f.join("/");
|
|
24
|
+
}
|
|
25
|
+
t.value.hash = l(a), r.hasPageById(
|
|
26
|
+
e,
|
|
27
|
+
s
|
|
28
|
+
) || r.fetchPage({
|
|
29
|
+
page_name: s,
|
|
30
|
+
page_route: e,
|
|
31
|
+
page_url: r.getBaseUrl(e)
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
t.value.path = e === "/" ? e + s : e + "/" + s;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
export {
|
|
40
|
+
I as u
|
|
41
|
+
};
|
|
42
|
+
//# sourceMappingURL=basereference-dc2b6871.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"basereference-dc2b6871.mjs","sources":["../src/composables/basereference.js"],"sourcesContent":["import { useSphinxStore } from '@/stores/sphinx'\n\nimport { useMethods } from './methods'\nimport { determineRouteUrl, constructPageNameFromRoute } from '../js/utilities'\n\nconst {\n determinePageLocation,\n determinePageName,\n isInternalReference,\n isReferenceToCurrentPage,\n parentLevelsInRefURI,\n} = useMethods()\n\nexport const useBaseReference = (element, route, routeDescription) => {\n const sphinxStore = useSphinxStore()\n\n const onReferenceCreated = () => {\n if (isInternalReference(element)) {\n let pageName = constructPageNameFromRoute(route)\n let baseRefUri = determineRouteUrl(route)\n const pageReference = element.getAttribute('refid')\n if (pageReference && !pageReference.startsWith('#')) {\n routeDescription.value.hash = '#' + pageReference\n } else {\n routeDescription.value.hash = pageReference\n }\n if (!isReferenceToCurrentPage(element)) {\n pageName = determinePageName(element, route)\n let parentLevels = parentLevelsInRefURI(element)\n if (sphinxStore.isOffsetReferenceURL(baseRefUri) && parentLevels) {\n let parts = baseRefUri.split('/')\n while(parentLevels--) {\n parts.pop()\n }\n if (parts.length === 1) {\n baseRefUri = '/'\n } else {\n baseRefUri = parts.join('/')\n }\n }\n routeDescription.value.hash = determinePageLocation(element)\n const existingPageWrapper = sphinxStore.hasPageById(\n baseRefUri,\n pageName,\n )\n if (!existingPageWrapper) {\n sphinxStore.fetchPage({\n page_name: pageName,\n page_route: baseRefUri,\n page_url: sphinxStore.getBaseUrl(baseRefUri),\n })\n }\n }\n\n routeDescription.value.path = baseRefUri === '/' ? baseRefUri + pageName : baseRefUri + '/' + pageName\n }\n }\n return {\n onReferenceCreated,\n }\n}\n"],"names":["determinePageLocation","determinePageName","isInternalReference","isReferenceToCurrentPage","parentLevelsInRefURI","useMethods","useBaseReference","element","route","routeDescription","sphinxStore","useSphinxStore","pageName","constructPageNameFromRoute","baseRefUri","determineRouteUrl","pageReference","parentLevels","parts"],"mappings":";;AAKA,MAAM;AAAA,EACJ,uBAAAA;AAAA,EACA,mBAAAC;AAAA,EACA,qBAAAC;AAAA,EACA,0BAAAC;AAAA,EACA,sBAAAC;AACF,IAAIC,EAAY,GAEHC,IAAmB,CAACC,GAASC,GAAOC,MAAqB;AACpE,QAAMC,IAAcC,EAAgB;AA2CpC,SAAO;AAAA,IACL,oBA1CyB,MAAM;AAC/B,UAAIT,EAAoBK,CAAO,GAAG;AAChC,YAAIK,IAAWC,EAA2BL,CAAK,GAC3CM,IAAaC,EAAkBP,CAAK;AACxC,cAAMQ,IAAgBT,EAAQ,aAAa,OAAO;AAMlD,YALIS,KAAiB,CAACA,EAAc,WAAW,GAAG,IAChDP,EAAiB,MAAM,OAAO,MAAMO,IAEpCP,EAAiB,MAAM,OAAOO,GAE5B,CAACb,EAAyBI,CAAO,GAAG;AACtC,UAAAK,IAAWX,EAAkBM,GAASC,CAAK;AAC3C,cAAIS,IAAeb,EAAqBG,CAAO;AAC/C,cAAIG,EAAY,qBAAqBI,CAAU,KAAKG,GAAc;AAChE,gBAAIC,IAAQJ,EAAW,MAAM,GAAG;AAChC,mBAAMG;AACJ,cAAAC,EAAM,IAAK;AAEb,YAAIA,EAAM,WAAW,IACnBJ,IAAa,MAEbA,IAAaI,EAAM,KAAK,GAAG;AAAA,UAE9B;AACD,UAAAT,EAAiB,MAAM,OAAOT,EAAsBO,CAAO,GAC/BG,EAAY;AAAA,YACtCI;AAAA,YACAF;AAAA,UACD,KAECF,EAAY,UAAU;AAAA,YACpB,WAAWE;AAAA,YACX,YAAYE;AAAA,YACZ,UAAUJ,EAAY,WAAWI,CAAU;AAAA,UACvD,CAAW;AAAA,QAEJ;AAED,QAAAL,EAAiB,MAAM,OAAOK,MAAe,MAAMA,IAAaF,IAAWE,IAAa,MAAMF;AAAA,MAC/F;AAAA,IACF;AAAA,EAGA;AACH;"}
|