Skip to content

Commit

Permalink
feat: add vercel analytics (#3)
Browse files Browse the repository at this point in the history
Hey Ghost this PR is just a clone of the one for the testnet-explorer
and just adds the analtytics snippet
  • Loading branch information
gh0stdotexe authored Mar 21, 2024
2 parents b14ce68 + 05c9a56 commit b15c2f8
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"@osmonauts/lcd": "^0.8.0",
"@ping-pub/chain-registry-client": "^0.0.25",
"@vercel/speed-insights": "^1.0.10",
"@vercel/analytics": "^1.2.2",
"@vitejs/plugin-vue-jsx": "^3.0.0",
"@vueuse/core": "^9.12.0",
"@vueuse/integrations": "^10.1.2",
Expand Down
4 changes: 3 additions & 1 deletion src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
import { themeChange } from 'theme-change';
import { onMounted } from 'vue';
import TxDialog from './components/TxDialog.vue';
import { SpeedInsights } from "@vercel/speed-insights/vue"
import { SpeedInsights } from "@vercel/speed-insights/vue";
import { inject } from "@vercel/analytics";
onMounted(() => {
themeChange(false);
Expand All @@ -11,6 +12,7 @@ onMounted(() => {

<template>
<SpeedInsights />
<inject />
<div>
<RouterView />
<TxDialog />
Expand Down
12 changes: 12 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2332,6 +2332,13 @@
dependencies:
"@types/yargs-parser" "*"

"@vercel/analytics@^1.2.2":
version "1.2.2"
resolved "https://registry.yarnpkg.com/@vercel/analytics/-/analytics-1.2.2.tgz#715d8f203a170c06ba36b363e03b048c03060d5d"
integrity sha512-X0rctVWkQV1e5Y300ehVNqpOfSOufo7ieA5PIdna8yX/U7Vjz0GFsGf4qvAhxV02uQ2CVt7GYcrFfddXXK2Y4A==
dependencies:
server-only "^0.0.1"

"@vercel/speed-insights@^1.0.10":
version "1.0.10"
resolved "https://registry.npmjs.org/@vercel/speed-insights/-/speed-insights-1.0.10.tgz"
Expand Down Expand Up @@ -5987,6 +5994,11 @@ semver@^7.3.8, semver@^7.5.4:
dependencies:
lru-cache "^6.0.0"

server-only@^0.0.1:
version "0.0.1"
resolved "https://registry.yarnpkg.com/server-only/-/server-only-0.0.1.tgz#0f366bb6afb618c37c9255a314535dc412cd1c9e"
integrity sha512-qepMx2JxAa5jjfzxG79yPPq+8BuFToHd1hm7kI+Z4zAq1ftQiP7HcxMhDDItrbtwVeLg/cY2JnKnrcFkmiswNA==

set-blocking@^2.0.0:
version "2.0.0"
resolved "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz"
Expand Down

0 comments on commit b15c2f8

Please sign in to comment.