index.ts 878 B

12345678910111213141516171819202122232425262728293031323334353637
  1. import { APP_NAME } from '$lib/constants';
  2. import { writable } from 'svelte/store';
  3. // Backend
  4. export const WEBUI_NAME = writable(APP_NAME);
  5. export const config = writable(undefined);
  6. export const user = writable(undefined);
  7. // Frontend
  8. export const theme = writable('system');
  9. export const chatId = writable('');
  10. export const chats = writable([]);
  11. export const tags = writable([]);
  12. export const models = writable([]);
  13. export const modelfiles = writable([]);
  14. export const prompts = writable([]);
  15. export const documents = writable([
  16. {
  17. collection_name: 'collection_name',
  18. filename: 'filename',
  19. name: 'name',
  20. title: 'title'
  21. },
  22. {
  23. collection_name: 'collection_name1',
  24. filename: 'filename1',
  25. name: 'name1',
  26. title: 'title1'
  27. }
  28. ]);
  29. export const settings = writable({});
  30. export const showSettings = writable(false);
  31. export const showChangelog = writable(false);