From 94e34fbc757c6c934159074669a49bf278ab690c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roman=20Kr=C4=8Dek?= Date: Fri, 18 Jul 2025 10:34:09 +0200 Subject: [PATCH] Change environment variable handling --- .env.example | 10 +++++----- src/lib/components/PhotoCrop.svelte | 3 ++- src/lib/components/wizard/StepGallery.svelte | 11 ++++++----- src/lib/google.ts | 12 ++++++++---- src/routes/Navbar.Svelte | 12 ------------ 5 files changed, 21 insertions(+), 27 deletions(-) delete mode 100644 src/routes/Navbar.Svelte diff --git a/.env.example b/.env.example index b2d1f72..1e85364 100644 --- a/.env.example +++ b/.env.example @@ -1,15 +1,15 @@ # Your Google Cloud OAuth 2.0 Client ID -VITE_GOOGLE_CLIENT_ID="YOUR_GOOGLE_CLIENT_ID_HERE" +PUBLIC_GOOGLE_CLIENT_ID="YOUR_GOOGLE_CLIENT_ID_HERE" # Face Detection Crop Configuration # Crop aspect ratio (width:height) - e.g., 1.0 for square, 1.5 for 3:2 ratio -VITE_CROP_RATIO=1.0 +PUBLIC_CROP_RATIO=1.0 # Face offset from center (as percentage of crop dimensions) # Positive values move the face toward bottom-right, negative toward top-left -VITE_FACE_OFFSET_X=0.0 -VITE_FACE_OFFSET_Y=-0.1 +PUBLIC_FACE_OFFSET_X=0.0 +PUBLIC_FACE_OFFSET_Y=-0.1 # Crop scale multiplier based on face width # 1.0 = crop width equals face width, 2.0 = crop is 2x face width -VITE_CROP_SCALE=2.5 +PUBLIC_CROP_SCALE=2.5 diff --git a/src/lib/components/PhotoCrop.svelte b/src/lib/components/PhotoCrop.svelte index 0859bfc..7893fbc 100644 --- a/src/lib/components/PhotoCrop.svelte +++ b/src/lib/components/PhotoCrop.svelte @@ -1,5 +1,6 @@