fix(routes): migrate login page state to Svelte 5 runes

Replace plain let bindings with $state() runes in login form state;
ignore GitService runtime repos (backend/git_repos) in .gitignore.
This commit is contained in:
2026-08-02 23:54:13 +07:00
parent 52a987e415
commit b87b9a22b4
2 changed files with 7 additions and 4 deletions

3
.gitignore vendored
View File

@@ -113,3 +113,6 @@ axiom-mcp-tools-audit-report.md
*.docx
backend/relative
.kilo/plans
# GitService runtime repos (test artifacts, lock files)
backend/git_repos/

View File

@@ -23,10 +23,10 @@ import { SvelteURLSearchParams } from "svelte/reactivity";
import { log } from '$lib/cot-logger';
import { t } from '$lib/i18n/index.svelte.js';
let username = '';
let password = '';
let error = '';
let loading = false;
let username = $state('');
let password = $state('');
let error = $state('');
let loading = $state(false);
let returnUrl: string | null = $state(null);
// Read returnUrl from query params on mount