vue3-sphinx-xml 0.3.0 → 0.3.2
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 +3 -3
- package/dist/Admonition.js +72 -0
- package/dist/Admonition.js.map +1 -0
- package/dist/BlockQuote.js +2 -2
- package/dist/BlockQuote.js.map +1 -1
- package/dist/CaptionNumber.js +1 -1
- package/dist/Compound.js +1 -1
- package/dist/Container.js +1 -1
- package/dist/Figure.js +1 -1
- package/dist/FigureCaption.js +1 -1
- package/dist/Footnote.js +1 -1
- package/dist/Image.js +1 -1
- package/dist/Legend.js +1 -1
- package/dist/LineBlock.js +1 -1
- package/dist/LineSingle.js +1 -1
- package/dist/Literal.js +10 -6
- package/dist/Literal.js.map +1 -1
- package/dist/Note.js +1 -1
- package/dist/Reference.js +1 -1
- package/dist/Section.js +1 -1
- package/dist/StandardElement.js +1 -1
- package/dist/Title.js +1 -1
- package/dist/TodoNode.js +1 -1
- package/dist/Topic.js +1 -1
- package/dist/Warning.js +47 -0
- package/dist/Warning.js.map +1 -0
- package/dist/entry.js +9 -1
- package/dist/entry.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -44,8 +44,6 @@ npm install --save vue-highlightjs
|
|
|
44
44
|
and edit your `main.js` application file to have the following:
|
|
45
45
|
|
|
46
46
|
```javascript
|
|
47
|
-
import store from './store'
|
|
48
|
-
|
|
49
47
|
import { installVue3SphinxXml } from 'vue3-sphinx-xml'
|
|
50
48
|
import 'vue3-sphinx-xml/dist/style.css'
|
|
51
49
|
|
|
@@ -55,7 +53,7 @@ import 'highlight.js/styles/xcode.css'
|
|
|
55
53
|
|
|
56
54
|
createApp(App)
|
|
57
55
|
.use(store)
|
|
58
|
-
.use(installVue3SphinxXml
|
|
56
|
+
.use(installVue3SphinxXml)
|
|
59
57
|
.use(VueHighlightJS)
|
|
60
58
|
.mount('#app')
|
|
61
59
|
```
|
|
@@ -82,6 +80,8 @@ import { SphinxPage } from 'vue3-sphinx-xml'
|
|
|
82
80
|
|
|
83
81
|
```
|
|
84
82
|
|
|
83
|
+
In this example the XML source files would be in the directory **public/sphinx-xml-files**.
|
|
84
|
+
|
|
85
85
|
#### SphinxPage API
|
|
86
86
|
|
|
87
87
|
- props
|
|
@@ -0,0 +1,72 @@
|
|
|
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, computed, ref, 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 { dataObject, 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
|
+
const attrs = ref({});
|
|
54
|
+
attrs.value = __spreadProps(__spreadValues({}, result.attrs), {
|
|
55
|
+
class: result.class.join(" ")
|
|
56
|
+
});
|
|
57
|
+
return (_ctx, _cache) => {
|
|
58
|
+
return openBlock(), createElementBlock("div", mergeProps({ id: unref(id) }, attrs.value), [
|
|
59
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(children), (c, index) => {
|
|
60
|
+
return openBlock(), createBlock(resolveDynamicComponent(c.component), {
|
|
61
|
+
key: "admonition_component_" + index,
|
|
62
|
+
node: c.node,
|
|
63
|
+
componentName: c.name,
|
|
64
|
+
properties: c.properties
|
|
65
|
+
}, null, 8, ["node", "componentName", "properties"]);
|
|
66
|
+
}), 128))
|
|
67
|
+
], 16, _hoisted_1);
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
};
|
|
71
|
+
export { _sfc_main as default };
|
|
72
|
+
//# 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 { computed, toRefs, ref } 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 { dataObject, 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)\n\nconst attrs = ref({})\nattrs.value = {\n ...result.attrs,\n class: result.class.join(' '),\n}\n</script>\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgCA,UAAM,EAAE,SAAS,OAAO,KAAK;AAE7B,UAAM,EAAE,YAAY,cAAc,WAAY;AAC9C,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;AAE3D,UAAM,QAAQ,IAAI,EAAE;AACpB,UAAM,QAAQ,iCACT,OAAO,QADE;AAAA,MAEZ,OAAO,OAAO,MAAM,KAAK,GAAG;AAAA,IAC9B;;;;;;;;;;;;;;;;"}
|
package/dist/BlockQuote.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
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";
|
|
@@ -27,7 +27,7 @@ const _sfc_main = {
|
|
|
27
27
|
createElementVNode("div", null, [
|
|
28
28
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(children), (c, index) => {
|
|
29
29
|
return openBlock(), createBlock(resolveDynamicComponent(c.component), {
|
|
30
|
-
key: "
|
|
30
|
+
key: "blockquote_component_" + index,
|
|
31
31
|
node: c.node,
|
|
32
32
|
componentName: c.name,
|
|
33
33
|
properties: c.properties
|
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=\"'
|
|
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=\"'blockquote_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,7 +18,7 @@ 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";
|
package/dist/Compound.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
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";
|
package/dist/Container.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
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";
|
package/dist/Figure.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
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";
|
package/dist/FigureCaption.js
CHANGED
|
@@ -18,7 +18,7 @@ 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";
|
package/dist/Footnote.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
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";
|
package/dist/Image.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
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
5
|
import "@hsorby/vue3-katex";
|
|
6
6
|
import "katex/dist/katex.min.css";
|
package/dist/Legend.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
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";
|
package/dist/LineBlock.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
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";
|
package/dist/LineSingle.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
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";
|
package/dist/Literal.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { toRefs, openBlock, createElementBlock, createElementVNode, Fragment, renderList, unref, createBlock, resolveDynamicComponent } from "vue";
|
|
1
|
+
import { toRefs, ref, openBlock, createElementBlock, normalizeClass, 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";
|
|
@@ -25,6 +25,7 @@ const _sfc_main = {
|
|
|
25
25
|
const { node } = toRefs(props);
|
|
26
26
|
const { dataObject } = useMethods();
|
|
27
27
|
const { children } = useChildren(node);
|
|
28
|
+
const classes = ref(["literal", "notranslate"]);
|
|
28
29
|
const v = dataObject(node.value);
|
|
29
30
|
const isEmpty = (d) => {
|
|
30
31
|
for (const i in d) {
|
|
@@ -36,11 +37,14 @@ const _sfc_main = {
|
|
|
36
37
|
return true;
|
|
37
38
|
};
|
|
38
39
|
if (!isEmpty(v)) {
|
|
39
|
-
|
|
40
|
-
|
|
40
|
+
if (v.attrs && v.attrs.role) {
|
|
41
|
+
classes.value.push(v.attrs.role);
|
|
42
|
+
}
|
|
41
43
|
}
|
|
42
44
|
return (_ctx, _cache) => {
|
|
43
|
-
return openBlock(), createElementBlock("code",
|
|
45
|
+
return openBlock(), createElementBlock("code", {
|
|
46
|
+
class: normalizeClass(classes.value)
|
|
47
|
+
}, [
|
|
44
48
|
createElementVNode("span", _hoisted_1, [
|
|
45
49
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(children), (c, index) => {
|
|
46
50
|
return openBlock(), createBlock(resolveDynamicComponent(c.component), {
|
|
@@ -51,7 +55,7 @@ const _sfc_main = {
|
|
|
51
55
|
}, null, 8, ["node", "componentName", "properties"]);
|
|
52
56
|
}), 128))
|
|
53
57
|
])
|
|
54
|
-
]);
|
|
58
|
+
], 2);
|
|
55
59
|
};
|
|
56
60
|
}
|
|
57
61
|
};
|
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
|
|
1
|
+
{"version":3,"file":"Literal.js","sources":["../src/components/templates/Literal.vue"],"sourcesContent":["<template>\n <code :class=\"classes\">\n <span class=\"pre\">\n <component\n v-for=\"(c, index) in children\"\n :key=\"'code_component_' + index\"\n :is=\"c.component\"\n :node=\"c.node\"\n :componentName=\"c.name\"\n :properties=\"c.properties\"\n />\n </span>\n </code>\n</template>\n\n<script setup>\nimport { toRefs, ref } from 'vue'\n\nimport { useMethods } from '../../composables/methods'\nimport { useChildren } from '../../composables/computed'\n\nconst props = defineProps({\n node: {\n type: undefined,\n default: null,\n },\n componentName: {\n type: String,\n },\n properties: {\n type: Object,\n },\n})\n\nconst { node } = toRefs(props)\n\nconst { dataObject } = useMethods()\n\nconst { children } = useChildren(node)\n\nconst classes = ref(['literal', 'notranslate'])\n\nconst v = dataObject(node.value)\nconst isEmpty = (d) => {\n for (const i in d) {\n if (d[i].language === '') {\n continue\n }\n return false\n }\n\n return true\n}\n\nif (!isEmpty(v)) {\n if (v.attrs && v.attrs.role) {\n classes.value.push(v.attrs.role)\n }\n}\n</script>\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAkCA,UAAM,EAAE,SAAS,OAAO,KAAK;AAE7B,UAAM,EAAE,eAAe,WAAY;AAEnC,UAAM,EAAE,aAAa,YAAY,IAAI;AAErC,UAAM,UAAU,IAAI,CAAC,WAAW,aAAa,CAAC;AAE9C,UAAM,IAAI,WAAW,KAAK,KAAK;AAC/B,UAAM,UAAU,CAAC,MAAM;AACrB,iBAAW,KAAK,GAAG;AACjB,YAAI,EAAE,GAAG,aAAa,IAAI;AACxB;AAAA,QACD;AACD,eAAO;AAAA,MACR;AAED,aAAO;AAAA,IACT;AAEA,QAAI,CAAC,QAAQ,CAAC,GAAG;AACf,UAAI,EAAE,SAAS,EAAE,MAAM,MAAM;AAC3B,gBAAQ,MAAM,KAAK,EAAE,MAAM,IAAI;AAAA,MAChC;AAAA,IACH;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/Note.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { toRefs, openBlock, createElementBlock, normalizeProps, guardReactiveProps, Fragment, renderList, unref, createBlock, resolveDynamicComponent, createElementVNode } 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";
|
package/dist/Reference.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ref, toRefs, onMounted, resolveComponent, unref, openBlock, createBlock, withCtx, createTextVNode, toDisplayString, createElementBlock, Fragment, renderList, resolveDynamicComponent } from "vue";
|
|
2
2
|
import { useRoute } from "vue-router";
|
|
3
|
-
import {
|
|
3
|
+
import { a as useChildren } from "./entry.js";
|
|
4
4
|
import { u as useMethods } from "./methods.js";
|
|
5
5
|
import { u as useBaseReference } from "./basereference.js";
|
|
6
6
|
import "@hsorby/vue3-katex";
|
package/dist/Section.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { toRefs, openBlock, createElementBlock, unref, Fragment, renderList, 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";
|
package/dist/StandardElement.js
CHANGED
|
@@ -18,7 +18,7 @@ var __spreadValues = (a, b) => {
|
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
import { toRefs, ref, openBlock, createBlock, resolveDynamicComponent, unref, mergeProps, toHandlerKey, withCtx, createElementBlock, Fragment, renderList } from "vue";
|
|
21
|
-
import {
|
|
21
|
+
import { a as useChildren, n as nodeNameTagNameMap } 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";
|
package/dist/Title.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { toRefs, computed, openBlock, createBlock, resolveDynamicComponent, unref, normalizeClass, withCtx, createElementBlock, Fragment, renderList } 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";
|
package/dist/TodoNode.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { toRefs, openBlock, createElementBlock, unref, Fragment, renderList, 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";
|
package/dist/Topic.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { toRefs, openBlock, createElementBlock, unref, normalizeClass, Fragment, renderList, createBlock, resolveDynamicComponent } from "vue";
|
|
2
|
-
import {
|
|
2
|
+
import { 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";
|
package/dist/Warning.js
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { toRefs, openBlock, createElementBlock, unref, Fragment, renderList, createBlock, resolveDynamicComponent } from "vue";
|
|
2
|
+
import { u as useMethods } from "./methods.js";
|
|
3
|
+
import { a as useChildren } from "./entry.js";
|
|
4
|
+
import "@hsorby/vue3-katex";
|
|
5
|
+
import "katex/dist/katex.min.css";
|
|
6
|
+
import "vue-router";
|
|
7
|
+
import "axios";
|
|
8
|
+
import "path-to-regexp";
|
|
9
|
+
const _hoisted_1 = ["id"];
|
|
10
|
+
const _sfc_main = {
|
|
11
|
+
props: {
|
|
12
|
+
node: {
|
|
13
|
+
type: void 0,
|
|
14
|
+
default: null
|
|
15
|
+
},
|
|
16
|
+
componentName: {
|
|
17
|
+
type: String
|
|
18
|
+
},
|
|
19
|
+
properties: {
|
|
20
|
+
type: Object
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
setup(__props) {
|
|
24
|
+
const props = __props;
|
|
25
|
+
const { node } = toRefs(props);
|
|
26
|
+
const { extractId } = useMethods();
|
|
27
|
+
const { id } = extractId(node.value);
|
|
28
|
+
const { children } = useChildren(node);
|
|
29
|
+
return (_ctx, _cache) => {
|
|
30
|
+
return openBlock(), createElementBlock("div", {
|
|
31
|
+
id: unref(id),
|
|
32
|
+
class: "admonition warning"
|
|
33
|
+
}, [
|
|
34
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(children), (c, index) => {
|
|
35
|
+
return openBlock(), createBlock(resolveDynamicComponent(c.component), {
|
|
36
|
+
key: "warning_component_" + index,
|
|
37
|
+
node: c.node,
|
|
38
|
+
componentName: c.name,
|
|
39
|
+
properties: c.properties
|
|
40
|
+
}, null, 8, ["node", "componentName", "properties"]);
|
|
41
|
+
}), 128))
|
|
42
|
+
], 8, _hoisted_1);
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
export { _sfc_main as default };
|
|
47
|
+
//# sourceMappingURL=Warning.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Warning.js","sources":["../src/components/templates/Warning.vue"],"sourcesContent":["<template>\n <div :id=\"id\" class=\"admonition warning\">\n <component\n v-for=\"(c, index) in children\"\n :key=\"'warning_component_' + index\"\n :is=\"c.component\"\n :node=\"c.node\"\n :componentName=\"c.name\"\n :properties=\"c.properties\"\n />\n </div>\n</template>\n\n<script setup>\nimport { toRefs } from 'vue'\n\nimport { useMethods } from '../../composables/methods'\nimport { useChildren } from '../../composables/computed'\n\nconst props = defineProps({\n node: {\n type: undefined,\n default: null,\n },\n componentName: {\n type: String,\n },\n properties: {\n type: Object,\n }\n})\n\nconst { node } = toRefs(props)\n\nconst { extractId } = useMethods()\nconst { id } = extractId(node.value)\n\nconst { children } = useChildren(node)\n</script>\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAgCA,UAAM,EAAE,SAAS,OAAO,KAAK;AAE7B,UAAM,EAAE,cAAc,WAAY;AAClC,UAAM,EAAE,OAAO,UAAU,KAAK,KAAK;AAEnC,UAAM,EAAE,aAAa,YAAY,IAAI;;;;;;;;;;;;;;;;;;;"}
|
package/dist/entry.js
CHANGED
|
@@ -45165,6 +45165,8 @@ const nodeNameTemplateNameMap = /* @__PURE__ */ new Map([
|
|
|
45165
45165
|
]);
|
|
45166
45166
|
function __variableDynamicImportRuntime1__(path) {
|
|
45167
45167
|
switch (path) {
|
|
45168
|
+
case "../components/templates/Admonition.vue":
|
|
45169
|
+
return import("./Admonition.js");
|
|
45168
45170
|
case "../components/templates/BlockQuote.vue":
|
|
45169
45171
|
return import("./BlockQuote.js");
|
|
45170
45172
|
case "../components/templates/CaptionNumber.vue":
|
|
@@ -45235,6 +45237,8 @@ function __variableDynamicImportRuntime1__(path) {
|
|
|
45235
45237
|
return import("./Topic.js");
|
|
45236
45238
|
case "../components/templates/Transition.vue":
|
|
45237
45239
|
return import("./Transition.js");
|
|
45240
|
+
case "../components/templates/Warning.vue":
|
|
45241
|
+
return import("./Warning.js");
|
|
45238
45242
|
default:
|
|
45239
45243
|
return new Promise(function(resolve, reject) {
|
|
45240
45244
|
(typeof queueMicrotask === "function" ? queueMicrotask : setTimeout)(reject.bind(null, new Error("Unknown variable dynamic import: " + path)));
|
|
@@ -45243,6 +45247,8 @@ function __variableDynamicImportRuntime1__(path) {
|
|
|
45243
45247
|
}
|
|
45244
45248
|
function __variableDynamicImportRuntime0__(path) {
|
|
45245
45249
|
switch (path) {
|
|
45250
|
+
case "../components/templates/Admonition.vue":
|
|
45251
|
+
return import("./Admonition.js");
|
|
45246
45252
|
case "../components/templates/BlockQuote.vue":
|
|
45247
45253
|
return import("./BlockQuote.js");
|
|
45248
45254
|
case "../components/templates/CaptionNumber.vue":
|
|
@@ -45313,6 +45319,8 @@ function __variableDynamicImportRuntime0__(path) {
|
|
|
45313
45319
|
return import("./Topic.js");
|
|
45314
45320
|
case "../components/templates/Transition.vue":
|
|
45315
45321
|
return import("./Transition.js");
|
|
45322
|
+
case "../components/templates/Warning.vue":
|
|
45323
|
+
return import("./Warning.js");
|
|
45316
45324
|
default:
|
|
45317
45325
|
return new Promise(function(resolve, reject) {
|
|
45318
45326
|
(typeof queueMicrotask === "function" ? queueMicrotask : setTimeout)(reject.bind(null, new Error("Unknown variable dynamic import: " + path)));
|
|
@@ -45624,5 +45632,5 @@ function installVue3SphinxXml(app, options = {}) {
|
|
|
45624
45632
|
app.use(Vue3Katex, options.katex);
|
|
45625
45633
|
app.use(am);
|
|
45626
45634
|
}
|
|
45627
|
-
export { _export_sfc as _,
|
|
45635
|
+
export { _export_sfc as _, useChildren as a, useSphinxStore as b, constructPageNameFromRoute as c, determineRouteUrl as d, decodeHTML as e, _sfc_main as f, installVue3SphinxXml as i, nodeNameTagNameMap as n, useClasses as u };
|
|
45628
45636
|
//# sourceMappingURL=entry.js.map
|