diff --git a/package-lock.json b/package-lock.json index 3340060eb..574bbbd5f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -49,6 +49,7 @@ "clsx": "^2.1.1", "cmdk": "^1.1.1", "docusaurus2-dotenv": "^1.4.0", + "dotenv": "^17.2.3", "express": "^5.1.0", "fontawesome": "^5.6.3", "framer-motion": "^12.10.5", @@ -12465,6 +12466,17 @@ "node": ">=8" } }, + "node_modules/dotenv": { + "version": "17.2.3", + "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-17.2.3.tgz", + "integrity": "sha512-JVUnt+DUIzu87TABbhPmNfVdBDt18BLOWjMUFJMSi/Qqg7NTYtabbvSNJGOJ7afbRuv9D/lngizHtP7QyLQ+9w==", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://dotenvx.com" + } + }, "node_modules/dotenv-defaults": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/dotenv-defaults/-/dotenv-defaults-1.1.1.tgz", diff --git a/package.json b/package.json index e0593069f..cfa2dcc99 100644 --- a/package.json +++ b/package.json @@ -56,6 +56,7 @@ "clsx": "^2.1.1", "cmdk": "^1.1.1", "docusaurus2-dotenv": "^1.4.0", + "dotenv": "^17.2.3", "express": "^5.1.0", "fontawesome": "^5.6.3", "framer-motion": "^12.10.5", diff --git a/src/pages/testing-page.tsx b/src/pages/testing-page.tsx index b2844a6b3..823f59fb1 100644 --- a/src/pages/testing-page.tsx +++ b/src/pages/testing-page.tsx @@ -2,186 +2,186 @@ import Layout from "@theme/Layout"; // =========For AccordionDemo======== -import { - Accordion, - AccordionContent, - AccordionItem, - AccordionTrigger, -} from "../components/ui/accordion"; +// import { +// Accordion, +// AccordionContent, +// AccordionItem, +// AccordionTrigger, +// } from "../components/ui/accordion"; // ============================== // ======For AlertDialogDemo========== -import { - AlertDialog, - AlertDialogAction, - AlertDialogCancel, - AlertDialogContent, - AlertDialogDescription, - AlertDialogFooter, - AlertDialogHeader, - AlertDialogTitle, - AlertDialogTrigger, -} from "../components/ui/alert-dialog"; -import { Button } from "../components/ui/button"; +// import { +// AlertDialog, +// AlertDialogAction, +// AlertDialogCancel, +// AlertDialogContent, +// AlertDialogDescription, +// AlertDialogFooter, +// AlertDialogHeader, +// AlertDialogTitle, +// AlertDialogTrigger, +// } from "../components/ui/alert-dialog"; +// import { Button } from "../components/ui/button"; // ===================================== // ================For AlertDemo========== -import { Alert, AlertTitle, AlertDescription } from "../components/ui/alert"; -import { Terminal, AlertCircle } from "lucide-react"; +// import { Alert, AlertTitle, AlertDescription } from "../components/ui/alert"; +// import { Terminal, AlertCircle } from "lucide-react"; // ======================================== // ======== AspectRatioDemo // import Image from '@theme/IdealImage' -import { AspectRatio } from "../components/ui/aspect-ratio"; +// import { AspectRatio } from "../components/ui/aspect-ratio"; // ======================================== // ========UserProfile -import { - Avatar, - AvatarFallback, - AvatarImage -} from "../components/ui/avatar"; +// import { +// Avatar, +// AvatarFallback, +// AvatarImage +// } from "../components/ui/avatar"; -function AccordionDemo() { - return ( -
-

Frequently Asked Questions

+// function AccordionDemo() { +// return ( +//
+//

Frequently Asked Questions

- {/* type="single" allows only one item to be open at a time */} - +// {/* type="single" allows only one item to be open at a time */} +// - - Is it accessible? - - Yes. It adheres to the WAI-ARIA design pattern. - - - - - Is it styled? - - Yes. It comes with default styles that matches the other - components' aesthetic. - - - - - Is it animated? - - Yes. It's animated by default, but you can disable it if you prefer. - - - - -
- ); -} - -function AlertDialogDemo() { - const handleDelete = () => { - // Your logic for deletion goes here - console.log("Item deleted successfully."); - }; - - return ( - - {/* 1. The Trigger: Usually a button that opens the dialog */} - - - - - {/* 2. The Content: The actual modal window */} - - - Are you absolutely sure? - - This action cannot be undone. This will permanently delete your - account and remove your data from our servers. - - - - {/* 3. The Footer: Contains the Action and Cancel buttons */} - - Cancel - - Continue - - - - - ); -} - -function AlertDemo() { - return ( -
+// +// Is it accessible? +// +// Yes. It adheres to the WAI-ARIA design pattern. +// +// + +// +// Is it styled? +// +// Yes. It comes with default styles that matches the other +// components' aesthetic. +// +// + +// +// Is it animated? +// +// Yes. It's animated by default, but you can disable it if you prefer. +// +// + +// +//
+// ); +// } + +// function AlertDialogDemo() { +// const handleDelete = () => { +// // Your logic for deletion goes here +// console.log("Item deleted successfully."); +// }; + +// return ( +// +// {/* 1. The Trigger: Usually a button that opens the dialog */} +// +// +// + +// {/* 2. The Content: The actual modal window */} +// +// +// Are you absolutely sure? +// +// This action cannot be undone. This will permanently delete your +// account and remove your data from our servers. +// +// + +// {/* 3. The Footer: Contains the Action and Cancel buttons */} +// +// Cancel +// +// Continue +// +// +// +// +// ); +// } + +// function AlertDemo() { +// return ( +//
- {/* Default Alert */} - - - Heads up! - - You can add components to your app using the cli. - - - - {/* Destructive Alert */} - - - Error - - Your session has expired. Please log in again to continue. - - - -
- ); -} - -function AspectRatioDemo() { - return ( -
- - Photo by Drew Beamer - -
-

Landscape View

-

16:9 Aspect Ratio

-
-
- ); -} - -function UserProfile() { - return ( -
+// {/* Default Alert */} +// +// +// Heads up! +// +// You can add components to your app using the cli. +// +// + +// {/* Destructive Alert */} +// +// +// Error +// +// Your session has expired. Please log in again to continue. +// +// + +//
+// ); +// } + +// function AspectRatioDemo() { +// return ( +//
+// +// Photo by Drew Beamer +// +//
+//

Landscape View

+//

16:9 Aspect Ratio

+//
+//
+// ); +// } + +// function UserProfile() { +// return ( +//
- {/* 1. Standard usage with an image */} - - - Aj - - - {/* 2. Fallback usage (e.g., if the image URL is broken or null) */} - - - - AJ - - - - {/* 3. Custom Sizes (using Tailwind classes) */} - - - Docusaurus - - -
- ); -} +// {/* 1. Standard usage with an image */} +// +// +// Aj +// + +// {/* 2. Fallback usage (e.g., if the image URL is broken or null) */} +// +// +// +// AJ +// +// + +// {/* 3. Custom Sizes (using Tailwind classes) */} +// +// +// Docusaurus +// + +//
+// ); +// } export default function TestingPage() { @@ -192,7 +192,7 @@ export default function TestingPage() { {/* */} {/* */} {/* */} - + {/* */}