123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825 |
- <script lang="ts">
- import { getBackendConfig } from '$lib/apis';
- import { setDefaultPromptSuggestions } from '$lib/apis/configs';
- import { config, models, settings, user } from '$lib/stores';
- import { createEventDispatcher, onMount, getContext } from 'svelte';
- import { toast } from 'svelte-sonner';
- import Tooltip from '$lib/components/common/Tooltip.svelte';
- import { updateUserInfo } from '$lib/apis/users';
- import { getUserPosition } from '$lib/utils';
- const dispatch = createEventDispatcher();
- const i18n = getContext('i18n');
- export let saveSettings: Function;
- let backgroundImageUrl = null;
- let inputFiles = null;
- let filesInputElement;
- // Addons
- let titleAutoGenerate = true;
- let autoTags = true;
- let responseAutoCopy = false;
- let widescreenMode = false;
- let splitLargeChunks = false;
- let scrollOnBranchChange = true;
- let userLocation = false;
- // Interface
- let defaultModelId = '';
- let showUsername = false;
- let richTextInput = true;
- let largeTextAsFile = false;
- let notificationSound = true;
- let landingPageMode = '';
- let chatBubble = true;
- let chatDirection: 'LTR' | 'RTL' = 'LTR';
- let ctrlEnterToSend = false;
- let imageCompression = false;
- let imageCompressionSize = {
- width: '',
- height: ''
- };
- // Admin - Show Update Available Toast
- let showUpdateToast = true;
- let showChangelog = true;
- let showEmojiInCall = false;
- let voiceInterruption = false;
- let hapticFeedback = false;
- let webSearch = null;
- const toggleSplitLargeChunks = async () => {
- splitLargeChunks = !splitLargeChunks;
- saveSettings({ splitLargeChunks: splitLargeChunks });
- };
- const togglesScrollOnBranchChange = async () => {
- scrollOnBranchChange = !scrollOnBranchChange;
- saveSettings({ scrollOnBranchChange: scrollOnBranchChange });
- };
- const toggleWidescreenMode = async () => {
- widescreenMode = !widescreenMode;
- saveSettings({ widescreenMode: widescreenMode });
- };
- const toggleChatBubble = async () => {
- chatBubble = !chatBubble;
- saveSettings({ chatBubble: chatBubble });
- };
- const toggleLandingPageMode = async () => {
- landingPageMode = landingPageMode === '' ? 'chat' : '';
- saveSettings({ landingPageMode: landingPageMode });
- };
- const toggleShowUpdateToast = async () => {
- showUpdateToast = !showUpdateToast;
- saveSettings({ showUpdateToast: showUpdateToast });
- };
- const toggleNotificationSound = async () => {
- notificationSound = !notificationSound;
- saveSettings({ notificationSound: notificationSound });
- };
- const toggleShowChangelog = async () => {
- showChangelog = !showChangelog;
- saveSettings({ showChangelog: showChangelog });
- };
- const toggleShowUsername = async () => {
- showUsername = !showUsername;
- saveSettings({ showUsername: showUsername });
- };
- const toggleEmojiInCall = async () => {
- showEmojiInCall = !showEmojiInCall;
- saveSettings({ showEmojiInCall: showEmojiInCall });
- };
- const toggleVoiceInterruption = async () => {
- voiceInterruption = !voiceInterruption;
- saveSettings({ voiceInterruption: voiceInterruption });
- };
- const toggleImageCompression = async () => {
- imageCompression = !imageCompression;
- saveSettings({ imageCompression });
- };
- const toggleHapticFeedback = async () => {
- hapticFeedback = !hapticFeedback;
- saveSettings({ hapticFeedback: hapticFeedback });
- };
- const toggleUserLocation = async () => {
- userLocation = !userLocation;
- if (userLocation) {
- const position = await getUserPosition().catch((error) => {
- toast.error(error.message);
- return null;
- });
- if (position) {
- await updateUserInfo(localStorage.token, { location: position });
- toast.success($i18n.t('User location successfully retrieved.'));
- } else {
- userLocation = false;
- }
- }
- saveSettings({ userLocation });
- };
- const toggleTitleAutoGenerate = async () => {
- titleAutoGenerate = !titleAutoGenerate;
- saveSettings({
- title: {
- ...$settings.title,
- auto: titleAutoGenerate
- }
- });
- };
- const toggleAutoTags = async () => {
- autoTags = !autoTags;
- saveSettings({ autoTags });
- };
- const toggleRichTextInput = async () => {
- richTextInput = !richTextInput;
- saveSettings({ richTextInput });
- };
- const toggleLargeTextAsFile = async () => {
- largeTextAsFile = !largeTextAsFile;
- saveSettings({ largeTextAsFile });
- };
- const toggleResponseAutoCopy = async () => {
- const permission = await navigator.clipboard
- .readText()
- .then(() => {
- return 'granted';
- })
- .catch(() => {
- return '';
- });
- console.log(permission);
- if (permission === 'granted') {
- responseAutoCopy = !responseAutoCopy;
- saveSettings({ responseAutoCopy: responseAutoCopy });
- } else {
- toast.error(
- $i18n.t(
- 'Clipboard write permission denied. Please check your browser settings to grant the necessary access.'
- )
- );
- }
- };
- const toggleChangeChatDirection = async () => {
- chatDirection = chatDirection === 'LTR' ? 'RTL' : 'LTR';
- saveSettings({ chatDirection });
- };
- const togglectrlEnterToSend = async () => {
- ctrlEnterToSend = !ctrlEnterToSend;
- saveSettings({ ctrlEnterToSend });
- };
- const updateInterfaceHandler = async () => {
- saveSettings({
- models: [defaultModelId],
- imageCompressionSize: imageCompressionSize
- });
- };
- const toggleWebSearch = async () => {
- webSearch = webSearch === null ? 'always' : null;
- saveSettings({ webSearch: webSearch });
- };
- onMount(async () => {
- titleAutoGenerate = $settings?.title?.auto ?? true;
- autoTags = $settings.autoTags ?? true;
- responseAutoCopy = $settings.responseAutoCopy ?? false;
- showUsername = $settings.showUsername ?? false;
- showUpdateToast = $settings.showUpdateToast ?? true;
- showChangelog = $settings.showChangelog ?? true;
- showEmojiInCall = $settings.showEmojiInCall ?? false;
- voiceInterruption = $settings.voiceInterruption ?? false;
- richTextInput = $settings.richTextInput ?? true;
- largeTextAsFile = $settings.largeTextAsFile ?? false;
- landingPageMode = $settings.landingPageMode ?? '';
- chatBubble = $settings.chatBubble ?? true;
- widescreenMode = $settings.widescreenMode ?? false;
- splitLargeChunks = $settings.splitLargeChunks ?? false;
- scrollOnBranchChange = $settings.scrollOnBranchChange ?? true;
- chatDirection = $settings.chatDirection ?? 'LTR';
- userLocation = $settings.userLocation ?? false;
- notificationSound = $settings.notificationSound ?? true;
- hapticFeedback = $settings.hapticFeedback ?? false;
- ctrlEnterToSend = $settings.ctrlEnterToSend ?? false;
- imageCompression = $settings.imageCompression ?? false;
- imageCompressionSize = $settings.imageCompressionSize ?? { width: '', height: '' };
- defaultModelId = $settings?.models?.at(0) ?? '';
- if ($config?.default_models) {
- defaultModelId = $config.default_models.split(',')[0];
- }
- backgroundImageUrl = $settings.backgroundImageUrl ?? null;
- webSearch = $settings.webSearch ?? null;
- });
- </script>
- <form
- class="flex flex-col h-full justify-between space-y-3 text-sm"
- on:submit|preventDefault={() => {
- updateInterfaceHandler();
- dispatch('save');
- }}
- >
- <input
- bind:this={filesInputElement}
- bind:files={inputFiles}
- type="file"
- hidden
- accept="image/*"
- on:change={() => {
- let reader = new FileReader();
- reader.onload = (event) => {
- let originalImageUrl = `${event.target.result}`;
- backgroundImageUrl = originalImageUrl;
- saveSettings({ backgroundImageUrl });
- };
- if (
- inputFiles &&
- inputFiles.length > 0 &&
- ['image/gif', 'image/webp', 'image/jpeg', 'image/png'].includes(inputFiles[0]['type'])
- ) {
- reader.readAsDataURL(inputFiles[0]);
- } else {
- console.log(`Unsupported File Type '${inputFiles[0]['type']}'.`);
- inputFiles = null;
- }
- }}
- />
- <div class=" space-y-3 overflow-y-scroll max-h-[28rem] lg:max-h-full">
- <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-sm 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 class=" py-0.5 flex w-full justify-between">
- <div class=" self-center text-xs">{$i18n.t('Chat Bubble UI')}</div>
- <button
- class="p-1 px-3 text-xs flex rounded-sm transition"
- on:click={() => {
- toggleChatBubble();
- }}
- type="button"
- >
- {#if chatBubble === true}
- <span class="ml-2 self-center">{$i18n.t('On')}</span>
- {:else}
- <span class="ml-2 self-center">{$i18n.t('Off')}</span>
- {/if}
- </button>
- </div>
- </div>
- {#if !$settings.chatBubble}
- <div>
- <div class=" py-0.5 flex w-full justify-between">
- <div class=" self-center text-xs">
- {$i18n.t('Display the username instead of You in the Chat')}
- </div>
- <button
- class="p-1 px-3 text-xs flex rounded-sm transition"
- on:click={() => {
- toggleShowUsername();
- }}
- type="button"
- >
- {#if showUsername === true}
- <span class="ml-2 self-center">{$i18n.t('On')}</span>
- {:else}
- <span class="ml-2 self-center">{$i18n.t('Off')}</span>
- {/if}
- </button>
- </div>
- </div>
- {/if}
- <div>
- <div class=" py-0.5 flex w-full justify-between">
- <div class=" self-center text-xs">{$i18n.t('Widescreen Mode')}</div>
- <button
- class="p-1 px-3 text-xs flex rounded-sm transition"
- on:click={() => {
- toggleWidescreenMode();
- }}
- type="button"
- >
- {#if widescreenMode === true}
- <span class="ml-2 self-center">{$i18n.t('On')}</span>
- {:else}
- <span class="ml-2 self-center">{$i18n.t('Off')}</span>
- {/if}
- </button>
- </div>
- </div>
- <div>
- <div class=" py-0.5 flex w-full justify-between">
- <div class=" self-center text-xs">{$i18n.t('Chat direction')}</div>
- <button
- class="p-1 px-3 text-xs flex rounded-sm transition"
- on:click={toggleChangeChatDirection}
- type="button"
- >
- {#if chatDirection === 'LTR'}
- <span class="ml-2 self-center">{$i18n.t('LTR')}</span>
- {:else}
- <span class="ml-2 self-center">{$i18n.t('RTL')}</span>
- {/if}
- </button>
- </div>
- </div>
- <div>
- <div class=" py-0.5 flex w-full justify-between">
- <div class=" self-center text-xs">
- {$i18n.t('Notification Sound')}
- </div>
- <button
- class="p-1 px-3 text-xs flex rounded-sm transition"
- on:click={() => {
- toggleNotificationSound();
- }}
- type="button"
- >
- {#if notificationSound === true}
- <span class="ml-2 self-center">{$i18n.t('On')}</span>
- {:else}
- <span class="ml-2 self-center">{$i18n.t('Off')}</span>
- {/if}
- </button>
- </div>
- </div>
- {#if $user.role === 'admin'}
- <div>
- <div class=" py-0.5 flex w-full justify-between">
- <div class=" self-center text-xs">
- {$i18n.t('Toast notifications for new updates')}
- </div>
- <button
- class="p-1 px-3 text-xs flex rounded-sm transition"
- on:click={() => {
- toggleShowUpdateToast();
- }}
- type="button"
- >
- {#if showUpdateToast === true}
- <span class="ml-2 self-center">{$i18n.t('On')}</span>
- {:else}
- <span class="ml-2 self-center">{$i18n.t('Off')}</span>
- {/if}
- </button>
- </div>
- </div>
- <div>
- <div class=" py-0.5 flex w-full justify-between">
- <div class=" self-center text-xs">
- {$i18n.t(`Show "What's New" modal on login`)}
- </div>
- <button
- class="p-1 px-3 text-xs flex rounded-sm transition"
- on:click={() => {
- toggleShowChangelog();
- }}
- type="button"
- >
- {#if showChangelog === true}
- <span class="ml-2 self-center">{$i18n.t('On')}</span>
- {:else}
- <span class="ml-2 self-center">{$i18n.t('Off')}</span>
- {/if}
- </button>
- </div>
- </div>
- {/if}
- <div class=" my-1.5 text-sm font-medium">{$i18n.t('Chat')}</div>
- <div>
- <div class=" py-0.5 flex w-full justify-between">
- <div class=" self-center text-xs">{$i18n.t('Title Auto-Generation')}</div>
- <button
- class="p-1 px-3 text-xs flex rounded-sm transition"
- on:click={() => {
- toggleTitleAutoGenerate();
- }}
- type="button"
- >
- {#if titleAutoGenerate === true}
- <span class="ml-2 self-center">{$i18n.t('On')}</span>
- {:else}
- <span class="ml-2 self-center">{$i18n.t('Off')}</span>
- {/if}
- </button>
- </div>
- </div>
- <div>
- <div class=" py-0.5 flex w-full justify-between">
- <div class=" self-center text-xs">{$i18n.t('Chat Tags Auto-Generation')}</div>
- <button
- class="p-1 px-3 text-xs flex rounded-sm transition"
- on:click={() => {
- toggleAutoTags();
- }}
- type="button"
- >
- {#if autoTags === true}
- <span class="ml-2 self-center">{$i18n.t('On')}</span>
- {:else}
- <span class="ml-2 self-center">{$i18n.t('Off')}</span>
- {/if}
- </button>
- </div>
- </div>
- <div>
- <div class=" py-0.5 flex w-full justify-between">
- <div class=" self-center text-xs">
- {$i18n.t('Auto-Copy Response to Clipboard')}
- </div>
- <button
- class="p-1 px-3 text-xs flex rounded-sm transition"
- on:click={() => {
- toggleResponseAutoCopy();
- }}
- type="button"
- >
- {#if responseAutoCopy === true}
- <span class="ml-2 self-center">{$i18n.t('On')}</span>
- {:else}
- <span class="ml-2 self-center">{$i18n.t('Off')}</span>
- {/if}
- </button>
- </div>
- </div>
- <div>
- <div class=" py-0.5 flex w-full justify-between">
- <div class=" self-center text-xs">
- {$i18n.t('Rich Text Input for Chat')}
- </div>
- <button
- class="p-1 px-3 text-xs flex rounded-sm transition"
- on:click={() => {
- toggleRichTextInput();
- }}
- type="button"
- >
- {#if richTextInput === true}
- <span class="ml-2 self-center">{$i18n.t('On')}</span>
- {:else}
- <span class="ml-2 self-center">{$i18n.t('Off')}</span>
- {/if}
- </button>
- </div>
- </div>
- <div>
- <div class=" py-0.5 flex w-full justify-between">
- <div class=" self-center text-xs">
- {$i18n.t('Paste Large Text as File')}
- </div>
- <button
- class="p-1 px-3 text-xs flex rounded-sm transition"
- on:click={() => {
- toggleLargeTextAsFile();
- }}
- type="button"
- >
- {#if largeTextAsFile === true}
- <span class="ml-2 self-center">{$i18n.t('On')}</span>
- {:else}
- <span class="ml-2 self-center">{$i18n.t('Off')}</span>
- {/if}
- </button>
- </div>
- </div>
- <div>
- <div class=" py-0.5 flex w-full justify-between">
- <div class=" self-center text-xs">
- {$i18n.t('Chat Background Image')}
- </div>
- <button
- class="p-1 px-3 text-xs flex rounded-sm transition"
- on:click={() => {
- if (backgroundImageUrl !== null) {
- backgroundImageUrl = null;
- saveSettings({ backgroundImageUrl });
- } else {
- filesInputElement.click();
- }
- }}
- type="button"
- >
- {#if backgroundImageUrl !== null}
- <span class="ml-2 self-center">{$i18n.t('Reset')}</span>
- {:else}
- <span class="ml-2 self-center">{$i18n.t('Upload')}</span>
- {/if}
- </button>
- </div>
- </div>
- <div>
- <div class=" py-0.5 flex w-full justify-between">
- <div class=" self-center text-xs">{$i18n.t('Allow User Location')}</div>
- <button
- class="p-1 px-3 text-xs flex rounded-sm transition"
- on:click={() => {
- toggleUserLocation();
- }}
- type="button"
- >
- {#if userLocation === true}
- <span class="ml-2 self-center">{$i18n.t('On')}</span>
- {:else}
- <span class="ml-2 self-center">{$i18n.t('Off')}</span>
- {/if}
- </button>
- </div>
- </div>
- <div>
- <div class=" py-0.5 flex w-full justify-between">
- <div class=" self-center text-xs">{$i18n.t('Haptic Feedback')}</div>
- <button
- class="p-1 px-3 text-xs flex rounded-sm transition"
- on:click={() => {
- toggleHapticFeedback();
- }}
- type="button"
- >
- {#if hapticFeedback === true}
- <span class="ml-2 self-center">{$i18n.t('On')}</span>
- {:else}
- <span class="ml-2 self-center">{$i18n.t('Off')}</span>
- {/if}
- </button>
- </div>
- </div>
- <!-- <div>
- <div class=" py-0.5 flex w-full justify-between">
- <div class=" self-center text-xs">
- {$i18n.t('Fluidly stream large external response chunks')}
- </div>
- <button
- class="p-1 px-3 text-xs flex rounded-sm transition"
- on:click={() => {
- toggleSplitLargeChunks();
- }}
- type="button"
- >
- {#if splitLargeChunks === true}
- <span class="ml-2 self-center">{$i18n.t('On')}</span>
- {:else}
- <span class="ml-2 self-center">{$i18n.t('Off')}</span>
- {/if}
- </button>
- </div>
- </div> -->
- <div>
- <div class=" py-0.5 flex w-full justify-between">
- <div class=" self-center text-xs">
- {$i18n.t('Enter Key Behavior')}
- </div>
- <button
- class="p-1 px-3 text-xs flex rounded transition"
- on:click={() => {
- togglectrlEnterToSend();
- }}
- type="button"
- >
- {#if ctrlEnterToSend === true}
- <span class="ml-2 self-center">{$i18n.t('Ctrl+Enter to Send')}</span>
- {:else}
- <span class="ml-2 self-center">{$i18n.t('Enter to Send')}</span>
- {/if}
- </button>
- </div>
- </div>
- <div>
- <div class=" py-0.5 flex w-full justify-between">
- <div class=" self-center text-xs">
- {$i18n.t('Scroll to bottom when switching between branches')}
- </div>
- <button
- class="p-1 px-3 text-xs flex rounded-sm transition"
- on:click={() => {
- togglesScrollOnBranchChange();
- }}
- type="button"
- >
- {#if scrollOnBranchChange === true}
- <span class="ml-2 self-center">{$i18n.t('On')}</span>
- {:else}
- <span class="ml-2 self-center">{$i18n.t('Off')}</span>
- {/if}
- </button>
- </div>
- </div>
- <div>
- <div class=" py-0.5 flex w-full justify-between">
- <div class=" self-center text-xs">{$i18n.t('Web Search in Chat')}</div>
- <button
- class="p-1 px-3 text-xs flex rounded-sm transition"
- on:click={() => {
- toggleWebSearch();
- }}
- type="button"
- >
- {#if webSearch === 'always'}
- <span class="ml-2 self-center">{$i18n.t('Always')}</span>
- {:else}
- <span class="ml-2 self-center">{$i18n.t('Default')}</span>
- {/if}
- </button>
- </div>
- </div>
- <div class=" my-1.5 text-sm font-medium">{$i18n.t('Voice')}</div>
- <div>
- <div class=" py-0.5 flex w-full justify-between">
- <div class=" self-center text-xs">{$i18n.t('Allow Voice Interruption in Call')}</div>
- <button
- class="p-1 px-3 text-xs flex rounded-sm transition"
- on:click={() => {
- toggleVoiceInterruption();
- }}
- type="button"
- >
- {#if voiceInterruption === true}
- <span class="ml-2 self-center">{$i18n.t('On')}</span>
- {:else}
- <span class="ml-2 self-center">{$i18n.t('Off')}</span>
- {/if}
- </button>
- </div>
- </div>
- <div>
- <div class=" py-0.5 flex w-full justify-between">
- <div class=" self-center text-xs">{$i18n.t('Display Emoji in Call')}</div>
- <button
- class="p-1 px-3 text-xs flex rounded-sm transition"
- on:click={() => {
- toggleEmojiInCall();
- }}
- type="button"
- >
- {#if showEmojiInCall === true}
- <span class="ml-2 self-center">{$i18n.t('On')}</span>
- {:else}
- <span class="ml-2 self-center">{$i18n.t('Off')}</span>
- {/if}
- </button>
- </div>
- </div>
- <div class=" my-1.5 text-sm font-medium">{$i18n.t('File')}</div>
- <div>
- <div class=" py-0.5 flex w-full justify-between">
- <div class=" self-center text-xs">{$i18n.t('Image Compression')}</div>
- <button
- class="p-1 px-3 text-xs flex rounded-sm transition"
- on:click={() => {
- toggleImageCompression();
- }}
- type="button"
- >
- {#if imageCompression === true}
- <span class="ml-2 self-center">{$i18n.t('On')}</span>
- {:else}
- <span class="ml-2 self-center">{$i18n.t('Off')}</span>
- {/if}
- </button>
- </div>
- </div>
- {#if imageCompression}
- <div>
- <div class=" py-0.5 flex w-full justify-between text-xs">
- <div class=" self-center text-xs">{$i18n.t('Image Max Compression Size')}</div>
- <div>
- <input
- bind:value={imageCompressionSize.width}
- type="number"
- class="w-20 bg-transparent outline-hidden text-center"
- min="0"
- placeholder="Width"
- />x
- <input
- bind:value={imageCompressionSize.height}
- type="number"
- class="w-20 bg-transparent outline-hidden text-center"
- min="0"
- placeholder="Height"
- />
- </div>
- </div>
- </div>
- {/if}
- </div>
- </div>
- <div class="flex justify-end text-sm font-medium">
- <button
- class="px-3.5 py-1.5 text-sm font-medium bg-black hover:bg-gray-900 text-white dark:bg-white dark:text-black dark:hover:bg-gray-100 transition rounded-full"
- type="submit"
- >
- {$i18n.t('Save')}
- </button>
- </div>
- </form>
|