Skip to content

Commit 08678b1

Browse files
committed
refactor: Exports
1 parent b45e117 commit 08678b1

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

tools/server/webui/src/lib/stores/chat.svelte.ts

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1462,20 +1462,17 @@ class ChatStore {
14621462

14631463
export const chatStore = new ChatStore();
14641464

1465-
export const isLoading = () => chatStore.isLoading;
1465+
export const activeProcessingState = () => chatStore.activeProcessingState;
1466+
export const clearEditMode = () => chatStore.clearEditMode();
14661467
export const currentResponse = () => chatStore.currentResponse;
14671468
export const errorDialog = () => chatStore.errorDialogState;
1468-
export const activeProcessingState = () => chatStore.activeProcessingState;
1469-
export const isChatStreaming = () => chatStore.isStreaming();
1470-
1471-
export const isChatLoading = (convId: string) => chatStore.isChatLoadingPublic(convId);
1472-
export const getChatStreaming = (convId: string) => chatStore.getChatStreamingPublic(convId);
1469+
export const getAddFilesHandler = () => chatStore.getAddFilesHandler();
14731470
export const getAllLoadingChats = () => chatStore.getAllLoadingChats();
14741471
export const getAllStreamingChats = () => chatStore.getAllStreamingChats();
1475-
1476-
// Edit mode exports
1472+
export const getChatStreaming = (convId: string) => chatStore.getChatStreamingPublic(convId);
1473+
export const isChatLoading = (convId: string) => chatStore.isChatLoadingPublic(convId);
1474+
export const isChatStreaming = () => chatStore.isStreaming();
14771475
export const isEditModeActive = () => chatStore.isEditModeActive();
1478-
export const getAddFilesHandler = () => chatStore.getAddFilesHandler();
1476+
export const isLoading = () => chatStore.isLoading;
14791477
export const setEditModeActive = (handler: (files: File[]) => void) =>
14801478
chatStore.setEditModeActive(handler);
1481-
export const clearEditMode = () => chatStore.clearEditMode();

0 commit comments

Comments
 (0)