mirror of
https://github.com/open-webui/open-webui.git
synced 2026-11-30 00:45:12 -05:00
refac
This commit is contained in:
1 parent
7b7dba6eec
commit
7d205a86dc
76 files changed
+557
-500
No files matched your search
@@ -7,7 +7,7 @@
|
||||
dayjs.extend(relativeTime);
|
||||
|
||||
import { getContext } from 'svelte';
|
||||
const i18n = getContext('i18n');
|
||||
const i18n = getContext<typeof import('$lib/i18n').default>('i18n');
|
||||
|
||||
import Tooltip from '$lib/components/common/Tooltip.svelte';
|
||||
import Dropdown from '$lib/components/common/Dropdown.svelte';
|
||||
@@ -150,9 +150,15 @@
|
||||
|
||||
<div class="flex items-center gap-2 shrink-0">
|
||||
{#if directory.updated_at}
|
||||
<Tooltip content={dayjs(directory.updated_at * 1000).format('LLLL')}>
|
||||
<Tooltip
|
||||
content={dayjs(directory.updated_at * 1000)
|
||||
.locale($i18n.language)
|
||||
.format('LLLL')}
|
||||
>
|
||||
<div class="text-xs text-gray-400">
|
||||
{dayjs(directory.updated_at * 1000).fromNow()}
|
||||
{dayjs(directory.updated_at * 1000)
|
||||
.locale($i18n.language)
|
||||
.fromNow()}
|
||||
</div>
|
||||
</Tooltip>
|
||||
{/if}
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
dayjs.extend(relativeTime);
|
||||
|
||||
import { getContext } from 'svelte';
|
||||
const i18n = getContext('i18n');
|
||||
const i18n = getContext<typeof import('$lib/i18n').default>('i18n');
|
||||
|
||||
import { capitalizeFirstLetter, formatFileSize } from '$lib/utils';
|
||||
import { WEBUI_BASE_URL } from '$lib/constants';
|
||||
@@ -170,9 +170,15 @@
|
||||
|
||||
<div class="flex items-center gap-2 shrink-0">
|
||||
{#if file?.updated_at}
|
||||
<Tooltip content={dayjs(file.updated_at * 1000).format('LLLL')}>
|
||||
<Tooltip
|
||||
content={dayjs(file.updated_at * 1000)
|
||||
.locale($i18n.language)
|
||||
.format('LLLL')}
|
||||
>
|
||||
<div class="text-xs text-gray-400">
|
||||
{dayjs(file.updated_at * 1000).fromNow()}
|
||||
{dayjs(file.updated_at * 1000)
|
||||
.locale($i18n.language)
|
||||
.fromNow()}
|
||||
</div>
|
||||
</Tooltip>
|
||||
{/if}
|
||||
|
||||
Reference in new issue
Block a user