diff --git a/apps/web/.env.example b/apps/web/.env.example index 4edb7c87..703891dc 100644 --- a/apps/web/.env.example +++ b/apps/web/.env.example @@ -4,17 +4,10 @@ GOOGLE_CLIENT_ID="" GOOGLE_CLIENT_SECRET="" NEXTAUTH_URL="http://localhost:3000" NEXTAUTH_SECRET="NEXTAUTH_SECRET" -NEXT_PUBLIC_JUDGE0_API_URL="http://localhost:2358" -CODE_SUBMISSION_RATE_LIMIT_COUNT=5 # Nums of submission allowed in the interval -CODE_SUBMISSION_RATE_LIMIT_INTERVAL=60000 #Interval in milliseconds (1 minute) -CODE_SUBMISSION_BACKOFF_DELAY=1000 # delay in ms -CODE_SUBMISSION_BACKOFF_MAX_RETRIES=5 # delay in ms - GOOGLEAI_API_KEY= - QDRANT_API_KEY= QDRANT_URL= +VECTOR_DIMENSION=768 # Upto 768 dimensions are supported -CACHE_EXPIRE=1800 # expiration time of the cache memory -VECTOR_DIMENSION=768 # Upto 768 dimensions are supported \ No newline at end of file +CACHE_EXPIRE=1800 # expiration time of the cache memory \ No newline at end of file diff --git a/apps/web/app/admin/code/[problemId]/page.tsx b/apps/web/app/admin/code/[problemId]/page.tsx deleted file mode 100644 index 704e8798..00000000 --- a/apps/web/app/admin/code/[problemId]/page.tsx +++ /dev/null @@ -1,29 +0,0 @@ -import db from "@repo/db/client"; -import { AddProblemStatementForm } from "../../../../components/AddProblemStatementForm"; - -import { AppbarClient } from "../../../../components/AppbarClient"; - -export default async function AddProblemStatementPage({ params: { problemId } }: { params: { problemId: string } }) { - const problemInfo = await db.problem.findUnique({ - where: { id: problemId }, - }); - - const allLanguages = await db.codeLanguage.findMany(); - - if (!problemInfo) { - return
{track.title} ({problemIndex + 1} / {track.problems.length})
- {problem.type === "Code" && problem.problemStatement &&