style(frontend): apply ultracite 7.12 formatting and lint rules

This commit is contained in:
hh committed 2026-09-19 00:21:07 +02:00
1 parent fc4758aa0b
commit c8e5cff871
109 files changed
+845 -817

No files matched your search

@@ -31,10 +31,10 @@
let attempt = 0;
const hints: Record<Step, string> = {
qr: "Telegram → Настройки → Устройства → Подключить устройство, и наведите камеру на код.",
phone: "Номер телефона в международном формате, например +79991234567.",
code: "Код отправлен в Telegram на этот номер.",
password: "Аккаунт защищён двухэтапной аутентификацией.",
phone: "Номер телефона в международном формате, например +79991234567.",
qr: "Telegram → Настройки → Устройства → Подключить устройство, и наведите камеру на код.",
};
const filled = $derived.by(() => {
@@ -81,6 +81,7 @@
while (mine === attempt && state.stage === "qr") {
loginId = state.login_id;
qrUrl = state.qr_url ?? "";
// biome-ignore lint/performance/noAwaitInLoops: qr login is polled step by step
state = await pollQrLogin(state.login_id);
}
if (mine === attempt) {
@@ -153,13 +154,13 @@
});
</script>
<Dialog.Root bind:open {onOpenChange}>
<Dialog.Root {onOpenChange} bind:open>
<Dialog.Portal>
<Dialog.Overlay class="dialog-overlay" />
<Dialog.Content class="dialog-content">
<header class="dialog-head">
<Dialog.Title class="dialog-title">Добавить аккаунт</Dialog.Title>
<Dialog.Close class="dialog-close" aria-label="Закрыть">
<Dialog.Close aria-label="Закрыть" class="dialog-close">
<Icon name="close" size="1.25rem" />
</Dialog.Close>
</header>
@@ -168,12 +169,12 @@
<p class="hint">{hints.qr}</p>
<div class="qr-slot">
{#if qrUrl}
<QrCode value={qrUrl} label="QR-код для входа в Telegram" />
<QrCode label="QR-код для входа в Telegram" value={qrUrl} />
{/if}
</div>
</div>
<div class="dialog-actions">
<Button variant="text" pill onclick={usePhone}>
<Button onclick={usePhone} pill variant="text">
Войти по номеру телефона
</Button>
</div>
@@ -184,11 +185,11 @@
{#if step === "phone"}
<div class="input-group">
<input
id="login-phone"
class="form-control"
type="tel"
autocomplete="tel"
class="form-control"
id="login-phone"
placeholder="+7 999 123-45-67"
type="tel"
bind:value={phone}
>
<label for="login-phone">Номер телефона</label>
@@ -196,12 +197,12 @@
{:else if step === "code"}
<div class="input-group">
<input
id="login-code"
class="form-control"
type="text"
inputmode="numeric"
autocomplete="one-time-code"
class="form-control"
id="login-code"
inputmode="numeric"
placeholder="12345"
type="text"
bind:value={code}
>
<label for="login-code">Код подтверждения</label>
@@ -209,11 +210,11 @@
{:else}
<div class="input-group">
<input
id="login-password"
class="form-control"
type="password"
autocomplete="current-password"
class="form-control"
id="login-password"
placeholder="Пароль"
type="password"
bind:value={password}
>
<label for="login-password">Облачный пароль</label>
@@ -222,13 +223,13 @@
</div>
<div class="dialog-actions">
{#if step === "phone"}
<Button variant="text" pill onclick={useQr}>QR-код</Button>
<Button onclick={useQr} pill variant="text">QR-код</Button>
{/if}
<Button
type="submit"
pill
loading={busy}
disabled={busy || !filled}
loading={busy}
pill
type="submit"
>
{step === "phone" ? "Отправить код" : "Продолжить"}
</Button>