mirror of
https://github.com/toeverything/AFFiNE.git
synced 2025-01-02 14:27:19 +03:00
fix: module path
This commit is contained in:
parent
375b5197da
commit
d75e5fff92
@ -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';
|
||||
|
@ -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';
|
||||
|
@ -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 {
|
||||
|
@ -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';
|
||||
|
@ -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';
|
||||
|
||||
|
@ -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[];
|
||||
|
Loading…
Reference in New Issue
Block a user