|
@@ -29,6 +29,7 @@
|
|
let defaultModelId = '';
|
|
let defaultModelId = '';
|
|
let showUsername = false;
|
|
let showUsername = false;
|
|
|
|
|
|
|
|
+ let landingPageMode = '';
|
|
let chatBubble = true;
|
|
let chatBubble = true;
|
|
let chatDirection: 'LTR' | 'RTL' = 'LTR';
|
|
let chatDirection: 'LTR' | 'RTL' = 'LTR';
|
|
|
|
|
|
@@ -56,6 +57,11 @@
|
|
saveSettings({ chatBubble: chatBubble });
|
|
saveSettings({ chatBubble: chatBubble });
|
|
};
|
|
};
|
|
|
|
|
|
|
|
+ const toggleLandingPageMode = async () => {
|
|
|
|
+ landingPageMode = landingPageMode === '' ? 'chat' : '';
|
|
|
|
+ saveSettings({ landingPageMode: landingPageMode });
|
|
|
|
+ };
|
|
|
|
+
|
|
const toggleShowUsername = async () => {
|
|
const toggleShowUsername = async () => {
|
|
showUsername = !showUsername;
|
|
showUsername = !showUsername;
|
|
saveSettings({ showUsername: showUsername });
|
|
saveSettings({ showUsername: showUsername });
|
|
@@ -150,6 +156,7 @@
|
|
showEmojiInCall = $settings.showEmojiInCall ?? false;
|
|
showEmojiInCall = $settings.showEmojiInCall ?? false;
|
|
voiceInterruption = $settings.voiceInterruption ?? false;
|
|
voiceInterruption = $settings.voiceInterruption ?? false;
|
|
|
|
|
|
|
|
+ landingPageMode = $settings.landingPageMode ?? '';
|
|
chatBubble = $settings.chatBubble ?? true;
|
|
chatBubble = $settings.chatBubble ?? true;
|
|
widescreenMode = $settings.widescreenMode ?? false;
|
|
widescreenMode = $settings.widescreenMode ?? false;
|
|
splitLargeChunks = $settings.splitLargeChunks ?? false;
|
|
splitLargeChunks = $settings.splitLargeChunks ?? false;
|
|
@@ -229,6 +236,26 @@
|
|
<div>
|
|
<div>
|
|
<div class=" mb-1.5 text-sm font-medium">{$i18n.t('UI')}</div>
|
|
<div class=" mb-1.5 text-sm font-medium">{$i18n.t('UI')}</div>
|
|
|
|
|
|
|
|
+ <div>
|
|
|
|
+ <div class=" py-0.5 flex w-full justify-between">
|
|
|
|
+ <div class=" self-center text-xs">{$i18n.t('Landing Page Mode')}</div>
|
|
|
|
+
|
|
|
|
+ <button
|
|
|
|
+ class="p-1 px-3 text-xs flex rounded transition"
|
|
|
|
+ on:click={() => {
|
|
|
|
+ toggleLandingPageMode();
|
|
|
|
+ }}
|
|
|
|
+ type="button"
|
|
|
|
+ >
|
|
|
|
+ {#if landingPageMode === ''}
|
|
|
|
+ <span class="ml-2 self-center">{$i18n.t('Default')}</span>
|
|
|
|
+ {:else}
|
|
|
|
+ <span class="ml-2 self-center">{$i18n.t('Chat')}</span>
|
|
|
|
+ {/if}
|
|
|
|
+ </button>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+
|
|
<div>
|
|
<div>
|
|
<div class=" py-0.5 flex w-full justify-between">
|
|
<div class=" py-0.5 flex w-full justify-between">
|
|
<div class=" self-center text-xs">{$i18n.t('Chat Bubble UI')}</div>
|
|
<div class=" self-center text-xs">{$i18n.t('Chat Bubble UI')}</div>
|