vue3-sphinx-xml 0.2.1-rc.1 → 0.3.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/README.md +18 -8
- package/dist/BlockQuote.js +1 -2
- package/dist/BlockQuote.js.map +1 -1
- package/dist/CaptionNumber.js +1 -2
- package/dist/CaptionNumber.js.map +1 -1
- package/dist/Compound.js +1 -2
- package/dist/Compound.js.map +1 -1
- package/dist/Container.js +1 -2
- package/dist/Container.js.map +1 -1
- package/dist/DownloadReference.js +4 -8
- package/dist/DownloadReference.js.map +1 -1
- package/dist/Figure.js +1 -2
- package/dist/Figure.js.map +1 -1
- package/dist/FigureCaption.js +1 -2
- package/dist/FigureCaption.js.map +1 -1
- package/dist/Footnote.js +1 -2
- 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 +1 -2
- package/dist/Legend.js.map +1 -1
- package/dist/LineBlock.js +1 -2
- package/dist/LineBlock.js.map +1 -1
- package/dist/LineSingle.js +1 -2
- package/dist/LineSingle.js.map +1 -1
- package/dist/Literal.js +1 -2
- package/dist/Literal.js.map +1 -1
- package/dist/LiteralBlock.js +2 -3
- package/dist/LiteralBlock.js.map +1 -1
- package/dist/Note.js +1 -2
- 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 +1 -2
- package/dist/Reference.js.map +1 -1
- package/dist/Section.js +1 -2
- package/dist/Section.js.map +1 -1
- package/dist/StandardElement.js +1 -2
- package/dist/StandardElement.js.map +1 -1
- package/dist/Title.js +1 -2
- package/dist/Title.js.map +1 -1
- package/dist/TodoNode.js +1 -2
- package/dist/TodoNode.js.map +1 -1
- package/dist/Topic.js +1 -2
- package/dist/Topic.js.map +1 -1
- package/dist/basereference.js +5 -6
- package/dist/basereference.js.map +1 -1
- package/dist/entry.js +447 -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).
|
|
@@ -66,7 +71,7 @@ Example view `Documentation.vue`:
|
|
|
66
71
|
```javascript
|
|
67
72
|
<template>
|
|
68
73
|
<div class="documentation">
|
|
69
|
-
<sphinx-page
|
|
74
|
+
<sphinx-page baseURL="/sphinx-xml-files"
|
|
70
75
|
/>
|
|
71
76
|
</div>
|
|
72
77
|
</template>
|
|
@@ -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
|
|
package/dist/BlockQuote.js
CHANGED
|
@@ -3,9 +3,8 @@ import { u 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
|
@@ -23,9 +23,8 @@ 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
|
@@ -3,9 +3,8 @@ import { u 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
|
@@ -4,9 +4,8 @@ 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
|
@@ -4,9 +4,8 @@ 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
|
@@ -23,9 +23,8 @@ 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
|
@@ -4,9 +4,8 @@ import { u 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 { u 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
|
@@ -3,9 +3,8 @@ import { u as useChildren, a 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
|
@@ -4,9 +4,8 @@ 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
|
@@ -4,9 +4,8 @@ import { u 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
|
@@ -4,9 +4,8 @@ import { u 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;;;;;;;;;;;;;;"}
|
package/dist/Note.js
CHANGED
|
@@ -4,9 +4,8 @@ import { u 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 = /* @__PURE__ */ createElementVNode("p", { class: "admonition-title" }, "Note", -1);
|
|
11
10
|
const _sfc_main = {
|
|
12
11
|
props: {
|
package/dist/Note.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Note.js","sources":["../src/components/templates/Note.vue"],"sourcesContent":["<template>\n <div :=\"attrs\">\n <p class=\"admonition-title\">Note</p>\n <component\n v-for=\"(c, index) in children\"\n :key=\"'note_component_' + index\"\n :is=\"c.component\"\n :node=\"c.node\"\n :componentName=\"c.name\"\n :properties=\"c.properties\"\n />\n </div>\n</template>\n\n<script setup>\nconsole.log(\"****** IN USE ******\")\nimport { toRefs } from 'vue'\n\nimport { useMethods } from '../../composables/methods'\nimport { useChildren } from '../../composables/computed'\n\nconst props = defineProps({\n node: {\n type: undefined,\n default: null,\n },\n componentName: {\n type: String,\n },\n properties: {\n type: Object,\n }\n})\n\nconst { node } = toRefs(props)\nconst { dataObject } = useMethods()\nconst attrs = ref({})\n\nconst { children } = useChildren(node)\n\nattrs.value = dataObject(node.value, ['admonition', 'note']).attrs\n</script>\n"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Note.js","sources":["../src/components/templates/Note.vue"],"sourcesContent":["<template>\n <div :=\"attrs\">\n <p class=\"admonition-title\">Note</p>\n <component\n v-for=\"(c, index) in children\"\n :key=\"'note_component_' + index\"\n :is=\"c.component\"\n :node=\"c.node\"\n :componentName=\"c.name\"\n :properties=\"c.properties\"\n />\n </div>\n</template>\n\n<script setup>\nconsole.log(\"****** IN USE ******\")\nimport { toRefs } from 'vue'\n\nimport { useMethods } from '../../composables/methods'\nimport { useChildren } from '../../composables/computed'\n\nconst props = defineProps({\n node: {\n type: undefined,\n default: null,\n },\n componentName: {\n type: String,\n },\n properties: {\n type: Object,\n }\n})\n\nconst { node } = toRefs(props)\nconst { dataObject } = useMethods()\nconst attrs = ref({})\n\nconst { children } = useChildren(node)\n\nattrs.value = dataObject(node.value, ['admonition', 'note']).attrs\n</script>\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAeA,YAAQ,IAAI,sBAAsB;AAmBlC,UAAM,EAAE,SAAS,OAAO,KAAK;AAC7B,UAAM,EAAE,eAAe,WAAY;AACnC,UAAM,QAAQ,IAAI,EAAE;AAEpB,UAAM,EAAE,aAAa,YAAY,IAAI;AAErC,UAAM,QAAQ,WAAW,KAAK,OAAO,CAAC,cAAc,MAAM,CAAC,EAAE;;;;;;;;;;;;;;;;;"}
|
package/dist/NumberReference.js
CHANGED
|
@@ -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":"NumberReference.js","sources":["../src/components/templates/NumberReference.vue"],"sourcesContent":["<template>\n <router-link v-if=\"isInternalReference(node)\" :to=\"routeDescription\">\n {{ title }}\n </router-link>\n <a v-else :href=\"node.getAttribute('refuri')\" target=\"_blank\">\n {{ title }}\n </a>\n</template>\n\n<script setup>\nimport { computed, onMounted, toRefs, ref } from 'vue'\nimport { useRoute } from 'vue-router'\n\nimport { useMethods } from '../../composables/methods'\nimport { useBaseReference } from '../../composables/basereference'\n\nconst props = defineProps({\n node: {\n type: undefined,\n default: null,\n },\n componentName: {\n type: String,\n },\n})\n\nconst routeDescription = ref({path: '', hash: ''})\nconst { node } = toRefs(props)\nconst route = useRoute()\n\nconst { isInternalReference } = useMethods()\nconst { onReferenceCreated } = useBaseReference(node.value, route, routeDescription)\n\nonMounted(onReferenceCreated)\n\nconst title = computed(() => {\n if (node.value.childElementCount) {\n // A number reference has a single child element that\n // contains the label for the referenced element.\n // This is what we are assuming: <inline classes=\"std std-numref\">Fig. 3</inline>\n return node.value.children[0].innerHTML\n }\n\n let refLabel = node.value.getAttribute('refid')\n if (!refLabel) {\n refLabel = node.value.getAttribute('refuri')\n }\n const t = refLabel.replace('-', ' ')\n return 'Fig. ' + t.charAt(0).toUpperCase() + t.slice(1)\n})\n</script>\n"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"NumberReference.js","sources":["../src/components/templates/NumberReference.vue"],"sourcesContent":["<template>\n <router-link v-if=\"isInternalReference(node)\" :to=\"routeDescription\">\n {{ title }}\n </router-link>\n <a v-else :href=\"node.getAttribute('refuri')\" target=\"_blank\">\n {{ title }}\n </a>\n</template>\n\n<script setup>\nimport { computed, onMounted, toRefs, ref } from 'vue'\nimport { useRoute } from 'vue-router'\n\nimport { useMethods } from '../../composables/methods'\nimport { useBaseReference } from '../../composables/basereference'\n\nconst props = defineProps({\n node: {\n type: undefined,\n default: null,\n },\n componentName: {\n type: String,\n },\n})\n\nconst routeDescription = ref({path: '', hash: ''})\nconst { node } = toRefs(props)\nconst route = useRoute()\n\nconst { isInternalReference } = useMethods()\nconst { onReferenceCreated } = useBaseReference(node.value, route, routeDescription)\n\nonMounted(onReferenceCreated)\n\nconst title = computed(() => {\n if (node.value.childElementCount) {\n // A number reference has a single child element that\n // contains the label for the referenced element.\n // This is what we are assuming: <inline classes=\"std std-numref\">Fig. 3</inline>\n return node.value.children[0].innerHTML\n }\n\n let refLabel = node.value.getAttribute('refid')\n if (!refLabel) {\n refLabel = node.value.getAttribute('refuri')\n }\n const t = refLabel.replace('-', ' ')\n return 'Fig. ' + t.charAt(0).toUpperCase() + t.slice(1)\n})\n</script>\n"],"names":[],"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;AAE5B,UAAM,QAAQ,SAAS,MAAM;AAC3B,UAAI,KAAK,MAAM,mBAAmB;AAIhC,eAAO,KAAK,MAAM,SAAS,GAAG;AAAA,MAC/B;AAED,UAAI,WAAW,KAAK,MAAM,aAAa,OAAO;AAC9C,UAAI,CAAC,UAAU;AACb,mBAAW,KAAK,MAAM,aAAa,QAAQ;AAAA,MAC5C;AACD,YAAM,IAAI,SAAS,QAAQ,KAAK,GAAG;AACnC,aAAO,UAAU,EAAE,OAAO,CAAC,EAAE,gBAAgB,EAAE,MAAM,CAAC;AAAA,IACxD,CAAC;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/Problematic.js
CHANGED
|
@@ -4,9 +4,8 @@ import "./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 = ["id"];
|
|
11
10
|
const _sfc_main = {
|
|
12
11
|
props: {
|
package/dist/Problematic.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Problematic.js","sources":["../src/components/templates/Problematic.vue"],"sourcesContent":["<template>\n <router-link :to=\"routeDescription\">\n <span class=\"problematic\" :id=\"id\">{{\n node.textContent\n }}</span></router-link\n >\n</template>\n\n<script setup>\nimport { toRefs, ref } from 'vue'\n\nimport { useMethods } from '../../composables/methods'\n\nconst props = defineProps({\n node: {\n type: undefined,\n default: null,\n },\n componentName: {\n type: String,\n },\n properties: {\n type: Object,\n }\n})\n\nconst { node } = toRefs(props)\nconst routeDescription = ref({hash: '#' + node.value.getAttribute('refid')})\n\nconst { extractId } = useMethods()\nconst { id } = extractId(node.value)\n\n</script>\n"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Problematic.js","sources":["../src/components/templates/Problematic.vue"],"sourcesContent":["<template>\n <router-link :to=\"routeDescription\">\n <span class=\"problematic\" :id=\"id\">{{\n node.textContent\n }}</span></router-link\n >\n</template>\n\n<script setup>\nimport { toRefs, ref } from 'vue'\n\nimport { useMethods } from '../../composables/methods'\n\nconst props = defineProps({\n node: {\n type: undefined,\n default: null,\n },\n componentName: {\n type: String,\n },\n properties: {\n type: Object,\n }\n})\n\nconst { node } = toRefs(props)\nconst routeDescription = ref({hash: '#' + node.value.getAttribute('refid')})\n\nconst { extractId } = useMethods()\nconst { id } = extractId(node.value)\n\n</script>\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AA0BA,UAAM,EAAE,SAAS,OAAO,KAAK;AAC7B,UAAM,mBAAmB,IAAI,EAAC,MAAM,MAAM,KAAK,MAAM,aAAa,OAAO,EAAC,CAAC;AAE3E,UAAM,EAAE,cAAc,WAAY;AAClC,UAAM,EAAE,OAAO,UAAU,KAAK,KAAK;;;;;;;;;;;;;;;;"}
|
package/dist/Reference.js
CHANGED
|
@@ -5,9 +5,8 @@ import { u as useMethods } from "./methods.js";
|
|
|
5
5
|
import { u as useBaseReference } from "./basereference.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: {
|
package/dist/Reference.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Reference.js","sources":["../src/components/templates/Reference.vue"],"sourcesContent":["<template>\n <router-link v-if=\"isInternalReference(node)\" :to=\"routeDescription\">\n {{ node.textContent }}\n </router-link>\n <a v-else :href=\"node.getAttribute('refuri')\" target=\"_blank\">\n <component\n v-for=\"(c, index) in children\"\n :key=\"'sub_link_' + index\"\n :is=\"c.component\"\n :node=\"c.node\"\n :componentName=\"c.name\"\n :properties=\"c.properties\"\n />\n </a>\n</template>\n\n<script setup>\nimport { onMounted, toRefs, ref } from 'vue'\nimport { useRoute } from 'vue-router'\n\nimport { useChildren } from '../../composables/computed'\nimport { useMethods } from '../../composables/methods'\nimport { useBaseReference } from '../../composables/basereference'\n\nconst props = defineProps({\n node: {\n type: undefined,\n default: null,\n },\n componentName: {\n type: String,\n },\n})\n\nconst routeDescription = ref({ path: '', hash: '' })\nconst { node } = toRefs(props)\nconst route = useRoute()\n\nconst { isInternalReference } = useMethods()\nconst { onReferenceCreated } = useBaseReference(\n node.value,\n route,\n routeDescription,\n)\n\nonMounted(onReferenceCreated)\nconst { children } = useChildren(node)\n</script>\n"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Reference.js","sources":["../src/components/templates/Reference.vue"],"sourcesContent":["<template>\n <router-link v-if=\"isInternalReference(node)\" :to=\"routeDescription\">\n {{ node.textContent }}\n </router-link>\n <a v-else :href=\"node.getAttribute('refuri')\" target=\"_blank\">\n <component\n v-for=\"(c, index) in children\"\n :key=\"'sub_link_' + index\"\n :is=\"c.component\"\n :node=\"c.node\"\n :componentName=\"c.name\"\n :properties=\"c.properties\"\n />\n </a>\n</template>\n\n<script setup>\nimport { onMounted, toRefs, ref } from 'vue'\nimport { useRoute } from 'vue-router'\n\nimport { useChildren } from '../../composables/computed'\nimport { useMethods } from '../../composables/methods'\nimport { useBaseReference } from '../../composables/basereference'\n\nconst props = defineProps({\n node: {\n type: undefined,\n default: null,\n },\n componentName: {\n type: String,\n },\n})\n\nconst routeDescription = ref({ path: '', hash: '' })\nconst { node } = toRefs(props)\nconst route = useRoute()\n\nconst { isInternalReference } = useMethods()\nconst { onReferenceCreated } = useBaseReference(\n node.value,\n route,\n routeDescription,\n)\n\nonMounted(onReferenceCreated)\nconst { children } = useChildren(node)\n</script>\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAkCA,UAAM,mBAAmB,IAAI,EAAE,MAAM,IAAI,MAAM,IAAI;AACnD,UAAM,EAAE,SAAS,OAAO,KAAK;AAC7B,UAAM,QAAQ,SAAU;AAExB,UAAM,EAAE,wBAAwB,WAAY;AAC5C,UAAM,EAAE,uBAAuB,iBAC7B,KAAK,OACL,OACA,gBACF;AAEA,cAAU,kBAAkB;AAC5B,UAAM,EAAE,aAAa,YAAY,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/Section.js
CHANGED
|
@@ -4,9 +4,8 @@ import { u 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 = ["id"];
|
|
11
10
|
const _hoisted_2 = ["id"];
|
|
12
11
|
const _sfc_main = {
|
package/dist/Section.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Section.js","sources":["../src/components/templates/Section.vue"],"sourcesContent":["<template>\n <section :id=\"id\">\n <span v-for=\"(s, index) in extraIds\" :key=\"'id_span_' + index\" :id=\"s\" />\n <component\n v-for=\"(c, index) in children\"\n :key=\"'section_component_' + index\"\n :is=\"c.component\"\n :node=\"c.node\"\n :componentName=\"c.name\"\n :properties=\"c.properties\"\n />\n </section>\n</template>\n\n<script setup>\nimport { toRefs } from 'vue'\n\nimport { useMethods } from '../../composables/methods'\nimport { useChildren } from '../../composables/computed'\n\nconst props = defineProps({\n node: {\n type: undefined,\n default: null,\n },\n componentName: {\n type: String,\n },\n properties: {\n type: Object,\n }\n})\n\nconst { node } = toRefs(props)\n\nconst { extractId, separateIds } = useMethods()\nconst { id } = extractId(node.value)\nconst { extraIds } = separateIds(node.value, id)\n\nconst { children } = useChildren(node)\n</script>\n"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Section.js","sources":["../src/components/templates/Section.vue"],"sourcesContent":["<template>\n <section :id=\"id\">\n <span v-for=\"(s, index) in extraIds\" :key=\"'id_span_' + index\" :id=\"s\" />\n <component\n v-for=\"(c, index) in children\"\n :key=\"'section_component_' + index\"\n :is=\"c.component\"\n :node=\"c.node\"\n :componentName=\"c.name\"\n :properties=\"c.properties\"\n />\n </section>\n</template>\n\n<script setup>\nimport { toRefs } from 'vue'\n\nimport { useMethods } from '../../composables/methods'\nimport { useChildren } from '../../composables/computed'\n\nconst props = defineProps({\n node: {\n type: undefined,\n default: null,\n },\n componentName: {\n type: String,\n },\n properties: {\n type: Object,\n }\n})\n\nconst { node } = toRefs(props)\n\nconst { extractId, separateIds } = useMethods()\nconst { id } = extractId(node.value)\nconst { extraIds } = separateIds(node.value, id)\n\nconst { children } = useChildren(node)\n</script>\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAiCA,UAAM,EAAE,SAAS,OAAO,KAAK;AAE7B,UAAM,EAAE,WAAW,gBAAgB,WAAY;AAC/C,UAAM,EAAE,OAAO,UAAU,KAAK,KAAK;AACnC,UAAM,EAAE,aAAa,YAAY,KAAK,OAAO,EAAE;AAE/C,UAAM,EAAE,aAAa,YAAY,IAAI;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/StandardElement.js
CHANGED
|
@@ -23,9 +23,8 @@ 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: {
|