mirror of
https://github.com/open-webui/open-webui
synced 2025-06-16 19:31:52 +00:00
refac: collapsible
Some checks are pending
Deploy to HuggingFace Spaces / check-secret (push) Waiting to run
Deploy to HuggingFace Spaces / deploy (push) Blocked by required conditions
Create and publish Docker images with specific build args / build-main-image (linux/amd64) (push) Waiting to run
Create and publish Docker images with specific build args / build-main-image (linux/arm64) (push) Waiting to run
Create and publish Docker images with specific build args / build-cuda-image (linux/amd64) (push) Waiting to run
Create and publish Docker images with specific build args / build-cuda-image (linux/arm64) (push) Waiting to run
Create and publish Docker images with specific build args / build-ollama-image (linux/amd64) (push) Waiting to run
Create and publish Docker images with specific build args / build-ollama-image (linux/arm64) (push) Waiting to run
Create and publish Docker images with specific build args / merge-main-images (push) Blocked by required conditions
Create and publish Docker images with specific build args / merge-cuda-images (push) Blocked by required conditions
Create and publish Docker images with specific build args / merge-ollama-images (push) Blocked by required conditions
Python CI / Format Backend (3.11.x) (push) Waiting to run
Python CI / Format Backend (3.12.x) (push) Waiting to run
Frontend Build / Format & Build Frontend (push) Waiting to run
Frontend Build / Frontend Unit Tests (push) Waiting to run
Some checks are pending
Deploy to HuggingFace Spaces / check-secret (push) Waiting to run
Deploy to HuggingFace Spaces / deploy (push) Blocked by required conditions
Create and publish Docker images with specific build args / build-main-image (linux/amd64) (push) Waiting to run
Create and publish Docker images with specific build args / build-main-image (linux/arm64) (push) Waiting to run
Create and publish Docker images with specific build args / build-cuda-image (linux/amd64) (push) Waiting to run
Create and publish Docker images with specific build args / build-cuda-image (linux/arm64) (push) Waiting to run
Create and publish Docker images with specific build args / build-ollama-image (linux/amd64) (push) Waiting to run
Create and publish Docker images with specific build args / build-ollama-image (linux/arm64) (push) Waiting to run
Create and publish Docker images with specific build args / merge-main-images (push) Blocked by required conditions
Create and publish Docker images with specific build args / merge-cuda-images (push) Blocked by required conditions
Create and publish Docker images with specific build args / merge-ollama-images (push) Blocked by required conditions
Python CI / Format Backend (3.11.x) (push) Waiting to run
Python CI / Format Backend (3.12.x) (push) Waiting to run
Frontend Build / Format & Build Frontend (push) Waiting to run
Frontend Build / Frontend Unit Tests (push) Waiting to run
This commit is contained in:
parent
41904f21e4
commit
e52e45d613
@ -2,7 +2,7 @@
|
|||||||
import { decode } from 'html-entities';
|
import { decode } from 'html-entities';
|
||||||
import { v4 as uuidv4 } from 'uuid';
|
import { v4 as uuidv4 } from 'uuid';
|
||||||
|
|
||||||
import { getContext, createEventDispatcher } from 'svelte';
|
import { getContext } from 'svelte';
|
||||||
const i18n = getContext('i18n');
|
const i18n = getContext('i18n');
|
||||||
|
|
||||||
import dayjs from '$lib/dayjs';
|
import dayjs from '$lib/dayjs';
|
||||||
@ -26,9 +26,6 @@
|
|||||||
// Assuming $i18n.languages is an array of language codes
|
// Assuming $i18n.languages is an array of language codes
|
||||||
$: loadLocale($i18n.languages);
|
$: loadLocale($i18n.languages);
|
||||||
|
|
||||||
const dispatch = createEventDispatcher();
|
|
||||||
$: dispatch('change', open);
|
|
||||||
|
|
||||||
import { slide } from 'svelte/transition';
|
import { slide } from 'svelte/transition';
|
||||||
import { quintOut } from 'svelte/easing';
|
import { quintOut } from 'svelte/easing';
|
||||||
|
|
||||||
@ -55,6 +52,10 @@
|
|||||||
export let disabled = false;
|
export let disabled = false;
|
||||||
export let hide = false;
|
export let hide = false;
|
||||||
|
|
||||||
|
export let onChange: Function = () => {};
|
||||||
|
|
||||||
|
$: onChange(open);
|
||||||
|
|
||||||
const collapsibleId = uuidv4();
|
const collapsibleId = uuidv4();
|
||||||
|
|
||||||
function parseJSONString(str) {
|
function parseJSONString(str) {
|
||||||
|
@ -121,8 +121,8 @@
|
|||||||
bind:open
|
bind:open
|
||||||
className="w-full "
|
className="w-full "
|
||||||
buttonClassName="w-full"
|
buttonClassName="w-full"
|
||||||
on:change={(e) => {
|
onChange={(state) => {
|
||||||
dispatch('change', e.detail);
|
dispatch('change', state);
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<!-- svelte-ignore a11y-no-static-element-interactions -->
|
<!-- svelte-ignore a11y-no-static-element-interactions -->
|
||||||
|
@ -374,8 +374,8 @@
|
|||||||
buttonClassName="w-full"
|
buttonClassName="w-full"
|
||||||
hide={(folders[folderId]?.childrenIds ?? []).length === 0 &&
|
hide={(folders[folderId]?.childrenIds ?? []).length === 0 &&
|
||||||
(folders[folderId].items?.chats ?? []).length === 0}
|
(folders[folderId].items?.chats ?? []).length === 0}
|
||||||
on:change={(e) => {
|
onChange={(state) => {
|
||||||
dispatch('open', e.detail);
|
dispatch('open', state);
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<!-- svelte-ignore a11y-no-static-element-interactions -->
|
<!-- svelte-ignore a11y-no-static-element-interactions -->
|
||||||
|
Loading…
Reference in New Issue
Block a user