chore(frontend): biome 2.5.15 stops flagging regexp exec results as always truthy, svelte files reformatted by it
This commit is contained in:
1 parent
56146e4e8d
commit
2512a7988d
17 files changed
+74
-31
No files matched your search
@@ -151,7 +151,9 @@
|
||||
</Button>
|
||||
</div>
|
||||
<ContextMenu>
|
||||
{#snippet children({ props })}
|
||||
{#snippet children({
|
||||
props,
|
||||
})}
|
||||
<button
|
||||
{...props}
|
||||
aria-label="Открыть профиль"
|
||||
|
||||
@@ -59,7 +59,9 @@
|
||||
</script>
|
||||
|
||||
<ContextMenu>
|
||||
{#snippet children({ props })}
|
||||
{#snippet children({
|
||||
props,
|
||||
})}
|
||||
<button
|
||||
{...props}
|
||||
class="Chat ListItem-button"
|
||||
|
||||
@@ -27,7 +27,9 @@
|
||||
}
|
||||
</script>
|
||||
|
||||
{#snippet tree(items: EntityTreeNode[])}
|
||||
{#snippet tree(
|
||||
items: EntityTreeNode[]
|
||||
)}
|
||||
{#each items as node, i (i)}
|
||||
{#if node.kind === "text"}
|
||||
{node.text}
|
||||
@@ -37,7 +39,9 @@
|
||||
{/each}
|
||||
{/snippet}
|
||||
|
||||
{#snippet entity(node: EntityNode)}
|
||||
{#snippet entity(
|
||||
node: EntityNode
|
||||
)}
|
||||
{@const type = node.entity.type}
|
||||
{#if type === "bold"}
|
||||
<strong>{@render tree(node.children)}</strong>
|
||||
@@ -66,7 +70,10 @@
|
||||
>{#if node.entity.language}<span class="pre-lang">{node.entity.language}</span>{/if}<code>{@render tree(node.children)}</code></pre>
|
||||
{:else if type === "blockquote"}
|
||||
<blockquote class="blockquote">{@render tree(node.children)}</blockquote>
|
||||
{:else if type === "url" || type === "text_link" || type === "email" || type === "phone_number"}
|
||||
{:else if type === "url" ||
|
||||
type === "text_link" ||
|
||||
type === "email" ||
|
||||
type === "phone_number"}
|
||||
<a
|
||||
class="link"
|
||||
href={linkHref(node)}
|
||||
@@ -75,7 +82,11 @@
|
||||
class:own
|
||||
>{@render tree(node.children)}</a
|
||||
>
|
||||
{:else if type === "mention" || type === "text_mention" || type === "hashtag" || type === "cashtag" || type === "bot_command"}
|
||||
{:else if type === "mention" ||
|
||||
type === "text_mention" ||
|
||||
type === "hashtag" ||
|
||||
type === "cashtag" ||
|
||||
type === "bot_command"}
|
||||
<span class="link" class:own>{@render tree(node.children)}</span>
|
||||
{:else}
|
||||
{@render tree(node.children)}
|
||||
|
||||
@@ -50,7 +50,9 @@
|
||||
{:else if result.state === "ready"}
|
||||
<a
|
||||
class="file"
|
||||
download={isActiveContent(result.mime) ? `media_${version.id}` : undefined}
|
||||
download={isActiveContent(result.mime)
|
||||
? `media_${version.id}`
|
||||
: undefined}
|
||||
href={result.url}
|
||||
rel="noopener"
|
||||
target="_blank"
|
||||
|
||||
@@ -184,7 +184,9 @@
|
||||
<div class="media-actions">
|
||||
{#if canSave}
|
||||
<ContextMenu>
|
||||
{#snippet children({ props })}
|
||||
{#snippet children({
|
||||
props,
|
||||
})}
|
||||
<button
|
||||
{...props}
|
||||
aria-label="Скачать файл"
|
||||
|
||||
@@ -131,7 +131,9 @@
|
||||
</script>
|
||||
|
||||
<ContextMenu>
|
||||
{#snippet children({ props })}
|
||||
{#snippet children({
|
||||
props,
|
||||
})}
|
||||
<div
|
||||
{...props}
|
||||
class="Message"
|
||||
|
||||
@@ -137,7 +137,9 @@
|
||||
</script>
|
||||
|
||||
<ContextMenu>
|
||||
{#snippet children({ props })}
|
||||
{#snippet children({
|
||||
props,
|
||||
})}
|
||||
<div {...props} class="message-media" use:visible={start}>
|
||||
{#if message.is_self_destruct}
|
||||
<button class="media-chip self-destruct" onclick={onopen} type="button">
|
||||
|
||||
@@ -12,7 +12,9 @@
|
||||
</script>
|
||||
|
||||
<div class="Reactions" class:own>
|
||||
{#each reactions as reaction, index (reaction.custom_emoji_id ?? reaction.emoji ?? index)}
|
||||
{#each reactions as reaction, index (reaction.custom_emoji_id ??
|
||||
reaction.emoji ??
|
||||
index)}
|
||||
<button
|
||||
class="reaction"
|
||||
{onclick}
|
||||
|
||||
@@ -72,7 +72,9 @@
|
||||
{/if}
|
||||
<span class="badge">
|
||||
<Icon name="microphone" size="0.875rem" />
|
||||
{formatDuration(paused && currentTime <= POSTER_TIME ? duration : remaining)}
|
||||
{formatDuration(
|
||||
paused && currentTime <= POSTER_TIME ? duration : remaining
|
||||
)}
|
||||
</span>
|
||||
</button>
|
||||
{#if transcript}
|
||||
|
||||
@@ -172,7 +172,11 @@
|
||||
});
|
||||
</script>
|
||||
|
||||
{#snippet card(record: PolicyRecord, title: string, onremove?: () => void)}
|
||||
{#snippet card(
|
||||
record: PolicyRecord,
|
||||
title: string,
|
||||
onremove?: () => void
|
||||
)}
|
||||
<div class="card">
|
||||
<div class="card-head">
|
||||
<span class="card-title">{title}</span>
|
||||
|
||||
@@ -181,7 +181,9 @@
|
||||
<div class="grid">
|
||||
{#each items as item, index (item.id)}
|
||||
<ContextMenu>
|
||||
{#snippet children({ props })}
|
||||
{#snippet children({
|
||||
props,
|
||||
})}
|
||||
<button
|
||||
{...props}
|
||||
class="tile"
|
||||
@@ -237,7 +239,9 @@
|
||||
{#each items as item, index (item.id)}
|
||||
<li>
|
||||
<ContextMenu>
|
||||
{#snippet children({ props })}
|
||||
{#snippet children({
|
||||
props,
|
||||
})}
|
||||
<button
|
||||
{...props}
|
||||
onclick={() => open(index)}
|
||||
|
||||
@@ -178,7 +178,9 @@
|
||||
{@const state = shareState(share)}
|
||||
<li class="row" class:inactive={state !== "active"}>
|
||||
<ContextMenu>
|
||||
{#snippet children({ props })}
|
||||
{#snippet children({
|
||||
props,
|
||||
})}
|
||||
<button
|
||||
{...props}
|
||||
class="head"
|
||||
|
||||
@@ -45,7 +45,9 @@
|
||||
</script>
|
||||
|
||||
<ContextMenu>
|
||||
{#snippet children({ props })}
|
||||
{#snippet children({
|
||||
props,
|
||||
})}
|
||||
<button
|
||||
{...props}
|
||||
class="tile"
|
||||
|
||||
@@ -184,7 +184,7 @@
|
||||
<Dialog.Root bind:open>
|
||||
<Dialog.Portal>
|
||||
<Dialog.Overlay class="story-overlay" />
|
||||
<Dialog.Content class="story-content {held ? 'held' : ''}">
|
||||
<Dialog.Content class="story-content {held ? "held" : ""}">
|
||||
<Dialog.Title class="story-a11y-title">Сторис</Dialog.Title>
|
||||
<div class="bars">
|
||||
{#each items as item, i (item.story_id)}
|
||||
@@ -226,7 +226,9 @@
|
||||
{/if}
|
||||
{#if canSave}
|
||||
<ContextMenu>
|
||||
{#snippet children({ props })}
|
||||
{#snippet children({
|
||||
props,
|
||||
})}
|
||||
<button
|
||||
{...props}
|
||||
aria-label="Скачать сторис"
|
||||
|
||||
@@ -48,7 +48,9 @@
|
||||
|
||||
<ContextMenu.Root bind:open>
|
||||
<ContextMenu.Trigger>
|
||||
{#snippet child({ props })}
|
||||
{#snippet child({
|
||||
props,
|
||||
})}
|
||||
{@render children({ props: triggerProps(props) })}
|
||||
{/snippet}
|
||||
</ContextMenu.Trigger>
|
||||
|
||||
Reference in new issue
Block a user