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

@@ -70,7 +70,7 @@
return;
}
untrack(() => {
token++;
token += 1;
const current = token;
loading = true;
items = [];
@@ -90,7 +90,7 @@
</script>
{#if chatId === null || messageId === null}
<EmptyState title="Callback-данные" description="Сообщение не выбрано" />
<EmptyState description="Сообщение не выбрано" title="Callback-данные" />
{:else if loading && items.length === 0}
<div class="center"><Spinner /></div>
{:else if items.length === 0}
@@ -106,10 +106,10 @@
</div>
{#if value}
<button
type="button"
aria-label="Скопировать"
class="copy"
onclick={() => copy(item.position, value)}
aria-label="Скопировать"
type="button"
>
<Icon name={copied === item.position ? "check" : "copy"} />
</button>
@@ -36,7 +36,7 @@
return;
}
untrack(() => {
token++;
token += 1;
const current = token;
loading = true;
items = [];
@@ -56,7 +56,7 @@
</script>
{#if chatId === null || messageId === null}
<EmptyState title="Ссылки" description="Сообщение не выбрано" />
<EmptyState description="Сообщение не выбрано" title="Ссылки" />
{:else if loading && items.length === 0}
<div class="center"><Spinner /></div>
{:else if items.length === 0}
@@ -73,8 +73,8 @@
<a
class="url"
href={safeHref(item.url)}
target="_blank"
rel="noopener"
target="_blank"
>
{item.url}
</a>
@@ -44,7 +44,7 @@
return;
}
untrack(() => {
token++;
token += 1;
const current = token;
loading = true;
items = [];
@@ -65,14 +65,14 @@
</script>
{#if chatId === null || messageId === null}
<EmptyState title="Реакции" description="Сообщение не выбрано" />
<EmptyState description="Сообщение не выбрано" title="Реакции" />
{:else if loading && items.length === 0}
<div class="center"><Spinner /></div>
{:else if items.length === 0}
<EmptyState title="Нет реакций" />
{:else}
<div class="groups">
{#each groups as [ reaction, reactors ] (reaction)}
{#each groups as [reaction, reactors] (reaction)}
<div class="group">
<div class="group-head">
<span class="emoji">
@@ -92,11 +92,11 @@
{@const peer = peers.get(reactor.peer_id)}
<li class:removed={reactor.removed_at !== null}>
<Avatar
name={peer ? peerName(peer) : String(reactor.peer_id)}
avatar={{ id: reactor.peer_id, kind: "peer" }}
colorKey={peerColorIndex(reactor.peer_id)}
size={2.25}
avatar={{ kind: "peer", id: reactor.peer_id }}
hasAvatar={peer?.has_avatar ?? false}
name={peer ? peerName(peer) : String(reactor.peer_id)}
size={2.25}
/>
<span class="info">
<span class="name"