mirror of
https://github.com/open-webui/open-webui.git
synced 2026-12-04 02:28:02 -05:00
refac
This commit is contained in:
1 parent
ca26632a2a
commit
f677fdbf50
59 files changed
+285
-217
No files matched your search
@@ -3,7 +3,7 @@
|
||||
import { getContext } from 'svelte';
|
||||
import Spinner from '$lib/components/common/Spinner.svelte';
|
||||
|
||||
const i18n = getContext('i18n');
|
||||
const i18n: any = getContext('i18n');
|
||||
|
||||
export let history: Array<{ date: string; won: number; lost: number }> = [];
|
||||
export let loading = false;
|
||||
@@ -76,7 +76,7 @@
|
||||
labels,
|
||||
datasets: [
|
||||
{
|
||||
label: 'Won',
|
||||
label: $i18n.t('Won'),
|
||||
data: wonData,
|
||||
backgroundColor: '#5ba3c8',
|
||||
borderRadius: 2,
|
||||
@@ -84,7 +84,7 @@
|
||||
categoryPercentage
|
||||
},
|
||||
{
|
||||
label: 'Lost',
|
||||
label: $i18n.t('Lost'),
|
||||
data: lostData,
|
||||
backgroundColor: '#d97c5a',
|
||||
borderRadius: 2,
|
||||
|
||||
Reference in new issue
Block a user