diff --git a/packages/plugins/@hera/plugin-approval/src/client/configuration/index.ts b/packages/plugins/@hera/plugin-approval/src/client/configuration/index.ts deleted file mode 100644 index 7d0acf117..000000000 --- a/packages/plugins/@hera/plugin-approval/src/client/configuration/index.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { Plugin } from '@tachybase/client'; -import PluginKitApprovalInstruction from './instruction'; -import { PluginKitApprovalTrigger } from './trigger'; - -export class PluginKitApprovalConfiguration extends Plugin { - async afterAdd() { - this.pm.add(PluginKitApprovalTrigger); - this.pm.add(PluginKitApprovalInstruction); - } - async beforeLoad() {} - async load() {} -} diff --git a/packages/plugins/@hera/plugin-approval/src/client/usage/approval-block/plugin.ts b/packages/plugins/@hera/plugin-approval/src/client/usage/approval-block/plugin.ts index 3269721ef..b08d74ee1 100644 --- a/packages/plugins/@hera/plugin-approval/src/client/usage/approval-block/plugin.ts +++ b/packages/plugins/@hera/plugin-approval/src/client/usage/approval-block/plugin.ts @@ -1,18 +1,16 @@ import { Plugin } from '@tachybase/client'; import { tval } from '../../locale'; -import { PluginKitApprovalCommon } from '../approval-common/plugin'; +import { KitApprovalCommon } from '../approval-common/plugin'; import { ApprovalBlockComponent, SCApprovalBlock } from './ApprovalBlock.schema'; import { ViewActionLaunch } from './launch/VC.ViewActionLaunch'; import { ViewActionTodos } from './todos/VC.ViewActionTodos'; export class KitApprovalBlock extends Plugin { async afterAdd() { - this.pm.add(PluginKitApprovalCommon); + this.pm.add(KitApprovalCommon); this.pm.add(SCApprovalBlock); } - async beforeLoad() {} - async load() { this.app.addComponents({ 'ApprovalBlock.BlockInitializer': ApprovalBlockComponent, diff --git a/packages/plugins/@hera/plugin-approval/src/client/usage/approval-common/plugin.ts b/packages/plugins/@hera/plugin-approval/src/client/usage/approval-common/plugin.ts index c63af06b4..07ee16795 100644 --- a/packages/plugins/@hera/plugin-approval/src/client/usage/approval-common/plugin.ts +++ b/packages/plugins/@hera/plugin-approval/src/client/usage/approval-common/plugin.ts @@ -3,9 +3,7 @@ import { ApprovalDataProvider } from './ApprovalData.provider'; import { ApprovalProcess } from './ApprovalProcess.view'; import { ApprovalsSummary } from './ApprovalsSummary.view'; -export class PluginKitApprovalCommon extends Plugin { - async afterAdd() {} - async beforeLoad() {} +export class KitApprovalCommon extends Plugin { async load() { this.app.addComponents({ // ApprovalCommon, diff --git a/packages/plugins/@hera/plugin-approval/src/client/usage/approval-record-block/plugin.ts b/packages/plugins/@hera/plugin-approval/src/client/usage/approval-record-block/plugin.ts index 5b742f9cd..02f76d760 100644 --- a/packages/plugins/@hera/plugin-approval/src/client/usage/approval-record-block/plugin.ts +++ b/packages/plugins/@hera/plugin-approval/src/client/usage/approval-record-block/plugin.ts @@ -1,13 +1,13 @@ import { Plugin } from '@tachybase/client'; import { tval } from '../../locale'; -import { PluginKitApprovalCommon } from '../approval-common/plugin'; +import { KitApprovalCommon } from '../approval-common/plugin'; import { RecordApprovalsDecorator } from './RecordApprovals.decorator'; import { RecordApprovalsInitializer } from './RecordApprovals.initializer'; import { RecordApprovals } from './RecordApprovals.view'; -export class PluginKitApprovalRecordBlock extends Plugin { +export class KitApprovalRecordBlock extends Plugin { async afterAdd() { - this.pm.add(PluginKitApprovalCommon); + this.pm.add(KitApprovalCommon); } async beforeLoad() {} async load() { diff --git a/packages/plugins/@hera/plugin-approval/src/client/usage/plugin.ts b/packages/plugins/@hera/plugin-approval/src/client/usage/plugin.ts index 95173d1ba..8c1c4a113 100644 --- a/packages/plugins/@hera/plugin-approval/src/client/usage/plugin.ts +++ b/packages/plugins/@hera/plugin-approval/src/client/usage/plugin.ts @@ -1,12 +1,10 @@ import { Plugin } from '@tachybase/client'; -import { PluginKitApprovalRecordBlock } from './approval-record-block/plugin'; +import { KitApprovalRecordBlock } from './approval-record-block/plugin'; import { KitApprovalBlock } from './approval-block/plugin'; export class KitApprovalUsage extends Plugin { async afterAdd() { - this.pm.add(PluginKitApprovalRecordBlock); + this.pm.add(KitApprovalRecordBlock); this.pm.add(KitApprovalBlock); } - async beforeLoad() {} - async load() {} }