mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-14 20:21:09 +02:00
🧑💻 feat(dx): improve local development experience
- Add dev credentials pre-fill on login page (dev@manacore.local) - Add initialPassword prop to LoginPage component - Add seed script for dev user (pnpm db:seed:dev in mana-core-auth) - Add OLLAMA_URL to .env.development for Mac Mini connection
This commit is contained in:
parent
ca00672016
commit
e72f3b7865
5 changed files with 138 additions and 4 deletions
|
|
@ -80,6 +80,8 @@
|
|||
verified?: boolean;
|
||||
/** Pre-fill email field (e.g., after email verification) */
|
||||
initialEmail?: string;
|
||||
/** Pre-fill password field (for dev mode) */
|
||||
initialPassword?: string;
|
||||
}
|
||||
|
||||
let {
|
||||
|
|
@ -102,6 +104,7 @@
|
|||
translations = {},
|
||||
verified = false,
|
||||
initialEmail = '',
|
||||
initialPassword = '',
|
||||
}: Props = $props();
|
||||
|
||||
const t = $derived({ ...defaultTranslations, ...translations });
|
||||
|
|
@ -110,7 +113,7 @@
|
|||
let error = $state<string | null>(null);
|
||||
let errorField = $state<'email' | 'password' | 'general' | null>(null);
|
||||
let email = $state(initialEmail);
|
||||
let password = $state('');
|
||||
let password = $state(initialPassword);
|
||||
let showPassword = $state(false);
|
||||
let rememberMe = $state(false);
|
||||
let showSuccess = $state(false);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue