pengzhanbo 0fd6cac574
refactor(theme): improve types and flat config (#524)
* refactor(theme): improve types
2025-03-16 02:29:30 +08:00

15 lines
427 B
TypeScript

import { defineClientConfig } from 'vuepress/client'
import Contributors from './themes/components/Contributors.vue'
import Demos from './themes/components/Demos.vue'
import { setupThemeColors } from './themes/composables/theme-colors.js'
export default defineClientConfig({
enhance({ app }) {
app.component('Demos', Demos)
app.component('Contributors', Contributors)
},
setup() {
setupThemeColors()
},
})