This commit is contained in:
Timothy J. Baek 2024-06-17 01:42:04 -07:00
parent 49fdb68908
commit 9023a60d0d
5 changed files with 22 additions and 6 deletions

12
package-lock.json generated
View File

@ -16,6 +16,7 @@
"async": "^3.2.5", "async": "^3.2.5",
"bits-ui": "^0.19.7", "bits-ui": "^0.19.7",
"codemirror": "^6.0.1", "codemirror": "^6.0.1",
"crc-32": "^1.2.2",
"dayjs": "^1.11.10", "dayjs": "^1.11.10",
"eventsource-parser": "^1.1.2", "eventsource-parser": "^1.1.2",
"file-saver": "^2.0.5", "file-saver": "^2.0.5",
@ -3063,6 +3064,17 @@
"layout-base": "^1.0.0" "layout-base": "^1.0.0"
} }
}, },
"node_modules/crc-32": {
"version": "1.2.2",
"resolved": "https://registry.npmjs.org/crc-32/-/crc-32-1.2.2.tgz",
"integrity": "sha512-ROmzCKrTnOwybPcJApAA6WBWij23HVfGVNKqqrZpuyZOHqK2CwHSvpGuyt/UNNvaIjEd8X5IFGp4Mh+Ie1IHJQ==",
"bin": {
"crc32": "bin/crc32.njs"
},
"engines": {
"node": ">=0.8"
}
},
"node_modules/crelt": { "node_modules/crelt": {
"version": "1.0.6", "version": "1.0.6",
"resolved": "https://registry.npmjs.org/crelt/-/crelt-1.0.6.tgz", "resolved": "https://registry.npmjs.org/crelt/-/crelt-1.0.6.tgz",

View File

@ -56,6 +56,7 @@
"async": "^3.2.5", "async": "^3.2.5",
"bits-ui": "^0.19.7", "bits-ui": "^0.19.7",
"codemirror": "^6.0.1", "codemirror": "^6.0.1",
"crc-32": "^1.2.2",
"dayjs": "^1.11.10", "dayjs": "^1.11.10",
"eventsource-parser": "^1.1.2", "eventsource-parser": "^1.1.2",
"file-saver": "^2.0.5", "file-saver": "^2.0.5",

View File

@ -1332,7 +1332,7 @@
/> />
<div <div
class="absolute top-0 left-0 w-full h-full bg-gradient-to-t from-white to-white/90 dark:from-gray-900 dark:to-[#171717]/90 z-0 -translate-y-[78px]" class="absolute top-0 left-0 w-full h-full bg-gradient-to-t from-white to-white/90 dark:from-gray-900 dark:to-[#171717]/90 z-0"
/> />
{/if} {/if}
@ -1415,6 +1415,7 @@
} }
return a; return a;
}, [])} }, [])}
transparentBackground={$settings?.backgroundImageUrl ?? false}
{selectedModels} {selectedModels}
{messages} {messages}
{submitPrompt} {submitPrompt}

View File

@ -35,6 +35,8 @@
const i18n = getContext('i18n'); const i18n = getContext('i18n');
export let transparentBackground = false;
export let submitPrompt: Function; export let submitPrompt: Function;
export let stopResponse: Function; export let stopResponse: Function;
@ -391,7 +393,7 @@
</div> </div>
</div> </div>
<div class="bg-white dark:bg-gray-900"> <div class="{transparentBackground ? 'bg-transparent' : 'bg-white dark:bg-gray-900'} ">
<div class="max-w-6xl px-2.5 md:px-6 mx-auto inset-x-0"> <div class="max-w-6xl px-2.5 md:px-6 mx-auto inset-x-0">
<div class=" pb-2"> <div class=" pb-2">
<input <input

View File

@ -7,11 +7,11 @@
const dispatch = createEventDispatcher(); const dispatch = createEventDispatcher();
export let title = ($i18n.t('Confirm your action')); export let title = $i18n.t('Confirm your action');
export let message = ($i18n.t('This action cannot be undone. Do you wish to continue?')); export let message = $i18n.t('This action cannot be undone. Do you wish to continue?');
export let cancelLabel = ($i18n.t('Cancel')); export let cancelLabel = $i18n.t('Cancel');
export let confirmLabel = ($i18n.t('Confirm')); export let confirmLabel = $i18n.t('Confirm');
export let show = false; export let show = false;
let modalElement = null; let modalElement = null;