refactor(infra): remove old plugin system (#5411)
plugin system need redesign
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
import 'ses';
|
||||
import '@affine/component/theme/global.css';
|
||||
import '@affine/component/theme/theme.css';
|
||||
import { createI18n } from '@affine/i18n';
|
||||
@@ -19,7 +18,6 @@ import { setupGlobal, type Environment } from '@affine/env/global';
|
||||
import type { Preview } from '@storybook/react';
|
||||
import { useLayoutEffect, useRef } from 'react';
|
||||
import { setup } from '@affine/core/bootstrap/setup';
|
||||
import { bootstrapPluginSystem } from '@affine/core/bootstrap/register-plugins';
|
||||
import { WorkspaceFlavour } from '@affine/env/workspace';
|
||||
import { currentWorkspaceAtom } from '@affine/workspace/atom';
|
||||
|
||||
@@ -117,9 +115,6 @@ window.localStorage.setItem(
|
||||
const store = createStore();
|
||||
_setCurrentStore(store);
|
||||
setup();
|
||||
bootstrapPluginSystem(store).catch(err => {
|
||||
console.error('Failed to bootstrap plugin system', err);
|
||||
});
|
||||
workspaceManager
|
||||
.createWorkspace(WorkspaceFlavour.LOCAL, async w => {
|
||||
w.meta.setName('test-workspace');
|
||||
|
||||
@@ -11,7 +11,6 @@
|
||||
"{projectRoot}/.storybook/**/*",
|
||||
"{workspaceRoot}/packages/frontend/core/src/**/*",
|
||||
"{workspaceRoot}/packages/common/infra/**/*",
|
||||
"{workspaceRoot}/packages/common/sdk/**/*",
|
||||
{
|
||||
"runtime": "node -v"
|
||||
},
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
import { BlockSuiteEditor } from '@affine/component/block-suite-editor';
|
||||
// eslint-disable-next-line @typescript-eslint/no-restricted-imports
|
||||
import { ImagePreviewModal } from '@affine/image-preview-plugin/src/component';
|
||||
import { ImagePreviewModal } from '@affine/core/components/image-preview';
|
||||
import { waitForCurrentWorkspaceAtom } from '@affine/workspace/atom';
|
||||
import type { Page } from '@blocksuite/store';
|
||||
import type { Meta } from '@storybook/react';
|
||||
|
||||
@@ -24,9 +24,6 @@
|
||||
{
|
||||
"path": "../../packages/frontend/workspace"
|
||||
},
|
||||
{
|
||||
"path": "../../packages/plugins/image-preview"
|
||||
},
|
||||
{
|
||||
"path": "./tsconfig.node.json"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user