From d75e5fff926158831c6db18d9b67fca9b64b4b0c Mon Sep 17 00:00:00 2001 From: alt0 Date: Sun, 8 Jan 2023 19:14:21 +0800 Subject: [PATCH] fix: module path --- packages/data-center/src/datacenter.ts | 2 +- packages/data-center/src/provider/affine/affine.ts | 2 +- packages/data-center/src/provider/affine/apis/business.ts | 4 ++-- packages/data-center/src/provider/base.ts | 4 ++-- packages/data-center/src/provider/local/local.ts | 4 ++-- packages/data-center/src/workspaces/workspaces.ts | 4 ++-- 6 files changed, 10 insertions(+), 10 deletions(-) diff --git a/packages/data-center/src/datacenter.ts b/packages/data-center/src/datacenter.ts index bec4794df4..bce67be90f 100644 --- a/packages/data-center/src/datacenter.ts +++ b/packages/data-center/src/datacenter.ts @@ -3,7 +3,7 @@ import { Workspace } from '@blocksuite/store'; import { BaseProvider } from './provider/base'; import { LocalProvider } from './provider/local/local'; import { AffineProvider } from './provider'; -import type { Workspace as WS, WorkspaceMeta } from 'src/types'; +import type { Workspace as WS, WorkspaceMeta } from './types'; import assert from 'assert'; import { getLogger } from './logger'; import { BlockSchema } from '@blocksuite/blocks/models'; diff --git a/packages/data-center/src/provider/affine/affine.ts b/packages/data-center/src/provider/affine/affine.ts index ae986cdb7c..25516386d0 100644 --- a/packages/data-center/src/provider/affine/affine.ts +++ b/packages/data-center/src/provider/affine/affine.ts @@ -21,7 +21,7 @@ import assert from 'assert'; import { getAuthorizer } from './apis/token'; import { WebsocketProvider } from './sync'; import { IndexedDBProvider } from '../indexeddb'; -import { getDefaultHeadImgBlob } from 'src/utils'; +import { getDefaultHeadImgBlob } from '../../utils'; export class AffineProvider extends BaseProvider { public id = 'affine'; diff --git a/packages/data-center/src/provider/affine/apis/business.ts b/packages/data-center/src/provider/affine/apis/business.ts index a43cac2418..11a4720851 100644 --- a/packages/data-center/src/provider/affine/apis/business.ts +++ b/packages/data-center/src/provider/affine/apis/business.ts @@ -1,6 +1,6 @@ import { uuidv4 } from '@blocksuite/store'; -import { getDataCenter } from 'src'; -import { DataCenter } from 'src/datacenter'; +// import { getDataCenter } from '.'; +// import { DataCenter } from './datacenter'; // import { Workspace } from '../types'; // export class Business { diff --git a/packages/data-center/src/provider/base.ts b/packages/data-center/src/provider/base.ts index 77cd9fdd3f..d1568dbbc6 100644 --- a/packages/data-center/src/provider/base.ts +++ b/packages/data-center/src/provider/base.ts @@ -1,6 +1,6 @@ import { BlobStorage, Workspace } from '@blocksuite/store'; -import { Logger, User, Workspace as WS, WorkspaceMeta } from 'src/types'; -import { Workspaces } from 'src/workspaces'; +import { Logger, User, Workspace as WS, WorkspaceMeta } from '../types'; +import { Workspaces } from '../workspaces'; export class BaseProvider { public readonly id: string = 'base'; diff --git a/packages/data-center/src/provider/local/local.ts b/packages/data-center/src/provider/local/local.ts index 1acc6db7dd..c741b9da06 100644 --- a/packages/data-center/src/provider/local/local.ts +++ b/packages/data-center/src/provider/local/local.ts @@ -1,10 +1,10 @@ import { BaseProvider } from '../base'; import { varStorage as storage } from 'lib0/storage'; -import { Workspace as WS, WorkspaceMeta } from 'src/types'; +import { Workspace as WS, WorkspaceMeta } from '../../types'; import { Workspace } from '@blocksuite/store'; import { IndexedDBProvider } from '../indexeddb'; import assert from 'assert'; -import { getDefaultHeadImgBlob } from 'src/utils'; +import { getDefaultHeadImgBlob } from '../../utils'; const WORKSPACE_KEY = 'workspaces'; diff --git a/packages/data-center/src/workspaces/workspaces.ts b/packages/data-center/src/workspaces/workspaces.ts index 4dc704e8b7..f813f6b16d 100644 --- a/packages/data-center/src/workspaces/workspaces.ts +++ b/packages/data-center/src/workspaces/workspaces.ts @@ -1,8 +1,8 @@ -import { Workspace as WS } from 'src/types'; +import { Workspace as WS } from '../types'; import { Observable } from 'lib0/observable'; import { uuidv4 } from '@blocksuite/store'; -import { DataCenter } from 'src/datacenter'; +import { DataCenter } from '../datacenter'; export class Workspaces extends Observable { private _workspaces: WS[];