This commit is contained in:
Timothy Jaeryang Baek
2026-02-21 15:33:21 -06:00
parent c2172e43eb
commit c114fd6876
8 changed files with 88 additions and 126 deletions
+1 -4
View File
@@ -5,13 +5,12 @@
import { goto } from '$app/navigation';
import { onMount, getContext, tick, onDestroy } from 'svelte';
import { WEBUI_NAME, config, prompts as _prompts, user } from '$lib/stores';
import { WEBUI_NAME, config, user } from '$lib/stores';
import {
createNewPrompt,
deletePromptById,
togglePromptById,
getPrompts,
getPromptItems,
getPromptTags
} from '$lib/apis/prompts';
@@ -171,7 +170,6 @@
page = 1;
getPromptList();
await _prompts.set(await getPrompts(localStorage.token));
};
onMount(async () => {
@@ -261,7 +259,6 @@
page = 1;
await getPromptList();
await _prompts.set(await getPrompts(localStorage.token));
} finally {
importFiles = null;
promptsImportInputElement.value = '';
+1 -1
View File
@@ -6,7 +6,7 @@
import { onMount, getContext, tick, onDestroy } from 'svelte';
const i18n = getContext('i18n');
import { WEBUI_NAME, config, prompts, tools as _tools, user } from '$lib/stores';
import { WEBUI_NAME, config, tools as _tools, user } from '$lib/stores';
import { goto } from '$app/navigation';
import {