[feat] node hosting support

This commit is contained in:
kwaroran
2023-05-27 23:15:23 +09:00
parent 4af6655471
commit 205cc2744f
61 changed files with 812 additions and 87 deletions

View File

@@ -1,6 +1,6 @@
<script>
import { onMount } from 'svelte';
import { DataBase } from "../../ts/database";
import { DataBase } from "../../ts/storage/database";
let textarea;
let previousScrollHeight = 0;

View File

@@ -4,7 +4,7 @@
import AutoresizeArea from "./AutoresizeArea.svelte";
import { alertConfirm } from "../../ts/alert";
import { language } from "../../lang";
import { DataBase, type character, type groupChat } from "../../ts/database";
import { DataBase, type character, type groupChat } from "../../ts/storage/database";
import { selectedCharID } from "../../ts/stores";
import { translate } from "../../ts/translator/translator";
import { replacePlaceholders } from "../../ts/util";

View File

@@ -1,6 +1,6 @@
<script lang="ts">
import { getCustomBackground, getEmotion } from "../../ts/util";
import { DataBase } from "../../ts/database";
import { DataBase } from "../../ts/storage/database";
import { CharEmotion, SizeStore, selectedCharID, sideBarStore } from "../../ts/stores";
import ResizeBox from './ResizeBox.svelte'
import DefaultChatScreen from "./DefaultChatScreen.svelte";

View File

@@ -2,7 +2,7 @@
import { DatabaseIcon, DicesIcon, LanguagesIcon, MenuIcon, MicOffIcon, RefreshCcwIcon, Send } from "lucide-svelte";
import { selectedCharID } from "../../ts/stores";
import Chat from "./Chat.svelte";
import { DataBase, appVer, type Message } from "../../ts/database";
import { DataBase, appVer, type Message } from "../../ts/storage/database";
import { getCharImage } from "../../ts/characters";
import { doingChat, sendChat } from "../../ts/process/index";
import { findCharacterbyId, messageForm, sleep } from "../../ts/util";

View File

@@ -1,5 +1,5 @@
<script>
import { DataBase } from '../../ts/database';
import { DataBase } from '../../ts/storage/database';
import { CharEmotion } from '../../ts/stores';
import { getEmotion } from '../../ts/util';
</script>

View File

@@ -4,7 +4,7 @@
import EmotionBox from './EmotionBox.svelte';
import TransitionImage from './TransitionImage.svelte';
import { getEmotion } from '../../ts/util';
import { DataBase } from '../../ts/database';
import { DataBase } from '../../ts/storage/database';
let box;
let isResizing = false;