diff --git a/.DS_Store b/.DS_Store index b9b5395..2e5e93b 100644 Binary files a/.DS_Store and b/.DS_Store differ diff --git a/App.tsx b/App.tsx index 69130e8..9e76762 100644 --- a/App.tsx +++ b/App.tsx @@ -11,11 +11,13 @@ import { ChevronLeft, ExternalLink, Sparkles, User, Lock, ArrowRight, AlertCircl import { generateStoryContent } from './services/geminiService'; import { getEnvVar } from './utils/envUtils'; +// --- CONFIG IMPORT --- +import { AUTHOR_CONFIG } from './_EDITABLE_CONFIG/author'; +import { UI_TEXT } from './_EDITABLE_CONFIG/ui_text'; + const STORAGE_KEY = 'gpx-storyteller-state-v6'; const AUTH_KEY = 'promptstory-auth-token'; -// --- PASSWORD CONFIGURATION --- -// STRICT MODE: No fallbacks. The environment variable must be set in Coolify/Vercel/Netlify. const APP_PASSWORD = getEnvVar('VITE_APP_PASSWORD'); const INITIAL_STATE: WizardState = { @@ -44,12 +46,9 @@ const INITIAL_STATE: WizardState = { } }; -// --- LOGIN SCREEN COMPONENT --- const LoginScreen: React.FC<{ onLogin: (success: boolean) => void }> = ({ onLogin }) => { const [input, setInput] = useState(''); const [error, setError] = useState(false); - - // Check if password is misconfigured (empty) const isConfigMissing = !APP_PASSWORD; const handleSubmit = (e: React.FormEvent) => { @@ -67,16 +66,10 @@ const LoginScreen: React.FC<{ onLogin: (success: boolean) => void }> = ({ onLogi
- Aplikacja nie wykryła hasła w zmiennych środowiskowych. + Missing VITE_APP_PASSWORD.
-Brakuje zmiennej: VITE_APP_PASSWORD
-Jeśli używasz Coolify/Vercel:
-1. Dodaj zmienną w panelu.
-2. Przebuduj projekt (Re-deploy).
-Wprowadź hasło, aby uzyskać dostęp.
+{UI_TEXT.login.desc}
- PromptStory v1.2 • Secure Production Build -
setLogoError(true)}
- alt="PromptStory Logo"
- className="w-10 h-10 object-contain"
- />
- ) : (
-