mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-15 05:45:19 +00:00
fix: Small fixes
This commit is contained in:
parent
b6e2b2e514
commit
e3bacc3296
7 changed files with 7 additions and 5 deletions
|
|
@ -74,8 +74,8 @@ async function downloadPackages() {
|
||||||
console.log('Pyodide version mismatch, removing static/pyodide directory');
|
console.log('Pyodide version mismatch, removing static/pyodide directory');
|
||||||
await rmdir('static/pyodide', { recursive: true });
|
await rmdir('static/pyodide', { recursive: true });
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (err) {
|
||||||
console.log('Pyodide package not found, proceeding with download.');
|
console.log('Pyodide package not found, proceeding with download.', err);
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|
|
||||||
|
|
@ -403,6 +403,7 @@ export const deleteUserById = async (token: string, userId: string) => {
|
||||||
};
|
};
|
||||||
|
|
||||||
type UserUpdateForm = {
|
type UserUpdateForm = {
|
||||||
|
role: string;
|
||||||
profile_image_url: string;
|
profile_image_url: string;
|
||||||
email: string;
|
email: string;
|
||||||
name: string;
|
name: string;
|
||||||
|
|
|
||||||
|
|
@ -248,7 +248,6 @@
|
||||||
bind:value={webConfig.KAGI_SEARCH_API_KEY}
|
bind:value={webConfig.KAGI_SEARCH_API_KEY}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
.
|
|
||||||
</div>
|
</div>
|
||||||
{:else if webConfig.WEB_SEARCH_ENGINE === 'mojeek'}
|
{:else if webConfig.WEB_SEARCH_ENGINE === 'mojeek'}
|
||||||
<div class="mb-2.5 flex w-full flex-col">
|
<div class="mb-2.5 flex w-full flex-col">
|
||||||
|
|
|
||||||
|
|
@ -854,6 +854,7 @@
|
||||||
</button>
|
</button>
|
||||||
{:else}
|
{:else}
|
||||||
<div class="relative flex video-container w-full max-h-full pt-2 pb-4 md:py-6 px-2 h-full">
|
<div class="relative flex video-container w-full max-h-full pt-2 pb-4 md:py-6 px-2 h-full">
|
||||||
|
<!-- svelte-ignore a11y-media-has-caption -->
|
||||||
<video
|
<video
|
||||||
id="camera-feed"
|
id="camera-feed"
|
||||||
autoplay
|
autoplay
|
||||||
|
|
|
||||||
|
|
@ -74,6 +74,7 @@
|
||||||
{#if show}
|
{#if show}
|
||||||
<!-- svelte-ignore a11y-click-events-have-key-events -->
|
<!-- svelte-ignore a11y-click-events-have-key-events -->
|
||||||
<!-- svelte-ignore a11y-no-static-element-interactions -->
|
<!-- svelte-ignore a11y-no-static-element-interactions -->
|
||||||
|
<!-- svelte-ignore a11y-no-noninteractive-element-interactions -->
|
||||||
<div
|
<div
|
||||||
bind:this={modalElement}
|
bind:this={modalElement}
|
||||||
aria-modal="true"
|
aria-modal="true"
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,7 @@ const createIsLoadingStore = (i18n: i18nType) => {
|
||||||
// if loaded resources are empty || {}, set loading to true
|
// if loaded resources are empty || {}, set loading to true
|
||||||
i18n.on('loaded', (resources) => {
|
i18n.on('loaded', (resources) => {
|
||||||
// console.log('loaded:', resources);
|
// console.log('loaded:', resources);
|
||||||
Object.keys(resources).length !== 0 && isLoading.set(false);
|
isLoading.set(Object.keys(resources).length === 0);
|
||||||
});
|
});
|
||||||
|
|
||||||
// if resources failed loading, set loading to true
|
// if resources failed loading, set loading to true
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@
|
||||||
<div class=" bg-white dark:bg-gray-800 min-h-screen">
|
<div class=" bg-white dark:bg-gray-800 min-h-screen">
|
||||||
<div class=" flex h-full">
|
<div class=" flex h-full">
|
||||||
<div class="m-auto my-10 dark:text-gray-300 text-3xl font-semibold">
|
<div class="m-auto my-10 dark:text-gray-300 text-3xl font-semibold">
|
||||||
{$page.status}: {$page.error.message}
|
{$page.status}: {$page.error?.message}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue