move important vars on top

This commit is contained in:
kwaroran
2024-06-24 01:11:38 +09:00
parent f31635b52b
commit c149809f9f

View File

@@ -1,3 +1,8 @@
export const DataBase = writable({} as any as Database)
export const loadedStore = writable(false)
export let appVer = "115.1.2"
export let webAppSubVer = ''
import { get, writable } from 'svelte/store';
import { checkNullish, decryptBuffer, encryptBuffer, selectSingleFile } from '../util';
import { changeLanguage, language } from '../../lang';
@@ -12,11 +17,6 @@ import { defaultColorScheme, type ColorScheme } from '../gui/colorscheme';
import type { PromptItem, PromptSettings } from '../process/prompt';
import type { OobaChatCompletionRequestParams } from '../model/ooba';
export const DataBase = writable({} as any as Database)
export const loadedStore = writable(false)
export let appVer = "115.1.2"
export let webAppSubVer = ''
export function setDatabase(data:Database){
if(checkNullish(data.characters)){
data.characters = []