valaxy 0.15.10 → 0.15.11-alpha.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.
Files changed (148) hide show
  1. package/bin/valaxy.cjs +1 -1
  2. package/bin/valaxy.mjs +1 -1
  3. package/client/.vite-ssg-temp/tbbjcbuyn2/CNAME +1 -0
  4. package/client/.vite-ssg-temp/tbbjcbuyn2/assets/PressAlgoliaSearch-2943719f.js +227 -0
  5. package/client/.vite-ssg-temp/tbbjcbuyn2/assets/ValaxyMain-26e77dc6.js +752 -0
  6. package/client/.vite-ssg-temp/tbbjcbuyn2/assets/_...all_-080f97f3.js +31 -0
  7. package/client/.vite-ssg-temp/tbbjcbuyn2/assets/_...all_-5084a1b0.js +42 -0
  8. package/client/.vite-ssg-temp/tbbjcbuyn2/assets/addon-f5fa83e1.js +172 -0
  9. package/client/.vite-ssg-temp/tbbjcbuyn2/assets/best-pratice-0231a551.js +1105 -0
  10. package/client/.vite-ssg-temp/tbbjcbuyn2/assets/client-496183a0.js +286 -0
  11. package/client/.vite-ssg-temp/tbbjcbuyn2/assets/community-1b33ec3b.js +627 -0
  12. package/client/.vite-ssg-temp/tbbjcbuyn2/assets/components-7000ddd3.js +2460 -0
  13. package/client/.vite-ssg-temp/tbbjcbuyn2/assets/deploy-59948619.js +1071 -0
  14. package/client/.vite-ssg-temp/tbbjcbuyn2/assets/docs-26abd7f8.js +490 -0
  15. package/client/.vite-ssg-temp/tbbjcbuyn2/assets/extend-975f8f72.js +1851 -0
  16. package/client/.vite-ssg-temp/tbbjcbuyn2/assets/extend-acd7107b.js +1444 -0
  17. package/client/.vite-ssg-temp/tbbjcbuyn2/assets/faq-62ed7bfd.js +321 -0
  18. package/client/.vite-ssg-temp/tbbjcbuyn2/assets/features-8acbd53d.js +2625 -0
  19. package/client/.vite-ssg-temp/tbbjcbuyn2/assets/gallery-832227a9.js +244 -0
  20. package/client/.vite-ssg-temp/tbbjcbuyn2/assets/gallery-9077df38.js +370 -0
  21. package/client/.vite-ssg-temp/tbbjcbuyn2/assets/getting-started-52c30f03.js +3684 -0
  22. package/client/.vite-ssg-temp/tbbjcbuyn2/assets/hexo-7311896e.js +969 -0
  23. package/client/.vite-ssg-temp/tbbjcbuyn2/assets/hooks-67450cb3.js +517 -0
  24. package/client/.vite-ssg-temp/tbbjcbuyn2/assets/i18n-4cd1bb86.js +4159 -0
  25. package/client/.vite-ssg-temp/tbbjcbuyn2/assets/i18n-e1165bc4.js +676 -0
  26. package/client/.vite-ssg-temp/tbbjcbuyn2/assets/index-002f83fb.js +768 -0
  27. package/client/.vite-ssg-temp/tbbjcbuyn2/assets/index-3dec2b83.js +527 -0
  28. package/client/.vite-ssg-temp/tbbjcbuyn2/assets/index-43565e48.js +424 -0
  29. package/client/.vite-ssg-temp/tbbjcbuyn2/assets/index-5f07432e.js +563 -0
  30. package/client/.vite-ssg-temp/tbbjcbuyn2/assets/index-6024f010.js +3294 -0
  31. package/client/.vite-ssg-temp/tbbjcbuyn2/assets/index-6f0d6ec7.js +202 -0
  32. package/client/.vite-ssg-temp/tbbjcbuyn2/assets/index-78c510e0.js +549 -0
  33. package/client/.vite-ssg-temp/tbbjcbuyn2/assets/index-839c338e.js +4161 -0
  34. package/client/.vite-ssg-temp/tbbjcbuyn2/assets/index-d39a48fd.js +1170 -0
  35. package/client/.vite-ssg-temp/tbbjcbuyn2/assets/index-e633613c.js +1564 -0
  36. package/client/.vite-ssg-temp/tbbjcbuyn2/assets/katex-32f21e80.js +6119 -0
  37. package/client/.vite-ssg-temp/tbbjcbuyn2/assets/logo-bd69f816.js +180 -0
  38. package/client/.vite-ssg-temp/tbbjcbuyn2/assets/markdown-050f3269.js +5895 -0
  39. package/client/.vite-ssg-temp/tbbjcbuyn2/assets/news-ecba2d88.js +278 -0
  40. package/client/.vite-ssg-temp/tbbjcbuyn2/assets/page-d48f3caa.js +752 -0
  41. package/client/.vite-ssg-temp/tbbjcbuyn2/assets/post-ac89eaf5.js +1605 -0
  42. package/client/.vite-ssg-temp/tbbjcbuyn2/assets/route-block-c0a8bdd8.js +4 -0
  43. package/client/.vite-ssg-temp/tbbjcbuyn2/assets/schema-org-f60b7dac.js +477 -0
  44. package/client/.vite-ssg-temp/tbbjcbuyn2/assets/site-6caa6511.js +286 -0
  45. package/client/.vite-ssg-temp/tbbjcbuyn2/assets/style-f415f7fa.css +3742 -0
  46. package/client/.vite-ssg-temp/tbbjcbuyn2/assets/styles-cdaadad2.js +548 -0
  47. package/client/.vite-ssg-temp/tbbjcbuyn2/assets/templates-c97584f2.js +574 -0
  48. package/client/.vite-ssg-temp/tbbjcbuyn2/assets/theme-192f77ef.js +172 -0
  49. package/client/.vite-ssg-temp/tbbjcbuyn2/assets/use-3c036a47.js +669 -0
  50. package/client/.vite-ssg-temp/tbbjcbuyn2/assets/use-851c0307.js +619 -0
  51. package/client/.vite-ssg-temp/tbbjcbuyn2/assets/vite-vue-f91b9792.js +830 -0
  52. package/client/.vite-ssg-temp/tbbjcbuyn2/assets/vscode-bc411e64.js +350 -0
  53. package/client/.vite-ssg-temp/tbbjcbuyn2/assets/why-c98bbe8e.js +1131 -0
  54. package/client/.vite-ssg-temp/tbbjcbuyn2/assets/write-6a43d4d0.js +4963 -0
  55. package/client/.vite-ssg-temp/tbbjcbuyn2/assets/write-6bc2b77c.js +675 -0
  56. package/client/.vite-ssg-temp/tbbjcbuyn2/favicon.svg +33 -0
  57. package/client/.vite-ssg-temp/tbbjcbuyn2/main.mjs +6239 -0
  58. package/client/.vite-ssg-temp/tbbjcbuyn2/valaxy-logo.png +0 -0
  59. package/client/.vite-ssg-temp/vp12eb5cgm/CNAME +1 -0
  60. package/client/.vite-ssg-temp/vp12eb5cgm/assets/PressAlgoliaSearch-2943719f.js +227 -0
  61. package/client/.vite-ssg-temp/vp12eb5cgm/assets/ValaxyMain-26e77dc6.js +752 -0
  62. package/client/.vite-ssg-temp/vp12eb5cgm/assets/_...all_-080f97f3.js +31 -0
  63. package/client/.vite-ssg-temp/vp12eb5cgm/assets/_...all_-5084a1b0.js +42 -0
  64. package/client/.vite-ssg-temp/vp12eb5cgm/assets/addon-f5fa83e1.js +172 -0
  65. package/client/.vite-ssg-temp/vp12eb5cgm/assets/best-pratice-0231a551.js +1105 -0
  66. package/client/.vite-ssg-temp/vp12eb5cgm/assets/client-496183a0.js +286 -0
  67. package/client/.vite-ssg-temp/vp12eb5cgm/assets/community-1b33ec3b.js +627 -0
  68. package/client/.vite-ssg-temp/vp12eb5cgm/assets/components-7000ddd3.js +2460 -0
  69. package/client/.vite-ssg-temp/vp12eb5cgm/assets/deploy-59948619.js +1071 -0
  70. package/client/.vite-ssg-temp/vp12eb5cgm/assets/docs-26abd7f8.js +490 -0
  71. package/client/.vite-ssg-temp/vp12eb5cgm/assets/extend-975f8f72.js +1851 -0
  72. package/client/.vite-ssg-temp/vp12eb5cgm/assets/extend-acd7107b.js +1444 -0
  73. package/client/.vite-ssg-temp/vp12eb5cgm/assets/faq-62ed7bfd.js +321 -0
  74. package/client/.vite-ssg-temp/vp12eb5cgm/assets/features-8acbd53d.js +2625 -0
  75. package/client/.vite-ssg-temp/vp12eb5cgm/assets/gallery-832227a9.js +244 -0
  76. package/client/.vite-ssg-temp/vp12eb5cgm/assets/gallery-9077df38.js +370 -0
  77. package/client/.vite-ssg-temp/vp12eb5cgm/assets/getting-started-bb7fc0a8.js +3684 -0
  78. package/client/.vite-ssg-temp/vp12eb5cgm/assets/hexo-7311896e.js +969 -0
  79. package/client/.vite-ssg-temp/vp12eb5cgm/assets/hooks-67450cb3.js +517 -0
  80. package/client/.vite-ssg-temp/vp12eb5cgm/assets/i18n-4cd1bb86.js +4159 -0
  81. package/client/.vite-ssg-temp/vp12eb5cgm/assets/i18n-e1165bc4.js +676 -0
  82. package/client/.vite-ssg-temp/vp12eb5cgm/assets/index-002f83fb.js +768 -0
  83. package/client/.vite-ssg-temp/vp12eb5cgm/assets/index-3dec2b83.js +527 -0
  84. package/client/.vite-ssg-temp/vp12eb5cgm/assets/index-43565e48.js +424 -0
  85. package/client/.vite-ssg-temp/vp12eb5cgm/assets/index-5f07432e.js +563 -0
  86. package/client/.vite-ssg-temp/vp12eb5cgm/assets/index-6024f010.js +3294 -0
  87. package/client/.vite-ssg-temp/vp12eb5cgm/assets/index-6f0d6ec7.js +202 -0
  88. package/client/.vite-ssg-temp/vp12eb5cgm/assets/index-78c510e0.js +549 -0
  89. package/client/.vite-ssg-temp/vp12eb5cgm/assets/index-839c338e.js +4161 -0
  90. package/client/.vite-ssg-temp/vp12eb5cgm/assets/index-d39a48fd.js +1170 -0
  91. package/client/.vite-ssg-temp/vp12eb5cgm/assets/index-e633613c.js +1564 -0
  92. package/client/.vite-ssg-temp/vp12eb5cgm/assets/katex-32f21e80.js +6119 -0
  93. package/client/.vite-ssg-temp/vp12eb5cgm/assets/logo-bd69f816.js +180 -0
  94. package/client/.vite-ssg-temp/vp12eb5cgm/assets/markdown-abdb17ca.js +5895 -0
  95. package/client/.vite-ssg-temp/vp12eb5cgm/assets/news-ecba2d88.js +278 -0
  96. package/client/.vite-ssg-temp/vp12eb5cgm/assets/page-d48f3caa.js +752 -0
  97. package/client/.vite-ssg-temp/vp12eb5cgm/assets/post-0ed0dfec.js +1605 -0
  98. package/client/.vite-ssg-temp/vp12eb5cgm/assets/route-block-c0a8bdd8.js +4 -0
  99. package/client/.vite-ssg-temp/vp12eb5cgm/assets/schema-org-f60b7dac.js +477 -0
  100. package/client/.vite-ssg-temp/vp12eb5cgm/assets/site-6caa6511.js +286 -0
  101. package/client/.vite-ssg-temp/vp12eb5cgm/assets/style-f415f7fa.css +3742 -0
  102. package/client/.vite-ssg-temp/vp12eb5cgm/assets/styles-cdaadad2.js +548 -0
  103. package/client/.vite-ssg-temp/vp12eb5cgm/assets/templates-c97584f2.js +574 -0
  104. package/client/.vite-ssg-temp/vp12eb5cgm/assets/theme-192f77ef.js +172 -0
  105. package/client/.vite-ssg-temp/vp12eb5cgm/assets/use-3c036a47.js +669 -0
  106. package/client/.vite-ssg-temp/vp12eb5cgm/assets/use-851c0307.js +619 -0
  107. package/client/.vite-ssg-temp/vp12eb5cgm/assets/vite-vue-f91b9792.js +830 -0
  108. package/client/.vite-ssg-temp/vp12eb5cgm/assets/vscode-bc411e64.js +350 -0
  109. package/client/.vite-ssg-temp/vp12eb5cgm/assets/why-c98bbe8e.js +1131 -0
  110. package/client/.vite-ssg-temp/vp12eb5cgm/assets/write-6a43d4d0.js +4963 -0
  111. package/client/.vite-ssg-temp/vp12eb5cgm/assets/write-6bc2b77c.js +675 -0
  112. package/client/.vite-ssg-temp/vp12eb5cgm/favicon.svg +33 -0
  113. package/client/.vite-ssg-temp/vp12eb5cgm/main.mjs +6239 -0
  114. package/client/.vite-ssg-temp/vp12eb5cgm/valaxy-logo.png +0 -0
  115. package/client/App.vue +1 -1
  116. package/client/components/AppLink.vue +2 -2
  117. package/client/components/ValaxyMd.vue +1 -1
  118. package/client/components/ValaxyOverlay.vue +2 -2
  119. package/client/components/ValaxyPagination.vue +6 -6
  120. package/client/components/debug/ValaxyDevtools.vue +6 -0
  121. package/client/composables/dark.ts +39 -0
  122. package/client/layouts/404.vue +1 -1
  123. package/client/layouts/layout.vue +2 -2
  124. package/client/locales/zh-CN.yml +1 -1
  125. package/client/pages/[...all].vue +2 -0
  126. package/client/styles/common/transition.scss +1 -0
  127. package/client/styles/common/view-transition.css +21 -0
  128. package/dist/chunk-3EJGKTUH.mjs +130 -0
  129. package/dist/chunk-RDNVTVQ5.cjs +129 -0
  130. package/dist/{config-29a16f62.d.ts → config-e5704a2c.d.ts} +223 -1
  131. package/dist/node/cli/index.cjs +1 -0
  132. package/dist/node/cli/index.mjs +2 -0
  133. package/dist/node/index.cjs +1 -1
  134. package/dist/node/index.d.cts +14 -2
  135. package/dist/node/index.d.ts +14 -2
  136. package/dist/node/index.mjs +1 -1
  137. package/dist/types/index.d.cts +3 -220
  138. package/dist/types/index.d.ts +3 -220
  139. package/dist/types/index.mjs +1 -1
  140. package/package.json +19 -18
  141. package/types/config.ts +6 -0
  142. package/LICENSE +0 -21
  143. package/dist/chunk-2EVEFEO4.mjs +0 -130
  144. package/dist/chunk-BYK2L2MY.cjs +0 -129
  145. package/dist/node/cli.cjs +0 -1
  146. package/dist/node/cli.mjs +0 -2
  147. /package/dist/node/{cli.d.cts → cli/index.d.cts} +0 -0
  148. /package/dist/node/{cli.d.ts → cli/index.d.ts} +0 -0
@@ -0,0 +1,3294 @@
1
+ import { _ as _export_sfc, a as _sfc_main$1 } from "../main.mjs";
2
+ import { _ as __unplugin_components_0 } from "./ValaxyMain-26e77dc6.js";
3
+ import { provide, mergeProps, withCtx, createTextVNode, createVNode, renderSlot, useSSRContext } from "vue";
4
+ import { useRoute } from "vue-router";
5
+ import { ssrRenderComponent, ssrRenderStyle, ssrRenderSlot } from "vue/server-renderer";
6
+ import "vite-ssg";
7
+ import "pinia";
8
+ import "@vueuse/core";
9
+ import "dayjs";
10
+ import "dayjs/plugin/utc.js";
11
+ import "dayjs/plugin/timezone.js";
12
+ import "dayjs/locale/zh-cn.js";
13
+ import "body-scroll-lock";
14
+ import "@intlify/shared";
15
+ import "@intlify/core-base";
16
+ import "@vue/devtools-api";
17
+ import "@unhead/schema-org";
18
+ import "@unhead/vue";
19
+ import "dayjs/plugin/relativeTime.js";
20
+ import "defu";
21
+ import "nprogress";
22
+ import "medium-zoom";
23
+ import "vanilla-lazyload";
24
+ const __pageData = JSON.parse('{"title":"Third Party","description":"","frontmatter":{"title":"Third Party","title_zh-CN":"第三方集成","categories":["third"],"end":false,"top":99},"headers":[{"level":2,"title":"搜索","slug":"搜索","link":"#搜索","children":[]},{"level":2,"title":"Search","slug":"search","link":"#search","children":[{"level":3,"title":"本地搜索(基于 fuse.js)","slug":"本地搜索-基于-fuse-js","link":"#本地搜索-基于-fuse-js","children":[]},{"level":3,"title":"Local Search (Based on fuse.js)","slug":"local-search-based-on-fuse-js","link":"#local-search-based-on-fuse-js","children":[]},{"level":3,"title":"Algolia 搜索","slug":"algolia-搜索","link":"#algolia-搜索","children":[]},{"level":3,"title":"Algolia DocSearch","slug":"algolia-docsearch","link":"#algolia-docsearch","children":[]}]},{"level":2,"title":"图片预览(Medium Zoom)","slug":"图片预览-medium-zoom","link":"#图片预览-medium-zoom","children":[]},{"level":2,"title":"Image Preview (Medium Zoom)","slug":"image-preview-medium-zoom","link":"#image-preview-medium-zoom","children":[]},{"level":2,"title":"音乐播放器","slug":"音乐播放器","link":"#音乐播放器","children":[]},{"level":2,"title":"Music Player","slug":"music-player","link":"#music-player","children":[]},{"level":2,"title":"谷歌统计","slug":"谷歌统计","link":"#谷歌统计","children":[]},{"level":2,"title":"Google Statistics","slug":"google-statistics","link":"#google-statistics","children":[]}],"relativePath":"pages/guide/third-party/index.md","path":"C:\\\\Users\\\\me\\\\repos\\\\yyj\\\\valaxy\\\\docs\\\\pages\\\\guide\\\\third-party\\\\index.md","lastUpdated":1697975166000}');
25
+ const data = JSON.parse('{"title":"Third Party","description":"","frontmatter":{"title":"Third Party","title_zh-CN":"第三方集成","categories":["third"],"end":false,"top":99},"headers":[{"level":2,"title":"搜索","slug":"搜索","link":"#搜索","children":[]},{"level":2,"title":"Search","slug":"search","link":"#search","children":[{"level":3,"title":"本地搜索(基于 fuse.js)","slug":"本地搜索-基于-fuse-js","link":"#本地搜索-基于-fuse-js","children":[]},{"level":3,"title":"Local Search (Based on fuse.js)","slug":"local-search-based-on-fuse-js","link":"#local-search-based-on-fuse-js","children":[]},{"level":3,"title":"Algolia 搜索","slug":"algolia-搜索","link":"#algolia-搜索","children":[]},{"level":3,"title":"Algolia DocSearch","slug":"algolia-docsearch","link":"#algolia-docsearch","children":[]}]},{"level":2,"title":"图片预览(Medium Zoom)","slug":"图片预览-medium-zoom","link":"#图片预览-medium-zoom","children":[]},{"level":2,"title":"Image Preview (Medium Zoom)","slug":"image-preview-medium-zoom","link":"#image-preview-medium-zoom","children":[]},{"level":2,"title":"音乐播放器","slug":"音乐播放器","link":"#音乐播放器","children":[]},{"level":2,"title":"Music Player","slug":"music-player","link":"#music-player","children":[]},{"level":2,"title":"谷歌统计","slug":"谷歌统计","link":"#谷歌统计","children":[]},{"level":2,"title":"Google Statistics","slug":"google-statistics","link":"#google-statistics","children":[]}],"relativePath":"pages/guide/third-party/index.md","path":"C:\\\\Users\\\\me\\\\repos\\\\yyj\\\\valaxy\\\\docs\\\\pages\\\\guide\\\\third-party\\\\index.md","lastUpdated":1697975166000}');
26
+ const _sfc_main = {
27
+ name: "pages/guide/third-party/index.md",
28
+ data() {
29
+ return { data, frontmatter: data.frontmatter, $frontmatter: data.frontmatter };
30
+ },
31
+ setup() {
32
+ const route = useRoute();
33
+ route.meta.frontmatter = Object.assign(route.meta.frontmatter, data.frontmatter);
34
+ provide("pageData", data);
35
+ }
36
+ };
37
+ function _sfc_ssrRender(_ctx, _push, _parent, _attrs, $props, $setup, $data, $options) {
38
+ const _component_ValaxyMain = __unplugin_components_0;
39
+ const _component_AppLink = _sfc_main$1;
40
+ _push(ssrRenderComponent(_component_ValaxyMain, mergeProps({
41
+ frontmatter: $data.frontmatter,
42
+ data: $data.data
43
+ }, _attrs), {
44
+ "main-content-md": withCtx((_, _push2, _parent2, _scopeId) => {
45
+ if (_push2) {
46
+ _push2(`<h2 lang="zh-CN" id="搜索" tabindex="-1"${_scopeId}>搜索 `);
47
+ _push2(ssrRenderComponent(_component_AppLink, {
48
+ class: "header-anchor",
49
+ href: "#搜索",
50
+ "aria-label": 'Permalink to "搜索 {lang="zh-CN"}"'
51
+ }, {
52
+ default: withCtx((_2, _push3, _parent3, _scopeId2) => {
53
+ if (_push3) {
54
+ _push3(`​`);
55
+ } else {
56
+ return [
57
+ createTextVNode("​")
58
+ ];
59
+ }
60
+ }),
61
+ _: 1
62
+ /* STABLE */
63
+ }, _parent2, _scopeId));
64
+ _push2(`</h2><h2 lang="en" id="search" tabindex="-1"${_scopeId}>Search `);
65
+ _push2(ssrRenderComponent(_component_AppLink, {
66
+ class: "header-anchor",
67
+ href: "#search",
68
+ "aria-label": 'Permalink to "Search {lang="en"}"'
69
+ }, {
70
+ default: withCtx((_2, _push3, _parent3, _scopeId2) => {
71
+ if (_push3) {
72
+ _push3(`​`);
73
+ } else {
74
+ return [
75
+ createTextVNode("​")
76
+ ];
77
+ }
78
+ }),
79
+ _: 1
80
+ /* STABLE */
81
+ }, _parent2, _scopeId));
82
+ _push2(`</h2><h3 lang="zh-CN" id="本地搜索-基于-fuse-js" tabindex="-1"${_scopeId}>本地搜索(基于 fuse.js) `);
83
+ _push2(ssrRenderComponent(_component_AppLink, {
84
+ class: "header-anchor",
85
+ href: "#本地搜索-基于-fuse-js",
86
+ "aria-label": 'Permalink to "本地搜索(基于 fuse.js) {lang="zh-CN"}"'
87
+ }, {
88
+ default: withCtx((_2, _push3, _parent3, _scopeId2) => {
89
+ if (_push3) {
90
+ _push3(`​`);
91
+ } else {
92
+ return [
93
+ createTextVNode("​")
94
+ ];
95
+ }
96
+ }),
97
+ _: 1
98
+ /* STABLE */
99
+ }, _parent2, _scopeId));
100
+ _push2(`</h3><h3 lang="en" id="local-search-based-on-fuse-js" tabindex="-1"${_scopeId}>Local Search (Based on fuse.js) `);
101
+ _push2(ssrRenderComponent(_component_AppLink, {
102
+ class: "header-anchor",
103
+ href: "#local-search-based-on-fuse-js",
104
+ "aria-label": 'Permalink to "Local Search (Based on fuse.js) {lang="en"}"'
105
+ }, {
106
+ default: withCtx((_2, _push3, _parent3, _scopeId2) => {
107
+ if (_push3) {
108
+ _push3(`​`);
109
+ } else {
110
+ return [
111
+ createTextVNode("​")
112
+ ];
113
+ }
114
+ }),
115
+ _: 1
116
+ /* STABLE */
117
+ }, _parent2, _scopeId));
118
+ _push2(`</h3><div lang="zh-CN"${_scopeId}><p${_scopeId}>Valaxy 内置了基于 `);
119
+ _push2(ssrRenderComponent(_component_AppLink, {
120
+ href: "https://fusejs.io/",
121
+ target: "_blank",
122
+ rel: "noreferrer"
123
+ }, {
124
+ default: withCtx((_2, _push3, _parent3, _scopeId2) => {
125
+ if (_push3) {
126
+ _push3(`fuse.js`);
127
+ } else {
128
+ return [
129
+ createTextVNode("fuse.js")
130
+ ];
131
+ }
132
+ }),
133
+ _: 1
134
+ /* STABLE */
135
+ }, _parent2, _scopeId));
136
+ _push2(` 的离线搜索(须预先通过 <code${_scopeId}>valaxy fuse</code> 构建生成本地缓存)。</p><blockquote${_scopeId}><p${_scopeId}><code${_scopeId}>valaxy fuse</code> 默认将 <code${_scopeId}>fuse</code> 生成在 <code${_scopeId}>public</code> 目录下,并在 <code${_scopeId}>.gitignore</code> 中添加 <code${_scopeId}>public/valaxy-fuse-list.json</code> 忽略。 请在 <code${_scopeId}>valaxy build</code> 之前使用 <code${_scopeId}>valaxy fuse</code> 构建。</p></blockquote><p${_scopeId}>如果你想要使用全文搜索,可参考 `);
137
+ _push2(ssrRenderComponent(_component_AppLink, {
138
+ href: "https://www.fusejs.io/api/options.html",
139
+ target: "_blank",
140
+ rel: "noreferrer"
141
+ }, {
142
+ default: withCtx((_2, _push3, _parent3, _scopeId2) => {
143
+ if (_push3) {
144
+ _push3(`Options | fuse.js`);
145
+ } else {
146
+ return [
147
+ createTextVNode("Options | fuse.js")
148
+ ];
149
+ }
150
+ }),
151
+ _: 1
152
+ /* STABLE */
153
+ }, _parent2, _scopeId));
154
+ _push2(` 进行设置。 譬如:</p><div class="language-ts"${_scopeId}><button title="Copy Code" class="copy"${_scopeId}></button><span class="lang"${_scopeId}>ts</span><pre class="shiki github-dark vp-code-dark"${_scopeId}><code${_scopeId}><span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#F97583" })}"${_scopeId}>export</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#F97583" })}"${_scopeId}>default</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#B392F0" })}"${_scopeId}>defineSiteConfig</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}>({</span></span>
155
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> search: {</span></span>
156
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> enable: </span><span style="${ssrRenderStyle({ "color": "#79B8FF" })}"${_scopeId}>true</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}>,</span></span>
157
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> type: </span><span style="${ssrRenderStyle({ "color": "#9ECBFF" })}"${_scopeId}>&#39;fuse&#39;</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}>,</span></span>
158
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> },</span></span>
159
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> fuse: {</span></span>
160
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> options: {</span></span>
161
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> keys: [</span><span style="${ssrRenderStyle({ "color": "#9ECBFF" })}"${_scopeId}>&#39;title&#39;</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}>, </span><span style="${ssrRenderStyle({ "color": "#9ECBFF" })}"${_scopeId}>&#39;tags&#39;</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}>, </span><span style="${ssrRenderStyle({ "color": "#9ECBFF" })}"${_scopeId}>&#39;categories&#39;</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}>, </span><span style="${ssrRenderStyle({ "color": "#9ECBFF" })}"${_scopeId}>&#39;excerpt&#39;</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}>, </span><span style="${ssrRenderStyle({ "color": "#9ECBFF" })}"${_scopeId}>&#39;content&#39;</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}>],</span></span>
162
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#6A737D" })}"${_scopeId}>/**</span></span>
163
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#6A737D" })}"${_scopeId}> * </span><span style="${ssrRenderStyle({ "color": "#F97583" })}"${_scopeId}>@default</span><span style="${ssrRenderStyle({ "color": "#6A737D" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}>0.6</span></span>
164
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#6A737D" })}"${_scopeId}> * </span><span style="${ssrRenderStyle({ "color": "#F97583" })}"${_scopeId}>@see</span><span style="${ssrRenderStyle({ "color": "#6A737D" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}>https://www.fusejs.io/api/options.html#threshold</span></span>
165
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#6A737D" })}"${_scopeId}> * 设置匹配阈值,越低越精确</span></span>
166
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#6A737D" })}"${_scopeId}> */</span></span>
167
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#6A737D" })}"${_scopeId}>// threshold: 0.6,</span></span>
168
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#6A737D" })}"${_scopeId}>/**</span></span>
169
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#6A737D" })}"${_scopeId}> * </span><span style="${ssrRenderStyle({ "color": "#F97583" })}"${_scopeId}>@default</span><span style="${ssrRenderStyle({ "color": "#6A737D" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}>false</span></span>
170
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#6A737D" })}"${_scopeId}> * </span><span style="${ssrRenderStyle({ "color": "#F97583" })}"${_scopeId}>@see</span><span style="${ssrRenderStyle({ "color": "#6A737D" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}>https://www.fusejs.io/api/options.html#ignoreLocation</span></span>
171
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#6A737D" })}"${_scopeId}> * 忽略位置</span></span>
172
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#6A737D" })}"${_scopeId}> * 这对于搜索文档全文内容有用,若无需全文搜索,则无需设置此项</span></span>
173
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#6A737D" })}"${_scopeId}> */</span></span>
174
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> ignoreLocation: </span><span style="${ssrRenderStyle({ "color": "#79B8FF" })}"${_scopeId}>true</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}>,</span></span>
175
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> },</span></span>
176
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> },</span></span>
177
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}>})</span></span></code></pre><pre class="shiki github-light vp-code-light"${_scopeId}><code${_scopeId}><span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#D73A49" })}"${_scopeId}>export</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#D73A49" })}"${_scopeId}>default</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#6F42C1" })}"${_scopeId}>defineSiteConfig</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}>({</span></span>
178
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> search: {</span></span>
179
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> enable: </span><span style="${ssrRenderStyle({ "color": "#005CC5" })}"${_scopeId}>true</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}>,</span></span>
180
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> type: </span><span style="${ssrRenderStyle({ "color": "#032F62" })}"${_scopeId}>&#39;fuse&#39;</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}>,</span></span>
181
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> },</span></span>
182
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> fuse: {</span></span>
183
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> options: {</span></span>
184
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> keys: [</span><span style="${ssrRenderStyle({ "color": "#032F62" })}"${_scopeId}>&#39;title&#39;</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}>, </span><span style="${ssrRenderStyle({ "color": "#032F62" })}"${_scopeId}>&#39;tags&#39;</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}>, </span><span style="${ssrRenderStyle({ "color": "#032F62" })}"${_scopeId}>&#39;categories&#39;</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}>, </span><span style="${ssrRenderStyle({ "color": "#032F62" })}"${_scopeId}>&#39;excerpt&#39;</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}>, </span><span style="${ssrRenderStyle({ "color": "#032F62" })}"${_scopeId}>&#39;content&#39;</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}>],</span></span>
185
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#6A737D" })}"${_scopeId}>/**</span></span>
186
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#6A737D" })}"${_scopeId}> * </span><span style="${ssrRenderStyle({ "color": "#D73A49" })}"${_scopeId}>@default</span><span style="${ssrRenderStyle({ "color": "#6A737D" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}>0.6</span></span>
187
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#6A737D" })}"${_scopeId}> * </span><span style="${ssrRenderStyle({ "color": "#D73A49" })}"${_scopeId}>@see</span><span style="${ssrRenderStyle({ "color": "#6A737D" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}>https://www.fusejs.io/api/options.html#threshold</span></span>
188
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#6A737D" })}"${_scopeId}> * 设置匹配阈值,越低越精确</span></span>
189
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#6A737D" })}"${_scopeId}> */</span></span>
190
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#6A737D" })}"${_scopeId}>// threshold: 0.6,</span></span>
191
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#6A737D" })}"${_scopeId}>/**</span></span>
192
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#6A737D" })}"${_scopeId}> * </span><span style="${ssrRenderStyle({ "color": "#D73A49" })}"${_scopeId}>@default</span><span style="${ssrRenderStyle({ "color": "#6A737D" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}>false</span></span>
193
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#6A737D" })}"${_scopeId}> * </span><span style="${ssrRenderStyle({ "color": "#D73A49" })}"${_scopeId}>@see</span><span style="${ssrRenderStyle({ "color": "#6A737D" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}>https://www.fusejs.io/api/options.html#ignoreLocation</span></span>
194
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#6A737D" })}"${_scopeId}> * 忽略位置</span></span>
195
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#6A737D" })}"${_scopeId}> * 这对于搜索文档全文内容有用,若无需全文搜索,则无需设置此项</span></span>
196
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#6A737D" })}"${_scopeId}> */</span></span>
197
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> ignoreLocation: </span><span style="${ssrRenderStyle({ "color": "#005CC5" })}"${_scopeId}>true</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}>,</span></span>
198
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> },</span></span>
199
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> },</span></span>
200
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}>})</span></span></code></pre></div></div><div lang="en"${_scopeId}><p${_scopeId}>Valaxy has built-in local search based on `);
201
+ _push2(ssrRenderComponent(_component_AppLink, {
202
+ href: "https://fusejs.io/",
203
+ target: "_blank",
204
+ rel: "noreferrer"
205
+ }, {
206
+ default: withCtx((_2, _push3, _parent3, _scopeId2) => {
207
+ if (_push3) {
208
+ _push3(`fuse.js`);
209
+ } else {
210
+ return [
211
+ createTextVNode("fuse.js")
212
+ ];
213
+ }
214
+ }),
215
+ _: 1
216
+ /* STABLE */
217
+ }, _parent2, _scopeId));
218
+ _push2(`. The local cache should be generated in advance via <code${_scopeId}>valaxy fuse</code>.</p><blockquote${_scopeId}><p${_scopeId}><code${_scopeId}>valaxy fuse</code> generates <code${_scopeId}>fuse</code> in the <code${_scopeId}>public</code> directory by default. Please use <code${_scopeId}>valaxy fuse</code> before <code${_scopeId}>valaxy build</code>.</p></blockquote></div><h4 lang="zh-CN" id="使用" tabindex="-1"${_scopeId}>使用 `);
219
+ _push2(ssrRenderComponent(_component_AppLink, {
220
+ class: "header-anchor",
221
+ href: "#使用",
222
+ "aria-label": 'Permalink to "使用 {lang="zh-CN"}"'
223
+ }, {
224
+ default: withCtx((_2, _push3, _parent3, _scopeId2) => {
225
+ if (_push3) {
226
+ _push3(`​`);
227
+ } else {
228
+ return [
229
+ createTextVNode("​")
230
+ ];
231
+ }
232
+ }),
233
+ _: 1
234
+ /* STABLE */
235
+ }, _parent2, _scopeId));
236
+ _push2(`</h4><h4 lang="en" id="setup" tabindex="-1"${_scopeId}>Setup `);
237
+ _push2(ssrRenderComponent(_component_AppLink, {
238
+ class: "header-anchor",
239
+ href: "#setup",
240
+ "aria-label": 'Permalink to "Setup {lang="en"}"'
241
+ }, {
242
+ default: withCtx((_2, _push3, _parent3, _scopeId2) => {
243
+ if (_push3) {
244
+ _push3(`​`);
245
+ } else {
246
+ return [
247
+ createTextVNode("​")
248
+ ];
249
+ }
250
+ }),
251
+ _: 1
252
+ /* STABLE */
253
+ }, _parent2, _scopeId));
254
+ _push2(`</h4><div lang="zh-CN"${_scopeId}><div class="language-ts"${_scopeId}><button title="Copy Code" class="copy"${_scopeId}></button><span class="lang"${_scopeId}>ts</span><pre class="shiki github-dark vp-code-dark"${_scopeId}><code${_scopeId}><span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#6A737D" })}"${_scopeId}>// site.config.ts</span></span>
255
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#F97583" })}"${_scopeId}>import</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> { defineSiteConfig } </span><span style="${ssrRenderStyle({ "color": "#F97583" })}"${_scopeId}>from</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#9ECBFF" })}"${_scopeId}>&#39;valaxy&#39;</span></span>
256
+ <span class="line"${_scopeId}></span>
257
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#F97583" })}"${_scopeId}>export</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#F97583" })}"${_scopeId}>default</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#B392F0" })}"${_scopeId}>defineSiteConfig</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}>({</span></span>
258
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> search: {</span></span>
259
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> enable: </span><span style="${ssrRenderStyle({ "color": "#79B8FF" })}"${_scopeId}>true</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}>,</span></span>
260
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#6A737D" })}"${_scopeId}>// 设置类型为 Fuse</span></span>
261
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> type: </span><span style="${ssrRenderStyle({ "color": "#9ECBFF" })}"${_scopeId}>&#39;fuse&#39;</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}>,</span></span>
262
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> },</span></span>
263
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}>})</span></span></code></pre><pre class="shiki github-light vp-code-light"${_scopeId}><code${_scopeId}><span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#6A737D" })}"${_scopeId}>// site.config.ts</span></span>
264
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#D73A49" })}"${_scopeId}>import</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> { defineSiteConfig } </span><span style="${ssrRenderStyle({ "color": "#D73A49" })}"${_scopeId}>from</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#032F62" })}"${_scopeId}>&#39;valaxy&#39;</span></span>
265
+ <span class="line"${_scopeId}></span>
266
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#D73A49" })}"${_scopeId}>export</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#D73A49" })}"${_scopeId}>default</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#6F42C1" })}"${_scopeId}>defineSiteConfig</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}>({</span></span>
267
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> search: {</span></span>
268
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> enable: </span><span style="${ssrRenderStyle({ "color": "#005CC5" })}"${_scopeId}>true</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}>,</span></span>
269
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#6A737D" })}"${_scopeId}>// 设置类型为 Fuse</span></span>
270
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> type: </span><span style="${ssrRenderStyle({ "color": "#032F62" })}"${_scopeId}>&#39;fuse&#39;</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}>,</span></span>
271
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> },</span></span>
272
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}>})</span></span></code></pre></div><ul${_scopeId}><li${_scopeId}>在你的 <code${_scopeId}>package.json</code> 中添加 fuse 生成脚本</li></ul></div><div lang="en"${_scopeId}><div class="language-ts"${_scopeId}><button title="Copy Code" class="copy"${_scopeId}></button><span class="lang"${_scopeId}>ts</span><pre class="shiki github-dark has-highlighted-lines vp-code-dark"${_scopeId}><code${_scopeId}><span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#6A737D" })}"${_scopeId}>// site.config.ts</span></span>
273
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#F97583" })}"${_scopeId}>import</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> { defineSiteConfig } </span><span style="${ssrRenderStyle({ "color": "#F97583" })}"${_scopeId}>from</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#9ECBFF" })}"${_scopeId}>&#39;valaxy&#39;</span></span>
274
+ <span class="line"${_scopeId}></span>
275
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#F97583" })}"${_scopeId}>export</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#F97583" })}"${_scopeId}>default</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#B392F0" })}"${_scopeId}>defineSiteConfig</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}>({</span></span>
276
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> search: {</span></span>
277
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> enable: </span><span style="${ssrRenderStyle({ "color": "#79B8FF" })}"${_scopeId}>true</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}>,</span></span>
278
+ <span class="line highlighted"${_scopeId}><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#6A737D" })}"${_scopeId}>// Set type to &#39;fuse&#39;</span></span>
279
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> type: </span><span style="${ssrRenderStyle({ "color": "#9ECBFF" })}"${_scopeId}>&#39;fuse&#39;</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}>,</span></span>
280
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> },</span></span>
281
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}>})</span></span></code></pre><pre class="shiki github-light has-highlighted-lines vp-code-light"${_scopeId}><code${_scopeId}><span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#6A737D" })}"${_scopeId}>// site.config.ts</span></span>
282
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#D73A49" })}"${_scopeId}>import</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> { defineSiteConfig } </span><span style="${ssrRenderStyle({ "color": "#D73A49" })}"${_scopeId}>from</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#032F62" })}"${_scopeId}>&#39;valaxy&#39;</span></span>
283
+ <span class="line"${_scopeId}></span>
284
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#D73A49" })}"${_scopeId}>export</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#D73A49" })}"${_scopeId}>default</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#6F42C1" })}"${_scopeId}>defineSiteConfig</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}>({</span></span>
285
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> search: {</span></span>
286
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> enable: </span><span style="${ssrRenderStyle({ "color": "#005CC5" })}"${_scopeId}>true</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}>,</span></span>
287
+ <span class="line highlighted"${_scopeId}><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#6A737D" })}"${_scopeId}>// Set type to &#39;fuse&#39;</span></span>
288
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> type: </span><span style="${ssrRenderStyle({ "color": "#032F62" })}"${_scopeId}>&#39;fuse&#39;</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}>,</span></span>
289
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> },</span></span>
290
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}>})</span></span></code></pre></div><ul${_scopeId}><li${_scopeId}>Add fuse generation script in your <code${_scopeId}>package.json</code></li></ul></div><div class="language-json"${_scopeId}><button title="Copy Code" class="copy"${_scopeId}></button><span class="lang"${_scopeId}>json</span><pre class="shiki github-dark has-highlighted-lines vp-code-dark"${_scopeId}><code${_scopeId}><span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}>{</span></span>
291
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#79B8FF" })}"${_scopeId}>&quot;name&quot;</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}>: </span><span style="${ssrRenderStyle({ "color": "#9ECBFF" })}"${_scopeId}>&quot;yun-demo&quot;</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}>,</span></span>
292
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#79B8FF" })}"${_scopeId}>&quot;valaxy&quot;</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}>: {</span></span>
293
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#79B8FF" })}"${_scopeId}>&quot;theme&quot;</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}>: </span><span style="${ssrRenderStyle({ "color": "#9ECBFF" })}"${_scopeId}>&quot;yun&quot;</span></span>
294
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> },</span></span>
295
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#79B8FF" })}"${_scopeId}>&quot;scripts&quot;</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}>: {</span></span>
296
+ <span class="line highlighted"${_scopeId}><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#79B8FF" })}"${_scopeId}>&quot;build&quot;</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}>: </span><span style="${ssrRenderStyle({ "color": "#9ECBFF" })}"${_scopeId}>&quot;npm run fuse &amp;&amp; npm run build:ssg&quot;</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}>,</span></span>
297
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#79B8FF" })}"${_scopeId}>&quot;build:ssg&quot;</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}>: </span><span style="${ssrRenderStyle({ "color": "#9ECBFF" })}"${_scopeId}>&quot;valaxy build --ssg&quot;</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}>,</span></span>
298
+ <span class="line highlighted"${_scopeId}><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#79B8FF" })}"${_scopeId}>&quot;fuse&quot;</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}>: </span><span style="${ssrRenderStyle({ "color": "#9ECBFF" })}"${_scopeId}>&quot;valaxy fuse&quot;</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}>,</span></span>
299
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#79B8FF" })}"${_scopeId}>&quot;rss&quot;</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}>: </span><span style="${ssrRenderStyle({ "color": "#9ECBFF" })}"${_scopeId}>&quot;valaxy rss&quot;</span></span>
300
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> },</span></span>
301
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#79B8FF" })}"${_scopeId}>&quot;dependencies&quot;</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}>: {</span></span>
302
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#79B8FF" })}"${_scopeId}>&quot;valaxy&quot;</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}>: </span><span style="${ssrRenderStyle({ "color": "#9ECBFF" })}"${_scopeId}>&quot;latest&quot;</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}>,</span></span>
303
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#79B8FF" })}"${_scopeId}>&quot;valaxy-theme-yun&quot;</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}>: </span><span style="${ssrRenderStyle({ "color": "#9ECBFF" })}"${_scopeId}>&quot;latest&quot;</span></span>
304
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> }</span></span>
305
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}>}</span></span></code></pre><pre class="shiki github-light has-highlighted-lines vp-code-light"${_scopeId}><code${_scopeId}><span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}>{</span></span>
306
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#005CC5" })}"${_scopeId}>&quot;name&quot;</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}>: </span><span style="${ssrRenderStyle({ "color": "#032F62" })}"${_scopeId}>&quot;yun-demo&quot;</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}>,</span></span>
307
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#005CC5" })}"${_scopeId}>&quot;valaxy&quot;</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}>: {</span></span>
308
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#005CC5" })}"${_scopeId}>&quot;theme&quot;</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}>: </span><span style="${ssrRenderStyle({ "color": "#032F62" })}"${_scopeId}>&quot;yun&quot;</span></span>
309
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> },</span></span>
310
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#005CC5" })}"${_scopeId}>&quot;scripts&quot;</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}>: {</span></span>
311
+ <span class="line highlighted"${_scopeId}><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#005CC5" })}"${_scopeId}>&quot;build&quot;</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}>: </span><span style="${ssrRenderStyle({ "color": "#032F62" })}"${_scopeId}>&quot;npm run fuse &amp;&amp; npm run build:ssg&quot;</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}>,</span></span>
312
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#005CC5" })}"${_scopeId}>&quot;build:ssg&quot;</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}>: </span><span style="${ssrRenderStyle({ "color": "#032F62" })}"${_scopeId}>&quot;valaxy build --ssg&quot;</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}>,</span></span>
313
+ <span class="line highlighted"${_scopeId}><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#005CC5" })}"${_scopeId}>&quot;fuse&quot;</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}>: </span><span style="${ssrRenderStyle({ "color": "#032F62" })}"${_scopeId}>&quot;valaxy fuse&quot;</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}>,</span></span>
314
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#005CC5" })}"${_scopeId}>&quot;rss&quot;</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}>: </span><span style="${ssrRenderStyle({ "color": "#032F62" })}"${_scopeId}>&quot;valaxy rss&quot;</span></span>
315
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> },</span></span>
316
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#005CC5" })}"${_scopeId}>&quot;dependencies&quot;</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}>: {</span></span>
317
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#005CC5" })}"${_scopeId}>&quot;valaxy&quot;</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}>: </span><span style="${ssrRenderStyle({ "color": "#032F62" })}"${_scopeId}>&quot;latest&quot;</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}>,</span></span>
318
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#005CC5" })}"${_scopeId}>&quot;valaxy-theme-yun&quot;</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}>: </span><span style="${ssrRenderStyle({ "color": "#032F62" })}"${_scopeId}>&quot;latest&quot;</span></span>
319
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> }</span></span>
320
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}>}</span></span></code></pre></div><h3 lang="zh-CN" id="algolia-搜索" tabindex="-1"${_scopeId}>Algolia 搜索 `);
321
+ _push2(ssrRenderComponent(_component_AppLink, {
322
+ class: "header-anchor",
323
+ href: "#algolia-搜索",
324
+ "aria-label": 'Permalink to "Algolia 搜索 {lang="zh-CN"}"'
325
+ }, {
326
+ default: withCtx((_2, _push3, _parent3, _scopeId2) => {
327
+ if (_push3) {
328
+ _push3(`​`);
329
+ } else {
330
+ return [
331
+ createTextVNode("​")
332
+ ];
333
+ }
334
+ }),
335
+ _: 1
336
+ /* STABLE */
337
+ }, _parent2, _scopeId));
338
+ _push2(`</h3><h3 lang="en" id="algolia-docsearch" tabindex="-1"${_scopeId}>Algolia DocSearch `);
339
+ _push2(ssrRenderComponent(_component_AppLink, {
340
+ class: "header-anchor",
341
+ href: "#algolia-docsearch",
342
+ "aria-label": 'Permalink to "Algolia DocSearch {lang="en"}"'
343
+ }, {
344
+ default: withCtx((_2, _push3, _parent3, _scopeId2) => {
345
+ if (_push3) {
346
+ _push3(`​`);
347
+ } else {
348
+ return [
349
+ createTextVNode("​")
350
+ ];
351
+ }
352
+ }),
353
+ _: 1
354
+ /* STABLE */
355
+ }, _parent2, _scopeId));
356
+ _push2(`</h3><div lang="zh-CN"${_scopeId}><p${_scopeId}>Algolia 是一个在线第三方搜索服务,您需要自行申请相关 ID 和 Secret。</p><blockquote${_scopeId}><p${_scopeId}>`);
357
+ _push2(ssrRenderComponent(_component_AppLink, {
358
+ href: "https://docsearch.algolia.com/",
359
+ target: "_blank",
360
+ rel: "noreferrer"
361
+ }, {
362
+ default: withCtx((_2, _push3, _parent3, _scopeId2) => {
363
+ if (_push3) {
364
+ _push3(`DocSearch`);
365
+ } else {
366
+ return [
367
+ createTextVNode("DocSearch")
368
+ ];
369
+ }
370
+ }),
371
+ _: 1
372
+ /* STABLE */
373
+ }, _parent2, _scopeId));
374
+ _push2(` 申请通常只接受技术文档。</p></blockquote><p${_scopeId}>Valaxy 提供了一个快速集成插件 `);
375
+ _push2(ssrRenderComponent(_component_AppLink, {
376
+ href: "https://github.com/YunYouJun/valaxy/tree/main/packages/valaxy-addon-algolia",
377
+ target: "_blank",
378
+ rel: "noreferrer"
379
+ }, {
380
+ default: withCtx((_2, _push3, _parent3, _scopeId2) => {
381
+ if (_push3) {
382
+ _push3(`valaxy-addon-algolia`);
383
+ } else {
384
+ return [
385
+ createTextVNode("valaxy-addon-algolia")
386
+ ];
387
+ }
388
+ }),
389
+ _: 1
390
+ /* STABLE */
391
+ }, _parent2, _scopeId));
392
+ _push2(`(目前仅支持 DocSearch)。</p></div><div lang="en"${_scopeId}><p${_scopeId}>Algolia is an online third-party search service. You need to apply for the <code${_scopeId}>ID</code> and <code${_scopeId}>Secret</code> by yourself.</p><blockquote${_scopeId}><p${_scopeId}>`);
393
+ _push2(ssrRenderComponent(_component_AppLink, {
394
+ href: "https://docsearch.algolia.com/",
395
+ target: "_blank",
396
+ rel: "noreferrer"
397
+ }, {
398
+ default: withCtx((_2, _push3, _parent3, _scopeId2) => {
399
+ if (_push3) {
400
+ _push3(`DocSearch`);
401
+ } else {
402
+ return [
403
+ createTextVNode("DocSearch")
404
+ ];
405
+ }
406
+ }),
407
+ _: 1
408
+ /* STABLE */
409
+ }, _parent2, _scopeId));
410
+ _push2(` Only technical document applications are accepted generally.</p></blockquote><p${_scopeId}>Valaxy provides a quick integration plug-in: `);
411
+ _push2(ssrRenderComponent(_component_AppLink, {
412
+ href: "https://github.com/YunYouJun/valaxy/tree/main/packages/valaxy-addon-algolia",
413
+ target: "_blank",
414
+ rel: "noreferrer"
415
+ }, {
416
+ default: withCtx((_2, _push3, _parent3, _scopeId2) => {
417
+ if (_push3) {
418
+ _push3(`valaxy-addon-algolia`);
419
+ } else {
420
+ return [
421
+ createTextVNode("valaxy-addon-algolia")
422
+ ];
423
+ }
424
+ }),
425
+ _: 1
426
+ /* STABLE */
427
+ }, _parent2, _scopeId));
428
+ _push2(` (Currently only DocSearch is supported).</p></div><h2 lang="zh-CN" id="图片预览-medium-zoom" tabindex="-1"${_scopeId}>图片预览(Medium Zoom) `);
429
+ _push2(ssrRenderComponent(_component_AppLink, {
430
+ class: "header-anchor",
431
+ href: "#图片预览-medium-zoom",
432
+ "aria-label": 'Permalink to "图片预览(Medium Zoom) {lang="zh-CN"}"'
433
+ }, {
434
+ default: withCtx((_2, _push3, _parent3, _scopeId2) => {
435
+ if (_push3) {
436
+ _push3(`​`);
437
+ } else {
438
+ return [
439
+ createTextVNode("​")
440
+ ];
441
+ }
442
+ }),
443
+ _: 1
444
+ /* STABLE */
445
+ }, _parent2, _scopeId));
446
+ _push2(`</h2><h2 lang="en" id="image-preview-medium-zoom" tabindex="-1"${_scopeId}>Image Preview (Medium Zoom) `);
447
+ _push2(ssrRenderComponent(_component_AppLink, {
448
+ class: "header-anchor",
449
+ href: "#image-preview-medium-zoom",
450
+ "aria-label": 'Permalink to "Image Preview (Medium Zoom) {lang="en"}"'
451
+ }, {
452
+ default: withCtx((_2, _push3, _parent3, _scopeId2) => {
453
+ if (_push3) {
454
+ _push3(`​`);
455
+ } else {
456
+ return [
457
+ createTextVNode("​")
458
+ ];
459
+ }
460
+ }),
461
+ _: 1
462
+ /* STABLE */
463
+ }, _parent2, _scopeId));
464
+ _push2(`</h2><div lang="zh-CN"${_scopeId}><p${_scopeId}>Valaxy 内置了 `);
465
+ _push2(ssrRenderComponent(_component_AppLink, {
466
+ href: "https://github.com/francoischalifour/medium-zoom",
467
+ target: "_blank",
468
+ rel: "noreferrer"
469
+ }, {
470
+ default: withCtx((_2, _push3, _parent3, _scopeId2) => {
471
+ if (_push3) {
472
+ _push3(`medium-zoom`);
473
+ } else {
474
+ return [
475
+ createTextVNode("medium-zoom")
476
+ ];
477
+ }
478
+ }),
479
+ _: 1
480
+ /* STABLE */
481
+ }, _parent2, _scopeId));
482
+ _push2(` 进行图片预览,默认关闭。</p><blockquote${_scopeId}><p${_scopeId}>`);
483
+ _push2(ssrRenderComponent(_component_AppLink, {
484
+ href: "https://medium-zoom.francoischalifour.com/",
485
+ target: "_blank",
486
+ rel: "noreferrer"
487
+ }, {
488
+ default: withCtx((_2, _push3, _parent3, _scopeId2) => {
489
+ if (_push3) {
490
+ _push3(`Medium Zoom Demo`);
491
+ } else {
492
+ return [
493
+ createTextVNode("Medium Zoom Demo")
494
+ ];
495
+ }
496
+ }),
497
+ _: 1
498
+ /* STABLE */
499
+ }, _parent2, _scopeId));
500
+ _push2(`</p></blockquote><ul${_scopeId}><li${_scopeId}>mediumZoom <ul${_scopeId}><li${_scopeId}><code${_scopeId}>enable</code>: 是否开启</li><li${_scopeId}><code${_scopeId}>selector</code>: 可自定义传入选择器</li><li${_scopeId}><code${_scopeId}>options</code>: 与 `);
501
+ _push2(ssrRenderComponent(_component_AppLink, {
502
+ href: "https://github.com/francoischalifour/medium-zoom#options",
503
+ target: "_blank",
504
+ rel: "noreferrer"
505
+ }, {
506
+ default: withCtx((_2, _push3, _parent3, _scopeId2) => {
507
+ if (_push3) {
508
+ _push3(`options | medium-zoom`);
509
+ } else {
510
+ return [
511
+ createTextVNode("options | medium-zoom")
512
+ ];
513
+ }
514
+ }),
515
+ _: 1
516
+ /* STABLE */
517
+ }, _parent2, _scopeId));
518
+ _push2(` 一致</li></ul></li></ul><p${_scopeId}>譬如开启 Medium Zoom:</p></div><div lang="en"${_scopeId}><p${_scopeId}>Valaxy has built-in `);
519
+ _push2(ssrRenderComponent(_component_AppLink, {
520
+ href: "https://github.com/francoischalifour/medium-zoom",
521
+ target: "_blank",
522
+ rel: "noreferrer"
523
+ }, {
524
+ default: withCtx((_2, _push3, _parent3, _scopeId2) => {
525
+ if (_push3) {
526
+ _push3(`medium-zoom`);
527
+ } else {
528
+ return [
529
+ createTextVNode("medium-zoom")
530
+ ];
531
+ }
532
+ }),
533
+ _: 1
534
+ /* STABLE */
535
+ }, _parent2, _scopeId));
536
+ _push2(` to preview the pictures, which is disabled by default.</p><blockquote${_scopeId}><p${_scopeId}>`);
537
+ _push2(ssrRenderComponent(_component_AppLink, {
538
+ href: "https://medium-zoom.francoischalifour.com/",
539
+ target: "_blank",
540
+ rel: "noreferrer"
541
+ }, {
542
+ default: withCtx((_2, _push3, _parent3, _scopeId2) => {
543
+ if (_push3) {
544
+ _push3(`Medium Zoom Demo`);
545
+ } else {
546
+ return [
547
+ createTextVNode("Medium Zoom Demo")
548
+ ];
549
+ }
550
+ }),
551
+ _: 1
552
+ /* STABLE */
553
+ }, _parent2, _scopeId));
554
+ _push2(`</p></blockquote><ul${_scopeId}><li${_scopeId}>mediumZoom <ul${_scopeId}><li${_scopeId}><code${_scopeId}>enable</code>: Set to true to enable it</li><li${_scopeId}><code${_scopeId}>selector</code>: Custom CSS selector</li><li${_scopeId}><code${_scopeId}>options</code>: Refer to `);
555
+ _push2(ssrRenderComponent(_component_AppLink, {
556
+ href: "https://github.com/francoischalifour/medium-zoom#options",
557
+ target: "_blank",
558
+ rel: "noreferrer"
559
+ }, {
560
+ default: withCtx((_2, _push3, _parent3, _scopeId2) => {
561
+ if (_push3) {
562
+ _push3(`options | medium-zoom`);
563
+ } else {
564
+ return [
565
+ createTextVNode("options | medium-zoom")
566
+ ];
567
+ }
568
+ }),
569
+ _: 1
570
+ /* STABLE */
571
+ }, _parent2, _scopeId));
572
+ _push2(`</li></ul></li></ul></div><div class="language-ts"${_scopeId}><button title="Copy Code" class="copy"${_scopeId}></button><span class="lang"${_scopeId}>ts</span><pre class="shiki github-dark vp-code-dark"${_scopeId}><code${_scopeId}><span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#6A737D" })}"${_scopeId}>// site.config.ts</span></span>
573
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#F97583" })}"${_scopeId}>import</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> { defineSiteConfig } </span><span style="${ssrRenderStyle({ "color": "#F97583" })}"${_scopeId}>from</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#9ECBFF" })}"${_scopeId}>&#39;valaxy&#39;</span></span>
574
+ <span class="line"${_scopeId}></span>
575
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#F97583" })}"${_scopeId}>export</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#F97583" })}"${_scopeId}>default</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#B392F0" })}"${_scopeId}>defineSiteConfig</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}>({</span></span>
576
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> mediumZoom: { enable: </span><span style="${ssrRenderStyle({ "color": "#79B8FF" })}"${_scopeId}>true</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> }</span></span>
577
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}>})</span></span></code></pre><pre class="shiki github-light vp-code-light"${_scopeId}><code${_scopeId}><span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#6A737D" })}"${_scopeId}>// site.config.ts</span></span>
578
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#D73A49" })}"${_scopeId}>import</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> { defineSiteConfig } </span><span style="${ssrRenderStyle({ "color": "#D73A49" })}"${_scopeId}>from</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#032F62" })}"${_scopeId}>&#39;valaxy&#39;</span></span>
579
+ <span class="line"${_scopeId}></span>
580
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#D73A49" })}"${_scopeId}>export</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#D73A49" })}"${_scopeId}>default</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#6F42C1" })}"${_scopeId}>defineSiteConfig</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}>({</span></span>
581
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> mediumZoom: { enable: </span><span style="${ssrRenderStyle({ "color": "#005CC5" })}"${_scopeId}>true</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> }</span></span>
582
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}>})</span></span></code></pre></div><div lang="zh-CN"${_scopeId}><p${_scopeId}>除此之外,你也可以单独控制是否在某篇文章中开启。</p></div><div lang="en"${_scopeId}><p${_scopeId}>In addition, you can also enable it in a certain article independently.</p></div><div class="language-md"${_scopeId}><button title="Copy Code" class="copy"${_scopeId}></button><span class="lang"${_scopeId}>md</span><pre class="shiki github-dark vp-code-dark"${_scopeId}><code${_scopeId}><span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}>---</span></span>
583
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#85E89D" })}"${_scopeId}>title</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}>: </span><span style="${ssrRenderStyle({ "color": "#9ECBFF" })}"${_scopeId}>Test Medium Zoom</span></span>
584
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#85E89D" })}"${_scopeId}>medium_zoom</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}>: </span><span style="${ssrRenderStyle({ "color": "#79B8FF" })}"${_scopeId}>true</span></span>
585
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}>---</span></span></code></pre><pre class="shiki github-light vp-code-light"${_scopeId}><code${_scopeId}><span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}>---</span></span>
586
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#22863A" })}"${_scopeId}>title</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}>: </span><span style="${ssrRenderStyle({ "color": "#032F62" })}"${_scopeId}>Test Medium Zoom</span></span>
587
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#22863A" })}"${_scopeId}>medium_zoom</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}>: </span><span style="${ssrRenderStyle({ "color": "#005CC5" })}"${_scopeId}>true</span></span>
588
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}>---</span></span></code></pre></div><h2 lang="zh-CN" id="音乐播放器" tabindex="-1"${_scopeId}>音乐播放器 `);
589
+ _push2(ssrRenderComponent(_component_AppLink, {
590
+ class: "header-anchor",
591
+ href: "#音乐播放器",
592
+ "aria-label": 'Permalink to "音乐播放器 {lang="zh-CN"}"'
593
+ }, {
594
+ default: withCtx((_2, _push3, _parent3, _scopeId2) => {
595
+ if (_push3) {
596
+ _push3(`​`);
597
+ } else {
598
+ return [
599
+ createTextVNode("​")
600
+ ];
601
+ }
602
+ }),
603
+ _: 1
604
+ /* STABLE */
605
+ }, _parent2, _scopeId));
606
+ _push2(`</h2><h2 lang="en" id="music-player" tabindex="-1"${_scopeId}>Music Player `);
607
+ _push2(ssrRenderComponent(_component_AppLink, {
608
+ class: "header-anchor",
609
+ href: "#music-player",
610
+ "aria-label": 'Permalink to "Music Player {lang="en"}"'
611
+ }, {
612
+ default: withCtx((_2, _push3, _parent3, _scopeId2) => {
613
+ if (_push3) {
614
+ _push3(`​`);
615
+ } else {
616
+ return [
617
+ createTextVNode("​")
618
+ ];
619
+ }
620
+ }),
621
+ _: 1
622
+ /* STABLE */
623
+ }, _parent2, _scopeId));
624
+ _push2(`</h2><div lang="zh-CN"${_scopeId}><blockquote${_scopeId}><p${_scopeId}>基于 `);
625
+ _push2(ssrRenderComponent(_component_AppLink, {
626
+ href: "https://github.com/DIYgod/APlayer",
627
+ target: "_blank",
628
+ rel: "noreferrer"
629
+ }, {
630
+ default: withCtx((_2, _push3, _parent3, _scopeId2) => {
631
+ if (_push3) {
632
+ _push3(`Aplayer`);
633
+ } else {
634
+ return [
635
+ createTextVNode("Aplayer")
636
+ ];
637
+ }
638
+ }),
639
+ _: 1
640
+ /* STABLE */
641
+ }, _parent2, _scopeId));
642
+ _push2(` 与 `);
643
+ _push2(ssrRenderComponent(_component_AppLink, {
644
+ href: "https://github.com/metowolf/MetingJS",
645
+ target: "_blank",
646
+ rel: "noreferrer"
647
+ }, {
648
+ default: withCtx((_2, _push3, _parent3, _scopeId2) => {
649
+ if (_push3) {
650
+ _push3(`MetingJS`);
651
+ } else {
652
+ return [
653
+ createTextVNode("MetingJS")
654
+ ];
655
+ }
656
+ }),
657
+ _: 1
658
+ /* STABLE */
659
+ }, _parent2, _scopeId));
660
+ _push2(` 实现</p></blockquote><p${_scopeId}>譬如在文章中引入网易云某首歌曲(ID 为歌曲 ID):</p><p${_scopeId}>在文章头部添加:</p></div><div lang="en"${_scopeId}><blockquote${_scopeId}><p${_scopeId}>Implementd based on `);
661
+ _push2(ssrRenderComponent(_component_AppLink, {
662
+ href: "https://github.com/DIYgod/APlayer",
663
+ target: "_blank",
664
+ rel: "noreferrer"
665
+ }, {
666
+ default: withCtx((_2, _push3, _parent3, _scopeId2) => {
667
+ if (_push3) {
668
+ _push3(`Aplayer`);
669
+ } else {
670
+ return [
671
+ createTextVNode("Aplayer")
672
+ ];
673
+ }
674
+ }),
675
+ _: 1
676
+ /* STABLE */
677
+ }, _parent2, _scopeId));
678
+ _push2(` and `);
679
+ _push2(ssrRenderComponent(_component_AppLink, {
680
+ href: "https://github.com/metowolf/MetingJS",
681
+ target: "_blank",
682
+ rel: "noreferrer"
683
+ }, {
684
+ default: withCtx((_2, _push3, _parent3, _scopeId2) => {
685
+ if (_push3) {
686
+ _push3(`MetingJS`);
687
+ } else {
688
+ return [
689
+ createTextVNode("MetingJS")
690
+ ];
691
+ }
692
+ }),
693
+ _: 1
694
+ /* STABLE */
695
+ }, _parent2, _scopeId));
696
+ _push2(`</p></blockquote><p${_scopeId}>For example, add a song from Netease Cloud in a article:</p><p${_scopeId}>Enable it in the FrontMatter of the article:</p></div><div class="language-md"${_scopeId}><button title="Copy Code" class="copy"${_scopeId}></button><span class="lang"${_scopeId}>md</span><pre class="shiki github-dark vp-code-dark"${_scopeId}><code${_scopeId}><span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}>---</span></span>
697
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#85E89D" })}"${_scopeId}>aplayer</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}>: </span><span style="${ssrRenderStyle({ "color": "#79B8FF" })}"${_scopeId}>true</span></span>
698
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}>---</span></span></code></pre><pre class="shiki github-light vp-code-light"${_scopeId}><code${_scopeId}><span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}>---</span></span>
699
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#22863A" })}"${_scopeId}>aplayer</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}>: </span><span style="${ssrRenderStyle({ "color": "#005CC5" })}"${_scopeId}>true</span></span>
700
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}>---</span></span></code></pre></div><div lang="zh-CN"${_scopeId}><p${_scopeId}>在文中引入:</p></div><div lang="en"${_scopeId}><p${_scopeId}>Add the component to the article:</p></div><div class="language-html"${_scopeId}><button title="Copy Code" class="copy"${_scopeId}></button><span class="lang"${_scopeId}>html</span><pre class="shiki github-dark vp-code-dark"${_scopeId}><code${_scopeId}><span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}>&lt;</span><span style="${ssrRenderStyle({ "color": "#85E89D" })}"${_scopeId}>meting-js</span></span>
701
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#B392F0" })}"${_scopeId}>id</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}>=</span><span style="${ssrRenderStyle({ "color": "#9ECBFF" })}"${_scopeId}>&quot;22736708&quot;</span></span>
702
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#B392F0" })}"${_scopeId}>server</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}>=</span><span style="${ssrRenderStyle({ "color": "#9ECBFF" })}"${_scopeId}>&quot;netease&quot;</span></span>
703
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#B392F0" })}"${_scopeId}>type</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}>=</span><span style="${ssrRenderStyle({ "color": "#9ECBFF" })}"${_scopeId}>&quot;song&quot;</span></span>
704
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#B392F0" })}"${_scopeId}>theme</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}>=</span><span style="${ssrRenderStyle({ "color": "#9ECBFF" })}"${_scopeId}>&quot;#C20C0C&quot;</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}>&gt;</span></span>
705
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}>&lt;/</span><span style="${ssrRenderStyle({ "color": "#85E89D" })}"${_scopeId}>meting-js</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}>&gt;</span></span></code></pre><pre class="shiki github-light vp-code-light"${_scopeId}><code${_scopeId}><span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}>&lt;</span><span style="${ssrRenderStyle({ "color": "#22863A" })}"${_scopeId}>meting-js</span></span>
706
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#6F42C1" })}"${_scopeId}>id</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}>=</span><span style="${ssrRenderStyle({ "color": "#032F62" })}"${_scopeId}>&quot;22736708&quot;</span></span>
707
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#6F42C1" })}"${_scopeId}>server</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}>=</span><span style="${ssrRenderStyle({ "color": "#032F62" })}"${_scopeId}>&quot;netease&quot;</span></span>
708
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#6F42C1" })}"${_scopeId}>type</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}>=</span><span style="${ssrRenderStyle({ "color": "#032F62" })}"${_scopeId}>&quot;song&quot;</span></span>
709
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#6F42C1" })}"${_scopeId}>theme</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}>=</span><span style="${ssrRenderStyle({ "color": "#032F62" })}"${_scopeId}>&quot;#C20C0C&quot;</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}>&gt;</span></span>
710
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}>&lt;/</span><span style="${ssrRenderStyle({ "color": "#22863A" })}"${_scopeId}>meting-js</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}>&gt;</span></span></code></pre></div><div lang="zh-CN"${_scopeId}><p${_scopeId}>效果如下:</p></div><div lang="en"${_scopeId}><p${_scopeId}>Here is a demo:</p></div><meting-js id="22736708" server="netease" type="song" theme="#C20C0C"${_scopeId}></meting-js><blockquote${_scopeId}><p${_scopeId}>More info see `);
711
+ _push2(ssrRenderComponent(_component_AppLink, {
712
+ href: "https://github.com/metowolf/MetingJS#option",
713
+ target: "_blank",
714
+ rel: "noreferrer"
715
+ }, {
716
+ default: withCtx((_2, _push3, _parent3, _scopeId2) => {
717
+ if (_push3) {
718
+ _push3(`Option | MetingJS`);
719
+ } else {
720
+ return [
721
+ createTextVNode("Option | MetingJS")
722
+ ];
723
+ }
724
+ }),
725
+ _: 1
726
+ /* STABLE */
727
+ }, _parent2, _scopeId));
728
+ _push2(`</p></blockquote><h2 lang="zh-CN" id="谷歌统计" tabindex="-1"${_scopeId}>谷歌统计 `);
729
+ _push2(ssrRenderComponent(_component_AppLink, {
730
+ class: "header-anchor",
731
+ href: "#谷歌统计",
732
+ "aria-label": 'Permalink to "谷歌统计 {lang="zh-CN"}"'
733
+ }, {
734
+ default: withCtx((_2, _push3, _parent3, _scopeId2) => {
735
+ if (_push3) {
736
+ _push3(`​`);
737
+ } else {
738
+ return [
739
+ createTextVNode("​")
740
+ ];
741
+ }
742
+ }),
743
+ _: 1
744
+ /* STABLE */
745
+ }, _parent2, _scopeId));
746
+ _push2(`</h2><h2 lang="en" id="google-statistics" tabindex="-1"${_scopeId}>Google Statistics `);
747
+ _push2(ssrRenderComponent(_component_AppLink, {
748
+ class: "header-anchor",
749
+ href: "#google-statistics",
750
+ "aria-label": 'Permalink to "Google Statistics {lang="en"}"'
751
+ }, {
752
+ default: withCtx((_2, _push3, _parent3, _scopeId2) => {
753
+ if (_push3) {
754
+ _push3(`​`);
755
+ } else {
756
+ return [
757
+ createTextVNode("​")
758
+ ];
759
+ }
760
+ }),
761
+ _: 1
762
+ /* STABLE */
763
+ }, _parent2, _scopeId));
764
+ _push2(`</h2><div lang="zh-CN"${_scopeId}><blockquote${_scopeId}><p${_scopeId}>可参见 `);
765
+ _push2(ssrRenderComponent(_component_AppLink, { href: "/guide/custom/extend#%E6%89%A9%E5%B1%95-client-%E4%B8%8A%E4%B8%8B%E6%96%87" }, {
766
+ default: withCtx((_2, _push3, _parent3, _scopeId2) => {
767
+ if (_push3) {
768
+ _push3(`扩展 Client 上下文|自定义扩展`);
769
+ } else {
770
+ return [
771
+ createTextVNode("扩展 Client 上下文|自定义扩展")
772
+ ];
773
+ }
774
+ }),
775
+ _: 1
776
+ /* STABLE */
777
+ }, _parent2, _scopeId));
778
+ _push2(`</p></blockquote><p${_scopeId}>你可以通过直接使用 Vue 插件的方式引入谷歌统计。</p><p${_scopeId}>譬如:</p><ul${_scopeId}><li${_scopeId}>安装依赖:<code${_scopeId}>pnpm add vue-gtag-next</code></li><li${_scopeId}>新建 <code${_scopeId}>setup/main.ts</code>:</li></ul><div class="language-ts"${_scopeId}><button title="Copy Code" class="copy"${_scopeId}></button><span class="lang"${_scopeId}>ts</span><pre class="shiki github-dark vp-code-dark"${_scopeId}><code${_scopeId}><span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#6A737D" })}"${_scopeId}>// setup/main.ts</span></span>
779
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#F97583" })}"${_scopeId}>import</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> { defineAppSetup } </span><span style="${ssrRenderStyle({ "color": "#F97583" })}"${_scopeId}>from</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#9ECBFF" })}"${_scopeId}>&#39;valaxy&#39;</span></span>
780
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#F97583" })}"${_scopeId}>import</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> { install </span><span style="${ssrRenderStyle({ "color": "#F97583" })}"${_scopeId}>as</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> installGtag } </span><span style="${ssrRenderStyle({ "color": "#F97583" })}"${_scopeId}>from</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#9ECBFF" })}"${_scopeId}>&#39;./gtag&#39;</span></span>
781
+ <span class="line"${_scopeId}></span>
782
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#F97583" })}"${_scopeId}>export</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#F97583" })}"${_scopeId}>default</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#B392F0" })}"${_scopeId}>defineAppSetup</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}>((</span><span style="${ssrRenderStyle({ "color": "#FFAB70" })}"${_scopeId}>ctx</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}>) </span><span style="${ssrRenderStyle({ "color": "#F97583" })}"${_scopeId}>=&gt;</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> {</span></span>
783
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#B392F0" })}"${_scopeId}>installGtag</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}>(ctx)</span></span>
784
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}>})</span></span></code></pre><pre class="shiki github-light vp-code-light"${_scopeId}><code${_scopeId}><span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#6A737D" })}"${_scopeId}>// setup/main.ts</span></span>
785
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#D73A49" })}"${_scopeId}>import</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> { defineAppSetup } </span><span style="${ssrRenderStyle({ "color": "#D73A49" })}"${_scopeId}>from</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#032F62" })}"${_scopeId}>&#39;valaxy&#39;</span></span>
786
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#D73A49" })}"${_scopeId}>import</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> { install </span><span style="${ssrRenderStyle({ "color": "#D73A49" })}"${_scopeId}>as</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> installGtag } </span><span style="${ssrRenderStyle({ "color": "#D73A49" })}"${_scopeId}>from</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#032F62" })}"${_scopeId}>&#39;./gtag&#39;</span></span>
787
+ <span class="line"${_scopeId}></span>
788
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#D73A49" })}"${_scopeId}>export</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#D73A49" })}"${_scopeId}>default</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#6F42C1" })}"${_scopeId}>defineAppSetup</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}>((</span><span style="${ssrRenderStyle({ "color": "#E36209" })}"${_scopeId}>ctx</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}>) </span><span style="${ssrRenderStyle({ "color": "#D73A49" })}"${_scopeId}>=&gt;</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> {</span></span>
789
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#6F42C1" })}"${_scopeId}>installGtag</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}>(ctx)</span></span>
790
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}>})</span></span></code></pre></div><ul${_scopeId}><li${_scopeId}>新建 <code${_scopeId}>setup/gtag.ts</code>:</li></ul><div class="language-ts"${_scopeId}><button title="Copy Code" class="copy"${_scopeId}></button><span class="lang"${_scopeId}>ts</span><pre class="shiki github-dark vp-code-dark"${_scopeId}><code${_scopeId}><span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#F97583" })}"${_scopeId}>import</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> VueGtag, { trackRouter } </span><span style="${ssrRenderStyle({ "color": "#F97583" })}"${_scopeId}>from</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#9ECBFF" })}"${_scopeId}>&#39;vue-gtag-next&#39;</span></span>
791
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#F97583" })}"${_scopeId}>import</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#F97583" })}"${_scopeId}>type</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> { UserModule } </span><span style="${ssrRenderStyle({ "color": "#F97583" })}"${_scopeId}>from</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#9ECBFF" })}"${_scopeId}>&#39;valaxy&#39;</span></span>
792
+ <span class="line"${_scopeId}></span>
793
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#F97583" })}"${_scopeId}>export</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#F97583" })}"${_scopeId}>const</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#B392F0" })}"${_scopeId}>install</span><span style="${ssrRenderStyle({ "color": "#F97583" })}"${_scopeId}>:</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#B392F0" })}"${_scopeId}>UserModule</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#F97583" })}"${_scopeId}>=</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> ({ </span><span style="${ssrRenderStyle({ "color": "#FFAB70" })}"${_scopeId}>isClient</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}>, </span><span style="${ssrRenderStyle({ "color": "#FFAB70" })}"${_scopeId}>app</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}>, </span><span style="${ssrRenderStyle({ "color": "#FFAB70" })}"${_scopeId}>router</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> }) </span><span style="${ssrRenderStyle({ "color": "#F97583" })}"${_scopeId}>=&gt;</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> {</span></span>
794
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#F97583" })}"${_scopeId}>if</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> (isClient) {</span></span>
795
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> app.</span><span style="${ssrRenderStyle({ "color": "#B392F0" })}"${_scopeId}>use</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}>(VueGtag, {</span></span>
796
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> property: { id: </span><span style="${ssrRenderStyle({ "color": "#9ECBFF" })}"${_scopeId}>&#39;G-1LL0D86CY9&#39;</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> },</span></span>
797
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> })</span></span>
798
+ <span class="line"${_scopeId}></span>
799
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#B392F0" })}"${_scopeId}>trackRouter</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}>(router)</span></span>
800
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> }</span></span>
801
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}>}</span></span></code></pre><pre class="shiki github-light vp-code-light"${_scopeId}><code${_scopeId}><span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#D73A49" })}"${_scopeId}>import</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> VueGtag, { trackRouter } </span><span style="${ssrRenderStyle({ "color": "#D73A49" })}"${_scopeId}>from</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#032F62" })}"${_scopeId}>&#39;vue-gtag-next&#39;</span></span>
802
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#D73A49" })}"${_scopeId}>import</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#D73A49" })}"${_scopeId}>type</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> { UserModule } </span><span style="${ssrRenderStyle({ "color": "#D73A49" })}"${_scopeId}>from</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#032F62" })}"${_scopeId}>&#39;valaxy&#39;</span></span>
803
+ <span class="line"${_scopeId}></span>
804
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#D73A49" })}"${_scopeId}>export</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#D73A49" })}"${_scopeId}>const</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#6F42C1" })}"${_scopeId}>install</span><span style="${ssrRenderStyle({ "color": "#D73A49" })}"${_scopeId}>:</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#6F42C1" })}"${_scopeId}>UserModule</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#D73A49" })}"${_scopeId}>=</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> ({ </span><span style="${ssrRenderStyle({ "color": "#E36209" })}"${_scopeId}>isClient</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}>, </span><span style="${ssrRenderStyle({ "color": "#E36209" })}"${_scopeId}>app</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}>, </span><span style="${ssrRenderStyle({ "color": "#E36209" })}"${_scopeId}>router</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> }) </span><span style="${ssrRenderStyle({ "color": "#D73A49" })}"${_scopeId}>=&gt;</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> {</span></span>
805
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#D73A49" })}"${_scopeId}>if</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> (isClient) {</span></span>
806
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> app.</span><span style="${ssrRenderStyle({ "color": "#6F42C1" })}"${_scopeId}>use</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}>(VueGtag, {</span></span>
807
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> property: { id: </span><span style="${ssrRenderStyle({ "color": "#032F62" })}"${_scopeId}>&#39;G-1LL0D86CY9&#39;</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> },</span></span>
808
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> })</span></span>
809
+ <span class="line"${_scopeId}></span>
810
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#6F42C1" })}"${_scopeId}>trackRouter</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}>(router)</span></span>
811
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> }</span></span>
812
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}>}</span></span></code></pre></div></div><div lang="en"${_scopeId}><blockquote${_scopeId}><p${_scopeId}>Refer to `);
813
+ _push2(ssrRenderComponent(_component_AppLink, { href: "/guide/custom/extend#extending-client-context" }, {
814
+ default: withCtx((_2, _push3, _parent3, _scopeId2) => {
815
+ if (_push3) {
816
+ _push3(`Custom Extensions | Extending Client Context`);
817
+ } else {
818
+ return [
819
+ createTextVNode("Custom Extensions | Extending Client Context")
820
+ ];
821
+ }
822
+ }),
823
+ _: 1
824
+ /* STABLE */
825
+ }, _parent2, _scopeId));
826
+ _push2(`</p></blockquote><p${_scopeId}>You can add Google Statistics by using Vue plug-in directly.</p><p${_scopeId}>For example:</p><ul${_scopeId}><li${_scopeId}>Install the dependency: <code${_scopeId}>pnpm add vue-gtag-next</code></li><li${_scopeId}>Create <code${_scopeId}>setup/main.ts</code></li></ul><div class="language-ts"${_scopeId}><button title="Copy Code" class="copy"${_scopeId}></button><span class="lang"${_scopeId}>ts</span><pre class="shiki github-dark vp-code-dark"${_scopeId}><code${_scopeId}><span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#6A737D" })}"${_scopeId}>// setup/main.ts</span></span>
827
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#F97583" })}"${_scopeId}>import</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> { defineAppSetup } </span><span style="${ssrRenderStyle({ "color": "#F97583" })}"${_scopeId}>from</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#9ECBFF" })}"${_scopeId}>&#39;valaxy&#39;</span></span>
828
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#F97583" })}"${_scopeId}>import</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> { install </span><span style="${ssrRenderStyle({ "color": "#F97583" })}"${_scopeId}>as</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> installGtag } </span><span style="${ssrRenderStyle({ "color": "#F97583" })}"${_scopeId}>from</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#9ECBFF" })}"${_scopeId}>&#39;./gtag&#39;</span></span>
829
+ <span class="line"${_scopeId}></span>
830
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#F97583" })}"${_scopeId}>export</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#F97583" })}"${_scopeId}>default</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#B392F0" })}"${_scopeId}>defineAppSetup</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}>((</span><span style="${ssrRenderStyle({ "color": "#FFAB70" })}"${_scopeId}>ctx</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}>) </span><span style="${ssrRenderStyle({ "color": "#F97583" })}"${_scopeId}>=&gt;</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> {</span></span>
831
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#B392F0" })}"${_scopeId}>installGtag</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}>(ctx)</span></span>
832
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}>})</span></span></code></pre><pre class="shiki github-light vp-code-light"${_scopeId}><code${_scopeId}><span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#6A737D" })}"${_scopeId}>// setup/main.ts</span></span>
833
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#D73A49" })}"${_scopeId}>import</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> { defineAppSetup } </span><span style="${ssrRenderStyle({ "color": "#D73A49" })}"${_scopeId}>from</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#032F62" })}"${_scopeId}>&#39;valaxy&#39;</span></span>
834
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#D73A49" })}"${_scopeId}>import</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> { install </span><span style="${ssrRenderStyle({ "color": "#D73A49" })}"${_scopeId}>as</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> installGtag } </span><span style="${ssrRenderStyle({ "color": "#D73A49" })}"${_scopeId}>from</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#032F62" })}"${_scopeId}>&#39;./gtag&#39;</span></span>
835
+ <span class="line"${_scopeId}></span>
836
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#D73A49" })}"${_scopeId}>export</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#D73A49" })}"${_scopeId}>default</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#6F42C1" })}"${_scopeId}>defineAppSetup</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}>((</span><span style="${ssrRenderStyle({ "color": "#E36209" })}"${_scopeId}>ctx</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}>) </span><span style="${ssrRenderStyle({ "color": "#D73A49" })}"${_scopeId}>=&gt;</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> {</span></span>
837
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#6F42C1" })}"${_scopeId}>installGtag</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}>(ctx)</span></span>
838
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}>})</span></span></code></pre></div><ul${_scopeId}><li${_scopeId}>Create <code${_scopeId}>setup/gtag.ts</code></li></ul><div class="language-ts"${_scopeId}><button title="Copy Code" class="copy"${_scopeId}></button><span class="lang"${_scopeId}>ts</span><pre class="shiki github-dark vp-code-dark"${_scopeId}><code${_scopeId}><span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#F97583" })}"${_scopeId}>import</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> VueGtag, { trackRouter } </span><span style="${ssrRenderStyle({ "color": "#F97583" })}"${_scopeId}>from</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#9ECBFF" })}"${_scopeId}>&#39;vue-gtag-next&#39;</span></span>
839
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#F97583" })}"${_scopeId}>import</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#F97583" })}"${_scopeId}>type</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> { UserModule } </span><span style="${ssrRenderStyle({ "color": "#F97583" })}"${_scopeId}>from</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#9ECBFF" })}"${_scopeId}>&#39;valaxy&#39;</span></span>
840
+ <span class="line"${_scopeId}></span>
841
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#F97583" })}"${_scopeId}>export</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#F97583" })}"${_scopeId}>const</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#B392F0" })}"${_scopeId}>install</span><span style="${ssrRenderStyle({ "color": "#F97583" })}"${_scopeId}>:</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#B392F0" })}"${_scopeId}>UserModule</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#F97583" })}"${_scopeId}>=</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> ({ </span><span style="${ssrRenderStyle({ "color": "#FFAB70" })}"${_scopeId}>isClient</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}>, </span><span style="${ssrRenderStyle({ "color": "#FFAB70" })}"${_scopeId}>app</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}>, </span><span style="${ssrRenderStyle({ "color": "#FFAB70" })}"${_scopeId}>router</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> }) </span><span style="${ssrRenderStyle({ "color": "#F97583" })}"${_scopeId}>=&gt;</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> {</span></span>
842
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#F97583" })}"${_scopeId}>if</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> (isClient) {</span></span>
843
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> app.</span><span style="${ssrRenderStyle({ "color": "#B392F0" })}"${_scopeId}>use</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}>(VueGtag, {</span></span>
844
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> property: { id: </span><span style="${ssrRenderStyle({ "color": "#9ECBFF" })}"${_scopeId}>&#39;G-1LL0D86CY9&#39;</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> },</span></span>
845
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> })</span></span>
846
+ <span class="line"${_scopeId}></span>
847
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#B392F0" })}"${_scopeId}>trackRouter</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}>(router)</span></span>
848
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> }</span></span>
849
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}>}</span></span></code></pre><pre class="shiki github-light vp-code-light"${_scopeId}><code${_scopeId}><span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#D73A49" })}"${_scopeId}>import</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> VueGtag, { trackRouter } </span><span style="${ssrRenderStyle({ "color": "#D73A49" })}"${_scopeId}>from</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#032F62" })}"${_scopeId}>&#39;vue-gtag-next&#39;</span></span>
850
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#D73A49" })}"${_scopeId}>import</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#D73A49" })}"${_scopeId}>type</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> { UserModule } </span><span style="${ssrRenderStyle({ "color": "#D73A49" })}"${_scopeId}>from</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#032F62" })}"${_scopeId}>&#39;valaxy&#39;</span></span>
851
+ <span class="line"${_scopeId}></span>
852
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#D73A49" })}"${_scopeId}>export</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#D73A49" })}"${_scopeId}>const</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#6F42C1" })}"${_scopeId}>install</span><span style="${ssrRenderStyle({ "color": "#D73A49" })}"${_scopeId}>:</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#6F42C1" })}"${_scopeId}>UserModule</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#D73A49" })}"${_scopeId}>=</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> ({ </span><span style="${ssrRenderStyle({ "color": "#E36209" })}"${_scopeId}>isClient</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}>, </span><span style="${ssrRenderStyle({ "color": "#E36209" })}"${_scopeId}>app</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}>, </span><span style="${ssrRenderStyle({ "color": "#E36209" })}"${_scopeId}>router</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> }) </span><span style="${ssrRenderStyle({ "color": "#D73A49" })}"${_scopeId}>=&gt;</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> {</span></span>
853
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#D73A49" })}"${_scopeId}>if</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> (isClient) {</span></span>
854
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> app.</span><span style="${ssrRenderStyle({ "color": "#6F42C1" })}"${_scopeId}>use</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}>(VueGtag, {</span></span>
855
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> property: { id: </span><span style="${ssrRenderStyle({ "color": "#032F62" })}"${_scopeId}>&#39;G-1LL0D86CY9&#39;</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> },</span></span>
856
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> })</span></span>
857
+ <span class="line"${_scopeId}></span>
858
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#6F42C1" })}"${_scopeId}>trackRouter</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}>(router)</span></span>
859
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> }</span></span>
860
+ <span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}>}</span></span></code></pre></div></div><p${_scopeId}>More info see `);
861
+ _push2(ssrRenderComponent(_component_AppLink, {
862
+ href: "https://github.com/MatteoGabriele/vue-gtag-next",
863
+ target: "_blank",
864
+ rel: "noreferrer"
865
+ }, {
866
+ default: withCtx((_2, _push3, _parent3, _scopeId2) => {
867
+ if (_push3) {
868
+ _push3(`vue-gtag-next`);
869
+ } else {
870
+ return [
871
+ createTextVNode("vue-gtag-next")
872
+ ];
873
+ }
874
+ }),
875
+ _: 1
876
+ /* STABLE */
877
+ }, _parent2, _scopeId));
878
+ _push2(`.</p>`);
879
+ } else {
880
+ return [
881
+ createVNode("h2", {
882
+ lang: "zh-CN",
883
+ id: "搜索",
884
+ tabindex: "-1"
885
+ }, [
886
+ createTextVNode("搜索 "),
887
+ createVNode(_component_AppLink, {
888
+ class: "header-anchor",
889
+ href: "#搜索",
890
+ "aria-label": 'Permalink to "搜索 {lang="zh-CN"}"'
891
+ }, {
892
+ default: withCtx(() => [
893
+ createTextVNode("​")
894
+ ]),
895
+ _: 1
896
+ /* STABLE */
897
+ })
898
+ ]),
899
+ createVNode("h2", {
900
+ lang: "en",
901
+ id: "search",
902
+ tabindex: "-1"
903
+ }, [
904
+ createTextVNode("Search "),
905
+ createVNode(_component_AppLink, {
906
+ class: "header-anchor",
907
+ href: "#search",
908
+ "aria-label": 'Permalink to "Search {lang="en"}"'
909
+ }, {
910
+ default: withCtx(() => [
911
+ createTextVNode("​")
912
+ ]),
913
+ _: 1
914
+ /* STABLE */
915
+ })
916
+ ]),
917
+ createVNode("h3", {
918
+ lang: "zh-CN",
919
+ id: "本地搜索-基于-fuse-js",
920
+ tabindex: "-1"
921
+ }, [
922
+ createTextVNode("本地搜索(基于 fuse.js) "),
923
+ createVNode(_component_AppLink, {
924
+ class: "header-anchor",
925
+ href: "#本地搜索-基于-fuse-js",
926
+ "aria-label": 'Permalink to "本地搜索(基于 fuse.js) {lang="zh-CN"}"'
927
+ }, {
928
+ default: withCtx(() => [
929
+ createTextVNode("​")
930
+ ]),
931
+ _: 1
932
+ /* STABLE */
933
+ })
934
+ ]),
935
+ createVNode("h3", {
936
+ lang: "en",
937
+ id: "local-search-based-on-fuse-js",
938
+ tabindex: "-1"
939
+ }, [
940
+ createTextVNode("Local Search (Based on fuse.js) "),
941
+ createVNode(_component_AppLink, {
942
+ class: "header-anchor",
943
+ href: "#local-search-based-on-fuse-js",
944
+ "aria-label": 'Permalink to "Local Search (Based on fuse.js) {lang="en"}"'
945
+ }, {
946
+ default: withCtx(() => [
947
+ createTextVNode("​")
948
+ ]),
949
+ _: 1
950
+ /* STABLE */
951
+ })
952
+ ]),
953
+ createVNode("div", { lang: "zh-CN" }, [
954
+ createVNode("p", null, [
955
+ createTextVNode("Valaxy 内置了基于 "),
956
+ createVNode(_component_AppLink, {
957
+ href: "https://fusejs.io/",
958
+ target: "_blank",
959
+ rel: "noreferrer"
960
+ }, {
961
+ default: withCtx(() => [
962
+ createTextVNode("fuse.js")
963
+ ]),
964
+ _: 1
965
+ /* STABLE */
966
+ }),
967
+ createTextVNode(" 的离线搜索(须预先通过 "),
968
+ createVNode("code", null, "valaxy fuse"),
969
+ createTextVNode(" 构建生成本地缓存)。")
970
+ ]),
971
+ createVNode("blockquote", null, [
972
+ createVNode("p", null, [
973
+ createVNode("code", null, "valaxy fuse"),
974
+ createTextVNode(" 默认将 "),
975
+ createVNode("code", null, "fuse"),
976
+ createTextVNode(" 生成在 "),
977
+ createVNode("code", null, "public"),
978
+ createTextVNode(" 目录下,并在 "),
979
+ createVNode("code", null, ".gitignore"),
980
+ createTextVNode(" 中添加 "),
981
+ createVNode("code", null, "public/valaxy-fuse-list.json"),
982
+ createTextVNode(" 忽略。 请在 "),
983
+ createVNode("code", null, "valaxy build"),
984
+ createTextVNode(" 之前使用 "),
985
+ createVNode("code", null, "valaxy fuse"),
986
+ createTextVNode(" 构建。")
987
+ ])
988
+ ]),
989
+ createVNode("p", null, [
990
+ createTextVNode("如果你想要使用全文搜索,可参考 "),
991
+ createVNode(_component_AppLink, {
992
+ href: "https://www.fusejs.io/api/options.html",
993
+ target: "_blank",
994
+ rel: "noreferrer"
995
+ }, {
996
+ default: withCtx(() => [
997
+ createTextVNode("Options | fuse.js")
998
+ ]),
999
+ _: 1
1000
+ /* STABLE */
1001
+ }),
1002
+ createTextVNode(" 进行设置。 譬如:")
1003
+ ]),
1004
+ createVNode("div", { class: "language-ts" }, [
1005
+ createVNode("button", {
1006
+ title: "Copy Code",
1007
+ class: "copy"
1008
+ }),
1009
+ createVNode("span", { class: "lang" }, "ts"),
1010
+ createVNode("pre", { class: "shiki github-dark vp-code-dark" }, [
1011
+ createVNode("code", null, [
1012
+ createVNode("span", { class: "line" }, [
1013
+ createVNode("span", { style: { "color": "#F97583" } }, "export"),
1014
+ createVNode("span", { style: { "color": "#E1E4E8" } }, " "),
1015
+ createVNode("span", { style: { "color": "#F97583" } }, "default"),
1016
+ createVNode("span", { style: { "color": "#E1E4E8" } }, " "),
1017
+ createVNode("span", { style: { "color": "#B392F0" } }, "defineSiteConfig"),
1018
+ createVNode("span", { style: { "color": "#E1E4E8" } }, "({")
1019
+ ]),
1020
+ createTextVNode("\n"),
1021
+ createVNode("span", { class: "line" }, [
1022
+ createVNode("span", { style: { "color": "#E1E4E8" } }, " search: {")
1023
+ ]),
1024
+ createTextVNode("\n"),
1025
+ createVNode("span", { class: "line" }, [
1026
+ createVNode("span", { style: { "color": "#E1E4E8" } }, " enable: "),
1027
+ createVNode("span", { style: { "color": "#79B8FF" } }, "true"),
1028
+ createVNode("span", { style: { "color": "#E1E4E8" } }, ",")
1029
+ ]),
1030
+ createTextVNode("\n"),
1031
+ createVNode("span", { class: "line" }, [
1032
+ createVNode("span", { style: { "color": "#E1E4E8" } }, " type: "),
1033
+ createVNode("span", { style: { "color": "#9ECBFF" } }, "'fuse'"),
1034
+ createVNode("span", { style: { "color": "#E1E4E8" } }, ",")
1035
+ ]),
1036
+ createTextVNode("\n"),
1037
+ createVNode("span", { class: "line" }, [
1038
+ createVNode("span", { style: { "color": "#E1E4E8" } }, " },")
1039
+ ]),
1040
+ createTextVNode("\n"),
1041
+ createVNode("span", { class: "line" }, [
1042
+ createVNode("span", { style: { "color": "#E1E4E8" } }, " fuse: {")
1043
+ ]),
1044
+ createTextVNode("\n"),
1045
+ createVNode("span", { class: "line" }, [
1046
+ createVNode("span", { style: { "color": "#E1E4E8" } }, " options: {")
1047
+ ]),
1048
+ createTextVNode("\n"),
1049
+ createVNode("span", { class: "line" }, [
1050
+ createVNode("span", { style: { "color": "#E1E4E8" } }, " keys: ["),
1051
+ createVNode("span", { style: { "color": "#9ECBFF" } }, "'title'"),
1052
+ createVNode("span", { style: { "color": "#E1E4E8" } }, ", "),
1053
+ createVNode("span", { style: { "color": "#9ECBFF" } }, "'tags'"),
1054
+ createVNode("span", { style: { "color": "#E1E4E8" } }, ", "),
1055
+ createVNode("span", { style: { "color": "#9ECBFF" } }, "'categories'"),
1056
+ createVNode("span", { style: { "color": "#E1E4E8" } }, ", "),
1057
+ createVNode("span", { style: { "color": "#9ECBFF" } }, "'excerpt'"),
1058
+ createVNode("span", { style: { "color": "#E1E4E8" } }, ", "),
1059
+ createVNode("span", { style: { "color": "#9ECBFF" } }, "'content'"),
1060
+ createVNode("span", { style: { "color": "#E1E4E8" } }, "],")
1061
+ ]),
1062
+ createTextVNode("\n"),
1063
+ createVNode("span", { class: "line" }, [
1064
+ createVNode("span", { style: { "color": "#E1E4E8" } }, " "),
1065
+ createVNode("span", { style: { "color": "#6A737D" } }, "/**")
1066
+ ]),
1067
+ createTextVNode("\n"),
1068
+ createVNode("span", { class: "line" }, [
1069
+ createVNode("span", { style: { "color": "#6A737D" } }, " * "),
1070
+ createVNode("span", { style: { "color": "#F97583" } }, "@default"),
1071
+ createVNode("span", { style: { "color": "#6A737D" } }, " "),
1072
+ createVNode("span", { style: { "color": "#E1E4E8" } }, "0.6")
1073
+ ]),
1074
+ createTextVNode("\n"),
1075
+ createVNode("span", { class: "line" }, [
1076
+ createVNode("span", { style: { "color": "#6A737D" } }, " * "),
1077
+ createVNode("span", { style: { "color": "#F97583" } }, "@see"),
1078
+ createVNode("span", { style: { "color": "#6A737D" } }, " "),
1079
+ createVNode("span", { style: { "color": "#E1E4E8" } }, "https://www.fusejs.io/api/options.html#threshold")
1080
+ ]),
1081
+ createTextVNode("\n"),
1082
+ createVNode("span", { class: "line" }, [
1083
+ createVNode("span", { style: { "color": "#6A737D" } }, " * 设置匹配阈值,越低越精确")
1084
+ ]),
1085
+ createTextVNode("\n"),
1086
+ createVNode("span", { class: "line" }, [
1087
+ createVNode("span", { style: { "color": "#6A737D" } }, " */")
1088
+ ]),
1089
+ createTextVNode("\n"),
1090
+ createVNode("span", { class: "line" }, [
1091
+ createVNode("span", { style: { "color": "#E1E4E8" } }, " "),
1092
+ createVNode("span", { style: { "color": "#6A737D" } }, "// threshold: 0.6,")
1093
+ ]),
1094
+ createTextVNode("\n"),
1095
+ createVNode("span", { class: "line" }, [
1096
+ createVNode("span", { style: { "color": "#E1E4E8" } }, " "),
1097
+ createVNode("span", { style: { "color": "#6A737D" } }, "/**")
1098
+ ]),
1099
+ createTextVNode("\n"),
1100
+ createVNode("span", { class: "line" }, [
1101
+ createVNode("span", { style: { "color": "#6A737D" } }, " * "),
1102
+ createVNode("span", { style: { "color": "#F97583" } }, "@default"),
1103
+ createVNode("span", { style: { "color": "#6A737D" } }, " "),
1104
+ createVNode("span", { style: { "color": "#E1E4E8" } }, "false")
1105
+ ]),
1106
+ createTextVNode("\n"),
1107
+ createVNode("span", { class: "line" }, [
1108
+ createVNode("span", { style: { "color": "#6A737D" } }, " * "),
1109
+ createVNode("span", { style: { "color": "#F97583" } }, "@see"),
1110
+ createVNode("span", { style: { "color": "#6A737D" } }, " "),
1111
+ createVNode("span", { style: { "color": "#E1E4E8" } }, "https://www.fusejs.io/api/options.html#ignoreLocation")
1112
+ ]),
1113
+ createTextVNode("\n"),
1114
+ createVNode("span", { class: "line" }, [
1115
+ createVNode("span", { style: { "color": "#6A737D" } }, " * 忽略位置")
1116
+ ]),
1117
+ createTextVNode("\n"),
1118
+ createVNode("span", { class: "line" }, [
1119
+ createVNode("span", { style: { "color": "#6A737D" } }, " * 这对于搜索文档全文内容有用,若无需全文搜索,则无需设置此项")
1120
+ ]),
1121
+ createTextVNode("\n"),
1122
+ createVNode("span", { class: "line" }, [
1123
+ createVNode("span", { style: { "color": "#6A737D" } }, " */")
1124
+ ]),
1125
+ createTextVNode("\n"),
1126
+ createVNode("span", { class: "line" }, [
1127
+ createVNode("span", { style: { "color": "#E1E4E8" } }, " ignoreLocation: "),
1128
+ createVNode("span", { style: { "color": "#79B8FF" } }, "true"),
1129
+ createVNode("span", { style: { "color": "#E1E4E8" } }, ",")
1130
+ ]),
1131
+ createTextVNode("\n"),
1132
+ createVNode("span", { class: "line" }, [
1133
+ createVNode("span", { style: { "color": "#E1E4E8" } }, " },")
1134
+ ]),
1135
+ createTextVNode("\n"),
1136
+ createVNode("span", { class: "line" }, [
1137
+ createVNode("span", { style: { "color": "#E1E4E8" } }, " },")
1138
+ ]),
1139
+ createTextVNode("\n"),
1140
+ createVNode("span", { class: "line" }, [
1141
+ createVNode("span", { style: { "color": "#E1E4E8" } }, "})")
1142
+ ])
1143
+ ])
1144
+ ]),
1145
+ createVNode("pre", { class: "shiki github-light vp-code-light" }, [
1146
+ createVNode("code", null, [
1147
+ createVNode("span", { class: "line" }, [
1148
+ createVNode("span", { style: { "color": "#D73A49" } }, "export"),
1149
+ createVNode("span", { style: { "color": "#24292E" } }, " "),
1150
+ createVNode("span", { style: { "color": "#D73A49" } }, "default"),
1151
+ createVNode("span", { style: { "color": "#24292E" } }, " "),
1152
+ createVNode("span", { style: { "color": "#6F42C1" } }, "defineSiteConfig"),
1153
+ createVNode("span", { style: { "color": "#24292E" } }, "({")
1154
+ ]),
1155
+ createTextVNode("\n"),
1156
+ createVNode("span", { class: "line" }, [
1157
+ createVNode("span", { style: { "color": "#24292E" } }, " search: {")
1158
+ ]),
1159
+ createTextVNode("\n"),
1160
+ createVNode("span", { class: "line" }, [
1161
+ createVNode("span", { style: { "color": "#24292E" } }, " enable: "),
1162
+ createVNode("span", { style: { "color": "#005CC5" } }, "true"),
1163
+ createVNode("span", { style: { "color": "#24292E" } }, ",")
1164
+ ]),
1165
+ createTextVNode("\n"),
1166
+ createVNode("span", { class: "line" }, [
1167
+ createVNode("span", { style: { "color": "#24292E" } }, " type: "),
1168
+ createVNode("span", { style: { "color": "#032F62" } }, "'fuse'"),
1169
+ createVNode("span", { style: { "color": "#24292E" } }, ",")
1170
+ ]),
1171
+ createTextVNode("\n"),
1172
+ createVNode("span", { class: "line" }, [
1173
+ createVNode("span", { style: { "color": "#24292E" } }, " },")
1174
+ ]),
1175
+ createTextVNode("\n"),
1176
+ createVNode("span", { class: "line" }, [
1177
+ createVNode("span", { style: { "color": "#24292E" } }, " fuse: {")
1178
+ ]),
1179
+ createTextVNode("\n"),
1180
+ createVNode("span", { class: "line" }, [
1181
+ createVNode("span", { style: { "color": "#24292E" } }, " options: {")
1182
+ ]),
1183
+ createTextVNode("\n"),
1184
+ createVNode("span", { class: "line" }, [
1185
+ createVNode("span", { style: { "color": "#24292E" } }, " keys: ["),
1186
+ createVNode("span", { style: { "color": "#032F62" } }, "'title'"),
1187
+ createVNode("span", { style: { "color": "#24292E" } }, ", "),
1188
+ createVNode("span", { style: { "color": "#032F62" } }, "'tags'"),
1189
+ createVNode("span", { style: { "color": "#24292E" } }, ", "),
1190
+ createVNode("span", { style: { "color": "#032F62" } }, "'categories'"),
1191
+ createVNode("span", { style: { "color": "#24292E" } }, ", "),
1192
+ createVNode("span", { style: { "color": "#032F62" } }, "'excerpt'"),
1193
+ createVNode("span", { style: { "color": "#24292E" } }, ", "),
1194
+ createVNode("span", { style: { "color": "#032F62" } }, "'content'"),
1195
+ createVNode("span", { style: { "color": "#24292E" } }, "],")
1196
+ ]),
1197
+ createTextVNode("\n"),
1198
+ createVNode("span", { class: "line" }, [
1199
+ createVNode("span", { style: { "color": "#24292E" } }, " "),
1200
+ createVNode("span", { style: { "color": "#6A737D" } }, "/**")
1201
+ ]),
1202
+ createTextVNode("\n"),
1203
+ createVNode("span", { class: "line" }, [
1204
+ createVNode("span", { style: { "color": "#6A737D" } }, " * "),
1205
+ createVNode("span", { style: { "color": "#D73A49" } }, "@default"),
1206
+ createVNode("span", { style: { "color": "#6A737D" } }, " "),
1207
+ createVNode("span", { style: { "color": "#24292E" } }, "0.6")
1208
+ ]),
1209
+ createTextVNode("\n"),
1210
+ createVNode("span", { class: "line" }, [
1211
+ createVNode("span", { style: { "color": "#6A737D" } }, " * "),
1212
+ createVNode("span", { style: { "color": "#D73A49" } }, "@see"),
1213
+ createVNode("span", { style: { "color": "#6A737D" } }, " "),
1214
+ createVNode("span", { style: { "color": "#24292E" } }, "https://www.fusejs.io/api/options.html#threshold")
1215
+ ]),
1216
+ createTextVNode("\n"),
1217
+ createVNode("span", { class: "line" }, [
1218
+ createVNode("span", { style: { "color": "#6A737D" } }, " * 设置匹配阈值,越低越精确")
1219
+ ]),
1220
+ createTextVNode("\n"),
1221
+ createVNode("span", { class: "line" }, [
1222
+ createVNode("span", { style: { "color": "#6A737D" } }, " */")
1223
+ ]),
1224
+ createTextVNode("\n"),
1225
+ createVNode("span", { class: "line" }, [
1226
+ createVNode("span", { style: { "color": "#24292E" } }, " "),
1227
+ createVNode("span", { style: { "color": "#6A737D" } }, "// threshold: 0.6,")
1228
+ ]),
1229
+ createTextVNode("\n"),
1230
+ createVNode("span", { class: "line" }, [
1231
+ createVNode("span", { style: { "color": "#24292E" } }, " "),
1232
+ createVNode("span", { style: { "color": "#6A737D" } }, "/**")
1233
+ ]),
1234
+ createTextVNode("\n"),
1235
+ createVNode("span", { class: "line" }, [
1236
+ createVNode("span", { style: { "color": "#6A737D" } }, " * "),
1237
+ createVNode("span", { style: { "color": "#D73A49" } }, "@default"),
1238
+ createVNode("span", { style: { "color": "#6A737D" } }, " "),
1239
+ createVNode("span", { style: { "color": "#24292E" } }, "false")
1240
+ ]),
1241
+ createTextVNode("\n"),
1242
+ createVNode("span", { class: "line" }, [
1243
+ createVNode("span", { style: { "color": "#6A737D" } }, " * "),
1244
+ createVNode("span", { style: { "color": "#D73A49" } }, "@see"),
1245
+ createVNode("span", { style: { "color": "#6A737D" } }, " "),
1246
+ createVNode("span", { style: { "color": "#24292E" } }, "https://www.fusejs.io/api/options.html#ignoreLocation")
1247
+ ]),
1248
+ createTextVNode("\n"),
1249
+ createVNode("span", { class: "line" }, [
1250
+ createVNode("span", { style: { "color": "#6A737D" } }, " * 忽略位置")
1251
+ ]),
1252
+ createTextVNode("\n"),
1253
+ createVNode("span", { class: "line" }, [
1254
+ createVNode("span", { style: { "color": "#6A737D" } }, " * 这对于搜索文档全文内容有用,若无需全文搜索,则无需设置此项")
1255
+ ]),
1256
+ createTextVNode("\n"),
1257
+ createVNode("span", { class: "line" }, [
1258
+ createVNode("span", { style: { "color": "#6A737D" } }, " */")
1259
+ ]),
1260
+ createTextVNode("\n"),
1261
+ createVNode("span", { class: "line" }, [
1262
+ createVNode("span", { style: { "color": "#24292E" } }, " ignoreLocation: "),
1263
+ createVNode("span", { style: { "color": "#005CC5" } }, "true"),
1264
+ createVNode("span", { style: { "color": "#24292E" } }, ",")
1265
+ ]),
1266
+ createTextVNode("\n"),
1267
+ createVNode("span", { class: "line" }, [
1268
+ createVNode("span", { style: { "color": "#24292E" } }, " },")
1269
+ ]),
1270
+ createTextVNode("\n"),
1271
+ createVNode("span", { class: "line" }, [
1272
+ createVNode("span", { style: { "color": "#24292E" } }, " },")
1273
+ ]),
1274
+ createTextVNode("\n"),
1275
+ createVNode("span", { class: "line" }, [
1276
+ createVNode("span", { style: { "color": "#24292E" } }, "})")
1277
+ ])
1278
+ ])
1279
+ ])
1280
+ ])
1281
+ ]),
1282
+ createVNode("div", { lang: "en" }, [
1283
+ createVNode("p", null, [
1284
+ createTextVNode("Valaxy has built-in local search based on "),
1285
+ createVNode(_component_AppLink, {
1286
+ href: "https://fusejs.io/",
1287
+ target: "_blank",
1288
+ rel: "noreferrer"
1289
+ }, {
1290
+ default: withCtx(() => [
1291
+ createTextVNode("fuse.js")
1292
+ ]),
1293
+ _: 1
1294
+ /* STABLE */
1295
+ }),
1296
+ createTextVNode(". The local cache should be generated in advance via "),
1297
+ createVNode("code", null, "valaxy fuse"),
1298
+ createTextVNode(".")
1299
+ ]),
1300
+ createVNode("blockquote", null, [
1301
+ createVNode("p", null, [
1302
+ createVNode("code", null, "valaxy fuse"),
1303
+ createTextVNode(" generates "),
1304
+ createVNode("code", null, "fuse"),
1305
+ createTextVNode(" in the "),
1306
+ createVNode("code", null, "public"),
1307
+ createTextVNode(" directory by default. Please use "),
1308
+ createVNode("code", null, "valaxy fuse"),
1309
+ createTextVNode(" before "),
1310
+ createVNode("code", null, "valaxy build"),
1311
+ createTextVNode(".")
1312
+ ])
1313
+ ])
1314
+ ]),
1315
+ createVNode("h4", {
1316
+ lang: "zh-CN",
1317
+ id: "使用",
1318
+ tabindex: "-1"
1319
+ }, [
1320
+ createTextVNode("使用 "),
1321
+ createVNode(_component_AppLink, {
1322
+ class: "header-anchor",
1323
+ href: "#使用",
1324
+ "aria-label": 'Permalink to "使用 {lang="zh-CN"}"'
1325
+ }, {
1326
+ default: withCtx(() => [
1327
+ createTextVNode("​")
1328
+ ]),
1329
+ _: 1
1330
+ /* STABLE */
1331
+ })
1332
+ ]),
1333
+ createVNode("h4", {
1334
+ lang: "en",
1335
+ id: "setup",
1336
+ tabindex: "-1"
1337
+ }, [
1338
+ createTextVNode("Setup "),
1339
+ createVNode(_component_AppLink, {
1340
+ class: "header-anchor",
1341
+ href: "#setup",
1342
+ "aria-label": 'Permalink to "Setup {lang="en"}"'
1343
+ }, {
1344
+ default: withCtx(() => [
1345
+ createTextVNode("​")
1346
+ ]),
1347
+ _: 1
1348
+ /* STABLE */
1349
+ })
1350
+ ]),
1351
+ createVNode("div", { lang: "zh-CN" }, [
1352
+ createVNode("div", { class: "language-ts" }, [
1353
+ createVNode("button", {
1354
+ title: "Copy Code",
1355
+ class: "copy"
1356
+ }),
1357
+ createVNode("span", { class: "lang" }, "ts"),
1358
+ createVNode("pre", { class: "shiki github-dark vp-code-dark" }, [
1359
+ createVNode("code", null, [
1360
+ createVNode("span", { class: "line" }, [
1361
+ createVNode("span", { style: { "color": "#6A737D" } }, "// site.config.ts")
1362
+ ]),
1363
+ createTextVNode("\n"),
1364
+ createVNode("span", { class: "line" }, [
1365
+ createVNode("span", { style: { "color": "#F97583" } }, "import"),
1366
+ createVNode("span", { style: { "color": "#E1E4E8" } }, " { defineSiteConfig } "),
1367
+ createVNode("span", { style: { "color": "#F97583" } }, "from"),
1368
+ createVNode("span", { style: { "color": "#E1E4E8" } }, " "),
1369
+ createVNode("span", { style: { "color": "#9ECBFF" } }, "'valaxy'")
1370
+ ]),
1371
+ createTextVNode("\n"),
1372
+ createVNode("span", { class: "line" }),
1373
+ createTextVNode("\n"),
1374
+ createVNode("span", { class: "line" }, [
1375
+ createVNode("span", { style: { "color": "#F97583" } }, "export"),
1376
+ createVNode("span", { style: { "color": "#E1E4E8" } }, " "),
1377
+ createVNode("span", { style: { "color": "#F97583" } }, "default"),
1378
+ createVNode("span", { style: { "color": "#E1E4E8" } }, " "),
1379
+ createVNode("span", { style: { "color": "#B392F0" } }, "defineSiteConfig"),
1380
+ createVNode("span", { style: { "color": "#E1E4E8" } }, "({")
1381
+ ]),
1382
+ createTextVNode("\n"),
1383
+ createVNode("span", { class: "line" }, [
1384
+ createVNode("span", { style: { "color": "#E1E4E8" } }, " search: {")
1385
+ ]),
1386
+ createTextVNode("\n"),
1387
+ createVNode("span", { class: "line" }, [
1388
+ createVNode("span", { style: { "color": "#E1E4E8" } }, " enable: "),
1389
+ createVNode("span", { style: { "color": "#79B8FF" } }, "true"),
1390
+ createVNode("span", { style: { "color": "#E1E4E8" } }, ",")
1391
+ ]),
1392
+ createTextVNode("\n"),
1393
+ createVNode("span", { class: "line" }, [
1394
+ createVNode("span", { style: { "color": "#E1E4E8" } }, " "),
1395
+ createVNode("span", { style: { "color": "#6A737D" } }, "// 设置类型为 Fuse")
1396
+ ]),
1397
+ createTextVNode("\n"),
1398
+ createVNode("span", { class: "line" }, [
1399
+ createVNode("span", { style: { "color": "#E1E4E8" } }, " type: "),
1400
+ createVNode("span", { style: { "color": "#9ECBFF" } }, "'fuse'"),
1401
+ createVNode("span", { style: { "color": "#E1E4E8" } }, ",")
1402
+ ]),
1403
+ createTextVNode("\n"),
1404
+ createVNode("span", { class: "line" }, [
1405
+ createVNode("span", { style: { "color": "#E1E4E8" } }, " },")
1406
+ ]),
1407
+ createTextVNode("\n"),
1408
+ createVNode("span", { class: "line" }, [
1409
+ createVNode("span", { style: { "color": "#E1E4E8" } }, "})")
1410
+ ])
1411
+ ])
1412
+ ]),
1413
+ createVNode("pre", { class: "shiki github-light vp-code-light" }, [
1414
+ createVNode("code", null, [
1415
+ createVNode("span", { class: "line" }, [
1416
+ createVNode("span", { style: { "color": "#6A737D" } }, "// site.config.ts")
1417
+ ]),
1418
+ createTextVNode("\n"),
1419
+ createVNode("span", { class: "line" }, [
1420
+ createVNode("span", { style: { "color": "#D73A49" } }, "import"),
1421
+ createVNode("span", { style: { "color": "#24292E" } }, " { defineSiteConfig } "),
1422
+ createVNode("span", { style: { "color": "#D73A49" } }, "from"),
1423
+ createVNode("span", { style: { "color": "#24292E" } }, " "),
1424
+ createVNode("span", { style: { "color": "#032F62" } }, "'valaxy'")
1425
+ ]),
1426
+ createTextVNode("\n"),
1427
+ createVNode("span", { class: "line" }),
1428
+ createTextVNode("\n"),
1429
+ createVNode("span", { class: "line" }, [
1430
+ createVNode("span", { style: { "color": "#D73A49" } }, "export"),
1431
+ createVNode("span", { style: { "color": "#24292E" } }, " "),
1432
+ createVNode("span", { style: { "color": "#D73A49" } }, "default"),
1433
+ createVNode("span", { style: { "color": "#24292E" } }, " "),
1434
+ createVNode("span", { style: { "color": "#6F42C1" } }, "defineSiteConfig"),
1435
+ createVNode("span", { style: { "color": "#24292E" } }, "({")
1436
+ ]),
1437
+ createTextVNode("\n"),
1438
+ createVNode("span", { class: "line" }, [
1439
+ createVNode("span", { style: { "color": "#24292E" } }, " search: {")
1440
+ ]),
1441
+ createTextVNode("\n"),
1442
+ createVNode("span", { class: "line" }, [
1443
+ createVNode("span", { style: { "color": "#24292E" } }, " enable: "),
1444
+ createVNode("span", { style: { "color": "#005CC5" } }, "true"),
1445
+ createVNode("span", { style: { "color": "#24292E" } }, ",")
1446
+ ]),
1447
+ createTextVNode("\n"),
1448
+ createVNode("span", { class: "line" }, [
1449
+ createVNode("span", { style: { "color": "#24292E" } }, " "),
1450
+ createVNode("span", { style: { "color": "#6A737D" } }, "// 设置类型为 Fuse")
1451
+ ]),
1452
+ createTextVNode("\n"),
1453
+ createVNode("span", { class: "line" }, [
1454
+ createVNode("span", { style: { "color": "#24292E" } }, " type: "),
1455
+ createVNode("span", { style: { "color": "#032F62" } }, "'fuse'"),
1456
+ createVNode("span", { style: { "color": "#24292E" } }, ",")
1457
+ ]),
1458
+ createTextVNode("\n"),
1459
+ createVNode("span", { class: "line" }, [
1460
+ createVNode("span", { style: { "color": "#24292E" } }, " },")
1461
+ ]),
1462
+ createTextVNode("\n"),
1463
+ createVNode("span", { class: "line" }, [
1464
+ createVNode("span", { style: { "color": "#24292E" } }, "})")
1465
+ ])
1466
+ ])
1467
+ ])
1468
+ ]),
1469
+ createVNode("ul", null, [
1470
+ createVNode("li", null, [
1471
+ createTextVNode("在你的 "),
1472
+ createVNode("code", null, "package.json"),
1473
+ createTextVNode(" 中添加 fuse 生成脚本")
1474
+ ])
1475
+ ])
1476
+ ]),
1477
+ createVNode("div", { lang: "en" }, [
1478
+ createVNode("div", { class: "language-ts" }, [
1479
+ createVNode("button", {
1480
+ title: "Copy Code",
1481
+ class: "copy"
1482
+ }),
1483
+ createVNode("span", { class: "lang" }, "ts"),
1484
+ createVNode("pre", { class: "shiki github-dark has-highlighted-lines vp-code-dark" }, [
1485
+ createVNode("code", null, [
1486
+ createVNode("span", { class: "line" }, [
1487
+ createVNode("span", { style: { "color": "#6A737D" } }, "// site.config.ts")
1488
+ ]),
1489
+ createTextVNode("\n"),
1490
+ createVNode("span", { class: "line" }, [
1491
+ createVNode("span", { style: { "color": "#F97583" } }, "import"),
1492
+ createVNode("span", { style: { "color": "#E1E4E8" } }, " { defineSiteConfig } "),
1493
+ createVNode("span", { style: { "color": "#F97583" } }, "from"),
1494
+ createVNode("span", { style: { "color": "#E1E4E8" } }, " "),
1495
+ createVNode("span", { style: { "color": "#9ECBFF" } }, "'valaxy'")
1496
+ ]),
1497
+ createTextVNode("\n"),
1498
+ createVNode("span", { class: "line" }),
1499
+ createTextVNode("\n"),
1500
+ createVNode("span", { class: "line" }, [
1501
+ createVNode("span", { style: { "color": "#F97583" } }, "export"),
1502
+ createVNode("span", { style: { "color": "#E1E4E8" } }, " "),
1503
+ createVNode("span", { style: { "color": "#F97583" } }, "default"),
1504
+ createVNode("span", { style: { "color": "#E1E4E8" } }, " "),
1505
+ createVNode("span", { style: { "color": "#B392F0" } }, "defineSiteConfig"),
1506
+ createVNode("span", { style: { "color": "#E1E4E8" } }, "({")
1507
+ ]),
1508
+ createTextVNode("\n"),
1509
+ createVNode("span", { class: "line" }, [
1510
+ createVNode("span", { style: { "color": "#E1E4E8" } }, " search: {")
1511
+ ]),
1512
+ createTextVNode("\n"),
1513
+ createVNode("span", { class: "line" }, [
1514
+ createVNode("span", { style: { "color": "#E1E4E8" } }, " enable: "),
1515
+ createVNode("span", { style: { "color": "#79B8FF" } }, "true"),
1516
+ createVNode("span", { style: { "color": "#E1E4E8" } }, ",")
1517
+ ]),
1518
+ createTextVNode("\n"),
1519
+ createVNode("span", { class: "line highlighted" }, [
1520
+ createVNode("span", { style: { "color": "#E1E4E8" } }, " "),
1521
+ createVNode("span", { style: { "color": "#6A737D" } }, "// Set type to 'fuse'")
1522
+ ]),
1523
+ createTextVNode("\n"),
1524
+ createVNode("span", { class: "line" }, [
1525
+ createVNode("span", { style: { "color": "#E1E4E8" } }, " type: "),
1526
+ createVNode("span", { style: { "color": "#9ECBFF" } }, "'fuse'"),
1527
+ createVNode("span", { style: { "color": "#E1E4E8" } }, ",")
1528
+ ]),
1529
+ createTextVNode("\n"),
1530
+ createVNode("span", { class: "line" }, [
1531
+ createVNode("span", { style: { "color": "#E1E4E8" } }, " },")
1532
+ ]),
1533
+ createTextVNode("\n"),
1534
+ createVNode("span", { class: "line" }, [
1535
+ createVNode("span", { style: { "color": "#E1E4E8" } }, "})")
1536
+ ])
1537
+ ])
1538
+ ]),
1539
+ createVNode("pre", { class: "shiki github-light has-highlighted-lines vp-code-light" }, [
1540
+ createVNode("code", null, [
1541
+ createVNode("span", { class: "line" }, [
1542
+ createVNode("span", { style: { "color": "#6A737D" } }, "// site.config.ts")
1543
+ ]),
1544
+ createTextVNode("\n"),
1545
+ createVNode("span", { class: "line" }, [
1546
+ createVNode("span", { style: { "color": "#D73A49" } }, "import"),
1547
+ createVNode("span", { style: { "color": "#24292E" } }, " { defineSiteConfig } "),
1548
+ createVNode("span", { style: { "color": "#D73A49" } }, "from"),
1549
+ createVNode("span", { style: { "color": "#24292E" } }, " "),
1550
+ createVNode("span", { style: { "color": "#032F62" } }, "'valaxy'")
1551
+ ]),
1552
+ createTextVNode("\n"),
1553
+ createVNode("span", { class: "line" }),
1554
+ createTextVNode("\n"),
1555
+ createVNode("span", { class: "line" }, [
1556
+ createVNode("span", { style: { "color": "#D73A49" } }, "export"),
1557
+ createVNode("span", { style: { "color": "#24292E" } }, " "),
1558
+ createVNode("span", { style: { "color": "#D73A49" } }, "default"),
1559
+ createVNode("span", { style: { "color": "#24292E" } }, " "),
1560
+ createVNode("span", { style: { "color": "#6F42C1" } }, "defineSiteConfig"),
1561
+ createVNode("span", { style: { "color": "#24292E" } }, "({")
1562
+ ]),
1563
+ createTextVNode("\n"),
1564
+ createVNode("span", { class: "line" }, [
1565
+ createVNode("span", { style: { "color": "#24292E" } }, " search: {")
1566
+ ]),
1567
+ createTextVNode("\n"),
1568
+ createVNode("span", { class: "line" }, [
1569
+ createVNode("span", { style: { "color": "#24292E" } }, " enable: "),
1570
+ createVNode("span", { style: { "color": "#005CC5" } }, "true"),
1571
+ createVNode("span", { style: { "color": "#24292E" } }, ",")
1572
+ ]),
1573
+ createTextVNode("\n"),
1574
+ createVNode("span", { class: "line highlighted" }, [
1575
+ createVNode("span", { style: { "color": "#24292E" } }, " "),
1576
+ createVNode("span", { style: { "color": "#6A737D" } }, "// Set type to 'fuse'")
1577
+ ]),
1578
+ createTextVNode("\n"),
1579
+ createVNode("span", { class: "line" }, [
1580
+ createVNode("span", { style: { "color": "#24292E" } }, " type: "),
1581
+ createVNode("span", { style: { "color": "#032F62" } }, "'fuse'"),
1582
+ createVNode("span", { style: { "color": "#24292E" } }, ",")
1583
+ ]),
1584
+ createTextVNode("\n"),
1585
+ createVNode("span", { class: "line" }, [
1586
+ createVNode("span", { style: { "color": "#24292E" } }, " },")
1587
+ ]),
1588
+ createTextVNode("\n"),
1589
+ createVNode("span", { class: "line" }, [
1590
+ createVNode("span", { style: { "color": "#24292E" } }, "})")
1591
+ ])
1592
+ ])
1593
+ ])
1594
+ ]),
1595
+ createVNode("ul", null, [
1596
+ createVNode("li", null, [
1597
+ createTextVNode("Add fuse generation script in your "),
1598
+ createVNode("code", null, "package.json")
1599
+ ])
1600
+ ])
1601
+ ]),
1602
+ createVNode("div", { class: "language-json" }, [
1603
+ createVNode("button", {
1604
+ title: "Copy Code",
1605
+ class: "copy"
1606
+ }),
1607
+ createVNode("span", { class: "lang" }, "json"),
1608
+ createVNode("pre", { class: "shiki github-dark has-highlighted-lines vp-code-dark" }, [
1609
+ createVNode("code", null, [
1610
+ createVNode("span", { class: "line" }, [
1611
+ createVNode("span", { style: { "color": "#E1E4E8" } }, "{")
1612
+ ]),
1613
+ createTextVNode("\n"),
1614
+ createVNode("span", { class: "line" }, [
1615
+ createVNode("span", { style: { "color": "#E1E4E8" } }, " "),
1616
+ createVNode("span", { style: { "color": "#79B8FF" } }, '"name"'),
1617
+ createVNode("span", { style: { "color": "#E1E4E8" } }, ": "),
1618
+ createVNode("span", { style: { "color": "#9ECBFF" } }, '"yun-demo"'),
1619
+ createVNode("span", { style: { "color": "#E1E4E8" } }, ",")
1620
+ ]),
1621
+ createTextVNode("\n"),
1622
+ createVNode("span", { class: "line" }, [
1623
+ createVNode("span", { style: { "color": "#E1E4E8" } }, " "),
1624
+ createVNode("span", { style: { "color": "#79B8FF" } }, '"valaxy"'),
1625
+ createVNode("span", { style: { "color": "#E1E4E8" } }, ": {")
1626
+ ]),
1627
+ createTextVNode("\n"),
1628
+ createVNode("span", { class: "line" }, [
1629
+ createVNode("span", { style: { "color": "#E1E4E8" } }, " "),
1630
+ createVNode("span", { style: { "color": "#79B8FF" } }, '"theme"'),
1631
+ createVNode("span", { style: { "color": "#E1E4E8" } }, ": "),
1632
+ createVNode("span", { style: { "color": "#9ECBFF" } }, '"yun"')
1633
+ ]),
1634
+ createTextVNode("\n"),
1635
+ createVNode("span", { class: "line" }, [
1636
+ createVNode("span", { style: { "color": "#E1E4E8" } }, " },")
1637
+ ]),
1638
+ createTextVNode("\n"),
1639
+ createVNode("span", { class: "line" }, [
1640
+ createVNode("span", { style: { "color": "#E1E4E8" } }, " "),
1641
+ createVNode("span", { style: { "color": "#79B8FF" } }, '"scripts"'),
1642
+ createVNode("span", { style: { "color": "#E1E4E8" } }, ": {")
1643
+ ]),
1644
+ createTextVNode("\n"),
1645
+ createVNode("span", { class: "line highlighted" }, [
1646
+ createVNode("span", { style: { "color": "#E1E4E8" } }, " "),
1647
+ createVNode("span", { style: { "color": "#79B8FF" } }, '"build"'),
1648
+ createVNode("span", { style: { "color": "#E1E4E8" } }, ": "),
1649
+ createVNode("span", { style: { "color": "#9ECBFF" } }, '"npm run fuse && npm run build:ssg"'),
1650
+ createVNode("span", { style: { "color": "#E1E4E8" } }, ",")
1651
+ ]),
1652
+ createTextVNode("\n"),
1653
+ createVNode("span", { class: "line" }, [
1654
+ createVNode("span", { style: { "color": "#E1E4E8" } }, " "),
1655
+ createVNode("span", { style: { "color": "#79B8FF" } }, '"build:ssg"'),
1656
+ createVNode("span", { style: { "color": "#E1E4E8" } }, ": "),
1657
+ createVNode("span", { style: { "color": "#9ECBFF" } }, '"valaxy build --ssg"'),
1658
+ createVNode("span", { style: { "color": "#E1E4E8" } }, ",")
1659
+ ]),
1660
+ createTextVNode("\n"),
1661
+ createVNode("span", { class: "line highlighted" }, [
1662
+ createVNode("span", { style: { "color": "#E1E4E8" } }, " "),
1663
+ createVNode("span", { style: { "color": "#79B8FF" } }, '"fuse"'),
1664
+ createVNode("span", { style: { "color": "#E1E4E8" } }, ": "),
1665
+ createVNode("span", { style: { "color": "#9ECBFF" } }, '"valaxy fuse"'),
1666
+ createVNode("span", { style: { "color": "#E1E4E8" } }, ",")
1667
+ ]),
1668
+ createTextVNode("\n"),
1669
+ createVNode("span", { class: "line" }, [
1670
+ createVNode("span", { style: { "color": "#E1E4E8" } }, " "),
1671
+ createVNode("span", { style: { "color": "#79B8FF" } }, '"rss"'),
1672
+ createVNode("span", { style: { "color": "#E1E4E8" } }, ": "),
1673
+ createVNode("span", { style: { "color": "#9ECBFF" } }, '"valaxy rss"')
1674
+ ]),
1675
+ createTextVNode("\n"),
1676
+ createVNode("span", { class: "line" }, [
1677
+ createVNode("span", { style: { "color": "#E1E4E8" } }, " },")
1678
+ ]),
1679
+ createTextVNode("\n"),
1680
+ createVNode("span", { class: "line" }, [
1681
+ createVNode("span", { style: { "color": "#E1E4E8" } }, " "),
1682
+ createVNode("span", { style: { "color": "#79B8FF" } }, '"dependencies"'),
1683
+ createVNode("span", { style: { "color": "#E1E4E8" } }, ": {")
1684
+ ]),
1685
+ createTextVNode("\n"),
1686
+ createVNode("span", { class: "line" }, [
1687
+ createVNode("span", { style: { "color": "#E1E4E8" } }, " "),
1688
+ createVNode("span", { style: { "color": "#79B8FF" } }, '"valaxy"'),
1689
+ createVNode("span", { style: { "color": "#E1E4E8" } }, ": "),
1690
+ createVNode("span", { style: { "color": "#9ECBFF" } }, '"latest"'),
1691
+ createVNode("span", { style: { "color": "#E1E4E8" } }, ",")
1692
+ ]),
1693
+ createTextVNode("\n"),
1694
+ createVNode("span", { class: "line" }, [
1695
+ createVNode("span", { style: { "color": "#E1E4E8" } }, " "),
1696
+ createVNode("span", { style: { "color": "#79B8FF" } }, '"valaxy-theme-yun"'),
1697
+ createVNode("span", { style: { "color": "#E1E4E8" } }, ": "),
1698
+ createVNode("span", { style: { "color": "#9ECBFF" } }, '"latest"')
1699
+ ]),
1700
+ createTextVNode("\n"),
1701
+ createVNode("span", { class: "line" }, [
1702
+ createVNode("span", { style: { "color": "#E1E4E8" } }, " }")
1703
+ ]),
1704
+ createTextVNode("\n"),
1705
+ createVNode("span", { class: "line" }, [
1706
+ createVNode("span", { style: { "color": "#E1E4E8" } }, "}")
1707
+ ])
1708
+ ])
1709
+ ]),
1710
+ createVNode("pre", { class: "shiki github-light has-highlighted-lines vp-code-light" }, [
1711
+ createVNode("code", null, [
1712
+ createVNode("span", { class: "line" }, [
1713
+ createVNode("span", { style: { "color": "#24292E" } }, "{")
1714
+ ]),
1715
+ createTextVNode("\n"),
1716
+ createVNode("span", { class: "line" }, [
1717
+ createVNode("span", { style: { "color": "#24292E" } }, " "),
1718
+ createVNode("span", { style: { "color": "#005CC5" } }, '"name"'),
1719
+ createVNode("span", { style: { "color": "#24292E" } }, ": "),
1720
+ createVNode("span", { style: { "color": "#032F62" } }, '"yun-demo"'),
1721
+ createVNode("span", { style: { "color": "#24292E" } }, ",")
1722
+ ]),
1723
+ createTextVNode("\n"),
1724
+ createVNode("span", { class: "line" }, [
1725
+ createVNode("span", { style: { "color": "#24292E" } }, " "),
1726
+ createVNode("span", { style: { "color": "#005CC5" } }, '"valaxy"'),
1727
+ createVNode("span", { style: { "color": "#24292E" } }, ": {")
1728
+ ]),
1729
+ createTextVNode("\n"),
1730
+ createVNode("span", { class: "line" }, [
1731
+ createVNode("span", { style: { "color": "#24292E" } }, " "),
1732
+ createVNode("span", { style: { "color": "#005CC5" } }, '"theme"'),
1733
+ createVNode("span", { style: { "color": "#24292E" } }, ": "),
1734
+ createVNode("span", { style: { "color": "#032F62" } }, '"yun"')
1735
+ ]),
1736
+ createTextVNode("\n"),
1737
+ createVNode("span", { class: "line" }, [
1738
+ createVNode("span", { style: { "color": "#24292E" } }, " },")
1739
+ ]),
1740
+ createTextVNode("\n"),
1741
+ createVNode("span", { class: "line" }, [
1742
+ createVNode("span", { style: { "color": "#24292E" } }, " "),
1743
+ createVNode("span", { style: { "color": "#005CC5" } }, '"scripts"'),
1744
+ createVNode("span", { style: { "color": "#24292E" } }, ": {")
1745
+ ]),
1746
+ createTextVNode("\n"),
1747
+ createVNode("span", { class: "line highlighted" }, [
1748
+ createVNode("span", { style: { "color": "#24292E" } }, " "),
1749
+ createVNode("span", { style: { "color": "#005CC5" } }, '"build"'),
1750
+ createVNode("span", { style: { "color": "#24292E" } }, ": "),
1751
+ createVNode("span", { style: { "color": "#032F62" } }, '"npm run fuse && npm run build:ssg"'),
1752
+ createVNode("span", { style: { "color": "#24292E" } }, ",")
1753
+ ]),
1754
+ createTextVNode("\n"),
1755
+ createVNode("span", { class: "line" }, [
1756
+ createVNode("span", { style: { "color": "#24292E" } }, " "),
1757
+ createVNode("span", { style: { "color": "#005CC5" } }, '"build:ssg"'),
1758
+ createVNode("span", { style: { "color": "#24292E" } }, ": "),
1759
+ createVNode("span", { style: { "color": "#032F62" } }, '"valaxy build --ssg"'),
1760
+ createVNode("span", { style: { "color": "#24292E" } }, ",")
1761
+ ]),
1762
+ createTextVNode("\n"),
1763
+ createVNode("span", { class: "line highlighted" }, [
1764
+ createVNode("span", { style: { "color": "#24292E" } }, " "),
1765
+ createVNode("span", { style: { "color": "#005CC5" } }, '"fuse"'),
1766
+ createVNode("span", { style: { "color": "#24292E" } }, ": "),
1767
+ createVNode("span", { style: { "color": "#032F62" } }, '"valaxy fuse"'),
1768
+ createVNode("span", { style: { "color": "#24292E" } }, ",")
1769
+ ]),
1770
+ createTextVNode("\n"),
1771
+ createVNode("span", { class: "line" }, [
1772
+ createVNode("span", { style: { "color": "#24292E" } }, " "),
1773
+ createVNode("span", { style: { "color": "#005CC5" } }, '"rss"'),
1774
+ createVNode("span", { style: { "color": "#24292E" } }, ": "),
1775
+ createVNode("span", { style: { "color": "#032F62" } }, '"valaxy rss"')
1776
+ ]),
1777
+ createTextVNode("\n"),
1778
+ createVNode("span", { class: "line" }, [
1779
+ createVNode("span", { style: { "color": "#24292E" } }, " },")
1780
+ ]),
1781
+ createTextVNode("\n"),
1782
+ createVNode("span", { class: "line" }, [
1783
+ createVNode("span", { style: { "color": "#24292E" } }, " "),
1784
+ createVNode("span", { style: { "color": "#005CC5" } }, '"dependencies"'),
1785
+ createVNode("span", { style: { "color": "#24292E" } }, ": {")
1786
+ ]),
1787
+ createTextVNode("\n"),
1788
+ createVNode("span", { class: "line" }, [
1789
+ createVNode("span", { style: { "color": "#24292E" } }, " "),
1790
+ createVNode("span", { style: { "color": "#005CC5" } }, '"valaxy"'),
1791
+ createVNode("span", { style: { "color": "#24292E" } }, ": "),
1792
+ createVNode("span", { style: { "color": "#032F62" } }, '"latest"'),
1793
+ createVNode("span", { style: { "color": "#24292E" } }, ",")
1794
+ ]),
1795
+ createTextVNode("\n"),
1796
+ createVNode("span", { class: "line" }, [
1797
+ createVNode("span", { style: { "color": "#24292E" } }, " "),
1798
+ createVNode("span", { style: { "color": "#005CC5" } }, '"valaxy-theme-yun"'),
1799
+ createVNode("span", { style: { "color": "#24292E" } }, ": "),
1800
+ createVNode("span", { style: { "color": "#032F62" } }, '"latest"')
1801
+ ]),
1802
+ createTextVNode("\n"),
1803
+ createVNode("span", { class: "line" }, [
1804
+ createVNode("span", { style: { "color": "#24292E" } }, " }")
1805
+ ]),
1806
+ createTextVNode("\n"),
1807
+ createVNode("span", { class: "line" }, [
1808
+ createVNode("span", { style: { "color": "#24292E" } }, "}")
1809
+ ])
1810
+ ])
1811
+ ])
1812
+ ]),
1813
+ createVNode("h3", {
1814
+ lang: "zh-CN",
1815
+ id: "algolia-搜索",
1816
+ tabindex: "-1"
1817
+ }, [
1818
+ createTextVNode("Algolia 搜索 "),
1819
+ createVNode(_component_AppLink, {
1820
+ class: "header-anchor",
1821
+ href: "#algolia-搜索",
1822
+ "aria-label": 'Permalink to "Algolia 搜索 {lang="zh-CN"}"'
1823
+ }, {
1824
+ default: withCtx(() => [
1825
+ createTextVNode("​")
1826
+ ]),
1827
+ _: 1
1828
+ /* STABLE */
1829
+ })
1830
+ ]),
1831
+ createVNode("h3", {
1832
+ lang: "en",
1833
+ id: "algolia-docsearch",
1834
+ tabindex: "-1"
1835
+ }, [
1836
+ createTextVNode("Algolia DocSearch "),
1837
+ createVNode(_component_AppLink, {
1838
+ class: "header-anchor",
1839
+ href: "#algolia-docsearch",
1840
+ "aria-label": 'Permalink to "Algolia DocSearch {lang="en"}"'
1841
+ }, {
1842
+ default: withCtx(() => [
1843
+ createTextVNode("​")
1844
+ ]),
1845
+ _: 1
1846
+ /* STABLE */
1847
+ })
1848
+ ]),
1849
+ createVNode("div", { lang: "zh-CN" }, [
1850
+ createVNode("p", null, "Algolia 是一个在线第三方搜索服务,您需要自行申请相关 ID 和 Secret。"),
1851
+ createVNode("blockquote", null, [
1852
+ createVNode("p", null, [
1853
+ createVNode(_component_AppLink, {
1854
+ href: "https://docsearch.algolia.com/",
1855
+ target: "_blank",
1856
+ rel: "noreferrer"
1857
+ }, {
1858
+ default: withCtx(() => [
1859
+ createTextVNode("DocSearch")
1860
+ ]),
1861
+ _: 1
1862
+ /* STABLE */
1863
+ }),
1864
+ createTextVNode(" 申请通常只接受技术文档。")
1865
+ ])
1866
+ ]),
1867
+ createVNode("p", null, [
1868
+ createTextVNode("Valaxy 提供了一个快速集成插件 "),
1869
+ createVNode(_component_AppLink, {
1870
+ href: "https://github.com/YunYouJun/valaxy/tree/main/packages/valaxy-addon-algolia",
1871
+ target: "_blank",
1872
+ rel: "noreferrer"
1873
+ }, {
1874
+ default: withCtx(() => [
1875
+ createTextVNode("valaxy-addon-algolia")
1876
+ ]),
1877
+ _: 1
1878
+ /* STABLE */
1879
+ }),
1880
+ createTextVNode("(目前仅支持 DocSearch)。")
1881
+ ])
1882
+ ]),
1883
+ createVNode("div", { lang: "en" }, [
1884
+ createVNode("p", null, [
1885
+ createTextVNode("Algolia is an online third-party search service. You need to apply for the "),
1886
+ createVNode("code", null, "ID"),
1887
+ createTextVNode(" and "),
1888
+ createVNode("code", null, "Secret"),
1889
+ createTextVNode(" by yourself.")
1890
+ ]),
1891
+ createVNode("blockquote", null, [
1892
+ createVNode("p", null, [
1893
+ createVNode(_component_AppLink, {
1894
+ href: "https://docsearch.algolia.com/",
1895
+ target: "_blank",
1896
+ rel: "noreferrer"
1897
+ }, {
1898
+ default: withCtx(() => [
1899
+ createTextVNode("DocSearch")
1900
+ ]),
1901
+ _: 1
1902
+ /* STABLE */
1903
+ }),
1904
+ createTextVNode(" Only technical document applications are accepted generally.")
1905
+ ])
1906
+ ]),
1907
+ createVNode("p", null, [
1908
+ createTextVNode("Valaxy provides a quick integration plug-in: "),
1909
+ createVNode(_component_AppLink, {
1910
+ href: "https://github.com/YunYouJun/valaxy/tree/main/packages/valaxy-addon-algolia",
1911
+ target: "_blank",
1912
+ rel: "noreferrer"
1913
+ }, {
1914
+ default: withCtx(() => [
1915
+ createTextVNode("valaxy-addon-algolia")
1916
+ ]),
1917
+ _: 1
1918
+ /* STABLE */
1919
+ }),
1920
+ createTextVNode(" (Currently only DocSearch is supported).")
1921
+ ])
1922
+ ]),
1923
+ createVNode("h2", {
1924
+ lang: "zh-CN",
1925
+ id: "图片预览-medium-zoom",
1926
+ tabindex: "-1"
1927
+ }, [
1928
+ createTextVNode("图片预览(Medium Zoom) "),
1929
+ createVNode(_component_AppLink, {
1930
+ class: "header-anchor",
1931
+ href: "#图片预览-medium-zoom",
1932
+ "aria-label": 'Permalink to "图片预览(Medium Zoom) {lang="zh-CN"}"'
1933
+ }, {
1934
+ default: withCtx(() => [
1935
+ createTextVNode("​")
1936
+ ]),
1937
+ _: 1
1938
+ /* STABLE */
1939
+ })
1940
+ ]),
1941
+ createVNode("h2", {
1942
+ lang: "en",
1943
+ id: "image-preview-medium-zoom",
1944
+ tabindex: "-1"
1945
+ }, [
1946
+ createTextVNode("Image Preview (Medium Zoom) "),
1947
+ createVNode(_component_AppLink, {
1948
+ class: "header-anchor",
1949
+ href: "#image-preview-medium-zoom",
1950
+ "aria-label": 'Permalink to "Image Preview (Medium Zoom) {lang="en"}"'
1951
+ }, {
1952
+ default: withCtx(() => [
1953
+ createTextVNode("​")
1954
+ ]),
1955
+ _: 1
1956
+ /* STABLE */
1957
+ })
1958
+ ]),
1959
+ createVNode("div", { lang: "zh-CN" }, [
1960
+ createVNode("p", null, [
1961
+ createTextVNode("Valaxy 内置了 "),
1962
+ createVNode(_component_AppLink, {
1963
+ href: "https://github.com/francoischalifour/medium-zoom",
1964
+ target: "_blank",
1965
+ rel: "noreferrer"
1966
+ }, {
1967
+ default: withCtx(() => [
1968
+ createTextVNode("medium-zoom")
1969
+ ]),
1970
+ _: 1
1971
+ /* STABLE */
1972
+ }),
1973
+ createTextVNode(" 进行图片预览,默认关闭。")
1974
+ ]),
1975
+ createVNode("blockquote", null, [
1976
+ createVNode("p", null, [
1977
+ createVNode(_component_AppLink, {
1978
+ href: "https://medium-zoom.francoischalifour.com/",
1979
+ target: "_blank",
1980
+ rel: "noreferrer"
1981
+ }, {
1982
+ default: withCtx(() => [
1983
+ createTextVNode("Medium Zoom Demo")
1984
+ ]),
1985
+ _: 1
1986
+ /* STABLE */
1987
+ })
1988
+ ])
1989
+ ]),
1990
+ createVNode("ul", null, [
1991
+ createVNode("li", null, [
1992
+ createTextVNode("mediumZoom "),
1993
+ createVNode("ul", null, [
1994
+ createVNode("li", null, [
1995
+ createVNode("code", null, "enable"),
1996
+ createTextVNode(": 是否开启")
1997
+ ]),
1998
+ createVNode("li", null, [
1999
+ createVNode("code", null, "selector"),
2000
+ createTextVNode(": 可自定义传入选择器")
2001
+ ]),
2002
+ createVNode("li", null, [
2003
+ createVNode("code", null, "options"),
2004
+ createTextVNode(": 与 "),
2005
+ createVNode(_component_AppLink, {
2006
+ href: "https://github.com/francoischalifour/medium-zoom#options",
2007
+ target: "_blank",
2008
+ rel: "noreferrer"
2009
+ }, {
2010
+ default: withCtx(() => [
2011
+ createTextVNode("options | medium-zoom")
2012
+ ]),
2013
+ _: 1
2014
+ /* STABLE */
2015
+ }),
2016
+ createTextVNode(" 一致")
2017
+ ])
2018
+ ])
2019
+ ])
2020
+ ]),
2021
+ createVNode("p", null, "譬如开启 Medium Zoom:")
2022
+ ]),
2023
+ createVNode("div", { lang: "en" }, [
2024
+ createVNode("p", null, [
2025
+ createTextVNode("Valaxy has built-in "),
2026
+ createVNode(_component_AppLink, {
2027
+ href: "https://github.com/francoischalifour/medium-zoom",
2028
+ target: "_blank",
2029
+ rel: "noreferrer"
2030
+ }, {
2031
+ default: withCtx(() => [
2032
+ createTextVNode("medium-zoom")
2033
+ ]),
2034
+ _: 1
2035
+ /* STABLE */
2036
+ }),
2037
+ createTextVNode(" to preview the pictures, which is disabled by default.")
2038
+ ]),
2039
+ createVNode("blockquote", null, [
2040
+ createVNode("p", null, [
2041
+ createVNode(_component_AppLink, {
2042
+ href: "https://medium-zoom.francoischalifour.com/",
2043
+ target: "_blank",
2044
+ rel: "noreferrer"
2045
+ }, {
2046
+ default: withCtx(() => [
2047
+ createTextVNode("Medium Zoom Demo")
2048
+ ]),
2049
+ _: 1
2050
+ /* STABLE */
2051
+ })
2052
+ ])
2053
+ ]),
2054
+ createVNode("ul", null, [
2055
+ createVNode("li", null, [
2056
+ createTextVNode("mediumZoom "),
2057
+ createVNode("ul", null, [
2058
+ createVNode("li", null, [
2059
+ createVNode("code", null, "enable"),
2060
+ createTextVNode(": Set to true to enable it")
2061
+ ]),
2062
+ createVNode("li", null, [
2063
+ createVNode("code", null, "selector"),
2064
+ createTextVNode(": Custom CSS selector")
2065
+ ]),
2066
+ createVNode("li", null, [
2067
+ createVNode("code", null, "options"),
2068
+ createTextVNode(": Refer to "),
2069
+ createVNode(_component_AppLink, {
2070
+ href: "https://github.com/francoischalifour/medium-zoom#options",
2071
+ target: "_blank",
2072
+ rel: "noreferrer"
2073
+ }, {
2074
+ default: withCtx(() => [
2075
+ createTextVNode("options | medium-zoom")
2076
+ ]),
2077
+ _: 1
2078
+ /* STABLE */
2079
+ })
2080
+ ])
2081
+ ])
2082
+ ])
2083
+ ])
2084
+ ]),
2085
+ createVNode("div", { class: "language-ts" }, [
2086
+ createVNode("button", {
2087
+ title: "Copy Code",
2088
+ class: "copy"
2089
+ }),
2090
+ createVNode("span", { class: "lang" }, "ts"),
2091
+ createVNode("pre", { class: "shiki github-dark vp-code-dark" }, [
2092
+ createVNode("code", null, [
2093
+ createVNode("span", { class: "line" }, [
2094
+ createVNode("span", { style: { "color": "#6A737D" } }, "// site.config.ts")
2095
+ ]),
2096
+ createTextVNode("\n"),
2097
+ createVNode("span", { class: "line" }, [
2098
+ createVNode("span", { style: { "color": "#F97583" } }, "import"),
2099
+ createVNode("span", { style: { "color": "#E1E4E8" } }, " { defineSiteConfig } "),
2100
+ createVNode("span", { style: { "color": "#F97583" } }, "from"),
2101
+ createVNode("span", { style: { "color": "#E1E4E8" } }, " "),
2102
+ createVNode("span", { style: { "color": "#9ECBFF" } }, "'valaxy'")
2103
+ ]),
2104
+ createTextVNode("\n"),
2105
+ createVNode("span", { class: "line" }),
2106
+ createTextVNode("\n"),
2107
+ createVNode("span", { class: "line" }, [
2108
+ createVNode("span", { style: { "color": "#F97583" } }, "export"),
2109
+ createVNode("span", { style: { "color": "#E1E4E8" } }, " "),
2110
+ createVNode("span", { style: { "color": "#F97583" } }, "default"),
2111
+ createVNode("span", { style: { "color": "#E1E4E8" } }, " "),
2112
+ createVNode("span", { style: { "color": "#B392F0" } }, "defineSiteConfig"),
2113
+ createVNode("span", { style: { "color": "#E1E4E8" } }, "({")
2114
+ ]),
2115
+ createTextVNode("\n"),
2116
+ createVNode("span", { class: "line" }, [
2117
+ createVNode("span", { style: { "color": "#E1E4E8" } }, " mediumZoom: { enable: "),
2118
+ createVNode("span", { style: { "color": "#79B8FF" } }, "true"),
2119
+ createVNode("span", { style: { "color": "#E1E4E8" } }, " }")
2120
+ ]),
2121
+ createTextVNode("\n"),
2122
+ createVNode("span", { class: "line" }, [
2123
+ createVNode("span", { style: { "color": "#E1E4E8" } }, "})")
2124
+ ])
2125
+ ])
2126
+ ]),
2127
+ createVNode("pre", { class: "shiki github-light vp-code-light" }, [
2128
+ createVNode("code", null, [
2129
+ createVNode("span", { class: "line" }, [
2130
+ createVNode("span", { style: { "color": "#6A737D" } }, "// site.config.ts")
2131
+ ]),
2132
+ createTextVNode("\n"),
2133
+ createVNode("span", { class: "line" }, [
2134
+ createVNode("span", { style: { "color": "#D73A49" } }, "import"),
2135
+ createVNode("span", { style: { "color": "#24292E" } }, " { defineSiteConfig } "),
2136
+ createVNode("span", { style: { "color": "#D73A49" } }, "from"),
2137
+ createVNode("span", { style: { "color": "#24292E" } }, " "),
2138
+ createVNode("span", { style: { "color": "#032F62" } }, "'valaxy'")
2139
+ ]),
2140
+ createTextVNode("\n"),
2141
+ createVNode("span", { class: "line" }),
2142
+ createTextVNode("\n"),
2143
+ createVNode("span", { class: "line" }, [
2144
+ createVNode("span", { style: { "color": "#D73A49" } }, "export"),
2145
+ createVNode("span", { style: { "color": "#24292E" } }, " "),
2146
+ createVNode("span", { style: { "color": "#D73A49" } }, "default"),
2147
+ createVNode("span", { style: { "color": "#24292E" } }, " "),
2148
+ createVNode("span", { style: { "color": "#6F42C1" } }, "defineSiteConfig"),
2149
+ createVNode("span", { style: { "color": "#24292E" } }, "({")
2150
+ ]),
2151
+ createTextVNode("\n"),
2152
+ createVNode("span", { class: "line" }, [
2153
+ createVNode("span", { style: { "color": "#24292E" } }, " mediumZoom: { enable: "),
2154
+ createVNode("span", { style: { "color": "#005CC5" } }, "true"),
2155
+ createVNode("span", { style: { "color": "#24292E" } }, " }")
2156
+ ]),
2157
+ createTextVNode("\n"),
2158
+ createVNode("span", { class: "line" }, [
2159
+ createVNode("span", { style: { "color": "#24292E" } }, "})")
2160
+ ])
2161
+ ])
2162
+ ])
2163
+ ]),
2164
+ createVNode("div", { lang: "zh-CN" }, [
2165
+ createVNode("p", null, "除此之外,你也可以单独控制是否在某篇文章中开启。")
2166
+ ]),
2167
+ createVNode("div", { lang: "en" }, [
2168
+ createVNode("p", null, "In addition, you can also enable it in a certain article independently.")
2169
+ ]),
2170
+ createVNode("div", { class: "language-md" }, [
2171
+ createVNode("button", {
2172
+ title: "Copy Code",
2173
+ class: "copy"
2174
+ }),
2175
+ createVNode("span", { class: "lang" }, "md"),
2176
+ createVNode("pre", { class: "shiki github-dark vp-code-dark" }, [
2177
+ createVNode("code", null, [
2178
+ createVNode("span", { class: "line" }, [
2179
+ createVNode("span", { style: { "color": "#E1E4E8" } }, "---")
2180
+ ]),
2181
+ createTextVNode("\n"),
2182
+ createVNode("span", { class: "line" }, [
2183
+ createVNode("span", { style: { "color": "#85E89D" } }, "title"),
2184
+ createVNode("span", { style: { "color": "#E1E4E8" } }, ": "),
2185
+ createVNode("span", { style: { "color": "#9ECBFF" } }, "Test Medium Zoom")
2186
+ ]),
2187
+ createTextVNode("\n"),
2188
+ createVNode("span", { class: "line" }, [
2189
+ createVNode("span", { style: { "color": "#85E89D" } }, "medium_zoom"),
2190
+ createVNode("span", { style: { "color": "#E1E4E8" } }, ": "),
2191
+ createVNode("span", { style: { "color": "#79B8FF" } }, "true")
2192
+ ]),
2193
+ createTextVNode("\n"),
2194
+ createVNode("span", { class: "line" }, [
2195
+ createVNode("span", { style: { "color": "#E1E4E8" } }, "---")
2196
+ ])
2197
+ ])
2198
+ ]),
2199
+ createVNode("pre", { class: "shiki github-light vp-code-light" }, [
2200
+ createVNode("code", null, [
2201
+ createVNode("span", { class: "line" }, [
2202
+ createVNode("span", { style: { "color": "#24292E" } }, "---")
2203
+ ]),
2204
+ createTextVNode("\n"),
2205
+ createVNode("span", { class: "line" }, [
2206
+ createVNode("span", { style: { "color": "#22863A" } }, "title"),
2207
+ createVNode("span", { style: { "color": "#24292E" } }, ": "),
2208
+ createVNode("span", { style: { "color": "#032F62" } }, "Test Medium Zoom")
2209
+ ]),
2210
+ createTextVNode("\n"),
2211
+ createVNode("span", { class: "line" }, [
2212
+ createVNode("span", { style: { "color": "#22863A" } }, "medium_zoom"),
2213
+ createVNode("span", { style: { "color": "#24292E" } }, ": "),
2214
+ createVNode("span", { style: { "color": "#005CC5" } }, "true")
2215
+ ]),
2216
+ createTextVNode("\n"),
2217
+ createVNode("span", { class: "line" }, [
2218
+ createVNode("span", { style: { "color": "#24292E" } }, "---")
2219
+ ])
2220
+ ])
2221
+ ])
2222
+ ]),
2223
+ createVNode("h2", {
2224
+ lang: "zh-CN",
2225
+ id: "音乐播放器",
2226
+ tabindex: "-1"
2227
+ }, [
2228
+ createTextVNode("音乐播放器 "),
2229
+ createVNode(_component_AppLink, {
2230
+ class: "header-anchor",
2231
+ href: "#音乐播放器",
2232
+ "aria-label": 'Permalink to "音乐播放器 {lang="zh-CN"}"'
2233
+ }, {
2234
+ default: withCtx(() => [
2235
+ createTextVNode("​")
2236
+ ]),
2237
+ _: 1
2238
+ /* STABLE */
2239
+ })
2240
+ ]),
2241
+ createVNode("h2", {
2242
+ lang: "en",
2243
+ id: "music-player",
2244
+ tabindex: "-1"
2245
+ }, [
2246
+ createTextVNode("Music Player "),
2247
+ createVNode(_component_AppLink, {
2248
+ class: "header-anchor",
2249
+ href: "#music-player",
2250
+ "aria-label": 'Permalink to "Music Player {lang="en"}"'
2251
+ }, {
2252
+ default: withCtx(() => [
2253
+ createTextVNode("​")
2254
+ ]),
2255
+ _: 1
2256
+ /* STABLE */
2257
+ })
2258
+ ]),
2259
+ createVNode("div", { lang: "zh-CN" }, [
2260
+ createVNode("blockquote", null, [
2261
+ createVNode("p", null, [
2262
+ createTextVNode("基于 "),
2263
+ createVNode(_component_AppLink, {
2264
+ href: "https://github.com/DIYgod/APlayer",
2265
+ target: "_blank",
2266
+ rel: "noreferrer"
2267
+ }, {
2268
+ default: withCtx(() => [
2269
+ createTextVNode("Aplayer")
2270
+ ]),
2271
+ _: 1
2272
+ /* STABLE */
2273
+ }),
2274
+ createTextVNode(" 与 "),
2275
+ createVNode(_component_AppLink, {
2276
+ href: "https://github.com/metowolf/MetingJS",
2277
+ target: "_blank",
2278
+ rel: "noreferrer"
2279
+ }, {
2280
+ default: withCtx(() => [
2281
+ createTextVNode("MetingJS")
2282
+ ]),
2283
+ _: 1
2284
+ /* STABLE */
2285
+ }),
2286
+ createTextVNode(" 实现")
2287
+ ])
2288
+ ]),
2289
+ createVNode("p", null, "譬如在文章中引入网易云某首歌曲(ID 为歌曲 ID):"),
2290
+ createVNode("p", null, "在文章头部添加:")
2291
+ ]),
2292
+ createVNode("div", { lang: "en" }, [
2293
+ createVNode("blockquote", null, [
2294
+ createVNode("p", null, [
2295
+ createTextVNode("Implementd based on "),
2296
+ createVNode(_component_AppLink, {
2297
+ href: "https://github.com/DIYgod/APlayer",
2298
+ target: "_blank",
2299
+ rel: "noreferrer"
2300
+ }, {
2301
+ default: withCtx(() => [
2302
+ createTextVNode("Aplayer")
2303
+ ]),
2304
+ _: 1
2305
+ /* STABLE */
2306
+ }),
2307
+ createTextVNode(" and "),
2308
+ createVNode(_component_AppLink, {
2309
+ href: "https://github.com/metowolf/MetingJS",
2310
+ target: "_blank",
2311
+ rel: "noreferrer"
2312
+ }, {
2313
+ default: withCtx(() => [
2314
+ createTextVNode("MetingJS")
2315
+ ]),
2316
+ _: 1
2317
+ /* STABLE */
2318
+ })
2319
+ ])
2320
+ ]),
2321
+ createVNode("p", null, "For example, add a song from Netease Cloud in a article:"),
2322
+ createVNode("p", null, "Enable it in the FrontMatter of the article:")
2323
+ ]),
2324
+ createVNode("div", { class: "language-md" }, [
2325
+ createVNode("button", {
2326
+ title: "Copy Code",
2327
+ class: "copy"
2328
+ }),
2329
+ createVNode("span", { class: "lang" }, "md"),
2330
+ createVNode("pre", { class: "shiki github-dark vp-code-dark" }, [
2331
+ createVNode("code", null, [
2332
+ createVNode("span", { class: "line" }, [
2333
+ createVNode("span", { style: { "color": "#E1E4E8" } }, "---")
2334
+ ]),
2335
+ createTextVNode("\n"),
2336
+ createVNode("span", { class: "line" }, [
2337
+ createVNode("span", { style: { "color": "#85E89D" } }, "aplayer"),
2338
+ createVNode("span", { style: { "color": "#E1E4E8" } }, ": "),
2339
+ createVNode("span", { style: { "color": "#79B8FF" } }, "true")
2340
+ ]),
2341
+ createTextVNode("\n"),
2342
+ createVNode("span", { class: "line" }, [
2343
+ createVNode("span", { style: { "color": "#E1E4E8" } }, "---")
2344
+ ])
2345
+ ])
2346
+ ]),
2347
+ createVNode("pre", { class: "shiki github-light vp-code-light" }, [
2348
+ createVNode("code", null, [
2349
+ createVNode("span", { class: "line" }, [
2350
+ createVNode("span", { style: { "color": "#24292E" } }, "---")
2351
+ ]),
2352
+ createTextVNode("\n"),
2353
+ createVNode("span", { class: "line" }, [
2354
+ createVNode("span", { style: { "color": "#22863A" } }, "aplayer"),
2355
+ createVNode("span", { style: { "color": "#24292E" } }, ": "),
2356
+ createVNode("span", { style: { "color": "#005CC5" } }, "true")
2357
+ ]),
2358
+ createTextVNode("\n"),
2359
+ createVNode("span", { class: "line" }, [
2360
+ createVNode("span", { style: { "color": "#24292E" } }, "---")
2361
+ ])
2362
+ ])
2363
+ ])
2364
+ ]),
2365
+ createVNode("div", { lang: "zh-CN" }, [
2366
+ createVNode("p", null, "在文中引入:")
2367
+ ]),
2368
+ createVNode("div", { lang: "en" }, [
2369
+ createVNode("p", null, "Add the component to the article:")
2370
+ ]),
2371
+ createVNode("div", { class: "language-html" }, [
2372
+ createVNode("button", {
2373
+ title: "Copy Code",
2374
+ class: "copy"
2375
+ }),
2376
+ createVNode("span", { class: "lang" }, "html"),
2377
+ createVNode("pre", { class: "shiki github-dark vp-code-dark" }, [
2378
+ createVNode("code", null, [
2379
+ createVNode("span", { class: "line" }, [
2380
+ createVNode("span", { style: { "color": "#E1E4E8" } }, "<"),
2381
+ createVNode("span", { style: { "color": "#85E89D" } }, "meting-js")
2382
+ ]),
2383
+ createTextVNode("\n"),
2384
+ createVNode("span", { class: "line" }, [
2385
+ createVNode("span", { style: { "color": "#E1E4E8" } }, " "),
2386
+ createVNode("span", { style: { "color": "#B392F0" } }, "id"),
2387
+ createVNode("span", { style: { "color": "#E1E4E8" } }, "="),
2388
+ createVNode("span", { style: { "color": "#9ECBFF" } }, '"22736708"')
2389
+ ]),
2390
+ createTextVNode("\n"),
2391
+ createVNode("span", { class: "line" }, [
2392
+ createVNode("span", { style: { "color": "#E1E4E8" } }, " "),
2393
+ createVNode("span", { style: { "color": "#B392F0" } }, "server"),
2394
+ createVNode("span", { style: { "color": "#E1E4E8" } }, "="),
2395
+ createVNode("span", { style: { "color": "#9ECBFF" } }, '"netease"')
2396
+ ]),
2397
+ createTextVNode("\n"),
2398
+ createVNode("span", { class: "line" }, [
2399
+ createVNode("span", { style: { "color": "#E1E4E8" } }, " "),
2400
+ createVNode("span", { style: { "color": "#B392F0" } }, "type"),
2401
+ createVNode("span", { style: { "color": "#E1E4E8" } }, "="),
2402
+ createVNode("span", { style: { "color": "#9ECBFF" } }, '"song"')
2403
+ ]),
2404
+ createTextVNode("\n"),
2405
+ createVNode("span", { class: "line" }, [
2406
+ createVNode("span", { style: { "color": "#E1E4E8" } }, " "),
2407
+ createVNode("span", { style: { "color": "#B392F0" } }, "theme"),
2408
+ createVNode("span", { style: { "color": "#E1E4E8" } }, "="),
2409
+ createVNode("span", { style: { "color": "#9ECBFF" } }, '"#C20C0C"'),
2410
+ createVNode("span", { style: { "color": "#E1E4E8" } }, ">")
2411
+ ]),
2412
+ createTextVNode("\n"),
2413
+ createVNode("span", { class: "line" }, [
2414
+ createVNode("span", { style: { "color": "#E1E4E8" } }, "</"),
2415
+ createVNode("span", { style: { "color": "#85E89D" } }, "meting-js"),
2416
+ createVNode("span", { style: { "color": "#E1E4E8" } }, ">")
2417
+ ])
2418
+ ])
2419
+ ]),
2420
+ createVNode("pre", { class: "shiki github-light vp-code-light" }, [
2421
+ createVNode("code", null, [
2422
+ createVNode("span", { class: "line" }, [
2423
+ createVNode("span", { style: { "color": "#24292E" } }, "<"),
2424
+ createVNode("span", { style: { "color": "#22863A" } }, "meting-js")
2425
+ ]),
2426
+ createTextVNode("\n"),
2427
+ createVNode("span", { class: "line" }, [
2428
+ createVNode("span", { style: { "color": "#24292E" } }, " "),
2429
+ createVNode("span", { style: { "color": "#6F42C1" } }, "id"),
2430
+ createVNode("span", { style: { "color": "#24292E" } }, "="),
2431
+ createVNode("span", { style: { "color": "#032F62" } }, '"22736708"')
2432
+ ]),
2433
+ createTextVNode("\n"),
2434
+ createVNode("span", { class: "line" }, [
2435
+ createVNode("span", { style: { "color": "#24292E" } }, " "),
2436
+ createVNode("span", { style: { "color": "#6F42C1" } }, "server"),
2437
+ createVNode("span", { style: { "color": "#24292E" } }, "="),
2438
+ createVNode("span", { style: { "color": "#032F62" } }, '"netease"')
2439
+ ]),
2440
+ createTextVNode("\n"),
2441
+ createVNode("span", { class: "line" }, [
2442
+ createVNode("span", { style: { "color": "#24292E" } }, " "),
2443
+ createVNode("span", { style: { "color": "#6F42C1" } }, "type"),
2444
+ createVNode("span", { style: { "color": "#24292E" } }, "="),
2445
+ createVNode("span", { style: { "color": "#032F62" } }, '"song"')
2446
+ ]),
2447
+ createTextVNode("\n"),
2448
+ createVNode("span", { class: "line" }, [
2449
+ createVNode("span", { style: { "color": "#24292E" } }, " "),
2450
+ createVNode("span", { style: { "color": "#6F42C1" } }, "theme"),
2451
+ createVNode("span", { style: { "color": "#24292E" } }, "="),
2452
+ createVNode("span", { style: { "color": "#032F62" } }, '"#C20C0C"'),
2453
+ createVNode("span", { style: { "color": "#24292E" } }, ">")
2454
+ ]),
2455
+ createTextVNode("\n"),
2456
+ createVNode("span", { class: "line" }, [
2457
+ createVNode("span", { style: { "color": "#24292E" } }, "</"),
2458
+ createVNode("span", { style: { "color": "#22863A" } }, "meting-js"),
2459
+ createVNode("span", { style: { "color": "#24292E" } }, ">")
2460
+ ])
2461
+ ])
2462
+ ])
2463
+ ]),
2464
+ createVNode("div", { lang: "zh-CN" }, [
2465
+ createVNode("p", null, "效果如下:")
2466
+ ]),
2467
+ createVNode("div", { lang: "en" }, [
2468
+ createVNode("p", null, "Here is a demo:")
2469
+ ]),
2470
+ createVNode("meting-js", {
2471
+ id: "22736708",
2472
+ server: "netease",
2473
+ type: "song",
2474
+ theme: "#C20C0C"
2475
+ }),
2476
+ createVNode("blockquote", null, [
2477
+ createVNode("p", null, [
2478
+ createTextVNode("More info see "),
2479
+ createVNode(_component_AppLink, {
2480
+ href: "https://github.com/metowolf/MetingJS#option",
2481
+ target: "_blank",
2482
+ rel: "noreferrer"
2483
+ }, {
2484
+ default: withCtx(() => [
2485
+ createTextVNode("Option | MetingJS")
2486
+ ]),
2487
+ _: 1
2488
+ /* STABLE */
2489
+ })
2490
+ ])
2491
+ ]),
2492
+ createVNode("h2", {
2493
+ lang: "zh-CN",
2494
+ id: "谷歌统计",
2495
+ tabindex: "-1"
2496
+ }, [
2497
+ createTextVNode("谷歌统计 "),
2498
+ createVNode(_component_AppLink, {
2499
+ class: "header-anchor",
2500
+ href: "#谷歌统计",
2501
+ "aria-label": 'Permalink to "谷歌统计 {lang="zh-CN"}"'
2502
+ }, {
2503
+ default: withCtx(() => [
2504
+ createTextVNode("​")
2505
+ ]),
2506
+ _: 1
2507
+ /* STABLE */
2508
+ })
2509
+ ]),
2510
+ createVNode("h2", {
2511
+ lang: "en",
2512
+ id: "google-statistics",
2513
+ tabindex: "-1"
2514
+ }, [
2515
+ createTextVNode("Google Statistics "),
2516
+ createVNode(_component_AppLink, {
2517
+ class: "header-anchor",
2518
+ href: "#google-statistics",
2519
+ "aria-label": 'Permalink to "Google Statistics {lang="en"}"'
2520
+ }, {
2521
+ default: withCtx(() => [
2522
+ createTextVNode("​")
2523
+ ]),
2524
+ _: 1
2525
+ /* STABLE */
2526
+ })
2527
+ ]),
2528
+ createVNode("div", { lang: "zh-CN" }, [
2529
+ createVNode("blockquote", null, [
2530
+ createVNode("p", null, [
2531
+ createTextVNode("可参见 "),
2532
+ createVNode(_component_AppLink, { href: "/guide/custom/extend#%E6%89%A9%E5%B1%95-client-%E4%B8%8A%E4%B8%8B%E6%96%87" }, {
2533
+ default: withCtx(() => [
2534
+ createTextVNode("扩展 Client 上下文|自定义扩展")
2535
+ ]),
2536
+ _: 1
2537
+ /* STABLE */
2538
+ })
2539
+ ])
2540
+ ]),
2541
+ createVNode("p", null, "你可以通过直接使用 Vue 插件的方式引入谷歌统计。"),
2542
+ createVNode("p", null, "譬如:"),
2543
+ createVNode("ul", null, [
2544
+ createVNode("li", null, [
2545
+ createTextVNode("安装依赖:"),
2546
+ createVNode("code", null, "pnpm add vue-gtag-next")
2547
+ ]),
2548
+ createVNode("li", null, [
2549
+ createTextVNode("新建 "),
2550
+ createVNode("code", null, "setup/main.ts"),
2551
+ createTextVNode(":")
2552
+ ])
2553
+ ]),
2554
+ createVNode("div", { class: "language-ts" }, [
2555
+ createVNode("button", {
2556
+ title: "Copy Code",
2557
+ class: "copy"
2558
+ }),
2559
+ createVNode("span", { class: "lang" }, "ts"),
2560
+ createVNode("pre", { class: "shiki github-dark vp-code-dark" }, [
2561
+ createVNode("code", null, [
2562
+ createVNode("span", { class: "line" }, [
2563
+ createVNode("span", { style: { "color": "#6A737D" } }, "// setup/main.ts")
2564
+ ]),
2565
+ createTextVNode("\n"),
2566
+ createVNode("span", { class: "line" }, [
2567
+ createVNode("span", { style: { "color": "#F97583" } }, "import"),
2568
+ createVNode("span", { style: { "color": "#E1E4E8" } }, " { defineAppSetup } "),
2569
+ createVNode("span", { style: { "color": "#F97583" } }, "from"),
2570
+ createVNode("span", { style: { "color": "#E1E4E8" } }, " "),
2571
+ createVNode("span", { style: { "color": "#9ECBFF" } }, "'valaxy'")
2572
+ ]),
2573
+ createTextVNode("\n"),
2574
+ createVNode("span", { class: "line" }, [
2575
+ createVNode("span", { style: { "color": "#F97583" } }, "import"),
2576
+ createVNode("span", { style: { "color": "#E1E4E8" } }, " { install "),
2577
+ createVNode("span", { style: { "color": "#F97583" } }, "as"),
2578
+ createVNode("span", { style: { "color": "#E1E4E8" } }, " installGtag } "),
2579
+ createVNode("span", { style: { "color": "#F97583" } }, "from"),
2580
+ createVNode("span", { style: { "color": "#E1E4E8" } }, " "),
2581
+ createVNode("span", { style: { "color": "#9ECBFF" } }, "'./gtag'")
2582
+ ]),
2583
+ createTextVNode("\n"),
2584
+ createVNode("span", { class: "line" }),
2585
+ createTextVNode("\n"),
2586
+ createVNode("span", { class: "line" }, [
2587
+ createVNode("span", { style: { "color": "#F97583" } }, "export"),
2588
+ createVNode("span", { style: { "color": "#E1E4E8" } }, " "),
2589
+ createVNode("span", { style: { "color": "#F97583" } }, "default"),
2590
+ createVNode("span", { style: { "color": "#E1E4E8" } }, " "),
2591
+ createVNode("span", { style: { "color": "#B392F0" } }, "defineAppSetup"),
2592
+ createVNode("span", { style: { "color": "#E1E4E8" } }, "(("),
2593
+ createVNode("span", { style: { "color": "#FFAB70" } }, "ctx"),
2594
+ createVNode("span", { style: { "color": "#E1E4E8" } }, ") "),
2595
+ createVNode("span", { style: { "color": "#F97583" } }, "=>"),
2596
+ createVNode("span", { style: { "color": "#E1E4E8" } }, " {")
2597
+ ]),
2598
+ createTextVNode("\n"),
2599
+ createVNode("span", { class: "line" }, [
2600
+ createVNode("span", { style: { "color": "#E1E4E8" } }, " "),
2601
+ createVNode("span", { style: { "color": "#B392F0" } }, "installGtag"),
2602
+ createVNode("span", { style: { "color": "#E1E4E8" } }, "(ctx)")
2603
+ ]),
2604
+ createTextVNode("\n"),
2605
+ createVNode("span", { class: "line" }, [
2606
+ createVNode("span", { style: { "color": "#E1E4E8" } }, "})")
2607
+ ])
2608
+ ])
2609
+ ]),
2610
+ createVNode("pre", { class: "shiki github-light vp-code-light" }, [
2611
+ createVNode("code", null, [
2612
+ createVNode("span", { class: "line" }, [
2613
+ createVNode("span", { style: { "color": "#6A737D" } }, "// setup/main.ts")
2614
+ ]),
2615
+ createTextVNode("\n"),
2616
+ createVNode("span", { class: "line" }, [
2617
+ createVNode("span", { style: { "color": "#D73A49" } }, "import"),
2618
+ createVNode("span", { style: { "color": "#24292E" } }, " { defineAppSetup } "),
2619
+ createVNode("span", { style: { "color": "#D73A49" } }, "from"),
2620
+ createVNode("span", { style: { "color": "#24292E" } }, " "),
2621
+ createVNode("span", { style: { "color": "#032F62" } }, "'valaxy'")
2622
+ ]),
2623
+ createTextVNode("\n"),
2624
+ createVNode("span", { class: "line" }, [
2625
+ createVNode("span", { style: { "color": "#D73A49" } }, "import"),
2626
+ createVNode("span", { style: { "color": "#24292E" } }, " { install "),
2627
+ createVNode("span", { style: { "color": "#D73A49" } }, "as"),
2628
+ createVNode("span", { style: { "color": "#24292E" } }, " installGtag } "),
2629
+ createVNode("span", { style: { "color": "#D73A49" } }, "from"),
2630
+ createVNode("span", { style: { "color": "#24292E" } }, " "),
2631
+ createVNode("span", { style: { "color": "#032F62" } }, "'./gtag'")
2632
+ ]),
2633
+ createTextVNode("\n"),
2634
+ createVNode("span", { class: "line" }),
2635
+ createTextVNode("\n"),
2636
+ createVNode("span", { class: "line" }, [
2637
+ createVNode("span", { style: { "color": "#D73A49" } }, "export"),
2638
+ createVNode("span", { style: { "color": "#24292E" } }, " "),
2639
+ createVNode("span", { style: { "color": "#D73A49" } }, "default"),
2640
+ createVNode("span", { style: { "color": "#24292E" } }, " "),
2641
+ createVNode("span", { style: { "color": "#6F42C1" } }, "defineAppSetup"),
2642
+ createVNode("span", { style: { "color": "#24292E" } }, "(("),
2643
+ createVNode("span", { style: { "color": "#E36209" } }, "ctx"),
2644
+ createVNode("span", { style: { "color": "#24292E" } }, ") "),
2645
+ createVNode("span", { style: { "color": "#D73A49" } }, "=>"),
2646
+ createVNode("span", { style: { "color": "#24292E" } }, " {")
2647
+ ]),
2648
+ createTextVNode("\n"),
2649
+ createVNode("span", { class: "line" }, [
2650
+ createVNode("span", { style: { "color": "#24292E" } }, " "),
2651
+ createVNode("span", { style: { "color": "#6F42C1" } }, "installGtag"),
2652
+ createVNode("span", { style: { "color": "#24292E" } }, "(ctx)")
2653
+ ]),
2654
+ createTextVNode("\n"),
2655
+ createVNode("span", { class: "line" }, [
2656
+ createVNode("span", { style: { "color": "#24292E" } }, "})")
2657
+ ])
2658
+ ])
2659
+ ])
2660
+ ]),
2661
+ createVNode("ul", null, [
2662
+ createVNode("li", null, [
2663
+ createTextVNode("新建 "),
2664
+ createVNode("code", null, "setup/gtag.ts"),
2665
+ createTextVNode(":")
2666
+ ])
2667
+ ]),
2668
+ createVNode("div", { class: "language-ts" }, [
2669
+ createVNode("button", {
2670
+ title: "Copy Code",
2671
+ class: "copy"
2672
+ }),
2673
+ createVNode("span", { class: "lang" }, "ts"),
2674
+ createVNode("pre", { class: "shiki github-dark vp-code-dark" }, [
2675
+ createVNode("code", null, [
2676
+ createVNode("span", { class: "line" }, [
2677
+ createVNode("span", { style: { "color": "#F97583" } }, "import"),
2678
+ createVNode("span", { style: { "color": "#E1E4E8" } }, " VueGtag, { trackRouter } "),
2679
+ createVNode("span", { style: { "color": "#F97583" } }, "from"),
2680
+ createVNode("span", { style: { "color": "#E1E4E8" } }, " "),
2681
+ createVNode("span", { style: { "color": "#9ECBFF" } }, "'vue-gtag-next'")
2682
+ ]),
2683
+ createTextVNode("\n"),
2684
+ createVNode("span", { class: "line" }, [
2685
+ createVNode("span", { style: { "color": "#F97583" } }, "import"),
2686
+ createVNode("span", { style: { "color": "#E1E4E8" } }, " "),
2687
+ createVNode("span", { style: { "color": "#F97583" } }, "type"),
2688
+ createVNode("span", { style: { "color": "#E1E4E8" } }, " { UserModule } "),
2689
+ createVNode("span", { style: { "color": "#F97583" } }, "from"),
2690
+ createVNode("span", { style: { "color": "#E1E4E8" } }, " "),
2691
+ createVNode("span", { style: { "color": "#9ECBFF" } }, "'valaxy'")
2692
+ ]),
2693
+ createTextVNode("\n"),
2694
+ createVNode("span", { class: "line" }),
2695
+ createTextVNode("\n"),
2696
+ createVNode("span", { class: "line" }, [
2697
+ createVNode("span", { style: { "color": "#F97583" } }, "export"),
2698
+ createVNode("span", { style: { "color": "#E1E4E8" } }, " "),
2699
+ createVNode("span", { style: { "color": "#F97583" } }, "const"),
2700
+ createVNode("span", { style: { "color": "#E1E4E8" } }, " "),
2701
+ createVNode("span", { style: { "color": "#B392F0" } }, "install"),
2702
+ createVNode("span", { style: { "color": "#F97583" } }, ":"),
2703
+ createVNode("span", { style: { "color": "#E1E4E8" } }, " "),
2704
+ createVNode("span", { style: { "color": "#B392F0" } }, "UserModule"),
2705
+ createVNode("span", { style: { "color": "#E1E4E8" } }, " "),
2706
+ createVNode("span", { style: { "color": "#F97583" } }, "="),
2707
+ createVNode("span", { style: { "color": "#E1E4E8" } }, " ({ "),
2708
+ createVNode("span", { style: { "color": "#FFAB70" } }, "isClient"),
2709
+ createVNode("span", { style: { "color": "#E1E4E8" } }, ", "),
2710
+ createVNode("span", { style: { "color": "#FFAB70" } }, "app"),
2711
+ createVNode("span", { style: { "color": "#E1E4E8" } }, ", "),
2712
+ createVNode("span", { style: { "color": "#FFAB70" } }, "router"),
2713
+ createVNode("span", { style: { "color": "#E1E4E8" } }, " }) "),
2714
+ createVNode("span", { style: { "color": "#F97583" } }, "=>"),
2715
+ createVNode("span", { style: { "color": "#E1E4E8" } }, " {")
2716
+ ]),
2717
+ createTextVNode("\n"),
2718
+ createVNode("span", { class: "line" }, [
2719
+ createVNode("span", { style: { "color": "#E1E4E8" } }, " "),
2720
+ createVNode("span", { style: { "color": "#F97583" } }, "if"),
2721
+ createVNode("span", { style: { "color": "#E1E4E8" } }, " (isClient) {")
2722
+ ]),
2723
+ createTextVNode("\n"),
2724
+ createVNode("span", { class: "line" }, [
2725
+ createVNode("span", { style: { "color": "#E1E4E8" } }, " app."),
2726
+ createVNode("span", { style: { "color": "#B392F0" } }, "use"),
2727
+ createVNode("span", { style: { "color": "#E1E4E8" } }, "(VueGtag, {")
2728
+ ]),
2729
+ createTextVNode("\n"),
2730
+ createVNode("span", { class: "line" }, [
2731
+ createVNode("span", { style: { "color": "#E1E4E8" } }, " property: { id: "),
2732
+ createVNode("span", { style: { "color": "#9ECBFF" } }, "'G-1LL0D86CY9'"),
2733
+ createVNode("span", { style: { "color": "#E1E4E8" } }, " },")
2734
+ ]),
2735
+ createTextVNode("\n"),
2736
+ createVNode("span", { class: "line" }, [
2737
+ createVNode("span", { style: { "color": "#E1E4E8" } }, " })")
2738
+ ]),
2739
+ createTextVNode("\n"),
2740
+ createVNode("span", { class: "line" }),
2741
+ createTextVNode("\n"),
2742
+ createVNode("span", { class: "line" }, [
2743
+ createVNode("span", { style: { "color": "#E1E4E8" } }, " "),
2744
+ createVNode("span", { style: { "color": "#B392F0" } }, "trackRouter"),
2745
+ createVNode("span", { style: { "color": "#E1E4E8" } }, "(router)")
2746
+ ]),
2747
+ createTextVNode("\n"),
2748
+ createVNode("span", { class: "line" }, [
2749
+ createVNode("span", { style: { "color": "#E1E4E8" } }, " }")
2750
+ ]),
2751
+ createTextVNode("\n"),
2752
+ createVNode("span", { class: "line" }, [
2753
+ createVNode("span", { style: { "color": "#E1E4E8" } }, "}")
2754
+ ])
2755
+ ])
2756
+ ]),
2757
+ createVNode("pre", { class: "shiki github-light vp-code-light" }, [
2758
+ createVNode("code", null, [
2759
+ createVNode("span", { class: "line" }, [
2760
+ createVNode("span", { style: { "color": "#D73A49" } }, "import"),
2761
+ createVNode("span", { style: { "color": "#24292E" } }, " VueGtag, { trackRouter } "),
2762
+ createVNode("span", { style: { "color": "#D73A49" } }, "from"),
2763
+ createVNode("span", { style: { "color": "#24292E" } }, " "),
2764
+ createVNode("span", { style: { "color": "#032F62" } }, "'vue-gtag-next'")
2765
+ ]),
2766
+ createTextVNode("\n"),
2767
+ createVNode("span", { class: "line" }, [
2768
+ createVNode("span", { style: { "color": "#D73A49" } }, "import"),
2769
+ createVNode("span", { style: { "color": "#24292E" } }, " "),
2770
+ createVNode("span", { style: { "color": "#D73A49" } }, "type"),
2771
+ createVNode("span", { style: { "color": "#24292E" } }, " { UserModule } "),
2772
+ createVNode("span", { style: { "color": "#D73A49" } }, "from"),
2773
+ createVNode("span", { style: { "color": "#24292E" } }, " "),
2774
+ createVNode("span", { style: { "color": "#032F62" } }, "'valaxy'")
2775
+ ]),
2776
+ createTextVNode("\n"),
2777
+ createVNode("span", { class: "line" }),
2778
+ createTextVNode("\n"),
2779
+ createVNode("span", { class: "line" }, [
2780
+ createVNode("span", { style: { "color": "#D73A49" } }, "export"),
2781
+ createVNode("span", { style: { "color": "#24292E" } }, " "),
2782
+ createVNode("span", { style: { "color": "#D73A49" } }, "const"),
2783
+ createVNode("span", { style: { "color": "#24292E" } }, " "),
2784
+ createVNode("span", { style: { "color": "#6F42C1" } }, "install"),
2785
+ createVNode("span", { style: { "color": "#D73A49" } }, ":"),
2786
+ createVNode("span", { style: { "color": "#24292E" } }, " "),
2787
+ createVNode("span", { style: { "color": "#6F42C1" } }, "UserModule"),
2788
+ createVNode("span", { style: { "color": "#24292E" } }, " "),
2789
+ createVNode("span", { style: { "color": "#D73A49" } }, "="),
2790
+ createVNode("span", { style: { "color": "#24292E" } }, " ({ "),
2791
+ createVNode("span", { style: { "color": "#E36209" } }, "isClient"),
2792
+ createVNode("span", { style: { "color": "#24292E" } }, ", "),
2793
+ createVNode("span", { style: { "color": "#E36209" } }, "app"),
2794
+ createVNode("span", { style: { "color": "#24292E" } }, ", "),
2795
+ createVNode("span", { style: { "color": "#E36209" } }, "router"),
2796
+ createVNode("span", { style: { "color": "#24292E" } }, " }) "),
2797
+ createVNode("span", { style: { "color": "#D73A49" } }, "=>"),
2798
+ createVNode("span", { style: { "color": "#24292E" } }, " {")
2799
+ ]),
2800
+ createTextVNode("\n"),
2801
+ createVNode("span", { class: "line" }, [
2802
+ createVNode("span", { style: { "color": "#24292E" } }, " "),
2803
+ createVNode("span", { style: { "color": "#D73A49" } }, "if"),
2804
+ createVNode("span", { style: { "color": "#24292E" } }, " (isClient) {")
2805
+ ]),
2806
+ createTextVNode("\n"),
2807
+ createVNode("span", { class: "line" }, [
2808
+ createVNode("span", { style: { "color": "#24292E" } }, " app."),
2809
+ createVNode("span", { style: { "color": "#6F42C1" } }, "use"),
2810
+ createVNode("span", { style: { "color": "#24292E" } }, "(VueGtag, {")
2811
+ ]),
2812
+ createTextVNode("\n"),
2813
+ createVNode("span", { class: "line" }, [
2814
+ createVNode("span", { style: { "color": "#24292E" } }, " property: { id: "),
2815
+ createVNode("span", { style: { "color": "#032F62" } }, "'G-1LL0D86CY9'"),
2816
+ createVNode("span", { style: { "color": "#24292E" } }, " },")
2817
+ ]),
2818
+ createTextVNode("\n"),
2819
+ createVNode("span", { class: "line" }, [
2820
+ createVNode("span", { style: { "color": "#24292E" } }, " })")
2821
+ ]),
2822
+ createTextVNode("\n"),
2823
+ createVNode("span", { class: "line" }),
2824
+ createTextVNode("\n"),
2825
+ createVNode("span", { class: "line" }, [
2826
+ createVNode("span", { style: { "color": "#24292E" } }, " "),
2827
+ createVNode("span", { style: { "color": "#6F42C1" } }, "trackRouter"),
2828
+ createVNode("span", { style: { "color": "#24292E" } }, "(router)")
2829
+ ]),
2830
+ createTextVNode("\n"),
2831
+ createVNode("span", { class: "line" }, [
2832
+ createVNode("span", { style: { "color": "#24292E" } }, " }")
2833
+ ]),
2834
+ createTextVNode("\n"),
2835
+ createVNode("span", { class: "line" }, [
2836
+ createVNode("span", { style: { "color": "#24292E" } }, "}")
2837
+ ])
2838
+ ])
2839
+ ])
2840
+ ])
2841
+ ]),
2842
+ createVNode("div", { lang: "en" }, [
2843
+ createVNode("blockquote", null, [
2844
+ createVNode("p", null, [
2845
+ createTextVNode("Refer to "),
2846
+ createVNode(_component_AppLink, { href: "/guide/custom/extend#extending-client-context" }, {
2847
+ default: withCtx(() => [
2848
+ createTextVNode("Custom Extensions | Extending Client Context")
2849
+ ]),
2850
+ _: 1
2851
+ /* STABLE */
2852
+ })
2853
+ ])
2854
+ ]),
2855
+ createVNode("p", null, "You can add Google Statistics by using Vue plug-in directly."),
2856
+ createVNode("p", null, "For example:"),
2857
+ createVNode("ul", null, [
2858
+ createVNode("li", null, [
2859
+ createTextVNode("Install the dependency: "),
2860
+ createVNode("code", null, "pnpm add vue-gtag-next")
2861
+ ]),
2862
+ createVNode("li", null, [
2863
+ createTextVNode("Create "),
2864
+ createVNode("code", null, "setup/main.ts")
2865
+ ])
2866
+ ]),
2867
+ createVNode("div", { class: "language-ts" }, [
2868
+ createVNode("button", {
2869
+ title: "Copy Code",
2870
+ class: "copy"
2871
+ }),
2872
+ createVNode("span", { class: "lang" }, "ts"),
2873
+ createVNode("pre", { class: "shiki github-dark vp-code-dark" }, [
2874
+ createVNode("code", null, [
2875
+ createVNode("span", { class: "line" }, [
2876
+ createVNode("span", { style: { "color": "#6A737D" } }, "// setup/main.ts")
2877
+ ]),
2878
+ createTextVNode("\n"),
2879
+ createVNode("span", { class: "line" }, [
2880
+ createVNode("span", { style: { "color": "#F97583" } }, "import"),
2881
+ createVNode("span", { style: { "color": "#E1E4E8" } }, " { defineAppSetup } "),
2882
+ createVNode("span", { style: { "color": "#F97583" } }, "from"),
2883
+ createVNode("span", { style: { "color": "#E1E4E8" } }, " "),
2884
+ createVNode("span", { style: { "color": "#9ECBFF" } }, "'valaxy'")
2885
+ ]),
2886
+ createTextVNode("\n"),
2887
+ createVNode("span", { class: "line" }, [
2888
+ createVNode("span", { style: { "color": "#F97583" } }, "import"),
2889
+ createVNode("span", { style: { "color": "#E1E4E8" } }, " { install "),
2890
+ createVNode("span", { style: { "color": "#F97583" } }, "as"),
2891
+ createVNode("span", { style: { "color": "#E1E4E8" } }, " installGtag } "),
2892
+ createVNode("span", { style: { "color": "#F97583" } }, "from"),
2893
+ createVNode("span", { style: { "color": "#E1E4E8" } }, " "),
2894
+ createVNode("span", { style: { "color": "#9ECBFF" } }, "'./gtag'")
2895
+ ]),
2896
+ createTextVNode("\n"),
2897
+ createVNode("span", { class: "line" }),
2898
+ createTextVNode("\n"),
2899
+ createVNode("span", { class: "line" }, [
2900
+ createVNode("span", { style: { "color": "#F97583" } }, "export"),
2901
+ createVNode("span", { style: { "color": "#E1E4E8" } }, " "),
2902
+ createVNode("span", { style: { "color": "#F97583" } }, "default"),
2903
+ createVNode("span", { style: { "color": "#E1E4E8" } }, " "),
2904
+ createVNode("span", { style: { "color": "#B392F0" } }, "defineAppSetup"),
2905
+ createVNode("span", { style: { "color": "#E1E4E8" } }, "(("),
2906
+ createVNode("span", { style: { "color": "#FFAB70" } }, "ctx"),
2907
+ createVNode("span", { style: { "color": "#E1E4E8" } }, ") "),
2908
+ createVNode("span", { style: { "color": "#F97583" } }, "=>"),
2909
+ createVNode("span", { style: { "color": "#E1E4E8" } }, " {")
2910
+ ]),
2911
+ createTextVNode("\n"),
2912
+ createVNode("span", { class: "line" }, [
2913
+ createVNode("span", { style: { "color": "#E1E4E8" } }, " "),
2914
+ createVNode("span", { style: { "color": "#B392F0" } }, "installGtag"),
2915
+ createVNode("span", { style: { "color": "#E1E4E8" } }, "(ctx)")
2916
+ ]),
2917
+ createTextVNode("\n"),
2918
+ createVNode("span", { class: "line" }, [
2919
+ createVNode("span", { style: { "color": "#E1E4E8" } }, "})")
2920
+ ])
2921
+ ])
2922
+ ]),
2923
+ createVNode("pre", { class: "shiki github-light vp-code-light" }, [
2924
+ createVNode("code", null, [
2925
+ createVNode("span", { class: "line" }, [
2926
+ createVNode("span", { style: { "color": "#6A737D" } }, "// setup/main.ts")
2927
+ ]),
2928
+ createTextVNode("\n"),
2929
+ createVNode("span", { class: "line" }, [
2930
+ createVNode("span", { style: { "color": "#D73A49" } }, "import"),
2931
+ createVNode("span", { style: { "color": "#24292E" } }, " { defineAppSetup } "),
2932
+ createVNode("span", { style: { "color": "#D73A49" } }, "from"),
2933
+ createVNode("span", { style: { "color": "#24292E" } }, " "),
2934
+ createVNode("span", { style: { "color": "#032F62" } }, "'valaxy'")
2935
+ ]),
2936
+ createTextVNode("\n"),
2937
+ createVNode("span", { class: "line" }, [
2938
+ createVNode("span", { style: { "color": "#D73A49" } }, "import"),
2939
+ createVNode("span", { style: { "color": "#24292E" } }, " { install "),
2940
+ createVNode("span", { style: { "color": "#D73A49" } }, "as"),
2941
+ createVNode("span", { style: { "color": "#24292E" } }, " installGtag } "),
2942
+ createVNode("span", { style: { "color": "#D73A49" } }, "from"),
2943
+ createVNode("span", { style: { "color": "#24292E" } }, " "),
2944
+ createVNode("span", { style: { "color": "#032F62" } }, "'./gtag'")
2945
+ ]),
2946
+ createTextVNode("\n"),
2947
+ createVNode("span", { class: "line" }),
2948
+ createTextVNode("\n"),
2949
+ createVNode("span", { class: "line" }, [
2950
+ createVNode("span", { style: { "color": "#D73A49" } }, "export"),
2951
+ createVNode("span", { style: { "color": "#24292E" } }, " "),
2952
+ createVNode("span", { style: { "color": "#D73A49" } }, "default"),
2953
+ createVNode("span", { style: { "color": "#24292E" } }, " "),
2954
+ createVNode("span", { style: { "color": "#6F42C1" } }, "defineAppSetup"),
2955
+ createVNode("span", { style: { "color": "#24292E" } }, "(("),
2956
+ createVNode("span", { style: { "color": "#E36209" } }, "ctx"),
2957
+ createVNode("span", { style: { "color": "#24292E" } }, ") "),
2958
+ createVNode("span", { style: { "color": "#D73A49" } }, "=>"),
2959
+ createVNode("span", { style: { "color": "#24292E" } }, " {")
2960
+ ]),
2961
+ createTextVNode("\n"),
2962
+ createVNode("span", { class: "line" }, [
2963
+ createVNode("span", { style: { "color": "#24292E" } }, " "),
2964
+ createVNode("span", { style: { "color": "#6F42C1" } }, "installGtag"),
2965
+ createVNode("span", { style: { "color": "#24292E" } }, "(ctx)")
2966
+ ]),
2967
+ createTextVNode("\n"),
2968
+ createVNode("span", { class: "line" }, [
2969
+ createVNode("span", { style: { "color": "#24292E" } }, "})")
2970
+ ])
2971
+ ])
2972
+ ])
2973
+ ]),
2974
+ createVNode("ul", null, [
2975
+ createVNode("li", null, [
2976
+ createTextVNode("Create "),
2977
+ createVNode("code", null, "setup/gtag.ts")
2978
+ ])
2979
+ ]),
2980
+ createVNode("div", { class: "language-ts" }, [
2981
+ createVNode("button", {
2982
+ title: "Copy Code",
2983
+ class: "copy"
2984
+ }),
2985
+ createVNode("span", { class: "lang" }, "ts"),
2986
+ createVNode("pre", { class: "shiki github-dark vp-code-dark" }, [
2987
+ createVNode("code", null, [
2988
+ createVNode("span", { class: "line" }, [
2989
+ createVNode("span", { style: { "color": "#F97583" } }, "import"),
2990
+ createVNode("span", { style: { "color": "#E1E4E8" } }, " VueGtag, { trackRouter } "),
2991
+ createVNode("span", { style: { "color": "#F97583" } }, "from"),
2992
+ createVNode("span", { style: { "color": "#E1E4E8" } }, " "),
2993
+ createVNode("span", { style: { "color": "#9ECBFF" } }, "'vue-gtag-next'")
2994
+ ]),
2995
+ createTextVNode("\n"),
2996
+ createVNode("span", { class: "line" }, [
2997
+ createVNode("span", { style: { "color": "#F97583" } }, "import"),
2998
+ createVNode("span", { style: { "color": "#E1E4E8" } }, " "),
2999
+ createVNode("span", { style: { "color": "#F97583" } }, "type"),
3000
+ createVNode("span", { style: { "color": "#E1E4E8" } }, " { UserModule } "),
3001
+ createVNode("span", { style: { "color": "#F97583" } }, "from"),
3002
+ createVNode("span", { style: { "color": "#E1E4E8" } }, " "),
3003
+ createVNode("span", { style: { "color": "#9ECBFF" } }, "'valaxy'")
3004
+ ]),
3005
+ createTextVNode("\n"),
3006
+ createVNode("span", { class: "line" }),
3007
+ createTextVNode("\n"),
3008
+ createVNode("span", { class: "line" }, [
3009
+ createVNode("span", { style: { "color": "#F97583" } }, "export"),
3010
+ createVNode("span", { style: { "color": "#E1E4E8" } }, " "),
3011
+ createVNode("span", { style: { "color": "#F97583" } }, "const"),
3012
+ createVNode("span", { style: { "color": "#E1E4E8" } }, " "),
3013
+ createVNode("span", { style: { "color": "#B392F0" } }, "install"),
3014
+ createVNode("span", { style: { "color": "#F97583" } }, ":"),
3015
+ createVNode("span", { style: { "color": "#E1E4E8" } }, " "),
3016
+ createVNode("span", { style: { "color": "#B392F0" } }, "UserModule"),
3017
+ createVNode("span", { style: { "color": "#E1E4E8" } }, " "),
3018
+ createVNode("span", { style: { "color": "#F97583" } }, "="),
3019
+ createVNode("span", { style: { "color": "#E1E4E8" } }, " ({ "),
3020
+ createVNode("span", { style: { "color": "#FFAB70" } }, "isClient"),
3021
+ createVNode("span", { style: { "color": "#E1E4E8" } }, ", "),
3022
+ createVNode("span", { style: { "color": "#FFAB70" } }, "app"),
3023
+ createVNode("span", { style: { "color": "#E1E4E8" } }, ", "),
3024
+ createVNode("span", { style: { "color": "#FFAB70" } }, "router"),
3025
+ createVNode("span", { style: { "color": "#E1E4E8" } }, " }) "),
3026
+ createVNode("span", { style: { "color": "#F97583" } }, "=>"),
3027
+ createVNode("span", { style: { "color": "#E1E4E8" } }, " {")
3028
+ ]),
3029
+ createTextVNode("\n"),
3030
+ createVNode("span", { class: "line" }, [
3031
+ createVNode("span", { style: { "color": "#E1E4E8" } }, " "),
3032
+ createVNode("span", { style: { "color": "#F97583" } }, "if"),
3033
+ createVNode("span", { style: { "color": "#E1E4E8" } }, " (isClient) {")
3034
+ ]),
3035
+ createTextVNode("\n"),
3036
+ createVNode("span", { class: "line" }, [
3037
+ createVNode("span", { style: { "color": "#E1E4E8" } }, " app."),
3038
+ createVNode("span", { style: { "color": "#B392F0" } }, "use"),
3039
+ createVNode("span", { style: { "color": "#E1E4E8" } }, "(VueGtag, {")
3040
+ ]),
3041
+ createTextVNode("\n"),
3042
+ createVNode("span", { class: "line" }, [
3043
+ createVNode("span", { style: { "color": "#E1E4E8" } }, " property: { id: "),
3044
+ createVNode("span", { style: { "color": "#9ECBFF" } }, "'G-1LL0D86CY9'"),
3045
+ createVNode("span", { style: { "color": "#E1E4E8" } }, " },")
3046
+ ]),
3047
+ createTextVNode("\n"),
3048
+ createVNode("span", { class: "line" }, [
3049
+ createVNode("span", { style: { "color": "#E1E4E8" } }, " })")
3050
+ ]),
3051
+ createTextVNode("\n"),
3052
+ createVNode("span", { class: "line" }),
3053
+ createTextVNode("\n"),
3054
+ createVNode("span", { class: "line" }, [
3055
+ createVNode("span", { style: { "color": "#E1E4E8" } }, " "),
3056
+ createVNode("span", { style: { "color": "#B392F0" } }, "trackRouter"),
3057
+ createVNode("span", { style: { "color": "#E1E4E8" } }, "(router)")
3058
+ ]),
3059
+ createTextVNode("\n"),
3060
+ createVNode("span", { class: "line" }, [
3061
+ createVNode("span", { style: { "color": "#E1E4E8" } }, " }")
3062
+ ]),
3063
+ createTextVNode("\n"),
3064
+ createVNode("span", { class: "line" }, [
3065
+ createVNode("span", { style: { "color": "#E1E4E8" } }, "}")
3066
+ ])
3067
+ ])
3068
+ ]),
3069
+ createVNode("pre", { class: "shiki github-light vp-code-light" }, [
3070
+ createVNode("code", null, [
3071
+ createVNode("span", { class: "line" }, [
3072
+ createVNode("span", { style: { "color": "#D73A49" } }, "import"),
3073
+ createVNode("span", { style: { "color": "#24292E" } }, " VueGtag, { trackRouter } "),
3074
+ createVNode("span", { style: { "color": "#D73A49" } }, "from"),
3075
+ createVNode("span", { style: { "color": "#24292E" } }, " "),
3076
+ createVNode("span", { style: { "color": "#032F62" } }, "'vue-gtag-next'")
3077
+ ]),
3078
+ createTextVNode("\n"),
3079
+ createVNode("span", { class: "line" }, [
3080
+ createVNode("span", { style: { "color": "#D73A49" } }, "import"),
3081
+ createVNode("span", { style: { "color": "#24292E" } }, " "),
3082
+ createVNode("span", { style: { "color": "#D73A49" } }, "type"),
3083
+ createVNode("span", { style: { "color": "#24292E" } }, " { UserModule } "),
3084
+ createVNode("span", { style: { "color": "#D73A49" } }, "from"),
3085
+ createVNode("span", { style: { "color": "#24292E" } }, " "),
3086
+ createVNode("span", { style: { "color": "#032F62" } }, "'valaxy'")
3087
+ ]),
3088
+ createTextVNode("\n"),
3089
+ createVNode("span", { class: "line" }),
3090
+ createTextVNode("\n"),
3091
+ createVNode("span", { class: "line" }, [
3092
+ createVNode("span", { style: { "color": "#D73A49" } }, "export"),
3093
+ createVNode("span", { style: { "color": "#24292E" } }, " "),
3094
+ createVNode("span", { style: { "color": "#D73A49" } }, "const"),
3095
+ createVNode("span", { style: { "color": "#24292E" } }, " "),
3096
+ createVNode("span", { style: { "color": "#6F42C1" } }, "install"),
3097
+ createVNode("span", { style: { "color": "#D73A49" } }, ":"),
3098
+ createVNode("span", { style: { "color": "#24292E" } }, " "),
3099
+ createVNode("span", { style: { "color": "#6F42C1" } }, "UserModule"),
3100
+ createVNode("span", { style: { "color": "#24292E" } }, " "),
3101
+ createVNode("span", { style: { "color": "#D73A49" } }, "="),
3102
+ createVNode("span", { style: { "color": "#24292E" } }, " ({ "),
3103
+ createVNode("span", { style: { "color": "#E36209" } }, "isClient"),
3104
+ createVNode("span", { style: { "color": "#24292E" } }, ", "),
3105
+ createVNode("span", { style: { "color": "#E36209" } }, "app"),
3106
+ createVNode("span", { style: { "color": "#24292E" } }, ", "),
3107
+ createVNode("span", { style: { "color": "#E36209" } }, "router"),
3108
+ createVNode("span", { style: { "color": "#24292E" } }, " }) "),
3109
+ createVNode("span", { style: { "color": "#D73A49" } }, "=>"),
3110
+ createVNode("span", { style: { "color": "#24292E" } }, " {")
3111
+ ]),
3112
+ createTextVNode("\n"),
3113
+ createVNode("span", { class: "line" }, [
3114
+ createVNode("span", { style: { "color": "#24292E" } }, " "),
3115
+ createVNode("span", { style: { "color": "#D73A49" } }, "if"),
3116
+ createVNode("span", { style: { "color": "#24292E" } }, " (isClient) {")
3117
+ ]),
3118
+ createTextVNode("\n"),
3119
+ createVNode("span", { class: "line" }, [
3120
+ createVNode("span", { style: { "color": "#24292E" } }, " app."),
3121
+ createVNode("span", { style: { "color": "#6F42C1" } }, "use"),
3122
+ createVNode("span", { style: { "color": "#24292E" } }, "(VueGtag, {")
3123
+ ]),
3124
+ createTextVNode("\n"),
3125
+ createVNode("span", { class: "line" }, [
3126
+ createVNode("span", { style: { "color": "#24292E" } }, " property: { id: "),
3127
+ createVNode("span", { style: { "color": "#032F62" } }, "'G-1LL0D86CY9'"),
3128
+ createVNode("span", { style: { "color": "#24292E" } }, " },")
3129
+ ]),
3130
+ createTextVNode("\n"),
3131
+ createVNode("span", { class: "line" }, [
3132
+ createVNode("span", { style: { "color": "#24292E" } }, " })")
3133
+ ]),
3134
+ createTextVNode("\n"),
3135
+ createVNode("span", { class: "line" }),
3136
+ createTextVNode("\n"),
3137
+ createVNode("span", { class: "line" }, [
3138
+ createVNode("span", { style: { "color": "#24292E" } }, " "),
3139
+ createVNode("span", { style: { "color": "#6F42C1" } }, "trackRouter"),
3140
+ createVNode("span", { style: { "color": "#24292E" } }, "(router)")
3141
+ ]),
3142
+ createTextVNode("\n"),
3143
+ createVNode("span", { class: "line" }, [
3144
+ createVNode("span", { style: { "color": "#24292E" } }, " }")
3145
+ ]),
3146
+ createTextVNode("\n"),
3147
+ createVNode("span", { class: "line" }, [
3148
+ createVNode("span", { style: { "color": "#24292E" } }, "}")
3149
+ ])
3150
+ ])
3151
+ ])
3152
+ ])
3153
+ ]),
3154
+ createVNode("p", null, [
3155
+ createTextVNode("More info see "),
3156
+ createVNode(_component_AppLink, {
3157
+ href: "https://github.com/MatteoGabriele/vue-gtag-next",
3158
+ target: "_blank",
3159
+ rel: "noreferrer"
3160
+ }, {
3161
+ default: withCtx(() => [
3162
+ createTextVNode("vue-gtag-next")
3163
+ ]),
3164
+ _: 1
3165
+ /* STABLE */
3166
+ }),
3167
+ createTextVNode(".")
3168
+ ])
3169
+ ];
3170
+ }
3171
+ }),
3172
+ "main-header": withCtx((_, _push2, _parent2, _scopeId) => {
3173
+ if (_push2) {
3174
+ ssrRenderSlot(_ctx.$slots, "main-header", {}, null, _push2, _parent2, _scopeId);
3175
+ } else {
3176
+ return [
3177
+ renderSlot(_ctx.$slots, "main-header")
3178
+ ];
3179
+ }
3180
+ }),
3181
+ "main-header-after": withCtx((_, _push2, _parent2, _scopeId) => {
3182
+ if (_push2) {
3183
+ ssrRenderSlot(_ctx.$slots, "main-header-after", {}, null, _push2, _parent2, _scopeId);
3184
+ } else {
3185
+ return [
3186
+ renderSlot(_ctx.$slots, "main-header-after")
3187
+ ];
3188
+ }
3189
+ }),
3190
+ "main-nav": withCtx((_, _push2, _parent2, _scopeId) => {
3191
+ if (_push2) {
3192
+ ssrRenderSlot(_ctx.$slots, "main-nav", {}, null, _push2, _parent2, _scopeId);
3193
+ } else {
3194
+ return [
3195
+ renderSlot(_ctx.$slots, "main-nav")
3196
+ ];
3197
+ }
3198
+ }),
3199
+ "main-content": withCtx((_, _push2, _parent2, _scopeId) => {
3200
+ if (_push2) {
3201
+ ssrRenderSlot(_ctx.$slots, "main-content", {}, null, _push2, _parent2, _scopeId);
3202
+ } else {
3203
+ return [
3204
+ renderSlot(_ctx.$slots, "main-content")
3205
+ ];
3206
+ }
3207
+ }),
3208
+ "main-content-after": withCtx((_, _push2, _parent2, _scopeId) => {
3209
+ if (_push2) {
3210
+ ssrRenderSlot(_ctx.$slots, "main-content-after", {}, null, _push2, _parent2, _scopeId);
3211
+ } else {
3212
+ return [
3213
+ renderSlot(_ctx.$slots, "main-content-after")
3214
+ ];
3215
+ }
3216
+ }),
3217
+ "main-nav-before": withCtx((_, _push2, _parent2, _scopeId) => {
3218
+ if (_push2) {
3219
+ ssrRenderSlot(_ctx.$slots, "main-nav-before", {}, null, _push2, _parent2, _scopeId);
3220
+ } else {
3221
+ return [
3222
+ renderSlot(_ctx.$slots, "main-nav-before")
3223
+ ];
3224
+ }
3225
+ }),
3226
+ "main-nav-after": withCtx((_, _push2, _parent2, _scopeId) => {
3227
+ if (_push2) {
3228
+ ssrRenderSlot(_ctx.$slots, "main-nav-after", {}, null, _push2, _parent2, _scopeId);
3229
+ } else {
3230
+ return [
3231
+ renderSlot(_ctx.$slots, "main-nav-after")
3232
+ ];
3233
+ }
3234
+ }),
3235
+ comment: withCtx((_, _push2, _parent2, _scopeId) => {
3236
+ if (_push2) {
3237
+ ssrRenderSlot(_ctx.$slots, "comment", {}, null, _push2, _parent2, _scopeId);
3238
+ } else {
3239
+ return [
3240
+ renderSlot(_ctx.$slots, "comment")
3241
+ ];
3242
+ }
3243
+ }),
3244
+ footer: withCtx((_, _push2, _parent2, _scopeId) => {
3245
+ if (_push2) {
3246
+ ssrRenderSlot(_ctx.$slots, "footer", {}, null, _push2, _parent2, _scopeId);
3247
+ } else {
3248
+ return [
3249
+ renderSlot(_ctx.$slots, "footer")
3250
+ ];
3251
+ }
3252
+ }),
3253
+ aside: withCtx((_, _push2, _parent2, _scopeId) => {
3254
+ if (_push2) {
3255
+ ssrRenderSlot(_ctx.$slots, "aside", {}, null, _push2, _parent2, _scopeId);
3256
+ } else {
3257
+ return [
3258
+ renderSlot(_ctx.$slots, "aside")
3259
+ ];
3260
+ }
3261
+ }),
3262
+ "aside-custom": withCtx((_, _push2, _parent2, _scopeId) => {
3263
+ if (_push2) {
3264
+ ssrRenderSlot(_ctx.$slots, "aside-custom", {}, null, _push2, _parent2, _scopeId);
3265
+ } else {
3266
+ return [
3267
+ renderSlot(_ctx.$slots, "aside-custom")
3268
+ ];
3269
+ }
3270
+ }),
3271
+ default: withCtx((_, _push2, _parent2, _scopeId) => {
3272
+ if (_push2) {
3273
+ ssrRenderSlot(_ctx.$slots, "default", {}, null, _push2, _parent2, _scopeId);
3274
+ } else {
3275
+ return [
3276
+ renderSlot(_ctx.$slots, "default")
3277
+ ];
3278
+ }
3279
+ }),
3280
+ _: 3
3281
+ /* FORWARDED */
3282
+ }, _parent));
3283
+ }
3284
+ const _sfc_setup = _sfc_main.setup;
3285
+ _sfc_main.setup = (props, ctx) => {
3286
+ const ssrContext = useSSRContext();
3287
+ (ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("../../../docs/pages/guide/third-party/index.md");
3288
+ return _sfc_setup ? _sfc_setup(props, ctx) : void 0;
3289
+ };
3290
+ const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["ssrRender", _sfc_ssrRender]]);
3291
+ export {
3292
+ __pageData,
3293
+ index as default
3294
+ };