feat(core): support creating cloud workspaces to different servers (#9006)

This commit is contained in:
JimmFly
2024-12-04 06:39:13 +00:00
parent dddefcf768
commit 1fa1a95c10
24 changed files with 621 additions and 67 deletions
@@ -14,7 +14,7 @@ export type SettingTab =
| `workspace:${'preference' | 'properties'}`;
export type GLOBAL_DIALOG_SCHEMA = {
'create-workspace': () => {
'create-workspace': (props: { serverId?: string; forcedCloud?: boolean }) => {
metadata: WorkspaceMetadata;
defaultDocId?: string;
};
@@ -31,9 +31,14 @@ export type GLOBAL_DIALOG_SCHEMA = {
workspaceMetadata?: WorkspaceMetadata | null;
scrollAnchor?: string;
}) => void;
'sign-in': (props: { server?: string; step?: 'sign-in' }) => void;
'sign-in': (props: { server?: string; step?: string }) => void;
'change-password': (props: { server?: string }) => void;
'verify-email': (props: { server?: string; changeEmail?: boolean }) => void;
'enable-cloud': (props: {
workspaceId: string;
openPageId?: string;
serverId?: string;
}) => boolean;
};
export type WORKSPACE_DIALOG_SCHEMA = {