chore: format

This commit is contained in:
Timothy Jaeryang Baek
2026-07-27 00:12:47 -04:00
parent e53ff57fb5
commit 20647bd2d5
20 changed files with 67 additions and 70 deletions

View File

@@ -214,11 +214,23 @@
<div>
<div class="mb-1 text-xs text-gray-500">{$i18n.t('When')}</div>
<div class="flex items-center gap-2 text-sm flex-wrap">
<input type="date" class="bg-transparent outline-hidden dark:scheme-dark" bind:value={startDate} />
<input
type="date"
class="bg-transparent outline-hidden dark:scheme-dark"
bind:value={startDate}
/>
{#if !allDay}
<input type="time" class="bg-transparent outline-hidden dark:scheme-dark" bind:value={startTime} />
<input
type="time"
class="bg-transparent outline-hidden dark:scheme-dark"
bind:value={startTime}
/>
<span class="text-gray-300 dark:text-gray-600"></span>
<input type="time" class="bg-transparent outline-hidden dark:scheme-dark" bind:value={endTime} />
<input
type="time"
class="bg-transparent outline-hidden dark:scheme-dark"
bind:value={endTime}
/>
{/if}
<label class="flex items-center gap-1.5 cursor-pointer text-xs text-gray-400 ml-auto">
<input type="checkbox" class="accent-blue-500" bind:checked={allDay} />

View File

@@ -793,9 +793,7 @@
{/if}
</button>
<div
class="translate-y-[0.5px] flex min-w-0 flex-1 items-center gap-1.5 pr-6 text-start"
>
<div class="translate-y-[0.5px] flex min-w-0 flex-1 items-center gap-1.5 pr-6 text-start">
{#if edit}
<input
id="folder-{folderId}-input"

View File

@@ -309,7 +309,10 @@
commitAccessGrants(next);
};
const togglePrincipalWrite = (principalType: 'user' | 'group' | 'anyone', principalId: string) => {
const togglePrincipalWrite = (
principalType: 'user' | 'group' | 'anyone',
principalId: string
) => {
let next = [...currentGrants()];
const hasWrite = hasPrincipalGrant(principalType, principalId, 'write');
if (hasWrite) {

View File

@@ -75,7 +75,10 @@ export const registerFolderRefreshHandler = (handler: FolderRefreshHandler) => {
};
};
export const refreshFolderChatLists = async (folderId?: string | null, chat?: ChatListItem | null) => {
export const refreshFolderChatLists = async (
folderId?: string | null,
chat?: ChatListItem | null
) => {
await Promise.all([...folderRefreshHandlers].map((handler) => handler(folderId, chat)));
};