docs: add vercel analytics

This commit is contained in:
braks
2022-11-15 12:51:40 +01:00
parent f1b225078d
commit bce493cfe5
3 changed files with 13 additions and 0 deletions

View File

@@ -15,6 +15,7 @@
"@animxyz/core": "^0.6.6",
"@animxyz/vue3": "^0.6.7",
"@stackblitz/sdk": "^1.8.0",
"@vercel/analytics": "^0.1.5",
"@vue-flow/additional-components": "workspace:*",
"@vue-flow/core": "workspace:*",
"@vue/repl": "1.1.2",

View File

@@ -1,6 +1,7 @@
import type { Theme } from 'vitepress'
import VueAnimXyz from '@animxyz/vue3'
import DefaultTheme from 'vitepress/theme'
import { inject } from '@vercel/analytics'
import Layout from './layouts/default.vue'
import 'virtual:windi.css'
import '@animxyz/core'
@@ -13,6 +14,7 @@ const CustomTheme = {
Layout,
enhanceApp: ({ app }) => {
app.use(VueAnimXyz)
inject()
},
} as Theme

10
pnpm-lock.yaml generated
View File

@@ -37,6 +37,7 @@ importers:
'@stackblitz/sdk': ^1.8.0
'@types/canvas-confetti': ^1.4.3
'@types/node': ^18.7.8
'@vercel/analytics': ^0.1.5
'@vue-flow/additional-components': workspace:*
'@vue-flow/core': workspace:*
'@vue/repl': 1.1.2
@@ -62,6 +63,7 @@ importers:
'@animxyz/core': 0.6.6
'@animxyz/vue3': 0.6.7_vue@3.2.37
'@stackblitz/sdk': 1.8.0
'@vercel/analytics': 0.1.5_react@18.2.0
'@vue-flow/additional-components': link:../packages/additional-components
'@vue-flow/core': link:../packages/core
'@vue/repl': 1.1.2_vue@3.2.37
@@ -2373,6 +2375,14 @@ packages:
eslint-visitor-keys: 3.3.0
dev: true
/@vercel/analytics/0.1.5_react@18.2.0:
resolution: {integrity: sha512-/k9N8Ea3Yc5A52GlkjzUEbi2vE/izClrOf++ryBkxEfrZM/OZwtHkdNw/QExZ1h/B67RCZLK7bCOnKKrhG7gTg==}
peerDependencies:
react: ^16.8||^17||^18
dependencies:
react: 18.2.0
dev: false
/@vercel/nft/0.22.1:
resolution: {integrity: sha512-lYYZIoxRurqDOSoVIdBicGnpUIpfyaS5qVjdPq+EfI285WqtZK3NK/dyCkiyBul+X2U2OEhRyeMdXPCHGJbohw==}
hasBin: true