refactor(core): move infra modules to core (#9207)

This commit is contained in:
EYHN
2024-12-23 04:53:59 +00:00
parent 2ea79d25ad
commit 129f94ee78
337 changed files with 908 additions and 1367 deletions

View File

@@ -1,11 +1,8 @@
export { CollectionService } from './services/collection';
import {
type Framework,
WorkspaceScope,
WorkspaceService,
} from '@toeverything/infra';
import { type Framework } from '@toeverything/infra';
import { WorkspaceScope, WorkspaceService } from '../workspace';
import { CollectionService } from './services/collection';
export function configureCollectionModule(framework: Framework) {

View File

@@ -3,11 +3,12 @@ import type {
DeleteCollectionInfo,
DeletedCollection,
} from '@affine/env/filter';
import type { WorkspaceService } from '@toeverything/infra';
import { LiveData, Service } from '@toeverything/infra';
import { Observable } from 'rxjs';
import { Array as YArray } from 'yjs';
import type { WorkspaceService } from '../../workspace';
const SETTING_KEY = 'setting';
const COLLECTIONS_KEY = 'collections';