style(frontend): apply ultracite 7.12 formatting and lint rules
This commit is contained in:
1 parent
fc4758aa0b
commit
c8e5cff871
109 files changed
+845
-817
No files matched your search
@@ -65,7 +65,7 @@
|
||||
return;
|
||||
}
|
||||
untrack(() => {
|
||||
token++;
|
||||
token += 1;
|
||||
items = [];
|
||||
done = false;
|
||||
loading = false;
|
||||
@@ -118,7 +118,7 @@
|
||||
}
|
||||
|
||||
async function reload(id: number) {
|
||||
token++;
|
||||
token += 1;
|
||||
items = [];
|
||||
done = false;
|
||||
loading = false;
|
||||
@@ -127,24 +127,24 @@
|
||||
</script>
|
||||
|
||||
{#if peerId === null}
|
||||
<EmptyState title="Сторис" description="Откройте чат" />
|
||||
<EmptyState description="Откройте чат" title="Сторис" />
|
||||
{:else}
|
||||
<div class="toolbar">
|
||||
<Button
|
||||
variant="secondary"
|
||||
pill
|
||||
smaller
|
||||
loading={backfilling}
|
||||
onclick={() => peerId !== null && backfill(peerId)}
|
||||
pill
|
||||
smaller
|
||||
variant="secondary"
|
||||
>
|
||||
<Icon name="cloud-download" />Загрузить старые
|
||||
</Button>
|
||||
<Button
|
||||
variant="translucent"
|
||||
aria-label="Обновить"
|
||||
onclick={() => peerId !== null && reload(peerId).catch(() => undefined)}
|
||||
round
|
||||
smaller
|
||||
onclick={() => peerId !== null && reload(peerId).catch(() => undefined)}
|
||||
aria-label="Обновить"
|
||||
variant="translucent"
|
||||
>
|
||||
<Icon name="reload" />
|
||||
</Button>
|
||||
@@ -155,35 +155,35 @@
|
||||
<div class="center"><Spinner /></div>
|
||||
{:else}
|
||||
<EmptyState
|
||||
title="Нет сторис"
|
||||
description="Нажмите «Загрузить старые», чтобы забрать архив"
|
||||
title="Нет сторис"
|
||||
/>
|
||||
{/if}
|
||||
{:else}
|
||||
<div class="grid">
|
||||
{#each items as item, index (item.story_id)}
|
||||
<StoryTile
|
||||
story={item}
|
||||
preview={previews[item.story_id]}
|
||||
onopen={() => openViewer(index)}
|
||||
preview={previews[item.story_id]}
|
||||
story={item}
|
||||
/>
|
||||
{/each}
|
||||
</div>
|
||||
|
||||
{#if !done}
|
||||
<button
|
||||
type="button"
|
||||
class="more"
|
||||
onclick={() => peerId !== null && loadMore(peerId)}
|
||||
disabled={loading}
|
||||
onclick={() => peerId !== null && loadMore(peerId)}
|
||||
type="button"
|
||||
>
|
||||
{loading ? "Загрузка…" : "Показать ещё"}
|
||||
</button>
|
||||
{/if}
|
||||
|
||||
<StoryViewer
|
||||
{peerId}
|
||||
{items}
|
||||
{peerId}
|
||||
bind:index={viewerIndex}
|
||||
bind:open={viewerOpen}
|
||||
/>
|
||||
|
||||
Reference in new issue
Block a user