Skip to content

Commit

Permalink
chore: add info and analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
yjl9903 committed Apr 25, 2024
1 parent 31db4b6 commit 12c56ce
Show file tree
Hide file tree
Showing 3 changed files with 189 additions and 122 deletions.
11 changes: 11 additions & 0 deletions app/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import vue from '@vitejs/plugin-vue';

import Unocss from 'unocss/vite';
import Icons from 'unplugin-icons/vite';
import Info from 'unplugin-info/vite';
import Analytics from 'unplugin-analytics/vite';

import fetchCaptain from './plugin';

Expand All @@ -21,6 +23,15 @@ export default defineConfig({
vue(),
Icons(),
Unocss(),
Info(),
Analytics({
analytics: {
umami: {
src: 'umami.onekuma.cn',
id: '4580e101-dfa9-45bf-a9d5-9d03fe4415d7'
}
}
}),
fetchCaptain({
data: path.join(__dirname, '../data'),
roomid,
Expand Down
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@
"prettier": "latest",
"typescript": "^5.4.5",
"unocss": "^0.59.4",
"unplugin-analytics": "^0.0.11",
"unplugin-icons": "^0.18.5",
"unplugin-info": "^1.1.0",
"vite": "^5.2.10",
"vitest": "^1.5.2"
},
Expand Down
Loading

0 comments on commit 12c56ce

Please sign in to comment.