Skip to content

Commit e0bdef8

Browse files
committed
chore: format
1 parent 2ce935b commit e0bdef8

65 files changed

Lines changed: 211 additions & 207 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "open-webui",
3-
"version": "0.8.2",
3+
"version": "0.8.3",
44
"private": true,
55
"scripts": {
66
"dev": "npm run pyodide:fetch && vite dev --host",

src/lib/components/chat/Chat.svelte

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2085,7 +2085,11 @@
20852085
),
20862086
features: getFeatures(),
20872087
variables: {
2088-
...getPromptVariables($user?.name, $settings?.userLocation ? userLocation : undefined, $user?.email)
2088+
...getPromptVariables(
2089+
$user?.name,
2090+
$settings?.userLocation ? userLocation : undefined,
2091+
$user?.email
2092+
)
20892093
},
20902094
model_item: $models.find((m) => m.id === model.id),
20912095

src/lib/components/chat/ModelSelector/ModelItemMenu.svelte

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
align="end"
5555
transition={flyAndScale}
5656
>
57-
{#if (model?.preset || model?.info?.base_model_id) ? model?.info?.user_id === $user?.id : $user?.role === 'admin'}
57+
{#if model?.preset || model?.info?.base_model_id ? model?.info?.user_id === $user?.id : $user?.role === 'admin'}
5858
<DropdownMenu.Item
5959
type="button"
6060
class="flex rounded-xl py-1.5 px-3 w-full hover:bg-gray-50 dark:hover:bg-gray-800 transition items-center gap-2"
@@ -121,8 +121,6 @@
121121
<div class="flex items-center">{$i18n.t('Copy Link')}</div>
122122
</DropdownMenu.Item>
123123

124-
125-
126124
{#if $config?.features.enable_community_sharing}
127125
<hr class="border-gray-50 dark:border-gray-800/30 my-1" />
128126

src/lib/components/common/ToolCallDisplay.svelte

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,9 @@
182182
<span class="font-medium text-gray-600 dark:text-gray-400 shrink-0"
183183
>{key}</span
184184
>
185-
<span class="text-gray-800 dark:text-gray-200 break-all">{typeof value === 'object' ? JSON.stringify(value) : value}</span>
185+
<span class="text-gray-800 dark:text-gray-200 break-all"
186+
>{typeof value === 'object' ? JSON.stringify(value) : value}</span
187+
>
186188
</div>
187189
{/each}
188190
</div>

src/lib/components/playground/Completions.svelte

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -161,30 +161,30 @@
161161
</div>
162162

163163
<div class="pb-3 flex justify-end">
164-
<div class="flex gap-2 shrink-0">
165-
{#if !loading}
166-
<button
167-
class="px-3.5 py-1.5 text-sm font-medium bg-black hover:bg-gray-900 text-white dark:bg-white dark:text-black dark:hover:bg-gray-100 transition rounded-lg"
168-
on:click={() => {
169-
submitHandler();
170-
}}
171-
>
172-
{$i18n.t('Run')}
173-
</button>
174-
{:else}
175-
<button
176-
class="px-3.5 py-1.5 text-sm font-medium bg-gray-300 text-black transition rounded-lg flex items-center gap-2"
177-
on:click={() => {
178-
stopResponse();
179-
}}
180-
>
181-
<Spinner className="size-4" />
182-
{$i18n.t('Cancel')}
183-
</button>
184-
{/if}
164+
<div class="flex gap-2 shrink-0">
165+
{#if !loading}
166+
<button
167+
class="px-3.5 py-1.5 text-sm font-medium bg-black hover:bg-gray-900 text-white dark:bg-white dark:text-black dark:hover:bg-gray-100 transition rounded-lg"
168+
on:click={() => {
169+
submitHandler();
170+
}}
171+
>
172+
{$i18n.t('Run')}
173+
</button>
174+
{:else}
175+
<button
176+
class="px-3.5 py-1.5 text-sm font-medium bg-gray-300 text-black transition rounded-lg flex items-center gap-2"
177+
on:click={() => {
178+
stopResponse();
179+
}}
180+
>
181+
<Spinner className="size-4" />
182+
{$i18n.t('Cancel')}
183+
</button>
184+
{/if}
185+
</div>
185186
</div>
186187
</div>
187-
</div>
188188
</div>
189189
</div>
190190

src/lib/i18n/locales/ar-BH/translation.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,6 @@
9898
"Allow Call": "",
9999
"Allow Chat Controls": "",
100100
"Allow Chat Delete": "",
101-
"Allow Chat Deletion": "يستطيع حذف المحادثات",
102101
"Allow Chat Edit": "",
103102
"Allow Chat Export": "",
104103
"Allow Chat Params": "",
@@ -346,6 +345,7 @@
346345
"Completions": "",
347346
"Compress Images in Channels": "",
348347
"Concurrent Requests": "الطلبات المتزامنة",
348+
"Config": "",
349349
"Config imported successfully": "",
350350
"Configure": "",
351351
"Confirm": "",
@@ -769,7 +769,7 @@
769769
"Export All Chats (All Users)": "تصدير جميع الدردشات (جميع المستخدمين)",
770770
"Export chat (.json)": "",
771771
"Export Chats": "تصدير جميع الدردشات",
772-
"Export Config to JSON File": "",
772+
"Export Config": "",
773773
"Export Models": "",
774774
"Export Presets": "",
775775
"Export Prompts": "",
@@ -976,7 +976,7 @@
976976
"Images": "",
977977
"Import": "",
978978
"Import Chats": "استيراد الدردشات",
979-
"Import Config from JSON File": "",
979+
"Import Config": "",
980980
"Import From Link": "",
981981
"Import Models": "",
982982
"Import Presets": "",

src/lib/i18n/locales/ar/translation.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,6 @@
9898
"Allow Call": "",
9999
"Allow Chat Controls": "السماح بوسائل التحكم في المحادثة",
100100
"Allow Chat Delete": "السماح بحذف المحادثة",
101-
"Allow Chat Deletion": "السماح بحذف المحادثة",
102101
"Allow Chat Edit": "السماح بتعديل المحادثة",
103102
"Allow Chat Export": "",
104103
"Allow Chat Params": "",
@@ -346,6 +345,7 @@
346345
"Completions": "الإكمالات",
347346
"Compress Images in Channels": "",
348347
"Concurrent Requests": "الطلبات المتزامنة",
348+
"Config": "",
349349
"Config imported successfully": "",
350350
"Configure": "تكوين",
351351
"Confirm": "تأكيد",
@@ -769,7 +769,7 @@
769769
"Export All Chats (All Users)": "تصدير جميع الدردشات (جميع المستخدمين)",
770770
"Export chat (.json)": "تصدير المحادثة (.json)",
771771
"Export Chats": "تصدير جميع الدردشات",
772-
"Export Config to JSON File": "تصدير الإعدادات إلى ملف JSON",
772+
"Export Config": "",
773773
"Export Models": "",
774774
"Export Presets": "تصدير الإعدادات المسبقة",
775775
"Export Prompts": "",
@@ -976,7 +976,7 @@
976976
"Images": "",
977977
"Import": "",
978978
"Import Chats": "استيراد الدردشات",
979-
"Import Config from JSON File": "استيراد الإعدادات من ملف JSON",
979+
"Import Config": "",
980980
"Import From Link": "",
981981
"Import Models": "",
982982
"Import Presets": "استيراد الإعدادات المسبقة",

src/lib/i18n/locales/bg-BG/translation.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,6 @@
9898
"Allow Call": "",
9999
"Allow Chat Controls": "Разреши контроли на чата",
100100
"Allow Chat Delete": "Разреши изтриване на чат",
101-
"Allow Chat Deletion": "Позволи Изтриване на Чат",
102101
"Allow Chat Edit": "Разреши редактиране на чат",
103102
"Allow Chat Export": "",
104103
"Allow Chat Params": "",
@@ -346,6 +345,7 @@
346345
"Completions": "Довършвания",
347346
"Compress Images in Channels": "",
348347
"Concurrent Requests": "Едновременни заявки",
348+
"Config": "",
349349
"Config imported successfully": "",
350350
"Configure": "Конфигуриране",
351351
"Confirm": "Потвърди",
@@ -769,7 +769,7 @@
769769
"Export All Chats (All Users)": "Експортване на всички чатове (за всички потребители)",
770770
"Export chat (.json)": "Експортиране на чат (.json)",
771771
"Export Chats": "Експортване на чатове",
772-
"Export Config to JSON File": "Експортиране на конфигурацията в JSON файл",
772+
"Export Config": "",
773773
"Export Models": "",
774774
"Export Presets": "Експортиране на предварителни настройки",
775775
"Export Prompts": "",
@@ -976,7 +976,7 @@
976976
"Images": "",
977977
"Import": "",
978978
"Import Chats": "Импортване на чатове",
979-
"Import Config from JSON File": "Импортиране на конфигурация от JSON файл",
979+
"Import Config": "",
980980
"Import From Link": "",
981981
"Import Models": "",
982982
"Import Presets": "Импортиране на предварителни настройки",

src/lib/i18n/locales/bn-BD/translation.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,6 @@
9898
"Allow Call": "",
9999
"Allow Chat Controls": "",
100100
"Allow Chat Delete": "",
101-
"Allow Chat Deletion": "চ্যাট ডিলিট করতে দিন",
102101
"Allow Chat Edit": "",
103102
"Allow Chat Export": "",
104103
"Allow Chat Params": "",
@@ -346,6 +345,7 @@
346345
"Completions": "",
347346
"Compress Images in Channels": "",
348347
"Concurrent Requests": "সমকালীন অনুরোধ",
348+
"Config": "",
349349
"Config imported successfully": "",
350350
"Configure": "",
351351
"Confirm": "",
@@ -769,7 +769,7 @@
769769
"Export All Chats (All Users)": "সব চ্যাট এক্সপোর্ট করুন (সব ইউজারের)",
770770
"Export chat (.json)": "",
771771
"Export Chats": "চ্যাটগুলো এক্সপোর্ট করুন",
772-
"Export Config to JSON File": "",
772+
"Export Config": "",
773773
"Export Models": "",
774774
"Export Presets": "",
775775
"Export Prompts": "",
@@ -976,7 +976,7 @@
976976
"Images": "",
977977
"Import": "",
978978
"Import Chats": "চ্যাটগুলি ইমপোর্ট করুন",
979-
"Import Config from JSON File": "",
979+
"Import Config": "",
980980
"Import From Link": "",
981981
"Import Models": "",
982982
"Import Presets": "",

0 commit comments

Comments
 (0)