@maple-design/cli-vue 0.0.0-stage → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +305 -2
- package/README.zh-CN.md +305 -0
- package/bin/cli.mjs +5 -0
- package/client.d.ts +1 -0
- package/client.js +1 -0
- package/lib/client/appType.d.ts +4 -0
- package/lib/client/appType.js +7 -0
- package/lib/client/index.d.ts +29 -0
- package/lib/client/index.js +170 -0
- package/lib/client/language.d.ts +11 -0
- package/lib/client/language.js +52 -0
- package/lib/client/theme-state.d.ts +3 -0
- package/lib/client/theme-state.js +6 -0
- package/lib/node/bin.d.ts +2 -0
- package/lib/node/bin.js +154 -0
- package/lib/node/commands/build.d.ts +1 -0
- package/lib/node/commands/build.js +15 -0
- package/lib/node/commands/checklist.d.ts +6 -0
- package/lib/node/commands/checklist.js +59 -0
- package/lib/node/commands/compile.d.ts +3 -0
- package/lib/node/commands/compile.js +41 -0
- package/lib/node/commands/create.d.ts +8 -0
- package/lib/node/commands/create.js +91 -0
- package/lib/node/commands/dev.d.ts +6 -0
- package/lib/node/commands/dev.js +58 -0
- package/lib/node/commands/extension.d.ts +3 -0
- package/lib/node/commands/extension.js +5 -0
- package/lib/node/commands/gen.d.ts +24 -0
- package/lib/node/commands/gen.js +91 -0
- package/lib/node/commands/icons.d.ts +4 -0
- package/lib/node/commands/icons.js +15 -0
- package/lib/node/commands/preview.d.ts +4 -0
- package/lib/node/commands/preview.js +18 -0
- package/lib/node/commands/styleVars.d.ts +1 -0
- package/lib/node/commands/styleVars.js +6 -0
- package/lib/node/commands/test.d.ts +7 -0
- package/lib/node/commands/test.js +16 -0
- package/lib/node/commands/vite.d.ts +2 -0
- package/lib/node/commands/vite.js +14 -0
- package/lib/node/compiler/compileModule.d.ts +4 -0
- package/lib/node/compiler/compileModule.js +78 -0
- package/lib/node/compiler/compileSFC.d.ts +6 -0
- package/lib/node/compiler/compileSFC.js +119 -0
- package/lib/node/compiler/compileScript.d.ts +27 -0
- package/lib/node/compiler/compileScript.js +221 -0
- package/lib/node/compiler/compileSiteEntry.d.ts +19 -0
- package/lib/node/compiler/compileSiteEntry.js +164 -0
- package/lib/node/compiler/compileStyle.d.ts +14 -0
- package/lib/node/compiler/compileStyle.js +55 -0
- package/lib/node/compiler/compileStyleVars.d.ts +3 -0
- package/lib/node/compiler/compileStyleVars.js +46 -0
- package/lib/node/compiler/compileTemplateHighlight.d.ts +18 -0
- package/lib/node/compiler/compileTemplateHighlight.js +133 -0
- package/lib/node/compiler/compileTypes.d.ts +2 -0
- package/lib/node/compiler/compileTypes.js +58 -0
- package/lib/node/compiler/generateLibraryEntry.d.ts +3 -0
- package/lib/node/compiler/generateLibraryEntry.js +152 -0
- package/lib/node/compiler/siteRoutes.d.ts +4 -0
- package/lib/node/compiler/siteRoutes.js +9 -0
- package/lib/node/config/maple.config.d.ts +215 -0
- package/lib/node/config/maple.config.js +32 -0
- package/lib/node/config/maple.default.config.d.ts +2 -0
- package/lib/node/config/maple.default.config.js +386 -0
- package/lib/node/config/site-resolver.d.ts +25 -0
- package/lib/node/config/site-resolver.js +138 -0
- package/lib/node/config/vite.config.d.ts +28 -0
- package/lib/node/config/vite.config.js +209 -0
- package/lib/node/config/vitest.config.d.ts +2 -0
- package/lib/node/config/vitest.config.js +54 -0
- package/lib/node/config/vitest.setup.d.ts +1 -0
- package/lib/node/config/vitest.setup.js +8 -0
- package/lib/node/index.d.ts +13 -0
- package/lib/node/index.js +13 -0
- package/lib/node/release/index.d.ts +20 -0
- package/lib/node/release/index.js +147 -0
- package/lib/node/shared/constant.d.ts +47 -0
- package/lib/node/shared/constant.js +53 -0
- package/lib/node/shared/fsUtils.d.ts +18 -0
- package/lib/node/shared/fsUtils.js +57 -0
- package/lib/node/shared/logger.d.ts +8 -0
- package/lib/node/shared/logger.js +18 -0
- package/lib/node/shared/serial-task.d.ts +2 -0
- package/lib/node/shared/serial-task.js +9 -0
- package/package.json +111 -3
- package/site/documentation-sections.spec.ts +45 -0
- package/site/documentation-sections.ts +48 -0
- package/site/index.html +89 -0
- package/site/mobile/App.vue +437 -0
- package/site/mobile/AppHome.vue +154 -0
- package/site/mobile/main.ts +99 -0
- package/site/mobile/route-sync.spec.ts +34 -0
- package/site/mobile/route-sync.ts +10 -0
- package/site/mobile.html +70 -0
- package/site/module.d.ts +5 -0
- package/site/pc/App.vue +44 -0
- package/site/pc/Layout.vue +641 -0
- package/site/pc/components/AppAd.vue +117 -0
- package/site/pc/components/AppHeader.vue +459 -0
- package/site/pc/components/AppMobile.spec.ts +204 -0
- package/site/pc/components/AppMobile.vue +201 -0
- package/site/pc/components/AppOutline.spec.ts +89 -0
- package/site/pc/components/AppOutline.vue +161 -0
- package/site/pc/components/AppSidebar.vue +144 -0
- package/site/pc/components/code-example/CodeExample.spec.ts +36 -0
- package/site/pc/components/code-example/CodeExample.vue +164 -0
- package/site/pc/components/code-example/codeExample.less +88 -0
- package/site/pc/components/code-example/index.ts +10 -0
- package/site/pc/components/demo-preview/DemoPreview.vue +92 -0
- package/site/pc/components/demo-preview/index.ts +8 -0
- package/site/pc/components/mobile-preview-url.ts +17 -0
- package/site/pc/components/preview-section.spec.ts +24 -0
- package/site/pc/components/preview-section.ts +23 -0
- package/site/pc/main.ts +108 -0
- package/site/pc/pages/index/index.vue +421 -0
- package/site/pc/pages/index/locale/en-US.ts +1 -0
- package/site/pc/pages/index/locale/zh-CN.ts +1 -0
- package/site/pc/responsive-layout.spec.ts +40 -0
- package/site/pc/route-state.spec.ts +34 -0
- package/site/pc/route-state.ts +25 -0
- package/site/pc/scroll-hash.spec.ts +49 -0
- package/site/pc/scroll-hash.ts +25 -0
- package/site/route-recovery.spec.ts +51 -0
- package/site/route-recovery.ts +38 -0
- package/site/tsconfig.json +16 -0
- package/site/types.ts +6 -0
- package/site/utils.ts +45 -0
- package/template/create/[ComponentName].tsx.ejs +16 -0
- package/template/create/[ComponentName].vue.ejs +21 -0
- package/template/create/[componentName].d.ts.ejs +13 -0
- package/template/create/__tests__/index.spec.js.ejs +10 -0
- package/template/create/docs/en-US.md +0 -0
- package/template/create/docs/zh-CN.md +0 -0
- package/template/create/example/index.vue.ejs +17 -0
- package/template/create/example/locale/_index.ts +17 -0
- package/template/create/example/locale/en-US.ts +3 -0
- package/template/create/example/locale/index.ts +24 -0
- package/template/create/example/locale/zh-CN.ts +3 -0
- package/template/create/index.ts.ejs +12 -0
- package/template/create/props.ts +1 -0
- package/template/create/style/[componentName].less.ejs +5 -0
- package/template/create/style/index.less.ejs +1 -0
- package/template/create/style/index.ts.ejs +1 -0
- package/template/generators/base/.browserslistrc +2 -0
- package/template/generators/base/.prettierignore +14 -0
- package/template/generators/base/README.md +90 -0
- package/template/generators/base/_gitignore +19 -0
- package/template/generators/base/eslint.config.js +15 -0
- package/template/generators/base/package.json +97 -0
- package/template/generators/base/prettier.config.js +3 -0
- package/template/generators/base/public/logo.svg +30 -0
- package/template/generators/base/shims/shims-md.d.ts +4 -0
- package/template/generators/base/shims/shims-vue.d.ts +6 -0
- package/template/generators/base/tsconfig.declaration.json +21 -0
- package/template/generators/base/tsconfig.json +28 -0
- package/template/generators/base/ui-build.config.mjs +16 -0
- package/template/generators/config/default/base/docs/home.zh-CN.md +3 -0
- package/template/generators/config/default/base/maple.config.mjs +49 -0
- package/template/generators/config/default/sfc/src/button/Button.vue +34 -0
- package/template/generators/config/default/sfc/src/button/__tests__/index.spec.js +8 -0
- package/template/generators/config/default/sfc/src/button/docs/zh-CN.md +39 -0
- package/template/generators/config/default/sfc/src/button/example/BasicUse.vue +7 -0
- package/template/generators/config/default/sfc/src/button/example/ModifyColor.vue +7 -0
- package/template/generators/config/default/sfc/src/button/example/index.vue +12 -0
- package/template/generators/config/default/sfc/src/button/index.ts +8 -0
- package/template/generators/config/default/sfc/src/button/style/button.less +14 -0
- package/template/generators/config/default/sfc/src/button/style/index.less +1 -0
- package/template/generators/config/default/sfc/src/button/style/index.ts +1 -0
- package/template/generators/config/default/sfc/src/utils/components.ts +20 -0
- package/template/generators/config/default/tsx/src/button/Button.tsx +30 -0
- package/template/generators/config/default/tsx/src/button/__tests__/index.spec.js +8 -0
- package/template/generators/config/default/tsx/src/button/docs/zh-CN.md +39 -0
- package/template/generators/config/default/tsx/src/button/example/BasicUse.vue +7 -0
- package/template/generators/config/default/tsx/src/button/example/ModifyColor.vue +7 -0
- package/template/generators/config/default/tsx/src/button/example/index.vue +12 -0
- package/template/generators/config/default/tsx/src/button/index.ts +8 -0
- package/template/generators/config/default/tsx/src/button/style/button.less +14 -0
- package/template/generators/config/default/tsx/src/button/style/index.less +1 -0
- package/template/generators/config/default/tsx/src/button/style/index.ts +1 -0
- package/template/generators/config/default/tsx/src/utils/components.ts +20 -0
- package/template/generators/config/i18n/base/docs/home.en-US.md +3 -0
- package/template/generators/config/i18n/base/docs/home.zh-CN.md +3 -0
- package/template/generators/config/i18n/base/maple.config.mjs +51 -0
- package/template/generators/config/i18n/sfc/src/button/Button.vue +38 -0
- package/template/generators/config/i18n/sfc/src/button/__tests__/index.spec.js +8 -0
- package/template/generators/config/i18n/sfc/src/button/docs/en-US.md +39 -0
- package/template/generators/config/i18n/sfc/src/button/docs/zh-CN.md +39 -0
- package/template/generators/config/i18n/sfc/src/button/example/BasicUse.vue +11 -0
- package/template/generators/config/i18n/sfc/src/button/example/ModifyColor.vue +11 -0
- package/template/generators/config/i18n/sfc/src/button/example/index.vue +15 -0
- package/template/generators/config/i18n/sfc/src/button/example/locale/en-US.ts +5 -0
- package/template/generators/config/i18n/sfc/src/button/example/locale/index.ts +23 -0
- package/template/generators/config/i18n/sfc/src/button/example/locale/zh-CN.ts +5 -0
- package/template/generators/config/i18n/sfc/src/button/index.ts +8 -0
- package/template/generators/config/i18n/sfc/src/button/style/button.less +14 -0
- package/template/generators/config/i18n/sfc/src/button/style/index.less +1 -0
- package/template/generators/config/i18n/sfc/src/button/style/index.ts +1 -0
- package/template/generators/config/i18n/sfc/src/locale/__tests__/index.spec.js +52 -0
- package/template/generators/config/i18n/sfc/src/locale/docs/en-US.md +26 -0
- package/template/generators/config/i18n/sfc/src/locale/docs/zh-CN.md +25 -0
- package/template/generators/config/i18n/sfc/src/locale/en-US.d.ts +5 -0
- package/template/generators/config/i18n/sfc/src/locale/en-US.ts +7 -0
- package/template/generators/config/i18n/sfc/src/locale/index.ts +82 -0
- package/template/generators/config/i18n/sfc/src/locale/zh-CN.d.ts +5 -0
- package/template/generators/config/i18n/sfc/src/locale/zh-CN.ts +7 -0
- package/template/generators/config/i18n/sfc/src/utils/components.ts +20 -0
- package/template/generators/config/i18n/tsx/src/button/Button.tsx +35 -0
- package/template/generators/config/i18n/tsx/src/button/__tests__/index.spec.js +8 -0
- package/template/generators/config/i18n/tsx/src/button/docs/en-US.md +39 -0
- package/template/generators/config/i18n/tsx/src/button/docs/zh-CN.md +39 -0
- package/template/generators/config/i18n/tsx/src/button/example/BasicUse.vue +11 -0
- package/template/generators/config/i18n/tsx/src/button/example/ModifyColor.vue +11 -0
- package/template/generators/config/i18n/tsx/src/button/example/index.vue +15 -0
- package/template/generators/config/i18n/tsx/src/button/example/locale/en-US.ts +5 -0
- package/template/generators/config/i18n/tsx/src/button/example/locale/index.ts +23 -0
- package/template/generators/config/i18n/tsx/src/button/example/locale/zh-CN.ts +5 -0
- package/template/generators/config/i18n/tsx/src/button/index.ts +8 -0
- package/template/generators/config/i18n/tsx/src/button/style/button.less +14 -0
- package/template/generators/config/i18n/tsx/src/button/style/index.less +1 -0
- package/template/generators/config/i18n/tsx/src/button/style/index.ts +1 -0
- package/template/generators/config/i18n/tsx/src/locale/__tests__/index.spec.js +52 -0
- package/template/generators/config/i18n/tsx/src/locale/docs/en-US.md +26 -0
- package/template/generators/config/i18n/tsx/src/locale/docs/zh-CN.md +25 -0
- package/template/generators/config/i18n/tsx/src/locale/en-US.d.ts +5 -0
- package/template/generators/config/i18n/tsx/src/locale/en-US.ts +7 -0
- package/template/generators/config/i18n/tsx/src/locale/index.ts +82 -0
- package/template/generators/config/i18n/tsx/src/locale/zh-CN.d.ts +5 -0
- package/template/generators/config/i18n/tsx/src/locale/zh-CN.ts +7 -0
- package/template/generators/config/i18n/tsx/src/utils/components.ts +20 -0
|
@@ -0,0 +1,437 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div style="position: relative">
|
|
3
|
+
<header class="mobile-page-header">
|
|
4
|
+
<mp-page-header
|
|
5
|
+
class="app-bar mobile-page-header__content"
|
|
6
|
+
:show-back="showBackIcon"
|
|
7
|
+
:title="bigCamelizeComponentName"
|
|
8
|
+
v-on="showBackIcon ? { back } : {}"
|
|
9
|
+
>
|
|
10
|
+
<template #extra>
|
|
11
|
+
<DirectionToggle />
|
|
12
|
+
<mp-button
|
|
13
|
+
v-if="!showBackIcon && github"
|
|
14
|
+
style="margin-left: 2px; margin-right: 6px"
|
|
15
|
+
text
|
|
16
|
+
round
|
|
17
|
+
color="transparent"
|
|
18
|
+
text-color="#fff"
|
|
19
|
+
@click="toGithub"
|
|
20
|
+
>
|
|
21
|
+
<mp-icon class="github" style="margin-top: 1px"><MIconGithub /></mp-icon>
|
|
22
|
+
</mp-button>
|
|
23
|
+
<mp-button
|
|
24
|
+
v-if="themes.length > 1"
|
|
25
|
+
class="theme-button"
|
|
26
|
+
text
|
|
27
|
+
color="transparent"
|
|
28
|
+
text-color="#fff"
|
|
29
|
+
@click.stop="showThemeMenu = true"
|
|
30
|
+
>
|
|
31
|
+
<mp-icon :size="28" class="palette-fill"><MIconPaletteFill /></mp-icon>
|
|
32
|
+
<mp-icon class="arrow-down"><MIconChevronDown /></mp-icon>
|
|
33
|
+
</mp-button>
|
|
34
|
+
<select
|
|
35
|
+
v-if="Object.keys(nonEmptyLanguages).length > 1"
|
|
36
|
+
class="i18n-button"
|
|
37
|
+
:aria-label="language === 'en-US' ? 'Language' : '语言'"
|
|
38
|
+
:value="language"
|
|
39
|
+
@change="changeLanguage(($event.target as HTMLSelectElement).value)"
|
|
40
|
+
style="color: inherit; background: transparent; border: 0; font: inherit; cursor: pointer"
|
|
41
|
+
>
|
|
42
|
+
<option v-for="(value, key) in nonEmptyLanguages" :key="key" :value="key">{{ value }}</option>
|
|
43
|
+
</select>
|
|
44
|
+
</template>
|
|
45
|
+
</mp-page-header>
|
|
46
|
+
</header>
|
|
47
|
+
<mp-space v-if="sections.length > 1" class="mobile-documentation-sections" size="sm" wrap>
|
|
48
|
+
<mp-button
|
|
49
|
+
v-for="section in sections"
|
|
50
|
+
:key="section.id"
|
|
51
|
+
:status="activeSection?.id === section.id ? 'primary' : 'default'"
|
|
52
|
+
:aria-pressed="activeSection?.id === section.id"
|
|
53
|
+
@click="switchSection(section)"
|
|
54
|
+
>{{ section.text[language] }}</mp-button
|
|
55
|
+
>
|
|
56
|
+
</mp-space>
|
|
57
|
+
<div class="router-view__block" :class="{ 'mobile-documentation': isDocumentation }">
|
|
58
|
+
<router-view />
|
|
59
|
+
</div>
|
|
60
|
+
|
|
61
|
+
<transition name="site-menu">
|
|
62
|
+
<div class="theme-settings mp-elevation--3" v-if="showThemeMenu">
|
|
63
|
+
<mp-cell
|
|
64
|
+
v-for="t in themes"
|
|
65
|
+
:key="t.value"
|
|
66
|
+
class="mobile-theme-cell"
|
|
67
|
+
:class="[currentTheme === t.value && 'mobile-theme-cell--active']"
|
|
68
|
+
v-ripple
|
|
69
|
+
@click="toggleTheme(t.value)"
|
|
70
|
+
>
|
|
71
|
+
{{ t[language] }}
|
|
72
|
+
</mp-cell>
|
|
73
|
+
</div>
|
|
74
|
+
</transition>
|
|
75
|
+
</div>
|
|
76
|
+
</template>
|
|
77
|
+
|
|
78
|
+
<script lang="ts">
|
|
79
|
+
import { computed, defineComponent, ref, watch, type ComputedRef, type Ref } from 'vue'
|
|
80
|
+
import config from '@config'
|
|
81
|
+
import {
|
|
82
|
+
getBrowserTheme,
|
|
83
|
+
getMobileIndex,
|
|
84
|
+
persistTheme,
|
|
85
|
+
setTheme,
|
|
86
|
+
watchLang,
|
|
87
|
+
watchTheme,
|
|
88
|
+
type Theme,
|
|
89
|
+
} from '@maple-design/cli-vue/client'
|
|
90
|
+
import {
|
|
91
|
+
IconChevronDown as MIconChevronDown,
|
|
92
|
+
IconGithub as MIconGithub,
|
|
93
|
+
IconPaletteFill as MIconPaletteFill,
|
|
94
|
+
IconTranslate as MIconTranslate,
|
|
95
|
+
} from '@maple-design/icons-vue'
|
|
96
|
+
import { pascalCase } from '@maple-design/shared-vue'
|
|
97
|
+
import { DirectionToggle } from '@sparknest/ui-doc-preview-vue'
|
|
98
|
+
import { useRoute, useRouter } from 'vue-router'
|
|
99
|
+
import { getDocumentationSection, sectionRoute, type DocumentationSection } from '../documentation-sections'
|
|
100
|
+
import { inIframe, isPhone, removeEmpty } from '../utils'
|
|
101
|
+
|
|
102
|
+
export default defineComponent({
|
|
103
|
+
components: { DirectionToggle, MIconGithub, MIconPaletteFill, MIconChevronDown, MIconTranslate },
|
|
104
|
+
setup() {
|
|
105
|
+
const bigCamelizeComponentName: Ref<string> = ref('')
|
|
106
|
+
const route = useRoute()
|
|
107
|
+
const router = useRouter()
|
|
108
|
+
const showBackIcon: Ref<boolean> = ref(false)
|
|
109
|
+
const showThemeMenu: Ref<boolean> = ref(false)
|
|
110
|
+
const language: Ref<string> = ref('')
|
|
111
|
+
const sections = config?.pc?.sections ?? []
|
|
112
|
+
const activeSection = computed(() => getDocumentationSection(route.path, sections, route.query.section))
|
|
113
|
+
const switchSection = (section: DocumentationSection) => {
|
|
114
|
+
if (inIframe()) {
|
|
115
|
+
;(window.parent as any).onMobileRouteChange(
|
|
116
|
+
`/${language.value}/${section.entry}`,
|
|
117
|
+
language.value,
|
|
118
|
+
section.entry,
|
|
119
|
+
'',
|
|
120
|
+
{},
|
|
121
|
+
)
|
|
122
|
+
return
|
|
123
|
+
}
|
|
124
|
+
return router.push(sectionRoute(section, language.value, true))
|
|
125
|
+
}
|
|
126
|
+
const languages: Ref<Record<string, string>> = ref(config?.mobile?.header?.i18n ?? {})
|
|
127
|
+
const themes: Ref<Record<string, any>[]> = ref(config?.mobile?.header?.themes ?? {})
|
|
128
|
+
const nonEmptyLanguages: ComputedRef<Record<string, string>> = computed(() => removeEmpty(languages.value))
|
|
129
|
+
const isDocumentation = computed(() => (config?.mobile?.docs ?? []).includes(route.path.split('/').at(-1) ?? ''))
|
|
130
|
+
const redirect = config?.mobile?.redirect ?? ''
|
|
131
|
+
const github: Ref<string> = ref(config?.mobile?.header?.github ?? '')
|
|
132
|
+
const darkMode: Ref<string> = ref(config?.mobile?.header?.darkMode ?? '')
|
|
133
|
+
const currentTheme = ref(getBrowserTheme('demo'))
|
|
134
|
+
|
|
135
|
+
const changeLanguage = (lang: string) => {
|
|
136
|
+
language.value = lang
|
|
137
|
+
router.push({
|
|
138
|
+
path: route.path.replace(/^\/(?:zh-CN|en-US)(?=\/)/, `/${lang}`),
|
|
139
|
+
query: { ...route.query, language: lang },
|
|
140
|
+
hash: route.hash,
|
|
141
|
+
})
|
|
142
|
+
|
|
143
|
+
if (!isPhone() && inIframe()) {
|
|
144
|
+
;(window.top as any).scrollToMenu(redirect.slice(1))
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
const back = () => {
|
|
149
|
+
const section = activeSection.value
|
|
150
|
+
if (section?.docs && route.path.split('/').at(-1) !== section.entry)
|
|
151
|
+
router.push(sectionRoute(section, language.value))
|
|
152
|
+
else router.push({ path: '/home', query: { section: section?.id ?? 'components', language: language.value } })
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
const toGithub = () => {
|
|
156
|
+
if (inIframe() && !isPhone()) {
|
|
157
|
+
window.top!.open(github.value)
|
|
158
|
+
} else {
|
|
159
|
+
window.location.href = github.value
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
watchLang((newValue) => {
|
|
164
|
+
language.value = newValue
|
|
165
|
+
})
|
|
166
|
+
|
|
167
|
+
watch(
|
|
168
|
+
() => [route.path, language.value] as const,
|
|
169
|
+
([to, lang]) => {
|
|
170
|
+
const docName = to.split('/').at(-1) ?? ''
|
|
171
|
+
const page = isDocumentation.value ? config?.pc?.menu?.find((item: any) => item.doc === docName) : undefined
|
|
172
|
+
bigCamelizeComponentName.value = to === redirect ? '' : (page?.text?.[lang] ?? pascalCase(docName))
|
|
173
|
+
showBackIcon.value = to !== redirect
|
|
174
|
+
},
|
|
175
|
+
{ immediate: true },
|
|
176
|
+
)
|
|
177
|
+
|
|
178
|
+
const setCurrentTheme = (theme: Theme) => {
|
|
179
|
+
currentTheme.value = theme
|
|
180
|
+
setTheme(theme)
|
|
181
|
+
persistTheme(theme, 'demo')
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
const toggleTheme = (value: Theme) => {
|
|
185
|
+
setCurrentTheme(value)
|
|
186
|
+
showThemeMenu.value = false
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
;(window as any).toggleTheme = toggleTheme
|
|
190
|
+
setTheme(currentTheme.value)
|
|
191
|
+
watchTheme((theme, from) => {
|
|
192
|
+
if (from === 'pc' || from === 'playground') {
|
|
193
|
+
setCurrentTheme(theme)
|
|
194
|
+
}
|
|
195
|
+
})
|
|
196
|
+
|
|
197
|
+
document.body.addEventListener('click', () => {
|
|
198
|
+
showThemeMenu.value = false
|
|
199
|
+
})
|
|
200
|
+
|
|
201
|
+
return {
|
|
202
|
+
sections,
|
|
203
|
+
activeSection,
|
|
204
|
+
switchSection,
|
|
205
|
+
isDocumentation,
|
|
206
|
+
bigCamelizeComponentName,
|
|
207
|
+
showBackIcon,
|
|
208
|
+
github,
|
|
209
|
+
languages,
|
|
210
|
+
themes,
|
|
211
|
+
language,
|
|
212
|
+
nonEmptyLanguages,
|
|
213
|
+
currentTheme,
|
|
214
|
+
darkMode,
|
|
215
|
+
toGithub,
|
|
216
|
+
back,
|
|
217
|
+
changeLanguage,
|
|
218
|
+
toggleTheme,
|
|
219
|
+
showThemeMenu,
|
|
220
|
+
}
|
|
221
|
+
},
|
|
222
|
+
})
|
|
223
|
+
</script>
|
|
224
|
+
|
|
225
|
+
<style lang="less">
|
|
226
|
+
.mobile-documentation {
|
|
227
|
+
padding: 16px;
|
|
228
|
+
min-width: 0;
|
|
229
|
+
overflow-wrap: anywhere;
|
|
230
|
+
}
|
|
231
|
+
* {
|
|
232
|
+
-webkit-font-smoothing: antialiased;
|
|
233
|
+
box-sizing: border-box;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
:root {
|
|
237
|
+
--site-mobile-page-header-safe-area-top: constant(safe-area-inset-top);
|
|
238
|
+
--site-mobile-page-header-safe-area-top: env(safe-area-inset-top, 0px);
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
body {
|
|
242
|
+
margin: 0;
|
|
243
|
+
padding: 0;
|
|
244
|
+
min-height: 100vh;
|
|
245
|
+
font-size: 16px;
|
|
246
|
+
font-family: 'Roboto', sans-serif;
|
|
247
|
+
-webkit-tap-highlight-color: transparent;
|
|
248
|
+
background: var(--site-config-color-mobile-body);
|
|
249
|
+
color: var(--site-config-color-text);
|
|
250
|
+
transition:
|
|
251
|
+
background-color 0.25s,
|
|
252
|
+
color 0.25s;
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
::-webkit-scrollbar {
|
|
256
|
+
display: none;
|
|
257
|
+
width: 0;
|
|
258
|
+
background: transparent;
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
.app-type {
|
|
262
|
+
width: 100%;
|
|
263
|
+
padding: 15px 0;
|
|
264
|
+
color: var(--site-config-color-sub-text);
|
|
265
|
+
font-size: 14px;
|
|
266
|
+
min-height: 50px;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
.mobile-page-header {
|
|
270
|
+
position: fixed;
|
|
271
|
+
top: 0;
|
|
272
|
+
left: 0;
|
|
273
|
+
z-index: 99;
|
|
274
|
+
width: 100%;
|
|
275
|
+
padding-top: var(--site-mobile-page-header-safe-area-top);
|
|
276
|
+
font-weight: bold;
|
|
277
|
+
background: var(--site-config-color-app-bar);
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
.site {
|
|
281
|
+
&-menu-enter-from,
|
|
282
|
+
&-menu-leave-to {
|
|
283
|
+
transform: translateY(-10px);
|
|
284
|
+
opacity: 0;
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
&-menu-enter-active,
|
|
288
|
+
&-menu-leave-active {
|
|
289
|
+
transition-property: opacity, transform;
|
|
290
|
+
transition-duration: 0.25s;
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
.settings {
|
|
295
|
+
position: fixed;
|
|
296
|
+
z-index: 200;
|
|
297
|
+
top: calc(48px + var(--site-mobile-page-header-safe-area-top));
|
|
298
|
+
right: 5px;
|
|
299
|
+
background: var(--site-config-color-bar);
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
.theme-settings {
|
|
303
|
+
position: fixed;
|
|
304
|
+
z-index: 200;
|
|
305
|
+
top: calc(48px + var(--site-mobile-page-header-safe-area-top));
|
|
306
|
+
right: 68px;
|
|
307
|
+
background: var(--site-config-color-bar);
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
.router-view__block {
|
|
311
|
+
padding: calc(55px + var(--site-mobile-page-header-safe-area-top)) 15px 15px;
|
|
312
|
+
|
|
313
|
+
> section[data-demo] {
|
|
314
|
+
padding-bottom: 28px;
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
> section[data-demo] + section[data-demo] {
|
|
318
|
+
padding-top: 20px;
|
|
319
|
+
border-top: 1px solid var(--mp-color-border-1);
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
.mobile-demo-group-heading {
|
|
324
|
+
margin: 28px 0 20px;
|
|
325
|
+
padding-bottom: 12px;
|
|
326
|
+
border-bottom: 1px solid var(--mp-color-border-1);
|
|
327
|
+
color: var(--mp-color-text-1);
|
|
328
|
+
font-size: var(--mp-font-size-lg);
|
|
329
|
+
font-weight: 600;
|
|
330
|
+
|
|
331
|
+
&:first-child {
|
|
332
|
+
margin-top: 0;
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
html[lang='en-US'] .mobile-demo-group-heading > [lang='zh-CN'],
|
|
337
|
+
html:not([lang='en-US']) .mobile-demo-group-heading > [lang='en-US'],
|
|
338
|
+
html[lang='en-US'] .mobile-demo-case-heading > [lang='zh-CN'],
|
|
339
|
+
html:not([lang='en-US']) .mobile-demo-case-heading > [lang='en-US'] {
|
|
340
|
+
display: none;
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
.mobile-language-cell {
|
|
344
|
+
color: var(--site-config-color-text) !important;
|
|
345
|
+
background: var(--site-config-color-bar) !important;
|
|
346
|
+
cursor: pointer !important;
|
|
347
|
+
|
|
348
|
+
&--active {
|
|
349
|
+
color: var(--site-config-color-mobile-language-active) !important;
|
|
350
|
+
background: var(--site-config-color-mobile-language-active-background) !important;
|
|
351
|
+
}
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
.mobile-theme-cell {
|
|
355
|
+
color: var(--site-config-color-text) !important;
|
|
356
|
+
background: var(--site-config-color-bar) !important;
|
|
357
|
+
cursor: pointer !important;
|
|
358
|
+
|
|
359
|
+
&--active {
|
|
360
|
+
color: var(--site-config-color-mobile-theme-active) !important;
|
|
361
|
+
background: var(--site-config-color-mobile-theme-active-background) !important;
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
.arrow-left {
|
|
366
|
+
font-size: 28px !important;
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
.github {
|
|
370
|
+
font-size: 28px !important;
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
.i18n {
|
|
374
|
+
font-size: 24px !important;
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
.palette {
|
|
378
|
+
font-size: 24px !important;
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
.arrow-down {
|
|
382
|
+
font-size: 22px !important;
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
.i18n-button {
|
|
386
|
+
padding-right: 6px !important;
|
|
387
|
+
margin-right: 4px;
|
|
388
|
+
padding-left: 12px !important;
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
.theme-button {
|
|
392
|
+
padding-right: 6px !important;
|
|
393
|
+
margin-right: 4px;
|
|
394
|
+
padding-left: 12px !important;
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
.app-bar {
|
|
398
|
+
--mp-page-header-title-color: #fff;
|
|
399
|
+
--mp-page-header-subtitle-color: rgba(255, 255, 255, 0.72);
|
|
400
|
+
--mp-page-header-back-color: #fff;
|
|
401
|
+
|
|
402
|
+
background: var(--site-config-color-app-bar) !important;
|
|
403
|
+
|
|
404
|
+
.mp-page-header {
|
|
405
|
+
min-height: 54px;
|
|
406
|
+
padding: 0 6px;
|
|
407
|
+
|
|
408
|
+
&__main {
|
|
409
|
+
flex: 1;
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
&__back {
|
|
413
|
+
width: 42px;
|
|
414
|
+
height: 54px;
|
|
415
|
+
margin-left: -6px;
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
&__extra {
|
|
419
|
+
display: flex;
|
|
420
|
+
align-items: center;
|
|
421
|
+
height: 54px;
|
|
422
|
+
margin-left: 0;
|
|
423
|
+
}
|
|
424
|
+
}
|
|
425
|
+
}
|
|
426
|
+
</style>
|
|
427
|
+
|
|
428
|
+
<style scoped>
|
|
429
|
+
.mobile-documentation-sections {
|
|
430
|
+
margin-top: calc(55px + var(--site-mobile-page-header-safe-area-top));
|
|
431
|
+
padding: 12px 16px;
|
|
432
|
+
border-bottom: 1px solid var(--site-config-color-border);
|
|
433
|
+
}
|
|
434
|
+
.mobile-documentation-sections + .router-view__block {
|
|
435
|
+
padding-top: 15px;
|
|
436
|
+
}
|
|
437
|
+
</style>
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="maple-logo">
|
|
3
|
+
<h1 class="maple-home__title">
|
|
4
|
+
<img class="maple-home__image" :src="logo" />
|
|
5
|
+
<span>{{ title }}</span>
|
|
6
|
+
</h1>
|
|
7
|
+
<h2 class="maple-home__desc">{{ description[lang] }}</h2>
|
|
8
|
+
</div>
|
|
9
|
+
|
|
10
|
+
<RouterLink v-for="page in documentPages" :key="page.doc" class="maple-home__cell" :to="`/${lang}/${page.doc}`">{{
|
|
11
|
+
page.text[lang]
|
|
12
|
+
}}</RouterLink>
|
|
13
|
+
<div
|
|
14
|
+
class="maple-home__cell"
|
|
15
|
+
:class="{ 'maple-home__cell--child': component.parent }"
|
|
16
|
+
v-for="component in components"
|
|
17
|
+
:key="component.doc"
|
|
18
|
+
v-ripple
|
|
19
|
+
@click="toComponent(component)"
|
|
20
|
+
>
|
|
21
|
+
<span>{{ component.text[lang] }}</span>
|
|
22
|
+
<mp-icon size="14"><MIconChevronRight /></mp-icon>
|
|
23
|
+
</div>
|
|
24
|
+
</template>
|
|
25
|
+
|
|
26
|
+
<script lang="ts">
|
|
27
|
+
import { computed, ref } from 'vue'
|
|
28
|
+
import config from '@config'
|
|
29
|
+
import { watchLang, watchPlatform } from '@maple-design/cli-vue/client'
|
|
30
|
+
import { IconChevronRight as MIconChevronRight } from '@maple-design/icons-vue'
|
|
31
|
+
import { RouterLink, useRoute, useRouter } from 'vue-router'
|
|
32
|
+
import { getDocumentationSection, getSectionMenu } from '../documentation-sections'
|
|
33
|
+
import { inIframe, isPhone, resolveSiteAsset } from '../utils'
|
|
34
|
+
|
|
35
|
+
export default {
|
|
36
|
+
components: { MIconChevronRight, RouterLink },
|
|
37
|
+
name: 'AppHome',
|
|
38
|
+
setup() {
|
|
39
|
+
const title = ref(config?.title ?? '')
|
|
40
|
+
const logo = ref(resolveSiteAsset(config?.logo))
|
|
41
|
+
const description = ref(config?.mobile?.title ?? {})
|
|
42
|
+
const menu = ref(config?.pc?.menu ?? [])
|
|
43
|
+
const route = useRoute()
|
|
44
|
+
const sections = config?.pc?.sections ?? []
|
|
45
|
+
const visible = computed(() =>
|
|
46
|
+
getSectionMenu(menu.value, getDocumentationSection(route.path, sections, route.query.section), sections),
|
|
47
|
+
)
|
|
48
|
+
const components = computed(() => visible.value.filter((item: any) => item.type === 2))
|
|
49
|
+
const documentPages = computed(() =>
|
|
50
|
+
visible.value.filter((item: any) => item.type === 3 && (config?.mobile?.docs ?? []).includes(item.doc)),
|
|
51
|
+
)
|
|
52
|
+
const lang = ref('zh-CN')
|
|
53
|
+
const platform = ref('mobile')
|
|
54
|
+
const router = useRouter()
|
|
55
|
+
|
|
56
|
+
watchLang((newValue) => {
|
|
57
|
+
lang.value = newValue
|
|
58
|
+
})
|
|
59
|
+
|
|
60
|
+
watchPlatform((newValue) => {
|
|
61
|
+
platform.value = newValue
|
|
62
|
+
})
|
|
63
|
+
|
|
64
|
+
const toComponent = (component: any) => {
|
|
65
|
+
router.push({
|
|
66
|
+
path: `/${component.doc}`,
|
|
67
|
+
query: {
|
|
68
|
+
language: lang.value,
|
|
69
|
+
platform: platform.value,
|
|
70
|
+
replace: component.doc,
|
|
71
|
+
},
|
|
72
|
+
})
|
|
73
|
+
|
|
74
|
+
if (!isPhone() && inIframe()) {
|
|
75
|
+
// @ts-ignore
|
|
76
|
+
window.top.scrollToMenu(component.doc)
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
return {
|
|
81
|
+
components,
|
|
82
|
+
documentPages,
|
|
83
|
+
lang,
|
|
84
|
+
toComponent,
|
|
85
|
+
logo,
|
|
86
|
+
title,
|
|
87
|
+
description,
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
}
|
|
91
|
+
</script>
|
|
92
|
+
|
|
93
|
+
<style lang="less">
|
|
94
|
+
.maple-logo {
|
|
95
|
+
padding-top: 30px;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.maple-home__title {
|
|
99
|
+
margin: 0 0 16px;
|
|
100
|
+
font-size: 34px;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.maple-home__title,
|
|
104
|
+
.maple-home__desc {
|
|
105
|
+
padding: 0 12px;
|
|
106
|
+
font-weight: normal;
|
|
107
|
+
line-height: 1;
|
|
108
|
+
user-select: none;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.maple-home__desc {
|
|
112
|
+
color: var(--site-config-color-sub-text);
|
|
113
|
+
font-size: 14px;
|
|
114
|
+
line-height: 22px;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.maple-home__image {
|
|
118
|
+
width: 36px;
|
|
119
|
+
height: 36px;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.maple-home__image,
|
|
123
|
+
.maple-home__title span {
|
|
124
|
+
display: inline-block;
|
|
125
|
+
vertical-align: middle;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.maple-home__title span {
|
|
129
|
+
margin-left: 16px;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.maple-home__cell {
|
|
133
|
+
display: flex;
|
|
134
|
+
align-items: center;
|
|
135
|
+
justify-content: space-between;
|
|
136
|
+
min-height: 40px;
|
|
137
|
+
padding: 10px 12px;
|
|
138
|
+
font-size: 15px;
|
|
139
|
+
cursor: pointer;
|
|
140
|
+
-webkit-tap-highlight-color: transparent;
|
|
141
|
+
transition: all 0.3s;
|
|
142
|
+
color: var(--site-config-color-text);
|
|
143
|
+
|
|
144
|
+
&:hover {
|
|
145
|
+
color: var(--site-config-color-mobile-cell-hover);
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
&--child {
|
|
149
|
+
padding-left: 28px;
|
|
150
|
+
font-size: 14px;
|
|
151
|
+
color: var(--site-config-color-sub-text);
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
</style>
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import { createApp, defineAsyncComponent, h } from 'vue'
|
|
2
|
+
import config from '@config'
|
|
3
|
+
import {
|
|
4
|
+
currentStyleVars,
|
|
5
|
+
currentThemePreset,
|
|
6
|
+
getSavedLanguage,
|
|
7
|
+
normalizeLanguage,
|
|
8
|
+
saveLanguage,
|
|
9
|
+
} from '@maple-design/cli-vue/client'
|
|
10
|
+
import { Locale, ThemeProvider } from '@maple-design/ui-vue'
|
|
11
|
+
import routes from '@mobile-routes'
|
|
12
|
+
import { createRouter, createWebHashHistory } from 'vue-router'
|
|
13
|
+
import { installRouteRecovery } from '../route-recovery'
|
|
14
|
+
import { inIframe, isPhone } from '../utils'
|
|
15
|
+
import App from './App.vue'
|
|
16
|
+
import { getDesktopPath, shouldSyncMobileRoute } from './route-sync'
|
|
17
|
+
import '@maple-design/touch-emulator-vue'
|
|
18
|
+
import '@maple-foundation'
|
|
19
|
+
|
|
20
|
+
const redirect = config?.mobile?.redirect
|
|
21
|
+
const defaultLanguage = getSavedLanguage(normalizeLanguage(config?.defaultLanguage))
|
|
22
|
+
Locale.add('zh-CN', Locale.zhCN)
|
|
23
|
+
Locale.add('en-US', Locale.enUS)
|
|
24
|
+
|
|
25
|
+
redirect &&
|
|
26
|
+
routes.push({
|
|
27
|
+
path: '/:pathMatch(.*)',
|
|
28
|
+
redirect,
|
|
29
|
+
})
|
|
30
|
+
|
|
31
|
+
routes.push({
|
|
32
|
+
path: '/home',
|
|
33
|
+
component: () => import('./AppHome.vue'),
|
|
34
|
+
})
|
|
35
|
+
|
|
36
|
+
const router = createRouter({
|
|
37
|
+
history: createWebHashHistory(),
|
|
38
|
+
scrollBehavior: (to: any, from: any, savedPosition: any) => savedPosition || { left: 0, top: 0 },
|
|
39
|
+
routes,
|
|
40
|
+
})
|
|
41
|
+
|
|
42
|
+
installRouteRecovery(router)
|
|
43
|
+
|
|
44
|
+
router.beforeEach((to: any) => {
|
|
45
|
+
const { path, hash, query } = to
|
|
46
|
+
const language = normalizeLanguage(query.language ?? /^\/(zh-CN|en-US)\//.exec(path)?.[1], defaultLanguage)
|
|
47
|
+
if (query.language !== language) {
|
|
48
|
+
return { path, hash, query: { ...query, language }, replace: true }
|
|
49
|
+
}
|
|
50
|
+
Locale.use(language)
|
|
51
|
+
saveLanguage(language)
|
|
52
|
+
|
|
53
|
+
if (!isPhone() && !inIframe()) {
|
|
54
|
+
window.location.href = `./#${getDesktopPath(path, language)}`
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
// @ts-expect-error Analytics is injected at runtime.
|
|
58
|
+
if (window._hmt) {
|
|
59
|
+
if (to.path) {
|
|
60
|
+
// @ts-expect-error Analytics is injected at runtime.
|
|
61
|
+
window._hmt.push(['_trackPageview', `/#${to.fullPath}`])
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
})
|
|
65
|
+
|
|
66
|
+
router.afterEach((to, from, failure) => {
|
|
67
|
+
// Loading or replacing the iframe is driven by the PC route. Only a later
|
|
68
|
+
// navigation inside the mobile preview should update the parent route.
|
|
69
|
+
if (!shouldSyncMobileRoute(from, failure) || isPhone() || !inIframe()) {
|
|
70
|
+
return
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
try {
|
|
74
|
+
const language = normalizeLanguage(to.query.language, defaultLanguage)
|
|
75
|
+
// @ts-expect-error The PC site registers this iframe callback at runtime.
|
|
76
|
+
window.parent.onMobileRouteChange(to.path, language, to.query.replace, to.hash, to.query)
|
|
77
|
+
} catch (error) {
|
|
78
|
+
console.error(error)
|
|
79
|
+
}
|
|
80
|
+
})
|
|
81
|
+
|
|
82
|
+
createApp({
|
|
83
|
+
render: () =>
|
|
84
|
+
h(
|
|
85
|
+
ThemeProvider,
|
|
86
|
+
{
|
|
87
|
+
theme: currentThemePreset.value,
|
|
88
|
+
styleVars: currentStyleVars.value,
|
|
89
|
+
style: { minHeight: '100vh', background: 'var(--mp-color-body)', color: 'var(--mp-color-text)' },
|
|
90
|
+
},
|
|
91
|
+
() => h(App),
|
|
92
|
+
),
|
|
93
|
+
})
|
|
94
|
+
.use(router)
|
|
95
|
+
.component(
|
|
96
|
+
'MpSiteDemoPreview',
|
|
97
|
+
defineAsyncComponent(() => import('../pc/components/demo-preview/DemoPreview.vue')),
|
|
98
|
+
)
|
|
99
|
+
.mount('#app')
|