fix: module path

This commit is contained in:
alt0 2023-01-08 19:14:21 +08:00
parent 375b5197da
commit d75e5fff92
6 changed files with 10 additions and 10 deletions

View File

@ -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';

View File

@ -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';

View File

@ -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 {

View File

@ -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';

View File

@ -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';

View File

@ -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<string> {
private _workspaces: WS[];