mirror of
https://github.com/geoffsee/open-gsio.git
synced 2025-09-08 22:56:46 +00:00
Refactor store exports and cleanup unused code.
Removed the centralized store export file to streamline dependencies and replaced indirect imports with direct ones for better maintainability. Additionally, eliminated unused views in `ClientChatStore` and commented out redundant code in the assistant SDK.
This commit is contained in:

committed by
Geoff Seemueller

parent
afd539a245
commit
d519534c7d
@@ -2,7 +2,7 @@ import { applySnapshot, flow, Instance, types } from "mobx-state-tree";
|
||||
import Message from "../models/Message";
|
||||
import Attachment from "../models/Attachment";
|
||||
import IntermediateStep from "../models/IntermediateStep";
|
||||
import { UserOptionsStore } from "./index";
|
||||
import UserOptionsStore from "./UserOptionsStore";
|
||||
|
||||
const ClientChatStore = types
|
||||
.model("ClientChatStore", {
|
||||
@@ -15,11 +15,6 @@ const ClientChatStore = types
|
||||
tools: types.optional(types.array(types.string), []),
|
||||
intermediateSteps: types.array(IntermediateStep),
|
||||
})
|
||||
.views((self) => ({
|
||||
get getModel() {
|
||||
return self.model;
|
||||
},
|
||||
}))
|
||||
.actions((self) => ({
|
||||
cleanup() {
|
||||
if (self.eventSource) {
|
||||
@@ -321,6 +316,7 @@ const ClientChatStore = types
|
||||
}));
|
||||
|
||||
export type IMessage = Instance<typeof Message>;
|
||||
|
||||
export type IClientChatStore = Instance<typeof this>;
|
||||
|
||||
export default ClientChatStore.create();
|
||||
|
@@ -1,15 +0,0 @@
|
||||
import AppMenuStore from "./AppMenuStore";
|
||||
import ClientChatStore from "./ClientChatStore";
|
||||
import ClientFeedbackStore from "./ClientFeedbackStore";
|
||||
import ClientTransactionStore from "./ClientTransactionStore";
|
||||
import FileUploadStore from "./FileUploadStore";
|
||||
import UserOptionsStore from "./UserOptionsStore";
|
||||
|
||||
export {
|
||||
AppMenuStore,
|
||||
ClientChatStore,
|
||||
ClientFeedbackStore,
|
||||
ClientTransactionStore,
|
||||
FileUploadStore,
|
||||
UserOptionsStore,
|
||||
};
|
Reference in New Issue
Block a user