Prepare GA4 for release

This commit is contained in:
Soitora 2023-09-08 23:14:54 +02:00
parent 87b40fb6c4
commit 0ae836ed2e
No known key found for this signature in database
GPG Key ID: A6D711EB4F2CCD97
3 changed files with 16 additions and 4 deletions

View File

@ -58,6 +58,7 @@
"unplugin-element-plus": "^0.8.0", "unplugin-element-plus": "^0.8.0",
"vite-plugin-eslint": "^1.8.1", "vite-plugin-eslint": "^1.8.1",
"vitepress": "1.0.0-rc.10", "vitepress": "1.0.0-rc.10",
"vitepress-plugin-google-analytics": "^1.0.2",
"vitepress-plugin-tabs": "^0.3.0", "vitepress-plugin-tabs": "^0.3.0",
"vue": "^3.3.4", "vue": "^3.3.4",
"vue-eslint-parser": "^9.3.1", "vue-eslint-parser": "^9.3.1",

View File

@ -1,5 +1,9 @@
lockfileVersion: '6.0' lockfileVersion: '6.0'
settings:
autoInstallPeers: true
excludeLinksFromLockfile: false
dependencies: dependencies:
'@iconify-prerendered/vue-mdi': '@iconify-prerendered/vue-mdi':
specifier: ^0.23.1689058119 specifier: ^0.23.1689058119
@ -114,6 +118,9 @@ devDependencies:
vitepress: vitepress:
specifier: 1.0.0-rc.10 specifier: 1.0.0-rc.10
version: 1.0.0-rc.10(@algolia/client-search@4.19.1)(@types/node@20.5.7)(axios@1.5.0)(search-insights@2.7.0)(stylus@0.60.0) version: 1.0.0-rc.10(@algolia/client-search@4.19.1)(@types/node@20.5.7)(axios@1.5.0)(search-insights@2.7.0)(stylus@0.60.0)
vitepress-plugin-google-analytics:
specifier: ^1.0.2
version: 1.0.2
vitepress-plugin-tabs: vitepress-plugin-tabs:
specifier: ^0.3.0 specifier: ^0.3.0
version: 0.3.0(vitepress@1.0.0-rc.10)(vue@3.3.4) version: 0.3.0(vitepress@1.0.0-rc.10)(vue@3.3.4)
@ -5464,6 +5471,10 @@ packages:
fsevents: 2.3.3 fsevents: 2.3.3
dev: true dev: true
/vitepress-plugin-google-analytics@1.0.2:
resolution: {integrity: sha512-ri8bFUAmt3c/DtPrALauGBIUr2gIJ11c1qNRhwd3/+aiuYZBfQpOosSxcO1AswgwRxP9FwBS6Z7jgdDVyXb2hA==}
dev: true
/vitepress-plugin-tabs@0.3.0(vitepress@1.0.0-rc.10)(vue@3.3.4): /vitepress-plugin-tabs@0.3.0(vitepress@1.0.0-rc.10)(vue@3.3.4):
resolution: {integrity: sha512-3dKsBuP6PDzcFHgUtNCwwCs3bYoZduj7AcQkT9JfAKTRAKPCNmjiNInPT3IZ7AihL0SJNoQ3liz/e97z8oo+XA==} resolution: {integrity: sha512-3dKsBuP6PDzcFHgUtNCwwCs3bYoZduj7AcQkT9JfAKTRAKPCNmjiNInPT3IZ7AihL0SJNoQ3liz/e97z8oo+XA==}
peerDependencies: peerDependencies:
@ -5711,7 +5722,3 @@ packages:
/yoga-wasm-web@0.3.3: /yoga-wasm-web@0.3.3:
resolution: {integrity: sha512-N+d4UJSJbt/R3wqY7Coqs5pcV0aUj2j9IaQ3rNj9bVCLld8tTGKRa2USARjnvZJWVx1NDmQev8EknoczaOQDOA==} resolution: {integrity: sha512-N+d4UJSJbt/R3wqY7Coqs5pcV0aUj2j9IaQ3rNj9bVCLld8tTGKRa2USARjnvZJWVx1NDmQev8EknoczaOQDOA==}
dev: true dev: true
settings:
autoInstallPeers: true
excludeLinksFromLockfile: false

View File

@ -14,6 +14,9 @@ import { enhanceAppWithTabs } from "vitepress-plugin-tabs/client"
// Import Icon components // Import Icon components
import { IconBugReport, IconDownload, IconNewspaperVariant } from "@iconify-prerendered/vue-mdi" import { IconBugReport, IconDownload, IconNewspaperVariant } from "@iconify-prerendered/vue-mdi"
// Import Google Analytics plugin
import googleAnalytics from "vitepress-plugin-google-analytics"
export default { export default {
extends: DefaultTheme, extends: DefaultTheme,
enhanceApp({ app }) { enhanceApp({ app }) {
@ -22,5 +25,6 @@ export default {
app.component("IconDownload", IconDownload) app.component("IconDownload", IconDownload)
app.component("IconNewspaperVariant", IconNewspaperVariant) app.component("IconNewspaperVariant", IconNewspaperVariant)
app.component("IconBugReport", IconBugReport) app.component("IconBugReport", IconBugReport)
// googleAnalytics({ id: "G-2CBXXM1Y86" })
}, },
} }