index.ts 927 B

1234567891011121314151617181920212223242526272829303132333435363738
  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 MODEL_DOWNLOAD_POOL = writable({});
  9. export const theme = writable('system');
  10. export const chatId = writable('');
  11. export const chats = writable([]);
  12. export const tags = writable([]);
  13. export const models = writable([]);
  14. export const modelfiles = writable([]);
  15. export const prompts = writable([]);
  16. export const documents = writable([
  17. {
  18. collection_name: 'collection_name',
  19. filename: 'filename',
  20. name: 'name',
  21. title: 'title'
  22. },
  23. {
  24. collection_name: 'collection_name1',
  25. filename: 'filename1',
  26. name: 'name1',
  27. title: 'title1'
  28. }
  29. ]);
  30. export const settings = writable({});
  31. export const showSettings = writable(false);
  32. export const showChangelog = writable(false);