chore: format

This commit is contained in:
Timothy Jaeryang Baek
2024-12-31 02:26:30 -08:00
parent 0846a08795
commit 016b91adda
51 changed files with 272 additions and 17 deletions
+12 -10
View File
@@ -1,6 +1,6 @@
import { APP_NAME } from '$lib/constants';
import { type Writable, writable } from 'svelte/store';
import type { ModelConfig } from '$lib/apis';
import type { ModelConfig } from '$lib/apis';
import type { Banner } from '$lib/types';
import type { Socket } from 'socket.io-client';
@@ -22,17 +22,19 @@ export const USAGE_POOL: Writable<null | string[]> = writable(null);
export const theme = writable('system');
export const shortCodesToEmojis = writable(Object.entries(emojiShortCodes).reduce((acc, [key, value]) => {
if (typeof value === 'string') {
acc[value] = key;
} else {
for (const v of value) {
acc[v] = key;
export const shortCodesToEmojis = writable(
Object.entries(emojiShortCodes).reduce((acc, [key, value]) => {
if (typeof value === 'string') {
acc[value] = key;
} else {
for (const v of value) {
acc[v] = key;
}
}
}
return acc;
}, {}));
return acc;
}, {})
);
export const chatId = writable('');
export const chatTitle = writable('');