From e9566edad9880f992ab5d8d981ffa75a09a465b8 Mon Sep 17 00:00:00 2001 From: Julien Froidefond Date: Mon, 17 Feb 2025 18:57:16 +0100 Subject: [PATCH] fix: Error on deps and .env --- .env | 7 -- .env.example | 11 ++ .gitignore | 9 +- package.json | 7 +- src/components/ui/label.tsx | 21 ++-- src/components/ui/switch.tsx | 61 ++++++---- yarn.lock | 210 +++++++++++------------------------ 7 files changed, 141 insertions(+), 185 deletions(-) delete mode 100644 .env diff --git a/.env b/.env deleted file mode 100644 index 68c89d3..0000000 --- a/.env +++ /dev/null @@ -1,7 +0,0 @@ -# MongoDB -MONGO_USER=admin -MONGO_PASSWORD=password -MONGODB_URI=mongodb://admin:password@mongodb.paniels.orb.local:27017/stripstream?authSource=admin - -# Komga -NEXT_PUBLIC_API_URL=https://cloud.julienfroidefond.com \ No newline at end of file diff --git a/.env.example b/.env.example index 9275886..f7f2a2c 100644 --- a/.env.example +++ b/.env.example @@ -1,3 +1,14 @@ +# API Configuration +NEXT_PUBLIC_API_URL=http://localhost:3000 +NEXT_PUBLIC_KOMGA_URL=http://localhost:8080 + +# Authentication +NEXTAUTH_URL=http://localhost:3000 +NEXTAUTH_SECRET=your-secret-key-here + +# Database +MONGODB_URI=mongodb://localhost:27017/stripstream + # MongoDB MONGO_USER=admin MONGO_PASSWORD=password diff --git a/.gitignore b/.gitignore index f68bf22..5e4a3c5 100644 --- a/.gitignore +++ b/.gitignore @@ -34,4 +34,11 @@ next-env.d.ts # IDE .idea -.vscode \ No newline at end of file +.vscode + +# Environment variables +.env +.env.local +.env.development.local +.env.test.local +.env.production.local \ No newline at end of file diff --git a/package.json b/package.json index ce36e04..562aeec 100644 --- a/package.json +++ b/package.json @@ -12,12 +12,10 @@ "dependencies": { "@radix-ui/react-dialog": "1.0.5", "@radix-ui/react-dropdown-menu": "2.0.6", - "@radix-ui/react-label": "^2.1.2", "@radix-ui/react-slot": "1.0.2", - "@radix-ui/react-switch": "^1.1.3", "@radix-ui/react-toast": "1.1.5", "@types/mongoose": "5.11.97", - "class-variance-authority": "0.7.0", + "class-variance-authority": "^0.7.0", "clsx": "2.1.0", "lucide-react": "0.323.0", "mongoose": "8.1.0", @@ -45,5 +43,6 @@ "postcss": "8.4.33", "tailwindcss": "3.4.1", "typescript": "5.3.3" - } + }, + "packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e" } diff --git a/src/components/ui/label.tsx b/src/components/ui/label.tsx index 6ac6d6a..0c78d76 100644 --- a/src/components/ui/label.tsx +++ b/src/components/ui/label.tsx @@ -1,7 +1,6 @@ "use client"; import * as React from "react"; -import * as LabelPrimitive from "@radix-ui/react-label"; import { cva, type VariantProps } from "class-variance-authority"; import { cn } from "@/lib/utils"; @@ -9,12 +8,18 @@ const labelVariants = cva( "text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70" ); -const Label = React.forwardRef< - React.ElementRef, - React.ComponentPropsWithoutRef & VariantProps ->(({ className, ...props }, ref) => ( - -)); -Label.displayName = LabelPrimitive.Root.displayName; +interface LabelProps extends React.LabelHTMLAttributes, + VariantProps {} + +const Label = React.forwardRef( + ({ className, ...props }, ref) => ( +