Merge pull request #140 from arc53/vercel-analytics

init analytics
This commit is contained in:
Alex 2023-02-28 12:26:03 +00:00 committed by GitHub
commit d651077e4e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 19 additions and 0 deletions

View File

@ -9,6 +9,7 @@
"version": "0.0.0",
"dependencies": {
"@reduxjs/toolkit": "^1.9.2",
"@vercel/analytics": "^0.1.10",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-redux": "^8.0.5",
@ -1290,6 +1291,14 @@
"url": "https://opencollective.com/typescript-eslint"
}
},
"node_modules/@vercel/analytics": {
"version": "0.1.10",
"resolved": "https://registry.npmjs.org/@vercel/analytics/-/analytics-0.1.10.tgz",
"integrity": "sha512-jjJ8GzcPnQp0cMxpfYoUycMRBtDiaIeyVjZPiEPe99Dj1PdjMzAFYEASiV/hpNsXHkpcNYCveDFh6jnmh0YSDQ==",
"peerDependencies": {
"react": "^16.8||^17||^18"
}
},
"node_modules/@vitejs/plugin-react": {
"version": "3.1.0",
"resolved": "https://registry.npmjs.org/@vitejs/plugin-react/-/plugin-react-3.1.0.tgz",
@ -6697,6 +6706,12 @@
"eslint-visitor-keys": "^3.3.0"
}
},
"@vercel/analytics": {
"version": "0.1.10",
"resolved": "https://registry.npmjs.org/@vercel/analytics/-/analytics-0.1.10.tgz",
"integrity": "sha512-jjJ8GzcPnQp0cMxpfYoUycMRBtDiaIeyVjZPiEPe99Dj1PdjMzAFYEASiV/hpNsXHkpcNYCveDFh6jnmh0YSDQ==",
"requires": {}
},
"@vitejs/plugin-react": {
"version": "3.1.0",
"resolved": "https://registry.npmjs.org/@vitejs/plugin-react/-/plugin-react-3.1.0.tgz",

View File

@ -20,6 +20,7 @@
},
"dependencies": {
"@reduxjs/toolkit": "^1.9.2",
"@vercel/analytics": "^0.1.10",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-redux": "^8.0.5",

View File

@ -4,6 +4,9 @@ import Conversation from './conversation/Conversation';
import About from './About';
import { useState } from 'react';
import { ActiveState } from './models/misc';
import { inject } from '@vercel/analytics';
inject();
export default function App() {
//TODO : below media query is disjoint from tailwind. Please wire it together.