Thème
Superviseur — Frontend / features/auth/useLoginView / useLoginView
Fonction: useLoginView()
ts
function useLoginView(): object;Défini dans: features/auth/useLoginView.ts:38
Retourne
| Nom | Type | Valeur par défaut | Description | Défini dans |
|---|---|---|---|---|
connectionStore | Store<"connection", Pick<{ isApiConnected: Ref<boolean, boolean>; lastCheck: Ref<number, number>; statusMessage: Ref<string, string>; checkConnection: () => Promise<boolean>; startMonitoring: (intervalMs) => void; stopMonitoring: () => void; }, "isApiConnected" | "lastCheck" | "statusMessage">, Pick<{ isApiConnected: Ref<boolean, boolean>; lastCheck: Ref<number, number>; statusMessage: Ref<string, string>; checkConnection: () => Promise<boolean>; startMonitoring: (intervalMs) => void; stopMonitoring: () => void; }, never>, Pick<{ isApiConnected: Ref<boolean, boolean>; lastCheck: Ref<number, number>; statusMessage: Ref<string, string>; checkConnection: () => Promise<boolean>; startMonitoring: (intervalMs) => void; stopMonitoring: () => void; }, "checkConnection" | "startMonitoring" | "stopMonitoring">> | - | - | features/auth/useLoginView.ts:285 |
isLoading | Ref<boolean, boolean> | - | - | features/auth/useLoginView.ts:286 |
error | Ref<string, string> | - | - | features/auth/useLoginView.ts:287 |
cooldownSeconds | Ref<number, number> | - | - | features/auth/useLoginView.ts:288 |
showPassword | Ref<boolean, boolean> | - | - | features/auth/useLoginView.ts:289 |
passwordInput | Ref<HTMLInputElement | null, HTMLInputElement | null> | - | - | features/auth/useLoginView.ts:290 |
step | Ref<"password" | "select", "password" | "select"> | - | Étape courante : choix du profil, puis mot de passe. Les deux vivent sur une piste glissante. | features/auth/useLoginView.ts:291 |
filter | Ref<string, string> | - | - | features/auth/useLoginView.ts:292 |
languages | object[] | - | - | features/auth/useLoginView.ts:293 |
setLanguage() | (code) => void | - | - | features/auth/useLoginView.ts:294 |
clock | Ref<string, string> | - | - | features/auth/useLoginView.ts:295 |
selectedUser | Ref< | { username: string; role: string; avatar?: string; lastLogin: number; } | null, | RecentUser | { username: string; role: string; avatar?: string; lastLogin: number; } | null> | - | - | features/auth/useLoginView.ts:296 |
filteredUsers | ComputedRef<RecentUser[]> | - | - | features/auth/useLoginView.ts:297 |
isLocalRecent() | (username) => boolean | - | - | features/auth/useLoginView.ts:298 |
form | object | - | - | features/auth/useLoginView.ts:299 |
form.username | string | '' | - | features/auth/useLoginView.ts:102 |
form.password | string | '' | - | features/auth/useLoginView.ts:103 |
removeUser() | (username) => void | - | - | features/auth/useLoginView.ts:300 |
selectUser() | (user) => Promise<void> | - | - | features/auth/useLoginView.ts:301 |
showManualLogin() | () => void | - | - | features/auth/useLoginView.ts:302 |
backToSelection() | () => void | - | - | features/auth/useLoginView.ts:303 |
handleLogin() | () => Promise<void> | - | - | features/auth/useLoginView.ts:304 |