mirror of
https://github.com/open-webui/open-webui.git
synced 2026-12-01 01:12:43 -05:00
refac
This commit is contained in:
1 parent
7b7dba6eec
commit
7d205a86dc
76 files changed
+557
-500
No files matched your search
@@ -25,7 +25,7 @@
|
||||
const TIME_RANGES: { key: TimeRange; label: string; days: number }[] = [
|
||||
{ key: '30d', label: '30D', days: 30 },
|
||||
{ key: '1y', label: '1Y', days: 365 },
|
||||
{ key: 'all', label: $i18n.t('All'), days: 0 }
|
||||
{ key: 'all', label: 'All', days: 0 }
|
||||
];
|
||||
let selectedRange: TimeRange = '30d';
|
||||
let history: Array<{ date: string; won: number; lost: number }> = [];
|
||||
@@ -239,7 +239,7 @@
|
||||
: 'text-gray-500 hover:text-gray-700 dark:text-gray-400 dark:hover:text-gray-200'}"
|
||||
on:click={() => selectRange(range.key)}
|
||||
>
|
||||
{range.label}
|
||||
{range.key === 'all' ? $i18n.t('All') : range.label}
|
||||
</button>
|
||||
{/each}
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user