diff --git a/packages/plugins/@hera/plugin-approval/src/client/configuration/index.ts b/packages/plugins/@hera/plugin-approval/src/client/configuration/index.ts index d93f21820..7d0acf117 100644 --- a/packages/plugins/@hera/plugin-approval/src/client/configuration/index.ts +++ b/packages/plugins/@hera/plugin-approval/src/client/configuration/index.ts @@ -1,8 +1,8 @@ import { Plugin } from '@tachybase/client'; import PluginKitApprovalInstruction from './instruction'; -import PluginKitApprovalTrigger from './trigger'; +import { PluginKitApprovalTrigger } from './trigger'; -export default class PluginKitApprovalConfiguration extends Plugin { +export class PluginKitApprovalConfiguration extends Plugin { async afterAdd() { this.pm.add(PluginKitApprovalTrigger); this.pm.add(PluginKitApprovalInstruction); diff --git a/packages/plugins/@hera/plugin-approval/src/client/configuration/trigger/index.ts b/packages/plugins/@hera/plugin-approval/src/client/configuration/trigger/index.ts index a6fdb833f..0a3c3e06e 100644 --- a/packages/plugins/@hera/plugin-approval/src/client/configuration/trigger/index.ts +++ b/packages/plugins/@hera/plugin-approval/src/client/configuration/trigger/index.ts @@ -4,7 +4,7 @@ import { ApprovalTrigger } from './node.ApprovalTrigger'; import { LauncherActionConfigInitializer } from './launcher-interface/Iz.LauncherActionConfig'; import { LauncherAddBlockButtonIntializer } from './launcher-interface/Iz.LauncherAddBlockButton'; -export default class PluginKitApprovalTrigger extends Plugin { +export class PluginKitApprovalTrigger extends Plugin { async afterAdd() {} async beforeLoad() {} async load() { diff --git a/packages/plugins/@hera/plugin-approval/src/client/index.ts b/packages/plugins/@hera/plugin-approval/src/client/index.ts index 64bad591d..1d5a88bef 100644 --- a/packages/plugins/@hera/plugin-approval/src/client/index.ts +++ b/packages/plugins/@hera/plugin-approval/src/client/index.ts @@ -1,7 +1,7 @@ import { Plugin } from '@tachybase/client'; -import PluginKitApprovalConfiguration from './configuration'; -import PluginKitApprovalUsage from './usage'; +import { PluginKitApprovalConfiguration } from './configuration'; +import { PluginKitApprovalUsage } from './usage'; export default class PluginApproval extends Plugin { async afterAdd() { diff --git a/packages/plugins/@hera/plugin-approval/src/client/usage/approval-block/index.ts b/packages/plugins/@hera/plugin-approval/src/client/usage/approval-block/index.ts index a0589920e..7dc7735c1 100644 --- a/packages/plugins/@hera/plugin-approval/src/client/usage/approval-block/index.ts +++ b/packages/plugins/@hera/plugin-approval/src/client/usage/approval-block/index.ts @@ -1,5 +1,5 @@ import { Plugin } from '@tachybase/client'; -import PluginKitApprovalCommon from '../approval-common/plugin'; +import { PluginKitApprovalCommon } from '../approval-common/plugin'; import { tval } from '../../locale'; import { ViewActionTodos } from './todos/VC.ViewActionTodos'; import { ApprovalBlockComponent } from './VC.ApprovalBlock'; @@ -8,7 +8,7 @@ import { ViewActionLaunch } from './launch/VC.ViewActionLaunch'; import { ApprovalBlockDecorator } from './Dt.ApprovalBlock'; import { ApprovalBlockLaunch } from './launch/VC.ApprovalBlockLaunch'; -export default class PluginKitApprovalBlock extends Plugin { +export class PluginKitApprovalBlock extends Plugin { async afterAdd() { this.pm.add(PluginKitApprovalCommon); } 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 c0df94e6c..360ffff30 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 @@ -2,7 +2,7 @@ import { Plugin } from '@tachybase/client'; import { ApprovalDataProvider } from './ApprovalData.provider'; import { ApprovalProcess } from './ApprovalProcess.view'; -export default class PluginKitApprovalCommon extends Plugin { +export class PluginKitApprovalCommon extends Plugin { async afterAdd() {} async beforeLoad() {} async load() { 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 f361300d1..5b742f9cd 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,11 +1,11 @@ import { Plugin } from '@tachybase/client'; import { tval } from '../../locale'; -import PluginKitApprovalCommon from '../approval-common/plugin'; +import { PluginKitApprovalCommon } from '../approval-common/plugin'; import { RecordApprovalsDecorator } from './RecordApprovals.decorator'; import { RecordApprovalsInitializer } from './RecordApprovals.initializer'; import { RecordApprovals } from './RecordApprovals.view'; -export default class PluginKitApprovalRecordBlock extends Plugin { +export class PluginKitApprovalRecordBlock extends Plugin { async afterAdd() { this.pm.add(PluginKitApprovalCommon); } diff --git a/packages/plugins/@hera/plugin-approval/src/client/usage/index.ts b/packages/plugins/@hera/plugin-approval/src/client/usage/index.ts index f2379e634..80324d186 100644 --- a/packages/plugins/@hera/plugin-approval/src/client/usage/index.ts +++ b/packages/plugins/@hera/plugin-approval/src/client/usage/index.ts @@ -1,8 +1,8 @@ import { Plugin } from '@tachybase/client'; -import PluginKitApprovalRecordBlock from './approval-record-block/plugin'; -import PluginKitApprovalBlock from './approval-block'; +import { PluginKitApprovalRecordBlock } from './approval-record-block/plugin'; +import { PluginKitApprovalBlock } from './approval-block'; -export default class PluginKitApprovalUsage extends Plugin { +export class PluginKitApprovalUsage extends Plugin { async afterAdd() { this.pm.add(PluginKitApprovalRecordBlock); this.pm.add(PluginKitApprovalBlock);