mirror of
https://github.com/fmhy/edit.git
synced 2025-07-29 23:32:17 +10:00
23 lines
624 B
TypeScript
23 lines
624 B
TypeScript
import type { Theme } from 'vitepress'
|
|
import DefaultTheme from 'vitepress/theme'
|
|
import Layout from './Layout.vue'
|
|
import Post from './PostLayout.vue'
|
|
import { loadProgress } from './composables/nprogress'
|
|
import './style.css'
|
|
import 'uno.css'
|
|
import { createPlausible } from './composables/plausible'
|
|
|
|
export default {
|
|
extends: DefaultTheme,
|
|
Layout,
|
|
enhanceApp({ router, app }) {
|
|
app.component('Post', Post)
|
|
loadProgress(router)
|
|
app.use(
|
|
createPlausible({
|
|
apiHost: `https://${process.env.ANALYTICS_URL}`,
|
|
domain: 'https://web-24.fmhy.pages.dev'
|
|
})
|
|
)
|
|
}
|
|
} satisfies Theme
|