-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat!: BIG FEATURE <FAKE MESSAGE GENERATOR> IS OUT 2023 FREE
- Loading branch information
1 parent
0157068
commit 39e6064
Showing
2 changed files
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<script lang="ts"> | ||
import { client } from "$lib/client/Client" | ||
import { stateStore } from "$lib/stores/StateStore" | ||
import { Author } from "$lib/types/Chat" | ||
let isBot: boolean = false | ||
let content: string = "" | ||
const sendAs = async () => { | ||
await client.appendHistory(isBot ? Author.Assistant : Author.User, content) | ||
} | ||
</script> | ||
|
||
{#if $stateStore.debug} | ||
<div id="fmsg"> | ||
<div id="fmsg-is-this"> | ||
<h3>Is this a bot?</h3> | ||
<input type="checkbox" bind:value={isBot} /> | ||
</div> | ||
<div id="fmsg-is-this"> | ||
<input bind:value={content} /> | ||
<button on:click={sendAs}>Send</button> | ||
</div> | ||
</div> | ||
{/if} | ||
|
||
<style> | ||
#fmsg-is-this { | ||
display: flex; | ||
flex-direction: row; | ||
justify-content: space-between; | ||
} | ||
#fmsg { | ||
display: flex; | ||
flex-direction: column; | ||
color: #f2f2f2; | ||
} | ||
</style> |