mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-27 02:42:25 +08:00
refactor(core): move infra modules to core (#9207)
This commit is contained in:
@@ -4,44 +4,7 @@ export * from './blocksuite';
|
||||
export * from './framework';
|
||||
export * from './initialization';
|
||||
export * from './livedata';
|
||||
export * from './modules/db';
|
||||
export * from './modules/doc';
|
||||
export * from './modules/feature-flag';
|
||||
export * from './modules/global-context';
|
||||
export * from './modules/lifecycle';
|
||||
export * from './modules/storage';
|
||||
export * from './modules/workspace';
|
||||
export * from './orm';
|
||||
export * from './storage';
|
||||
export * from './sync';
|
||||
export * from './utils';
|
||||
|
||||
import type { Framework } from './framework';
|
||||
import { configureWorkspaceDBModule } from './modules/db';
|
||||
import { configureDocModule } from './modules/doc';
|
||||
import { configureFeatureFlagModule } from './modules/feature-flag';
|
||||
import { configureGlobalContextModule } from './modules/global-context';
|
||||
import { configureLifecycleModule } from './modules/lifecycle';
|
||||
import {
|
||||
configureGlobalStorageModule,
|
||||
configureTestingGlobalStorage,
|
||||
} from './modules/storage';
|
||||
import {
|
||||
configureTestingWorkspaceProvider,
|
||||
configureWorkspaceModule,
|
||||
} from './modules/workspace';
|
||||
|
||||
export function configureInfraModules(framework: Framework) {
|
||||
configureWorkspaceModule(framework);
|
||||
configureDocModule(framework);
|
||||
configureWorkspaceDBModule(framework);
|
||||
configureGlobalStorageModule(framework);
|
||||
configureGlobalContextModule(framework);
|
||||
configureLifecycleModule(framework);
|
||||
configureFeatureFlagModule(framework);
|
||||
}
|
||||
|
||||
export function configureTestingInfraModules(framework: Framework) {
|
||||
configureTestingGlobalStorage(framework);
|
||||
configureTestingWorkspaceProvider(framework);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user