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

@@ -88,7 +88,8 @@
showQr = false;
expiresIn = null;
maxDownloads = null;
const current = ++token;
token += 1;
const current = token;
try {
const found = await lookupShare(target);
if (current === token) {
@@ -172,7 +173,7 @@
<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>
@@ -195,11 +196,11 @@
<div class="qr-row">
<button
type="button"
class="qr-toggle"
onclick={() => {
showQr = !showQr;
}}
type="button"
>
<Icon name={showQr ? "collapse" : "webapp"} size="1rem" />
{showQr ? "Скрыть QR-код" : "Показать QR-код"}
@@ -207,7 +208,7 @@
</div>
{#if showQr}
<div class="qr-slot">
<QrCode value={shareUrl(share)} label="QR-код ссылки на файл" />
<QrCode label="QR-код ссылки на файл" value={shareUrl(share)} />
</div>
{/if}
@@ -222,12 +223,12 @@
<div class="segments">
{#each limitChoices as choice (choice.label)}
<button
type="button"
class="segment"
class:selected={maxDownloads === choice.value}
onclick={() => {
maxDownloads = choice.value;
}}
type="button"
class:selected={maxDownloads === choice.value}
>
{choice.label}
</button>
@@ -240,12 +241,12 @@
<div class="segments">
{#each liveExpiryChoices as choice (choice.label)}
<button
type="button"
class="segment"
class:selected={expiresIn === choice.value}
onclick={() => {
expiresIn = choice.value;
}}
type="button"
class:selected={expiresIn === choice.value}
>
{choice.label}
</button>
@@ -268,12 +269,12 @@
<div class="segments">
{#each expiryChoices as choice (choice.label)}
<button
type="button"
class="segment"
class:selected={expiresIn === choice.value}
onclick={() => {
expiresIn = choice.value;
}}
type="button"
class:selected={expiresIn === choice.value}
>
{choice.label}
</button>
@@ -286,12 +287,12 @@
<div class="segments">
{#each limitChoices as choice (choice.label)}
<button
type="button"
class="segment"
class:selected={maxDownloads === choice.value}
onclick={() => {
maxDownloads = choice.value;
}}
type="button"
class:selected={maxDownloads === choice.value}
>
{choice.label}
</button>
@@ -309,12 +310,12 @@
{#if !loading}
<div class="dialog-actions">
{#if share}
<Button variant="danger" pill loading={busy} onclick={revoke}>
<Button loading={busy} onclick={revoke} pill variant="danger">
Отозвать
</Button>
<Button pill loading={busy} onclick={applyLimits}>Сохранить</Button>
<Button loading={busy} onclick={applyLimits} pill>Сохранить</Button>
{:else}
<Button pill fluid loading={busy} onclick={publish}>
<Button fluid loading={busy} onclick={publish} pill>
Открыть доступ
</Button>
{/if}