diff --git a/.vitepress/config/shared.ts b/.vitepress/config/shared.ts index 3f21f23..44e1dfb 100644 --- a/.vitepress/config/shared.ts +++ b/.vitepress/config/shared.ts @@ -1,6 +1,7 @@ import { defineConfigWithTheme } from 'vitepress' import markdownTimeline from "vitepress-markdown-timeline" import { tabsMarkdownPlugin } from 'vitepress-plugin-tabs' +import UnoCSS from 'unocss/vite' export const shared = defineConfigWithTheme({ title: "ALT Mobile Wiki", @@ -8,12 +9,16 @@ export const shared = defineConfigWithTheme({ base: '/ALTMobileWiki/', srcDir: './docs', vite: { + plugins: [ + UnoCSS() + ], optimizeDeps: { exclude: ['@nolebase/vitepress-plugin-enhanced-readabilities/client'] }, ssr: { noExternal: [ '@nolebase/vitepress-plugin-enhanced-readabilities', + '@nolebase/ui' ] } }, diff --git a/.vitepress/theme/components/AMWAsideMetaKeyword.vue b/.vitepress/theme/components/AMWAsideMetaKeyword.vue index 8d2dfd0..d3b1953 100644 --- a/.vitepress/theme/components/AMWAsideMetaKeyword.vue +++ b/.vitepress/theme/components/AMWAsideMetaKeyword.vue @@ -4,7 +4,7 @@ export interface Keywords { type: string } -const props = defineProps<{ +defineProps<{ keywords: Keywords[] }>(); diff --git a/.vitepress/theme/components/AMWAsideMetaLink.vue b/.vitepress/theme/components/AMWAsideMetaLink.vue index 4fed1ff..540dcca 100644 --- a/.vitepress/theme/components/AMWAsideMetaLink.vue +++ b/.vitepress/theme/components/AMWAsideMetaLink.vue @@ -8,7 +8,7 @@ export interface Links { style: string; } -const props = defineProps<{ +defineProps<{ links: Links[] }>(); diff --git a/.vitepress/theme/components/AMWAsideMetaList.vue b/.vitepress/theme/components/AMWAsideMetaList.vue index a9d31ea..4c17037 100644 --- a/.vitepress/theme/components/AMWAsideMetaList.vue +++ b/.vitepress/theme/components/AMWAsideMetaList.vue @@ -8,7 +8,7 @@ export interface Lists { link: string; } -const props = defineProps<{ +defineProps<{ lists: Lists[] }>(); diff --git a/.vitepress/theme/components/AMWContribution.vue b/.vitepress/theme/components/AMWContribution.vue index c2c1a92..4f04943 100644 --- a/.vitepress/theme/components/AMWContribution.vue +++ b/.vitepress/theme/components/AMWContribution.vue @@ -6,7 +6,7 @@ import { useData } from 'vitepress' const { frontmatter } = useData(); -const { members, size } = defineProps({ +const { members } = defineProps({ size: { type: String, default: 'medium', diff --git a/.vitepress/theme/components/AMWDocsAsideMeta.vue b/.vitepress/theme/components/AMWDocsAsideMeta.vue index f01ad86..1d919d9 100644 --- a/.vitepress/theme/components/AMWDocsAsideMeta.vue +++ b/.vitepress/theme/components/AMWDocsAsideMeta.vue @@ -1,6 +1,6 @@