Change setDatabase and getDatabase to accessing dbState
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<script lang="ts">
|
||||
import { ParseMarkdown, risuChatParser } from "src/ts/parser";
|
||||
import { ParseMarkdown, risuChatParser } from "src/ts/parser.svelte";
|
||||
import { DBState, type character, type groupChat } from "src/ts/storage/database.svelte";
|
||||
import { moduleBackgroundEmbedding, ReloadGUIPointer, selectedCharID } from "src/ts/stores";
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<script lang="ts">
|
||||
import { ArrowLeft, ArrowRight, PencilIcon, LanguagesIcon, RefreshCcwIcon, TrashIcon, CopyIcon, Volume2Icon, BotIcon, ArrowLeftRightIcon, UserIcon } from "lucide-svelte";
|
||||
import { type CbsConditions, ParseMarkdown, postTranslationParse, type simpleCharacterArgument } from "../../ts/parser";
|
||||
import { type CbsConditions, ParseMarkdown, postTranslationParse, type simpleCharacterArgument } from "../../ts/parser.svelte";
|
||||
import AutoresizeArea from "../UI/GUI/TextAreaResizable.svelte";
|
||||
import { alertConfirm, alertError, alertRequestData } from "../../ts/alert";
|
||||
import { language } from "../../lang";
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
import Chat from "./Chat.svelte";
|
||||
import { DBState, type Message, type character, type groupChat } from "../../ts/storage/database.svelte";
|
||||
import { getCharImage } from "../../ts/characters";
|
||||
import { chatProcessStage, doingChat, sendChat } from "../../ts/process/index";
|
||||
import { chatProcessStage, doingChat, sendChat } from "../../ts/process/index.svelte";
|
||||
import { findCharacterbyId, messageForm, sleep } from "../../ts/util";
|
||||
import { language } from "../../lang";
|
||||
import { isExpTranslator, translate } from "../../ts/translator/translator";
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<script lang="ts">
|
||||
import { requestChatData } from "src/ts/process/request";
|
||||
import { doingChat, type OpenAIChat } from "../../ts/process/index";
|
||||
import { doingChat, type OpenAIChat } from "../../ts/process/index.svelte";
|
||||
import { DBState, setDatabase, type character, type Message, type groupChat, type Database } from "../../ts/storage/database.svelte";
|
||||
import { selectedCharID } from "../../ts/stores";
|
||||
import { translate } from "src/ts/translator/translator";
|
||||
@@ -10,7 +10,7 @@
|
||||
import { getUserName, replacePlaceholders } from "../../ts/util";
|
||||
import { onDestroy } from 'svelte';
|
||||
import { get } from "svelte/store";
|
||||
import { ParseMarkdown } from "src/ts/parser";
|
||||
import { ParseMarkdown } from "src/ts/parser.svelte";
|
||||
|
||||
interface Props {
|
||||
send: () => any;
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
import { alertStore, alertGenerationInfoStore } from "../../ts/alert";
|
||||
import { DBState } from '../../ts/storage/database.svelte';
|
||||
import { getCharImage } from '../../ts/characters';
|
||||
import { ParseMarkdown } from '../../ts/parser';
|
||||
import { ParseMarkdown } from '../../ts/parser.svelte';
|
||||
import BarIcon from '../SideBars/BarIcon.svelte';
|
||||
import { ChevronRightIcon, User } from 'lucide-svelte';
|
||||
import { hubURL, isCharacterHasAssets } from 'src/ts/characterCards';
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<script lang="ts">
|
||||
import { ParseMarkdown } from "src/ts/parser";
|
||||
import { ParseMarkdown } from "src/ts/parser.svelte";
|
||||
import TextAreaInput from "../UI/GUI/TextAreaInput.svelte";
|
||||
let input = $state("");
|
||||
let output = $state("");
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<script lang="ts">
|
||||
import { Template } from '@huggingface/jinja';
|
||||
import TextAreaInput from "../UI/GUI/TextAreaInput.svelte";
|
||||
import { risuChatParser } from 'src/ts/parser';
|
||||
import { risuChatParser } from 'src/ts/parser.svelte';
|
||||
import { language } from 'src/lang';
|
||||
import { sleep } from 'src/ts/util';
|
||||
let input = $state("");
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
import TextAreaInput from "../UI/GUI/TextAreaInput.svelte";
|
||||
import { FolderUpIcon, PlusIcon, TrashIcon } from "lucide-svelte";
|
||||
import { selectSingleFile } from "src/ts/util";
|
||||
import { doingChat, previewFormated, sendChat } from "src/ts/process";
|
||||
import { doingChat, previewFormated, sendChat } from "src/ts/process/index.svelte";
|
||||
import SelectInput from "../UI/GUI/SelectInput.svelte";
|
||||
import { applyChatTemplate, chatTemplates } from "src/ts/process/templates/chatTemplate";
|
||||
import OptionInput from "../UI/GUI/OptionInput.svelte";
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<script lang="ts">
|
||||
import { ColorSchemeTypeStore } from "src/ts/gui/colorscheme";
|
||||
import { ParseMarkdown } from "src/ts/parser";
|
||||
import { ParseMarkdown } from "src/ts/parser.svelte";
|
||||
import { parseMultilangString, toLangName } from "src/ts/util";
|
||||
|
||||
interface Props {
|
||||
|
||||
Reference in New Issue
Block a user