vue3-sphinx-xml 0.2.1-rc.2 → 0.3.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/README.md +21 -11
- package/dist/Admonition.js +71 -0
- package/dist/Admonition.js.map +1 -0
- package/dist/BlockQuote.js +2 -3
- package/dist/BlockQuote.js.map +1 -1
- package/dist/CaptionNumber.js +2 -3
- package/dist/CaptionNumber.js.map +1 -1
- package/dist/Compound.js +2 -3
- package/dist/Compound.js.map +1 -1
- package/dist/Container.js +2 -3
- package/dist/Container.js.map +1 -1
- package/dist/DownloadReference.js +4 -8
- package/dist/DownloadReference.js.map +1 -1
- package/dist/Figure.js +2 -3
- package/dist/Figure.js.map +1 -1
- package/dist/FigureCaption.js +2 -3
- package/dist/FigureCaption.js.map +1 -1
- package/dist/Footnote.js +2 -3
- package/dist/Footnote.js.map +1 -1
- package/dist/FootnoteReference.js +1 -2
- package/dist/FootnoteReference.js.map +1 -1
- package/dist/Image.js +4 -5
- package/dist/Image.js.map +1 -1
- package/dist/Legend.js +2 -3
- package/dist/Legend.js.map +1 -1
- package/dist/LineBlock.js +2 -3
- package/dist/LineBlock.js.map +1 -1
- package/dist/LineSingle.js +2 -3
- package/dist/LineSingle.js.map +1 -1
- package/dist/Literal.js +2 -3
- package/dist/Literal.js.map +1 -1
- package/dist/LiteralBlock.js +2 -3
- package/dist/LiteralBlock.js.map +1 -1
- package/dist/Note.js +2 -3
- package/dist/Note.js.map +1 -1
- package/dist/NumberReference.js +1 -2
- package/dist/NumberReference.js.map +1 -1
- package/dist/Problematic.js +1 -2
- package/dist/Problematic.js.map +1 -1
- package/dist/Reference.js +2 -3
- package/dist/Reference.js.map +1 -1
- package/dist/Section.js +2 -3
- package/dist/Section.js.map +1 -1
- package/dist/StandardElement.js +2 -3
- package/dist/StandardElement.js.map +1 -1
- package/dist/Title.js +2 -3
- package/dist/Title.js.map +1 -1
- package/dist/TodoNode.js +2 -3
- package/dist/TodoNode.js.map +1 -1
- package/dist/Topic.js +2 -3
- package/dist/Topic.js.map +1 -1
- package/dist/Warning.js +54 -0
- package/dist/Warning.js.map +1 -0
- package/dist/basereference.js +5 -6
- package/dist/basereference.js.map +1 -1
- package/dist/entry.js +455 -123
- package/dist/entry.js.map +1 -1
- package/dist/vue3-sphinx-xml.es.js +2 -3
- package/dist/vue3-sphinx-xml.es.js.map +1 -1
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -15,16 +15,21 @@ npm install --save vue3-sphinx-xml
|
|
|
15
15
|
|
|
16
16
|
### Module import
|
|
17
17
|
|
|
18
|
-
vue3-sphinx-xml makes use of the
|
|
19
|
-
|
|
18
|
+
vue3-sphinx-xml makes use of the pinia to track data.
|
|
19
|
+
It uses a local pinia instance for its own purposes.
|
|
20
|
+
You can pass options to Katex when you install vue3-sphinx-xml, using the **katex** key in the options parameter.
|
|
20
21
|
|
|
21
22
|
```javascript
|
|
22
|
-
import store from './store'
|
|
23
|
-
|
|
24
23
|
import { installVue3SphinxXml } from 'vue3-sphinx-xml'
|
|
25
24
|
import 'vue3-sphinx-xml/dist/style.css'
|
|
26
25
|
|
|
27
|
-
createApp(App)
|
|
26
|
+
createApp(App)
|
|
27
|
+
.use(installVue3SphinxXml, {
|
|
28
|
+
katex: {
|
|
29
|
+
/* Katex options go here. */
|
|
30
|
+
},
|
|
31
|
+
})
|
|
32
|
+
.mount('#app')
|
|
28
33
|
```
|
|
29
34
|
|
|
30
35
|
Add the above to your `main.js` application file before the line creating a `createApp(App)` instance (this assumes that a standard layout is followed when creating your application).
|
|
@@ -39,8 +44,6 @@ npm install --save vue-highlightjs
|
|
|
39
44
|
and edit your `main.js` application file to have the following:
|
|
40
45
|
|
|
41
46
|
```javascript
|
|
42
|
-
import store from './store'
|
|
43
|
-
|
|
44
47
|
import { installVue3SphinxXml } from 'vue3-sphinx-xml'
|
|
45
48
|
import 'vue3-sphinx-xml/dist/style.css'
|
|
46
49
|
|
|
@@ -50,7 +53,7 @@ import 'highlight.js/styles/xcode.css'
|
|
|
50
53
|
|
|
51
54
|
createApp(App)
|
|
52
55
|
.use(store)
|
|
53
|
-
.use(installVue3SphinxXml
|
|
56
|
+
.use(installVue3SphinxXml)
|
|
54
57
|
.use(VueHighlightJS)
|
|
55
58
|
.mount('#app')
|
|
56
59
|
```
|
|
@@ -66,7 +69,7 @@ Example view `Documentation.vue`:
|
|
|
66
69
|
```javascript
|
|
67
70
|
<template>
|
|
68
71
|
<div class="documentation">
|
|
69
|
-
<sphinx-page
|
|
72
|
+
<sphinx-page baseURL="/sphinx-xml-files"
|
|
70
73
|
/>
|
|
71
74
|
</div>
|
|
72
75
|
</template>
|
|
@@ -77,6 +80,8 @@ import { SphinxPage } from 'vue3-sphinx-xml'
|
|
|
77
80
|
|
|
78
81
|
```
|
|
79
82
|
|
|
83
|
+
In this example the XML source files would be in the directory **public/sphinx-xml-files**.
|
|
84
|
+
|
|
80
85
|
#### SphinxPage API
|
|
81
86
|
|
|
82
87
|
- props
|
|
@@ -91,7 +96,8 @@ import { SphinxPage } from 'vue3-sphinx-xml'
|
|
|
91
96
|
|
|
92
97
|
### Module routing
|
|
93
98
|
|
|
94
|
-
vue3-sphinx-xml requires that you use vue-router.
|
|
99
|
+
vue3-sphinx-xml requires that you use vue-router.
|
|
100
|
+
To add a vue3-sphinx-xml route under `documentation` add the following to `routes` object for vue-router:
|
|
95
101
|
|
|
96
102
|
```javascript
|
|
97
103
|
{
|
|
@@ -121,7 +127,11 @@ import VueKatex from 'vue-katex'
|
|
|
121
127
|
|
|
122
128
|
import 'katex/dist/katex.min.css'
|
|
123
129
|
|
|
124
|
-
Vue.use(SphinxXml, {
|
|
130
|
+
Vue.use(SphinxXml, {
|
|
131
|
+
katex: {
|
|
132
|
+
/* Katex options. */
|
|
133
|
+
},
|
|
134
|
+
})
|
|
125
135
|
Vue.use(VueKatex)
|
|
126
136
|
```
|
|
127
137
|
|
|
@@ -0,0 +1,71 @@
|
|
|
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, openBlock, createElementBlock, mergeProps, unref, Fragment, renderList, createBlock, resolveDynamicComponent } from "vue";
|
|
21
|
+
import { u as useMethods } from "./methods.js";
|
|
22
|
+
import { u as useClasses, a as useChildren } from "./entry.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 _hoisted_1 = ["id"];
|
|
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 { node } = toRefs(props);
|
|
45
|
+
const { extractId } = useMethods();
|
|
46
|
+
const { classes } = useClasses(node);
|
|
47
|
+
const { id } = extractId(node.value);
|
|
48
|
+
const { children } = useChildren(node);
|
|
49
|
+
const combinedClasses = computed(() => {
|
|
50
|
+
return ["admonition", ...classes.value];
|
|
51
|
+
});
|
|
52
|
+
const result = dataObject(node.value, combinedClasses.value);
|
|
53
|
+
attrs.value = __spreadProps(__spreadValues({}, result.attrs), {
|
|
54
|
+
class: result.class.join(" ")
|
|
55
|
+
});
|
|
56
|
+
return (_ctx, _cache) => {
|
|
57
|
+
return openBlock(), createElementBlock("div", mergeProps({ id: unref(id) }, _ctx.attrs), [
|
|
58
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(children), (c, index) => {
|
|
59
|
+
return openBlock(), createBlock(resolveDynamicComponent(c.component), {
|
|
60
|
+
key: "admonition_component_" + index,
|
|
61
|
+
node: c.node,
|
|
62
|
+
componentName: c.name,
|
|
63
|
+
properties: c.properties
|
|
64
|
+
}, null, 8, ["node", "componentName", "properties"]);
|
|
65
|
+
}), 128))
|
|
66
|
+
], 16, _hoisted_1);
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
};
|
|
70
|
+
export { _sfc_main as default };
|
|
71
|
+
//# sourceMappingURL=Admonition.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Admonition.js","sources":["../src/components/templates/Admonition.vue"],"sourcesContent":["<template>\n <div :id=\"id\" :=\"attrs\">\n <component\n v-for=\"(c, index) in children\"\n :key=\"'admonition_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, 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 { extractId } = useMethods()\nconst { classes } = useClasses(node)\n\nconst { id } = extractId(node.value)\n\nconst { children } = useChildren(node)\n\nconst combinedClasses = computed(() => {\n return ['admonition', ...classes.value]\n})\n\nconst result = dataObject(node.value, combinedClasses.value)\nattrs.value = {\n ...result.attrs,\n class: result.class.join(' '),\n }\n\n</script>\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgCA,UAAM,EAAE,SAAS,OAAO,KAAK;AAE7B,UAAM,EAAE,cAAc,WAAY;AAClC,UAAM,EAAE,YAAY,WAAW,IAAI;AAEnC,UAAM,EAAE,OAAO,UAAU,KAAK,KAAK;AAEnC,UAAM,EAAE,aAAa,YAAY,IAAI;AAErC,UAAM,kBAAkB,SAAS,MAAM;AACrC,aAAO,CAAC,cAAc,GAAG,QAAQ,KAAK;AAAA,IACxC,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/BlockQuote.js
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { toRefs, openBlock, createElementBlock, createElementVNode, Fragment, renderList, unref, createBlock, resolveDynamicComponent } from "vue";
|
|
2
|
-
import {
|
|
2
|
+
import { a as useChildren } from "./entry.js";
|
|
3
3
|
import "@hsorby/vue3-katex";
|
|
4
4
|
import "katex/dist/katex.min.css";
|
|
5
5
|
import "vue-router";
|
|
6
|
-
import "vuex";
|
|
7
|
-
import "path-to-regexp";
|
|
8
6
|
import "axios";
|
|
7
|
+
import "path-to-regexp";
|
|
9
8
|
const _sfc_main = {
|
|
10
9
|
props: {
|
|
11
10
|
node: {
|
package/dist/BlockQuote.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BlockQuote.js","sources":["../src/components/templates/BlockQuote.vue"],"sourcesContent":["<template>\n <blockquote>\n <div>\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 </blockquote>\n</template>\n\n<script setup>\nimport { 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 }\n})\n\nconst { node } = toRefs(props)\n\nconst { children } = useChildren(node)\n</script>\n"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"BlockQuote.js","sources":["../src/components/templates/BlockQuote.vue"],"sourcesContent":["<template>\n <blockquote>\n <div>\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 </blockquote>\n</template>\n\n<script setup>\nimport { 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 }\n})\n\nconst { node } = toRefs(props)\n\nconst { children } = useChildren(node)\n</script>\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAiCA,UAAM,EAAE,SAAS,OAAO,KAAK;AAE7B,UAAM,EAAE,aAAa,YAAY,IAAI;;;;;;;;;;;;;;;;;;"}
|
package/dist/CaptionNumber.js
CHANGED
|
@@ -18,14 +18,13 @@ var __spreadValues = (a, b) => {
|
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
import { toRefs, ref, computed, openBlock, createElementBlock, normalizeProps, guardReactiveProps, Fragment, renderList, unref, createBlock, resolveDynamicComponent } from "vue";
|
|
21
|
-
import {
|
|
21
|
+
import { u as useClasses, a as useChildren } from "./entry.js";
|
|
22
22
|
import { u as useMethods } from "./methods.js";
|
|
23
23
|
import "@hsorby/vue3-katex";
|
|
24
24
|
import "katex/dist/katex.min.css";
|
|
25
25
|
import "vue-router";
|
|
26
|
-
import "vuex";
|
|
27
|
-
import "path-to-regexp";
|
|
28
26
|
import "axios";
|
|
27
|
+
import "path-to-regexp";
|
|
29
28
|
const _sfc_main = {
|
|
30
29
|
props: {
|
|
31
30
|
node: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CaptionNumber.js","sources":["../src/components/templates/CaptionNumber.vue"],"sourcesContent":["<template>\n <span :=\"attrs\">\n <component\n v-for=\"(c, index) in children\"\n :key=\"'caption_number_' + 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 return ['caption-number', ...classes.value]\n})\n\nconst result = dataObject(node.value, combinedClasses.value)\nattrs.value = {\n ...result.attrs,\n class: result.class.join(' '),\n }\n\n</script>\n"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CaptionNumber.js","sources":["../src/components/templates/CaptionNumber.vue"],"sourcesContent":["<template>\n <span :=\"attrs\">\n <component\n v-for=\"(c, index) in children\"\n :key=\"'caption_number_' + 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 return ['caption-number', ...classes.value]\n})\n\nconst result = dataObject(node.value, combinedClasses.value)\nattrs.value = {\n ...result.attrs,\n class: result.class.join(' '),\n }\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,aAAO,CAAC,kBAAkB,GAAG,QAAQ,KAAK;AAAA,IAC5C,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/Compound.js
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { toRefs, openBlock, createElementBlock, Fragment, renderList, unref, createBlock, resolveDynamicComponent } from "vue";
|
|
2
|
-
import {
|
|
2
|
+
import { a as useChildren } from "./entry.js";
|
|
3
3
|
import "@hsorby/vue3-katex";
|
|
4
4
|
import "katex/dist/katex.min.css";
|
|
5
5
|
import "vue-router";
|
|
6
|
-
import "vuex";
|
|
7
|
-
import "path-to-regexp";
|
|
8
6
|
import "axios";
|
|
7
|
+
import "path-to-regexp";
|
|
9
8
|
const _sfc_main = {
|
|
10
9
|
props: {
|
|
11
10
|
node: {
|
package/dist/Compound.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Compound.js","sources":["../src/components/templates/Compound.vue"],"sourcesContent":["<template>\n <component\n v-for=\"(c, index) in children\"\n :key=\"'compound_component_' + index\"\n :is=\"c.component\"\n :node=\"c.node\"\n :componentName=\"c.name\"\n :properties=\"c.properties\"\n />\n</template>\n\n<script setup>\nimport { 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 }\n})\n\nconst { node } = toRefs(props)\n\nconst { children } = useChildren(node)\n</script>\n"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Compound.js","sources":["../src/components/templates/Compound.vue"],"sourcesContent":["<template>\n <component\n v-for=\"(c, index) in children\"\n :key=\"'compound_component_' + index\"\n :is=\"c.component\"\n :node=\"c.node\"\n :componentName=\"c.name\"\n :properties=\"c.properties\"\n />\n</template>\n\n<script setup>\nimport { 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 }\n})\n\nconst { node } = toRefs(props)\n\nconst { children } = useChildren(node)\n</script>\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AA6BA,UAAM,EAAE,SAAS,OAAO,KAAK;AAE7B,UAAM,EAAE,aAAa,YAAY,IAAI;;;;;;;;;;;;;;"}
|
package/dist/Container.js
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { toRefs, ref, onMounted, openBlock, createElementBlock, normalizeClass, toHandlerKey, Fragment, renderList, unref, createBlock, resolveDynamicComponent } from "vue";
|
|
2
|
-
import { _ as _export_sfc,
|
|
2
|
+
import { _ as _export_sfc, a as useChildren, u as useClasses } from "./entry.js";
|
|
3
3
|
import { u as useMethods } from "./methods.js";
|
|
4
4
|
import "@hsorby/vue3-katex";
|
|
5
5
|
import "katex/dist/katex.min.css";
|
|
6
6
|
import "vue-router";
|
|
7
|
-
import "vuex";
|
|
8
|
-
import "path-to-regexp";
|
|
9
7
|
import "axios";
|
|
8
|
+
import "path-to-regexp";
|
|
10
9
|
var Container_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
11
10
|
const _sfc_main = {
|
|
12
11
|
props: {
|
package/dist/Container.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Container.js","sources":["../src/components/templates/Container.vue"],"sourcesContent":["<template>\n <div\n :class=\"combinedClasses\"\n @[isToggleHeader&&`click`]=\"toggleHeaderClicked\"\n ref=\"containerElement\"\n >\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 { onMounted, ref, 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 { classes } = useClasses(node)\nconst { toggleActiveClass } = useMethods()\n\nconst combinedClasses = ref([])\nconst isToggleHeader = ref(false)\nconst containerElement = ref(null)\n\ncombinedClasses.value = [...classes.value]\n\nfunction toggleHeaderClicked() {\n toggleActiveClass(combinedClasses.value)\n const index = combinedClasses.value.indexOf('active')\n let blockType = index === -1 ? 'none' : 'block'\n\n let elementSibling = containerElement.value.nextElementSibling\n while (elementSibling !== null) {\n elementSibling.style.display = blockType\n elementSibling = elementSibling.nextElementSibling\n }\n}\n\nonMounted(() => {\n if (\n classes.value.includes('header') ||\n classes.value.includes('header-left')\n ) {\n combinedClasses.value.push('inactive')\n const parent = node.value.parentElement\n if (parent) {\n if (parent.getAttribute('classes').includes('toggle')) {\n isToggleHeader.value = true\n combinedClasses.value.push('toggle-header')\n }\n }\n }\n\n if (classes.value.includes('tab2name')) {\n console.log('tab2name found')\n }\n})\n</script>\n\n<style scoped>\n.toggle-header {\n cursor: pointer;\n}\n</style>\n"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Container.js","sources":["../src/components/templates/Container.vue"],"sourcesContent":["<template>\n <div\n :class=\"combinedClasses\"\n @[isToggleHeader&&`click`]=\"toggleHeaderClicked\"\n ref=\"containerElement\"\n >\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 { onMounted, ref, 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 { classes } = useClasses(node)\nconst { toggleActiveClass } = useMethods()\n\nconst combinedClasses = ref([])\nconst isToggleHeader = ref(false)\nconst containerElement = ref(null)\n\ncombinedClasses.value = [...classes.value]\n\nfunction toggleHeaderClicked() {\n toggleActiveClass(combinedClasses.value)\n const index = combinedClasses.value.indexOf('active')\n let blockType = index === -1 ? 'none' : 'block'\n\n let elementSibling = containerElement.value.nextElementSibling\n while (elementSibling !== null) {\n elementSibling.style.display = blockType\n elementSibling = elementSibling.nextElementSibling\n }\n}\n\nonMounted(() => {\n if (\n classes.value.includes('header') ||\n classes.value.includes('header-left')\n ) {\n combinedClasses.value.push('inactive')\n const parent = node.value.parentElement\n if (parent) {\n if (parent.getAttribute('classes').includes('toggle')) {\n isToggleHeader.value = true\n combinedClasses.value.push('toggle-header')\n }\n }\n }\n\n if (classes.value.includes('tab2name')) {\n console.log('tab2name found')\n }\n})\n</script>\n\n<style scoped>\n.toggle-header {\n cursor: pointer;\n}\n</style>\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAoCA,UAAM,EAAE,SAAS,OAAO,KAAK;AAE7B,UAAM,EAAE,aAAa,YAAY,IAAI;AACrC,UAAM,EAAE,YAAY,WAAW,IAAI;AACnC,UAAM,EAAE,sBAAsB,WAAY;AAE1C,UAAM,kBAAkB,IAAI,EAAE;AAC9B,UAAM,iBAAiB,IAAI,KAAK;AAChC,UAAM,mBAAmB,IAAI,IAAI;AAEjC,oBAAgB,QAAQ,CAAC,GAAG,QAAQ,KAAK;AAEzC,mCAA+B;AAC7B,wBAAkB,gBAAgB,KAAK;AACvC,YAAM,QAAQ,gBAAgB,MAAM,QAAQ,QAAQ;AACpD,UAAI,YAAY,UAAU,KAAK,SAAS;AAExC,UAAI,iBAAiB,iBAAiB,MAAM;AAC5C,aAAO,mBAAmB,MAAM;AAC9B,uBAAe,MAAM,UAAU;AAC/B,yBAAiB,eAAe;AAAA,MACjC;AAAA,IACH;AAEA,cAAU,MAAM;AACd,UACE,QAAQ,MAAM,SAAS,QAAQ,KAC/B,QAAQ,MAAM,SAAS,aAAa,GACpC;AACA,wBAAgB,MAAM,KAAK,UAAU;AACrC,cAAM,SAAS,KAAK,MAAM;AAC1B,YAAI,QAAQ;AACV,cAAI,OAAO,aAAa,SAAS,EAAE,SAAS,QAAQ,GAAG;AACrD,2BAAe,QAAQ;AACvB,4BAAgB,MAAM,KAAK,eAAe;AAAA,UAC3C;AAAA,QACF;AAAA,MACF;AAED,UAAI,QAAQ,MAAM,SAAS,UAAU,GAAG;AACtC,gBAAQ,IAAI,gBAAgB;AAAA,MAC7B;AAAA,IACH,CAAC;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { toRefs, computed, ref, openBlock, createElementBlock, unref, normalizeClass, toDisplayString } from "vue";
|
|
2
2
|
import { useRoute } from "vue-router";
|
|
3
|
-
import {
|
|
4
|
-
import { d as determineRouteUrl } from "./entry.js";
|
|
3
|
+
import { b as useSphinxStore, d as determineRouteUrl } from "./entry.js";
|
|
5
4
|
import "@hsorby/vue3-katex";
|
|
6
5
|
import "katex/dist/katex.min.css";
|
|
7
|
-
import "path-to-regexp";
|
|
8
6
|
import "axios";
|
|
7
|
+
import "path-to-regexp";
|
|
9
8
|
const _hoisted_1 = ["href", "download"];
|
|
10
9
|
const _sfc_main = {
|
|
11
10
|
props: {
|
|
@@ -21,15 +20,12 @@ const _sfc_main = {
|
|
|
21
20
|
const props = __props;
|
|
22
21
|
const { node } = toRefs(props);
|
|
23
22
|
const route = useRoute();
|
|
24
|
-
const
|
|
23
|
+
const sphinxStore = useSphinxStore();
|
|
25
24
|
const href = computed(() => {
|
|
26
25
|
let downloadHref = node.value.getAttribute("filename");
|
|
27
26
|
if (downloadHref && !downloadHref.startsWith("/") && !downloadHref.startsWith("http")) {
|
|
28
27
|
const routeURL = determineRouteUrl(route);
|
|
29
|
-
downloadHref = [
|
|
30
|
-
store.getters["sphinx/getDownloadURL"](routeURL),
|
|
31
|
-
downloadHref
|
|
32
|
-
].join("/");
|
|
28
|
+
downloadHref = [sphinxStore.getDownloadURL(routeURL), downloadHref].join("/");
|
|
33
29
|
}
|
|
34
30
|
return downloadHref;
|
|
35
31
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DownloadReference.js","sources":["../src/components/templates/DownloadReference.vue"],"sourcesContent":["<template>\n <a :href=\"href\" :download=\"saveFilename\" :class=\"classes\"
|
|
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
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { toRefs, ref, computed, openBlock, createElementBlock, normalizeProps, guardReactiveProps, Fragment, renderList, unref, createBlock, resolveDynamicComponent } from "vue";
|
|
2
|
-
import {
|
|
2
|
+
import { u as useClasses, a as useChildren } from "./entry.js";
|
|
3
3
|
import { u as useMethods } from "./methods.js";
|
|
4
4
|
import "@hsorby/vue3-katex";
|
|
5
5
|
import "katex/dist/katex.min.css";
|
|
6
6
|
import "vue-router";
|
|
7
|
-
import "vuex";
|
|
8
|
-
import "path-to-regexp";
|
|
9
7
|
import "axios";
|
|
8
|
+
import "path-to-regexp";
|
|
10
9
|
const _sfc_main = {
|
|
11
10
|
props: {
|
|
12
11
|
node: {
|
package/dist/Figure.js.map
CHANGED
|
@@ -1 +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":"
|
|
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
CHANGED
|
@@ -18,14 +18,13 @@ var __spreadValues = (a, b) => {
|
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
import { toRefs, ref, computed, openBlock, createElementBlock, normalizeProps, guardReactiveProps, Fragment, renderList, unref, createBlock, resolveDynamicComponent } from "vue";
|
|
21
|
-
import {
|
|
21
|
+
import { u as useClasses, a as useChildren } from "./entry.js";
|
|
22
22
|
import { u as useMethods } from "./methods.js";
|
|
23
23
|
import "@hsorby/vue3-katex";
|
|
24
24
|
import "katex/dist/katex.min.css";
|
|
25
25
|
import "vue-router";
|
|
26
|
-
import "vuex";
|
|
27
|
-
import "path-to-regexp";
|
|
28
26
|
import "axios";
|
|
27
|
+
import "path-to-regexp";
|
|
29
28
|
const _sfc_main = {
|
|
30
29
|
props: {
|
|
31
30
|
node: {
|
|
@@ -1 +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":"
|
|
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
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { toRefs, ref, openBlock, createElementBlock, normalizeProps, guardReactiveProps, Fragment, renderList, unref, createBlock, resolveDynamicComponent } from "vue";
|
|
2
2
|
import { u as useMethods } from "./methods.js";
|
|
3
|
-
import {
|
|
3
|
+
import { a as useChildren } from "./entry.js";
|
|
4
4
|
import "@hsorby/vue3-katex";
|
|
5
5
|
import "katex/dist/katex.min.css";
|
|
6
6
|
import "vue-router";
|
|
7
|
-
import "vuex";
|
|
8
|
-
import "path-to-regexp";
|
|
9
7
|
import "axios";
|
|
8
|
+
import "path-to-regexp";
|
|
10
9
|
const _sfc_main = {
|
|
11
10
|
props: {
|
|
12
11
|
node: {
|
package/dist/Footnote.js.map
CHANGED
|
@@ -1 +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</script>\n"],"names":[],"mappings":"
|
|
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;;;;;;;;;;;;;;;;"}
|
|
@@ -5,9 +5,8 @@ import { u as useBaseReference } from "./basereference.js";
|
|
|
5
5
|
import "./entry.js";
|
|
6
6
|
import "@hsorby/vue3-katex";
|
|
7
7
|
import "katex/dist/katex.min.css";
|
|
8
|
-
import "vuex";
|
|
9
|
-
import "path-to-regexp";
|
|
10
8
|
import "axios";
|
|
9
|
+
import "path-to-regexp";
|
|
11
10
|
const _hoisted_1 = ["href"];
|
|
12
11
|
const _sfc_main = {
|
|
13
12
|
props: {
|
|
@@ -1 +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</script>\n"],"names":[],"mappings":"
|
|
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
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { toRefs, ref, computed, openBlock, createElementBlock, normalizeProps, guardReactiveProps } from "vue";
|
|
2
2
|
import { useRoute } from "vue-router";
|
|
3
|
-
import {
|
|
3
|
+
import { a as useChildren, b as useSphinxStore, d as determineRouteUrl } from "./entry.js";
|
|
4
4
|
import { u as useMethods } from "./methods.js";
|
|
5
|
-
import { u as useChildren, d as determineRouteUrl } from "./entry.js";
|
|
6
5
|
import "@hsorby/vue3-katex";
|
|
7
6
|
import "katex/dist/katex.min.css";
|
|
8
|
-
import "path-to-regexp";
|
|
9
7
|
import "axios";
|
|
8
|
+
import "path-to-regexp";
|
|
10
9
|
const _sfc_main = {
|
|
11
10
|
props: {
|
|
12
11
|
node: {
|
|
@@ -26,7 +25,7 @@ const _sfc_main = {
|
|
|
26
25
|
useChildren(node);
|
|
27
26
|
const { dataObject } = useMethods();
|
|
28
27
|
const route = useRoute();
|
|
29
|
-
const
|
|
28
|
+
const sphinxStore = useSphinxStore();
|
|
30
29
|
const attrs = ref({});
|
|
31
30
|
const uri = computed(() => {
|
|
32
31
|
let imageURI = node.value.getAttribute("uri");
|
|
@@ -34,7 +33,7 @@ const _sfc_main = {
|
|
|
34
33
|
const routeURL = determineRouteUrl(route);
|
|
35
34
|
const lastIndex = imageURI.lastIndexOf("/");
|
|
36
35
|
const imageName = imageURI.slice(lastIndex);
|
|
37
|
-
imageURI = [
|
|
36
|
+
imageURI = [sphinxStore.getImagesURL(routeURL), imageName].join("/");
|
|
38
37
|
}
|
|
39
38
|
return imageURI;
|
|
40
39
|
});
|
package/dist/Image.js.map
CHANGED
|
@@ -1 +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 {
|
|
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
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { toRefs, openBlock, createElementBlock, normalizeClass, unref, Fragment, renderList, createBlock, resolveDynamicComponent } from "vue";
|
|
2
|
-
import {
|
|
2
|
+
import { a as useChildren, u as useClasses } from "./entry.js";
|
|
3
3
|
import "@hsorby/vue3-katex";
|
|
4
4
|
import "katex/dist/katex.min.css";
|
|
5
5
|
import "vue-router";
|
|
6
|
-
import "vuex";
|
|
7
|
-
import "path-to-regexp";
|
|
8
6
|
import "axios";
|
|
7
|
+
import "path-to-regexp";
|
|
9
8
|
const _sfc_main = {
|
|
10
9
|
props: {
|
|
11
10
|
node: {
|
package/dist/Legend.js.map
CHANGED
|
@@ -1 +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>\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":"
|
|
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
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { toRefs, ref, openBlock, createElementBlock, normalizeProps, guardReactiveProps, Fragment, renderList, unref, createBlock, resolveDynamicComponent } from "vue";
|
|
2
|
-
import {
|
|
2
|
+
import { a as useChildren } from "./entry.js";
|
|
3
3
|
import { u as useMethods } from "./methods.js";
|
|
4
4
|
import "@hsorby/vue3-katex";
|
|
5
5
|
import "katex/dist/katex.min.css";
|
|
6
6
|
import "vue-router";
|
|
7
|
-
import "vuex";
|
|
8
|
-
import "path-to-regexp";
|
|
9
7
|
import "axios";
|
|
8
|
+
import "path-to-regexp";
|
|
10
9
|
const _sfc_main = {
|
|
11
10
|
props: {
|
|
12
11
|
node: {
|
package/dist/LineBlock.js.map
CHANGED
|
@@ -1 +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":"
|
|
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
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { toRefs, ref, openBlock, createElementBlock, normalizeProps, guardReactiveProps, Fragment, renderList, unref, createBlock, resolveDynamicComponent } from "vue";
|
|
2
2
|
import { u as useMethods } from "./methods.js";
|
|
3
|
-
import {
|
|
3
|
+
import { a as useChildren } from "./entry.js";
|
|
4
4
|
import "@hsorby/vue3-katex";
|
|
5
5
|
import "katex/dist/katex.min.css";
|
|
6
6
|
import "vue-router";
|
|
7
|
-
import "vuex";
|
|
8
|
-
import "path-to-regexp";
|
|
9
7
|
import "axios";
|
|
8
|
+
import "path-to-regexp";
|
|
10
9
|
const _sfc_main = {
|
|
11
10
|
props: {
|
|
12
11
|
node: {
|
package/dist/LineSingle.js.map
CHANGED
|
@@ -1 +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>\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":"
|
|
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
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { toRefs, openBlock, createElementBlock, createElementVNode, Fragment, renderList, unref, createBlock, resolveDynamicComponent } from "vue";
|
|
2
2
|
import { u as useMethods } from "./methods.js";
|
|
3
|
-
import {
|
|
3
|
+
import { a as useChildren } from "./entry.js";
|
|
4
4
|
import "@hsorby/vue3-katex";
|
|
5
5
|
import "katex/dist/katex.min.css";
|
|
6
6
|
import "vue-router";
|
|
7
|
-
import "vuex";
|
|
8
|
-
import "path-to-regexp";
|
|
9
7
|
import "axios";
|
|
8
|
+
import "path-to-regexp";
|
|
10
9
|
const _hoisted_1 = { class: "pre" };
|
|
11
10
|
const _sfc_main = {
|
|
12
11
|
props: {
|
package/dist/Literal.js.map
CHANGED
|
@@ -1 +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 if (d[i].language === '') {\n continue\n }\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 console.log(node.value.innerHTML)\n}\n</script>\n"],"names":[],"mappings":"
|
|
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 if (d[i].language === '') {\n continue\n }\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 console.log(node.value.innerHTML)\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,YAAI,EAAE,GAAG,aAAa,IAAI;AACxB;AAAA,QACD;AACD,eAAO;AAAA,MACR;AAED,aAAO;AAAA,IACT;AAEA,QAAI,CAAC,QAAQ,CAAC,GAAG;AACf,cAAQ,IAAI,yCAAyC,CAAC;AACtD,cAAQ,IAAI,KAAK,MAAM,SAAS;AAAA,IAClC;;;;;;;;;;;;;;;;;;"}
|
package/dist/LiteralBlock.js
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { toRefs, computed, resolveDirective, withDirectives, openBlock, createElementBlock, createElementVNode, normalizeClass, unref, toDisplayString } from "vue";
|
|
2
|
-
import {
|
|
2
|
+
import { e as decodeHTML } from "./entry.js";
|
|
3
3
|
import "@hsorby/vue3-katex";
|
|
4
4
|
import "katex/dist/katex.min.css";
|
|
5
5
|
import "vue-router";
|
|
6
|
-
import "vuex";
|
|
7
|
-
import "path-to-regexp";
|
|
8
6
|
import "axios";
|
|
7
|
+
import "path-to-regexp";
|
|
9
8
|
const _sfc_main = {
|
|
10
9
|
props: {
|
|
11
10
|
node: {
|
package/dist/LiteralBlock.js.map
CHANGED
|
@@ -1 +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</script>\n"],"names":[],"mappings":"
|
|
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;;;;;;;;;;;;;;"}
|