Skip to content

Commit

Permalink
docs: bump dependencies
Browse files Browse the repository at this point in the history
Co-authored-by: Zhengqbbb <1074059947@qq.com>
  • Loading branch information
Zhengqbbb committed Oct 13, 2022
1 parent a89d2ff commit 2101280
Show file tree
Hide file tree
Showing 4 changed files with 147 additions and 139 deletions.
8 changes: 4 additions & 4 deletions docs-zh/package.json
Expand Up @@ -12,17 +12,17 @@
},
"devDependencies": {
"@iconify-json/carbon": "^1.1.8",
"@unocss/reset": "^0.45.28",
"@unocss/reset": "^0.45.29",
"@vitejs/plugin-vue": "^3.1.2",
"markdown-it-container": "^3.0.0",
"markdown-it-mark": "^3.0.1",
"medium-zoom": "^1.0.6",
"sitemap": "^7.1.1",
"unocss": "^0.45.28",
"unocss": "^0.45.29",
"unplugin-vue-components": "^0.22.8",
"vite": "^3.1.6",
"vite": "^3.1.7",
"vite-plugin-pwa": "^0.13.1",
"vite-plugin-radar": "^0.5.0",
"vitepress": "1.0.0-alpha.19"
"vitepress": "1.0.0-alpha.20"
}
}
12 changes: 10 additions & 2 deletions docs/.vitepress/theme/components/composables/usePageAnalytics.ts
@@ -1,3 +1,13 @@
declare const dataLayer: any[]
declare const gtag: (...args: any[]) => void
declare global {
interface Window {
dataLayer?: typeof dataLayer
_hmt?: any
gtag?: typeof gtag
}
}

const baiduAnalytics = (id: string) => {
const btagScript = document.createElement('script')
btagScript.src = `https://hm.baidu.com/hm.js?${id}`
Expand All @@ -9,7 +19,6 @@ const baiduAnalytics = (id: string) => {
}

/** Powered by vuepress-next */
declare const gtag: (...args: any[]) => void
const googleAnalytics = (id: string) => {
if (window.dataLayer && window.gtag)
return
Expand All @@ -24,7 +33,6 @@ const googleAnalytics = (id: string) => {
window.dataLayer = window.dataLayer || []
// the gtag function must use `arguments` object to forward parameters
window.gtag = function () {
// @ts-expect-error
// eslint-disable-next-line prefer-rest-params
dataLayer.push(arguments)
}
Expand Down
8 changes: 4 additions & 4 deletions docs/package.json
Expand Up @@ -13,17 +13,17 @@
},
"devDependencies": {
"@iconify-json/carbon": "^1.1.8",
"@unocss/reset": "^0.45.28",
"@unocss/reset": "^0.45.29",
"@vitejs/plugin-vue": "^3.1.2",
"markdown-it-container": "^3.0.0",
"markdown-it-mark": "^3.0.1",
"medium-zoom": "^1.0.6",
"sitemap": "^7.1.1",
"unocss": "^0.45.28",
"unocss": "^0.45.29",
"unplugin-vue-components": "^0.22.8",
"vite": "^3.1.6",
"vite": "^3.1.7",
"vite-plugin-pwa": "^0.13.1",
"vite-plugin-radar": "^0.5.0",
"vitepress": "1.0.0-alpha.19"
"vitepress": "1.0.0-alpha.20"
}
}

0 comments on commit 2101280

Please sign in to comment.