From 25c13478f98e4c08e9c6d132254365b11075dab1 Mon Sep 17 00:00:00 2001
From: Cdreetz <cdreetz@gmail.com>
Date: Thu, 25 Jul 2024 11:15:02 -0500
Subject: [PATCH] add analytics

---
 app/layout.tsx    |  2 ++
 app/page.tsx      |  1 -
 package-lock.json | 26 ++++++++++++++++++++++++++
 package.json      |  1 +
 4 files changed, 29 insertions(+), 1 deletion(-)

diff --git a/app/layout.tsx b/app/layout.tsx
index 92bb646..7d71b8b 100644
--- a/app/layout.tsx
+++ b/app/layout.tsx
@@ -2,6 +2,7 @@ import type { Metadata } from "next";
 import { Inter } from "next/font/google";
 import "./globals.css";
 import NavMenu from '@/components/NevMenu'
+import { Analytics } from "@vercel/analytics/react"
 
 const inter = Inter({ subsets: ["latin"] });
 
@@ -20,6 +21,7 @@ export default function RootLayout({
       <body className={inter.className}>
         <NavMenu />
         {children}
+        <Analytics />
       </body>
     </html>
   );
diff --git a/app/page.tsx b/app/page.tsx
index 1fd2417..afc40c4 100644
--- a/app/page.tsx
+++ b/app/page.tsx
@@ -2,7 +2,6 @@
 'use client'
 
 import { useState, useEffect } from 'react';
-import { generateText } from 'ai';
 import ModelSelectionForm from '@/components/ModelSelectionForm'
 import PromptInputForm from '@/components/PromptInputForm'
 import EvaluationButton from '@/components/EvaluationButton'
diff --git a/package-lock.json b/package-lock.json
index 66706ff..97bb564 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -15,6 +15,7 @@
         "@radix-ui/react-scroll-area": "^1.1.0",
         "@radix-ui/react-select": "^2.1.1",
         "@radix-ui/react-slot": "^1.1.0",
+        "@vercel/analytics": "^1.3.1",
         "ai": "^3.2.35",
         "class-variance-authority": "^0.7.0",
         "clsx": "^2.1.1",
@@ -1508,6 +1509,26 @@
       "integrity": "sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==",
       "dev": true
     },
+    "node_modules/@vercel/analytics": {
+      "version": "1.3.1",
+      "resolved": "https://registry.npmjs.org/@vercel/analytics/-/analytics-1.3.1.tgz",
+      "integrity": "sha512-xhSlYgAuJ6Q4WQGkzYTLmXwhYl39sWjoMA3nHxfkvG+WdBT25c563a7QhwwKivEOZtPJXifYHR1m2ihoisbWyA==",
+      "dependencies": {
+        "server-only": "^0.0.1"
+      },
+      "peerDependencies": {
+        "next": ">= 13",
+        "react": "^18 || ^19"
+      },
+      "peerDependenciesMeta": {
+        "next": {
+          "optional": true
+        },
+        "react": {
+          "optional": true
+        }
+      }
+    },
     "node_modules/@vue/compiler-core": {
       "version": "3.4.33",
       "resolved": "https://registry.npmjs.org/@vue/compiler-core/-/compiler-core-3.4.33.tgz",
@@ -5281,6 +5302,11 @@
         "node": ">=10"
       }
     },
+    "node_modules/server-only": {
+      "version": "0.0.1",
+      "resolved": "https://registry.npmjs.org/server-only/-/server-only-0.0.1.tgz",
+      "integrity": "sha512-qepMx2JxAa5jjfzxG79yPPq+8BuFToHd1hm7kI+Z4zAq1ftQiP7HcxMhDDItrbtwVeLg/cY2JnKnrcFkmiswNA=="
+    },
     "node_modules/set-function-length": {
       "version": "1.2.2",
       "resolved": "https://registry.npmjs.org/set-function-length/-/set-function-length-1.2.2.tgz",
diff --git a/package.json b/package.json
index b76b5f3..b4ad654 100644
--- a/package.json
+++ b/package.json
@@ -16,6 +16,7 @@
     "@radix-ui/react-scroll-area": "^1.1.0",
     "@radix-ui/react-select": "^2.1.1",
     "@radix-ui/react-slot": "^1.1.0",
+    "@vercel/analytics": "^1.3.1",
     "ai": "^3.2.35",
     "class-variance-authority": "^0.7.0",
     "clsx": "^2.1.1",