mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-14 21:27:20 +00:00
feat(core): desktop multiple server support (#8979)
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
import { DebugLogger } from '@affine/debug';
|
||||
import { DEFAULT_WORKSPACE_NAME } from '@affine/env/constant';
|
||||
import { WorkspaceFlavour } from '@affine/env/workspace';
|
||||
import onboardingUrl from '@affine/templates/onboarding.zip';
|
||||
import { ZipTransformer } from '@blocksuite/affine/blocks';
|
||||
import type { WorkspacesService } from '@toeverything/infra';
|
||||
@@ -8,7 +7,7 @@ import { DocsService } from '@toeverything/infra';
|
||||
|
||||
export async function buildShowcaseWorkspace(
|
||||
workspacesService: WorkspacesService,
|
||||
flavour: WorkspaceFlavour,
|
||||
flavour: string,
|
||||
workspaceName: string
|
||||
) {
|
||||
const meta = await workspacesService.create(flavour, async docCollection => {
|
||||
@@ -48,7 +47,7 @@ export async function createFirstAppData(workspacesService: WorkspacesService) {
|
||||
localStorage.setItem('is-first-open', 'false');
|
||||
const { meta, defaultDocId } = await buildShowcaseWorkspace(
|
||||
workspacesService,
|
||||
WorkspaceFlavour.LOCAL,
|
||||
'local',
|
||||
DEFAULT_WORKSPACE_NAME
|
||||
);
|
||||
logger.info('create first workspace', defaultDocId);
|
||||
|
||||
Reference in New Issue
Block a user