Move DBState to stores
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
<script lang="ts">
|
||||
import { alertGenerationInfoStore } from "../../ts/alert";
|
||||
import { DBState } from '../../ts/storage/database.svelte';
|
||||
|
||||
import { DBState } from 'src/ts/stores.svelte';
|
||||
import { getCharImage } from '../../ts/characters';
|
||||
import { ParseMarkdown } from '../../ts/parser.svelte';
|
||||
import BarIcon from '../SideBars/BarIcon.svelte';
|
||||
@@ -14,7 +15,7 @@
|
||||
import OptionInput from "../UI/GUI/OptionInput.svelte";
|
||||
import { language } from 'src/lang';
|
||||
import { getFetchData } from 'src/ts/globalApi';
|
||||
import { alertStore, selectedCharID } from "src/ts/stores";
|
||||
import { alertStore, selectedCharID } from "src/ts/stores.svelte";
|
||||
import { tokenize } from "src/ts/tokenizer";
|
||||
import TextAreaInput from "../UI/GUI/TextAreaInput.svelte";
|
||||
import ModuleChatMenu from "../Setting/Pages/Module/ModuleChatMenu.svelte";
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
<script>
|
||||
import { alertConfirm, alertError } from "../../ts/alert";
|
||||
import { language } from "../../lang";
|
||||
import { DBState } from "../../ts/storage/database.svelte";
|
||||
import { ReloadGUIPointer, selectedCharID } from "../../ts/stores";
|
||||
|
||||
import { DBState } from 'src/ts/stores.svelte';
|
||||
import { ReloadGUIPointer, selectedCharID } from "../../ts/stores.svelte";
|
||||
import { DownloadIcon, EditIcon, FolderUpIcon, PlusIcon, TrashIcon, XIcon } from "lucide-svelte";
|
||||
import { exportChat, importChat } from "../../ts/characters";
|
||||
import { findCharacterbyId } from "../../ts/util";
|
||||
|
||||
@@ -1,9 +1,10 @@
|
||||
<script lang="ts">
|
||||
import { characterFormatUpdate, getCharImage, removeChar } from "../../ts/characters";
|
||||
import { DBState, type Database } from "../../ts/storage/database.svelte";
|
||||
import { type Database } from "../../ts/storage/database.svelte";
|
||||
import { DBState } from 'src/ts/stores.svelte';
|
||||
import BarIcon from "../SideBars/BarIcon.svelte";
|
||||
import { ArrowLeft, User, Users, Inspect, TrashIcon, Undo2Icon } from "lucide-svelte";
|
||||
import { selectedCharID } from "../../ts/stores";
|
||||
import { selectedCharID } from "../../ts/stores.svelte";
|
||||
import TextInput from "../UI/GUI/TextInput.svelte";
|
||||
import Button from "../UI/GUI/Button.svelte";
|
||||
import { language } from "src/lang";
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
<script lang="ts">
|
||||
import { Send } from "lucide-svelte";
|
||||
import { changeLanguage, language } from "src/lang";
|
||||
import { DBState, setPreset } from "src/ts/storage/database.svelte";
|
||||
import { setPreset } from "src/ts/storage/database.svelte";
|
||||
import { DBState } from 'src/ts/stores.svelte';
|
||||
import Chat from "../ChatScreens/Chat.svelte";
|
||||
import { prebuiltPresets } from "src/ts/process/templates/templates";
|
||||
import { updateTextThemeAndCSS } from "src/ts/gui/colorscheme";
|
||||
|
||||
Reference in New Issue
Block a user