refactor: rootWorkspacesMetadataAtom loading logic (#2882)

This commit is contained in:
Alex Yang
2023-06-29 16:48:12 +08:00
committed by GitHub
parent 8a2dac9718
commit 8410d83744
22 changed files with 436 additions and 353 deletions

View File

@@ -206,3 +206,14 @@ export interface AppEvents {
// request to revoke access to workspace plugin
'workspace:revoke': () => Promise<void>;
}
export interface WorkspaceAdapter<Flavour extends WorkspaceFlavour> {
releaseType: ReleaseType;
flavour: Flavour;
// The Adapter will be loaded according to the priority
loadPriority: LoadPriority;
Events: Partial<AppEvents>;
// Fetch necessary data for the first render
CRUD: WorkspaceCRUD<Flavour>;
UI: WorkspaceUISchema<Flavour>;
}