File tree Expand file tree Collapse file tree 3 files changed +112
-63
lines changed Expand file tree Collapse file tree 3 files changed +112
-63
lines changed Original file line number Diff line number Diff line change 1
1
import type { Theme } from 'vitepress'
2
2
import DefaultTheme from 'vitepress/theme'
3
3
import { inBrowser } from 'vitepress'
4
+ import * as Swetrix from 'swetrix'
4
5
import VuetifyLayout from './VuetifyLayout.vue'
5
6
6
7
import './styles/main.css'
@@ -14,4 +15,11 @@ if (inBrowser)
14
15
export default {
15
16
extends : DefaultTheme ,
16
17
Layout : VuetifyLayout ,
18
+ enhanceApp ( ) {
19
+ Swetrix . init ( 'KMc9xOD28UCn' , {
20
+ apiURL : 'https://swetrix-api.vuetifyjs.com/log' ,
21
+ } )
22
+ Swetrix . trackViews ( )
23
+ Swetrix . trackErrors ( )
24
+ } ,
17
25
} satisfies Theme
Original file line number Diff line number Diff line change 11
11
"generate-pwa-icons" : " pwa-assets-generator"
12
12
},
13
13
"dependencies" : {
14
+ "swetrix" : " ^3.4.1" ,
14
15
"vue" : " ^3.4.21"
15
16
},
16
17
"devDependencies" : {
You can’t perform that action at this time.
0 commit comments