vue3-sphinx-xml 0.4.0 → 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-mKTxm7FA.mjs.map +1 -0
- package/dist/BlockQuote-CHndoK9X.mjs +34 -0
- package/dist/BlockQuote-CHndoK9X.mjs.map +1 -0
- package/dist/CaptionNumber-sPHsgDmY.mjs +36 -0
- package/dist/CaptionNumber-sPHsgDmY.mjs.map +1 -0
- package/dist/ColumnGroup-3gX9uzXr.mjs +37 -0
- package/dist/ColumnGroup-3gX9uzXr.mjs.map +1 -0
- package/dist/Comment-BazBmRUy.mjs +31 -0
- package/dist/Comment-BazBmRUy.mjs.map +1 -0
- package/dist/Compound-CuyWvjJc.mjs +30 -0
- package/dist/Compound-CuyWvjJc.mjs.map +1 -0
- package/dist/Container-BI_-sUj5.mjs +50 -0
- package/dist/Container-BI_-sUj5.mjs.map +1 -0
- package/dist/DirectElementMap-BxB8uEd3.mjs +21 -0
- package/dist/DirectElementMap-BxB8uEd3.mjs.map +1 -0
- package/dist/DownloadReference-Coj1rk-Q.mjs +36 -0
- package/dist/DownloadReference-Coj1rk-Q.mjs.map +1 -0
- package/dist/Figure-cm9jrp4J.mjs +38 -0
- package/dist/Figure-cm9jrp4J.mjs.map +1 -0
- package/dist/FigureCaption-CEewNKB3.mjs +41 -0
- package/dist/FigureCaption-CEewNKB3.mjs.map +1 -0
- package/dist/Footnote-CsDVGKIf.mjs +33 -0
- package/dist/Footnote-CsDVGKIf.mjs.map +1 -0
- package/dist/FootnoteReference-mjr_CUNC.mjs +39 -0
- package/dist/FootnoteReference-mjr_CUNC.mjs.map +1 -0
- package/dist/Image-DS2T9dhX.mjs +36 -0
- package/dist/Image-DS2T9dhX.mjs.map +1 -0
- package/dist/Legend-Buf610bh.mjs +35 -0
- package/dist/Legend-Buf610bh.mjs.map +1 -0
- package/dist/LineBlock-CC9E637d.mjs +33 -0
- package/dist/LineBlock-CC9E637d.mjs.map +1 -0
- package/dist/LineSingle-Dlzi5iIV.mjs +34 -0
- package/dist/LineSingle-Dlzi5iIV.mjs.map +1 -0
- package/dist/Literal-DYTpCjPv.mjs +42 -0
- package/dist/Literal-DYTpCjPv.mjs.map +1 -0
- package/dist/LiteralBlock-DKVDMrJf.mjs +37 -0
- package/dist/LiteralBlock-DKVDMrJf.mjs.map +1 -0
- package/dist/Math-DMrgdPIM.mjs +28 -0
- package/dist/Math-DMrgdPIM.mjs.map +1 -0
- package/dist/MathBlock-DdqKjCSS.mjs +59 -0
- package/dist/MathBlock-DdqKjCSS.mjs.map +1 -0
- package/dist/Note-BlaELec8.mjs +34 -0
- package/dist/Note-BlaELec8.mjs.map +1 -0
- package/dist/NumberReference-bjITftY4.mjs +48 -0
- package/dist/NumberReference-bjITftY4.mjs.map +1 -0
- package/dist/Problematic-CVEE4P8F.mjs +36 -0
- package/dist/Problematic-CVEE4P8F.mjs.map +1 -0
- package/dist/Raw-DuZmU9hd.mjs +10 -0
- package/dist/Raw-DuZmU9hd.mjs.map +1 -0
- package/dist/Reference-Orh-jOnR.mjs +53 -0
- package/dist/Reference-Orh-jOnR.mjs.map +1 -0
- package/dist/Section-CdTfeVfc.mjs +37 -0
- package/dist/Section-CdTfeVfc.mjs.map +1 -0
- package/dist/Skip-CRGkjuMM.mjs +19 -0
- package/dist/Skip-CRGkjuMM.mjs.map +1 -0
- package/dist/StandardElement-CBBrXX4Q.mjs +57 -0
- package/dist/StandardElement-CBBrXX4Q.mjs.map +1 -0
- package/dist/Text-CT8nEMkp.mjs +24 -0
- package/dist/Text-CT8nEMkp.mjs.map +1 -0
- package/dist/Title-3Cns5zt2.mjs +44 -0
- package/dist/Title-3Cns5zt2.mjs.map +1 -0
- package/dist/TodoNode-BR2gUVop.mjs +38 -0
- package/dist/TodoNode-BR2gUVop.mjs.map +1 -0
- package/dist/Topic-CGDYI81Y.mjs +36 -0
- package/dist/Topic-CGDYI81Y.mjs.map +1 -0
- package/dist/Transition-CWMp4Zlv.mjs +15 -0
- package/dist/Transition-CWMp4Zlv.mjs.map +1 -0
- package/dist/Warning-Cl6MS7S9.mjs +42 -0
- package/dist/Warning-Cl6MS7S9.mjs.map +1 -0
- package/dist/basereference-CBz3BfwU.mjs +42 -0
- package/dist/basereference-CBz3BfwU.mjs.map +1 -0
- package/dist/{entry.js → entry-BmRN0Y-U.mjs} +7954 -6997
- package/dist/entry-BmRN0Y-U.mjs.map +1 -0
- package/dist/methods-DeDVNJrB.mjs +69 -0
- package/dist/methods-DeDVNJrB.mjs.map +1 -0
- package/dist/style.css +1 -1
- package/dist/vue3-sphinx-xml.mjs +8 -0
- package/dist/vue3-sphinx-xml.mjs.map +1 -0
- package/package.json +16 -18
- 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
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { toRefs, computed, ref, openBlock, createElementBlock, unref, normalizeClass, toDisplayString } from "vue";
|
|
2
|
-
import { useRoute } from "vue-router";
|
|
3
|
-
import { b as useSphinxStore, d as determineRouteUrl } from "./entry.js";
|
|
4
|
-
import "@hsorby/vue3-katex";
|
|
5
|
-
import "katex/dist/katex.min.css";
|
|
6
|
-
import "axios";
|
|
7
|
-
import "path-to-regexp";
|
|
8
|
-
const _hoisted_1 = ["href", "download"];
|
|
9
|
-
const _sfc_main = {
|
|
10
|
-
props: {
|
|
11
|
-
node: {
|
|
12
|
-
type: void 0,
|
|
13
|
-
default: null
|
|
14
|
-
},
|
|
15
|
-
componentName: {
|
|
16
|
-
type: String
|
|
17
|
-
}
|
|
18
|
-
},
|
|
19
|
-
setup(__props) {
|
|
20
|
-
const props = __props;
|
|
21
|
-
const { node } = toRefs(props);
|
|
22
|
-
const route = useRoute();
|
|
23
|
-
const sphinxStore = useSphinxStore();
|
|
24
|
-
const href = computed(() => {
|
|
25
|
-
let downloadHref = node.value.getAttribute("filename");
|
|
26
|
-
if (downloadHref && !downloadHref.startsWith("/") && !downloadHref.startsWith("http")) {
|
|
27
|
-
const routeURL = determineRouteUrl(route);
|
|
28
|
-
downloadHref = [sphinxStore.getDownloadURL(routeURL), downloadHref].join("/");
|
|
29
|
-
}
|
|
30
|
-
return downloadHref;
|
|
31
|
-
});
|
|
32
|
-
const targetParts = node.value.getAttribute("reftarget").split("/");
|
|
33
|
-
const downloadName = targetParts[targetParts.length - 1];
|
|
34
|
-
const classes = ["reference", "internal", node.value.getAttribute("reftype")];
|
|
35
|
-
const saveFilename = ref("not-set");
|
|
36
|
-
saveFilename.value = downloadName;
|
|
37
|
-
return (_ctx, _cache) => {
|
|
38
|
-
return openBlock(), createElementBlock("a", {
|
|
39
|
-
href: unref(href),
|
|
40
|
-
download: saveFilename.value,
|
|
41
|
-
class: normalizeClass(classes)
|
|
42
|
-
}, toDisplayString(saveFilename.value), 9, _hoisted_1);
|
|
43
|
-
};
|
|
44
|
-
}
|
|
45
|
-
};
|
|
46
|
-
export { _sfc_main as default };
|
|
47
|
-
//# sourceMappingURL=DownloadReference.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DownloadReference.js","sources":["../src/components/templates/DownloadReference.vue"],"sourcesContent":["<template>\n <a :href=\"href\" :download=\"saveFilename\" :class=\"classes\">{{\n saveFilename\n }}</a>\n</template>\n\n<script setup>\nimport { computed, toRefs, ref } from 'vue'\nimport { useRoute } from 'vue-router'\nimport { useSphinxStore } from '@/stores/sphinx'\n\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})\n\nconst { node } = toRefs(props)\nconst route = useRoute()\nconst sphinxStore = useSphinxStore()\n\nconst href = computed(() => {\n let downloadHref = node.value.getAttribute('filename')\n if (\n downloadHref &&\n !downloadHref.startsWith('/') &&\n !downloadHref.startsWith('http')\n ) {\n const routeURL = determineRouteUrl(route)\n downloadHref = [sphinxStore.getDownloadURL(routeURL), downloadHref].join(\n '/',\n )\n }\n return downloadHref\n})\n\nconst targetParts = node.value.getAttribute('reftarget').split('/')\nconst downloadName = targetParts[targetParts.length - 1]\nconst classes = ['reference', 'internal', node.value.getAttribute('reftype')]\n\n// Need to use a refernce variable in the template bound attributes.\nconst saveFilename = ref('not-set')\nsaveFilename.value = downloadName\n</script>\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAuBA,UAAM,EAAE,SAAS,OAAO,KAAK;AAC7B,UAAM,QAAQ,SAAU;AACxB,UAAM,cAAc,eAAgB;AAEpC,UAAM,OAAO,SAAS,MAAM;AAC1B,UAAI,eAAe,KAAK,MAAM,aAAa,UAAU;AACrD,UACE,gBACA,CAAC,aAAa,WAAW,GAAG,KAC5B,CAAC,aAAa,WAAW,MAAM,GAC/B;AACA,cAAM,WAAW,kBAAkB,KAAK;AACxC,uBAAe,CAAC,YAAY,eAAe,QAAQ,GAAG,YAAY,EAAE,KAClE,GACD;AAAA,MACF;AACD,aAAO;AAAA,IACT,CAAC;AAED,UAAM,cAAc,KAAK,MAAM,aAAa,WAAW,EAAE,MAAM,GAAG;AAClE,UAAM,eAAe,YAAY,YAAY,SAAS;AACtD,UAAM,UAAU,CAAC,aAAa,YAAY,KAAK,MAAM,aAAa,SAAS,CAAC;AAG5E,UAAM,eAAe,IAAI,SAAS;AAClC,iBAAa,QAAQ;;;;;;;;;;;"}
|
package/dist/Figure.js
DELETED
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { toRefs, ref, computed, openBlock, createElementBlock, normalizeProps, guardReactiveProps, Fragment, renderList, unref, createBlock, resolveDynamicComponent } from "vue";
|
|
2
|
-
import { u as useClasses, a as useChildren } from "./entry.js";
|
|
3
|
-
import { u as useMethods } from "./methods.js";
|
|
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 _sfc_main = {
|
|
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(__props) {
|
|
23
|
-
const props = __props;
|
|
24
|
-
const { dataObject } = useMethods();
|
|
25
|
-
const { node } = toRefs(props);
|
|
26
|
-
const attrs = ref({});
|
|
27
|
-
const { classes } = useClasses(node);
|
|
28
|
-
const { children } = useChildren(node);
|
|
29
|
-
const combinerdClasses = computed(() => {
|
|
30
|
-
let c = [...classes.value];
|
|
31
|
-
for (const attr of node.value.attributes) {
|
|
32
|
-
if (attr.name === "align") {
|
|
33
|
-
c.push("align-" + attr.value);
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
return c;
|
|
37
|
-
});
|
|
38
|
-
attrs.value = dataObject(node.value, combinerdClasses.value).attrs;
|
|
39
|
-
return (_ctx, _cache) => {
|
|
40
|
-
return openBlock(), createElementBlock("figure", normalizeProps(guardReactiveProps(attrs.value)), [
|
|
41
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(children), (c, index) => {
|
|
42
|
-
return openBlock(), createBlock(resolveDynamicComponent(c.component), {
|
|
43
|
-
key: "figure_component_" + index,
|
|
44
|
-
node: c.node,
|
|
45
|
-
componentName: c.name,
|
|
46
|
-
properties: c.properties
|
|
47
|
-
}, null, 8, ["node", "componentName", "properties"]);
|
|
48
|
-
}), 128))
|
|
49
|
-
], 16);
|
|
50
|
-
};
|
|
51
|
-
}
|
|
52
|
-
};
|
|
53
|
-
export { _sfc_main as default };
|
|
54
|
-
//# sourceMappingURL=Figure.js.map
|
package/dist/Figure.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Figure.js","sources":["../src/components/templates/Figure.vue"],"sourcesContent":["<template>\n <figure :=\"attrs\">\n <component\n v-for=\"(c, index) in children\"\n :key=\"'figure_component_' + index\"\n :is=\"c.component\"\n :node=\"c.node\"\n :componentName=\"c.name\"\n :properties=\"c.properties\"\n />\n </figure>\n</template>\n\n<script setup>\nimport { computed, toRefs, ref } 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 { dataObject } = useMethods()\nconst { node } = toRefs(props)\nconst attrs = ref({})\nconst { classes } = useClasses(node)\n\nconst { children } = useChildren(node)\n\nconst combinerdClasses = computed(() => {\n let c = [...classes.value]\n for (const attr of node.value.attributes) {\n if (attr.name === 'align') {\n c.push('align-' + attr.value)\n }\n }\n return c\n})\n\nattrs.value = dataObject(node.value, combinerdClasses.value).attrs\n</script>\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAgCA,UAAM,EAAE,eAAe,WAAY;AACnC,UAAM,EAAE,SAAS,OAAO,KAAK;AAC7B,UAAM,QAAQ,IAAI,EAAE;AACpB,UAAM,EAAE,YAAY,WAAW,IAAI;AAEnC,UAAM,EAAE,aAAa,YAAY,IAAI;AAErC,UAAM,mBAAmB,SAAS,MAAM;AACtC,UAAI,IAAI,CAAC,GAAG,QAAQ,KAAK;AACzB,iBAAW,QAAQ,KAAK,MAAM,YAAY;AACxC,YAAI,KAAK,SAAS,SAAS;AACzB,YAAE,KAAK,WAAW,KAAK,KAAK;AAAA,QAC7B;AAAA,MACF;AACD,aAAO;AAAA,IACT,CAAC;AAED,UAAM,QAAQ,WAAW,KAAK,OAAO,iBAAiB,KAAK,EAAE;;;;;;;;;;;;;;;;"}
|
package/dist/FigureCaption.js
DELETED
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __defProps = Object.defineProperties;
|
|
3
|
-
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
|
-
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
7
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
-
var __spreadValues = (a, b) => {
|
|
9
|
-
for (var prop in b || (b = {}))
|
|
10
|
-
if (__hasOwnProp.call(b, prop))
|
|
11
|
-
__defNormalProp(a, prop, b[prop]);
|
|
12
|
-
if (__getOwnPropSymbols)
|
|
13
|
-
for (var prop of __getOwnPropSymbols(b)) {
|
|
14
|
-
if (__propIsEnum.call(b, prop))
|
|
15
|
-
__defNormalProp(a, prop, b[prop]);
|
|
16
|
-
}
|
|
17
|
-
return a;
|
|
18
|
-
};
|
|
19
|
-
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
-
import { toRefs, ref, computed, openBlock, createElementBlock, normalizeProps, guardReactiveProps, Fragment, renderList, unref, createBlock, resolveDynamicComponent } from "vue";
|
|
21
|
-
import { u as useClasses, a as useChildren } from "./entry.js";
|
|
22
|
-
import { u as useMethods } from "./methods.js";
|
|
23
|
-
import "@hsorby/vue3-katex";
|
|
24
|
-
import "katex/dist/katex.min.css";
|
|
25
|
-
import "vue-router";
|
|
26
|
-
import "axios";
|
|
27
|
-
import "path-to-regexp";
|
|
28
|
-
const _sfc_main = {
|
|
29
|
-
props: {
|
|
30
|
-
node: {
|
|
31
|
-
type: void 0,
|
|
32
|
-
default: null
|
|
33
|
-
},
|
|
34
|
-
componentName: {
|
|
35
|
-
type: String
|
|
36
|
-
},
|
|
37
|
-
properties: {
|
|
38
|
-
type: Object
|
|
39
|
-
}
|
|
40
|
-
},
|
|
41
|
-
setup(__props) {
|
|
42
|
-
const props = __props;
|
|
43
|
-
const { dataObject } = useMethods();
|
|
44
|
-
const { node } = toRefs(props);
|
|
45
|
-
const attrs = ref({});
|
|
46
|
-
const { classes } = useClasses(node);
|
|
47
|
-
const { children } = useChildren(node);
|
|
48
|
-
const combinedClasses = computed(() => {
|
|
49
|
-
let c = ["figure-caption", ...classes.value];
|
|
50
|
-
for (const attr of node.value.attributes) {
|
|
51
|
-
if (attr.name === "align") {
|
|
52
|
-
c.push("align-" + attr.value);
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
return c;
|
|
56
|
-
});
|
|
57
|
-
const result = dataObject(node.value, combinedClasses.value);
|
|
58
|
-
attrs.value = __spreadProps(__spreadValues({}, result.attrs), {
|
|
59
|
-
class: result.class.join(" ")
|
|
60
|
-
});
|
|
61
|
-
return (_ctx, _cache) => {
|
|
62
|
-
return openBlock(), createElementBlock("span", normalizeProps(guardReactiveProps(attrs.value)), [
|
|
63
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(children), (c, index) => {
|
|
64
|
-
return openBlock(), createBlock(resolveDynamicComponent(c.component), {
|
|
65
|
-
key: "figure_caption_" + index,
|
|
66
|
-
node: c.node,
|
|
67
|
-
componentName: c.name,
|
|
68
|
-
properties: c.properties
|
|
69
|
-
}, null, 8, ["node", "componentName", "properties"]);
|
|
70
|
-
}), 128))
|
|
71
|
-
], 16);
|
|
72
|
-
};
|
|
73
|
-
}
|
|
74
|
-
};
|
|
75
|
-
export { _sfc_main as default };
|
|
76
|
-
//# sourceMappingURL=FigureCaption.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"FigureCaption.js","sources":["../src/components/templates/FigureCaption.vue"],"sourcesContent":["<template>\n <span :=\"attrs\">\n <component\n v-for=\"(c, index) in children\"\n :key=\"'figure_caption_' + index\"\n :is=\"c.component\"\n :node=\"c.node\"\n :componentName=\"c.name\"\n :properties=\"c.properties\"\n />\n </span>\n</template>\n\n<script setup>\nimport { computed, toRefs, ref } 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 { dataObject } = useMethods()\nconst { node } = toRefs(props)\nconst attrs = ref({})\nconst { classes } = useClasses(node)\n\nconst { children } = useChildren(node)\n\nconst combinedClasses = computed(() => {\n let c = ['figure-caption', ...classes.value]\n for (const attr of node.value.attributes) {\n if (attr.name === 'align') {\n c.push('align-' + attr.value)\n }\n }\n return c\n})\n\nconst result = dataObject(node.value, combinedClasses.value)\nattrs.value = {\n ...result.attrs,\n class: result.class.join(' '),\n }\n</script>\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgCA,UAAM,EAAE,eAAe,WAAY;AACnC,UAAM,EAAE,SAAS,OAAO,KAAK;AAC7B,UAAM,QAAQ,IAAI,EAAE;AACpB,UAAM,EAAE,YAAY,WAAW,IAAI;AAEnC,UAAM,EAAE,aAAa,YAAY,IAAI;AAErC,UAAM,kBAAkB,SAAS,MAAM;AACrC,UAAI,IAAI,CAAC,kBAAkB,GAAG,QAAQ,KAAK;AAC3C,iBAAW,QAAQ,KAAK,MAAM,YAAY;AACxC,YAAI,KAAK,SAAS,SAAS;AACzB,YAAE,KAAK,WAAW,KAAK,KAAK;AAAA,QAC7B;AAAA,MACF;AACD,aAAO;AAAA,IACT,CAAC;AAED,UAAM,SAAS,WAAW,KAAK,OAAO,gBAAgB,KAAK;AAC3D,UAAM,QAAQ,iCACP,OAAO,QADA;AAAA,MAEV,OAAO,OAAO,MAAM,KAAK,GAAG;AAAA,IAC7B;;;;;;;;;;;;;;;;"}
|
package/dist/Footnote.js
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { toRefs, ref, openBlock, createElementBlock, normalizeProps, guardReactiveProps, Fragment, renderList, unref, createBlock, resolveDynamicComponent } from "vue";
|
|
2
|
-
import { u as useMethods } from "./methods.js";
|
|
3
|
-
import { a as useChildren } from "./entry.js";
|
|
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 _sfc_main = {
|
|
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(__props) {
|
|
23
|
-
const props = __props;
|
|
24
|
-
const { node } = toRefs(props);
|
|
25
|
-
const { children } = useChildren(node);
|
|
26
|
-
const { dataObject } = useMethods();
|
|
27
|
-
const attrs = ref({});
|
|
28
|
-
attrs.value = dataObject(node.value, ["footnote"]).attrs;
|
|
29
|
-
return (_ctx, _cache) => {
|
|
30
|
-
return openBlock(), createElementBlock("div", normalizeProps(guardReactiveProps(attrs.value)), [
|
|
31
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(children), (c, index) => {
|
|
32
|
-
return openBlock(), createBlock(resolveDynamicComponent(c.component), {
|
|
33
|
-
key: "footnote_component_" + index,
|
|
34
|
-
node: c.node,
|
|
35
|
-
componentName: c.name,
|
|
36
|
-
properties: c.properties
|
|
37
|
-
}, null, 8, ["node", "componentName", "properties"]);
|
|
38
|
-
}), 128))
|
|
39
|
-
], 16);
|
|
40
|
-
};
|
|
41
|
-
}
|
|
42
|
-
};
|
|
43
|
-
export { _sfc_main as default };
|
|
44
|
-
//# sourceMappingURL=Footnote.js.map
|
package/dist/Footnote.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Footnote.js","sources":["../src/components/templates/Footnote.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\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, ['footnote']).attrs // import { h } from 'vue'\n</script>\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAgCA,UAAM,EAAE,SAAS,OAAO,KAAK;AAC7B,UAAM,EAAE,aAAa,YAAY,IAAI;AACrC,UAAM,EAAE,eAAe,WAAY;AACnC,UAAM,QAAQ,IAAI,EAAE;AAEpB,UAAM,QAAQ,WAAW,KAAK,OAAO,CAAC,UAAU,CAAC,EAAE;;;;;;;;;;;;;;;;"}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { ref, toRefs, onMounted, resolveComponent, unref, openBlock, createBlock, withCtx, createTextVNode, toDisplayString, createElementBlock } from "vue";
|
|
2
|
-
import { useRoute } from "vue-router";
|
|
3
|
-
import { u as useMethods } from "./methods.js";
|
|
4
|
-
import { u as useBaseReference } from "./basereference.js";
|
|
5
|
-
import "./entry.js";
|
|
6
|
-
import "@hsorby/vue3-katex";
|
|
7
|
-
import "katex/dist/katex.min.css";
|
|
8
|
-
import "axios";
|
|
9
|
-
import "path-to-regexp";
|
|
10
|
-
const _hoisted_1 = ["href"];
|
|
11
|
-
const _sfc_main = {
|
|
12
|
-
props: {
|
|
13
|
-
node: {
|
|
14
|
-
type: void 0,
|
|
15
|
-
default: null
|
|
16
|
-
},
|
|
17
|
-
componentName: {
|
|
18
|
-
type: String
|
|
19
|
-
}
|
|
20
|
-
},
|
|
21
|
-
setup(__props) {
|
|
22
|
-
const props = __props;
|
|
23
|
-
const routeDescription = ref({ path: "", hash: "" });
|
|
24
|
-
const { node } = toRefs(props);
|
|
25
|
-
const route = useRoute();
|
|
26
|
-
const { isInternalReference } = useMethods();
|
|
27
|
-
const { onReferenceCreated } = useBaseReference(node.value, route, routeDescription);
|
|
28
|
-
onMounted(onReferenceCreated);
|
|
29
|
-
return (_ctx, _cache) => {
|
|
30
|
-
const _component_router_link = resolveComponent("router-link");
|
|
31
|
-
return unref(isInternalReference)(unref(node)) ? (openBlock(), createBlock(_component_router_link, {
|
|
32
|
-
key: 0,
|
|
33
|
-
to: routeDescription.value
|
|
34
|
-
}, {
|
|
35
|
-
default: withCtx(() => [
|
|
36
|
-
createTextVNode(" [" + toDisplayString(unref(node).textContent) + "] ", 1)
|
|
37
|
-
]),
|
|
38
|
-
_: 1
|
|
39
|
-
}, 8, ["to"])) : (openBlock(), createElementBlock("a", {
|
|
40
|
-
key: 1,
|
|
41
|
-
href: unref(node).getAttribute("refuri"),
|
|
42
|
-
target: "_blank"
|
|
43
|
-
}, " [" + toDisplayString(unref(node).textContent) + "] ", 9, _hoisted_1));
|
|
44
|
-
};
|
|
45
|
-
}
|
|
46
|
-
};
|
|
47
|
-
export { _sfc_main as default };
|
|
48
|
-
//# sourceMappingURL=FootnoteReference.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"FootnoteReference.js","sources":["../src/components/templates/FootnoteReference.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 [{{ node.textContent }}]\n </a>\n</template>\n\n<script setup>\nimport { 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\n</script>\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AA0BA,UAAM,mBAAmB,IAAI,EAAC,MAAM,IAAI,MAAM,GAAE,CAAC;AACjD,UAAM,EAAE,SAAS,OAAO,KAAK;AAC7B,UAAM,QAAQ,SAAU;AAExB,UAAM,EAAE,wBAAwB,WAAY;AAC5C,UAAM,EAAE,uBAAuB,iBAAiB,KAAK,OAAO,OAAO,gBAAgB;AAEnF,cAAU,kBAAkB;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/Image.js
DELETED
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { toRefs, ref, computed, openBlock, createElementBlock, normalizeProps, guardReactiveProps } from "vue";
|
|
2
|
-
import { useRoute } from "vue-router";
|
|
3
|
-
import { a as useChildren, b as useSphinxStore, d as determineRouteUrl } from "./entry.js";
|
|
4
|
-
import { u as useMethods } from "./methods.js";
|
|
5
|
-
import "@hsorby/vue3-katex";
|
|
6
|
-
import "katex/dist/katex.min.css";
|
|
7
|
-
import "axios";
|
|
8
|
-
import "path-to-regexp";
|
|
9
|
-
const _sfc_main = {
|
|
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(__props) {
|
|
23
|
-
const props = __props;
|
|
24
|
-
const { node } = toRefs(props);
|
|
25
|
-
useChildren(node);
|
|
26
|
-
const { dataObject } = useMethods();
|
|
27
|
-
const route = useRoute();
|
|
28
|
-
const sphinxStore = useSphinxStore();
|
|
29
|
-
const attrs = ref({});
|
|
30
|
-
const uri = computed(() => {
|
|
31
|
-
let imageURI = node.value.getAttribute("uri");
|
|
32
|
-
if (imageURI && !imageURI.startsWith("/") && !imageURI.startsWith("http")) {
|
|
33
|
-
const routeURL = determineRouteUrl(route);
|
|
34
|
-
const lastIndex = imageURI.lastIndexOf("/");
|
|
35
|
-
const imageName = imageURI.slice(lastIndex);
|
|
36
|
-
imageURI = [sphinxStore.getImagesURL(routeURL), imageName].join("/");
|
|
37
|
-
}
|
|
38
|
-
return imageURI;
|
|
39
|
-
});
|
|
40
|
-
attrs.value = dataObject(node.value).attrs;
|
|
41
|
-
if (attrs.value) {
|
|
42
|
-
attrs.value.src = uri;
|
|
43
|
-
} else {
|
|
44
|
-
attrs.value = { src: uri };
|
|
45
|
-
}
|
|
46
|
-
return (_ctx, _cache) => {
|
|
47
|
-
return openBlock(), createElementBlock("img", normalizeProps(guardReactiveProps(attrs.value)), null, 16);
|
|
48
|
-
};
|
|
49
|
-
}
|
|
50
|
-
};
|
|
51
|
-
export { _sfc_main as default };
|
|
52
|
-
//# sourceMappingURL=Image.js.map
|
package/dist/Image.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Image.js","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":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AA0BA,UAAM,EAAE,SAAS,OAAO,KAAK;AACR,gBAAY,IAAI;AACrC,UAAM,EAAE,eAAe,WAAY;AACnC,UAAM,QAAQ,SAAU;AACxB,UAAM,cAAc,eAAgB;AACpC,UAAM,QAAQ,IAAI,EAAE;AAEpB,UAAM,MAAM,SAAS,MAAM;AACzB,UAAI,WAAW,KAAK,MAAM,aAAa,KAAK;AAC5C,UAAI,YAAY,CAAC,SAAS,WAAW,GAAG,KAAK,CAAC,SAAS,WAAW,MAAM,GAAG;AACzE,cAAM,WAAW,kBAAkB,KAAK;AAIxC,cAAM,YAAY,SAAS,YAAY,GAAG;AAC1C,cAAM,YAAY,SAAS,MAAM,SAAS;AAE1C,mBAAW,CAAC,YAAY,aAAa,QAAQ,GAAG,SAAS,EAAE,KAAK,GAAG;AAAA,MACpE;AACD,aAAO;AAAA,IACT,CAAC;AAED,UAAM,QAAQ,WAAW,KAAK,KAAK,EAAE;AACrC,QAAI,MAAM,OAAO;AACf,YAAM,MAAM,MAAM;AAAA,IACpB,OAAO;AACL,YAAM,QAAQ,EAAE,KAAK,IAAK;AAAA,IAC5B;;;;;;;"}
|
package/dist/Legend.js
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { toRefs, openBlock, createElementBlock, normalizeClass, unref, Fragment, renderList, createBlock, resolveDynamicComponent } from "vue";
|
|
2
|
-
import { a as useChildren, u as useClasses } from "./entry.js";
|
|
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 _sfc_main = {
|
|
9
|
-
props: {
|
|
10
|
-
node: {
|
|
11
|
-
type: void 0,
|
|
12
|
-
default: null
|
|
13
|
-
},
|
|
14
|
-
componentName: {
|
|
15
|
-
type: String
|
|
16
|
-
},
|
|
17
|
-
properties: {
|
|
18
|
-
type: Object
|
|
19
|
-
}
|
|
20
|
-
},
|
|
21
|
-
setup(__props) {
|
|
22
|
-
const props = __props;
|
|
23
|
-
console.log("***** IN USE *****");
|
|
24
|
-
const { node } = toRefs(props);
|
|
25
|
-
const { children } = useChildren(node);
|
|
26
|
-
const { classes } = useClasses(node);
|
|
27
|
-
return (_ctx, _cache) => {
|
|
28
|
-
return openBlock(), createElementBlock("div", {
|
|
29
|
-
class: normalizeClass(unref(classes))
|
|
30
|
-
}, [
|
|
31
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(children), (c, index) => {
|
|
32
|
-
return openBlock(), createBlock(resolveDynamicComponent(c.component), {
|
|
33
|
-
key: "container_component_" + index,
|
|
34
|
-
node: c.node,
|
|
35
|
-
componentName: c.name,
|
|
36
|
-
properties: c.properties
|
|
37
|
-
}, null, 8, ["node", "componentName", "properties"]);
|
|
38
|
-
}), 128))
|
|
39
|
-
], 2);
|
|
40
|
-
};
|
|
41
|
-
}
|
|
42
|
-
};
|
|
43
|
-
export { _sfc_main as default };
|
|
44
|
-
//# sourceMappingURL=Legend.js.map
|
package/dist/Legend.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Legend.js","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":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAkBA,YAAQ,IAAI,oBAAoB;AAchC,UAAM,EAAE,SAAS,OAAO,KAAK;AAE7B,UAAM,EAAE,aAAa,YAAY,IAAI;AACrC,UAAM,EAAE,YAAY,WAAW,IAAI;;;;;;;;;;;;;;;;;;"}
|
package/dist/LineBlock.js
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { toRefs, ref, openBlock, createElementBlock, normalizeProps, guardReactiveProps, Fragment, renderList, unref, createBlock, resolveDynamicComponent } from "vue";
|
|
2
|
-
import { a as useChildren } from "./entry.js";
|
|
3
|
-
import { u as useMethods } from "./methods.js";
|
|
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 _sfc_main = {
|
|
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(__props) {
|
|
23
|
-
const props = __props;
|
|
24
|
-
const { dataObject } = useMethods();
|
|
25
|
-
const { node } = toRefs(props);
|
|
26
|
-
const attrs = ref({});
|
|
27
|
-
const { children } = useChildren(node);
|
|
28
|
-
attrs.value = dataObject(node.value, ["line_block"]).attrs;
|
|
29
|
-
return (_ctx, _cache) => {
|
|
30
|
-
return openBlock(), createElementBlock("div", normalizeProps(guardReactiveProps(attrs.value)), [
|
|
31
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(children), (c, index) => {
|
|
32
|
-
return openBlock(), createBlock(resolveDynamicComponent(c.component), {
|
|
33
|
-
key: "section_component_" + index,
|
|
34
|
-
node: c.node,
|
|
35
|
-
componentName: c.name,
|
|
36
|
-
properties: c.properties
|
|
37
|
-
}, null, 8, ["node", "componentName", "properties"]);
|
|
38
|
-
}), 128))
|
|
39
|
-
], 16);
|
|
40
|
-
};
|
|
41
|
-
}
|
|
42
|
-
};
|
|
43
|
-
export { _sfc_main as default };
|
|
44
|
-
//# sourceMappingURL=LineBlock.js.map
|
package/dist/LineBlock.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"LineBlock.js","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":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAgCA,UAAM,EAAE,eAAe,WAAY;AACnC,UAAM,EAAE,SAAS,OAAO,KAAK;AAC7B,UAAM,QAAQ,IAAI,EAAE;AAEpB,UAAM,EAAE,aAAa,YAAY,IAAI;AACrC,UAAM,QAAQ,WAAW,KAAK,OAAO,CAAC,YAAY,CAAC,EAAE;;;;;;;;;;;;;;;;"}
|
package/dist/LineSingle.js
DELETED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { toRefs, ref, openBlock, createElementBlock, normalizeProps, guardReactiveProps, Fragment, renderList, unref, createBlock, resolveDynamicComponent } from "vue";
|
|
2
|
-
import { u as useMethods } from "./methods.js";
|
|
3
|
-
import { a as useChildren } from "./entry.js";
|
|
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 _sfc_main = {
|
|
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(__props) {
|
|
23
|
-
const props = __props;
|
|
24
|
-
console.log("***** IN USE *****");
|
|
25
|
-
const { node } = toRefs(props);
|
|
26
|
-
const { children } = useChildren(node);
|
|
27
|
-
const { dataObject } = useMethods();
|
|
28
|
-
const attrs = ref({});
|
|
29
|
-
attrs.value = dataObject(node.value, ["line_single"]).attrs;
|
|
30
|
-
return (_ctx, _cache) => {
|
|
31
|
-
return openBlock(), createElementBlock("div", normalizeProps(guardReactiveProps(attrs.value)), [
|
|
32
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(children), (c, index) => {
|
|
33
|
-
return openBlock(), createBlock(resolveDynamicComponent(c.component), {
|
|
34
|
-
key: "footnote_component_" + index,
|
|
35
|
-
node: c.node,
|
|
36
|
-
componentName: c.name,
|
|
37
|
-
properties: c.properties
|
|
38
|
-
}, null, 8, ["node", "componentName", "properties"]);
|
|
39
|
-
}), 128))
|
|
40
|
-
], 16);
|
|
41
|
-
};
|
|
42
|
-
}
|
|
43
|
-
};
|
|
44
|
-
export { _sfc_main as default };
|
|
45
|
-
//# sourceMappingURL=LineSingle.js.map
|
package/dist/LineSingle.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"LineSingle.js","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":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAmBA,YAAQ,IAAI,oBAAoB;AAehC,UAAM,EAAE,SAAS,OAAO,KAAK;AAC7B,UAAM,EAAE,aAAa,YAAY,IAAI;AACrC,UAAM,EAAE,eAAe,WAAY;AACnC,UAAM,QAAQ,IAAI,EAAE;AAEpB,UAAM,QAAQ,WAAW,KAAK,OAAO,CAAC,aAAa,CAAC,EAAE;;;;;;;;;;;;;;;;"}
|
package/dist/Literal.js
DELETED
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import { toRefs, ref, openBlock, createElementBlock, normalizeClass, createElementVNode, Fragment, renderList, unref, createBlock, resolveDynamicComponent } from "vue";
|
|
2
|
-
import { u as useMethods } from "./methods.js";
|
|
3
|
-
import { a as useChildren } from "./entry.js";
|
|
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 _hoisted_1 = { class: "pre" };
|
|
10
|
-
const _sfc_main = {
|
|
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(__props) {
|
|
24
|
-
const props = __props;
|
|
25
|
-
const { node } = toRefs(props);
|
|
26
|
-
const { dataObject } = useMethods();
|
|
27
|
-
const { children } = useChildren(node);
|
|
28
|
-
const classes = ref(["literal", "notranslate"]);
|
|
29
|
-
const v = dataObject(node.value);
|
|
30
|
-
const isEmpty = (d) => {
|
|
31
|
-
for (const i in d) {
|
|
32
|
-
if (d[i].language === "") {
|
|
33
|
-
continue;
|
|
34
|
-
}
|
|
35
|
-
return false;
|
|
36
|
-
}
|
|
37
|
-
return true;
|
|
38
|
-
};
|
|
39
|
-
if (!isEmpty(v)) {
|
|
40
|
-
if (v.attrs && v.attrs.role) {
|
|
41
|
-
classes.value.push(v.attrs.role);
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
return (_ctx, _cache) => {
|
|
45
|
-
return openBlock(), createElementBlock("code", {
|
|
46
|
-
class: normalizeClass(classes.value)
|
|
47
|
-
}, [
|
|
48
|
-
createElementVNode("span", _hoisted_1, [
|
|
49
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(children), (c, index) => {
|
|
50
|
-
return openBlock(), createBlock(resolveDynamicComponent(c.component), {
|
|
51
|
-
key: "code_component_" + index,
|
|
52
|
-
node: c.node,
|
|
53
|
-
componentName: c.name,
|
|
54
|
-
properties: c.properties
|
|
55
|
-
}, null, 8, ["node", "componentName", "properties"]);
|
|
56
|
-
}), 128))
|
|
57
|
-
])
|
|
58
|
-
], 2);
|
|
59
|
-
};
|
|
60
|
-
}
|
|
61
|
-
};
|
|
62
|
-
export { _sfc_main as default };
|
|
63
|
-
//# sourceMappingURL=Literal.js.map
|
package/dist/Literal.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Literal.js","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":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAkCA,UAAM,EAAE,SAAS,OAAO,KAAK;AAE7B,UAAM,EAAE,eAAe,WAAY;AAEnC,UAAM,EAAE,aAAa,YAAY,IAAI;AAErC,UAAM,UAAU,IAAI,CAAC,WAAW,aAAa,CAAC;AAE9C,UAAM,IAAI,WAAW,KAAK,KAAK;AAC/B,UAAM,UAAU,CAAC,MAAM;AACrB,iBAAW,KAAK,GAAG;AACjB,YAAI,EAAE,GAAG,aAAa,IAAI;AACxB;AAAA,QACD;AACD,eAAO;AAAA,MACR;AAED,aAAO;AAAA,IACT;AAEA,QAAI,CAAC,QAAQ,CAAC,GAAG;AACf,UAAI,EAAE,SAAS,EAAE,MAAM,MAAM;AAC3B,gBAAQ,MAAM,KAAK,EAAE,MAAM,IAAI;AAAA,MAChC;AAAA,IACH;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/LiteralBlock.js
DELETED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { toRefs, computed, resolveDirective, withDirectives, openBlock, createElementBlock, createElementVNode, normalizeClass, unref, toDisplayString } from "vue";
|
|
2
|
-
import { e as decodeHTML } from "./entry.js";
|
|
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 _sfc_main = {
|
|
9
|
-
props: {
|
|
10
|
-
node: {
|
|
11
|
-
type: void 0,
|
|
12
|
-
default: null
|
|
13
|
-
},
|
|
14
|
-
componentName: {
|
|
15
|
-
type: String
|
|
16
|
-
},
|
|
17
|
-
properties: {
|
|
18
|
-
type: Object
|
|
19
|
-
}
|
|
20
|
-
},
|
|
21
|
-
setup(__props) {
|
|
22
|
-
const props = __props;
|
|
23
|
-
const { node } = toRefs(props);
|
|
24
|
-
const sourceLanguage = computed(() => {
|
|
25
|
-
let language = node.value.getAttribute("language");
|
|
26
|
-
if (language === "console" || language === "default") {
|
|
27
|
-
language = "bash";
|
|
28
|
-
} else if (language === "text") {
|
|
29
|
-
language = "plaintext";
|
|
30
|
-
}
|
|
31
|
-
return language;
|
|
32
|
-
});
|
|
33
|
-
const sourceCode = computed(() => {
|
|
34
|
-
return decodeHTML(node.value.innerHTML);
|
|
35
|
-
});
|
|
36
|
-
return (_ctx, _cache) => {
|
|
37
|
-
const _directive_highlightjs = resolveDirective("highlightjs");
|
|
38
|
-
return withDirectives((openBlock(), createElementBlock("pre", null, [
|
|
39
|
-
createElementVNode("code", {
|
|
40
|
-
class: normalizeClass(unref(sourceLanguage))
|
|
41
|
-
}, toDisplayString(unref(sourceCode)), 3)
|
|
42
|
-
])), [
|
|
43
|
-
[_directive_highlightjs]
|
|
44
|
-
]);
|
|
45
|
-
};
|
|
46
|
-
}
|
|
47
|
-
};
|
|
48
|
-
export { _sfc_main as default };
|
|
49
|
-
//# sourceMappingURL=LiteralBlock.js.map
|
package/dist/LiteralBlock.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"LiteralBlock.js","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":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAsBA,UAAM,EAAE,SAAS,OAAO,KAAK;AAE7B,UAAM,iBAAiB,SAAS,MAAM;AACpC,UAAI,WAAW,KAAK,MAAM,aAAa,UAAU;AACjD,UAAI,aAAa,aAAa,aAAa,WAAW;AACpD,mBAAW;AAAA,MACf,WAAa,aAAa,QAAQ;AAC9B,mBAAW;AAAA,MACZ;AACD,aAAO;AAAA,IACT,CAAC;AAED,UAAM,aAAa,SAAS,MAAM;AAChC,aAAO,WAAW,KAAK,MAAM,SAAS;AAAA,IACxC,CAAC;;;;;;;;;;;;;;"}
|