diff --git a/package.json b/package.json index 69926e2..c561c11 100644 --- a/package.json +++ b/package.json @@ -24,6 +24,7 @@ "@tauri-apps/api": "^2.11.1", "@tauri-apps/plugin-process": "^2.3.1", "@tauri-apps/plugin-updater": "^2.10.1", + "@vercel/analytics": "^2.0.1", "lucide-react": "^0.395.0", "react": "^18.3.1", "react-dom": "^18.3.1", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 0484db1..88f5304 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -20,6 +20,9 @@ importers: '@tauri-apps/plugin-updater': specifier: ^2.10.1 version: 2.10.1 + '@vercel/analytics': + specifier: ^2.0.1 + version: 2.0.1(react@18.3.1) lucide-react: specifier: ^0.395.0 version: 0.395.0(react@18.3.1) @@ -684,6 +687,35 @@ packages: '@ungap/structured-clone@1.3.1': resolution: {integrity: sha512-mUFwbeTqrVgDQxFveS+df2yfap6iuP20NAKAsBt5jDEoOTDew+zwLAOilHCeQJOVSvmgCX4ogqIrA0mnyr08yQ==} + '@vercel/analytics@2.0.1': + resolution: {integrity: sha512-MTQG6V9qQrt1tsDeF+2Uoo5aPjqbVPys1xvnIftXSJYG2SrwXRHnqEvVoYID7BTruDz4lCd2Z7rM1BdkUehk2g==} + peerDependencies: + '@remix-run/react': ^2 + '@sveltejs/kit': ^1 || ^2 + next: '>= 13' + nuxt: '>= 3' + react: ^18 || ^19 || ^19.0.0-rc + svelte: '>= 4' + vue: ^3 + vue-router: ^4 + peerDependenciesMeta: + '@remix-run/react': + optional: true + '@sveltejs/kit': + optional: true + next: + optional: true + nuxt: + optional: true + react: + optional: true + svelte: + optional: true + vue: + optional: true + vue-router: + optional: true + '@vitejs/plugin-react@4.7.0': resolution: {integrity: sha512-gUu9hwfWvvEDBBmgtAowQCojwZmJ5mcLn3aufeCsitijs3+f2NsrPtlAWIR6OPiqljl96GVCUbLe0HyqIpVaoA==} engines: {node: ^14.18.0 || >=16.0.0} @@ -2012,6 +2044,10 @@ snapshots: '@ungap/structured-clone@1.3.1': {} + '@vercel/analytics@2.0.1(react@18.3.1)': + optionalDependencies: + react: 18.3.1 + '@vitejs/plugin-react@4.7.0(vite@5.4.21(@types/node@20.19.43))': dependencies: '@babel/core': 7.29.7 diff --git a/src/app/App.tsx b/src/app/App.tsx index b03f891..45323a1 100644 --- a/src/app/App.tsx +++ b/src/app/App.tsx @@ -1,5 +1,6 @@ import React from 'react'; import { RouterProvider } from 'react-router-dom'; +import { Analytics } from '@vercel/analytics/react'; import { isTauri } from '../utils/tauri'; import { tauriRouter } from '../router/tauri'; import { webRouter } from '../router/web'; @@ -13,6 +14,11 @@ export const App: React.FC = () => { initTheme(); }, [initTheme]); - return ; + return ( + <> + + + + ); }; export default App;