index.ts 707 Bytes
Newer Older
1
2
import { writable } from 'svelte/store';

3
// Backend
4
5
export const config = writable(undefined);
export const user = writable(undefined);
6
7

// Frontend
Timothy J. Baek's avatar
Timothy J. Baek committed
8
export const theme = writable('dark');
Timothy J. Baek's avatar
Timothy J. Baek committed
9

10
export const chatId = writable('');
Timothy J. Baek's avatar
Timothy J. Baek committed
11

12
13
export const chats = writable([]);
export const models = writable([]);
Timothy J. Baek's avatar
Timothy J. Baek committed
14

15
export const modelfiles = writable([]);
Timothy J. Baek's avatar
Timothy J. Baek committed
16
export const prompts = writable([]);
Timothy J. Baek's avatar
Timothy J. Baek committed
17
18
19
20
21
22
23
24
25
26
27
28
29
30
export const documents = writable([
	{
		collection_name: 'collection_name',
		filename: 'filename',
		name: 'name',
		title: 'title'
	},
	{
		collection_name: 'collection_name1',
		filename: 'filename1',
		name: 'name1',
		title: 'title1'
	}
]);
Timothy J. Baek's avatar
Timothy J. Baek committed
31

32
33
export const settings = writable({});
export const showSettings = writable(false);