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
@@ -109,6 +109,7 @@
|
||||
ui.openMessagePanel("annotations", message.message_id);
|
||||
}
|
||||
function jumpToReply() {
|
||||
// biome-ignore lint/suspicious/noEqualsToNull: optional chaining yields undefined here
|
||||
if (message.reply?.message_id != null) {
|
||||
onjump(message.reply.message_id);
|
||||
}
|
||||
@@ -134,24 +135,24 @@
|
||||
<div
|
||||
{...props}
|
||||
class="Message"
|
||||
class:own
|
||||
class:deleted
|
||||
class:highlighted
|
||||
class:first-in-group={firstInGroup}
|
||||
class:last-in-group={lastInGroup}
|
||||
class:with-avatar={isGroupChat}
|
||||
data-message-id={message.message_id}
|
||||
class:deleted
|
||||
class:first-in-group={firstInGroup}
|
||||
class:highlighted
|
||||
class:last-in-group={lastInGroup}
|
||||
class:own
|
||||
class:with-avatar={isGroupChat}
|
||||
in:appear={{ disabled: !animate }}
|
||||
>
|
||||
{#if isGroupChat}
|
||||
<div class="avatar-slot">
|
||||
{#if lastInGroup && avatarId !== null}
|
||||
<Avatar
|
||||
name={senderName}
|
||||
avatar={{ id: avatarId, kind: "peer" }}
|
||||
colorKey={avatarId}
|
||||
size={2.125}
|
||||
avatar={{ kind: "peer", id: avatarId }}
|
||||
hasAvatar={avatarHas}
|
||||
name={senderName}
|
||||
size={2.125}
|
||||
/>
|
||||
{/if}
|
||||
</div>
|
||||
@@ -165,7 +166,7 @@
|
||||
<ForwardHeader forward={message.forward} />
|
||||
{/if}
|
||||
{#if message.reply}
|
||||
<ReplyHeader reply={message.reply} {onjump} />
|
||||
<ReplyHeader {onjump} reply={message.reply} />
|
||||
{/if}
|
||||
{#if deleted}
|
||||
<span class="deleted-tag">
|
||||
@@ -185,49 +186,49 @@
|
||||
{#if !special}
|
||||
{#if message.media.length > 1}
|
||||
<MediaAlbum
|
||||
media={message.media}
|
||||
chatId={message.chat_id}
|
||||
media={message.media}
|
||||
onopen={onmedia}
|
||||
{own}
|
||||
/>
|
||||
{:else if message.has_media}
|
||||
<MessageMedia {message} {own} onopen={() => onmedia(0)} />
|
||||
<MessageMedia {message} onopen={() => onmedia(0)} {own} />
|
||||
{/if}
|
||||
{/if}
|
||||
{#if hasText}
|
||||
<div class="text">
|
||||
<EntityText
|
||||
text={message.text ?? ""}
|
||||
entities={message.entities}
|
||||
{own}
|
||||
text={message.text ?? ""}
|
||||
/>
|
||||
</div>
|
||||
{:else if !(message.has_media || deleted || special)}
|
||||
<div class="text empty">(no text)</div>
|
||||
{/if}
|
||||
{#if message.web_page}
|
||||
<WebPage {message} {own} {onmedia} />
|
||||
<WebPage {message} {onmedia} {own} />
|
||||
{/if}
|
||||
{#if message.reactions.length}
|
||||
<Reactions
|
||||
reactions={message.reactions}
|
||||
{own}
|
||||
onclick={openReactions}
|
||||
{own}
|
||||
reactions={message.reactions}
|
||||
/>
|
||||
{/if}
|
||||
{#if linkCount > 0}
|
||||
<button type="button" class="detail-chip" onclick={openLinks}>
|
||||
<button class="detail-chip" onclick={openLinks} type="button">
|
||||
<Icon name="link" size="0.875rem" />
|
||||
{linkCount}
|
||||
{linkCount === 1 ? "ссылка" : "ссылки"}
|
||||
</button>
|
||||
{/if}
|
||||
<MessageMeta {message} {own} {onversions} />
|
||||
<MessageMeta {message} {onversions} {own} />
|
||||
{#if message.inline_buttons.length}
|
||||
<InlineButtons rows={message.inline_buttons} />
|
||||
{/if}
|
||||
{#if hasCallbacks}
|
||||
<button type="button" class="detail-chip" onclick={openCallbacks}>
|
||||
<button class="detail-chip" onclick={openCallbacks} type="button">
|
||||
<Icon name="bot-command" size="0.875rem" />
|
||||
Callback-данные
|
||||
</button>
|
||||
@@ -265,7 +266,7 @@
|
||||
>Версии</ContextMenuItem
|
||||
>
|
||||
{/if}
|
||||
{#if message.reply?.message_id != null}
|
||||
{#if (message.reply?.message_id ?? null) !== null}
|
||||
<ContextMenuItem icon="reply" onselect={jumpToReply}
|
||||
>Перейти к ответу</ContextMenuItem
|
||||
>
|
||||
|
||||
Reference in new issue
Block a user