vue3-sphinx-xml 0.1.0-beta.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/LICENSE +14 -0
- package/README.md +171 -0
- package/dist/BlockQuote.js +43 -0
- package/dist/BlockQuote.js.map +1 -0
- package/dist/CaptionNumber.js +71 -0
- package/dist/CaptionNumber.js.map +1 -0
- package/dist/ColumnGroup.js +44 -0
- package/dist/ColumnGroup.js.map +1 -0
- package/dist/Comment.js +34 -0
- package/dist/Comment.js.map +1 -0
- package/dist/Compound.js +39 -0
- package/dist/Compound.js.map +1 -0
- package/dist/Container.js +80 -0
- package/dist/Container.js.map +1 -0
- package/dist/DirectElementMap.js +22 -0
- package/dist/DirectElementMap.js.map +1 -0
- package/dist/DownloadReference.js +51 -0
- package/dist/DownloadReference.js.map +1 -0
- package/dist/Figure.js +55 -0
- package/dist/Figure.js.map +1 -0
- package/dist/FigureCaption.js +77 -0
- package/dist/FigureCaption.js.map +1 -0
- package/dist/Footnote.js +45 -0
- package/dist/Footnote.js.map +1 -0
- package/dist/FootnoteReference.js +49 -0
- package/dist/FootnoteReference.js.map +1 -0
- package/dist/Image.js +53 -0
- package/dist/Image.js.map +1 -0
- package/dist/Legend.js +45 -0
- package/dist/Legend.js.map +1 -0
- package/dist/LineBlock.js +45 -0
- package/dist/LineBlock.js.map +1 -0
- package/dist/LineSingle.js +46 -0
- package/dist/LineSingle.js.map +1 -0
- package/dist/Literal.js +56 -0
- package/dist/Literal.js.map +1 -0
- package/dist/LiteralBlock.js +50 -0
- package/dist/LiteralBlock.js.map +1 -0
- package/dist/Math.js +25 -0
- package/dist/Math.js.map +1 -0
- package/dist/MathBlock.js +77 -0
- package/dist/MathBlock.js.map +1 -0
- package/dist/Note.js +48 -0
- package/dist/Note.js.map +1 -0
- package/dist/NumberReference.js +60 -0
- package/dist/NumberReference.js.map +1 -0
- package/dist/Problematic.js +45 -0
- package/dist/Problematic.js.map +1 -0
- package/dist/Raw.js +10 -0
- package/dist/Raw.js.map +1 -0
- package/dist/Reference.js +49 -0
- package/dist/Reference.js.map +1 -0
- package/dist/Section.js +53 -0
- package/dist/Section.js.map +1 -0
- package/dist/StandardElement.js +99 -0
- package/dist/StandardElement.js.map +1 -0
- package/dist/Text.js +23 -0
- package/dist/Text.js.map +1 -0
- package/dist/Title.js +66 -0
- package/dist/Title.js.map +1 -0
- package/dist/TodoNode.js +54 -0
- package/dist/TodoNode.js.map +1 -0
- package/dist/Topic.js +49 -0
- package/dist/Topic.js.map +1 -0
- package/dist/Transition.js +9 -0
- package/dist/Transition.js.map +1 -0
- package/dist/basereference.js +42 -0
- package/dist/basereference.js.map +1 -0
- package/dist/entry.js +707 -0
- package/dist/entry.js.map +1 -0
- package/dist/favicon.ico +0 -0
- package/dist/index.html +21 -0
- package/dist/methods.js +138 -0
- package/dist/methods.js.map +1 -0
- package/dist/style.css +1 -0
- package/dist/vue3-sphinx-xml.es.js +9 -0
- package/dist/vue3-sphinx-xml.es.js.map +1 -0
- package/package.json +48 -0
package/dist/Figure.js
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { toRefs, ref, computed, openBlock, createElementBlock, normalizeProps, guardReactiveProps, Fragment, renderList, unref, createBlock, resolveDynamicComponent } from "vue";
|
|
2
|
+
import { a as useClasses, u 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 "vuex";
|
|
8
|
+
import "path-to-regexp";
|
|
9
|
+
import "axios";
|
|
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 { dataObject } = useMethods();
|
|
26
|
+
const { node } = toRefs(props);
|
|
27
|
+
const attrs = ref({});
|
|
28
|
+
const { classes } = useClasses(node);
|
|
29
|
+
const { children } = useChildren(node);
|
|
30
|
+
const combinerdClasses = computed(() => {
|
|
31
|
+
let c = [...classes.value];
|
|
32
|
+
for (const attr of node.value.attributes) {
|
|
33
|
+
if (attr.name === "align") {
|
|
34
|
+
c.push("align-" + attr.value);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
return c;
|
|
38
|
+
});
|
|
39
|
+
attrs.value = dataObject(node.value, combinerdClasses.value).attrs;
|
|
40
|
+
return (_ctx, _cache) => {
|
|
41
|
+
return openBlock(), createElementBlock("figure", normalizeProps(guardReactiveProps(attrs.value)), [
|
|
42
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(children), (c, index) => {
|
|
43
|
+
return openBlock(), createBlock(resolveDynamicComponent(c.component), {
|
|
44
|
+
key: "figure_component_" + index,
|
|
45
|
+
node: c.node,
|
|
46
|
+
componentName: c.name,
|
|
47
|
+
properties: c.properties
|
|
48
|
+
}, null, 8, ["node", "componentName", "properties"]);
|
|
49
|
+
}), 128))
|
|
50
|
+
], 16);
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
};
|
|
54
|
+
export { _sfc_main as default };
|
|
55
|
+
//# sourceMappingURL=Figure.js.map
|
|
@@ -0,0 +1 @@
|
|
|
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;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,77 @@
|
|
|
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 { a as useClasses, u 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 "vuex";
|
|
27
|
+
import "path-to-regexp";
|
|
28
|
+
import "axios";
|
|
29
|
+
const _sfc_main = {
|
|
30
|
+
props: {
|
|
31
|
+
node: {
|
|
32
|
+
type: void 0,
|
|
33
|
+
default: null
|
|
34
|
+
},
|
|
35
|
+
componentName: {
|
|
36
|
+
type: String
|
|
37
|
+
},
|
|
38
|
+
properties: {
|
|
39
|
+
type: Object
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
setup(__props) {
|
|
43
|
+
const props = __props;
|
|
44
|
+
const { dataObject } = useMethods();
|
|
45
|
+
const { node } = toRefs(props);
|
|
46
|
+
const attrs = ref({});
|
|
47
|
+
const { classes } = useClasses(node);
|
|
48
|
+
const { children } = useChildren(node);
|
|
49
|
+
const combinedClasses = computed(() => {
|
|
50
|
+
let c = ["figure-caption", ...classes.value];
|
|
51
|
+
for (const attr of node.value.attributes) {
|
|
52
|
+
if (attr.name === "align") {
|
|
53
|
+
c.push("align-" + attr.value);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
return c;
|
|
57
|
+
});
|
|
58
|
+
const result = dataObject(node.value, combinedClasses.value);
|
|
59
|
+
attrs.value = __spreadProps(__spreadValues({}, result.attrs), {
|
|
60
|
+
class: result.class.join(" ")
|
|
61
|
+
});
|
|
62
|
+
return (_ctx, _cache) => {
|
|
63
|
+
return openBlock(), createElementBlock("span", normalizeProps(guardReactiveProps(attrs.value)), [
|
|
64
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(children), (c, index) => {
|
|
65
|
+
return openBlock(), createBlock(resolveDynamicComponent(c.component), {
|
|
66
|
+
key: "figure_caption_" + index,
|
|
67
|
+
node: c.node,
|
|
68
|
+
componentName: c.name,
|
|
69
|
+
properties: c.properties
|
|
70
|
+
}, null, 8, ["node", "componentName", "properties"]);
|
|
71
|
+
}), 128))
|
|
72
|
+
], 16);
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
};
|
|
76
|
+
export { _sfc_main as default };
|
|
77
|
+
//# sourceMappingURL=FigureCaption.js.map
|
|
@@ -0,0 +1 @@
|
|
|
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
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
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 { u as useChildren } from "./entry.js";
|
|
4
|
+
import "@hsorby/vue3-katex";
|
|
5
|
+
import "katex/dist/katex.min.css";
|
|
6
|
+
import "vue-router";
|
|
7
|
+
import "vuex";
|
|
8
|
+
import "path-to-regexp";
|
|
9
|
+
import "axios";
|
|
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 { children } = useChildren(node);
|
|
27
|
+
const { dataObject } = useMethods();
|
|
28
|
+
const attrs = ref({});
|
|
29
|
+
attrs.value = dataObject(node.value, ["footnote"]).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=Footnote.js.map
|
|
@@ -0,0 +1 @@
|
|
|
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\n// import { sphinxChildren } from '../../mixins/SphinxChildren'\n\n// export default {\n// name: 'Footnote',\n// mixins: [sphinxChildren],\n// render() {\n// return h(\n// 'div', // tag name\n// this.dataObject(['footnote']),\n// this.children.map(child => h(child)), // array of children\n// )\n// },\n// }\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;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,49 @@
|
|
|
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 "vuex";
|
|
9
|
+
import "path-to-regexp";
|
|
10
|
+
import "axios";
|
|
11
|
+
const _hoisted_1 = ["href"];
|
|
12
|
+
const _sfc_main = {
|
|
13
|
+
props: {
|
|
14
|
+
node: {
|
|
15
|
+
type: void 0,
|
|
16
|
+
default: null
|
|
17
|
+
},
|
|
18
|
+
componentName: {
|
|
19
|
+
type: String
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
setup(__props) {
|
|
23
|
+
const props = __props;
|
|
24
|
+
const routeDescription = ref({ path: "", hash: "" });
|
|
25
|
+
const { node } = toRefs(props);
|
|
26
|
+
const route = useRoute();
|
|
27
|
+
const { isInternalReference } = useMethods();
|
|
28
|
+
const { onReferenceCreated } = useBaseReference(node.value, route, routeDescription);
|
|
29
|
+
onMounted(onReferenceCreated);
|
|
30
|
+
return (_ctx, _cache) => {
|
|
31
|
+
const _component_router_link = resolveComponent("router-link");
|
|
32
|
+
return unref(isInternalReference)(unref(node)) ? (openBlock(), createBlock(_component_router_link, {
|
|
33
|
+
key: 0,
|
|
34
|
+
to: routeDescription.value
|
|
35
|
+
}, {
|
|
36
|
+
default: withCtx(() => [
|
|
37
|
+
createTextVNode(" [" + toDisplayString(unref(node).textContent) + "] ", 1)
|
|
38
|
+
]),
|
|
39
|
+
_: 1
|
|
40
|
+
}, 8, ["to"])) : (openBlock(), createElementBlock("a", {
|
|
41
|
+
key: 1,
|
|
42
|
+
href: unref(node).getAttribute("refuri"),
|
|
43
|
+
target: "_blank"
|
|
44
|
+
}, " [" + toDisplayString(unref(node).textContent) + "] ", 9, _hoisted_1));
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
export { _sfc_main as default };
|
|
49
|
+
//# sourceMappingURL=FootnoteReference.js.map
|
|
@@ -0,0 +1 @@
|
|
|
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// import { baseReference } from '../../mixins/BaseReference'\n\n// export default {\n// name: 'FootnoteReference',\n// mixins: [baseReference],\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
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { toRefs, ref, computed, openBlock, createElementBlock, normalizeProps, guardReactiveProps } from "vue";
|
|
2
|
+
import { useRoute } from "vue-router";
|
|
3
|
+
import { useStore } from "vuex";
|
|
4
|
+
import { u as useMethods } from "./methods.js";
|
|
5
|
+
import { u as useChildren, d as determineRouteUrl } from "./entry.js";
|
|
6
|
+
import "@hsorby/vue3-katex";
|
|
7
|
+
import "katex/dist/katex.min.css";
|
|
8
|
+
import "path-to-regexp";
|
|
9
|
+
import "axios";
|
|
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
|
+
useChildren(node);
|
|
27
|
+
const { dataObject } = useMethods();
|
|
28
|
+
const route = useRoute();
|
|
29
|
+
const store = useStore();
|
|
30
|
+
const attrs = ref({});
|
|
31
|
+
const uri = computed(() => {
|
|
32
|
+
let imageURI = node.value.getAttribute("uri");
|
|
33
|
+
if (imageURI && !imageURI.startsWith("/") && !imageURI.startsWith("http")) {
|
|
34
|
+
const routeURL = determineRouteUrl(route);
|
|
35
|
+
const lastIndex = imageURI.lastIndexOf("/");
|
|
36
|
+
const imageName = imageURI.slice(lastIndex);
|
|
37
|
+
imageURI = [store.getters["sphinx/getImagesURL"](routeURL), imageName].join("/");
|
|
38
|
+
}
|
|
39
|
+
return imageURI;
|
|
40
|
+
});
|
|
41
|
+
attrs.value = dataObject(node.value).attrs;
|
|
42
|
+
if (attrs.value) {
|
|
43
|
+
attrs.value.src = uri;
|
|
44
|
+
} else {
|
|
45
|
+
attrs.value = { src: uri };
|
|
46
|
+
}
|
|
47
|
+
return (_ctx, _cache) => {
|
|
48
|
+
return openBlock(), createElementBlock("img", normalizeProps(guardReactiveProps(attrs.value)), null, 16);
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
export { _sfc_main as default };
|
|
53
|
+
//# sourceMappingURL=Image.js.map
|
|
@@ -0,0 +1 @@
|
|
|
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 { useStore } from 'vuex'\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 store = useStore()\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 = [store.getters['sphinx/getImagesURL'](routeURL), imageName].join(\n '/',\n )\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,QAAQ,SAAU;AACxB,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,MAAM,QAAQ,uBAAuB,QAAQ,GAAG,SAAS,EAAE,KACrE,GACD;AAAA,MACF;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,EAAC,KAAK,IAAG;AAAA,IACzB;;;;;;;"}
|
package/dist/Legend.js
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { toRefs, openBlock, createElementBlock, normalizeClass, unref, Fragment, renderList, createBlock, resolveDynamicComponent } from "vue";
|
|
2
|
+
import { u as useChildren, a as useClasses } from "./entry.js";
|
|
3
|
+
import "@hsorby/vue3-katex";
|
|
4
|
+
import "katex/dist/katex.min.css";
|
|
5
|
+
import "vue-router";
|
|
6
|
+
import "vuex";
|
|
7
|
+
import "path-to-regexp";
|
|
8
|
+
import "axios";
|
|
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 { classes } = useClasses(node);
|
|
28
|
+
return (_ctx, _cache) => {
|
|
29
|
+
return openBlock(), createElementBlock("div", {
|
|
30
|
+
class: normalizeClass(unref(classes))
|
|
31
|
+
}, [
|
|
32
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(children), (c, index) => {
|
|
33
|
+
return openBlock(), createBlock(resolveDynamicComponent(c.component), {
|
|
34
|
+
key: "container_component_" + index,
|
|
35
|
+
node: c.node,
|
|
36
|
+
componentName: c.name,
|
|
37
|
+
properties: c.properties
|
|
38
|
+
}, null, 8, ["node", "componentName", "properties"]);
|
|
39
|
+
}), 128))
|
|
40
|
+
], 2);
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
export { _sfc_main as default };
|
|
45
|
+
//# sourceMappingURL=Legend.js.map
|
|
@@ -0,0 +1 @@
|
|
|
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>\nconsole.log(\"***** IN USE *****\")\nimport { toRefs } from 'vue'\n\nimport { useChildren, useClasses } 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 { children } = useChildren(node)\nconst { classes } = useClasses(node)\n// import { baseDiv } from '../../mixins/BaseDiv'\n// import { sphinxChildren } from '../../mixins/SphinxChildren'\n\n// export default {\n// name: 'Legend',\n// mixins: [baseDiv, sphinxChildren],\n// computed: {\n// classes() {\n// return ['legend']\n// },\n// },\n// }\n</script>\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAcA,YAAQ,IAAI,oBAAoB;AAkBhC,UAAM,EAAE,SAAS,OAAO,KAAK;AAE7B,UAAM,EAAE,aAAa,YAAY,IAAI;AACrC,UAAM,EAAE,YAAY,WAAW,IAAI;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { toRefs, ref, openBlock, createElementBlock, normalizeProps, guardReactiveProps, Fragment, renderList, unref, createBlock, resolveDynamicComponent } from "vue";
|
|
2
|
+
import { u 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 "vuex";
|
|
8
|
+
import "path-to-regexp";
|
|
9
|
+
import "axios";
|
|
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 { dataObject } = useMethods();
|
|
26
|
+
const { node } = toRefs(props);
|
|
27
|
+
const attrs = ref({});
|
|
28
|
+
const { children } = useChildren(node);
|
|
29
|
+
attrs.value = dataObject(node.value, ["line_block"]).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: "section_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=LineBlock.js.map
|
|
@@ -0,0 +1 @@
|
|
|
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;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,46 @@
|
|
|
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 { u as useChildren } from "./entry.js";
|
|
4
|
+
import "@hsorby/vue3-katex";
|
|
5
|
+
import "katex/dist/katex.min.css";
|
|
6
|
+
import "vue-router";
|
|
7
|
+
import "vuex";
|
|
8
|
+
import "path-to-regexp";
|
|
9
|
+
import "axios";
|
|
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
|
+
console.log("***** IN USE *****");
|
|
26
|
+
const { node } = toRefs(props);
|
|
27
|
+
const { children } = useChildren(node);
|
|
28
|
+
const { dataObject } = useMethods();
|
|
29
|
+
const attrs = ref({});
|
|
30
|
+
attrs.value = dataObject(node.value, ["line_single"]).attrs;
|
|
31
|
+
return (_ctx, _cache) => {
|
|
32
|
+
return openBlock(), createElementBlock("div", normalizeProps(guardReactiveProps(attrs.value)), [
|
|
33
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(children), (c, index) => {
|
|
34
|
+
return openBlock(), createBlock(resolveDynamicComponent(c.component), {
|
|
35
|
+
key: "footnote_component_" + index,
|
|
36
|
+
node: c.node,
|
|
37
|
+
componentName: c.name,
|
|
38
|
+
properties: c.properties
|
|
39
|
+
}, null, 8, ["node", "componentName", "properties"]);
|
|
40
|
+
}), 128))
|
|
41
|
+
], 16);
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
export { _sfc_main as default };
|
|
46
|
+
//# sourceMappingURL=LineSingle.js.map
|
|
@@ -0,0 +1 @@
|
|
|
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>\nconsole.log('***** IN USE *****')\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, ['line_single']).attrs // import { h } from 'vue'\n// import { h } from 'vue'\n\n// import { sphinxChildren } from '../../mixins/SphinxChildren'\n\n// export default {\n// name: 'LineSingle',\n// mixins: [sphinxChildren],\n// render() {\n// return h(\n// 'div', // tag name\n// this.dataObject(['line_single']),\n// this.children.map(child => h(child)), // array of children\n// )\n// },\n// }\n</script>\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAcA,YAAQ,IAAI,oBAAoB;AAmBhC,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
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { toRefs, openBlock, createElementBlock, createElementVNode, Fragment, renderList, unref, createBlock, resolveDynamicComponent } from "vue";
|
|
2
|
+
import { u as useMethods } from "./methods.js";
|
|
3
|
+
import { u as useChildren } from "./entry.js";
|
|
4
|
+
import "@hsorby/vue3-katex";
|
|
5
|
+
import "katex/dist/katex.min.css";
|
|
6
|
+
import "vue-router";
|
|
7
|
+
import "vuex";
|
|
8
|
+
import "path-to-regexp";
|
|
9
|
+
import "axios";
|
|
10
|
+
const _hoisted_1 = { class: "pre" };
|
|
11
|
+
const _sfc_main = {
|
|
12
|
+
props: {
|
|
13
|
+
node: {
|
|
14
|
+
type: void 0,
|
|
15
|
+
default: null
|
|
16
|
+
},
|
|
17
|
+
componentName: {
|
|
18
|
+
type: String
|
|
19
|
+
},
|
|
20
|
+
properties: {
|
|
21
|
+
type: Object
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
setup(__props) {
|
|
25
|
+
const props = __props;
|
|
26
|
+
const { node } = toRefs(props);
|
|
27
|
+
const { dataObject } = useMethods();
|
|
28
|
+
const { children } = useChildren(node);
|
|
29
|
+
const v = dataObject(node.value);
|
|
30
|
+
const isEmpty = (d) => {
|
|
31
|
+
for (const i in d) {
|
|
32
|
+
return false;
|
|
33
|
+
}
|
|
34
|
+
return true;
|
|
35
|
+
};
|
|
36
|
+
if (!isEmpty(v)) {
|
|
37
|
+
console.log("Something needs to be done with this:", v);
|
|
38
|
+
}
|
|
39
|
+
return (_ctx, _cache) => {
|
|
40
|
+
return openBlock(), createElementBlock("code", null, [
|
|
41
|
+
createElementVNode("span", _hoisted_1, [
|
|
42
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(children), (c, index) => {
|
|
43
|
+
return openBlock(), createBlock(resolveDynamicComponent(c.component), {
|
|
44
|
+
key: "code_component_" + index,
|
|
45
|
+
node: c.node,
|
|
46
|
+
componentName: c.name,
|
|
47
|
+
properties: c.properties
|
|
48
|
+
}, null, 8, ["node", "componentName", "properties"]);
|
|
49
|
+
}), 128))
|
|
50
|
+
])
|
|
51
|
+
]);
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
export { _sfc_main as default };
|
|
56
|
+
//# sourceMappingURL=Literal.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Literal.js","sources":["../src/components/templates/Literal.vue"],"sourcesContent":["<template>\n <code>\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 } 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 v = dataObject(node.value)\nconst isEmpty = (d) => {\n for (const i in d) {\n return false\n }\n\n return true\n}\n\nif (!isEmpty(v)) {\n console.log('Something needs to be done with this:', v)\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,IAAI,WAAW,KAAK,KAAK;AAC/B,UAAM,UAAU,CAAC,MAAM;AACrB,iBAAW,KAAK,GAAG;AACjB,eAAO;AAAA,MACR;AAED,aAAO;AAAA,IACT;AAEA,QAAI,CAAC,QAAQ,CAAC,GAAG;AACf,cAAQ,IAAI,yCAAyC,CAAC;AAAA,IACxD;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { toRefs, computed, resolveDirective, withDirectives, openBlock, createElementBlock, createElementVNode, normalizeClass, unref, toDisplayString } from "vue";
|
|
2
|
+
import { b as decodeHTML } from "./entry.js";
|
|
3
|
+
import "@hsorby/vue3-katex";
|
|
4
|
+
import "katex/dist/katex.min.css";
|
|
5
|
+
import "vue-router";
|
|
6
|
+
import "vuex";
|
|
7
|
+
import "path-to-regexp";
|
|
8
|
+
import "axios";
|
|
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 sourceLanguage = computed(() => {
|
|
26
|
+
let language = node.value.getAttribute("language");
|
|
27
|
+
if (language === "console" || language === "default") {
|
|
28
|
+
language = "bash";
|
|
29
|
+
} else if (language === "text") {
|
|
30
|
+
language = "plaintext";
|
|
31
|
+
}
|
|
32
|
+
return language;
|
|
33
|
+
});
|
|
34
|
+
const sourceCode = computed(() => {
|
|
35
|
+
return decodeHTML(node.value.innerHTML);
|
|
36
|
+
});
|
|
37
|
+
return (_ctx, _cache) => {
|
|
38
|
+
const _directive_highlightjs = resolveDirective("highlightjs");
|
|
39
|
+
return withDirectives((openBlock(), createElementBlock("pre", null, [
|
|
40
|
+
createElementVNode("code", {
|
|
41
|
+
class: normalizeClass(unref(sourceLanguage))
|
|
42
|
+
}, toDisplayString(unref(sourceCode)), 3)
|
|
43
|
+
])), [
|
|
44
|
+
[_directive_highlightjs]
|
|
45
|
+
]);
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
export { _sfc_main as default };
|
|
50
|
+
//# sourceMappingURL=LiteralBlock.js.map
|
|
@@ -0,0 +1 @@
|
|
|
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// export default {\n// name: 'LiteralBlock',\n// props: {\n// element: {\n// type: undefined,\n// },\n// },\n// computed: {\n// sourceLanguage() {\n// let language = this.element.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// sourceCode() {\n// return decodeHTML(this.element.innerHTML)\n// },\n// },\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;;;;;;;;;;;;;;"}
|
package/dist/Math.js
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { resolveComponent, openBlock, createBlock } from "vue";
|
|
2
|
+
const _sfc_main = {
|
|
3
|
+
props: {
|
|
4
|
+
node: {
|
|
5
|
+
type: void 0,
|
|
6
|
+
default: null
|
|
7
|
+
},
|
|
8
|
+
componentName: {
|
|
9
|
+
type: String
|
|
10
|
+
},
|
|
11
|
+
properties: {
|
|
12
|
+
type: Object
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
setup(__props) {
|
|
16
|
+
return (_ctx, _cache) => {
|
|
17
|
+
const _component_katex_element = resolveComponent("katex-element");
|
|
18
|
+
return openBlock(), createBlock(_component_katex_element, {
|
|
19
|
+
expression: __props.node.textContent
|
|
20
|
+
}, null, 8, ["expression"]);
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
export { _sfc_main as default };
|
|
25
|
+
//# sourceMappingURL=Math.js.map
|
package/dist/Math.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Math.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;"}
|