feat: add PlaygroundParser component to PlaygroundMenu

This commit is contained in:
kwaroran
2024-06-14 08:15:48 +09:00
parent 2ba6e1b54a
commit 9d1e2bfb28
2 changed files with 32 additions and 0 deletions

View File

@@ -11,6 +11,7 @@
import { get } from "svelte/store";
import { DataBase, setDatabase, type character } from "src/ts/storage/database";
import PlaygroundImageGen from "./PlaygroundImageGen.svelte";
import PlaygroundParser from "./PlaygroundParser.svelte";
const playgroundChat = () => {
let db = get(DataBase)
@@ -75,6 +76,11 @@
}}>
<h1 class="text-2xl font-bold text-start">{language.imageGeneration}</h1>
</button>
<button class="bg-darkbg rounded-md p-6 flex flex-col transition-shadow hover:ring-1" on:click={() => {
PlaygroundStore.set(8)
}}>
<h1 class="text-2xl font-bold text-start">Parser</h1>
</button>
</div>
{:else}
{#if $SizeStore.w < 1024}
@@ -105,6 +111,9 @@
{#if $PlaygroundStore === 7}
<PlaygroundImageGen/>
{/if}
{#if $PlaygroundStore === 8}
<PlaygroundParser/>
{/if}
</div>
{/if}
</div>