vue3-sphinx-xml 0.3.3 → 0.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (157) hide show
  1. package/dist/Admonition-4dbe3f53.mjs +41 -0
  2. package/dist/Admonition-4dbe3f53.mjs.map +1 -0
  3. package/dist/BlockQuote-0b464fcb.mjs +39 -0
  4. package/dist/BlockQuote-0b464fcb.mjs.map +1 -0
  5. package/dist/CaptionNumber-02430764.mjs +41 -0
  6. package/dist/CaptionNumber-02430764.mjs.map +1 -0
  7. package/dist/ColumnGroup-baa1b99b.mjs +37 -0
  8. package/dist/ColumnGroup-baa1b99b.mjs.map +1 -0
  9. package/dist/Comment-f2157760.mjs +31 -0
  10. package/dist/Comment-f2157760.mjs.map +1 -0
  11. package/dist/Compound-ae2a8a98.mjs +35 -0
  12. package/dist/Compound-ae2a8a98.mjs.map +1 -0
  13. package/dist/Container-19a7431d.mjs +55 -0
  14. package/dist/Container-19a7431d.mjs.map +1 -0
  15. package/dist/DirectElementMap-4c6f8e80.mjs +21 -0
  16. package/dist/DirectElementMap-4c6f8e80.mjs.map +1 -0
  17. package/dist/DownloadReference-1df41bf0.mjs +40 -0
  18. package/dist/DownloadReference-1df41bf0.mjs.map +1 -0
  19. package/dist/Figure-12e7efef.mjs +43 -0
  20. package/dist/Figure-12e7efef.mjs.map +1 -0
  21. package/dist/FigureCaption-7b351f25.mjs +46 -0
  22. package/dist/FigureCaption-7b351f25.mjs.map +1 -0
  23. package/dist/Footnote-e4b02243.mjs +38 -0
  24. package/dist/Footnote-e4b02243.mjs.map +1 -0
  25. package/dist/FootnoteReference-b5b67601.mjs +44 -0
  26. package/dist/FootnoteReference-b5b67601.mjs.map +1 -0
  27. package/dist/Image-15e1e5bd.mjs +40 -0
  28. package/dist/Image-15e1e5bd.mjs.map +1 -0
  29. package/dist/Legend-878a7ec8.mjs +41 -0
  30. package/dist/Legend-878a7ec8.mjs.map +1 -0
  31. package/dist/LineBlock-8eec127a.mjs +38 -0
  32. package/dist/LineBlock-8eec127a.mjs.map +1 -0
  33. package/dist/LineSingle-6a9fabdf.mjs +40 -0
  34. package/dist/LineSingle-6a9fabdf.mjs.map +1 -0
  35. package/dist/Literal-edb2ce6f.mjs +47 -0
  36. package/dist/Literal-edb2ce6f.mjs.map +1 -0
  37. package/dist/LiteralBlock-a2af758b.mjs +42 -0
  38. package/dist/LiteralBlock-a2af758b.mjs.map +1 -0
  39. package/dist/Math-7ccdef36.mjs +28 -0
  40. package/dist/Math-7ccdef36.mjs.map +1 -0
  41. package/dist/MathBlock-f8b3d549.mjs +59 -0
  42. package/dist/MathBlock-f8b3d549.mjs.map +1 -0
  43. package/dist/Note-4413dcab.mjs +39 -0
  44. package/dist/Note-4413dcab.mjs.map +1 -0
  45. package/dist/NumberReference-2143cb23.mjs +53 -0
  46. package/dist/NumberReference-2143cb23.mjs.map +1 -0
  47. package/dist/Problematic-3d793374.mjs +42 -0
  48. package/dist/Problematic-3d793374.mjs.map +1 -0
  49. package/dist/Raw-dcdd7f96.mjs +10 -0
  50. package/dist/Raw-dcdd7f96.mjs.map +1 -0
  51. package/dist/Reference-80a8b234.mjs +57 -0
  52. package/dist/Reference-80a8b234.mjs.map +1 -0
  53. package/dist/Section-9ba27ca3.mjs +42 -0
  54. package/dist/Section-9ba27ca3.mjs.map +1 -0
  55. package/dist/Skip-4a46064f.mjs +19 -0
  56. package/dist/Skip-4a46064f.mjs.map +1 -0
  57. package/dist/StandardElement-64bcb6c4.mjs +62 -0
  58. package/dist/StandardElement-64bcb6c4.mjs.map +1 -0
  59. package/dist/Text-0d6b5332.mjs +24 -0
  60. package/dist/Text-0d6b5332.mjs.map +1 -0
  61. package/dist/Title-4ea6531d.mjs +49 -0
  62. package/dist/Title-4ea6531d.mjs.map +1 -0
  63. package/dist/TodoNode-9696576f.mjs +44 -0
  64. package/dist/TodoNode-9696576f.mjs.map +1 -0
  65. package/dist/Topic-5c1f63eb.mjs +41 -0
  66. package/dist/Topic-5c1f63eb.mjs.map +1 -0
  67. package/dist/Transition-3485737d.mjs +15 -0
  68. package/dist/Transition-3485737d.mjs.map +1 -0
  69. package/dist/Warning-5cbf4ef9.mjs +47 -0
  70. package/dist/Warning-5cbf4ef9.mjs.map +1 -0
  71. package/dist/basereference-dc2b6871.mjs +42 -0
  72. package/dist/basereference-dc2b6871.mjs.map +1 -0
  73. package/dist/{entry.js → entry-185f60c1.mjs} +7937 -6939
  74. package/dist/entry-185f60c1.mjs.map +1 -0
  75. package/dist/methods-f5038371.mjs +69 -0
  76. package/dist/methods-f5038371.mjs.map +1 -0
  77. package/dist/style.css +1 -1
  78. package/dist/vue3-sphinx-xml.mjs +12 -0
  79. package/dist/vue3-sphinx-xml.mjs.map +1 -0
  80. package/package.json +8 -9
  81. package/dist/Admonition.js +0 -72
  82. package/dist/Admonition.js.map +0 -1
  83. package/dist/BlockQuote.js +0 -42
  84. package/dist/BlockQuote.js.map +0 -1
  85. package/dist/CaptionNumber.js +0 -70
  86. package/dist/CaptionNumber.js.map +0 -1
  87. package/dist/ColumnGroup.js +0 -44
  88. package/dist/ColumnGroup.js.map +0 -1
  89. package/dist/Comment.js +0 -34
  90. package/dist/Comment.js.map +0 -1
  91. package/dist/Compound.js +0 -38
  92. package/dist/Compound.js.map +0 -1
  93. package/dist/Container.js +0 -79
  94. package/dist/Container.js.map +0 -1
  95. package/dist/DirectElementMap.js +0 -22
  96. package/dist/DirectElementMap.js.map +0 -1
  97. package/dist/DownloadReference.js +0 -47
  98. package/dist/DownloadReference.js.map +0 -1
  99. package/dist/Figure.js +0 -54
  100. package/dist/Figure.js.map +0 -1
  101. package/dist/FigureCaption.js +0 -76
  102. package/dist/FigureCaption.js.map +0 -1
  103. package/dist/Footnote.js +0 -44
  104. package/dist/Footnote.js.map +0 -1
  105. package/dist/FootnoteReference.js +0 -48
  106. package/dist/FootnoteReference.js.map +0 -1
  107. package/dist/Image.js +0 -52
  108. package/dist/Image.js.map +0 -1
  109. package/dist/Legend.js +0 -44
  110. package/dist/Legend.js.map +0 -1
  111. package/dist/LineBlock.js +0 -44
  112. package/dist/LineBlock.js.map +0 -1
  113. package/dist/LineSingle.js +0 -45
  114. package/dist/LineSingle.js.map +0 -1
  115. package/dist/Literal.js +0 -63
  116. package/dist/Literal.js.map +0 -1
  117. package/dist/LiteralBlock.js +0 -49
  118. package/dist/LiteralBlock.js.map +0 -1
  119. package/dist/Math.js +0 -25
  120. package/dist/Math.js.map +0 -1
  121. package/dist/MathBlock.js +0 -77
  122. package/dist/MathBlock.js.map +0 -1
  123. package/dist/Note.js +0 -47
  124. package/dist/Note.js.map +0 -1
  125. package/dist/NumberReference.js +0 -59
  126. package/dist/NumberReference.js.map +0 -1
  127. package/dist/Problematic.js +0 -44
  128. package/dist/Problematic.js.map +0 -1
  129. package/dist/Raw.js +0 -10
  130. package/dist/Raw.js.map +0 -1
  131. package/dist/Reference.js +0 -58
  132. package/dist/Reference.js.map +0 -1
  133. package/dist/Section.js +0 -52
  134. package/dist/Section.js.map +0 -1
  135. package/dist/Skip.js +0 -18
  136. package/dist/Skip.js.map +0 -1
  137. package/dist/StandardElement.js +0 -99
  138. package/dist/StandardElement.js.map +0 -1
  139. package/dist/Text.js +0 -23
  140. package/dist/Text.js.map +0 -1
  141. package/dist/Title.js +0 -65
  142. package/dist/Title.js.map +0 -1
  143. package/dist/TodoNode.js +0 -53
  144. package/dist/TodoNode.js.map +0 -1
  145. package/dist/Topic.js +0 -48
  146. package/dist/Topic.js.map +0 -1
  147. package/dist/Transition.js +0 -9
  148. package/dist/Transition.js.map +0 -1
  149. package/dist/Warning.js +0 -55
  150. package/dist/Warning.js.map +0 -1
  151. package/dist/basereference.js +0 -41
  152. package/dist/basereference.js.map +0 -1
  153. package/dist/entry.js.map +0 -1
  154. package/dist/methods.js +0 -138
  155. package/dist/methods.js.map +0 -1
  156. package/dist/vue3-sphinx-xml.es.js +0 -8
  157. package/dist/vue3-sphinx-xml.es.js.map +0 -1
@@ -1,47 +0,0 @@
1
- import { toRefs, computed, ref, openBlock, createElementBlock, unref, normalizeClass, toDisplayString } from "vue";
2
- import { useRoute } from "vue-router";
3
- import { b as useSphinxStore, d as determineRouteUrl } from "./entry.js";
4
- import "@hsorby/vue3-katex";
5
- import "katex/dist/katex.min.css";
6
- import "axios";
7
- import "path-to-regexp";
8
- const _hoisted_1 = ["href", "download"];
9
- const _sfc_main = {
10
- props: {
11
- node: {
12
- type: void 0,
13
- default: null
14
- },
15
- componentName: {
16
- type: String
17
- }
18
- },
19
- setup(__props) {
20
- const props = __props;
21
- const { node } = toRefs(props);
22
- const route = useRoute();
23
- const sphinxStore = useSphinxStore();
24
- const href = computed(() => {
25
- let downloadHref = node.value.getAttribute("filename");
26
- if (downloadHref && !downloadHref.startsWith("/") && !downloadHref.startsWith("http")) {
27
- const routeURL = determineRouteUrl(route);
28
- downloadHref = [sphinxStore.getDownloadURL(routeURL), downloadHref].join("/");
29
- }
30
- return downloadHref;
31
- });
32
- const targetParts = node.value.getAttribute("reftarget").split("/");
33
- const downloadName = targetParts[targetParts.length - 1];
34
- const classes = ["reference", "internal", node.value.getAttribute("reftype")];
35
- const saveFilename = ref("not-set");
36
- saveFilename.value = downloadName;
37
- return (_ctx, _cache) => {
38
- return openBlock(), createElementBlock("a", {
39
- href: unref(href),
40
- download: saveFilename.value,
41
- class: normalizeClass(classes)
42
- }, toDisplayString(saveFilename.value), 9, _hoisted_1);
43
- };
44
- }
45
- };
46
- export { _sfc_main as default };
47
- //# sourceMappingURL=DownloadReference.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DownloadReference.js","sources":["../src/components/templates/DownloadReference.vue"],"sourcesContent":["<template>\n <a :href=\"href\" :download=\"saveFilename\" :class=\"classes\">{{\n saveFilename\n }}</a>\n</template>\n\n<script setup>\nimport { computed, toRefs, ref } from 'vue'\nimport { useRoute } from 'vue-router'\nimport { useSphinxStore } from '@/stores/sphinx'\n\nimport { determineRouteUrl } from '../../js/utilities'\n\nconst props = defineProps({\n node: {\n type: undefined,\n default: null,\n },\n componentName: {\n type: String,\n },\n})\n\nconst { node } = toRefs(props)\nconst route = useRoute()\nconst sphinxStore = useSphinxStore()\n\nconst href = computed(() => {\n let downloadHref = node.value.getAttribute('filename')\n if (\n downloadHref &&\n !downloadHref.startsWith('/') &&\n !downloadHref.startsWith('http')\n ) {\n const routeURL = determineRouteUrl(route)\n downloadHref = [sphinxStore.getDownloadURL(routeURL), downloadHref].join(\n '/',\n )\n }\n return downloadHref\n})\n\nconst targetParts = node.value.getAttribute('reftarget').split('/')\nconst downloadName = targetParts[targetParts.length - 1]\nconst classes = ['reference', 'internal', node.value.getAttribute('reftype')]\n\n// Need to use a refernce variable in the template bound attributes.\nconst saveFilename = ref('not-set')\nsaveFilename.value = downloadName\n</script>\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAuBA,UAAM,EAAE,SAAS,OAAO,KAAK;AAC7B,UAAM,QAAQ,SAAU;AACxB,UAAM,cAAc,eAAgB;AAEpC,UAAM,OAAO,SAAS,MAAM;AAC1B,UAAI,eAAe,KAAK,MAAM,aAAa,UAAU;AACrD,UACE,gBACA,CAAC,aAAa,WAAW,GAAG,KAC5B,CAAC,aAAa,WAAW,MAAM,GAC/B;AACA,cAAM,WAAW,kBAAkB,KAAK;AACxC,uBAAe,CAAC,YAAY,eAAe,QAAQ,GAAG,YAAY,EAAE,KAClE,GACD;AAAA,MACF;AACD,aAAO;AAAA,IACT,CAAC;AAED,UAAM,cAAc,KAAK,MAAM,aAAa,WAAW,EAAE,MAAM,GAAG;AAClE,UAAM,eAAe,YAAY,YAAY,SAAS;AACtD,UAAM,UAAU,CAAC,aAAa,YAAY,KAAK,MAAM,aAAa,SAAS,CAAC;AAG5E,UAAM,eAAe,IAAI,SAAS;AAClC,iBAAa,QAAQ;;;;;;;;;;;"}
package/dist/Figure.js DELETED
@@ -1,54 +0,0 @@
1
- import { toRefs, ref, computed, openBlock, createElementBlock, normalizeProps, guardReactiveProps, Fragment, renderList, unref, createBlock, resolveDynamicComponent } from "vue";
2
- import { u as useClasses, a as useChildren } from "./entry.js";
3
- import { u as useMethods } from "./methods.js";
4
- import "@hsorby/vue3-katex";
5
- import "katex/dist/katex.min.css";
6
- import "vue-router";
7
- import "axios";
8
- import "path-to-regexp";
9
- const _sfc_main = {
10
- props: {
11
- node: {
12
- type: void 0,
13
- default: null
14
- },
15
- componentName: {
16
- type: String
17
- },
18
- properties: {
19
- type: Object
20
- }
21
- },
22
- setup(__props) {
23
- const props = __props;
24
- const { dataObject } = useMethods();
25
- const { node } = toRefs(props);
26
- const attrs = ref({});
27
- const { classes } = useClasses(node);
28
- const { children } = useChildren(node);
29
- const combinerdClasses = computed(() => {
30
- let c = [...classes.value];
31
- for (const attr of node.value.attributes) {
32
- if (attr.name === "align") {
33
- c.push("align-" + attr.value);
34
- }
35
- }
36
- return c;
37
- });
38
- attrs.value = dataObject(node.value, combinerdClasses.value).attrs;
39
- return (_ctx, _cache) => {
40
- return openBlock(), createElementBlock("figure", normalizeProps(guardReactiveProps(attrs.value)), [
41
- (openBlock(true), createElementBlock(Fragment, null, renderList(unref(children), (c, index) => {
42
- return openBlock(), createBlock(resolveDynamicComponent(c.component), {
43
- key: "figure_component_" + index,
44
- node: c.node,
45
- componentName: c.name,
46
- properties: c.properties
47
- }, null, 8, ["node", "componentName", "properties"]);
48
- }), 128))
49
- ], 16);
50
- };
51
- }
52
- };
53
- export { _sfc_main as default };
54
- //# sourceMappingURL=Figure.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Figure.js","sources":["../src/components/templates/Figure.vue"],"sourcesContent":["<template>\n <figure :=\"attrs\">\n <component\n v-for=\"(c, index) in children\"\n :key=\"'figure_component_' + index\"\n :is=\"c.component\"\n :node=\"c.node\"\n :componentName=\"c.name\"\n :properties=\"c.properties\"\n />\n </figure>\n</template>\n\n<script setup>\nimport { computed, toRefs, ref } from 'vue'\n\nimport { useChildren, useClasses } from '../../composables/computed'\nimport { useMethods } from '../../composables/methods'\n\nconst props = defineProps({\n node: {\n type: undefined,\n default: null,\n },\n componentName: {\n type: String,\n },\n properties: {\n type: Object,\n },\n})\n\nconst { dataObject } = useMethods()\nconst { node } = toRefs(props)\nconst attrs = ref({})\nconst { classes } = useClasses(node)\n\nconst { children } = useChildren(node)\n\nconst combinerdClasses = computed(() => {\n let c = [...classes.value]\n for (const attr of node.value.attributes) {\n if (attr.name === 'align') {\n c.push('align-' + attr.value)\n }\n }\n return c\n})\n\nattrs.value = dataObject(node.value, combinerdClasses.value).attrs\n</script>\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAgCA,UAAM,EAAE,eAAe,WAAY;AACnC,UAAM,EAAE,SAAS,OAAO,KAAK;AAC7B,UAAM,QAAQ,IAAI,EAAE;AACpB,UAAM,EAAE,YAAY,WAAW,IAAI;AAEnC,UAAM,EAAE,aAAa,YAAY,IAAI;AAErC,UAAM,mBAAmB,SAAS,MAAM;AACtC,UAAI,IAAI,CAAC,GAAG,QAAQ,KAAK;AACzB,iBAAW,QAAQ,KAAK,MAAM,YAAY;AACxC,YAAI,KAAK,SAAS,SAAS;AACzB,YAAE,KAAK,WAAW,KAAK,KAAK;AAAA,QAC7B;AAAA,MACF;AACD,aAAO;AAAA,IACT,CAAC;AAED,UAAM,QAAQ,WAAW,KAAK,OAAO,iBAAiB,KAAK,EAAE;;;;;;;;;;;;;;;;"}
@@ -1,76 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __defProps = Object.defineProperties;
3
- var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
4
- var __getOwnPropSymbols = Object.getOwnPropertySymbols;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __propIsEnum = Object.prototype.propertyIsEnumerable;
7
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
8
- var __spreadValues = (a, b) => {
9
- for (var prop in b || (b = {}))
10
- if (__hasOwnProp.call(b, prop))
11
- __defNormalProp(a, prop, b[prop]);
12
- if (__getOwnPropSymbols)
13
- for (var prop of __getOwnPropSymbols(b)) {
14
- if (__propIsEnum.call(b, prop))
15
- __defNormalProp(a, prop, b[prop]);
16
- }
17
- return a;
18
- };
19
- var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
- import { toRefs, ref, computed, openBlock, createElementBlock, normalizeProps, guardReactiveProps, Fragment, renderList, unref, createBlock, resolveDynamicComponent } from "vue";
21
- import { u as useClasses, a as useChildren } from "./entry.js";
22
- import { u as useMethods } from "./methods.js";
23
- import "@hsorby/vue3-katex";
24
- import "katex/dist/katex.min.css";
25
- import "vue-router";
26
- import "axios";
27
- import "path-to-regexp";
28
- const _sfc_main = {
29
- props: {
30
- node: {
31
- type: void 0,
32
- default: null
33
- },
34
- componentName: {
35
- type: String
36
- },
37
- properties: {
38
- type: Object
39
- }
40
- },
41
- setup(__props) {
42
- const props = __props;
43
- const { dataObject } = useMethods();
44
- const { node } = toRefs(props);
45
- const attrs = ref({});
46
- const { classes } = useClasses(node);
47
- const { children } = useChildren(node);
48
- const combinedClasses = computed(() => {
49
- let c = ["figure-caption", ...classes.value];
50
- for (const attr of node.value.attributes) {
51
- if (attr.name === "align") {
52
- c.push("align-" + attr.value);
53
- }
54
- }
55
- return c;
56
- });
57
- const result = dataObject(node.value, combinedClasses.value);
58
- attrs.value = __spreadProps(__spreadValues({}, result.attrs), {
59
- class: result.class.join(" ")
60
- });
61
- return (_ctx, _cache) => {
62
- return openBlock(), createElementBlock("span", normalizeProps(guardReactiveProps(attrs.value)), [
63
- (openBlock(true), createElementBlock(Fragment, null, renderList(unref(children), (c, index) => {
64
- return openBlock(), createBlock(resolveDynamicComponent(c.component), {
65
- key: "figure_caption_" + index,
66
- node: c.node,
67
- componentName: c.name,
68
- properties: c.properties
69
- }, null, 8, ["node", "componentName", "properties"]);
70
- }), 128))
71
- ], 16);
72
- };
73
- }
74
- };
75
- export { _sfc_main as default };
76
- //# sourceMappingURL=FigureCaption.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"FigureCaption.js","sources":["../src/components/templates/FigureCaption.vue"],"sourcesContent":["<template>\n <span :=\"attrs\">\n <component\n v-for=\"(c, index) in children\"\n :key=\"'figure_caption_' + index\"\n :is=\"c.component\"\n :node=\"c.node\"\n :componentName=\"c.name\"\n :properties=\"c.properties\"\n />\n </span>\n</template>\n\n<script setup>\nimport { computed, toRefs, ref } from 'vue'\n\nimport { useChildren, useClasses } from '../../composables/computed'\nimport { useMethods } from '../../composables/methods'\n\nconst props = defineProps({\n node: {\n type: undefined,\n default: null,\n },\n componentName: {\n type: String,\n },\n properties: {\n type: Object,\n },\n})\n\nconst { dataObject } = useMethods()\nconst { node } = toRefs(props)\nconst attrs = ref({})\nconst { classes } = useClasses(node)\n\nconst { children } = useChildren(node)\n\nconst combinedClasses = computed(() => {\n let c = ['figure-caption', ...classes.value]\n for (const attr of node.value.attributes) {\n if (attr.name === 'align') {\n c.push('align-' + attr.value)\n }\n }\n return c\n})\n\nconst result = dataObject(node.value, combinedClasses.value)\nattrs.value = {\n ...result.attrs,\n class: result.class.join(' '),\n }\n</script>\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgCA,UAAM,EAAE,eAAe,WAAY;AACnC,UAAM,EAAE,SAAS,OAAO,KAAK;AAC7B,UAAM,QAAQ,IAAI,EAAE;AACpB,UAAM,EAAE,YAAY,WAAW,IAAI;AAEnC,UAAM,EAAE,aAAa,YAAY,IAAI;AAErC,UAAM,kBAAkB,SAAS,MAAM;AACrC,UAAI,IAAI,CAAC,kBAAkB,GAAG,QAAQ,KAAK;AAC3C,iBAAW,QAAQ,KAAK,MAAM,YAAY;AACxC,YAAI,KAAK,SAAS,SAAS;AACzB,YAAE,KAAK,WAAW,KAAK,KAAK;AAAA,QAC7B;AAAA,MACF;AACD,aAAO;AAAA,IACT,CAAC;AAED,UAAM,SAAS,WAAW,KAAK,OAAO,gBAAgB,KAAK;AAC3D,UAAM,QAAQ,iCACP,OAAO,QADA;AAAA,MAEV,OAAO,OAAO,MAAM,KAAK,GAAG;AAAA,IAC7B;;;;;;;;;;;;;;;;"}
package/dist/Footnote.js DELETED
@@ -1,44 +0,0 @@
1
- import { toRefs, ref, openBlock, createElementBlock, normalizeProps, guardReactiveProps, Fragment, renderList, unref, createBlock, resolveDynamicComponent } from "vue";
2
- import { u as useMethods } from "./methods.js";
3
- import { a as useChildren } from "./entry.js";
4
- import "@hsorby/vue3-katex";
5
- import "katex/dist/katex.min.css";
6
- import "vue-router";
7
- import "axios";
8
- import "path-to-regexp";
9
- const _sfc_main = {
10
- props: {
11
- node: {
12
- type: void 0,
13
- default: null
14
- },
15
- componentName: {
16
- type: String
17
- },
18
- properties: {
19
- type: Object
20
- }
21
- },
22
- setup(__props) {
23
- const props = __props;
24
- const { node } = toRefs(props);
25
- const { children } = useChildren(node);
26
- const { dataObject } = useMethods();
27
- const attrs = ref({});
28
- attrs.value = dataObject(node.value, ["footnote"]).attrs;
29
- return (_ctx, _cache) => {
30
- return openBlock(), createElementBlock("div", normalizeProps(guardReactiveProps(attrs.value)), [
31
- (openBlock(true), createElementBlock(Fragment, null, renderList(unref(children), (c, index) => {
32
- return openBlock(), createBlock(resolveDynamicComponent(c.component), {
33
- key: "footnote_component_" + index,
34
- node: c.node,
35
- componentName: c.name,
36
- properties: c.properties
37
- }, null, 8, ["node", "componentName", "properties"]);
38
- }), 128))
39
- ], 16);
40
- };
41
- }
42
- };
43
- export { _sfc_main as default };
44
- //# sourceMappingURL=Footnote.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Footnote.js","sources":["../src/components/templates/Footnote.vue"],"sourcesContent":["<template>\n <div :=\"attrs\">\n <component\n v-for=\"(c, index) in children\"\n :key=\"'footnote_component_' + index\"\n :is=\"c.component\"\n :node=\"c.node\"\n :componentName=\"c.name\"\n :properties=\"c.properties\"\n />\n </div>\n</template>\n\n<script setup>\nimport { toRefs, ref } from 'vue'\n\nimport { useMethods } from '../../composables/methods'\nimport { useChildren } from '../../composables/computed'\n\nconst props = defineProps({\n node: {\n type: undefined,\n default: null,\n },\n componentName: {\n type: String,\n },\n properties: {\n type: Object,\n },\n})\n\nconst { node } = toRefs(props)\nconst { children } = useChildren(node)\nconst { dataObject } = useMethods()\nconst attrs = ref({})\n\nattrs.value = dataObject(node.value, ['footnote']).attrs // import { h } from 'vue'\n</script>\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAgCA,UAAM,EAAE,SAAS,OAAO,KAAK;AAC7B,UAAM,EAAE,aAAa,YAAY,IAAI;AACrC,UAAM,EAAE,eAAe,WAAY;AACnC,UAAM,QAAQ,IAAI,EAAE;AAEpB,UAAM,QAAQ,WAAW,KAAK,OAAO,CAAC,UAAU,CAAC,EAAE;;;;;;;;;;;;;;;;"}
@@ -1,48 +0,0 @@
1
- import { ref, toRefs, onMounted, resolveComponent, unref, openBlock, createBlock, withCtx, createTextVNode, toDisplayString, createElementBlock } from "vue";
2
- import { useRoute } from "vue-router";
3
- import { u as useMethods } from "./methods.js";
4
- import { u as useBaseReference } from "./basereference.js";
5
- import "./entry.js";
6
- import "@hsorby/vue3-katex";
7
- import "katex/dist/katex.min.css";
8
- import "axios";
9
- import "path-to-regexp";
10
- const _hoisted_1 = ["href"];
11
- const _sfc_main = {
12
- props: {
13
- node: {
14
- type: void 0,
15
- default: null
16
- },
17
- componentName: {
18
- type: String
19
- }
20
- },
21
- setup(__props) {
22
- const props = __props;
23
- const routeDescription = ref({ path: "", hash: "" });
24
- const { node } = toRefs(props);
25
- const route = useRoute();
26
- const { isInternalReference } = useMethods();
27
- const { onReferenceCreated } = useBaseReference(node.value, route, routeDescription);
28
- onMounted(onReferenceCreated);
29
- return (_ctx, _cache) => {
30
- const _component_router_link = resolveComponent("router-link");
31
- return unref(isInternalReference)(unref(node)) ? (openBlock(), createBlock(_component_router_link, {
32
- key: 0,
33
- to: routeDescription.value
34
- }, {
35
- default: withCtx(() => [
36
- createTextVNode(" [" + toDisplayString(unref(node).textContent) + "] ", 1)
37
- ]),
38
- _: 1
39
- }, 8, ["to"])) : (openBlock(), createElementBlock("a", {
40
- key: 1,
41
- href: unref(node).getAttribute("refuri"),
42
- target: "_blank"
43
- }, " [" + toDisplayString(unref(node).textContent) + "] ", 9, _hoisted_1));
44
- };
45
- }
46
- };
47
- export { _sfc_main as default };
48
- //# sourceMappingURL=FootnoteReference.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"FootnoteReference.js","sources":["../src/components/templates/FootnoteReference.vue"],"sourcesContent":["<template>\n <router-link v-if=\"isInternalReference(node)\" :to=\"routeDescription\">\n [{{ node.textContent }}]\n </router-link>\n <a v-else :href=\"node.getAttribute('refuri')\" target=\"_blank\">\n [{{ node.textContent }}]\n </a>\n</template>\n\n<script setup>\nimport { onMounted, toRefs, ref } from 'vue'\nimport { useRoute } from 'vue-router'\n\nimport { useMethods } from '../../composables/methods'\nimport { useBaseReference } from '../../composables/basereference'\n\nconst props = defineProps({\n node: {\n type: undefined,\n default: null,\n },\n componentName: {\n type: String,\n },\n})\n\nconst routeDescription = ref({path: '', hash: ''})\nconst { node } = toRefs(props)\nconst route = useRoute()\n\nconst { isInternalReference } = useMethods()\nconst { onReferenceCreated } = useBaseReference(node.value, route, routeDescription)\n\nonMounted(onReferenceCreated)\n\n</script>\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AA0BA,UAAM,mBAAmB,IAAI,EAAC,MAAM,IAAI,MAAM,GAAE,CAAC;AACjD,UAAM,EAAE,SAAS,OAAO,KAAK;AAC7B,UAAM,QAAQ,SAAU;AAExB,UAAM,EAAE,wBAAwB,WAAY;AAC5C,UAAM,EAAE,uBAAuB,iBAAiB,KAAK,OAAO,OAAO,gBAAgB;AAEnF,cAAU,kBAAkB;;;;;;;;;;;;;;;;;;;;"}
package/dist/Image.js DELETED
@@ -1,52 +0,0 @@
1
- import { toRefs, ref, computed, openBlock, createElementBlock, normalizeProps, guardReactiveProps } from "vue";
2
- import { useRoute } from "vue-router";
3
- import { a as useChildren, b as useSphinxStore, d as determineRouteUrl } from "./entry.js";
4
- import { u as useMethods } from "./methods.js";
5
- import "@hsorby/vue3-katex";
6
- import "katex/dist/katex.min.css";
7
- import "axios";
8
- import "path-to-regexp";
9
- const _sfc_main = {
10
- props: {
11
- node: {
12
- type: void 0,
13
- default: null
14
- },
15
- componentName: {
16
- type: String
17
- },
18
- properties: {
19
- type: Object
20
- }
21
- },
22
- setup(__props) {
23
- const props = __props;
24
- const { node } = toRefs(props);
25
- useChildren(node);
26
- const { dataObject } = useMethods();
27
- const route = useRoute();
28
- const sphinxStore = useSphinxStore();
29
- const attrs = ref({});
30
- const uri = computed(() => {
31
- let imageURI = node.value.getAttribute("uri");
32
- if (imageURI && !imageURI.startsWith("/") && !imageURI.startsWith("http")) {
33
- const routeURL = determineRouteUrl(route);
34
- const lastIndex = imageURI.lastIndexOf("/");
35
- const imageName = imageURI.slice(lastIndex);
36
- imageURI = [sphinxStore.getImagesURL(routeURL), imageName].join("/");
37
- }
38
- return imageURI;
39
- });
40
- attrs.value = dataObject(node.value).attrs;
41
- if (attrs.value) {
42
- attrs.value.src = uri;
43
- } else {
44
- attrs.value = { src: uri };
45
- }
46
- return (_ctx, _cache) => {
47
- return openBlock(), createElementBlock("img", normalizeProps(guardReactiveProps(attrs.value)), null, 16);
48
- };
49
- }
50
- };
51
- export { _sfc_main as default };
52
- //# sourceMappingURL=Image.js.map
package/dist/Image.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"Image.js","sources":["../src/components/templates/Image.vue"],"sourcesContent":["<template>\n <img :=\"attrs\" />\n</template>\n\n<script setup>\nimport { computed, toRefs, ref } from 'vue'\nimport { useRoute } from 'vue-router'\nimport { useSphinxStore } from '@/stores/sphinx'\n\nimport { useMethods } from '../../composables/methods'\nimport { useChildren } from '../../composables/computed'\nimport { determineRouteUrl } from '../../js/utilities'\n\nconst props = defineProps({\n node: {\n type: undefined,\n default: null,\n },\n componentName: {\n type: String,\n },\n properties: {\n type: Object,\n },\n})\n\nconst { node } = toRefs(props)\nconst { children } = useChildren(node)\nconst { dataObject } = useMethods()\nconst route = useRoute()\nconst sphinxStore = useSphinxStore()\nconst attrs = ref({})\n\nconst uri = computed(() => {\n let imageURI = node.value.getAttribute('uri')\n if (imageURI && !imageURI.startsWith('/') && !imageURI.startsWith('http')) {\n const routeURL = determineRouteUrl(route)\n // Sphinx puts all images in a directory '_images' by default\n // for HTML output. We are saying here that we will map the\n // XML image reference the same way.\n const lastIndex = imageURI.lastIndexOf('/')\n const imageName = imageURI.slice(lastIndex)\n // imageURI = `${this.$store.sphinx.getImagesURL(routeURL)}${imageName}`\n imageURI = [sphinxStore.getImagesURL(routeURL), imageName].join('/')\n }\n return imageURI\n})\n\nattrs.value = dataObject(node.value).attrs\nif (attrs.value) {\n attrs.value.src = uri\n} else {\n attrs.value = { src: uri }\n}\n</script>\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AA0BA,UAAM,EAAE,SAAS,OAAO,KAAK;AACR,gBAAY,IAAI;AACrC,UAAM,EAAE,eAAe,WAAY;AACnC,UAAM,QAAQ,SAAU;AACxB,UAAM,cAAc,eAAgB;AACpC,UAAM,QAAQ,IAAI,EAAE;AAEpB,UAAM,MAAM,SAAS,MAAM;AACzB,UAAI,WAAW,KAAK,MAAM,aAAa,KAAK;AAC5C,UAAI,YAAY,CAAC,SAAS,WAAW,GAAG,KAAK,CAAC,SAAS,WAAW,MAAM,GAAG;AACzE,cAAM,WAAW,kBAAkB,KAAK;AAIxC,cAAM,YAAY,SAAS,YAAY,GAAG;AAC1C,cAAM,YAAY,SAAS,MAAM,SAAS;AAE1C,mBAAW,CAAC,YAAY,aAAa,QAAQ,GAAG,SAAS,EAAE,KAAK,GAAG;AAAA,MACpE;AACD,aAAO;AAAA,IACT,CAAC;AAED,UAAM,QAAQ,WAAW,KAAK,KAAK,EAAE;AACrC,QAAI,MAAM,OAAO;AACf,YAAM,MAAM,MAAM;AAAA,IACpB,OAAO;AACL,YAAM,QAAQ,EAAE,KAAK,IAAK;AAAA,IAC5B;;;;;;;"}
package/dist/Legend.js DELETED
@@ -1,44 +0,0 @@
1
- import { toRefs, openBlock, createElementBlock, normalizeClass, unref, Fragment, renderList, createBlock, resolveDynamicComponent } from "vue";
2
- import { a as useChildren, u as useClasses } from "./entry.js";
3
- import "@hsorby/vue3-katex";
4
- import "katex/dist/katex.min.css";
5
- import "vue-router";
6
- import "axios";
7
- import "path-to-regexp";
8
- const _sfc_main = {
9
- props: {
10
- node: {
11
- type: void 0,
12
- default: null
13
- },
14
- componentName: {
15
- type: String
16
- },
17
- properties: {
18
- type: Object
19
- }
20
- },
21
- setup(__props) {
22
- const props = __props;
23
- console.log("***** IN USE *****");
24
- const { node } = toRefs(props);
25
- const { children } = useChildren(node);
26
- const { classes } = useClasses(node);
27
- return (_ctx, _cache) => {
28
- return openBlock(), createElementBlock("div", {
29
- class: normalizeClass(unref(classes))
30
- }, [
31
- (openBlock(true), createElementBlock(Fragment, null, renderList(unref(children), (c, index) => {
32
- return openBlock(), createBlock(resolveDynamicComponent(c.component), {
33
- key: "container_component_" + index,
34
- node: c.node,
35
- componentName: c.name,
36
- properties: c.properties
37
- }, null, 8, ["node", "componentName", "properties"]);
38
- }), 128))
39
- ], 2);
40
- };
41
- }
42
- };
43
- export { _sfc_main as default };
44
- //# sourceMappingURL=Legend.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Legend.js","sources":["../src/components/templates/Legend.vue"],"sourcesContent":["<template>\n <div :class=\"classes\">\n <component\n v-for=\"(c, index) in children\"\n :key=\"'container_component_' + index\"\n :is=\"c.component\"\n :node=\"c.node\"\n :componentName=\"c.name\"\n :properties=\"c.properties\"\n />\n </div>\n</template>\n\n<script setup>\nimport { toRefs } from 'vue'\n\nimport { useChildren, useClasses } from '../../composables/computed'\n\nconsole.log('***** IN USE *****')\nconst props = defineProps({\n node: {\n type: undefined,\n default: null,\n },\n componentName: {\n type: String,\n },\n properties: {\n type: Object,\n },\n})\n\nconst { node } = toRefs(props)\n\nconst { children } = useChildren(node)\nconst { classes } = useClasses(node)\n</script>\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAkBA,YAAQ,IAAI,oBAAoB;AAchC,UAAM,EAAE,SAAS,OAAO,KAAK;AAE7B,UAAM,EAAE,aAAa,YAAY,IAAI;AACrC,UAAM,EAAE,YAAY,WAAW,IAAI;;;;;;;;;;;;;;;;;;"}
package/dist/LineBlock.js DELETED
@@ -1,44 +0,0 @@
1
- import { toRefs, ref, openBlock, createElementBlock, normalizeProps, guardReactiveProps, Fragment, renderList, unref, createBlock, resolveDynamicComponent } from "vue";
2
- import { a as useChildren } from "./entry.js";
3
- import { u as useMethods } from "./methods.js";
4
- import "@hsorby/vue3-katex";
5
- import "katex/dist/katex.min.css";
6
- import "vue-router";
7
- import "axios";
8
- import "path-to-regexp";
9
- const _sfc_main = {
10
- props: {
11
- node: {
12
- type: void 0,
13
- default: null
14
- },
15
- componentName: {
16
- type: String
17
- },
18
- properties: {
19
- type: Object
20
- }
21
- },
22
- setup(__props) {
23
- const props = __props;
24
- const { dataObject } = useMethods();
25
- const { node } = toRefs(props);
26
- const attrs = ref({});
27
- const { children } = useChildren(node);
28
- attrs.value = dataObject(node.value, ["line_block"]).attrs;
29
- return (_ctx, _cache) => {
30
- return openBlock(), createElementBlock("div", normalizeProps(guardReactiveProps(attrs.value)), [
31
- (openBlock(true), createElementBlock(Fragment, null, renderList(unref(children), (c, index) => {
32
- return openBlock(), createBlock(resolveDynamicComponent(c.component), {
33
- key: "section_component_" + index,
34
- node: c.node,
35
- componentName: c.name,
36
- properties: c.properties
37
- }, null, 8, ["node", "componentName", "properties"]);
38
- }), 128))
39
- ], 16);
40
- };
41
- }
42
- };
43
- export { _sfc_main as default };
44
- //# sourceMappingURL=LineBlock.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"LineBlock.js","sources":["../src/components/templates/LineBlock.vue"],"sourcesContent":["<template>\n <div :=\"attrs\">\n <component\n v-for=\"(c, index) in children\"\n :key=\"'section_component_' + index\"\n :is=\"c.component\"\n :node=\"c.node\"\n :componentName=\"c.name\"\n :properties=\"c.properties\"\n />\n </div>\n</template>\n\n<script setup>\nimport { toRefs, ref } from 'vue'\n\nimport { useChildren } from '../../composables/computed'\nimport { useMethods } from '../../composables/methods'\n\nconst props = defineProps({\n node: {\n type: undefined,\n default: null,\n },\n componentName: {\n type: String,\n },\n properties: {\n type: Object,\n },\n})\n\nconst { dataObject } = useMethods()\nconst { node } = toRefs(props)\nconst attrs = ref({})\n\nconst { children } = useChildren(node)\nattrs.value = dataObject(node.value, ['line_block']).attrs\n</script>\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAgCA,UAAM,EAAE,eAAe,WAAY;AACnC,UAAM,EAAE,SAAS,OAAO,KAAK;AAC7B,UAAM,QAAQ,IAAI,EAAE;AAEpB,UAAM,EAAE,aAAa,YAAY,IAAI;AACrC,UAAM,QAAQ,WAAW,KAAK,OAAO,CAAC,YAAY,CAAC,EAAE;;;;;;;;;;;;;;;;"}
@@ -1,45 +0,0 @@
1
- import { toRefs, ref, openBlock, createElementBlock, normalizeProps, guardReactiveProps, Fragment, renderList, unref, createBlock, resolveDynamicComponent } from "vue";
2
- import { u as useMethods } from "./methods.js";
3
- import { a as useChildren } from "./entry.js";
4
- import "@hsorby/vue3-katex";
5
- import "katex/dist/katex.min.css";
6
- import "vue-router";
7
- import "axios";
8
- import "path-to-regexp";
9
- const _sfc_main = {
10
- props: {
11
- node: {
12
- type: void 0,
13
- default: null
14
- },
15
- componentName: {
16
- type: String
17
- },
18
- properties: {
19
- type: Object
20
- }
21
- },
22
- setup(__props) {
23
- const props = __props;
24
- console.log("***** IN USE *****");
25
- const { node } = toRefs(props);
26
- const { children } = useChildren(node);
27
- const { dataObject } = useMethods();
28
- const attrs = ref({});
29
- attrs.value = dataObject(node.value, ["line_single"]).attrs;
30
- return (_ctx, _cache) => {
31
- return openBlock(), createElementBlock("div", normalizeProps(guardReactiveProps(attrs.value)), [
32
- (openBlock(true), createElementBlock(Fragment, null, renderList(unref(children), (c, index) => {
33
- return openBlock(), createBlock(resolveDynamicComponent(c.component), {
34
- key: "footnote_component_" + index,
35
- node: c.node,
36
- componentName: c.name,
37
- properties: c.properties
38
- }, null, 8, ["node", "componentName", "properties"]);
39
- }), 128))
40
- ], 16);
41
- };
42
- }
43
- };
44
- export { _sfc_main as default };
45
- //# sourceMappingURL=LineSingle.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"LineSingle.js","sources":["../src/components/templates/LineSingle.vue"],"sourcesContent":["<template>\n <div :=\"attrs\">\n <component\n v-for=\"(c, index) in children\"\n :key=\"'footnote_component_' + index\"\n :is=\"c.component\"\n :node=\"c.node\"\n :componentName=\"c.name\"\n :properties=\"c.properties\"\n />\n </div>\n</template>\n\n<script setup>\nimport { toRefs, ref } from 'vue'\n\nimport { useMethods } from '../../composables/methods'\nimport { useChildren } from '../../composables/computed'\n\nconsole.log('***** IN USE *****')\n\nconst props = defineProps({\n node: {\n type: undefined,\n default: null,\n },\n componentName: {\n type: String,\n },\n properties: {\n type: Object,\n },\n})\n\nconst { node } = toRefs(props)\nconst { children } = useChildren(node)\nconst { dataObject } = useMethods()\nconst attrs = ref({})\n\nattrs.value = dataObject(node.value, ['line_single']).attrs\n</script>\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAmBA,YAAQ,IAAI,oBAAoB;AAehC,UAAM,EAAE,SAAS,OAAO,KAAK;AAC7B,UAAM,EAAE,aAAa,YAAY,IAAI;AACrC,UAAM,EAAE,eAAe,WAAY;AACnC,UAAM,QAAQ,IAAI,EAAE;AAEpB,UAAM,QAAQ,WAAW,KAAK,OAAO,CAAC,aAAa,CAAC,EAAE;;;;;;;;;;;;;;;;"}
package/dist/Literal.js DELETED
@@ -1,63 +0,0 @@
1
- import { toRefs, ref, openBlock, createElementBlock, normalizeClass, createElementVNode, Fragment, renderList, unref, createBlock, resolveDynamicComponent } from "vue";
2
- import { u as useMethods } from "./methods.js";
3
- import { a as useChildren } from "./entry.js";
4
- import "@hsorby/vue3-katex";
5
- import "katex/dist/katex.min.css";
6
- import "vue-router";
7
- import "axios";
8
- import "path-to-regexp";
9
- const _hoisted_1 = { class: "pre" };
10
- const _sfc_main = {
11
- props: {
12
- node: {
13
- type: void 0,
14
- default: null
15
- },
16
- componentName: {
17
- type: String
18
- },
19
- properties: {
20
- type: Object
21
- }
22
- },
23
- setup(__props) {
24
- const props = __props;
25
- const { node } = toRefs(props);
26
- const { dataObject } = useMethods();
27
- const { children } = useChildren(node);
28
- const classes = ref(["literal", "notranslate"]);
29
- const v = dataObject(node.value);
30
- const isEmpty = (d) => {
31
- for (const i in d) {
32
- if (d[i].language === "") {
33
- continue;
34
- }
35
- return false;
36
- }
37
- return true;
38
- };
39
- if (!isEmpty(v)) {
40
- if (v.attrs && v.attrs.role) {
41
- classes.value.push(v.attrs.role);
42
- }
43
- }
44
- return (_ctx, _cache) => {
45
- return openBlock(), createElementBlock("code", {
46
- class: normalizeClass(classes.value)
47
- }, [
48
- createElementVNode("span", _hoisted_1, [
49
- (openBlock(true), createElementBlock(Fragment, null, renderList(unref(children), (c, index) => {
50
- return openBlock(), createBlock(resolveDynamicComponent(c.component), {
51
- key: "code_component_" + index,
52
- node: c.node,
53
- componentName: c.name,
54
- properties: c.properties
55
- }, null, 8, ["node", "componentName", "properties"]);
56
- }), 128))
57
- ])
58
- ], 2);
59
- };
60
- }
61
- };
62
- export { _sfc_main as default };
63
- //# sourceMappingURL=Literal.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Literal.js","sources":["../src/components/templates/Literal.vue"],"sourcesContent":["<template>\n <code :class=\"classes\">\n <span class=\"pre\">\n <component\n v-for=\"(c, index) in children\"\n :key=\"'code_component_' + index\"\n :is=\"c.component\"\n :node=\"c.node\"\n :componentName=\"c.name\"\n :properties=\"c.properties\"\n />\n </span>\n </code>\n</template>\n\n<script setup>\nimport { toRefs, ref } from 'vue'\n\nimport { useMethods } from '../../composables/methods'\nimport { useChildren } from '../../composables/computed'\n\nconst props = defineProps({\n node: {\n type: undefined,\n default: null,\n },\n componentName: {\n type: String,\n },\n properties: {\n type: Object,\n },\n})\n\nconst { node } = toRefs(props)\n\nconst { dataObject } = useMethods()\n\nconst { children } = useChildren(node)\n\nconst classes = ref(['literal', 'notranslate'])\n\nconst v = dataObject(node.value)\nconst isEmpty = (d) => {\n for (const i in d) {\n if (d[i].language === '') {\n continue\n }\n return false\n }\n\n return true\n}\n\nif (!isEmpty(v)) {\n if (v.attrs && v.attrs.role) {\n classes.value.push(v.attrs.role)\n }\n}\n</script>\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAkCA,UAAM,EAAE,SAAS,OAAO,KAAK;AAE7B,UAAM,EAAE,eAAe,WAAY;AAEnC,UAAM,EAAE,aAAa,YAAY,IAAI;AAErC,UAAM,UAAU,IAAI,CAAC,WAAW,aAAa,CAAC;AAE9C,UAAM,IAAI,WAAW,KAAK,KAAK;AAC/B,UAAM,UAAU,CAAC,MAAM;AACrB,iBAAW,KAAK,GAAG;AACjB,YAAI,EAAE,GAAG,aAAa,IAAI;AACxB;AAAA,QACD;AACD,eAAO;AAAA,MACR;AAED,aAAO;AAAA,IACT;AAEA,QAAI,CAAC,QAAQ,CAAC,GAAG;AACf,UAAI,EAAE,SAAS,EAAE,MAAM,MAAM;AAC3B,gBAAQ,MAAM,KAAK,EAAE,MAAM,IAAI;AAAA,MAChC;AAAA,IACH;;;;;;;;;;;;;;;;;;;;"}
@@ -1,49 +0,0 @@
1
- import { toRefs, computed, resolveDirective, withDirectives, openBlock, createElementBlock, createElementVNode, normalizeClass, unref, toDisplayString } from "vue";
2
- import { e as decodeHTML } from "./entry.js";
3
- import "@hsorby/vue3-katex";
4
- import "katex/dist/katex.min.css";
5
- import "vue-router";
6
- import "axios";
7
- import "path-to-regexp";
8
- const _sfc_main = {
9
- props: {
10
- node: {
11
- type: void 0,
12
- default: null
13
- },
14
- componentName: {
15
- type: String
16
- },
17
- properties: {
18
- type: Object
19
- }
20
- },
21
- setup(__props) {
22
- const props = __props;
23
- const { node } = toRefs(props);
24
- const sourceLanguage = computed(() => {
25
- let language = node.value.getAttribute("language");
26
- if (language === "console" || language === "default") {
27
- language = "bash";
28
- } else if (language === "text") {
29
- language = "plaintext";
30
- }
31
- return language;
32
- });
33
- const sourceCode = computed(() => {
34
- return decodeHTML(node.value.innerHTML);
35
- });
36
- return (_ctx, _cache) => {
37
- const _directive_highlightjs = resolveDirective("highlightjs");
38
- return withDirectives((openBlock(), createElementBlock("pre", null, [
39
- createElementVNode("code", {
40
- class: normalizeClass(unref(sourceLanguage))
41
- }, toDisplayString(unref(sourceCode)), 3)
42
- ])), [
43
- [_directive_highlightjs]
44
- ]);
45
- };
46
- }
47
- };
48
- export { _sfc_main as default };
49
- //# sourceMappingURL=LiteralBlock.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"LiteralBlock.js","sources":["../src/components/templates/LiteralBlock.vue"],"sourcesContent":["<template>\n <pre v-highlightjs><code :class=\"sourceLanguage\">{{ sourceCode }}</code></pre>\n</template>\n\n<script setup>\nimport { computed, toRefs } from 'vue'\n\nimport { decodeHTML } from '../../js/utilities'\n\nconst props = defineProps({\n node: {\n type: undefined,\n default: null,\n },\n componentName: {\n type: String,\n },\n properties: {\n type: Object,\n },\n})\n\nconst { node } = toRefs(props)\n\nconst sourceLanguage = computed(() => {\n let language = node.value.getAttribute('language')\n if (language === 'console' || language === 'default') {\n language = 'bash'\n } else if (language === 'text') {\n language = 'plaintext'\n }\n return language\n})\n\nconst sourceCode = computed(() => {\n return decodeHTML(node.value.innerHTML)\n})\n</script>\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAsBA,UAAM,EAAE,SAAS,OAAO,KAAK;AAE7B,UAAM,iBAAiB,SAAS,MAAM;AACpC,UAAI,WAAW,KAAK,MAAM,aAAa,UAAU;AACjD,UAAI,aAAa,aAAa,aAAa,WAAW;AACpD,mBAAW;AAAA,MACf,WAAa,aAAa,QAAQ;AAC9B,mBAAW;AAAA,MACZ;AACD,aAAO;AAAA,IACT,CAAC;AAED,UAAM,aAAa,SAAS,MAAM;AAChC,aAAO,WAAW,KAAK,MAAM,SAAS;AAAA,IACxC,CAAC;;;;;;;;;;;;;;"}