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.
- package/bin/valaxy.cjs +1 -1
- package/bin/valaxy.mjs +1 -1
- package/client/.vite-ssg-temp/tbbjcbuyn2/CNAME +1 -0
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/PressAlgoliaSearch-2943719f.js +227 -0
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/ValaxyMain-26e77dc6.js +752 -0
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/_...all_-080f97f3.js +31 -0
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/_...all_-5084a1b0.js +42 -0
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/addon-f5fa83e1.js +172 -0
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/best-pratice-0231a551.js +1105 -0
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/client-496183a0.js +286 -0
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/community-1b33ec3b.js +627 -0
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/components-7000ddd3.js +2460 -0
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/deploy-59948619.js +1071 -0
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/docs-26abd7f8.js +490 -0
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/extend-975f8f72.js +1851 -0
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/extend-acd7107b.js +1444 -0
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/faq-62ed7bfd.js +321 -0
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/features-8acbd53d.js +2625 -0
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/gallery-832227a9.js +244 -0
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/gallery-9077df38.js +370 -0
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/getting-started-52c30f03.js +3684 -0
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/hexo-7311896e.js +969 -0
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/hooks-67450cb3.js +517 -0
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/i18n-4cd1bb86.js +4159 -0
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/i18n-e1165bc4.js +676 -0
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/index-002f83fb.js +768 -0
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/index-3dec2b83.js +527 -0
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/index-43565e48.js +424 -0
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/index-5f07432e.js +563 -0
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/index-6024f010.js +3294 -0
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/index-6f0d6ec7.js +202 -0
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/index-78c510e0.js +549 -0
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/index-839c338e.js +4161 -0
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/index-d39a48fd.js +1170 -0
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/index-e633613c.js +1564 -0
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/katex-32f21e80.js +6119 -0
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/logo-bd69f816.js +180 -0
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/markdown-050f3269.js +5895 -0
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/news-ecba2d88.js +278 -0
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/page-d48f3caa.js +752 -0
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/post-ac89eaf5.js +1605 -0
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/route-block-c0a8bdd8.js +4 -0
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/schema-org-f60b7dac.js +477 -0
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/site-6caa6511.js +286 -0
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/style-f415f7fa.css +3742 -0
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/styles-cdaadad2.js +548 -0
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/templates-c97584f2.js +574 -0
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/theme-192f77ef.js +172 -0
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/use-3c036a47.js +669 -0
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/use-851c0307.js +619 -0
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/vite-vue-f91b9792.js +830 -0
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/vscode-bc411e64.js +350 -0
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/why-c98bbe8e.js +1131 -0
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/write-6a43d4d0.js +4963 -0
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/write-6bc2b77c.js +675 -0
- package/client/.vite-ssg-temp/tbbjcbuyn2/favicon.svg +33 -0
- package/client/.vite-ssg-temp/tbbjcbuyn2/main.mjs +6239 -0
- package/client/.vite-ssg-temp/tbbjcbuyn2/valaxy-logo.png +0 -0
- package/client/.vite-ssg-temp/vp12eb5cgm/CNAME +1 -0
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/PressAlgoliaSearch-2943719f.js +227 -0
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/ValaxyMain-26e77dc6.js +752 -0
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/_...all_-080f97f3.js +31 -0
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/_...all_-5084a1b0.js +42 -0
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/addon-f5fa83e1.js +172 -0
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/best-pratice-0231a551.js +1105 -0
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/client-496183a0.js +286 -0
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/community-1b33ec3b.js +627 -0
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/components-7000ddd3.js +2460 -0
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/deploy-59948619.js +1071 -0
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/docs-26abd7f8.js +490 -0
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/extend-975f8f72.js +1851 -0
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/extend-acd7107b.js +1444 -0
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/faq-62ed7bfd.js +321 -0
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/features-8acbd53d.js +2625 -0
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/gallery-832227a9.js +244 -0
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/gallery-9077df38.js +370 -0
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/getting-started-bb7fc0a8.js +3684 -0
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/hexo-7311896e.js +969 -0
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/hooks-67450cb3.js +517 -0
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/i18n-4cd1bb86.js +4159 -0
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/i18n-e1165bc4.js +676 -0
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/index-002f83fb.js +768 -0
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/index-3dec2b83.js +527 -0
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/index-43565e48.js +424 -0
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/index-5f07432e.js +563 -0
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/index-6024f010.js +3294 -0
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/index-6f0d6ec7.js +202 -0
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/index-78c510e0.js +549 -0
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/index-839c338e.js +4161 -0
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/index-d39a48fd.js +1170 -0
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/index-e633613c.js +1564 -0
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/katex-32f21e80.js +6119 -0
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/logo-bd69f816.js +180 -0
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/markdown-abdb17ca.js +5895 -0
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/news-ecba2d88.js +278 -0
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/page-d48f3caa.js +752 -0
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/post-0ed0dfec.js +1605 -0
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/route-block-c0a8bdd8.js +4 -0
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/schema-org-f60b7dac.js +477 -0
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/site-6caa6511.js +286 -0
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/style-f415f7fa.css +3742 -0
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/styles-cdaadad2.js +548 -0
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/templates-c97584f2.js +574 -0
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/theme-192f77ef.js +172 -0
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/use-3c036a47.js +669 -0
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/use-851c0307.js +619 -0
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/vite-vue-f91b9792.js +830 -0
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/vscode-bc411e64.js +350 -0
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/why-c98bbe8e.js +1131 -0
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/write-6a43d4d0.js +4963 -0
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/write-6bc2b77c.js +675 -0
- package/client/.vite-ssg-temp/vp12eb5cgm/favicon.svg +33 -0
- package/client/.vite-ssg-temp/vp12eb5cgm/main.mjs +6239 -0
- package/client/.vite-ssg-temp/vp12eb5cgm/valaxy-logo.png +0 -0
- package/client/App.vue +1 -1
- package/client/components/AppLink.vue +2 -2
- package/client/components/ValaxyMd.vue +1 -1
- package/client/components/ValaxyOverlay.vue +2 -2
- package/client/components/ValaxyPagination.vue +6 -6
- package/client/components/debug/ValaxyDevtools.vue +6 -0
- package/client/composables/dark.ts +39 -0
- package/client/layouts/404.vue +1 -1
- package/client/layouts/layout.vue +2 -2
- package/client/locales/zh-CN.yml +1 -1
- package/client/pages/[...all].vue +2 -0
- package/client/styles/common/transition.scss +1 -0
- package/client/styles/common/view-transition.css +21 -0
- package/dist/chunk-3EJGKTUH.mjs +130 -0
- package/dist/chunk-RDNVTVQ5.cjs +129 -0
- package/dist/{config-29a16f62.d.ts → config-e5704a2c.d.ts} +223 -1
- package/dist/node/cli/index.cjs +1 -0
- package/dist/node/cli/index.mjs +2 -0
- package/dist/node/index.cjs +1 -1
- package/dist/node/index.d.cts +14 -2
- package/dist/node/index.d.ts +14 -2
- package/dist/node/index.mjs +1 -1
- package/dist/types/index.d.cts +3 -220
- package/dist/types/index.d.ts +3 -220
- package/dist/types/index.mjs +1 -1
- package/package.json +19 -18
- package/types/config.ts +6 -0
- package/LICENSE +0 -21
- package/dist/chunk-2EVEFEO4.mjs +0 -130
- package/dist/chunk-BYK2L2MY.cjs +0 -129
- package/dist/node/cli.cjs +0 -1
- package/dist/node/cli.mjs +0 -2
- /package/dist/node/{cli.d.cts → cli/index.d.cts} +0 -0
- /package/dist/node/{cli.d.ts → cli/index.d.ts} +0 -0
|
@@ -0,0 +1,1851 @@
|
|
|
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":"Custom Extensions","description":"","frontmatter":{"title":"Custom Extensions","title_zh-CN":"自定义扩展","categories":["custom"],"end":false},"headers":[{"level":2,"title":"自动布局注册","slug":"自动布局注册","link":"#自动布局注册","children":[]},{"level":2,"title":"Automatic Layout Registration","slug":"automatic-layout-registration","link":"#automatic-layout-registration","children":[]},{"level":2,"title":"自定义 index.html","slug":"自定义-index-html","link":"#自定义-index-html","children":[]},{"level":2,"title":"Customizing index.html","slug":"customizing-index-html","link":"#customizing-index-html","children":[]},{"level":2,"title":"扩展 Client 上下文","slug":"扩展-client-上下文","link":"#扩展-client-上下文","children":[]},{"level":2,"title":"Extending Client Context","slug":"extending-client-context","link":"#extending-client-context","children":[]},{"level":2,"title":"多语言支持","slug":"多语言支持","link":"#多语言支持","children":[]},{"level":2,"title":"I18n","slug":"i18n","link":"#i18n","children":[]},{"level":2,"title":"模版文件","slug":"模版文件","link":"#模版文件","children":[]},{"level":2,"title":"Template Files","slug":"template-files","link":"#template-files","children":[]},{"level":2,"title":"其他","slug":"其他","link":"#其他","children":[]},{"level":2,"title":"Others","slug":"others","link":"#others","children":[]}],"relativePath":"pages/guide/custom/extend.md","path":"C:\\\\Users\\\\me\\\\repos\\\\yyj\\\\valaxy\\\\docs\\\\pages\\\\guide\\\\custom\\\\extend.md","lastUpdated":1696368478000}');
|
|
25
|
+
const data = JSON.parse('{"title":"Custom Extensions","description":"","frontmatter":{"title":"Custom Extensions","title_zh-CN":"自定义扩展","categories":["custom"],"end":false},"headers":[{"level":2,"title":"自动布局注册","slug":"自动布局注册","link":"#自动布局注册","children":[]},{"level":2,"title":"Automatic Layout Registration","slug":"automatic-layout-registration","link":"#automatic-layout-registration","children":[]},{"level":2,"title":"自定义 index.html","slug":"自定义-index-html","link":"#自定义-index-html","children":[]},{"level":2,"title":"Customizing index.html","slug":"customizing-index-html","link":"#customizing-index-html","children":[]},{"level":2,"title":"扩展 Client 上下文","slug":"扩展-client-上下文","link":"#扩展-client-上下文","children":[]},{"level":2,"title":"Extending Client Context","slug":"extending-client-context","link":"#extending-client-context","children":[]},{"level":2,"title":"多语言支持","slug":"多语言支持","link":"#多语言支持","children":[]},{"level":2,"title":"I18n","slug":"i18n","link":"#i18n","children":[]},{"level":2,"title":"模版文件","slug":"模版文件","link":"#模版文件","children":[]},{"level":2,"title":"Template Files","slug":"template-files","link":"#template-files","children":[]},{"level":2,"title":"其他","slug":"其他","link":"#其他","children":[]},{"level":2,"title":"Others","slug":"others","link":"#others","children":[]}],"relativePath":"pages/guide/custom/extend.md","path":"C:\\\\Users\\\\me\\\\repos\\\\yyj\\\\valaxy\\\\docs\\\\pages\\\\guide\\\\custom\\\\extend.md","lastUpdated":1696368478000}');
|
|
26
|
+
const _sfc_main = {
|
|
27
|
+
name: "pages/guide/custom/extend.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(`<div lang="zh-CN"${_scopeId}><p${_scopeId}>Valaxy 以约定大于配置的方式提供了强大的扩展功能,如果你有一定开发经验,可以自定义控制站点的每一处细节。</p></div><div lang="en"${_scopeId}><p${_scopeId}>Valaxy provides strong extensibility by "Convension over Configuration". If you have some development experience, you should be able to control every detail in the website.</p></div><div lang="zh-CN"${_scopeId}><blockquote${_scopeId}><p${_scopeId}>以下内容无论对于用户还是主题开发者来说都同样适用。</p></blockquote><div class="tip custom-block"${_scopeId}><p class="custom-block-title"${_scopeId}><i class="icon i-carbon-thumbs-up"${_scopeId}></i><span lang="en"${_scopeId}>TIP</span><span lang="zh-CN"${_scopeId}>提示</span></p><p${_scopeId}>默认在用户站点根目录或主题根目录下操作。</p><p${_scopeId}>如果你想要有所参考,你可以参见 `);
|
|
47
|
+
_push2(ssrRenderComponent(_component_AppLink, {
|
|
48
|
+
href: "https://github.com/YunYouJun/valaxy/tree/main/packages/valaxy-theme-yun",
|
|
49
|
+
target: "_blank",
|
|
50
|
+
rel: "noreferrer"
|
|
51
|
+
}, {
|
|
52
|
+
default: withCtx((_2, _push3, _parent3, _scopeId2) => {
|
|
53
|
+
if (_push3) {
|
|
54
|
+
_push3(`valaxy-theme-yun`);
|
|
55
|
+
} else {
|
|
56
|
+
return [
|
|
57
|
+
createTextVNode("valaxy-theme-yun")
|
|
58
|
+
];
|
|
59
|
+
}
|
|
60
|
+
}),
|
|
61
|
+
_: 1
|
|
62
|
+
/* STABLE */
|
|
63
|
+
}, _parent2, _scopeId));
|
|
64
|
+
_push2(`。</p></div></div><div lang="en"${_scopeId}><blockquote${_scopeId}><p${_scopeId}>The following content applies to either users or theme developers.</p></blockquote><div class="tip custom-block"${_scopeId}><p class="custom-block-title"${_scopeId}><i class="icon i-carbon-thumbs-up"${_scopeId}></i><span lang="en"${_scopeId}>TIP</span><span lang="zh-CN"${_scopeId}>提示</span></p><p${_scopeId}>By default, the operations are done in the root directory of the site or the theme.</p><p${_scopeId}>If you want some reference, you can refer to `);
|
|
65
|
+
_push2(ssrRenderComponent(_component_AppLink, {
|
|
66
|
+
href: "https://github.com/YunYouJun/valaxy/tree/main/packages/valaxy-theme-yun",
|
|
67
|
+
target: "_blank",
|
|
68
|
+
rel: "noreferrer"
|
|
69
|
+
}, {
|
|
70
|
+
default: withCtx((_2, _push3, _parent3, _scopeId2) => {
|
|
71
|
+
if (_push3) {
|
|
72
|
+
_push3(`valaxy-theme-yun`);
|
|
73
|
+
} else {
|
|
74
|
+
return [
|
|
75
|
+
createTextVNode("valaxy-theme-yun")
|
|
76
|
+
];
|
|
77
|
+
}
|
|
78
|
+
}),
|
|
79
|
+
_: 1
|
|
80
|
+
/* STABLE */
|
|
81
|
+
}, _parent2, _scopeId));
|
|
82
|
+
_push2(`.</p></div></div><h2 lang="zh-CN" id="自动布局注册" tabindex="-1"${_scopeId}>自动布局注册 `);
|
|
83
|
+
_push2(ssrRenderComponent(_component_AppLink, {
|
|
84
|
+
class: "header-anchor",
|
|
85
|
+
href: "#自动布局注册",
|
|
86
|
+
"aria-label": 'Permalink to "自动布局注册 {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(`</h2><h2 lang="en" id="automatic-layout-registration" tabindex="-1"${_scopeId}>Automatic Layout Registration `);
|
|
101
|
+
_push2(ssrRenderComponent(_component_AppLink, {
|
|
102
|
+
class: "header-anchor",
|
|
103
|
+
href: "#automatic-layout-registration",
|
|
104
|
+
"aria-label": 'Permalink to "Automatic Layout Registration {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(`</h2><div lang="zh-CN"${_scopeId}><p${_scopeId}>基于 `);
|
|
119
|
+
_push2(ssrRenderComponent(_component_AppLink, {
|
|
120
|
+
href: "https://github.com/JohnCampionJr/vite-plugin-vue-layouts",
|
|
121
|
+
target: "_blank",
|
|
122
|
+
rel: "noreferrer"
|
|
123
|
+
}, {
|
|
124
|
+
default: withCtx((_2, _push3, _parent3, _scopeId2) => {
|
|
125
|
+
if (_push3) {
|
|
126
|
+
_push3(`vite-plugin-vue-layouts`);
|
|
127
|
+
} else {
|
|
128
|
+
return [
|
|
129
|
+
createTextVNode("vite-plugin-vue-layouts")
|
|
130
|
+
];
|
|
131
|
+
}
|
|
132
|
+
}),
|
|
133
|
+
_: 1
|
|
134
|
+
/* STABLE */
|
|
135
|
+
}, _parent2, _scopeId));
|
|
136
|
+
_push2(`,Valaxy 提供了布局功能。</p><p${_scopeId}>新建 <code${_scopeId}>layouts</code> 文件,书写 Vue 组件作为布局。</p><p${_scopeId}>你可以在 Markdown 中如下使用它。</p></div><div lang="en"${_scopeId}><p${_scopeId}>Valaxy provides custom layouts based on `);
|
|
137
|
+
_push2(ssrRenderComponent(_component_AppLink, {
|
|
138
|
+
href: "https://github.com/JohnCampionJr/vite-plugin-vue-layouts",
|
|
139
|
+
target: "_blank",
|
|
140
|
+
rel: "noreferrer"
|
|
141
|
+
}, {
|
|
142
|
+
default: withCtx((_2, _push3, _parent3, _scopeId2) => {
|
|
143
|
+
if (_push3) {
|
|
144
|
+
_push3(`vite-plugin-vue-layouts`);
|
|
145
|
+
} else {
|
|
146
|
+
return [
|
|
147
|
+
createTextVNode("vite-plugin-vue-layouts")
|
|
148
|
+
];
|
|
149
|
+
}
|
|
150
|
+
}),
|
|
151
|
+
_: 1
|
|
152
|
+
/* STABLE */
|
|
153
|
+
}, _parent2, _scopeId));
|
|
154
|
+
_push2(`.</p><p${_scopeId}>Create a <code${_scopeId}>layouts</code> file, and write Vue components as layouts.</p><p${_scopeId}>You can use it in your Markdown as follows.</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>
|
|
155
|
+
<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}>Photos</span></span>
|
|
156
|
+
<span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#85E89D" })}"${_scopeId}>layout</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}>: </span><span style="${ssrRenderStyle({ "color": "#9ECBFF" })}"${_scopeId}>album</span></span>
|
|
157
|
+
<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>
|
|
158
|
+
<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}>Photos</span></span>
|
|
159
|
+
<span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#22863A" })}"${_scopeId}>layout</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}>: </span><span style="${ssrRenderStyle({ "color": "#032F62" })}"${_scopeId}>album</span></span>
|
|
160
|
+
<span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}>---</span></span></code></pre></div><div lang="zh-CN"${_scopeId}><p${_scopeId}>同样,当存在同名布局时,覆盖顺序为 <code${_scopeId}>用户目录</code> -> <code${_scopeId}>主题目录</code> -> <code${_scopeId}>Valaxy 客户端目录</code>。</p></div><div lang="en"${_scopeId}><p${_scopeId}>Likewise, when there are layouts with the same name, the order to use is <code${_scopeId}>user directory</code> -> <code${_scopeId}>theme directory</code> -> <code${_scopeId}>Valaxy directory</code>.</p></div><h2 lang="zh-CN" id="自定义-index-html" tabindex="-1"${_scopeId}>自定义 index.html `);
|
|
161
|
+
_push2(ssrRenderComponent(_component_AppLink, {
|
|
162
|
+
class: "header-anchor",
|
|
163
|
+
href: "#自定义-index-html",
|
|
164
|
+
"aria-label": 'Permalink to "自定义 index.html {lang="zh-CN"}"'
|
|
165
|
+
}, {
|
|
166
|
+
default: withCtx((_2, _push3, _parent3, _scopeId2) => {
|
|
167
|
+
if (_push3) {
|
|
168
|
+
_push3(``);
|
|
169
|
+
} else {
|
|
170
|
+
return [
|
|
171
|
+
createTextVNode("")
|
|
172
|
+
];
|
|
173
|
+
}
|
|
174
|
+
}),
|
|
175
|
+
_: 1
|
|
176
|
+
/* STABLE */
|
|
177
|
+
}, _parent2, _scopeId));
|
|
178
|
+
_push2(`</h2><h2 lang="en" id="customizing-index-html" tabindex="-1"${_scopeId}>Customizing index.html `);
|
|
179
|
+
_push2(ssrRenderComponent(_component_AppLink, {
|
|
180
|
+
class: "header-anchor",
|
|
181
|
+
href: "#customizing-index-html",
|
|
182
|
+
"aria-label": 'Permalink to "Customizing index.html {lang="en"}"'
|
|
183
|
+
}, {
|
|
184
|
+
default: withCtx((_2, _push3, _parent3, _scopeId2) => {
|
|
185
|
+
if (_push3) {
|
|
186
|
+
_push3(``);
|
|
187
|
+
} else {
|
|
188
|
+
return [
|
|
189
|
+
createTextVNode("")
|
|
190
|
+
];
|
|
191
|
+
}
|
|
192
|
+
}),
|
|
193
|
+
_: 1
|
|
194
|
+
/* STABLE */
|
|
195
|
+
}, _parent2, _scopeId));
|
|
196
|
+
_push2(`</h2><div lang="zh-CN"${_scopeId}><p${_scopeId}>新建 <code${_scopeId}>index.html</code>,你可以在 <code${_scopeId}><head></head></code> 与 <code${_scopeId}><body></body></code> 全局地插入任意内容。</p><p${_scopeId}>譬如:</p></div><div lang="en"${_scopeId}><p${_scopeId}>Create a new <code${_scopeId}>index.html</code> file. You can globally insert anything in between <code${_scopeId}><head></head></code> or <code${_scopeId}><body></body></code> tags.</p><p${_scopeId}>For example:</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}><</span><span style="${ssrRenderStyle({ "color": "#85E89D" })}"${_scopeId}>head</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}>></span></span>
|
|
197
|
+
<span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> <</span><span style="${ssrRenderStyle({ "color": "#85E89D" })}"${_scopeId}>link</span></span>
|
|
198
|
+
<span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#B392F0" })}"${_scopeId}>rel</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}>=</span><span style="${ssrRenderStyle({ "color": "#9ECBFF" })}"${_scopeId}>"stylesheet"</span></span>
|
|
199
|
+
<span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#B392F0" })}"${_scopeId}>href</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}>=</span><span style="${ssrRenderStyle({ "color": "#9ECBFF" })}"${_scopeId}>"https://cdn.jsdelivr.net/npm/star-markdown-css/dist/planet/planet-markdown.min.css"</span></span>
|
|
200
|
+
<span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> /></span></span>
|
|
201
|
+
<span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}></</span><span style="${ssrRenderStyle({ "color": "#85E89D" })}"${_scopeId}>head</span><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 style="${ssrRenderStyle({ "color": "#22863A" })}"${_scopeId}>head</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}>></span></span>
|
|
202
|
+
<span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> <</span><span style="${ssrRenderStyle({ "color": "#22863A" })}"${_scopeId}>link</span></span>
|
|
203
|
+
<span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#6F42C1" })}"${_scopeId}>rel</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}>=</span><span style="${ssrRenderStyle({ "color": "#032F62" })}"${_scopeId}>"stylesheet"</span></span>
|
|
204
|
+
<span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#6F42C1" })}"${_scopeId}>href</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}>=</span><span style="${ssrRenderStyle({ "color": "#032F62" })}"${_scopeId}>"https://cdn.jsdelivr.net/npm/star-markdown-css/dist/planet/planet-markdown.min.css"</span></span>
|
|
205
|
+
<span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> /></span></span>
|
|
206
|
+
<span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}></</span><span style="${ssrRenderStyle({ "color": "#22863A" })}"${_scopeId}>head</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}>></span></span></code></pre></div><h2 lang="zh-CN" id="扩展-client-上下文" tabindex="-1"${_scopeId}>扩展 Client 上下文 `);
|
|
207
|
+
_push2(ssrRenderComponent(_component_AppLink, {
|
|
208
|
+
class: "header-anchor",
|
|
209
|
+
href: "#扩展-client-上下文",
|
|
210
|
+
"aria-label": 'Permalink to "扩展 Client 上下文 {lang="zh-CN"}"'
|
|
211
|
+
}, {
|
|
212
|
+
default: withCtx((_2, _push3, _parent3, _scopeId2) => {
|
|
213
|
+
if (_push3) {
|
|
214
|
+
_push3(``);
|
|
215
|
+
} else {
|
|
216
|
+
return [
|
|
217
|
+
createTextVNode("")
|
|
218
|
+
];
|
|
219
|
+
}
|
|
220
|
+
}),
|
|
221
|
+
_: 1
|
|
222
|
+
/* STABLE */
|
|
223
|
+
}, _parent2, _scopeId));
|
|
224
|
+
_push2(`</h2><h2 lang="en" id="extending-client-context" tabindex="-1"${_scopeId}>Extending Client Context `);
|
|
225
|
+
_push2(ssrRenderComponent(_component_AppLink, {
|
|
226
|
+
class: "header-anchor",
|
|
227
|
+
href: "#extending-client-context",
|
|
228
|
+
"aria-label": 'Permalink to "Extending Client Context {lang="en"}"'
|
|
229
|
+
}, {
|
|
230
|
+
default: withCtx((_2, _push3, _parent3, _scopeId2) => {
|
|
231
|
+
if (_push3) {
|
|
232
|
+
_push3(``);
|
|
233
|
+
} else {
|
|
234
|
+
return [
|
|
235
|
+
createTextVNode("")
|
|
236
|
+
];
|
|
237
|
+
}
|
|
238
|
+
}),
|
|
239
|
+
_: 1
|
|
240
|
+
/* STABLE */
|
|
241
|
+
}, _parent2, _scopeId));
|
|
242
|
+
_push2(`</h2><div lang="zh-CN"${_scopeId}><p${_scopeId}>新建 <code${_scopeId}>setup/main.ts</code>:</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}>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}>'valaxy'</span></span>
|
|
243
|
+
<span class="line"${_scopeId}></span>
|
|
244
|
+
<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}>=></span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> {</span></span>
|
|
245
|
+
<span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> console.</span><span style="${ssrRenderStyle({ "color": "#B392F0" })}"${_scopeId}>log</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}>(ctx)</span></span>
|
|
246
|
+
<span class="line"${_scopeId}><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": "#79B8FF" })}"${_scopeId}>app</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}>, </span><span style="${ssrRenderStyle({ "color": "#79B8FF" })}"${_scopeId}>head</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}>, </span><span style="${ssrRenderStyle({ "color": "#79B8FF" })}"${_scopeId}>router</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}>, </span><span style="${ssrRenderStyle({ "color": "#79B8FF" })}"${_scopeId}>routes</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}>, </span><span style="${ssrRenderStyle({ "color": "#79B8FF" })}"${_scopeId}>isClient</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> } </span><span style="${ssrRenderStyle({ "color": "#F97583" })}"${_scopeId}>=</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> ctx</span></span>
|
|
247
|
+
<span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#6A737D" })}"${_scopeId}>// 任意使用 Vue 生态的插件</span></span>
|
|
248
|
+
<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}>(</span><span style="${ssrRenderStyle({ "color": "#6A737D" })}"${_scopeId}>/* */</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}>)</span></span>
|
|
249
|
+
<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}> { defineAppSetup } </span><span style="${ssrRenderStyle({ "color": "#D73A49" })}"${_scopeId}>from</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#032F62" })}"${_scopeId}>'valaxy'</span></span>
|
|
250
|
+
<span class="line"${_scopeId}></span>
|
|
251
|
+
<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}>=></span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> {</span></span>
|
|
252
|
+
<span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> console.</span><span style="${ssrRenderStyle({ "color": "#6F42C1" })}"${_scopeId}>log</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}>(ctx)</span></span>
|
|
253
|
+
<span class="line"${_scopeId}><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": "#005CC5" })}"${_scopeId}>app</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}>, </span><span style="${ssrRenderStyle({ "color": "#005CC5" })}"${_scopeId}>head</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}>, </span><span style="${ssrRenderStyle({ "color": "#005CC5" })}"${_scopeId}>router</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}>, </span><span style="${ssrRenderStyle({ "color": "#005CC5" })}"${_scopeId}>routes</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}>, </span><span style="${ssrRenderStyle({ "color": "#005CC5" })}"${_scopeId}>isClient</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> } </span><span style="${ssrRenderStyle({ "color": "#D73A49" })}"${_scopeId}>=</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> ctx</span></span>
|
|
254
|
+
<span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#6A737D" })}"${_scopeId}>// 任意使用 Vue 生态的插件</span></span>
|
|
255
|
+
<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}>(</span><span style="${ssrRenderStyle({ "color": "#6A737D" })}"${_scopeId}>/* */</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}>)</span></span>
|
|
256
|
+
<span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}>})</span></span></code></pre></div><blockquote${_scopeId}><p${_scopeId}>具体示例可参见 `);
|
|
257
|
+
_push2(ssrRenderComponent(_component_AppLink, { href: "/guide/third-party/#谷歌统计" }, {
|
|
258
|
+
default: withCtx((_2, _push3, _parent3, _scopeId2) => {
|
|
259
|
+
if (_push3) {
|
|
260
|
+
_push3(`谷歌统计|第三方集成`);
|
|
261
|
+
} else {
|
|
262
|
+
return [
|
|
263
|
+
createTextVNode("谷歌统计|第三方集成")
|
|
264
|
+
];
|
|
265
|
+
}
|
|
266
|
+
}),
|
|
267
|
+
_: 1
|
|
268
|
+
/* STABLE */
|
|
269
|
+
}, _parent2, _scopeId));
|
|
270
|
+
_push2(`。</p></blockquote></div><div lang="en"${_scopeId}><p${_scopeId}>Create a new file <code${_scopeId}>setup/main.ts</code>:</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}>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}>'valaxy'</span></span>
|
|
271
|
+
<span class="line"${_scopeId}></span>
|
|
272
|
+
<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}>=></span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> {</span></span>
|
|
273
|
+
<span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> console.</span><span style="${ssrRenderStyle({ "color": "#B392F0" })}"${_scopeId}>log</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}>(ctx)</span></span>
|
|
274
|
+
<span class="line"${_scopeId}><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": "#79B8FF" })}"${_scopeId}>app</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}>, </span><span style="${ssrRenderStyle({ "color": "#79B8FF" })}"${_scopeId}>head</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}>, </span><span style="${ssrRenderStyle({ "color": "#79B8FF" })}"${_scopeId}>router</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}>, </span><span style="${ssrRenderStyle({ "color": "#79B8FF" })}"${_scopeId}>routes</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}>, </span><span style="${ssrRenderStyle({ "color": "#79B8FF" })}"${_scopeId}>isClient</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> } </span><span style="${ssrRenderStyle({ "color": "#F97583" })}"${_scopeId}>=</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> ctx</span></span>
|
|
275
|
+
<span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#6A737D" })}"${_scopeId}>// Use any Vue plugins</span></span>
|
|
276
|
+
<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}>(</span><span style="${ssrRenderStyle({ "color": "#6A737D" })}"${_scopeId}>/* */</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}>)</span></span>
|
|
277
|
+
<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}> { defineAppSetup } </span><span style="${ssrRenderStyle({ "color": "#D73A49" })}"${_scopeId}>from</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#032F62" })}"${_scopeId}>'valaxy'</span></span>
|
|
278
|
+
<span class="line"${_scopeId}></span>
|
|
279
|
+
<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}>=></span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> {</span></span>
|
|
280
|
+
<span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> console.</span><span style="${ssrRenderStyle({ "color": "#6F42C1" })}"${_scopeId}>log</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}>(ctx)</span></span>
|
|
281
|
+
<span class="line"${_scopeId}><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": "#005CC5" })}"${_scopeId}>app</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}>, </span><span style="${ssrRenderStyle({ "color": "#005CC5" })}"${_scopeId}>head</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}>, </span><span style="${ssrRenderStyle({ "color": "#005CC5" })}"${_scopeId}>router</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}>, </span><span style="${ssrRenderStyle({ "color": "#005CC5" })}"${_scopeId}>routes</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}>, </span><span style="${ssrRenderStyle({ "color": "#005CC5" })}"${_scopeId}>isClient</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> } </span><span style="${ssrRenderStyle({ "color": "#D73A49" })}"${_scopeId}>=</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> ctx</span></span>
|
|
282
|
+
<span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#6A737D" })}"${_scopeId}>// Use any Vue plugins</span></span>
|
|
283
|
+
<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}>(</span><span style="${ssrRenderStyle({ "color": "#6A737D" })}"${_scopeId}>/* */</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}>)</span></span>
|
|
284
|
+
<span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}>})</span></span></code></pre></div><blockquote${_scopeId}><p${_scopeId}>For a detailed example, please see `);
|
|
285
|
+
_push2(ssrRenderComponent(_component_AppLink, { href: "/guide/third-party/#谷歌统计" }, {
|
|
286
|
+
default: withCtx((_2, _push3, _parent3, _scopeId2) => {
|
|
287
|
+
if (_push3) {
|
|
288
|
+
_push3(`Google Analytics | Third Party Integration`);
|
|
289
|
+
} else {
|
|
290
|
+
return [
|
|
291
|
+
createTextVNode("Google Analytics | Third Party Integration")
|
|
292
|
+
];
|
|
293
|
+
}
|
|
294
|
+
}),
|
|
295
|
+
_: 1
|
|
296
|
+
/* STABLE */
|
|
297
|
+
}, _parent2, _scopeId));
|
|
298
|
+
_push2(`。</p></blockquote></div><h2 lang="zh-CN" id="多语言支持" tabindex="-1"${_scopeId}>多语言支持 `);
|
|
299
|
+
_push2(ssrRenderComponent(_component_AppLink, {
|
|
300
|
+
class: "header-anchor",
|
|
301
|
+
href: "#多语言支持",
|
|
302
|
+
"aria-label": 'Permalink to "多语言支持 {lang="zh-CN"}"'
|
|
303
|
+
}, {
|
|
304
|
+
default: withCtx((_2, _push3, _parent3, _scopeId2) => {
|
|
305
|
+
if (_push3) {
|
|
306
|
+
_push3(``);
|
|
307
|
+
} else {
|
|
308
|
+
return [
|
|
309
|
+
createTextVNode("")
|
|
310
|
+
];
|
|
311
|
+
}
|
|
312
|
+
}),
|
|
313
|
+
_: 1
|
|
314
|
+
/* STABLE */
|
|
315
|
+
}, _parent2, _scopeId));
|
|
316
|
+
_push2(`</h2><h2 lang="en" id="i18n" tabindex="-1"${_scopeId}>I18n `);
|
|
317
|
+
_push2(ssrRenderComponent(_component_AppLink, {
|
|
318
|
+
class: "header-anchor",
|
|
319
|
+
href: "#i18n",
|
|
320
|
+
"aria-label": 'Permalink to "I18n {lang="en"}"'
|
|
321
|
+
}, {
|
|
322
|
+
default: withCtx((_2, _push3, _parent3, _scopeId2) => {
|
|
323
|
+
if (_push3) {
|
|
324
|
+
_push3(``);
|
|
325
|
+
} else {
|
|
326
|
+
return [
|
|
327
|
+
createTextVNode("")
|
|
328
|
+
];
|
|
329
|
+
}
|
|
330
|
+
}),
|
|
331
|
+
_: 1
|
|
332
|
+
/* STABLE */
|
|
333
|
+
}, _parent2, _scopeId));
|
|
334
|
+
_push2(`</h2><div lang="zh-CN"${_scopeId}><p${_scopeId}>新建 <code${_scopeId}>locales</code> 文件夹。</p><ul${_scopeId}><li${_scopeId}><code${_scopeId}>zh-CN.yml</code>: 中文翻译</li><li${_scopeId}><code${_scopeId}>en.yml</code>: 英文翻译</li></ul><p${_scopeId}>譬如(请确保文件内容非空):</p></div><div lang="en"${_scopeId}><p${_scopeId}>Create <code${_scopeId}>locales</code> folder.</p><ul${_scopeId}><li${_scopeId}><code${_scopeId}>zh-CN.yml</code>: Chinese translation</li><li${_scopeId}><code${_scopeId}>en.yml</code>: English translation</li></ul><p${_scopeId}>For example (make sure that the file is not empty):</p></div><div class="language-yaml"${_scopeId}><button title="Copy Code" class="copy"${_scopeId}></button><span class="lang"${_scopeId}>yaml</span><pre class="shiki github-dark vp-code-dark"${_scopeId}><code${_scopeId}><span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#6A737D" })}"${_scopeId}># en.yml</span></span>
|
|
335
|
+
<span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#85E89D" })}"${_scopeId}>button</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}>:</span></span>
|
|
336
|
+
<span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#85E89D" })}"${_scopeId}>about</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}>: </span><span style="${ssrRenderStyle({ "color": "#9ECBFF" })}"${_scopeId}>About</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}># en.yml</span></span>
|
|
337
|
+
<span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#22863A" })}"${_scopeId}>button</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}>:</span></span>
|
|
338
|
+
<span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#22863A" })}"${_scopeId}>about</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}>: </span><span style="${ssrRenderStyle({ "color": "#032F62" })}"${_scopeId}>About</span></span></code></pre></div><div class="language-yaml"${_scopeId}><button title="Copy Code" class="copy"${_scopeId}></button><span class="lang"${_scopeId}>yaml</span><pre class="shiki github-dark vp-code-dark"${_scopeId}><code${_scopeId}><span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#6A737D" })}"${_scopeId}># zh-CN.yml</span></span>
|
|
339
|
+
<span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#85E89D" })}"${_scopeId}>button</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}>:</span></span>
|
|
340
|
+
<span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#85E89D" })}"${_scopeId}>about</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}>: </span><span style="${ssrRenderStyle({ "color": "#9ECBFF" })}"${_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}># zh-CN.yml</span></span>
|
|
341
|
+
<span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#22863A" })}"${_scopeId}>button</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}>:</span></span>
|
|
342
|
+
<span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#22863A" })}"${_scopeId}>about</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}>: </span><span style="${ssrRenderStyle({ "color": "#032F62" })}"${_scopeId}>关于</span></span></code></pre></div><div lang="zh-CN"${_scopeId}><p${_scopeId}>你可以如下方式使用它:</p></div><div lang="en"${_scopeId}><p${_scopeId}>You can use it like this:</p></div><div class="language-vue"${_scopeId}><button title="Copy Code" class="copy"${_scopeId}></button><span class="lang"${_scopeId}>vue</span><pre class="shiki github-dark vp-code-dark"${_scopeId}><code${_scopeId}><span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}><</span><span style="${ssrRenderStyle({ "color": "#85E89D" })}"${_scopeId}>script</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#B392F0" })}"${_scopeId}>setup</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}>></span></span>
|
|
343
|
+
<span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#F97583" })}"${_scopeId}>import</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> { useI18n } </span><span style="${ssrRenderStyle({ "color": "#F97583" })}"${_scopeId}>from</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#9ECBFF" })}"${_scopeId}>'vue-i18n'</span></span>
|
|
344
|
+
<span class="line"${_scopeId}></span>
|
|
345
|
+
<span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#F97583" })}"${_scopeId}>const</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> { </span><span style="${ssrRenderStyle({ "color": "#79B8FF" })}"${_scopeId}>t</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": "#B392F0" })}"${_scopeId}>useI18n</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}>()</span></span>
|
|
346
|
+
<span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}></</span><span style="${ssrRenderStyle({ "color": "#85E89D" })}"${_scopeId}>script</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}>></span></span>
|
|
347
|
+
<span class="line"${_scopeId}></span>
|
|
348
|
+
<span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}><</span><span style="${ssrRenderStyle({ "color": "#85E89D" })}"${_scopeId}>template</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}>></span></span>
|
|
349
|
+
<span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> <</span><span style="${ssrRenderStyle({ "color": "#85E89D" })}"${_scopeId}>button</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}>></span></span>
|
|
350
|
+
<span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> {{ t('button.about') }}</span></span>
|
|
351
|
+
<span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> </</span><span style="${ssrRenderStyle({ "color": "#85E89D" })}"${_scopeId}>button</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}>></span></span>
|
|
352
|
+
<span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}></</span><span style="${ssrRenderStyle({ "color": "#85E89D" })}"${_scopeId}>template</span><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 style="${ssrRenderStyle({ "color": "#22863A" })}"${_scopeId}>script</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#6F42C1" })}"${_scopeId}>setup</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}>></span></span>
|
|
353
|
+
<span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#D73A49" })}"${_scopeId}>import</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> { useI18n } </span><span style="${ssrRenderStyle({ "color": "#D73A49" })}"${_scopeId}>from</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#032F62" })}"${_scopeId}>'vue-i18n'</span></span>
|
|
354
|
+
<span class="line"${_scopeId}></span>
|
|
355
|
+
<span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#D73A49" })}"${_scopeId}>const</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> { </span><span style="${ssrRenderStyle({ "color": "#005CC5" })}"${_scopeId}>t</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": "#6F42C1" })}"${_scopeId}>useI18n</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}>()</span></span>
|
|
356
|
+
<span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}></</span><span style="${ssrRenderStyle({ "color": "#22863A" })}"${_scopeId}>script</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}>></span></span>
|
|
357
|
+
<span class="line"${_scopeId}></span>
|
|
358
|
+
<span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}><</span><span style="${ssrRenderStyle({ "color": "#22863A" })}"${_scopeId}>template</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}>></span></span>
|
|
359
|
+
<span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> <</span><span style="${ssrRenderStyle({ "color": "#22863A" })}"${_scopeId}>button</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}>></span></span>
|
|
360
|
+
<span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> {{ t('button.about') }}</span></span>
|
|
361
|
+
<span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> </</span><span style="${ssrRenderStyle({ "color": "#22863A" })}"${_scopeId}>button</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}>></span></span>
|
|
362
|
+
<span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}></</span><span style="${ssrRenderStyle({ "color": "#22863A" })}"${_scopeId}>template</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}>></span></span></code></pre></div><h2 lang="zh-CN" id="模版文件" tabindex="-1"${_scopeId}>模版文件 `);
|
|
363
|
+
_push2(ssrRenderComponent(_component_AppLink, {
|
|
364
|
+
class: "header-anchor",
|
|
365
|
+
href: "#模版文件",
|
|
366
|
+
"aria-label": 'Permalink to "模版文件 {lang="zh-CN"}"'
|
|
367
|
+
}, {
|
|
368
|
+
default: withCtx((_2, _push3, _parent3, _scopeId2) => {
|
|
369
|
+
if (_push3) {
|
|
370
|
+
_push3(``);
|
|
371
|
+
} else {
|
|
372
|
+
return [
|
|
373
|
+
createTextVNode("")
|
|
374
|
+
];
|
|
375
|
+
}
|
|
376
|
+
}),
|
|
377
|
+
_: 1
|
|
378
|
+
/* STABLE */
|
|
379
|
+
}, _parent2, _scopeId));
|
|
380
|
+
_push2(`</h2><h2 lang="en" id="template-files" tabindex="-1"${_scopeId}>Template Files `);
|
|
381
|
+
_push2(ssrRenderComponent(_component_AppLink, {
|
|
382
|
+
class: "header-anchor",
|
|
383
|
+
href: "#template-files",
|
|
384
|
+
"aria-label": 'Permalink to "Template Files {lang="en"}"'
|
|
385
|
+
}, {
|
|
386
|
+
default: withCtx((_2, _push3, _parent3, _scopeId2) => {
|
|
387
|
+
if (_push3) {
|
|
388
|
+
_push3(``);
|
|
389
|
+
} else {
|
|
390
|
+
return [
|
|
391
|
+
createTextVNode("")
|
|
392
|
+
];
|
|
393
|
+
}
|
|
394
|
+
}),
|
|
395
|
+
_: 1
|
|
396
|
+
/* STABLE */
|
|
397
|
+
}, _parent2, _scopeId));
|
|
398
|
+
_push2(`</h2><div lang="zh-CN"${_scopeId}><p${_scopeId}>新建某类布局 Markdown 文件的模版。(开发中)</p><p${_scopeId}>新建 <code${_scopeId}>scaffolds</code> 文件夹。</p></div><div lang="en"${_scopeId}><p${_scopeId}>Create some templates for Markdown layout. (Work in progress)</p><p${_scopeId}>Create <code${_scopeId}>scaffolds</code> folder.</p></div><div class="language-bash"${_scopeId}><button title="Copy Code" class="copy"${_scopeId}></button><span class="lang"${_scopeId}>bash</span><pre class="shiki github-dark vp-code-dark"${_scopeId}><code${_scopeId}><span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#B392F0" })}"${_scopeId}>valaxy</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#9ECBFF" })}"${_scopeId}>new</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#F97583" })}"${_scopeId}><</span><span style="${ssrRenderStyle({ "color": "#9ECBFF" })}"${_scopeId}>titl</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}>e</span><span style="${ssrRenderStyle({ "color": "#F97583" })}"${_scopeId}>></span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#79B8FF" })}"${_scopeId}>-l</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> [layout]</span></span></code></pre><pre class="shiki github-light vp-code-light"${_scopeId}><code${_scopeId}><span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#6F42C1" })}"${_scopeId}>valaxy</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#032F62" })}"${_scopeId}>new</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#D73A49" })}"${_scopeId}><</span><span style="${ssrRenderStyle({ "color": "#032F62" })}"${_scopeId}>titl</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}>e</span><span style="${ssrRenderStyle({ "color": "#D73A49" })}"${_scopeId}>></span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#005CC5" })}"${_scopeId}>-l</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> [layout]</span></span></code></pre></div><div lang="zh-CN"${_scopeId}><ul${_scopeId}><li${_scopeId}><code${_scopeId}>layout</code>: 默认为 <code${_scopeId}>post</code></li></ul><p${_scopeId}>新建 <code${_scopeId}>xxx.md</code>,xxx 取决于你的布局名称。 譬如 <code${_scopeId}>album.md</code> 代表 <code${_scopeId}>layout: album</code>。</p></div><div lang="en"${_scopeId}><ul${_scopeId}><li${_scopeId}><code${_scopeId}>layout</code>: Default is <code${_scopeId}>post</code></li></ul><p${_scopeId}>Create a new file <code${_scopeId}>xxx.md</code>, where <code${_scopeId}>xxx</code> is your layout name. For example, <code${_scopeId}>album.md</code> represents <code${_scopeId}>layout: album</code>.</p></div><div class="language-bash"${_scopeId}><button title="Copy Code" class="copy"${_scopeId}></button><span class="lang"${_scopeId}>bash</span><pre class="shiki github-dark vp-code-dark"${_scopeId}><code${_scopeId}><span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#B392F0" })}"${_scopeId}>valaxy</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#9ECBFF" })}"${_scopeId}>new</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#9ECBFF" })}"${_scopeId}>my-young</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#79B8FF" })}"${_scopeId}>-l</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#9ECBFF" })}"${_scopeId}>album</span></span></code></pre><pre class="shiki github-light vp-code-light"${_scopeId}><code${_scopeId}><span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#6F42C1" })}"${_scopeId}>valaxy</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#032F62" })}"${_scopeId}>new</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#032F62" })}"${_scopeId}>my-young</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#005CC5" })}"${_scopeId}>-l</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#032F62" })}"${_scopeId}>album</span></span></code></pre></div><h2 lang="zh-CN" id="其他" tabindex="-1"${_scopeId}>其他 `);
|
|
399
|
+
_push2(ssrRenderComponent(_component_AppLink, {
|
|
400
|
+
class: "header-anchor",
|
|
401
|
+
href: "#其他",
|
|
402
|
+
"aria-label": 'Permalink to "其他 {lang="zh-CN"}"'
|
|
403
|
+
}, {
|
|
404
|
+
default: withCtx((_2, _push3, _parent3, _scopeId2) => {
|
|
405
|
+
if (_push3) {
|
|
406
|
+
_push3(``);
|
|
407
|
+
} else {
|
|
408
|
+
return [
|
|
409
|
+
createTextVNode("")
|
|
410
|
+
];
|
|
411
|
+
}
|
|
412
|
+
}),
|
|
413
|
+
_: 1
|
|
414
|
+
/* STABLE */
|
|
415
|
+
}, _parent2, _scopeId));
|
|
416
|
+
_push2(`</h2><h2 lang="en" id="others" tabindex="-1"${_scopeId}>Others `);
|
|
417
|
+
_push2(ssrRenderComponent(_component_AppLink, {
|
|
418
|
+
class: "header-anchor",
|
|
419
|
+
href: "#others",
|
|
420
|
+
"aria-label": 'Permalink to "Others {lang="en"}"'
|
|
421
|
+
}, {
|
|
422
|
+
default: withCtx((_2, _push3, _parent3, _scopeId2) => {
|
|
423
|
+
if (_push3) {
|
|
424
|
+
_push3(``);
|
|
425
|
+
} else {
|
|
426
|
+
return [
|
|
427
|
+
createTextVNode("")
|
|
428
|
+
];
|
|
429
|
+
}
|
|
430
|
+
}),
|
|
431
|
+
_: 1
|
|
432
|
+
/* STABLE */
|
|
433
|
+
}, _parent2, _scopeId));
|
|
434
|
+
_push2(`</h2><div lang="zh-CN"${_scopeId}><ul${_scopeId}><li${_scopeId}>`);
|
|
435
|
+
_push2(ssrRenderComponent(_component_AppLink, { href: "/guide/custom/styles" }, {
|
|
436
|
+
default: withCtx((_2, _push3, _parent3, _scopeId2) => {
|
|
437
|
+
if (_push3) {
|
|
438
|
+
_push3(`自定义样式 | Valaxy`);
|
|
439
|
+
} else {
|
|
440
|
+
return [
|
|
441
|
+
createTextVNode("自定义样式 | Valaxy")
|
|
442
|
+
];
|
|
443
|
+
}
|
|
444
|
+
}),
|
|
445
|
+
_: 1
|
|
446
|
+
/* STABLE */
|
|
447
|
+
}, _parent2, _scopeId));
|
|
448
|
+
_push2(`</li></ul></div><div lang="en"${_scopeId}><ul${_scopeId}><li${_scopeId}>`);
|
|
449
|
+
_push2(ssrRenderComponent(_component_AppLink, { href: "/guide/custom/styles" }, {
|
|
450
|
+
default: withCtx((_2, _push3, _parent3, _scopeId2) => {
|
|
451
|
+
if (_push3) {
|
|
452
|
+
_push3(`Custom Styles | Valaxy`);
|
|
453
|
+
} else {
|
|
454
|
+
return [
|
|
455
|
+
createTextVNode("Custom Styles | Valaxy")
|
|
456
|
+
];
|
|
457
|
+
}
|
|
458
|
+
}),
|
|
459
|
+
_: 1
|
|
460
|
+
/* STABLE */
|
|
461
|
+
}, _parent2, _scopeId));
|
|
462
|
+
_push2(`</li></ul></div>`);
|
|
463
|
+
} else {
|
|
464
|
+
return [
|
|
465
|
+
createVNode("div", { lang: "zh-CN" }, [
|
|
466
|
+
createVNode("p", null, "Valaxy 以约定大于配置的方式提供了强大的扩展功能,如果你有一定开发经验,可以自定义控制站点的每一处细节。")
|
|
467
|
+
]),
|
|
468
|
+
createVNode("div", { lang: "en" }, [
|
|
469
|
+
createVNode("p", null, 'Valaxy provides strong extensibility by "Convension over Configuration". If you have some development experience, you should be able to control every detail in the website.')
|
|
470
|
+
]),
|
|
471
|
+
createVNode("div", { lang: "zh-CN" }, [
|
|
472
|
+
createVNode("blockquote", null, [
|
|
473
|
+
createVNode("p", null, "以下内容无论对于用户还是主题开发者来说都同样适用。")
|
|
474
|
+
]),
|
|
475
|
+
createVNode("div", { class: "tip custom-block" }, [
|
|
476
|
+
createVNode("p", { class: "custom-block-title" }, [
|
|
477
|
+
createVNode("i", { class: "icon i-carbon-thumbs-up" }),
|
|
478
|
+
createVNode("span", { lang: "en" }, "TIP"),
|
|
479
|
+
createVNode("span", { lang: "zh-CN" }, "提示")
|
|
480
|
+
]),
|
|
481
|
+
createVNode("p", null, "默认在用户站点根目录或主题根目录下操作。"),
|
|
482
|
+
createVNode("p", null, [
|
|
483
|
+
createTextVNode("如果你想要有所参考,你可以参见 "),
|
|
484
|
+
createVNode(_component_AppLink, {
|
|
485
|
+
href: "https://github.com/YunYouJun/valaxy/tree/main/packages/valaxy-theme-yun",
|
|
486
|
+
target: "_blank",
|
|
487
|
+
rel: "noreferrer"
|
|
488
|
+
}, {
|
|
489
|
+
default: withCtx(() => [
|
|
490
|
+
createTextVNode("valaxy-theme-yun")
|
|
491
|
+
]),
|
|
492
|
+
_: 1
|
|
493
|
+
/* STABLE */
|
|
494
|
+
}),
|
|
495
|
+
createTextVNode("。")
|
|
496
|
+
])
|
|
497
|
+
])
|
|
498
|
+
]),
|
|
499
|
+
createVNode("div", { lang: "en" }, [
|
|
500
|
+
createVNode("blockquote", null, [
|
|
501
|
+
createVNode("p", null, "The following content applies to either users or theme developers.")
|
|
502
|
+
]),
|
|
503
|
+
createVNode("div", { class: "tip custom-block" }, [
|
|
504
|
+
createVNode("p", { class: "custom-block-title" }, [
|
|
505
|
+
createVNode("i", { class: "icon i-carbon-thumbs-up" }),
|
|
506
|
+
createVNode("span", { lang: "en" }, "TIP"),
|
|
507
|
+
createVNode("span", { lang: "zh-CN" }, "提示")
|
|
508
|
+
]),
|
|
509
|
+
createVNode("p", null, "By default, the operations are done in the root directory of the site or the theme."),
|
|
510
|
+
createVNode("p", null, [
|
|
511
|
+
createTextVNode("If you want some reference, you can refer to "),
|
|
512
|
+
createVNode(_component_AppLink, {
|
|
513
|
+
href: "https://github.com/YunYouJun/valaxy/tree/main/packages/valaxy-theme-yun",
|
|
514
|
+
target: "_blank",
|
|
515
|
+
rel: "noreferrer"
|
|
516
|
+
}, {
|
|
517
|
+
default: withCtx(() => [
|
|
518
|
+
createTextVNode("valaxy-theme-yun")
|
|
519
|
+
]),
|
|
520
|
+
_: 1
|
|
521
|
+
/* STABLE */
|
|
522
|
+
}),
|
|
523
|
+
createTextVNode(".")
|
|
524
|
+
])
|
|
525
|
+
])
|
|
526
|
+
]),
|
|
527
|
+
createVNode("h2", {
|
|
528
|
+
lang: "zh-CN",
|
|
529
|
+
id: "自动布局注册",
|
|
530
|
+
tabindex: "-1"
|
|
531
|
+
}, [
|
|
532
|
+
createTextVNode("自动布局注册 "),
|
|
533
|
+
createVNode(_component_AppLink, {
|
|
534
|
+
class: "header-anchor",
|
|
535
|
+
href: "#自动布局注册",
|
|
536
|
+
"aria-label": 'Permalink to "自动布局注册 {lang="zh-CN"}"'
|
|
537
|
+
}, {
|
|
538
|
+
default: withCtx(() => [
|
|
539
|
+
createTextVNode("")
|
|
540
|
+
]),
|
|
541
|
+
_: 1
|
|
542
|
+
/* STABLE */
|
|
543
|
+
})
|
|
544
|
+
]),
|
|
545
|
+
createVNode("h2", {
|
|
546
|
+
lang: "en",
|
|
547
|
+
id: "automatic-layout-registration",
|
|
548
|
+
tabindex: "-1"
|
|
549
|
+
}, [
|
|
550
|
+
createTextVNode("Automatic Layout Registration "),
|
|
551
|
+
createVNode(_component_AppLink, {
|
|
552
|
+
class: "header-anchor",
|
|
553
|
+
href: "#automatic-layout-registration",
|
|
554
|
+
"aria-label": 'Permalink to "Automatic Layout Registration {lang="en"}"'
|
|
555
|
+
}, {
|
|
556
|
+
default: withCtx(() => [
|
|
557
|
+
createTextVNode("")
|
|
558
|
+
]),
|
|
559
|
+
_: 1
|
|
560
|
+
/* STABLE */
|
|
561
|
+
})
|
|
562
|
+
]),
|
|
563
|
+
createVNode("div", { lang: "zh-CN" }, [
|
|
564
|
+
createVNode("p", null, [
|
|
565
|
+
createTextVNode("基于 "),
|
|
566
|
+
createVNode(_component_AppLink, {
|
|
567
|
+
href: "https://github.com/JohnCampionJr/vite-plugin-vue-layouts",
|
|
568
|
+
target: "_blank",
|
|
569
|
+
rel: "noreferrer"
|
|
570
|
+
}, {
|
|
571
|
+
default: withCtx(() => [
|
|
572
|
+
createTextVNode("vite-plugin-vue-layouts")
|
|
573
|
+
]),
|
|
574
|
+
_: 1
|
|
575
|
+
/* STABLE */
|
|
576
|
+
}),
|
|
577
|
+
createTextVNode(",Valaxy 提供了布局功能。")
|
|
578
|
+
]),
|
|
579
|
+
createVNode("p", null, [
|
|
580
|
+
createTextVNode("新建 "),
|
|
581
|
+
createVNode("code", null, "layouts"),
|
|
582
|
+
createTextVNode(" 文件,书写 Vue 组件作为布局。")
|
|
583
|
+
]),
|
|
584
|
+
createVNode("p", null, "你可以在 Markdown 中如下使用它。")
|
|
585
|
+
]),
|
|
586
|
+
createVNode("div", { lang: "en" }, [
|
|
587
|
+
createVNode("p", null, [
|
|
588
|
+
createTextVNode("Valaxy provides custom layouts based on "),
|
|
589
|
+
createVNode(_component_AppLink, {
|
|
590
|
+
href: "https://github.com/JohnCampionJr/vite-plugin-vue-layouts",
|
|
591
|
+
target: "_blank",
|
|
592
|
+
rel: "noreferrer"
|
|
593
|
+
}, {
|
|
594
|
+
default: withCtx(() => [
|
|
595
|
+
createTextVNode("vite-plugin-vue-layouts")
|
|
596
|
+
]),
|
|
597
|
+
_: 1
|
|
598
|
+
/* STABLE */
|
|
599
|
+
}),
|
|
600
|
+
createTextVNode(".")
|
|
601
|
+
]),
|
|
602
|
+
createVNode("p", null, [
|
|
603
|
+
createTextVNode("Create a "),
|
|
604
|
+
createVNode("code", null, "layouts"),
|
|
605
|
+
createTextVNode(" file, and write Vue components as layouts.")
|
|
606
|
+
]),
|
|
607
|
+
createVNode("p", null, "You can use it in your Markdown as follows.")
|
|
608
|
+
]),
|
|
609
|
+
createVNode("div", { class: "language-md" }, [
|
|
610
|
+
createVNode("button", {
|
|
611
|
+
title: "Copy Code",
|
|
612
|
+
class: "copy"
|
|
613
|
+
}),
|
|
614
|
+
createVNode("span", { class: "lang" }, "md"),
|
|
615
|
+
createVNode("pre", { class: "shiki github-dark vp-code-dark" }, [
|
|
616
|
+
createVNode("code", null, [
|
|
617
|
+
createVNode("span", { class: "line" }, [
|
|
618
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, "---")
|
|
619
|
+
]),
|
|
620
|
+
createTextVNode("\n"),
|
|
621
|
+
createVNode("span", { class: "line" }, [
|
|
622
|
+
createVNode("span", { style: { "color": "#85E89D" } }, "title"),
|
|
623
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, ": "),
|
|
624
|
+
createVNode("span", { style: { "color": "#9ECBFF" } }, "Photos")
|
|
625
|
+
]),
|
|
626
|
+
createTextVNode("\n"),
|
|
627
|
+
createVNode("span", { class: "line" }, [
|
|
628
|
+
createVNode("span", { style: { "color": "#85E89D" } }, "layout"),
|
|
629
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, ": "),
|
|
630
|
+
createVNode("span", { style: { "color": "#9ECBFF" } }, "album")
|
|
631
|
+
]),
|
|
632
|
+
createTextVNode("\n"),
|
|
633
|
+
createVNode("span", { class: "line" }, [
|
|
634
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, "---")
|
|
635
|
+
])
|
|
636
|
+
])
|
|
637
|
+
]),
|
|
638
|
+
createVNode("pre", { class: "shiki github-light vp-code-light" }, [
|
|
639
|
+
createVNode("code", null, [
|
|
640
|
+
createVNode("span", { class: "line" }, [
|
|
641
|
+
createVNode("span", { style: { "color": "#24292E" } }, "---")
|
|
642
|
+
]),
|
|
643
|
+
createTextVNode("\n"),
|
|
644
|
+
createVNode("span", { class: "line" }, [
|
|
645
|
+
createVNode("span", { style: { "color": "#22863A" } }, "title"),
|
|
646
|
+
createVNode("span", { style: { "color": "#24292E" } }, ": "),
|
|
647
|
+
createVNode("span", { style: { "color": "#032F62" } }, "Photos")
|
|
648
|
+
]),
|
|
649
|
+
createTextVNode("\n"),
|
|
650
|
+
createVNode("span", { class: "line" }, [
|
|
651
|
+
createVNode("span", { style: { "color": "#22863A" } }, "layout"),
|
|
652
|
+
createVNode("span", { style: { "color": "#24292E" } }, ": "),
|
|
653
|
+
createVNode("span", { style: { "color": "#032F62" } }, "album")
|
|
654
|
+
]),
|
|
655
|
+
createTextVNode("\n"),
|
|
656
|
+
createVNode("span", { class: "line" }, [
|
|
657
|
+
createVNode("span", { style: { "color": "#24292E" } }, "---")
|
|
658
|
+
])
|
|
659
|
+
])
|
|
660
|
+
])
|
|
661
|
+
]),
|
|
662
|
+
createVNode("div", { lang: "zh-CN" }, [
|
|
663
|
+
createVNode("p", null, [
|
|
664
|
+
createTextVNode("同样,当存在同名布局时,覆盖顺序为 "),
|
|
665
|
+
createVNode("code", null, "用户目录"),
|
|
666
|
+
createTextVNode(" -> "),
|
|
667
|
+
createVNode("code", null, "主题目录"),
|
|
668
|
+
createTextVNode(" -> "),
|
|
669
|
+
createVNode("code", null, "Valaxy 客户端目录"),
|
|
670
|
+
createTextVNode("。")
|
|
671
|
+
])
|
|
672
|
+
]),
|
|
673
|
+
createVNode("div", { lang: "en" }, [
|
|
674
|
+
createVNode("p", null, [
|
|
675
|
+
createTextVNode("Likewise, when there are layouts with the same name, the order to use is "),
|
|
676
|
+
createVNode("code", null, "user directory"),
|
|
677
|
+
createTextVNode(" -> "),
|
|
678
|
+
createVNode("code", null, "theme directory"),
|
|
679
|
+
createTextVNode(" -> "),
|
|
680
|
+
createVNode("code", null, "Valaxy directory"),
|
|
681
|
+
createTextVNode(".")
|
|
682
|
+
])
|
|
683
|
+
]),
|
|
684
|
+
createVNode("h2", {
|
|
685
|
+
lang: "zh-CN",
|
|
686
|
+
id: "自定义-index-html",
|
|
687
|
+
tabindex: "-1"
|
|
688
|
+
}, [
|
|
689
|
+
createTextVNode("自定义 index.html "),
|
|
690
|
+
createVNode(_component_AppLink, {
|
|
691
|
+
class: "header-anchor",
|
|
692
|
+
href: "#自定义-index-html",
|
|
693
|
+
"aria-label": 'Permalink to "自定义 index.html {lang="zh-CN"}"'
|
|
694
|
+
}, {
|
|
695
|
+
default: withCtx(() => [
|
|
696
|
+
createTextVNode("")
|
|
697
|
+
]),
|
|
698
|
+
_: 1
|
|
699
|
+
/* STABLE */
|
|
700
|
+
})
|
|
701
|
+
]),
|
|
702
|
+
createVNode("h2", {
|
|
703
|
+
lang: "en",
|
|
704
|
+
id: "customizing-index-html",
|
|
705
|
+
tabindex: "-1"
|
|
706
|
+
}, [
|
|
707
|
+
createTextVNode("Customizing index.html "),
|
|
708
|
+
createVNode(_component_AppLink, {
|
|
709
|
+
class: "header-anchor",
|
|
710
|
+
href: "#customizing-index-html",
|
|
711
|
+
"aria-label": 'Permalink to "Customizing index.html {lang="en"}"'
|
|
712
|
+
}, {
|
|
713
|
+
default: withCtx(() => [
|
|
714
|
+
createTextVNode("")
|
|
715
|
+
]),
|
|
716
|
+
_: 1
|
|
717
|
+
/* STABLE */
|
|
718
|
+
})
|
|
719
|
+
]),
|
|
720
|
+
createVNode("div", { lang: "zh-CN" }, [
|
|
721
|
+
createVNode("p", null, [
|
|
722
|
+
createTextVNode("新建 "),
|
|
723
|
+
createVNode("code", null, "index.html"),
|
|
724
|
+
createTextVNode(",你可以在 "),
|
|
725
|
+
createVNode("code", null, "<head></head>"),
|
|
726
|
+
createTextVNode(" 与 "),
|
|
727
|
+
createVNode("code", null, "<body></body>"),
|
|
728
|
+
createTextVNode(" 全局地插入任意内容。")
|
|
729
|
+
]),
|
|
730
|
+
createVNode("p", null, "譬如:")
|
|
731
|
+
]),
|
|
732
|
+
createVNode("div", { lang: "en" }, [
|
|
733
|
+
createVNode("p", null, [
|
|
734
|
+
createTextVNode("Create a new "),
|
|
735
|
+
createVNode("code", null, "index.html"),
|
|
736
|
+
createTextVNode(" file. You can globally insert anything in between "),
|
|
737
|
+
createVNode("code", null, "<head></head>"),
|
|
738
|
+
createTextVNode(" or "),
|
|
739
|
+
createVNode("code", null, "<body></body>"),
|
|
740
|
+
createTextVNode(" tags.")
|
|
741
|
+
]),
|
|
742
|
+
createVNode("p", null, "For example:")
|
|
743
|
+
]),
|
|
744
|
+
createVNode("div", { class: "language-html" }, [
|
|
745
|
+
createVNode("button", {
|
|
746
|
+
title: "Copy Code",
|
|
747
|
+
class: "copy"
|
|
748
|
+
}),
|
|
749
|
+
createVNode("span", { class: "lang" }, "html"),
|
|
750
|
+
createVNode("pre", { class: "shiki github-dark vp-code-dark" }, [
|
|
751
|
+
createVNode("code", null, [
|
|
752
|
+
createVNode("span", { class: "line" }, [
|
|
753
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, "<"),
|
|
754
|
+
createVNode("span", { style: { "color": "#85E89D" } }, "head"),
|
|
755
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, ">")
|
|
756
|
+
]),
|
|
757
|
+
createTextVNode("\n"),
|
|
758
|
+
createVNode("span", { class: "line" }, [
|
|
759
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, " <"),
|
|
760
|
+
createVNode("span", { style: { "color": "#85E89D" } }, "link")
|
|
761
|
+
]),
|
|
762
|
+
createTextVNode("\n"),
|
|
763
|
+
createVNode("span", { class: "line" }, [
|
|
764
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, " "),
|
|
765
|
+
createVNode("span", { style: { "color": "#B392F0" } }, "rel"),
|
|
766
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, "="),
|
|
767
|
+
createVNode("span", { style: { "color": "#9ECBFF" } }, '"stylesheet"')
|
|
768
|
+
]),
|
|
769
|
+
createTextVNode("\n"),
|
|
770
|
+
createVNode("span", { class: "line" }, [
|
|
771
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, " "),
|
|
772
|
+
createVNode("span", { style: { "color": "#B392F0" } }, "href"),
|
|
773
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, "="),
|
|
774
|
+
createVNode("span", { style: { "color": "#9ECBFF" } }, '"https://cdn.jsdelivr.net/npm/star-markdown-css/dist/planet/planet-markdown.min.css"')
|
|
775
|
+
]),
|
|
776
|
+
createTextVNode("\n"),
|
|
777
|
+
createVNode("span", { class: "line" }, [
|
|
778
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, " />")
|
|
779
|
+
]),
|
|
780
|
+
createTextVNode("\n"),
|
|
781
|
+
createVNode("span", { class: "line" }, [
|
|
782
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, "</"),
|
|
783
|
+
createVNode("span", { style: { "color": "#85E89D" } }, "head"),
|
|
784
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, ">")
|
|
785
|
+
])
|
|
786
|
+
])
|
|
787
|
+
]),
|
|
788
|
+
createVNode("pre", { class: "shiki github-light vp-code-light" }, [
|
|
789
|
+
createVNode("code", null, [
|
|
790
|
+
createVNode("span", { class: "line" }, [
|
|
791
|
+
createVNode("span", { style: { "color": "#24292E" } }, "<"),
|
|
792
|
+
createVNode("span", { style: { "color": "#22863A" } }, "head"),
|
|
793
|
+
createVNode("span", { style: { "color": "#24292E" } }, ">")
|
|
794
|
+
]),
|
|
795
|
+
createTextVNode("\n"),
|
|
796
|
+
createVNode("span", { class: "line" }, [
|
|
797
|
+
createVNode("span", { style: { "color": "#24292E" } }, " <"),
|
|
798
|
+
createVNode("span", { style: { "color": "#22863A" } }, "link")
|
|
799
|
+
]),
|
|
800
|
+
createTextVNode("\n"),
|
|
801
|
+
createVNode("span", { class: "line" }, [
|
|
802
|
+
createVNode("span", { style: { "color": "#24292E" } }, " "),
|
|
803
|
+
createVNode("span", { style: { "color": "#6F42C1" } }, "rel"),
|
|
804
|
+
createVNode("span", { style: { "color": "#24292E" } }, "="),
|
|
805
|
+
createVNode("span", { style: { "color": "#032F62" } }, '"stylesheet"')
|
|
806
|
+
]),
|
|
807
|
+
createTextVNode("\n"),
|
|
808
|
+
createVNode("span", { class: "line" }, [
|
|
809
|
+
createVNode("span", { style: { "color": "#24292E" } }, " "),
|
|
810
|
+
createVNode("span", { style: { "color": "#6F42C1" } }, "href"),
|
|
811
|
+
createVNode("span", { style: { "color": "#24292E" } }, "="),
|
|
812
|
+
createVNode("span", { style: { "color": "#032F62" } }, '"https://cdn.jsdelivr.net/npm/star-markdown-css/dist/planet/planet-markdown.min.css"')
|
|
813
|
+
]),
|
|
814
|
+
createTextVNode("\n"),
|
|
815
|
+
createVNode("span", { class: "line" }, [
|
|
816
|
+
createVNode("span", { style: { "color": "#24292E" } }, " />")
|
|
817
|
+
]),
|
|
818
|
+
createTextVNode("\n"),
|
|
819
|
+
createVNode("span", { class: "line" }, [
|
|
820
|
+
createVNode("span", { style: { "color": "#24292E" } }, "</"),
|
|
821
|
+
createVNode("span", { style: { "color": "#22863A" } }, "head"),
|
|
822
|
+
createVNode("span", { style: { "color": "#24292E" } }, ">")
|
|
823
|
+
])
|
|
824
|
+
])
|
|
825
|
+
])
|
|
826
|
+
]),
|
|
827
|
+
createVNode("h2", {
|
|
828
|
+
lang: "zh-CN",
|
|
829
|
+
id: "扩展-client-上下文",
|
|
830
|
+
tabindex: "-1"
|
|
831
|
+
}, [
|
|
832
|
+
createTextVNode("扩展 Client 上下文 "),
|
|
833
|
+
createVNode(_component_AppLink, {
|
|
834
|
+
class: "header-anchor",
|
|
835
|
+
href: "#扩展-client-上下文",
|
|
836
|
+
"aria-label": 'Permalink to "扩展 Client 上下文 {lang="zh-CN"}"'
|
|
837
|
+
}, {
|
|
838
|
+
default: withCtx(() => [
|
|
839
|
+
createTextVNode("")
|
|
840
|
+
]),
|
|
841
|
+
_: 1
|
|
842
|
+
/* STABLE */
|
|
843
|
+
})
|
|
844
|
+
]),
|
|
845
|
+
createVNode("h2", {
|
|
846
|
+
lang: "en",
|
|
847
|
+
id: "extending-client-context",
|
|
848
|
+
tabindex: "-1"
|
|
849
|
+
}, [
|
|
850
|
+
createTextVNode("Extending Client Context "),
|
|
851
|
+
createVNode(_component_AppLink, {
|
|
852
|
+
class: "header-anchor",
|
|
853
|
+
href: "#extending-client-context",
|
|
854
|
+
"aria-label": 'Permalink to "Extending Client Context {lang="en"}"'
|
|
855
|
+
}, {
|
|
856
|
+
default: withCtx(() => [
|
|
857
|
+
createTextVNode("")
|
|
858
|
+
]),
|
|
859
|
+
_: 1
|
|
860
|
+
/* STABLE */
|
|
861
|
+
})
|
|
862
|
+
]),
|
|
863
|
+
createVNode("div", { lang: "zh-CN" }, [
|
|
864
|
+
createVNode("p", null, [
|
|
865
|
+
createTextVNode("新建 "),
|
|
866
|
+
createVNode("code", null, "setup/main.ts"),
|
|
867
|
+
createTextVNode(":")
|
|
868
|
+
]),
|
|
869
|
+
createVNode("div", { class: "language-ts" }, [
|
|
870
|
+
createVNode("button", {
|
|
871
|
+
title: "Copy Code",
|
|
872
|
+
class: "copy"
|
|
873
|
+
}),
|
|
874
|
+
createVNode("span", { class: "lang" }, "ts"),
|
|
875
|
+
createVNode("pre", { class: "shiki github-dark vp-code-dark" }, [
|
|
876
|
+
createVNode("code", null, [
|
|
877
|
+
createVNode("span", { class: "line" }, [
|
|
878
|
+
createVNode("span", { style: { "color": "#F97583" } }, "import"),
|
|
879
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, " { defineAppSetup } "),
|
|
880
|
+
createVNode("span", { style: { "color": "#F97583" } }, "from"),
|
|
881
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, " "),
|
|
882
|
+
createVNode("span", { style: { "color": "#9ECBFF" } }, "'valaxy'")
|
|
883
|
+
]),
|
|
884
|
+
createTextVNode("\n"),
|
|
885
|
+
createVNode("span", { class: "line" }),
|
|
886
|
+
createTextVNode("\n"),
|
|
887
|
+
createVNode("span", { class: "line" }, [
|
|
888
|
+
createVNode("span", { style: { "color": "#F97583" } }, "export"),
|
|
889
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, " "),
|
|
890
|
+
createVNode("span", { style: { "color": "#F97583" } }, "default"),
|
|
891
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, " "),
|
|
892
|
+
createVNode("span", { style: { "color": "#B392F0" } }, "defineAppSetup"),
|
|
893
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, "(("),
|
|
894
|
+
createVNode("span", { style: { "color": "#FFAB70" } }, "ctx"),
|
|
895
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, ") "),
|
|
896
|
+
createVNode("span", { style: { "color": "#F97583" } }, "=>"),
|
|
897
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, " {")
|
|
898
|
+
]),
|
|
899
|
+
createTextVNode("\n"),
|
|
900
|
+
createVNode("span", { class: "line" }, [
|
|
901
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, " console."),
|
|
902
|
+
createVNode("span", { style: { "color": "#B392F0" } }, "log"),
|
|
903
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, "(ctx)")
|
|
904
|
+
]),
|
|
905
|
+
createTextVNode("\n"),
|
|
906
|
+
createVNode("span", { class: "line" }, [
|
|
907
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, " "),
|
|
908
|
+
createVNode("span", { style: { "color": "#F97583" } }, "const"),
|
|
909
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, " { "),
|
|
910
|
+
createVNode("span", { style: { "color": "#79B8FF" } }, "app"),
|
|
911
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, ", "),
|
|
912
|
+
createVNode("span", { style: { "color": "#79B8FF" } }, "head"),
|
|
913
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, ", "),
|
|
914
|
+
createVNode("span", { style: { "color": "#79B8FF" } }, "router"),
|
|
915
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, ", "),
|
|
916
|
+
createVNode("span", { style: { "color": "#79B8FF" } }, "routes"),
|
|
917
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, ", "),
|
|
918
|
+
createVNode("span", { style: { "color": "#79B8FF" } }, "isClient"),
|
|
919
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, " } "),
|
|
920
|
+
createVNode("span", { style: { "color": "#F97583" } }, "="),
|
|
921
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, " ctx")
|
|
922
|
+
]),
|
|
923
|
+
createTextVNode("\n"),
|
|
924
|
+
createVNode("span", { class: "line" }, [
|
|
925
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, " "),
|
|
926
|
+
createVNode("span", { style: { "color": "#6A737D" } }, "// 任意使用 Vue 生态的插件")
|
|
927
|
+
]),
|
|
928
|
+
createTextVNode("\n"),
|
|
929
|
+
createVNode("span", { class: "line" }, [
|
|
930
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, " app."),
|
|
931
|
+
createVNode("span", { style: { "color": "#B392F0" } }, "use"),
|
|
932
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, "("),
|
|
933
|
+
createVNode("span", { style: { "color": "#6A737D" } }, "/* */"),
|
|
934
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, ")")
|
|
935
|
+
]),
|
|
936
|
+
createTextVNode("\n"),
|
|
937
|
+
createVNode("span", { class: "line" }, [
|
|
938
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, "})")
|
|
939
|
+
])
|
|
940
|
+
])
|
|
941
|
+
]),
|
|
942
|
+
createVNode("pre", { class: "shiki github-light vp-code-light" }, [
|
|
943
|
+
createVNode("code", null, [
|
|
944
|
+
createVNode("span", { class: "line" }, [
|
|
945
|
+
createVNode("span", { style: { "color": "#D73A49" } }, "import"),
|
|
946
|
+
createVNode("span", { style: { "color": "#24292E" } }, " { defineAppSetup } "),
|
|
947
|
+
createVNode("span", { style: { "color": "#D73A49" } }, "from"),
|
|
948
|
+
createVNode("span", { style: { "color": "#24292E" } }, " "),
|
|
949
|
+
createVNode("span", { style: { "color": "#032F62" } }, "'valaxy'")
|
|
950
|
+
]),
|
|
951
|
+
createTextVNode("\n"),
|
|
952
|
+
createVNode("span", { class: "line" }),
|
|
953
|
+
createTextVNode("\n"),
|
|
954
|
+
createVNode("span", { class: "line" }, [
|
|
955
|
+
createVNode("span", { style: { "color": "#D73A49" } }, "export"),
|
|
956
|
+
createVNode("span", { style: { "color": "#24292E" } }, " "),
|
|
957
|
+
createVNode("span", { style: { "color": "#D73A49" } }, "default"),
|
|
958
|
+
createVNode("span", { style: { "color": "#24292E" } }, " "),
|
|
959
|
+
createVNode("span", { style: { "color": "#6F42C1" } }, "defineAppSetup"),
|
|
960
|
+
createVNode("span", { style: { "color": "#24292E" } }, "(("),
|
|
961
|
+
createVNode("span", { style: { "color": "#E36209" } }, "ctx"),
|
|
962
|
+
createVNode("span", { style: { "color": "#24292E" } }, ") "),
|
|
963
|
+
createVNode("span", { style: { "color": "#D73A49" } }, "=>"),
|
|
964
|
+
createVNode("span", { style: { "color": "#24292E" } }, " {")
|
|
965
|
+
]),
|
|
966
|
+
createTextVNode("\n"),
|
|
967
|
+
createVNode("span", { class: "line" }, [
|
|
968
|
+
createVNode("span", { style: { "color": "#24292E" } }, " console."),
|
|
969
|
+
createVNode("span", { style: { "color": "#6F42C1" } }, "log"),
|
|
970
|
+
createVNode("span", { style: { "color": "#24292E" } }, "(ctx)")
|
|
971
|
+
]),
|
|
972
|
+
createTextVNode("\n"),
|
|
973
|
+
createVNode("span", { class: "line" }, [
|
|
974
|
+
createVNode("span", { style: { "color": "#24292E" } }, " "),
|
|
975
|
+
createVNode("span", { style: { "color": "#D73A49" } }, "const"),
|
|
976
|
+
createVNode("span", { style: { "color": "#24292E" } }, " { "),
|
|
977
|
+
createVNode("span", { style: { "color": "#005CC5" } }, "app"),
|
|
978
|
+
createVNode("span", { style: { "color": "#24292E" } }, ", "),
|
|
979
|
+
createVNode("span", { style: { "color": "#005CC5" } }, "head"),
|
|
980
|
+
createVNode("span", { style: { "color": "#24292E" } }, ", "),
|
|
981
|
+
createVNode("span", { style: { "color": "#005CC5" } }, "router"),
|
|
982
|
+
createVNode("span", { style: { "color": "#24292E" } }, ", "),
|
|
983
|
+
createVNode("span", { style: { "color": "#005CC5" } }, "routes"),
|
|
984
|
+
createVNode("span", { style: { "color": "#24292E" } }, ", "),
|
|
985
|
+
createVNode("span", { style: { "color": "#005CC5" } }, "isClient"),
|
|
986
|
+
createVNode("span", { style: { "color": "#24292E" } }, " } "),
|
|
987
|
+
createVNode("span", { style: { "color": "#D73A49" } }, "="),
|
|
988
|
+
createVNode("span", { style: { "color": "#24292E" } }, " ctx")
|
|
989
|
+
]),
|
|
990
|
+
createTextVNode("\n"),
|
|
991
|
+
createVNode("span", { class: "line" }, [
|
|
992
|
+
createVNode("span", { style: { "color": "#24292E" } }, " "),
|
|
993
|
+
createVNode("span", { style: { "color": "#6A737D" } }, "// 任意使用 Vue 生态的插件")
|
|
994
|
+
]),
|
|
995
|
+
createTextVNode("\n"),
|
|
996
|
+
createVNode("span", { class: "line" }, [
|
|
997
|
+
createVNode("span", { style: { "color": "#24292E" } }, " app."),
|
|
998
|
+
createVNode("span", { style: { "color": "#6F42C1" } }, "use"),
|
|
999
|
+
createVNode("span", { style: { "color": "#24292E" } }, "("),
|
|
1000
|
+
createVNode("span", { style: { "color": "#6A737D" } }, "/* */"),
|
|
1001
|
+
createVNode("span", { style: { "color": "#24292E" } }, ")")
|
|
1002
|
+
]),
|
|
1003
|
+
createTextVNode("\n"),
|
|
1004
|
+
createVNode("span", { class: "line" }, [
|
|
1005
|
+
createVNode("span", { style: { "color": "#24292E" } }, "})")
|
|
1006
|
+
])
|
|
1007
|
+
])
|
|
1008
|
+
])
|
|
1009
|
+
]),
|
|
1010
|
+
createVNode("blockquote", null, [
|
|
1011
|
+
createVNode("p", null, [
|
|
1012
|
+
createTextVNode("具体示例可参见 "),
|
|
1013
|
+
createVNode(_component_AppLink, { href: "/guide/third-party/#谷歌统计" }, {
|
|
1014
|
+
default: withCtx(() => [
|
|
1015
|
+
createTextVNode("谷歌统计|第三方集成")
|
|
1016
|
+
]),
|
|
1017
|
+
_: 1
|
|
1018
|
+
/* STABLE */
|
|
1019
|
+
}),
|
|
1020
|
+
createTextVNode("。")
|
|
1021
|
+
])
|
|
1022
|
+
])
|
|
1023
|
+
]),
|
|
1024
|
+
createVNode("div", { lang: "en" }, [
|
|
1025
|
+
createVNode("p", null, [
|
|
1026
|
+
createTextVNode("Create a new file "),
|
|
1027
|
+
createVNode("code", null, "setup/main.ts"),
|
|
1028
|
+
createTextVNode(":")
|
|
1029
|
+
]),
|
|
1030
|
+
createVNode("div", { class: "language-ts" }, [
|
|
1031
|
+
createVNode("button", {
|
|
1032
|
+
title: "Copy Code",
|
|
1033
|
+
class: "copy"
|
|
1034
|
+
}),
|
|
1035
|
+
createVNode("span", { class: "lang" }, "ts"),
|
|
1036
|
+
createVNode("pre", { class: "shiki github-dark vp-code-dark" }, [
|
|
1037
|
+
createVNode("code", null, [
|
|
1038
|
+
createVNode("span", { class: "line" }, [
|
|
1039
|
+
createVNode("span", { style: { "color": "#F97583" } }, "import"),
|
|
1040
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, " { defineAppSetup } "),
|
|
1041
|
+
createVNode("span", { style: { "color": "#F97583" } }, "from"),
|
|
1042
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, " "),
|
|
1043
|
+
createVNode("span", { style: { "color": "#9ECBFF" } }, "'valaxy'")
|
|
1044
|
+
]),
|
|
1045
|
+
createTextVNode("\n"),
|
|
1046
|
+
createVNode("span", { class: "line" }),
|
|
1047
|
+
createTextVNode("\n"),
|
|
1048
|
+
createVNode("span", { class: "line" }, [
|
|
1049
|
+
createVNode("span", { style: { "color": "#F97583" } }, "export"),
|
|
1050
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, " "),
|
|
1051
|
+
createVNode("span", { style: { "color": "#F97583" } }, "default"),
|
|
1052
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, " "),
|
|
1053
|
+
createVNode("span", { style: { "color": "#B392F0" } }, "defineAppSetup"),
|
|
1054
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, "(("),
|
|
1055
|
+
createVNode("span", { style: { "color": "#FFAB70" } }, "ctx"),
|
|
1056
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, ") "),
|
|
1057
|
+
createVNode("span", { style: { "color": "#F97583" } }, "=>"),
|
|
1058
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, " {")
|
|
1059
|
+
]),
|
|
1060
|
+
createTextVNode("\n"),
|
|
1061
|
+
createVNode("span", { class: "line" }, [
|
|
1062
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, " console."),
|
|
1063
|
+
createVNode("span", { style: { "color": "#B392F0" } }, "log"),
|
|
1064
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, "(ctx)")
|
|
1065
|
+
]),
|
|
1066
|
+
createTextVNode("\n"),
|
|
1067
|
+
createVNode("span", { class: "line" }, [
|
|
1068
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, " "),
|
|
1069
|
+
createVNode("span", { style: { "color": "#F97583" } }, "const"),
|
|
1070
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, " { "),
|
|
1071
|
+
createVNode("span", { style: { "color": "#79B8FF" } }, "app"),
|
|
1072
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, ", "),
|
|
1073
|
+
createVNode("span", { style: { "color": "#79B8FF" } }, "head"),
|
|
1074
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, ", "),
|
|
1075
|
+
createVNode("span", { style: { "color": "#79B8FF" } }, "router"),
|
|
1076
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, ", "),
|
|
1077
|
+
createVNode("span", { style: { "color": "#79B8FF" } }, "routes"),
|
|
1078
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, ", "),
|
|
1079
|
+
createVNode("span", { style: { "color": "#79B8FF" } }, "isClient"),
|
|
1080
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, " } "),
|
|
1081
|
+
createVNode("span", { style: { "color": "#F97583" } }, "="),
|
|
1082
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, " ctx")
|
|
1083
|
+
]),
|
|
1084
|
+
createTextVNode("\n"),
|
|
1085
|
+
createVNode("span", { class: "line" }, [
|
|
1086
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, " "),
|
|
1087
|
+
createVNode("span", { style: { "color": "#6A737D" } }, "// Use any Vue plugins")
|
|
1088
|
+
]),
|
|
1089
|
+
createTextVNode("\n"),
|
|
1090
|
+
createVNode("span", { class: "line" }, [
|
|
1091
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, " app."),
|
|
1092
|
+
createVNode("span", { style: { "color": "#B392F0" } }, "use"),
|
|
1093
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, "("),
|
|
1094
|
+
createVNode("span", { style: { "color": "#6A737D" } }, "/* */"),
|
|
1095
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, ")")
|
|
1096
|
+
]),
|
|
1097
|
+
createTextVNode("\n"),
|
|
1098
|
+
createVNode("span", { class: "line" }, [
|
|
1099
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, "})")
|
|
1100
|
+
])
|
|
1101
|
+
])
|
|
1102
|
+
]),
|
|
1103
|
+
createVNode("pre", { class: "shiki github-light vp-code-light" }, [
|
|
1104
|
+
createVNode("code", null, [
|
|
1105
|
+
createVNode("span", { class: "line" }, [
|
|
1106
|
+
createVNode("span", { style: { "color": "#D73A49" } }, "import"),
|
|
1107
|
+
createVNode("span", { style: { "color": "#24292E" } }, " { defineAppSetup } "),
|
|
1108
|
+
createVNode("span", { style: { "color": "#D73A49" } }, "from"),
|
|
1109
|
+
createVNode("span", { style: { "color": "#24292E" } }, " "),
|
|
1110
|
+
createVNode("span", { style: { "color": "#032F62" } }, "'valaxy'")
|
|
1111
|
+
]),
|
|
1112
|
+
createTextVNode("\n"),
|
|
1113
|
+
createVNode("span", { class: "line" }),
|
|
1114
|
+
createTextVNode("\n"),
|
|
1115
|
+
createVNode("span", { class: "line" }, [
|
|
1116
|
+
createVNode("span", { style: { "color": "#D73A49" } }, "export"),
|
|
1117
|
+
createVNode("span", { style: { "color": "#24292E" } }, " "),
|
|
1118
|
+
createVNode("span", { style: { "color": "#D73A49" } }, "default"),
|
|
1119
|
+
createVNode("span", { style: { "color": "#24292E" } }, " "),
|
|
1120
|
+
createVNode("span", { style: { "color": "#6F42C1" } }, "defineAppSetup"),
|
|
1121
|
+
createVNode("span", { style: { "color": "#24292E" } }, "(("),
|
|
1122
|
+
createVNode("span", { style: { "color": "#E36209" } }, "ctx"),
|
|
1123
|
+
createVNode("span", { style: { "color": "#24292E" } }, ") "),
|
|
1124
|
+
createVNode("span", { style: { "color": "#D73A49" } }, "=>"),
|
|
1125
|
+
createVNode("span", { style: { "color": "#24292E" } }, " {")
|
|
1126
|
+
]),
|
|
1127
|
+
createTextVNode("\n"),
|
|
1128
|
+
createVNode("span", { class: "line" }, [
|
|
1129
|
+
createVNode("span", { style: { "color": "#24292E" } }, " console."),
|
|
1130
|
+
createVNode("span", { style: { "color": "#6F42C1" } }, "log"),
|
|
1131
|
+
createVNode("span", { style: { "color": "#24292E" } }, "(ctx)")
|
|
1132
|
+
]),
|
|
1133
|
+
createTextVNode("\n"),
|
|
1134
|
+
createVNode("span", { class: "line" }, [
|
|
1135
|
+
createVNode("span", { style: { "color": "#24292E" } }, " "),
|
|
1136
|
+
createVNode("span", { style: { "color": "#D73A49" } }, "const"),
|
|
1137
|
+
createVNode("span", { style: { "color": "#24292E" } }, " { "),
|
|
1138
|
+
createVNode("span", { style: { "color": "#005CC5" } }, "app"),
|
|
1139
|
+
createVNode("span", { style: { "color": "#24292E" } }, ", "),
|
|
1140
|
+
createVNode("span", { style: { "color": "#005CC5" } }, "head"),
|
|
1141
|
+
createVNode("span", { style: { "color": "#24292E" } }, ", "),
|
|
1142
|
+
createVNode("span", { style: { "color": "#005CC5" } }, "router"),
|
|
1143
|
+
createVNode("span", { style: { "color": "#24292E" } }, ", "),
|
|
1144
|
+
createVNode("span", { style: { "color": "#005CC5" } }, "routes"),
|
|
1145
|
+
createVNode("span", { style: { "color": "#24292E" } }, ", "),
|
|
1146
|
+
createVNode("span", { style: { "color": "#005CC5" } }, "isClient"),
|
|
1147
|
+
createVNode("span", { style: { "color": "#24292E" } }, " } "),
|
|
1148
|
+
createVNode("span", { style: { "color": "#D73A49" } }, "="),
|
|
1149
|
+
createVNode("span", { style: { "color": "#24292E" } }, " ctx")
|
|
1150
|
+
]),
|
|
1151
|
+
createTextVNode("\n"),
|
|
1152
|
+
createVNode("span", { class: "line" }, [
|
|
1153
|
+
createVNode("span", { style: { "color": "#24292E" } }, " "),
|
|
1154
|
+
createVNode("span", { style: { "color": "#6A737D" } }, "// Use any Vue plugins")
|
|
1155
|
+
]),
|
|
1156
|
+
createTextVNode("\n"),
|
|
1157
|
+
createVNode("span", { class: "line" }, [
|
|
1158
|
+
createVNode("span", { style: { "color": "#24292E" } }, " app."),
|
|
1159
|
+
createVNode("span", { style: { "color": "#6F42C1" } }, "use"),
|
|
1160
|
+
createVNode("span", { style: { "color": "#24292E" } }, "("),
|
|
1161
|
+
createVNode("span", { style: { "color": "#6A737D" } }, "/* */"),
|
|
1162
|
+
createVNode("span", { style: { "color": "#24292E" } }, ")")
|
|
1163
|
+
]),
|
|
1164
|
+
createTextVNode("\n"),
|
|
1165
|
+
createVNode("span", { class: "line" }, [
|
|
1166
|
+
createVNode("span", { style: { "color": "#24292E" } }, "})")
|
|
1167
|
+
])
|
|
1168
|
+
])
|
|
1169
|
+
])
|
|
1170
|
+
]),
|
|
1171
|
+
createVNode("blockquote", null, [
|
|
1172
|
+
createVNode("p", null, [
|
|
1173
|
+
createTextVNode("For a detailed example, please see "),
|
|
1174
|
+
createVNode(_component_AppLink, { href: "/guide/third-party/#谷歌统计" }, {
|
|
1175
|
+
default: withCtx(() => [
|
|
1176
|
+
createTextVNode("Google Analytics | Third Party Integration")
|
|
1177
|
+
]),
|
|
1178
|
+
_: 1
|
|
1179
|
+
/* STABLE */
|
|
1180
|
+
}),
|
|
1181
|
+
createTextVNode("。")
|
|
1182
|
+
])
|
|
1183
|
+
])
|
|
1184
|
+
]),
|
|
1185
|
+
createVNode("h2", {
|
|
1186
|
+
lang: "zh-CN",
|
|
1187
|
+
id: "多语言支持",
|
|
1188
|
+
tabindex: "-1"
|
|
1189
|
+
}, [
|
|
1190
|
+
createTextVNode("多语言支持 "),
|
|
1191
|
+
createVNode(_component_AppLink, {
|
|
1192
|
+
class: "header-anchor",
|
|
1193
|
+
href: "#多语言支持",
|
|
1194
|
+
"aria-label": 'Permalink to "多语言支持 {lang="zh-CN"}"'
|
|
1195
|
+
}, {
|
|
1196
|
+
default: withCtx(() => [
|
|
1197
|
+
createTextVNode("")
|
|
1198
|
+
]),
|
|
1199
|
+
_: 1
|
|
1200
|
+
/* STABLE */
|
|
1201
|
+
})
|
|
1202
|
+
]),
|
|
1203
|
+
createVNode("h2", {
|
|
1204
|
+
lang: "en",
|
|
1205
|
+
id: "i18n",
|
|
1206
|
+
tabindex: "-1"
|
|
1207
|
+
}, [
|
|
1208
|
+
createTextVNode("I18n "),
|
|
1209
|
+
createVNode(_component_AppLink, {
|
|
1210
|
+
class: "header-anchor",
|
|
1211
|
+
href: "#i18n",
|
|
1212
|
+
"aria-label": 'Permalink to "I18n {lang="en"}"'
|
|
1213
|
+
}, {
|
|
1214
|
+
default: withCtx(() => [
|
|
1215
|
+
createTextVNode("")
|
|
1216
|
+
]),
|
|
1217
|
+
_: 1
|
|
1218
|
+
/* STABLE */
|
|
1219
|
+
})
|
|
1220
|
+
]),
|
|
1221
|
+
createVNode("div", { lang: "zh-CN" }, [
|
|
1222
|
+
createVNode("p", null, [
|
|
1223
|
+
createTextVNode("新建 "),
|
|
1224
|
+
createVNode("code", null, "locales"),
|
|
1225
|
+
createTextVNode(" 文件夹。")
|
|
1226
|
+
]),
|
|
1227
|
+
createVNode("ul", null, [
|
|
1228
|
+
createVNode("li", null, [
|
|
1229
|
+
createVNode("code", null, "zh-CN.yml"),
|
|
1230
|
+
createTextVNode(": 中文翻译")
|
|
1231
|
+
]),
|
|
1232
|
+
createVNode("li", null, [
|
|
1233
|
+
createVNode("code", null, "en.yml"),
|
|
1234
|
+
createTextVNode(": 英文翻译")
|
|
1235
|
+
])
|
|
1236
|
+
]),
|
|
1237
|
+
createVNode("p", null, "譬如(请确保文件内容非空):")
|
|
1238
|
+
]),
|
|
1239
|
+
createVNode("div", { lang: "en" }, [
|
|
1240
|
+
createVNode("p", null, [
|
|
1241
|
+
createTextVNode("Create "),
|
|
1242
|
+
createVNode("code", null, "locales"),
|
|
1243
|
+
createTextVNode(" folder.")
|
|
1244
|
+
]),
|
|
1245
|
+
createVNode("ul", null, [
|
|
1246
|
+
createVNode("li", null, [
|
|
1247
|
+
createVNode("code", null, "zh-CN.yml"),
|
|
1248
|
+
createTextVNode(": Chinese translation")
|
|
1249
|
+
]),
|
|
1250
|
+
createVNode("li", null, [
|
|
1251
|
+
createVNode("code", null, "en.yml"),
|
|
1252
|
+
createTextVNode(": English translation")
|
|
1253
|
+
])
|
|
1254
|
+
]),
|
|
1255
|
+
createVNode("p", null, "For example (make sure that the file is not empty):")
|
|
1256
|
+
]),
|
|
1257
|
+
createVNode("div", { class: "language-yaml" }, [
|
|
1258
|
+
createVNode("button", {
|
|
1259
|
+
title: "Copy Code",
|
|
1260
|
+
class: "copy"
|
|
1261
|
+
}),
|
|
1262
|
+
createVNode("span", { class: "lang" }, "yaml"),
|
|
1263
|
+
createVNode("pre", { class: "shiki github-dark vp-code-dark" }, [
|
|
1264
|
+
createVNode("code", null, [
|
|
1265
|
+
createVNode("span", { class: "line" }, [
|
|
1266
|
+
createVNode("span", { style: { "color": "#6A737D" } }, "# en.yml")
|
|
1267
|
+
]),
|
|
1268
|
+
createTextVNode("\n"),
|
|
1269
|
+
createVNode("span", { class: "line" }, [
|
|
1270
|
+
createVNode("span", { style: { "color": "#85E89D" } }, "button"),
|
|
1271
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, ":")
|
|
1272
|
+
]),
|
|
1273
|
+
createTextVNode("\n"),
|
|
1274
|
+
createVNode("span", { class: "line" }, [
|
|
1275
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, " "),
|
|
1276
|
+
createVNode("span", { style: { "color": "#85E89D" } }, "about"),
|
|
1277
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, ": "),
|
|
1278
|
+
createVNode("span", { style: { "color": "#9ECBFF" } }, "About")
|
|
1279
|
+
])
|
|
1280
|
+
])
|
|
1281
|
+
]),
|
|
1282
|
+
createVNode("pre", { class: "shiki github-light vp-code-light" }, [
|
|
1283
|
+
createVNode("code", null, [
|
|
1284
|
+
createVNode("span", { class: "line" }, [
|
|
1285
|
+
createVNode("span", { style: { "color": "#6A737D" } }, "# en.yml")
|
|
1286
|
+
]),
|
|
1287
|
+
createTextVNode("\n"),
|
|
1288
|
+
createVNode("span", { class: "line" }, [
|
|
1289
|
+
createVNode("span", { style: { "color": "#22863A" } }, "button"),
|
|
1290
|
+
createVNode("span", { style: { "color": "#24292E" } }, ":")
|
|
1291
|
+
]),
|
|
1292
|
+
createTextVNode("\n"),
|
|
1293
|
+
createVNode("span", { class: "line" }, [
|
|
1294
|
+
createVNode("span", { style: { "color": "#24292E" } }, " "),
|
|
1295
|
+
createVNode("span", { style: { "color": "#22863A" } }, "about"),
|
|
1296
|
+
createVNode("span", { style: { "color": "#24292E" } }, ": "),
|
|
1297
|
+
createVNode("span", { style: { "color": "#032F62" } }, "About")
|
|
1298
|
+
])
|
|
1299
|
+
])
|
|
1300
|
+
])
|
|
1301
|
+
]),
|
|
1302
|
+
createVNode("div", { class: "language-yaml" }, [
|
|
1303
|
+
createVNode("button", {
|
|
1304
|
+
title: "Copy Code",
|
|
1305
|
+
class: "copy"
|
|
1306
|
+
}),
|
|
1307
|
+
createVNode("span", { class: "lang" }, "yaml"),
|
|
1308
|
+
createVNode("pre", { class: "shiki github-dark vp-code-dark" }, [
|
|
1309
|
+
createVNode("code", null, [
|
|
1310
|
+
createVNode("span", { class: "line" }, [
|
|
1311
|
+
createVNode("span", { style: { "color": "#6A737D" } }, "# zh-CN.yml")
|
|
1312
|
+
]),
|
|
1313
|
+
createTextVNode("\n"),
|
|
1314
|
+
createVNode("span", { class: "line" }, [
|
|
1315
|
+
createVNode("span", { style: { "color": "#85E89D" } }, "button"),
|
|
1316
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, ":")
|
|
1317
|
+
]),
|
|
1318
|
+
createTextVNode("\n"),
|
|
1319
|
+
createVNode("span", { class: "line" }, [
|
|
1320
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, " "),
|
|
1321
|
+
createVNode("span", { style: { "color": "#85E89D" } }, "about"),
|
|
1322
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, ": "),
|
|
1323
|
+
createVNode("span", { style: { "color": "#9ECBFF" } }, "关于")
|
|
1324
|
+
])
|
|
1325
|
+
])
|
|
1326
|
+
]),
|
|
1327
|
+
createVNode("pre", { class: "shiki github-light vp-code-light" }, [
|
|
1328
|
+
createVNode("code", null, [
|
|
1329
|
+
createVNode("span", { class: "line" }, [
|
|
1330
|
+
createVNode("span", { style: { "color": "#6A737D" } }, "# zh-CN.yml")
|
|
1331
|
+
]),
|
|
1332
|
+
createTextVNode("\n"),
|
|
1333
|
+
createVNode("span", { class: "line" }, [
|
|
1334
|
+
createVNode("span", { style: { "color": "#22863A" } }, "button"),
|
|
1335
|
+
createVNode("span", { style: { "color": "#24292E" } }, ":")
|
|
1336
|
+
]),
|
|
1337
|
+
createTextVNode("\n"),
|
|
1338
|
+
createVNode("span", { class: "line" }, [
|
|
1339
|
+
createVNode("span", { style: { "color": "#24292E" } }, " "),
|
|
1340
|
+
createVNode("span", { style: { "color": "#22863A" } }, "about"),
|
|
1341
|
+
createVNode("span", { style: { "color": "#24292E" } }, ": "),
|
|
1342
|
+
createVNode("span", { style: { "color": "#032F62" } }, "关于")
|
|
1343
|
+
])
|
|
1344
|
+
])
|
|
1345
|
+
])
|
|
1346
|
+
]),
|
|
1347
|
+
createVNode("div", { lang: "zh-CN" }, [
|
|
1348
|
+
createVNode("p", null, "你可以如下方式使用它:")
|
|
1349
|
+
]),
|
|
1350
|
+
createVNode("div", { lang: "en" }, [
|
|
1351
|
+
createVNode("p", null, "You can use it like this:")
|
|
1352
|
+
]),
|
|
1353
|
+
createVNode("div", { class: "language-vue" }, [
|
|
1354
|
+
createVNode("button", {
|
|
1355
|
+
title: "Copy Code",
|
|
1356
|
+
class: "copy"
|
|
1357
|
+
}),
|
|
1358
|
+
createVNode("span", { class: "lang" }, "vue"),
|
|
1359
|
+
createVNode("pre", { class: "shiki github-dark vp-code-dark" }, [
|
|
1360
|
+
createVNode("code", null, [
|
|
1361
|
+
createVNode("span", { class: "line" }, [
|
|
1362
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, "<"),
|
|
1363
|
+
createVNode("span", { style: { "color": "#85E89D" } }, "script"),
|
|
1364
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, " "),
|
|
1365
|
+
createVNode("span", { style: { "color": "#B392F0" } }, "setup"),
|
|
1366
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, ">")
|
|
1367
|
+
]),
|
|
1368
|
+
createTextVNode("\n"),
|
|
1369
|
+
createVNode("span", { class: "line" }, [
|
|
1370
|
+
createVNode("span", { style: { "color": "#F97583" } }, "import"),
|
|
1371
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, " { useI18n } "),
|
|
1372
|
+
createVNode("span", { style: { "color": "#F97583" } }, "from"),
|
|
1373
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, " "),
|
|
1374
|
+
createVNode("span", { style: { "color": "#9ECBFF" } }, "'vue-i18n'")
|
|
1375
|
+
]),
|
|
1376
|
+
createTextVNode("\n"),
|
|
1377
|
+
createVNode("span", { class: "line" }),
|
|
1378
|
+
createTextVNode("\n"),
|
|
1379
|
+
createVNode("span", { class: "line" }, [
|
|
1380
|
+
createVNode("span", { style: { "color": "#F97583" } }, "const"),
|
|
1381
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, " { "),
|
|
1382
|
+
createVNode("span", { style: { "color": "#79B8FF" } }, "t"),
|
|
1383
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, " } "),
|
|
1384
|
+
createVNode("span", { style: { "color": "#F97583" } }, "="),
|
|
1385
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, " "),
|
|
1386
|
+
createVNode("span", { style: { "color": "#B392F0" } }, "useI18n"),
|
|
1387
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, "()")
|
|
1388
|
+
]),
|
|
1389
|
+
createTextVNode("\n"),
|
|
1390
|
+
createVNode("span", { class: "line" }, [
|
|
1391
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, "</"),
|
|
1392
|
+
createVNode("span", { style: { "color": "#85E89D" } }, "script"),
|
|
1393
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, ">")
|
|
1394
|
+
]),
|
|
1395
|
+
createTextVNode("\n"),
|
|
1396
|
+
createVNode("span", { class: "line" }),
|
|
1397
|
+
createTextVNode("\n"),
|
|
1398
|
+
createVNode("span", { class: "line" }, [
|
|
1399
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, "<"),
|
|
1400
|
+
createVNode("span", { style: { "color": "#85E89D" } }, "template"),
|
|
1401
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, ">")
|
|
1402
|
+
]),
|
|
1403
|
+
createTextVNode("\n"),
|
|
1404
|
+
createVNode("span", { class: "line" }, [
|
|
1405
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, " <"),
|
|
1406
|
+
createVNode("span", { style: { "color": "#85E89D" } }, "button"),
|
|
1407
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, ">")
|
|
1408
|
+
]),
|
|
1409
|
+
createTextVNode("\n"),
|
|
1410
|
+
createVNode("span", { class: "line" }, [
|
|
1411
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, " {{ t('button.about') }}")
|
|
1412
|
+
]),
|
|
1413
|
+
createTextVNode("\n"),
|
|
1414
|
+
createVNode("span", { class: "line" }, [
|
|
1415
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, " </"),
|
|
1416
|
+
createVNode("span", { style: { "color": "#85E89D" } }, "button"),
|
|
1417
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, ">")
|
|
1418
|
+
]),
|
|
1419
|
+
createTextVNode("\n"),
|
|
1420
|
+
createVNode("span", { class: "line" }, [
|
|
1421
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, "</"),
|
|
1422
|
+
createVNode("span", { style: { "color": "#85E89D" } }, "template"),
|
|
1423
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, ">")
|
|
1424
|
+
])
|
|
1425
|
+
])
|
|
1426
|
+
]),
|
|
1427
|
+
createVNode("pre", { class: "shiki github-light vp-code-light" }, [
|
|
1428
|
+
createVNode("code", null, [
|
|
1429
|
+
createVNode("span", { class: "line" }, [
|
|
1430
|
+
createVNode("span", { style: { "color": "#24292E" } }, "<"),
|
|
1431
|
+
createVNode("span", { style: { "color": "#22863A" } }, "script"),
|
|
1432
|
+
createVNode("span", { style: { "color": "#24292E" } }, " "),
|
|
1433
|
+
createVNode("span", { style: { "color": "#6F42C1" } }, "setup"),
|
|
1434
|
+
createVNode("span", { style: { "color": "#24292E" } }, ">")
|
|
1435
|
+
]),
|
|
1436
|
+
createTextVNode("\n"),
|
|
1437
|
+
createVNode("span", { class: "line" }, [
|
|
1438
|
+
createVNode("span", { style: { "color": "#D73A49" } }, "import"),
|
|
1439
|
+
createVNode("span", { style: { "color": "#24292E" } }, " { useI18n } "),
|
|
1440
|
+
createVNode("span", { style: { "color": "#D73A49" } }, "from"),
|
|
1441
|
+
createVNode("span", { style: { "color": "#24292E" } }, " "),
|
|
1442
|
+
createVNode("span", { style: { "color": "#032F62" } }, "'vue-i18n'")
|
|
1443
|
+
]),
|
|
1444
|
+
createTextVNode("\n"),
|
|
1445
|
+
createVNode("span", { class: "line" }),
|
|
1446
|
+
createTextVNode("\n"),
|
|
1447
|
+
createVNode("span", { class: "line" }, [
|
|
1448
|
+
createVNode("span", { style: { "color": "#D73A49" } }, "const"),
|
|
1449
|
+
createVNode("span", { style: { "color": "#24292E" } }, " { "),
|
|
1450
|
+
createVNode("span", { style: { "color": "#005CC5" } }, "t"),
|
|
1451
|
+
createVNode("span", { style: { "color": "#24292E" } }, " } "),
|
|
1452
|
+
createVNode("span", { style: { "color": "#D73A49" } }, "="),
|
|
1453
|
+
createVNode("span", { style: { "color": "#24292E" } }, " "),
|
|
1454
|
+
createVNode("span", { style: { "color": "#6F42C1" } }, "useI18n"),
|
|
1455
|
+
createVNode("span", { style: { "color": "#24292E" } }, "()")
|
|
1456
|
+
]),
|
|
1457
|
+
createTextVNode("\n"),
|
|
1458
|
+
createVNode("span", { class: "line" }, [
|
|
1459
|
+
createVNode("span", { style: { "color": "#24292E" } }, "</"),
|
|
1460
|
+
createVNode("span", { style: { "color": "#22863A" } }, "script"),
|
|
1461
|
+
createVNode("span", { style: { "color": "#24292E" } }, ">")
|
|
1462
|
+
]),
|
|
1463
|
+
createTextVNode("\n"),
|
|
1464
|
+
createVNode("span", { class: "line" }),
|
|
1465
|
+
createTextVNode("\n"),
|
|
1466
|
+
createVNode("span", { class: "line" }, [
|
|
1467
|
+
createVNode("span", { style: { "color": "#24292E" } }, "<"),
|
|
1468
|
+
createVNode("span", { style: { "color": "#22863A" } }, "template"),
|
|
1469
|
+
createVNode("span", { style: { "color": "#24292E" } }, ">")
|
|
1470
|
+
]),
|
|
1471
|
+
createTextVNode("\n"),
|
|
1472
|
+
createVNode("span", { class: "line" }, [
|
|
1473
|
+
createVNode("span", { style: { "color": "#24292E" } }, " <"),
|
|
1474
|
+
createVNode("span", { style: { "color": "#22863A" } }, "button"),
|
|
1475
|
+
createVNode("span", { style: { "color": "#24292E" } }, ">")
|
|
1476
|
+
]),
|
|
1477
|
+
createTextVNode("\n"),
|
|
1478
|
+
createVNode("span", { class: "line" }, [
|
|
1479
|
+
createVNode("span", { style: { "color": "#24292E" } }, " {{ t('button.about') }}")
|
|
1480
|
+
]),
|
|
1481
|
+
createTextVNode("\n"),
|
|
1482
|
+
createVNode("span", { class: "line" }, [
|
|
1483
|
+
createVNode("span", { style: { "color": "#24292E" } }, " </"),
|
|
1484
|
+
createVNode("span", { style: { "color": "#22863A" } }, "button"),
|
|
1485
|
+
createVNode("span", { style: { "color": "#24292E" } }, ">")
|
|
1486
|
+
]),
|
|
1487
|
+
createTextVNode("\n"),
|
|
1488
|
+
createVNode("span", { class: "line" }, [
|
|
1489
|
+
createVNode("span", { style: { "color": "#24292E" } }, "</"),
|
|
1490
|
+
createVNode("span", { style: { "color": "#22863A" } }, "template"),
|
|
1491
|
+
createVNode("span", { style: { "color": "#24292E" } }, ">")
|
|
1492
|
+
])
|
|
1493
|
+
])
|
|
1494
|
+
])
|
|
1495
|
+
]),
|
|
1496
|
+
createVNode("h2", {
|
|
1497
|
+
lang: "zh-CN",
|
|
1498
|
+
id: "模版文件",
|
|
1499
|
+
tabindex: "-1"
|
|
1500
|
+
}, [
|
|
1501
|
+
createTextVNode("模版文件 "),
|
|
1502
|
+
createVNode(_component_AppLink, {
|
|
1503
|
+
class: "header-anchor",
|
|
1504
|
+
href: "#模版文件",
|
|
1505
|
+
"aria-label": 'Permalink to "模版文件 {lang="zh-CN"}"'
|
|
1506
|
+
}, {
|
|
1507
|
+
default: withCtx(() => [
|
|
1508
|
+
createTextVNode("")
|
|
1509
|
+
]),
|
|
1510
|
+
_: 1
|
|
1511
|
+
/* STABLE */
|
|
1512
|
+
})
|
|
1513
|
+
]),
|
|
1514
|
+
createVNode("h2", {
|
|
1515
|
+
lang: "en",
|
|
1516
|
+
id: "template-files",
|
|
1517
|
+
tabindex: "-1"
|
|
1518
|
+
}, [
|
|
1519
|
+
createTextVNode("Template Files "),
|
|
1520
|
+
createVNode(_component_AppLink, {
|
|
1521
|
+
class: "header-anchor",
|
|
1522
|
+
href: "#template-files",
|
|
1523
|
+
"aria-label": 'Permalink to "Template Files {lang="en"}"'
|
|
1524
|
+
}, {
|
|
1525
|
+
default: withCtx(() => [
|
|
1526
|
+
createTextVNode("")
|
|
1527
|
+
]),
|
|
1528
|
+
_: 1
|
|
1529
|
+
/* STABLE */
|
|
1530
|
+
})
|
|
1531
|
+
]),
|
|
1532
|
+
createVNode("div", { lang: "zh-CN" }, [
|
|
1533
|
+
createVNode("p", null, "新建某类布局 Markdown 文件的模版。(开发中)"),
|
|
1534
|
+
createVNode("p", null, [
|
|
1535
|
+
createTextVNode("新建 "),
|
|
1536
|
+
createVNode("code", null, "scaffolds"),
|
|
1537
|
+
createTextVNode(" 文件夹。")
|
|
1538
|
+
])
|
|
1539
|
+
]),
|
|
1540
|
+
createVNode("div", { lang: "en" }, [
|
|
1541
|
+
createVNode("p", null, "Create some templates for Markdown layout. (Work in progress)"),
|
|
1542
|
+
createVNode("p", null, [
|
|
1543
|
+
createTextVNode("Create "),
|
|
1544
|
+
createVNode("code", null, "scaffolds"),
|
|
1545
|
+
createTextVNode(" folder.")
|
|
1546
|
+
])
|
|
1547
|
+
]),
|
|
1548
|
+
createVNode("div", { class: "language-bash" }, [
|
|
1549
|
+
createVNode("button", {
|
|
1550
|
+
title: "Copy Code",
|
|
1551
|
+
class: "copy"
|
|
1552
|
+
}),
|
|
1553
|
+
createVNode("span", { class: "lang" }, "bash"),
|
|
1554
|
+
createVNode("pre", { class: "shiki github-dark vp-code-dark" }, [
|
|
1555
|
+
createVNode("code", null, [
|
|
1556
|
+
createVNode("span", { class: "line" }, [
|
|
1557
|
+
createVNode("span", { style: { "color": "#B392F0" } }, "valaxy"),
|
|
1558
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, " "),
|
|
1559
|
+
createVNode("span", { style: { "color": "#9ECBFF" } }, "new"),
|
|
1560
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, " "),
|
|
1561
|
+
createVNode("span", { style: { "color": "#F97583" } }, "<"),
|
|
1562
|
+
createVNode("span", { style: { "color": "#9ECBFF" } }, "titl"),
|
|
1563
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, "e"),
|
|
1564
|
+
createVNode("span", { style: { "color": "#F97583" } }, ">"),
|
|
1565
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, " "),
|
|
1566
|
+
createVNode("span", { style: { "color": "#79B8FF" } }, "-l"),
|
|
1567
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, " [layout]")
|
|
1568
|
+
])
|
|
1569
|
+
])
|
|
1570
|
+
]),
|
|
1571
|
+
createVNode("pre", { class: "shiki github-light vp-code-light" }, [
|
|
1572
|
+
createVNode("code", null, [
|
|
1573
|
+
createVNode("span", { class: "line" }, [
|
|
1574
|
+
createVNode("span", { style: { "color": "#6F42C1" } }, "valaxy"),
|
|
1575
|
+
createVNode("span", { style: { "color": "#24292E" } }, " "),
|
|
1576
|
+
createVNode("span", { style: { "color": "#032F62" } }, "new"),
|
|
1577
|
+
createVNode("span", { style: { "color": "#24292E" } }, " "),
|
|
1578
|
+
createVNode("span", { style: { "color": "#D73A49" } }, "<"),
|
|
1579
|
+
createVNode("span", { style: { "color": "#032F62" } }, "titl"),
|
|
1580
|
+
createVNode("span", { style: { "color": "#24292E" } }, "e"),
|
|
1581
|
+
createVNode("span", { style: { "color": "#D73A49" } }, ">"),
|
|
1582
|
+
createVNode("span", { style: { "color": "#24292E" } }, " "),
|
|
1583
|
+
createVNode("span", { style: { "color": "#005CC5" } }, "-l"),
|
|
1584
|
+
createVNode("span", { style: { "color": "#24292E" } }, " [layout]")
|
|
1585
|
+
])
|
|
1586
|
+
])
|
|
1587
|
+
])
|
|
1588
|
+
]),
|
|
1589
|
+
createVNode("div", { lang: "zh-CN" }, [
|
|
1590
|
+
createVNode("ul", null, [
|
|
1591
|
+
createVNode("li", null, [
|
|
1592
|
+
createVNode("code", null, "layout"),
|
|
1593
|
+
createTextVNode(": 默认为 "),
|
|
1594
|
+
createVNode("code", null, "post")
|
|
1595
|
+
])
|
|
1596
|
+
]),
|
|
1597
|
+
createVNode("p", null, [
|
|
1598
|
+
createTextVNode("新建 "),
|
|
1599
|
+
createVNode("code", null, "xxx.md"),
|
|
1600
|
+
createTextVNode(",xxx 取决于你的布局名称。 譬如 "),
|
|
1601
|
+
createVNode("code", null, "album.md"),
|
|
1602
|
+
createTextVNode(" 代表 "),
|
|
1603
|
+
createVNode("code", null, "layout: album"),
|
|
1604
|
+
createTextVNode("。")
|
|
1605
|
+
])
|
|
1606
|
+
]),
|
|
1607
|
+
createVNode("div", { lang: "en" }, [
|
|
1608
|
+
createVNode("ul", null, [
|
|
1609
|
+
createVNode("li", null, [
|
|
1610
|
+
createVNode("code", null, "layout"),
|
|
1611
|
+
createTextVNode(": Default is "),
|
|
1612
|
+
createVNode("code", null, "post")
|
|
1613
|
+
])
|
|
1614
|
+
]),
|
|
1615
|
+
createVNode("p", null, [
|
|
1616
|
+
createTextVNode("Create a new file "),
|
|
1617
|
+
createVNode("code", null, "xxx.md"),
|
|
1618
|
+
createTextVNode(", where "),
|
|
1619
|
+
createVNode("code", null, "xxx"),
|
|
1620
|
+
createTextVNode(" is your layout name. For example, "),
|
|
1621
|
+
createVNode("code", null, "album.md"),
|
|
1622
|
+
createTextVNode(" represents "),
|
|
1623
|
+
createVNode("code", null, "layout: album"),
|
|
1624
|
+
createTextVNode(".")
|
|
1625
|
+
])
|
|
1626
|
+
]),
|
|
1627
|
+
createVNode("div", { class: "language-bash" }, [
|
|
1628
|
+
createVNode("button", {
|
|
1629
|
+
title: "Copy Code",
|
|
1630
|
+
class: "copy"
|
|
1631
|
+
}),
|
|
1632
|
+
createVNode("span", { class: "lang" }, "bash"),
|
|
1633
|
+
createVNode("pre", { class: "shiki github-dark vp-code-dark" }, [
|
|
1634
|
+
createVNode("code", null, [
|
|
1635
|
+
createVNode("span", { class: "line" }, [
|
|
1636
|
+
createVNode("span", { style: { "color": "#B392F0" } }, "valaxy"),
|
|
1637
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, " "),
|
|
1638
|
+
createVNode("span", { style: { "color": "#9ECBFF" } }, "new"),
|
|
1639
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, " "),
|
|
1640
|
+
createVNode("span", { style: { "color": "#9ECBFF" } }, "my-young"),
|
|
1641
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, " "),
|
|
1642
|
+
createVNode("span", { style: { "color": "#79B8FF" } }, "-l"),
|
|
1643
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, " "),
|
|
1644
|
+
createVNode("span", { style: { "color": "#9ECBFF" } }, "album")
|
|
1645
|
+
])
|
|
1646
|
+
])
|
|
1647
|
+
]),
|
|
1648
|
+
createVNode("pre", { class: "shiki github-light vp-code-light" }, [
|
|
1649
|
+
createVNode("code", null, [
|
|
1650
|
+
createVNode("span", { class: "line" }, [
|
|
1651
|
+
createVNode("span", { style: { "color": "#6F42C1" } }, "valaxy"),
|
|
1652
|
+
createVNode("span", { style: { "color": "#24292E" } }, " "),
|
|
1653
|
+
createVNode("span", { style: { "color": "#032F62" } }, "new"),
|
|
1654
|
+
createVNode("span", { style: { "color": "#24292E" } }, " "),
|
|
1655
|
+
createVNode("span", { style: { "color": "#032F62" } }, "my-young"),
|
|
1656
|
+
createVNode("span", { style: { "color": "#24292E" } }, " "),
|
|
1657
|
+
createVNode("span", { style: { "color": "#005CC5" } }, "-l"),
|
|
1658
|
+
createVNode("span", { style: { "color": "#24292E" } }, " "),
|
|
1659
|
+
createVNode("span", { style: { "color": "#032F62" } }, "album")
|
|
1660
|
+
])
|
|
1661
|
+
])
|
|
1662
|
+
])
|
|
1663
|
+
]),
|
|
1664
|
+
createVNode("h2", {
|
|
1665
|
+
lang: "zh-CN",
|
|
1666
|
+
id: "其他",
|
|
1667
|
+
tabindex: "-1"
|
|
1668
|
+
}, [
|
|
1669
|
+
createTextVNode("其他 "),
|
|
1670
|
+
createVNode(_component_AppLink, {
|
|
1671
|
+
class: "header-anchor",
|
|
1672
|
+
href: "#其他",
|
|
1673
|
+
"aria-label": 'Permalink to "其他 {lang="zh-CN"}"'
|
|
1674
|
+
}, {
|
|
1675
|
+
default: withCtx(() => [
|
|
1676
|
+
createTextVNode("")
|
|
1677
|
+
]),
|
|
1678
|
+
_: 1
|
|
1679
|
+
/* STABLE */
|
|
1680
|
+
})
|
|
1681
|
+
]),
|
|
1682
|
+
createVNode("h2", {
|
|
1683
|
+
lang: "en",
|
|
1684
|
+
id: "others",
|
|
1685
|
+
tabindex: "-1"
|
|
1686
|
+
}, [
|
|
1687
|
+
createTextVNode("Others "),
|
|
1688
|
+
createVNode(_component_AppLink, {
|
|
1689
|
+
class: "header-anchor",
|
|
1690
|
+
href: "#others",
|
|
1691
|
+
"aria-label": 'Permalink to "Others {lang="en"}"'
|
|
1692
|
+
}, {
|
|
1693
|
+
default: withCtx(() => [
|
|
1694
|
+
createTextVNode("")
|
|
1695
|
+
]),
|
|
1696
|
+
_: 1
|
|
1697
|
+
/* STABLE */
|
|
1698
|
+
})
|
|
1699
|
+
]),
|
|
1700
|
+
createVNode("div", { lang: "zh-CN" }, [
|
|
1701
|
+
createVNode("ul", null, [
|
|
1702
|
+
createVNode("li", null, [
|
|
1703
|
+
createVNode(_component_AppLink, { href: "/guide/custom/styles" }, {
|
|
1704
|
+
default: withCtx(() => [
|
|
1705
|
+
createTextVNode("自定义样式 | Valaxy")
|
|
1706
|
+
]),
|
|
1707
|
+
_: 1
|
|
1708
|
+
/* STABLE */
|
|
1709
|
+
})
|
|
1710
|
+
])
|
|
1711
|
+
])
|
|
1712
|
+
]),
|
|
1713
|
+
createVNode("div", { lang: "en" }, [
|
|
1714
|
+
createVNode("ul", null, [
|
|
1715
|
+
createVNode("li", null, [
|
|
1716
|
+
createVNode(_component_AppLink, { href: "/guide/custom/styles" }, {
|
|
1717
|
+
default: withCtx(() => [
|
|
1718
|
+
createTextVNode("Custom Styles | Valaxy")
|
|
1719
|
+
]),
|
|
1720
|
+
_: 1
|
|
1721
|
+
/* STABLE */
|
|
1722
|
+
})
|
|
1723
|
+
])
|
|
1724
|
+
])
|
|
1725
|
+
])
|
|
1726
|
+
];
|
|
1727
|
+
}
|
|
1728
|
+
}),
|
|
1729
|
+
"main-header": withCtx((_, _push2, _parent2, _scopeId) => {
|
|
1730
|
+
if (_push2) {
|
|
1731
|
+
ssrRenderSlot(_ctx.$slots, "main-header", {}, null, _push2, _parent2, _scopeId);
|
|
1732
|
+
} else {
|
|
1733
|
+
return [
|
|
1734
|
+
renderSlot(_ctx.$slots, "main-header")
|
|
1735
|
+
];
|
|
1736
|
+
}
|
|
1737
|
+
}),
|
|
1738
|
+
"main-header-after": withCtx((_, _push2, _parent2, _scopeId) => {
|
|
1739
|
+
if (_push2) {
|
|
1740
|
+
ssrRenderSlot(_ctx.$slots, "main-header-after", {}, null, _push2, _parent2, _scopeId);
|
|
1741
|
+
} else {
|
|
1742
|
+
return [
|
|
1743
|
+
renderSlot(_ctx.$slots, "main-header-after")
|
|
1744
|
+
];
|
|
1745
|
+
}
|
|
1746
|
+
}),
|
|
1747
|
+
"main-nav": withCtx((_, _push2, _parent2, _scopeId) => {
|
|
1748
|
+
if (_push2) {
|
|
1749
|
+
ssrRenderSlot(_ctx.$slots, "main-nav", {}, null, _push2, _parent2, _scopeId);
|
|
1750
|
+
} else {
|
|
1751
|
+
return [
|
|
1752
|
+
renderSlot(_ctx.$slots, "main-nav")
|
|
1753
|
+
];
|
|
1754
|
+
}
|
|
1755
|
+
}),
|
|
1756
|
+
"main-content": withCtx((_, _push2, _parent2, _scopeId) => {
|
|
1757
|
+
if (_push2) {
|
|
1758
|
+
ssrRenderSlot(_ctx.$slots, "main-content", {}, null, _push2, _parent2, _scopeId);
|
|
1759
|
+
} else {
|
|
1760
|
+
return [
|
|
1761
|
+
renderSlot(_ctx.$slots, "main-content")
|
|
1762
|
+
];
|
|
1763
|
+
}
|
|
1764
|
+
}),
|
|
1765
|
+
"main-content-after": withCtx((_, _push2, _parent2, _scopeId) => {
|
|
1766
|
+
if (_push2) {
|
|
1767
|
+
ssrRenderSlot(_ctx.$slots, "main-content-after", {}, null, _push2, _parent2, _scopeId);
|
|
1768
|
+
} else {
|
|
1769
|
+
return [
|
|
1770
|
+
renderSlot(_ctx.$slots, "main-content-after")
|
|
1771
|
+
];
|
|
1772
|
+
}
|
|
1773
|
+
}),
|
|
1774
|
+
"main-nav-before": withCtx((_, _push2, _parent2, _scopeId) => {
|
|
1775
|
+
if (_push2) {
|
|
1776
|
+
ssrRenderSlot(_ctx.$slots, "main-nav-before", {}, null, _push2, _parent2, _scopeId);
|
|
1777
|
+
} else {
|
|
1778
|
+
return [
|
|
1779
|
+
renderSlot(_ctx.$slots, "main-nav-before")
|
|
1780
|
+
];
|
|
1781
|
+
}
|
|
1782
|
+
}),
|
|
1783
|
+
"main-nav-after": withCtx((_, _push2, _parent2, _scopeId) => {
|
|
1784
|
+
if (_push2) {
|
|
1785
|
+
ssrRenderSlot(_ctx.$slots, "main-nav-after", {}, null, _push2, _parent2, _scopeId);
|
|
1786
|
+
} else {
|
|
1787
|
+
return [
|
|
1788
|
+
renderSlot(_ctx.$slots, "main-nav-after")
|
|
1789
|
+
];
|
|
1790
|
+
}
|
|
1791
|
+
}),
|
|
1792
|
+
comment: withCtx((_, _push2, _parent2, _scopeId) => {
|
|
1793
|
+
if (_push2) {
|
|
1794
|
+
ssrRenderSlot(_ctx.$slots, "comment", {}, null, _push2, _parent2, _scopeId);
|
|
1795
|
+
} else {
|
|
1796
|
+
return [
|
|
1797
|
+
renderSlot(_ctx.$slots, "comment")
|
|
1798
|
+
];
|
|
1799
|
+
}
|
|
1800
|
+
}),
|
|
1801
|
+
footer: withCtx((_, _push2, _parent2, _scopeId) => {
|
|
1802
|
+
if (_push2) {
|
|
1803
|
+
ssrRenderSlot(_ctx.$slots, "footer", {}, null, _push2, _parent2, _scopeId);
|
|
1804
|
+
} else {
|
|
1805
|
+
return [
|
|
1806
|
+
renderSlot(_ctx.$slots, "footer")
|
|
1807
|
+
];
|
|
1808
|
+
}
|
|
1809
|
+
}),
|
|
1810
|
+
aside: withCtx((_, _push2, _parent2, _scopeId) => {
|
|
1811
|
+
if (_push2) {
|
|
1812
|
+
ssrRenderSlot(_ctx.$slots, "aside", {}, null, _push2, _parent2, _scopeId);
|
|
1813
|
+
} else {
|
|
1814
|
+
return [
|
|
1815
|
+
renderSlot(_ctx.$slots, "aside")
|
|
1816
|
+
];
|
|
1817
|
+
}
|
|
1818
|
+
}),
|
|
1819
|
+
"aside-custom": withCtx((_, _push2, _parent2, _scopeId) => {
|
|
1820
|
+
if (_push2) {
|
|
1821
|
+
ssrRenderSlot(_ctx.$slots, "aside-custom", {}, null, _push2, _parent2, _scopeId);
|
|
1822
|
+
} else {
|
|
1823
|
+
return [
|
|
1824
|
+
renderSlot(_ctx.$slots, "aside-custom")
|
|
1825
|
+
];
|
|
1826
|
+
}
|
|
1827
|
+
}),
|
|
1828
|
+
default: withCtx((_, _push2, _parent2, _scopeId) => {
|
|
1829
|
+
if (_push2) {
|
|
1830
|
+
ssrRenderSlot(_ctx.$slots, "default", {}, null, _push2, _parent2, _scopeId);
|
|
1831
|
+
} else {
|
|
1832
|
+
return [
|
|
1833
|
+
renderSlot(_ctx.$slots, "default")
|
|
1834
|
+
];
|
|
1835
|
+
}
|
|
1836
|
+
}),
|
|
1837
|
+
_: 3
|
|
1838
|
+
/* FORWARDED */
|
|
1839
|
+
}, _parent));
|
|
1840
|
+
}
|
|
1841
|
+
const _sfc_setup = _sfc_main.setup;
|
|
1842
|
+
_sfc_main.setup = (props, ctx) => {
|
|
1843
|
+
const ssrContext = useSSRContext();
|
|
1844
|
+
(ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("../../../docs/pages/guide/custom/extend.md");
|
|
1845
|
+
return _sfc_setup ? _sfc_setup(props, ctx) : void 0;
|
|
1846
|
+
};
|
|
1847
|
+
const extend = /* @__PURE__ */ _export_sfc(_sfc_main, [["ssrRender", _sfc_ssrRender]]);
|
|
1848
|
+
export {
|
|
1849
|
+
__pageData,
|
|
1850
|
+
extend as default
|
|
1851
|
+
};
|