fix: move workspace to top level (#2717)

(cherry picked from commit 4958d096b0)
This commit is contained in:
Himself65
2023-06-07 23:20:35 +08:00
committed by Alex Yang
parent 28e05dc92c
commit d273ee955b
88 changed files with 353 additions and 329 deletions
@@ -3,12 +3,12 @@
*/
import 'fake-indexeddb/auto';
import type { LocalWorkspace, WorkspaceCRUD } from '@affine/env/workspace';
import { WorkspaceFlavour } from '@affine/env/workspace';
import { __unstableSchemas, AffineSchemas } from '@blocksuite/blocks/models';
import { Workspace } from '@blocksuite/store';
import { afterEach, assertType, describe, expect, test } from 'vitest';
import type { LocalWorkspace, WorkspaceCRUD } from '../../type';
import { WorkspaceFlavour } from '../../type';
import { CRUD } from '../crud';
afterEach(() => {
+2 -2
View File
@@ -1,12 +1,12 @@
import { DebugLogger } from '@affine/debug';
import type { LocalWorkspace, WorkspaceCRUD } from '@affine/env/workspace';
import { WorkspaceFlavour } from '@affine/env/workspace';
import { nanoid, Workspace as BlockSuiteWorkspace } from '@blocksuite/store';
import { createIndexedDBProvider } from '@toeverything/y-indexeddb';
import { createJSONStorage } from 'jotai/utils';
import { z } from 'zod';
import { createLocalProviders } from '../providers';
import type { LocalWorkspace, WorkspaceCRUD } from '../type';
import { WorkspaceFlavour } from '../type';
import { createEmptyBlockSuiteWorkspace } from '../utils';
const getStorage = () => createJSONStorage(() => localStorage);