index.ts 876 Bytes
Newer Older
1
import { APP_NAME } from '$lib/constants';
2
3
import { writable } from 'svelte/store';

4
// Backend
5
export const WEBUI_NAME = writable(APP_NAME);
6
7
export const config = writable(undefined);
export const user = writable(undefined);
8
9

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

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

14
export const chats = writable([]);
Timothy J. Baek's avatar
Timothy J. Baek committed
15
export const tags = writable([]);
16
export const models = writable([]);
Timothy J. Baek's avatar
Timothy J. Baek committed
17

18
export const modelfiles = writable([]);
Timothy J. Baek's avatar
Timothy J. Baek committed
19
export const prompts = writable([]);
Timothy J. Baek's avatar
Timothy J. Baek committed
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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
34

35
36
export const settings = writable({});
export const showSettings = writable(false);
37
export const showChangelog = writable(false);