chore: analytics
This commit is contained in:
@@ -8,7 +8,6 @@ import { createWriteStream } from 'node:fs'
|
|||||||
import { resolve } from 'node:path'
|
import { resolve } from 'node:path'
|
||||||
import { SitemapStream } from 'sitemap'
|
import { SitemapStream } from 'sitemap'
|
||||||
import { fileURLToPath, URL } from 'node:url'
|
import { fileURLToPath, URL } from 'node:url'
|
||||||
import { inject } from '@vercel/analytics';
|
|
||||||
|
|
||||||
const links = []
|
const links = []
|
||||||
|
|
||||||
@@ -168,7 +167,6 @@ export default withMermaid({
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
buildEnd: async ({ outDir }) => {
|
buildEnd: async ({ outDir }) => {
|
||||||
inject()
|
|
||||||
const sitemap = new SitemapStream({
|
const sitemap = new SitemapStream({
|
||||||
hostname: 'https://hdu-cs.wiki/'
|
hostname: 'https://hdu-cs.wiki/'
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
// https://vitepress.dev/guide/custom-theme
|
// https://vitepress.dev/guide/custom-theme
|
||||||
import { h, watch } from 'vue'
|
import { h, watch } from 'vue'
|
||||||
|
import { inject } from '@vercel/analytics';
|
||||||
// import Theme from 'vitepress/theme'
|
// import Theme from 'vitepress/theme'
|
||||||
import DefaultTheme from 'vitepress/theme-without-fonts'
|
import DefaultTheme from 'vitepress/theme-without-fonts'
|
||||||
import Download from '../../components/Download.vue'
|
import Download from '../../components/Download.vue'
|
||||||
@@ -10,6 +11,7 @@ import './rainbow.css'
|
|||||||
|
|
||||||
let homePageStyle = undefined
|
let homePageStyle = undefined
|
||||||
|
|
||||||
|
inject()
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
...DefaultTheme,
|
...DefaultTheme,
|
||||||
|
|||||||
Reference in New Issue
Block a user