mirror of
https://github.com/ld3z/new-manga.git
synced 2026-11-09 20:43:45 -07:00
add analytics
This commit is contained in:
parent
f9fc2c4cb0
commit
9f4ec3d3fd
4 changed files with 5 additions and 1 deletions
1
package-lock.json
generated
1
package-lock.json
generated
|
|
@ -12,6 +12,7 @@
|
|||
"@astrojs/tailwind": "^5.1.0",
|
||||
"@astrojs/vercel": "^8.0.2",
|
||||
"@floating-ui/dom": "^1.6.3",
|
||||
"@vercel/analytics": "^1.4.1",
|
||||
"@vercel/kv": "^1.0.1",
|
||||
"astro": "^5.1.6",
|
||||
"ioredis": "^5.4.2",
|
||||
|
|
|
|||
|
|
@ -15,6 +15,7 @@
|
|||
"@astrojs/tailwind": "^5.1.0",
|
||||
"@astrojs/vercel": "^8.0.2",
|
||||
"@floating-ui/dom": "^1.6.3",
|
||||
"@vercel/analytics": "^1.4.1",
|
||||
"@vercel/kv": "^1.0.1",
|
||||
"astro": "^5.1.6",
|
||||
"ioredis": "^5.4.2",
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
---
|
||||
import ThemeToggle from '../components/ThemeToggle.astro';
|
||||
import { Analytics } from '@vercel/analytics/react';
|
||||
|
||||
interface Props {
|
||||
title: string;
|
||||
|
|
@ -101,6 +102,7 @@ const isCreditsPage = Astro.url.pathname === '/credits';
|
|||
<main id="main-content" class="transition-opacity duration-300">
|
||||
<slot />
|
||||
</main>
|
||||
<Analytics />
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
|
|
|||
|
|
@ -145,7 +145,7 @@ const credits = [
|
|||
|
||||
<div class="mt-12 text-center text-primary/60">
|
||||
<p class="text-lg">
|
||||
Thank you to all the creators, artists, and contributors to other projectswho made this project possible! ✨
|
||||
Thank you to all the creators, artists, and contributors to other projects who made this project possible! ✨
|
||||
</p>
|
||||
</div>
|
||||
</main>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue