This commit is contained in:
Timothy Jaeryang Baek 2025-06-16 15:05:35 +04:00
parent b8103807cf
commit 1af128fb24

View File

@ -394,7 +394,7 @@
</div> </div>
<button <button
aria-labelledby="high-contrast-mode-label" aria-labelledby="high-contrast-mode-label"
class="p-1 px-3 text-xs flex rounded-sm transition" class="p-1 px-3 text-xs flex rounded-sm transition"
on:click={() => { on:click={() => {
toggleHighContrastMode(); toggleHighContrastMode();
@ -412,10 +412,12 @@
<div> <div>
<div class=" py-0.5 flex w-full justify-between"> <div class=" py-0.5 flex w-full justify-between">
<div id="landing-page-mode-label" class=" self-center text-xs">{$i18n.t('Landing Page Mode')}</div> <div id="landing-page-mode-label" class=" self-center text-xs">
{$i18n.t('Landing Page Mode')}
</div>
<button <button
aria-labelledby="landing-page-mode-label" aria-labelledby="landing-page-mode-label"
class="p-1 px-3 text-xs flex rounded-sm transition" class="p-1 px-3 text-xs flex rounded-sm transition"
on:click={() => { on:click={() => {
toggleLandingPageMode(); toggleLandingPageMode();
@ -433,10 +435,12 @@
<div> <div>
<div class=" py-0.5 flex w-full justify-between"> <div class=" py-0.5 flex w-full justify-between">
<div id="chat-bubble-ui-label" class=" self-center text-xs">{$i18n.t('Chat Bubble UI')}</div> <div id="chat-bubble-ui-label" class=" self-center text-xs">
{$i18n.t('Chat Bubble UI')}
</div>
<button <button
aria-labelledby="chat-bubble-ui-label" aria-labelledby="chat-bubble-ui-label"
class="p-1 px-3 text-xs flex rounded-sm transition" class="p-1 px-3 text-xs flex rounded-sm transition"
on:click={() => { on:click={() => {
toggleChatBubble(); toggleChatBubble();
@ -460,7 +464,7 @@
</div> </div>
<button <button
aria-labelledby="chat-bubble-username-label" aria-labelledby="chat-bubble-username-label"
class="p-1 px-3 text-xs flex rounded-sm transition" class="p-1 px-3 text-xs flex rounded-sm transition"
on:click={() => { on:click={() => {
toggleShowUsername(); toggleShowUsername();
@ -479,14 +483,16 @@
<div> <div>
<div class=" py-0.5 flex w-full justify-between"> <div class=" py-0.5 flex w-full justify-between">
<div id="widescreen-mode-label" class=" self-center text-xs">{$i18n.t('Widescreen Mode')}</div> <div id="widescreen-mode-label" class=" self-center text-xs">
{$i18n.t('Widescreen Mode')}
</div>
<button <button
class="p-1 px-3 text-xs flex rounded-sm transition" class="p-1 px-3 text-xs flex rounded-sm transition"
on:click={() => { on:click={() => {
toggleWidescreenMode(); toggleWidescreenMode();
}} }}
aria-labelledby="widescreen-mode-label" aria-labelledby="widescreen-mode-label"
type="button" type="button"
> >
{#if widescreenMode === true} {#if widescreenMode === true}
@ -500,10 +506,12 @@
<div> <div>
<div class=" py-0.5 flex w-full justify-between"> <div class=" py-0.5 flex w-full justify-between">
<div id="chat-direction-label" class=" self-center text-xs">{$i18n.t('Chat direction')}</div> <div id="chat-direction-label" class=" self-center text-xs">
{$i18n.t('Chat direction')}
</div>
<button <button
aria-labelledby="chat-direction-label" aria-labelledby="chat-direction-label"
class="p-1 px-3 text-xs flex rounded-sm transition" class="p-1 px-3 text-xs flex rounded-sm transition"
on:click={toggleChangeChatDirection} on:click={toggleChangeChatDirection}
type="button" type="button"
@ -521,12 +529,12 @@
<div> <div>
<div class="py-0.5 flex w-full justify-between"> <div class="py-0.5 flex w-full justify-between">
<div id=""notification-sound-label"" class=" self-center text-xs"> <div id="notification-sound-label" class=" self-center text-xs">
{$i18n.t('Notification Sound')} {$i18n.t('Notification Sound')}
</div> </div>
<button <button
aria-labelledby="notification-sound-label" aria-labelledby="notification-sound-label"
class="p-1 px-3 text-xs flex rounded-sm transition" class="p-1 px-3 text-xs flex rounded-sm transition"
on:click={() => { on:click={() => {
toggleNotificationSound(); toggleNotificationSound();
@ -550,7 +558,7 @@
</div> </div>
<button <button
aria-labelledby="play-notification-sound-label" aria-labelledby="play-notification-sound-label"
class="p-1 px-3 text-xs flex rounded-sm transition" class="p-1 px-3 text-xs flex rounded-sm transition"
on:click={() => { on:click={() => {
toggleNotificationSoundAlways(); toggleNotificationSoundAlways();
@ -619,10 +627,12 @@
<div> <div>
<div class=" py-0.5 flex w-full justify-between"> <div class=" py-0.5 flex w-full justify-between">
<div id="auto-generation-label" class=" self-center text-xs">{$i18n.t('Title Auto-Generation')}</div> <div id="auto-generation-label" class=" self-center text-xs">
{$i18n.t('Title Auto-Generation')}
</div>
<button <button
aria-labelledby="auto-generation-label" aria-labelledby="auto-generation-label"
class="p-1 px-3 text-xs flex rounded-sm transition" class="p-1 px-3 text-xs flex rounded-sm transition"
on:click={() => { on:click={() => {
toggleTitleAutoGenerate(); toggleTitleAutoGenerate();
@ -643,7 +653,7 @@
<div class=" self-center text-xs">{$i18n.t('Follow-Up Auto-Generation')}</div> <div class=" self-center text-xs">{$i18n.t('Follow-Up Auto-Generation')}</div>
<button <button
aria-labelledby="auto-generation-label" aria-labelledby="auto-generation-label"
class="p-1 px-3 text-xs flex rounded-sm transition" class="p-1 px-3 text-xs flex rounded-sm transition"
on:click={() => { on:click={() => {
toggleAutoFollowUps(); toggleAutoFollowUps();
@ -661,10 +671,12 @@
<div> <div>
<div class=" py-0.5 flex w-full justify-between"> <div class=" py-0.5 flex w-full justify-between">
<div id="chat-tags-label" class=" self-center text-xs">{$i18n.t('Chat Tags Auto-Generation')}</div> <div id="chat-tags-label" class=" self-center text-xs">
{$i18n.t('Chat Tags Auto-Generation')}
</div>
<button <button
aria-labelledby="chat-tags-label" aria-labelledby="chat-tags-label"
class="p-1 px-3 text-xs flex rounded-sm transition" class="p-1 px-3 text-xs flex rounded-sm transition"
on:click={() => { on:click={() => {
toggleAutoTags(); toggleAutoTags();
@ -687,8 +699,7 @@
</div> </div>
<button <button
aria-labelledby="detect-artifacts-label" aria-labelledby="detect-artifacts-label"
class="p-1 px-3 text-xs flex rounded-sm transition" class="p-1 px-3 text-xs flex rounded-sm transition"
on:click={() => { on:click={() => {
toggleDetectArtifacts(); toggleDetectArtifacts();
@ -711,7 +722,7 @@
</div> </div>
<button <button
aria-labelledby="auto-copy-label" aria-labelledby="auto-copy-label"
class="p-1 px-3 text-xs flex rounded-sm transition" class="p-1 px-3 text-xs flex rounded-sm transition"
on:click={() => { on:click={() => {
toggleResponseAutoCopy(); toggleResponseAutoCopy();
@ -734,7 +745,7 @@
</div> </div>
<button <button
aria-labelledby="rich-input-label" aria-labelledby="rich-input-label"
class="p-1 px-3 text-xs flex rounded-sm transition" class="p-1 px-3 text-xs flex rounded-sm transition"
on:click={() => { on:click={() => {
toggleRichTextInput(); toggleRichTextInput();
@ -758,7 +769,7 @@
</div> </div>
<button <button
aria-labelledby="prompt-autocompletion-label" aria-labelledby="prompt-autocompletion-label"
class="p-1 px-3 text-xs flex rounded-sm transition" class="p-1 px-3 text-xs flex rounded-sm transition"
on:click={() => { on:click={() => {
togglePromptAutocomplete(); togglePromptAutocomplete();
@ -782,7 +793,7 @@
</div> </div>
<button <button
aria-labelledby="paste-large-label" aria-labelledby="paste-large-label"
class="p-1 px-3 text-xs flex rounded-sm transition" class="p-1 px-3 text-xs flex rounded-sm transition"
on:click={() => { on:click={() => {
toggleLargeTextAsFile(); toggleLargeTextAsFile();
@ -805,7 +816,7 @@
</div> </div>
<button <button
aria-labelledby="copy-formatted-label" aria-labelledby="copy-formatted-label"
class="p-1 px-3 text-xs flex rounded-sm transition" class="p-1 px-3 text-xs flex rounded-sm transition"
on:click={() => { on:click={() => {
toggleCopyFormatted(); toggleCopyFormatted();
@ -823,10 +834,12 @@
<div> <div>
<div class=" py-0.5 flex w-full justify-between"> <div class=" py-0.5 flex w-full justify-between">
<div id="always-collapse-label" class=" self-center text-xs">{$i18n.t('Always Collapse Code Blocks')}</div> <div id="always-collapse-label" class=" self-center text-xs">
{$i18n.t('Always Collapse Code Blocks')}
</div>
<button <button
aria-labelledby="always-collapse-label" aria-labelledby="always-collapse-label"
class="p-1 px-3 text-xs flex rounded-sm transition" class="p-1 px-3 text-xs flex rounded-sm transition"
on:click={() => { on:click={() => {
toggleCollapseCodeBlocks(); toggleCollapseCodeBlocks();
@ -844,10 +857,12 @@
<div> <div>
<div class=" py-0.5 flex w-full justify-between"> <div class=" py-0.5 flex w-full justify-between">
<div id="always-expand-label" class=" self-center text-xs">{$i18n.t('Always Expand Details')}</div> <div id="always-expand-label" class=" self-center text-xs">
{$i18n.t('Always Expand Details')}
</div>
<button <button
aria-labelledby="always-expand-label" aria-labelledby="always-expand-label"
class="p-1 px-3 text-xs flex rounded-sm transition" class="p-1 px-3 text-xs flex rounded-sm transition"
on:click={() => { on:click={() => {
toggleExpandDetails(); toggleExpandDetails();
@ -870,7 +885,7 @@
</div> </div>
<button <button
aria-labelledby="chat-background-label" aria-labelledby="chat-background-label"
class="p-1 px-3 text-xs flex rounded-sm transition" class="p-1 px-3 text-xs flex rounded-sm transition"
on:click={() => { on:click={() => {
if (backgroundImageUrl !== null) { if (backgroundImageUrl !== null) {
@ -896,7 +911,7 @@
<div class=" self-center text-xs">{$i18n.t('Allow User Location')}</div> <div class=" self-center text-xs">{$i18n.t('Allow User Location')}</div>
<button <button
aria-labelledby="allow-user-location-label" aria-labelledby="allow-user-location-label"
class="p-1 px-3 text-xs flex rounded-sm transition" class="p-1 px-3 text-xs flex rounded-sm transition"
on:click={() => { on:click={() => {
toggleUserLocation(); toggleUserLocation();
@ -919,7 +934,7 @@
</div> </div>
<button <button
aria-labelledby="haptic-feedback-label" aria-labelledby="haptic-feedback-label"
class="p-1 px-3 text-xs flex rounded-sm transition" class="p-1 px-3 text-xs flex rounded-sm transition"
on:click={() => { on:click={() => {
toggleHapticFeedback(); toggleHapticFeedback();
@ -965,7 +980,7 @@
</div> </div>
<button <button
aria-labelledby="enter-key-behavior-label" aria-labelledby="enter-key-behavior-label"
class="p-1 px-3 text-xs flex rounded transition" class="p-1 px-3 text-xs flex rounded transition"
on:click={() => { on:click={() => {
togglectrlEnterToSend(); togglectrlEnterToSend();
@ -988,7 +1003,7 @@
</div> </div>
<button <button
aria-labelledby="scroll-on-branch-change-label" aria-labelledby="scroll-on-branch-change-label"
class="p-1 px-3 text-xs flex rounded-sm transition" class="p-1 px-3 text-xs flex rounded-sm transition"
on:click={() => { on:click={() => {
togglesScrollOnBranchChange(); togglesScrollOnBranchChange();
@ -1006,10 +1021,12 @@
<div> <div>
<div class=" py-0.5 flex w-full justify-between"> <div class=" py-0.5 flex w-full justify-between">
<div id="web-search-in-chat-label" class=" self-center text-xs">{$i18n.t('Web Search in Chat')}</div> <div id="web-search-in-chat-label" class=" self-center text-xs">
{$i18n.t('Web Search in Chat')}
</div>
<button <button
aria-labelledby="web-search-in-chat-label" aria-labelledby="web-search-in-chat-label"
class="p-1 px-3 text-xs flex rounded-sm transition" class="p-1 px-3 text-xs flex rounded-sm transition"
on:click={() => { on:click={() => {
toggleWebSearch(); toggleWebSearch();
@ -1027,10 +1044,12 @@
<div> <div>
<div class=" py-0.5 flex w-full justify-between"> <div class=" py-0.5 flex w-full justify-between">
<div id="iframe-sandbox-allow-same-origin-label" class=" self-center text-xs">{$i18n.t('iframe Sandbox Allow Same Origin')}</div> <div id="iframe-sandbox-allow-same-origin-label" class=" self-center text-xs">
{$i18n.t('iframe Sandbox Allow Same Origin')}
</div>
<button <button
aria-labelledby="iframe-sandbox-allow-same-origin-label" aria-labelledby="iframe-sandbox-allow-same-origin-label"
class="p-1 px-3 text-xs flex rounded-sm transition" class="p-1 px-3 text-xs flex rounded-sm transition"
on:click={() => { on:click={() => {
toggleIframeSandboxAllowSameOrigin(); toggleIframeSandboxAllowSameOrigin();
@ -1048,10 +1067,12 @@
<div> <div>
<div class=" py-0.5 flex w-full justify-between"> <div class=" py-0.5 flex w-full justify-between">
<div id="iframe-sandbox-allow-forms-label" class=" self-center text-xs">{$i18n.t('iframe Sandbox Allow Forms')}</div> <div id="iframe-sandbox-allow-forms-label" class=" self-center text-xs">
{$i18n.t('iframe Sandbox Allow Forms')}
</div>
<button <button
aria-labelledby="iframe-sandbox-allow-forms-label" aria-labelledby="iframe-sandbox-allow-forms-label"
class="p-1 px-3 text-xs flex rounded-sm transition" class="p-1 px-3 text-xs flex rounded-sm transition"
on:click={() => { on:click={() => {
toggleIframeSandboxAllowForms(); toggleIframeSandboxAllowForms();
@ -1074,7 +1095,7 @@
</div> </div>
<button <button
aria-labelledby="stylized-pdf-export-label" aria-labelledby="stylized-pdf-export-label"
class="p-1 px-3 text-xs flex rounded-sm transition" class="p-1 px-3 text-xs flex rounded-sm transition"
on:click={() => { on:click={() => {
toggleStylizedPdfExport(); toggleStylizedPdfExport();
@ -1097,7 +1118,7 @@
<div class=" self-center text-xs">{$i18n.t('Allow Voice Interruption in Call')}</div> <div class=" self-center text-xs">{$i18n.t('Allow Voice Interruption in Call')}</div>
<button <button
aria-labelledby="allow-voice-interruption-label" aria-labelledby="allow-voice-interruption-label"
class="p-1 px-3 text-xs flex rounded-sm transition" class="p-1 px-3 text-xs flex rounded-sm transition"
on:click={() => { on:click={() => {
toggleVoiceInterruption(); toggleVoiceInterruption();
@ -1115,10 +1136,12 @@
<div> <div>
<div class=" py-0.5 flex w-full justify-between"> <div class=" py-0.5 flex w-full justify-between">
<div id="display-emoji-label" class=" self-center text-xs">{$i18n.t('Display Emoji in Call')}</div> <div id="display-emoji-label" class=" self-center text-xs">
{$i18n.t('Display Emoji in Call')}
</div>
<button <button
aria-labelledby="display-emoji-label" aria-labelledby="display-emoji-label"
class="p-1 px-3 text-xs flex rounded-sm transition" class="p-1 px-3 text-xs flex rounded-sm transition"
on:click={() => { on:click={() => {
toggleEmojiInCall(); toggleEmojiInCall();
@ -1138,10 +1161,12 @@
<div> <div>
<div class=" py-0.5 flex w-full justify-between"> <div class=" py-0.5 flex w-full justify-between">
<div id="image-compression-label" class=" self-center text-xs">{$i18n.t('Image Compression')}</div> <div id="image-compression-label" class=" self-center text-xs">
{$i18n.t('Image Compression')}
</div>
<button <button
aria-labelledby="image-compression-label" aria-labelledby="image-compression-label"
class="p-1 px-3 text-xs flex rounded-sm transition" class="p-1 px-3 text-xs flex rounded-sm transition"
on:click={() => { on:click={() => {
toggleImageCompression(); toggleImageCompression();
@ -1160,10 +1185,14 @@
{#if imageCompression} {#if imageCompression}
<div> <div>
<div class=" py-0.5 flex w-full justify-between text-xs"> <div class=" py-0.5 flex w-full justify-between text-xs">
<div id="image-compression-size-label" class=" self-center text-xs">{$i18n.t('Image Max Compression Size')}</div> <div id="image-compression-size-label" class=" self-center text-xs">
{$i18n.t('Image Max Compression Size')}
</div>
<div> <div>
<label class="sr-only" for="image-comp-width">{$i18n.t('Image Max Compression Size width')}</label> <label class="sr-only" for="image-comp-width"
>{$i18n.t('Image Max Compression Size width')}</label
>
<input <input
bind:value={imageCompressionSize.width} bind:value={imageCompressionSize.width}
type="number" type="number"
@ -1171,7 +1200,9 @@
min="0" min="0"
placeholder="Width" placeholder="Width"
/>x />x
<label class="sr-only" for="image-comp-height">{$i18n.t('Image Max Compression Size height')}</label> <label class="sr-only" for="image-comp-height"
>{$i18n.t('Image Max Compression Size height')}</label
>
<input <input
bind:value={imageCompressionSize.height} bind:value={imageCompressionSize.height}
type="number" type="number"