chore: format

This commit is contained in:
Timothy Jaeryang Baek
2025-08-21 04:47:28 +04:00
parent efcf6db687
commit 1a15a62b73
69 changed files with 1995 additions and 775 deletions
@@ -437,7 +437,7 @@
...$MODEL_DOWNLOAD_POOL
});
await deleteModel(localStorage.token, model);
toast.success($i18n.t("{{model}} download has been canceled", { model: model }));
toast.success($i18n.t('{{model}} download has been canceled', { model: model }));
}
};
@@ -514,9 +514,7 @@
{:else if (valves_spec.properties[property]?.type ?? null) === 'boolean'}
<div class="flex justify-between items-center">
<div class="text-xs text-gray-500">
{valves[property]
? $i18n.t('Enabled')
: $i18n.t('Disabled')}
{valves[property] ? $i18n.t('Enabled') : $i18n.t('Disabled')}
</div>
<div class=" pr-2">
@@ -104,7 +104,9 @@
}
}
toast.success($i18n.t("Successfully imported {{userCount}} users.", { userCount: userCount }));
toast.success(
$i18n.t('Successfully imported {{userCount}} users.', { userCount: userCount })
);
inputFiles = null;
const uploadInputElement = document.getElementById('upload-user-csv-input');
@@ -132,7 +132,9 @@
<!-- Virtualized Emoji List -->
<div class="w-full flex justify-start h-96 overflow-y-auto px-3 pb-3 text-sm">
{#if emojiRows.length === 0}
<div class="text-center text-xs text-gray-500 dark:text-gray-400">{$i18n.t('No results')}</div>
<div class="text-center text-xs text-gray-500 dark:text-gray-400">
{$i18n.t('No results')}
</div>
{:else}
<div class="w-full flex ml-0.5">
<VirtualList rowHeight={ROW_HEIGHT} items={emojiRows} height={384} let:item>
@@ -131,7 +131,7 @@
<input
type="text"
class="flex-1 py-1 text-sm dark:text-gray-300 bg-transparent outline-hidden"
placeholder={$i18n.t("Enter value (true/false)")}
placeholder={$i18n.t('Enter value (true/false)')}
bind:value={variableValues[variable]}
autocomplete="off"
required
@@ -156,7 +156,7 @@
<input
type="text"
class="flex-1 py-2 text-sm dark:text-gray-300 bg-transparent outline-hidden"
placeholder={$i18n.t("Enter hex color (e.g. #FF0000)")}
placeholder={$i18n.t('Enter hex color (e.g. #FF0000)')}
bind:value={variableValues[variable]}
autocomplete="off"
required
@@ -308,7 +308,7 @@
<input
type="text"
class=" w-full py-1 text-left text-sm dark:text-gray-300 bg-transparent outline-hidden"
placeholder={$i18n.t("Enter coordinates (e.g. 51.505, -0.09)")}
placeholder={$i18n.t('Enter coordinates (e.g. 51.505, -0.09)')}
bind:value={variableValues[variable]}
autocomplete="off"
required
@@ -29,7 +29,7 @@
newPasswordConfirm = '';
} else {
toast.error(
$i18n.t('The passwords you entered don\'t quite match. Please double-check and try again.')
$i18n.t("The passwords you entered don't quite match. Please double-check and try again.")
);
newPassword = '';
newPasswordConfirm = '';
+2 -2
View File
@@ -113,7 +113,7 @@
<input
type="text"
class="flex-1 rounded-lg py-2 text-sm dark:text-gray-300 dark:bg-gray-850 outline-hidden border border-gray-100 dark:border-gray-850"
placeholder={$i18n.t("Enter hex color (e.g. #FF0000)")}
placeholder={$i18n.t('Enter hex color (e.g. #FF0000)')}
bind:value={valves[property]}
autocomplete="off"
disabled
@@ -139,7 +139,7 @@
<input
type="text"
class=" w-full rounded-lg py-1 text-left text-sm dark:text-gray-300 dark:bg-gray-850 outline-hidden border border-gray-100 dark:border-gray-850"
placeholder={$i18n.t("Enter coordinates (e.g. 51.505, -0.09)")}
placeholder={$i18n.t('Enter coordinates (e.g. 51.505, -0.09)')}
bind:value={valves[property]}
autocomplete="off"
on:change={() => {
@@ -116,7 +116,9 @@
<div>
<Textarea
className=" text-sm w-full bg-transparent outline-hidden "
placeholder={$i18n.t('Write your model system prompt content here\ne.g.) You are Mario from Super Mario Bros, acting as an assistant.')}
placeholder={$i18n.t(
'Write your model system prompt content here\ne.g.) You are Mario from Super Mario Bros, acting as an assistant.'
)}
maxSize={200}
bind:value={data.system_prompt}
/>
@@ -582,7 +582,9 @@
<div>
<Textarea
className=" text-sm w-full bg-transparent outline-hidden resize-none overflow-y-hidden "
placeholder={$i18n.t('Write your model system prompt content here\ne.g.) You are Mario from Super Mario Bros, acting as an assistant.')}
placeholder={$i18n.t(
'Write your model system prompt content here\ne.g.) You are Mario from Super Mario Bros, acting as an assistant.'
)}
rows={4}
bind:value={system}
/>