Move DBState to stores
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<script lang="ts">
|
||||
import { MobileGUIStack, MobileSideBar, selectedCharID } from "src/ts/stores";
|
||||
import { MobileGUIStack, MobileSideBar, selectedCharID } from "src/ts/stores.svelte";
|
||||
import Settings from "../Setting/Settings.svelte";
|
||||
import RealmMain from "../UI/Realm/RealmMain.svelte";
|
||||
import MobileCharacters from "./MobileCharacters.svelte";
|
||||
@@ -10,7 +10,8 @@
|
||||
import SideChatList from "../SideBars/SideChatList.svelte";
|
||||
import DevTool from "../SideBars/DevTool.svelte";
|
||||
import { isLite } from "src/ts/lite";
|
||||
import { DBState } from "src/ts/storage/database.svelte";
|
||||
|
||||
import { DBState } from 'src/ts/stores.svelte';
|
||||
</script>
|
||||
|
||||
{#if $MobileSideBar > 0 && !$isLite}
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
<script lang="ts">
|
||||
import { type character, DBState, type groupChat } from "src/ts/storage/database.svelte";
|
||||
import { type character, type groupChat } from "src/ts/storage/database.svelte";
|
||||
import { DBState } from 'src/ts/stores.svelte';
|
||||
import BarIcon from "../SideBars/BarIcon.svelte";
|
||||
import { addCharacter, changeChar, getCharImage } from "src/ts/characters";
|
||||
import { MobileSearch } from "src/ts/stores";
|
||||
import { MobileSearch } from "src/ts/stores.svelte";
|
||||
import { MessageSquareIcon, PlusIcon } from "lucide-svelte";
|
||||
|
||||
const agoFormatter = new Intl.RelativeTimeFormat(navigator.languages, { style: 'short' });
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
import { SettingsIcon, GlobeIcon, HomeIcon, MessageSquare, Volume2Icon, CurlyBraces, ActivityIcon, BookIcon, SmileIcon, UserIcon } from "lucide-svelte";
|
||||
import { language } from "src/lang";
|
||||
import { CharConfigSubMenu, MobileGUIStack, MobileSideBar, selectedCharID } from "src/ts/stores";
|
||||
import { CharConfigSubMenu, MobileGUIStack, MobileSideBar, selectedCharID } from "src/ts/stores.svelte";
|
||||
|
||||
</script>
|
||||
{#if $selectedCharID === -1}
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
<script lang="ts">
|
||||
import { ArrowLeft, MenuIcon } from "lucide-svelte";
|
||||
import { language } from "src/lang";
|
||||
import { DBState } from "src/ts/storage/database.svelte";
|
||||
import { MobileGUIStack, MobileSearch, selectedCharID, SettingsMenuIndex, MobileSideBar } from "src/ts/stores";
|
||||
|
||||
import { DBState } from 'src/ts/stores.svelte';
|
||||
import { MobileGUIStack, MobileSearch, selectedCharID, SettingsMenuIndex, MobileSideBar } from "src/ts/stores.svelte";
|
||||
|
||||
</script>
|
||||
<div class="w-full px-4 h-16 border-b border-b-darkborderc bg-darkbg flex justify-start items-center gap-2">
|
||||
|
||||
Reference in New Issue
Block a user