This commit is contained in:
Timothy Jaeryang Baek committed 2026-10-08 23:49:38 +04:00
1 parent 7b7dba6eec
commit 7d205a86dc
76 files changed
+557 -500

No files matched your search

@@ -11,7 +11,7 @@
import { chatId } from '$lib/stores';
import SearchInput from './SearchInput.svelte';
const i18n = getContext('i18n');
const i18n = getContext<typeof import('$lib/i18n').default>('i18n');
export let onSelect = (e) => {};
@@ -83,8 +83,7 @@
return {
...item,
type: 'chat',
name: item.title,
description: item.snippet || dayjs(item.updated_at * 1000).fromNow()
name: item.title
};
})
];
@@ -141,7 +140,10 @@
>
<div class="text-black dark:text-gray-100 flex items-center gap-1.5">
<Tooltip
content={item.description || decodeString(item?.name)}
content={item.snippet ||
dayjs(item.updated_at * 1000)
.locale($i18n.language)
.fromNow()}
placement="top-start"
>
<div class="line-clamp-1 flex-1">
@@ -11,7 +11,7 @@
import Loader from '$lib/components/common/Loader.svelte';
import SearchInput from './SearchInput.svelte';
const i18n = getContext('i18n');
const i18n = getContext<typeof import('$lib/i18n').default>('i18n');
export let onSelect = (e) => {};
@@ -83,8 +83,7 @@
return {
...note,
type: 'note',
name: note.title,
description: dayjs(note.updated_at / 1000000).fromNow()
name: note.title
};
})
];
@@ -146,7 +145,9 @@
</Tooltip>
<Tooltip
content={item.description || decodeString(item?.name)}
content={dayjs(item.updated_at / 1000000)
.locale($i18n.language)
.fromNow()}
placement="top-start"
>
<div class="line-clamp-1 flex-1">
@@ -3,10 +3,10 @@
import Search from '$lib/components/icons/Search.svelte';
const i18n = getContext('i18n');
const i18n = getContext<typeof import('$lib/i18n').default>('i18n');
export let value = '';
export let placeholder = $i18n.t('Search');
export let placeholder: string | undefined = undefined;
</script>
<div class="my-0.5 flex ml-2 mr-0.5 h-[1.6875rem] shrink-0 items-center gap-2">
@@ -15,9 +15,9 @@
<input
bind:value
class="w-full bg-transparent text-[0.8125rem] font-normal outline-hidden placeholder:text-gray-400 dark:placeholder:text-gray-500"
{placeholder}
placeholder={placeholder ?? $i18n.t('Search')}
autocomplete="off"
aria-label={placeholder}
aria-label={placeholder ?? $i18n.t('Search')}
on:click|stopPropagation
on:keydown|stopPropagation
/>