Move DBState to stores

This commit is contained in:
kwaroran
2024-10-26 21:17:46 +09:00
parent 92f1ed0528
commit da907f4fc2
84 changed files with 183 additions and 156 deletions

View File

@@ -3,7 +3,7 @@ import type { ScriptMode } from '../process/scripts'
//@ts-ignore
import WorkerUrl from './embedworker?worker&url'
import { getDatabase, type Message } from '../storage/database.svelte'
import { selectedCharID } from '../stores'
import { selectedCharID } from '../stores.svelte'
import { setDatabase } from '../storage/database.svelte'
let worker = new Worker(WorkerUrl, {type: 'module'})

View File

@@ -5,7 +5,7 @@ import { getDatabase, setDatabaseLite } from "../storage/database.svelte";
import { checkNullish, selectSingleFile, sleep } from "../util";
import type { OpenAIChat } from "../process/index.svelte";
import { globalFetch } from "../globalApi";
import { selectedCharID } from "../stores";
import { selectedCharID } from "../stores.svelte";
import { addAdditionalCharaJS } from "./embedscript";
export const customProviderStore = writable([] as string[])