Skip to content

Commit

Permalink
Merge pull request #34 from Dev-R/PF-58-Vercel-Analytics
Browse files Browse the repository at this point in the history
Add Vercel analytics
  • Loading branch information
Dev-R authored Oct 5, 2023
2 parents c414f52 + 301c6e7 commit af74bd4
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"dependencies": {
"@fortawesome/fontawesome-free": "^6.2.1",
"@tailwindcss/forms": "^0.5.6",
"@vercel/analytics": "^1.0.2",
"@vuelidate/core": "^2.0.0",
"@vuelidate/validators": "^2.0.0",
"axios": "^1.3.0",
Expand Down
4 changes: 4 additions & 0 deletions src/main.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
import { createApp } from 'vue'
import { createPinia } from 'pinia'

import { inject } from '@vercel/analytics'

import Toast from 'vue-toastification'
import { POSITION } from 'vue-toastification'
import type { PluginOptions } from 'vue-toastification'

import App from './App.vue'
import router from './router'


// Assets
import './assets/main.css'

Expand Down Expand Up @@ -36,3 +39,4 @@ app.use(router)
app.use(Toast, options)

app.mount('#app')
inject(); // Vercel Analytics
5 changes: 5 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -649,6 +649,11 @@
"@typescript-eslint/types" "5.50.0"
eslint-visitor-keys "^3.3.0"

"@vercel/analytics@^1.0.2":
version "1.0.2"
resolved "https://registry.yarnpkg.com/@vercel/analytics/-/analytics-1.0.2.tgz#7af719a1bf33734840aee6f04eb548d2cedab9ec"
integrity sha512-BZFxVrv24VbNNl5xMxqUojQIegEeXMI6rX3rg1uVLYUEXsuKNBSAEQf4BWEcjQDp/8aYJOj6m8V4PUA3x/cxgg==

"@vitejs/plugin-vue-jsx@^3.0.0":
version "3.0.0"
resolved "https://registry.yarnpkg.com/@vitejs/plugin-vue-jsx/-/plugin-vue-jsx-3.0.0.tgz#42e89d6d9eb89604d109ff9a615d77c3c080dd25"
Expand Down

0 comments on commit af74bd4

Please sign in to comment.