chore: 试一下vercel analytics
This commit is contained in:
@@ -8,6 +8,7 @@ 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 = []
|
||||||
|
|
||||||
@@ -167,6 +168,7 @@ 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/'
|
||||||
})
|
})
|
||||||
|
|||||||
11
package-lock.json
generated
11
package-lock.json
generated
@@ -9,6 +9,7 @@
|
|||||||
"@codemirror/lang-sql": "^6.5.2",
|
"@codemirror/lang-sql": "^6.5.2",
|
||||||
"@jupyterlab/mathjax2": "^3.6.5",
|
"@jupyterlab/mathjax2": "^3.6.5",
|
||||||
"@jupyterlab/theme-light-extension": "^4.0.3",
|
"@jupyterlab/theme-light-extension": "^4.0.3",
|
||||||
|
"@vercel/analytics": "^1.0.1",
|
||||||
"@vueuse/core": "^10.3.0",
|
"@vueuse/core": "^10.3.0",
|
||||||
"markdown-it": "^13.0.1",
|
"markdown-it": "^13.0.1",
|
||||||
"markdown-it-pangu": "^1.0.2",
|
"markdown-it-pangu": "^1.0.2",
|
||||||
@@ -1399,6 +1400,11 @@
|
|||||||
"resolved": "https://registry.npmmirror.com/@types/web-bluetooth/-/web-bluetooth-0.0.17.tgz",
|
"resolved": "https://registry.npmmirror.com/@types/web-bluetooth/-/web-bluetooth-0.0.17.tgz",
|
||||||
"integrity": "sha512-4p9vcSmxAayx72yn70joFoL44c9MO/0+iVEBIQXe3v2h2SiAsEIo/G5v6ObFWvNKRFjbrVadNf9LqEEZeQPzdA=="
|
"integrity": "sha512-4p9vcSmxAayx72yn70joFoL44c9MO/0+iVEBIQXe3v2h2SiAsEIo/G5v6ObFWvNKRFjbrVadNf9LqEEZeQPzdA=="
|
||||||
},
|
},
|
||||||
|
"node_modules/@vercel/analytics": {
|
||||||
|
"version": "1.0.1",
|
||||||
|
"resolved": "https://registry.npmmirror.com/@vercel/analytics/-/analytics-1.0.1.tgz",
|
||||||
|
"integrity": "sha512-Ux0c9qUfkcPqng3vrR0GTrlQdqNJ2JREn/2ydrVuKwM3RtMfF2mWX31Ijqo1opSjNAq6rK76PwtANw6kl6TAow=="
|
||||||
|
},
|
||||||
"node_modules/@vitejs/plugin-vue": {
|
"node_modules/@vitejs/plugin-vue": {
|
||||||
"version": "4.2.3",
|
"version": "4.2.3",
|
||||||
"resolved": "https://repo.huaweicloud.com/repository/npm/@vitejs/plugin-vue/-/plugin-vue-4.2.3.tgz",
|
"resolved": "https://repo.huaweicloud.com/repository/npm/@vitejs/plugin-vue/-/plugin-vue-4.2.3.tgz",
|
||||||
@@ -5260,6 +5266,11 @@
|
|||||||
"resolved": "https://registry.npmmirror.com/@types/web-bluetooth/-/web-bluetooth-0.0.17.tgz",
|
"resolved": "https://registry.npmmirror.com/@types/web-bluetooth/-/web-bluetooth-0.0.17.tgz",
|
||||||
"integrity": "sha512-4p9vcSmxAayx72yn70joFoL44c9MO/0+iVEBIQXe3v2h2SiAsEIo/G5v6ObFWvNKRFjbrVadNf9LqEEZeQPzdA=="
|
"integrity": "sha512-4p9vcSmxAayx72yn70joFoL44c9MO/0+iVEBIQXe3v2h2SiAsEIo/G5v6ObFWvNKRFjbrVadNf9LqEEZeQPzdA=="
|
||||||
},
|
},
|
||||||
|
"@vercel/analytics": {
|
||||||
|
"version": "1.0.1",
|
||||||
|
"resolved": "https://registry.npmmirror.com/@vercel/analytics/-/analytics-1.0.1.tgz",
|
||||||
|
"integrity": "sha512-Ux0c9qUfkcPqng3vrR0GTrlQdqNJ2JREn/2ydrVuKwM3RtMfF2mWX31Ijqo1opSjNAq6rK76PwtANw6kl6TAow=="
|
||||||
|
},
|
||||||
"@vitejs/plugin-vue": {
|
"@vitejs/plugin-vue": {
|
||||||
"version": "4.2.3",
|
"version": "4.2.3",
|
||||||
"resolved": "https://repo.huaweicloud.com/repository/npm/@vitejs/plugin-vue/-/plugin-vue-4.2.3.tgz",
|
"resolved": "https://repo.huaweicloud.com/repository/npm/@vitejs/plugin-vue/-/plugin-vue-4.2.3.tgz",
|
||||||
|
|||||||
@@ -9,6 +9,7 @@
|
|||||||
"@codemirror/lang-sql": "^6.5.2",
|
"@codemirror/lang-sql": "^6.5.2",
|
||||||
"@jupyterlab/mathjax2": "^3.6.5",
|
"@jupyterlab/mathjax2": "^3.6.5",
|
||||||
"@jupyterlab/theme-light-extension": "^4.0.3",
|
"@jupyterlab/theme-light-extension": "^4.0.3",
|
||||||
|
"@vercel/analytics": "^1.0.1",
|
||||||
"@vueuse/core": "^10.3.0",
|
"@vueuse/core": "^10.3.0",
|
||||||
"markdown-it": "^13.0.1",
|
"markdown-it": "^13.0.1",
|
||||||
"markdown-it-pangu": "^1.0.2",
|
"markdown-it-pangu": "^1.0.2",
|
||||||
|
|||||||
Reference in New Issue
Block a user