cabloy 5.1.65 → 5.1.66
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +44 -0
- package/cabloy-docs/.vitepress/config.mjs +1 -1
- package/cabloy-docs/backend/crud-workflow.md +33 -0
- package/cabloy-docs/backend/master-detail-workflow.md +149 -0
- package/cabloy-docs/frontend/bean-scene-authoring.md +1 -1
- package/cabloy-docs/frontend/cli.md +12 -1
- package/cabloy-docs/frontend/command-scene-authoring.md +12 -1
- package/cabloy-docs/frontend/component-guide.md +10 -0
- package/cabloy-docs/frontend/permission-formscene-action-visibility-guide.md +69 -7
- package/cabloy-docs/frontend/table-cell-cookbook.md +10 -0
- package/cabloy-docs/fullstack/backend-metadata-to-frontend-table-actions.md +83 -2
- package/cabloy-docs/reference/bean-scene-boilerplates.md +9 -4
- package/package.json +1 -1
- package/vona/packages-cli/cabloy-cli/package.json +1 -1
- package/vona/packages-cli/cabloy-cli/src/lib/local.helper.ts +38 -0
- package/vona/packages-cli/cli/package.json +1 -1
- package/vona/packages-cli/cli-set-api/cli/templates/tools/masterDetail/boilerplate/dto/<%=argv.detailDtoBaseName%>.tsx_ +18 -0
- package/vona/packages-cli/cli-set-api/cli/templates/tools/masterDetail/boilerplate/dto/<%=argv.detailDtoMutateName%>.tsx_ +17 -0
- package/vona/packages-cli/cli-set-api/cli/templates/tools/masterDetail/boilerplate/dto/<%=argv.detailDtoResItemName%>.tsx_ +60 -0
- package/vona/packages-cli/cli-set-api/cli/templates/tools/masterDetail/boilerplate/dto/<%=argv.detailDtoViewName%>.tsx_ +17 -0
- package/vona/packages-cli/cli-set-api/package.json +1 -1
- package/vona/packages-cli/cli-set-api/src/lib/bean/cli.create.bean.ts +2 -6
- package/vona/packages-cli/cli-set-api/src/lib/bean/cli.create.module.ts +3 -6
- package/vona/packages-cli/cli-set-api/src/lib/bean/cli.create.suite.ts +1 -1
- package/vona/packages-cli/cli-set-api/src/lib/bean/cli.create.test.ts +2 -6
- package/vona/packages-cli/cli-set-api/src/lib/bean/cli.init.asset.ts +2 -6
- package/vona/packages-cli/cli-set-api/src/lib/bean/cli.init.config.ts +2 -6
- package/vona/packages-cli/cli-set-api/src/lib/bean/cli.init.constant.ts +2 -6
- package/vona/packages-cli/cli-set-api/src/lib/bean/cli.init.error.ts +2 -6
- package/vona/packages-cli/cli-set-api/src/lib/bean/cli.init.lib.ts +2 -6
- package/vona/packages-cli/cli-set-api/src/lib/bean/cli.init.locale.ts +2 -6
- package/vona/packages-cli/cli-set-api/src/lib/bean/cli.init.main.ts +2 -6
- package/vona/packages-cli/cli-set-api/src/lib/bean/cli.init.monkey.ts +2 -6
- package/vona/packages-cli/cli-set-api/src/lib/bean/cli.init.static.ts +2 -6
- package/vona/packages-cli/cli-set-api/src/lib/bean/cli.init.types.ts +2 -6
- package/vona/packages-cli/cli-set-api/src/lib/bean/cli.tools.crud.ts +2 -6
- package/vona/packages-cli/cli-set-api/src/lib/bean/cli.tools.crudBasic.ts +2 -6
- package/vona/packages-cli/cli-set-api/src/lib/bean/cli.tools.crudStart.ts +2 -6
- package/vona/packages-cli/cli-set-api/src/lib/bean/cli.tools.masterDetail.ts +699 -0
- package/vona/packages-cli/cli-set-api/src/lib/bean/cli.tools.metadata.ts +1 -2
- package/vona/packages-cli/cli-set-api/src/lib/beans.ts +2 -0
- package/vona/packages-cli/cli-set-api/src/lib/command/tools.masterDetail.ts +78 -0
- package/vona/packages-cli/cli-set-api/src/lib/commands.ts +2 -0
- package/vona/packages-vona/vona/package.json +1 -1
- package/vona/packages-vona/vona-core/package.json +1 -1
- package/vona/packages-vona/vona-core/src/lib/mappedClass/type.ts +1 -0
- package/vona/packages-vona/vona-core/src/lib/mappedClass/utils.ts +36 -14
- package/vona/packages-vona/vona-mock/package.json +1 -1
- package/vona/pnpm-lock.yaml +20 -11
- package/vona/src/suite/a-training/modules/training-student/src/config/locale/en-us.ts +3 -0
- package/vona/src/suite/a-training/modules/training-student/src/config/locale/zh-cn.ts +3 -0
- package/vona/src/suite/a-training/modules/training-student/src/dto/detailRecordBase.tsx +8 -2
- package/vona/src/suite/a-training/modules/training-student/src/dto/detailRecordMutate.tsx +1 -15
- package/vona/src/suite/a-training/modules/training-student/src/dto/detailRecordResItem.tsx +25 -5
- package/vona/src/suite/a-training/modules/training-student/src/dto/detailRecordView.tsx +1 -12
- package/vona/src/suite/a-training/modules/training-student/src/dto/studentCreate.tsx +6 -4
- package/vona/src/suite/a-training/modules/training-student/src/dto/studentSelectReq.tsx +3 -6
- package/vona/src/suite/a-training/modules/training-student/src/dto/studentSummary.tsx +1 -1
- package/vona/src/suite/a-training/modules/training-student/src/dto/studentUpdate.tsx +14 -1
- package/vona/src/suite/a-training/modules/training-student/src/dto/studentView.tsx +14 -1
- package/vona/src/suite/a-training/modules/training-student/src/entity/student.tsx +1 -5
- package/vona/src/suite/a-training/modules/training-student/src/service/student.ts +9 -4
- package/vona/src/suite-vendor/a-vona/modules/a-core/package.json +1 -1
- package/vona/src/suite-vendor/a-vona/modules/a-openapiutils/package.json +1 -1
- package/vona/src/suite-vendor/a-vona/modules/a-openapiutils/src/lib/const/decorator.ts +3 -1
- package/vona/src/suite-vendor/a-vona/modules/a-openapiutils/src/lib/schema/makeSchemaLikes.ts +21 -17
- package/vona/src/suite-vendor/a-vona/modules/a-openapiutils/src/lib/utils.ts +44 -2
- package/vona/src/suite-vendor/a-vona/modules/a-orm/package.json +1 -1
- package/vona/src/suite-vendor/a-vona/modules/a-orm/src/lib/dto/dtoGet.ts +2 -2
- package/vona/src/suite-vendor/a-vona/modules/a-orm/src/lib/dto/dtoMutate.ts +8 -1
- package/vona/src/suite-vendor/a-vona/modules/a-orm/src/service/relations_.ts +32 -16
- package/vona/src/suite-vendor/a-vona/modules/a-web/package.json +1 -1
- package/vona/src/suite-vendor/a-vona/modules/a-web/src/lib/decorator/bean.ts +26 -5
- package/vona/src/suite-vendor/a-vona/package.json +1 -1
- package/zova/packages-cli/cli/package.json +3 -3
- package/zova/packages-cli/cli-set-front/cli/templates/create/component/boilerplateDetailsActionBulk/controller.tsx_ +31 -0
- package/zova/packages-cli/cli-set-front/cli/templates/rest/component.ts +21 -0
- package/zova/packages-cli/cli-set-front/cli/templates/rest/render.ts +4 -0
- package/zova/packages-cli/cli-set-front/package.json +2 -2
- package/zova/packages-cli/cli-set-front/src/lib/bean/cli.create.bean.ts +2 -6
- package/zova/packages-cli/cli-set-front/src/lib/bean/cli.create.mock.ts +2 -6
- package/zova/packages-cli/cli-set-front/src/lib/bean/cli.create.module.ts +3 -6
- package/zova/packages-cli/cli-set-front/src/lib/bean/cli.create.suite.ts +1 -1
- package/zova/packages-cli/cli-set-front/src/lib/bean/cli.init.asset.ts +2 -6
- package/zova/packages-cli/cli-set-front/src/lib/bean/cli.init.config.ts +2 -6
- package/zova/packages-cli/cli-set-front/src/lib/bean/cli.init.constant.ts +2 -6
- package/zova/packages-cli/cli-set-front/src/lib/bean/cli.init.error.ts +2 -6
- package/zova/packages-cli/cli-set-front/src/lib/bean/cli.init.icon.ts +2 -6
- package/zova/packages-cli/cli-set-front/src/lib/bean/cli.init.lib.ts +2 -6
- package/zova/packages-cli/cli-set-front/src/lib/bean/cli.init.locale.ts +2 -6
- package/zova/packages-cli/cli-set-front/src/lib/bean/cli.init.main.ts +2 -6
- package/zova/packages-cli/cli-set-front/src/lib/bean/cli.init.mainSys.ts +2 -6
- package/zova/packages-cli/cli-set-front/src/lib/bean/cli.init.monkey.ts +2 -6
- package/zova/packages-cli/cli-set-front/src/lib/bean/cli.init.monkeySys.ts +2 -6
- package/zova/packages-cli/cli-set-front/src/lib/bean/cli.init.types.ts +2 -6
- package/zova/packages-cli/cli-set-front/src/lib/bean/cli.openapi.config.ts +1 -4
- package/zova/packages-cli/cli-set-front/src/lib/bean/cli.openapi.generate.ts +2 -2
- package/zova/packages-cli/cli-set-front/src/lib/bean/cli.refactor.anotherRender.ts +2 -6
- package/zova/packages-cli/cli-set-front/src/lib/bean/cli.refactor.anotherStyle.ts +2 -6
- package/zova/packages-cli/cli-set-front/src/lib/bean/cli.refactor.componentEmits.ts +2 -6
- package/zova/packages-cli/cli-set-front/src/lib/bean/cli.refactor.componentGeneric.ts +2 -6
- package/zova/packages-cli/cli-set-front/src/lib/bean/cli.refactor.componentModel.ts +2 -6
- package/zova/packages-cli/cli-set-front/src/lib/bean/cli.refactor.componentProps.ts +2 -6
- package/zova/packages-cli/cli-set-front/src/lib/bean/cli.refactor.componentSlots.ts +2 -6
- package/zova/packages-cli/cli-set-front/src/lib/bean/cli.refactor.firstRender.ts +2 -6
- package/zova/packages-cli/cli-set-front/src/lib/bean/cli.refactor.firstStyle.ts +2 -6
- package/zova/packages-cli/cli-set-front/src/lib/bean/cli.refactor.pageParams.ts +2 -6
- package/zova/packages-cli/cli-set-front/src/lib/bean/cli.refactor.pageQuery.ts +2 -6
- package/zova/packages-cli/cli-set-front/src/lib/bean/cli.refactor.renameComponent.ts +2 -6
- package/zova/packages-cli/cli-set-front/src/lib/bean/cli.tools.metadata.ts +1 -2
- package/zova/packages-cli/cli-set-front/src/lib/common/cliCreateComponent.ts +2 -6
- package/zova/packages-cli/cli-set-front/src/lib/common/cliCreatePage.ts +2 -6
- package/zova/packages-zova/zova/package.json +2 -2
- package/zova/pnpm-lock.yaml +744 -884
- package/zova/src/suite/a-training/modules/training-student/package.json +2 -1
- package/zova/src/suite/cabloy-basic/modules/basic-app/src/bean/behavior.appModal.tsx +131 -13
- package/zova/src/suite/cabloy-basic/modules/basic-app/src/config/config.ts +15 -0
- package/zova/src/suite/cabloy-basic/modules/basic-app/src/service/appModal.ts +23 -5
- package/zova/src/suite/cabloy-basic/modules/basic-app/src/types/appModal.ts +30 -4
- package/zova/src/suite/cabloy-basic/modules/basic-details/package.json +6 -1
- package/zova/src/suite/cabloy-basic/modules/basic-details/src/.metadata/component/blockForm.ts +31 -0
- package/zova/src/suite/cabloy-basic/modules/basic-details/src/.metadata/index.ts +149 -2
- package/zova/src/suite/cabloy-basic/modules/basic-details/src/bean/command.delete.tsx +47 -0
- package/zova/src/suite/cabloy-basic/modules/basic-details/src/bean/tableCell.actionDelete.tsx +52 -0
- package/zova/src/suite/cabloy-basic/modules/basic-details/src/bean/tableCell.actionOperationsRow.tsx +44 -6
- package/zova/src/suite/cabloy-basic/modules/basic-details/src/bean/tableCell.actionUpdate.tsx +73 -0
- package/zova/src/suite/cabloy-basic/modules/basic-details/src/bean/tableCell.actionView.tsx +64 -0
- package/zova/src/suite/cabloy-basic/modules/basic-details/src/bean/tableCell.lineNumber.tsx +30 -0
- package/zova/src/suite/cabloy-basic/modules/basic-details/src/component/actionCreate/controller.tsx +29 -5
- package/zova/src/suite/cabloy-basic/modules/basic-details/src/component/blockDetails/controller.tsx +28 -12
- package/zova/src/suite/cabloy-basic/modules/basic-details/src/component/blockForm/controller.tsx +53 -0
- package/zova/src/suite/cabloy-basic/modules/basic-details/src/component/blockTable/controller.tsx +7 -2
- package/zova/src/suite/cabloy-basic/modules/basic-details/src/component/blockToolbarBulk/controller.tsx +3 -1
- package/zova/src/suite/cabloy-basic/modules/basic-details/src/component/formFieldDetails/controller.tsx +24 -12
- package/zova/src/suite/cabloy-basic/modules/basic-details/src/config/locale/en-us.ts +4 -0
- package/zova/src/suite/cabloy-basic/modules/basic-details/src/config/locale/zh-cn.ts +4 -0
- package/zova/src/suite/cabloy-basic/modules/basic-details/src/index.ts +1 -0
- package/zova/src/suite/cabloy-basic/modules/basic-details/src/lib/index.ts +1 -0
- package/zova/src/suite/cabloy-basic/modules/basic-details/src/lib/utils.ts +12 -0
- package/zova/src/suite/cabloy-basic/modules/basic-details/src/service/detail.tsx +172 -0
- package/zova/src/suite/cabloy-basic/modules/basic-details/src/types/detail.ts +18 -0
- package/zova/src/suite/cabloy-basic/modules/basic-details/src/types/details.ts +11 -0
- package/zova/src/suite/cabloy-basic/modules/basic-details/src/types/dialogForm.ts +22 -0
- package/zova/src/suite/cabloy-basic/modules/basic-details/src/types/index.ts +2 -0
- package/zova/src/suite-vendor/a-cabloy/modules/rest-resource/package.json +1 -1
- package/zova/src/suite-vendor/a-cabloy/modules/rest-resource/src/page/entry/controller.tsx +1 -2
- package/zova/src/suite-vendor/a-cabloy/package.json +2 -2
- package/zova/src/suite-vendor/a-zova/modules/a-command/cli/command/boilerplate/{{sceneName}}.{{beanName}}.tsx_ +6 -1
- package/zova/src/suite-vendor/a-zova/modules/a-command/cli/commandBulk/boilerplate/{{sceneName}}.{{beanName}}.tsx_ +6 -1
- package/zova/src/suite-vendor/a-zova/modules/a-command/cli/commandDetailsRow/boilerplate/{{sceneName}}.{{beanName}}.tsx_ +20 -0
- package/zova/src/suite-vendor/a-zova/modules/a-command/cli/commandRow/boilerplate/{{sceneName}}.{{beanName}}.tsx_ +6 -1
- package/zova/src/suite-vendor/a-zova/modules/a-command/package.json +3 -2
- package/zova/src/suite-vendor/a-zova/modules/a-command/src/types/command.ts +2 -0
- package/zova/src/suite-vendor/a-zova/modules/a-form/package.json +1 -1
- package/zova/src/suite-vendor/a-zova/modules/a-form/src/component/form/controller.tsx +1 -0
- package/zova/src/suite-vendor/a-zova/modules/a-openapi/package.json +2 -2
- package/zova/src/suite-vendor/a-zova/modules/a-openapi/src/lib/schema.ts +20 -4
- package/zova/src/suite-vendor/a-zova/modules/a-openapi/src/types/action.ts +2 -1
- package/zova/src/suite-vendor/a-zova/modules/a-openapi/src/types/detail/detail.ts +10 -0
- package/zova/src/suite-vendor/a-zova/modules/a-openapi/src/types/detail/details.ts +4 -1
- package/zova/src/suite-vendor/a-zova/modules/a-openapi/src/types/detail/index.ts +1 -0
- package/zova/src/suite-vendor/a-zova/modules/a-openapi/src/types/rest.ts +2 -0
- package/zova/src/suite-vendor/a-zova/modules/a-table/cli/detailsActionRow/boilerplate/{{sceneName}}.{{beanName}}.tsx_ +24 -0
- package/zova/src/suite-vendor/a-zova/modules/a-table/package.json +3 -2
- package/zova/src/suite-vendor/a-zova/modules/a-table/src/component/table/controller.tsx +5 -3
- package/zova/src/suite-vendor/a-zova/modules/a-zova/package.json +2 -2
- package/zova/src/suite-vendor/a-zova/package.json +6 -6
|
@@ -16,12 +16,8 @@ export class CliInitIcon extends BeanCliBase {
|
|
|
16
16
|
// module name/info
|
|
17
17
|
const moduleName = argv._[0];
|
|
18
18
|
if (!moduleName) return;
|
|
19
|
-
argv.moduleInfo = this.helper.
|
|
20
|
-
|
|
21
|
-
const _module = this.helper.findModule(moduleName);
|
|
22
|
-
if (!_module) {
|
|
23
|
-
throw new Error(`module does not exist: ${moduleName}`);
|
|
24
|
-
}
|
|
19
|
+
argv.moduleInfo = this.helper.parseModuleInfoCanonical(moduleName);
|
|
20
|
+
const _module = this.helper.findModuleCanonical(moduleName);
|
|
25
21
|
// target dir
|
|
26
22
|
const targetDir = await this.helper.ensureDir(_module.root);
|
|
27
23
|
const iconDir = path.join(targetDir, 'icons');
|
|
@@ -16,12 +16,8 @@ export class CliInitLib extends BeanCliBase {
|
|
|
16
16
|
// module name/info
|
|
17
17
|
const moduleName = argv._[0];
|
|
18
18
|
if (!moduleName) return;
|
|
19
|
-
argv.moduleInfo = this.helper.
|
|
20
|
-
|
|
21
|
-
const _module = this.helper.findModule(moduleName);
|
|
22
|
-
if (!_module) {
|
|
23
|
-
throw new Error(`module does not exist: ${moduleName}`);
|
|
24
|
-
}
|
|
19
|
+
argv.moduleInfo = this.helper.parseModuleInfoCanonical(moduleName);
|
|
20
|
+
const _module = this.helper.findModuleCanonical(moduleName);
|
|
25
21
|
// target dir
|
|
26
22
|
const targetDir = await this.helper.ensureDir(_module.root);
|
|
27
23
|
const mainFile = path.join(targetDir, 'src/lib/index.ts');
|
|
@@ -16,12 +16,8 @@ export class CliInitLocale extends BeanCliBase {
|
|
|
16
16
|
// module name/info
|
|
17
17
|
const moduleName = argv._[0];
|
|
18
18
|
if (!moduleName) return;
|
|
19
|
-
argv.moduleInfo = this.helper.
|
|
20
|
-
|
|
21
|
-
const _module = this.helper.findModule(moduleName);
|
|
22
|
-
if (!_module) {
|
|
23
|
-
throw new Error(`module does not exist: ${moduleName}`);
|
|
24
|
-
}
|
|
19
|
+
argv.moduleInfo = this.helper.parseModuleInfoCanonical(moduleName);
|
|
20
|
+
const _module = this.helper.findModuleCanonical(moduleName);
|
|
25
21
|
// target dir
|
|
26
22
|
const targetDir = await this.helper.ensureDir(_module.root);
|
|
27
23
|
const localeFile = path.join(targetDir, 'src/config/locale');
|
|
@@ -16,12 +16,8 @@ export class CliInitMain extends BeanCliBase {
|
|
|
16
16
|
// module name/info
|
|
17
17
|
const moduleName = argv._[0];
|
|
18
18
|
if (!moduleName) return;
|
|
19
|
-
argv.moduleInfo = this.helper.
|
|
20
|
-
|
|
21
|
-
const _module = this.helper.findModule(moduleName);
|
|
22
|
-
if (!_module) {
|
|
23
|
-
throw new Error(`module does not exist: ${moduleName}`);
|
|
24
|
-
}
|
|
19
|
+
argv.moduleInfo = this.helper.parseModuleInfoCanonical(moduleName);
|
|
20
|
+
const _module = this.helper.findModuleCanonical(moduleName);
|
|
25
21
|
// target dir
|
|
26
22
|
const targetDir = await this.helper.ensureDir(_module.root);
|
|
27
23
|
const mainFile = path.join(targetDir, 'src/main.ts');
|
|
@@ -16,12 +16,8 @@ export class CliInitMainSys extends BeanCliBase {
|
|
|
16
16
|
// module name/info
|
|
17
17
|
const moduleName = argv._[0];
|
|
18
18
|
if (!moduleName) return;
|
|
19
|
-
argv.moduleInfo = this.helper.
|
|
20
|
-
|
|
21
|
-
const _module = this.helper.findModule(moduleName);
|
|
22
|
-
if (!_module) {
|
|
23
|
-
throw new Error(`module does not exist: ${moduleName}`);
|
|
24
|
-
}
|
|
19
|
+
argv.moduleInfo = this.helper.parseModuleInfoCanonical(moduleName);
|
|
20
|
+
const _module = this.helper.findModuleCanonical(moduleName);
|
|
25
21
|
// target dir
|
|
26
22
|
const targetDir = await this.helper.ensureDir(_module.root);
|
|
27
23
|
const mainFile = path.join(targetDir, 'src/mainSys.ts');
|
|
@@ -16,12 +16,8 @@ export class CliInitMonkey extends BeanCliBase {
|
|
|
16
16
|
// module name/info
|
|
17
17
|
const moduleName = argv._[0];
|
|
18
18
|
if (!moduleName) return;
|
|
19
|
-
argv.moduleInfo = this.helper.
|
|
20
|
-
|
|
21
|
-
const _module = this.helper.findModule(moduleName);
|
|
22
|
-
if (!_module) {
|
|
23
|
-
throw new Error(`module does not exist: ${moduleName}`);
|
|
24
|
-
}
|
|
19
|
+
argv.moduleInfo = this.helper.parseModuleInfoCanonical(moduleName);
|
|
20
|
+
const _module = this.helper.findModuleCanonical(moduleName);
|
|
25
21
|
// target dir
|
|
26
22
|
const targetDir = await this.helper.ensureDir(_module.root);
|
|
27
23
|
const monkeyFile = path.join(targetDir, 'src/monkey.ts');
|
|
@@ -16,12 +16,8 @@ export class CliInitMonkeySys extends BeanCliBase {
|
|
|
16
16
|
// module name/info
|
|
17
17
|
const moduleName = argv._[0];
|
|
18
18
|
if (!moduleName) return;
|
|
19
|
-
argv.moduleInfo = this.helper.
|
|
20
|
-
|
|
21
|
-
const _module = this.helper.findModule(moduleName);
|
|
22
|
-
if (!_module) {
|
|
23
|
-
throw new Error(`module does not exist: ${moduleName}`);
|
|
24
|
-
}
|
|
19
|
+
argv.moduleInfo = this.helper.parseModuleInfoCanonical(moduleName);
|
|
20
|
+
const _module = this.helper.findModuleCanonical(moduleName);
|
|
25
21
|
// target dir
|
|
26
22
|
const targetDir = await this.helper.ensureDir(_module.root);
|
|
27
23
|
const monkeyFile = path.join(targetDir, 'src/monkeySys.ts');
|
|
@@ -16,12 +16,8 @@ export class CliInitTypes extends BeanCliBase {
|
|
|
16
16
|
// module name/info
|
|
17
17
|
const moduleName = argv._[0];
|
|
18
18
|
if (!moduleName) return;
|
|
19
|
-
argv.moduleInfo = this.helper.
|
|
20
|
-
|
|
21
|
-
const _module = this.helper.findModule(moduleName);
|
|
22
|
-
if (!_module) {
|
|
23
|
-
throw new Error(`module does not exist: ${moduleName}`);
|
|
24
|
-
}
|
|
19
|
+
argv.moduleInfo = this.helper.parseModuleInfoCanonical(moduleName);
|
|
20
|
+
const _module = this.helper.findModuleCanonical(moduleName);
|
|
25
21
|
// target dir
|
|
26
22
|
const targetDir = await this.helper.ensureDir(_module.root);
|
|
27
23
|
const mainFile = path.join(targetDir, 'src/types/index.ts');
|
|
@@ -35,10 +35,7 @@ export class CliOpenapiConfig extends BeanCliBase {
|
|
|
35
35
|
|
|
36
36
|
async _generateModuleConfig(moduleName: string) {
|
|
37
37
|
// check if exists
|
|
38
|
-
const _module = this.helper.
|
|
39
|
-
if (!_module) {
|
|
40
|
-
throw new Error(`module does not exist: ${moduleName}`);
|
|
41
|
-
}
|
|
38
|
+
const _module = this.helper.findModuleCanonical(moduleName);
|
|
42
39
|
// target dir
|
|
43
40
|
const targetDir = await this.helper.ensureDir(_module.root);
|
|
44
41
|
const configFile = path.join(targetDir, 'cli/openapi.config.ts');
|
|
@@ -82,8 +82,8 @@ export class CliOpenapiGenerate extends BeanCliBase {
|
|
|
82
82
|
text: moduleName,
|
|
83
83
|
});
|
|
84
84
|
// generate res
|
|
85
|
-
const moduleInfo = this.helper.
|
|
86
|
-
const module = this.helper.
|
|
85
|
+
const moduleInfo = this.helper.parseModuleInfoCanonical(moduleName);
|
|
86
|
+
const module = this.helper.findModuleCanonical(moduleName);
|
|
87
87
|
await this._generateOpenapi(total, openapiTypescript, config, moduleInfo, module, __caches);
|
|
88
88
|
}
|
|
89
89
|
}
|
|
@@ -26,12 +26,8 @@ export class CliRefactorAnotherRender extends BeanCliBase {
|
|
|
26
26
|
await super.execute();
|
|
27
27
|
// module name/info
|
|
28
28
|
const moduleName = argv.module;
|
|
29
|
-
argv.moduleInfo = this.helper.
|
|
30
|
-
|
|
31
|
-
const _module = this.helper.findModule(moduleName);
|
|
32
|
-
if (!_module) {
|
|
33
|
-
throw new Error(`module does not exist: ${moduleName}`);
|
|
34
|
-
}
|
|
29
|
+
argv.moduleInfo = this.helper.parseModuleInfoCanonical(moduleName);
|
|
30
|
+
const _module = this.helper.findModuleCanonical(moduleName);
|
|
35
31
|
// target dir
|
|
36
32
|
const targetDir = await this.helper.ensureDir(_module.root);
|
|
37
33
|
// componentName
|
|
@@ -27,12 +27,8 @@ export class CliRefactorAnotherStyle extends BeanCliBase {
|
|
|
27
27
|
await super.execute();
|
|
28
28
|
// module name/info
|
|
29
29
|
const moduleName = argv.module;
|
|
30
|
-
argv.moduleInfo = this.helper.
|
|
31
|
-
|
|
32
|
-
const _module = this.helper.findModule(moduleName);
|
|
33
|
-
if (!_module) {
|
|
34
|
-
throw new Error(`module does not exist: ${moduleName}`);
|
|
35
|
-
}
|
|
30
|
+
argv.moduleInfo = this.helper.parseModuleInfoCanonical(moduleName);
|
|
31
|
+
const _module = this.helper.findModuleCanonical(moduleName);
|
|
36
32
|
// target dir
|
|
37
33
|
const targetDir = await this.helper.ensureDir(_module.root);
|
|
38
34
|
// componentName
|
|
@@ -26,12 +26,8 @@ export class CliRefactorComponentEmits extends BeanCliBase {
|
|
|
26
26
|
await super.execute();
|
|
27
27
|
// module name/info
|
|
28
28
|
const moduleName = argv.module;
|
|
29
|
-
argv.moduleInfo = this.helper.
|
|
30
|
-
|
|
31
|
-
const _module = this.helper.findModule(moduleName);
|
|
32
|
-
if (!_module) {
|
|
33
|
-
throw new Error(`module does not exist: ${moduleName}`);
|
|
34
|
-
}
|
|
29
|
+
argv.moduleInfo = this.helper.parseModuleInfoCanonical(moduleName);
|
|
30
|
+
const _module = this.helper.findModuleCanonical(moduleName);
|
|
35
31
|
// target dir
|
|
36
32
|
const targetDir = await this.helper.ensureDir(_module.root);
|
|
37
33
|
// componentName
|
|
@@ -26,12 +26,8 @@ export class CliRefactorComponentGeneric extends BeanCliBase {
|
|
|
26
26
|
await super.execute();
|
|
27
27
|
// module name/info
|
|
28
28
|
const moduleName = argv.module;
|
|
29
|
-
argv.moduleInfo = this.helper.
|
|
30
|
-
|
|
31
|
-
const _module = this.helper.findModule(moduleName);
|
|
32
|
-
if (!_module) {
|
|
33
|
-
throw new Error(`module does not exist: ${moduleName}`);
|
|
34
|
-
}
|
|
29
|
+
argv.moduleInfo = this.helper.parseModuleInfoCanonical(moduleName);
|
|
30
|
+
const _module = this.helper.findModuleCanonical(moduleName);
|
|
35
31
|
// target dir
|
|
36
32
|
const targetDir = await this.helper.ensureDir(_module.root);
|
|
37
33
|
// componentName
|
|
@@ -27,12 +27,8 @@ export class CliRefactorComponentModel extends BeanCliBase {
|
|
|
27
27
|
await super.execute();
|
|
28
28
|
// module name/info
|
|
29
29
|
const moduleName = argv.module;
|
|
30
|
-
argv.moduleInfo = this.helper.
|
|
31
|
-
|
|
32
|
-
const _module = this.helper.findModule(moduleName);
|
|
33
|
-
if (!_module) {
|
|
34
|
-
throw new Error(`module does not exist: ${moduleName}`);
|
|
35
|
-
}
|
|
30
|
+
argv.moduleInfo = this.helper.parseModuleInfoCanonical(moduleName);
|
|
31
|
+
const _module = this.helper.findModuleCanonical(moduleName);
|
|
36
32
|
// target dir
|
|
37
33
|
const targetDir = await this.helper.ensureDir(_module.root);
|
|
38
34
|
// componentName
|
|
@@ -26,12 +26,8 @@ export class CliRefactorComponentProps extends BeanCliBase {
|
|
|
26
26
|
await super.execute();
|
|
27
27
|
// module name/info
|
|
28
28
|
const moduleName = argv.module;
|
|
29
|
-
argv.moduleInfo = this.helper.
|
|
30
|
-
|
|
31
|
-
const _module = this.helper.findModule(moduleName);
|
|
32
|
-
if (!_module) {
|
|
33
|
-
throw new Error(`module does not exist: ${moduleName}`);
|
|
34
|
-
}
|
|
29
|
+
argv.moduleInfo = this.helper.parseModuleInfoCanonical(moduleName);
|
|
30
|
+
const _module = this.helper.findModuleCanonical(moduleName);
|
|
35
31
|
// target dir
|
|
36
32
|
const targetDir = await this.helper.ensureDir(_module.root);
|
|
37
33
|
// componentName
|
|
@@ -26,12 +26,8 @@ export class CliRefactorComponentSlots extends BeanCliBase {
|
|
|
26
26
|
await super.execute();
|
|
27
27
|
// module name/info
|
|
28
28
|
const moduleName = argv.module;
|
|
29
|
-
argv.moduleInfo = this.helper.
|
|
30
|
-
|
|
31
|
-
const _module = this.helper.findModule(moduleName);
|
|
32
|
-
if (!_module) {
|
|
33
|
-
throw new Error(`module does not exist: ${moduleName}`);
|
|
34
|
-
}
|
|
29
|
+
argv.moduleInfo = this.helper.parseModuleInfoCanonical(moduleName);
|
|
30
|
+
const _module = this.helper.findModuleCanonical(moduleName);
|
|
35
31
|
// target dir
|
|
36
32
|
const targetDir = await this.helper.ensureDir(_module.root);
|
|
37
33
|
// componentName
|
|
@@ -27,12 +27,8 @@ export class CliRefactorFirstRender extends BeanCliBase {
|
|
|
27
27
|
await super.execute();
|
|
28
28
|
// module name/info
|
|
29
29
|
const moduleName = argv.module;
|
|
30
|
-
argv.moduleInfo = this.helper.
|
|
31
|
-
|
|
32
|
-
const _module = this.helper.findModule(moduleName);
|
|
33
|
-
if (!_module) {
|
|
34
|
-
throw new Error(`module does not exist: ${moduleName}`);
|
|
35
|
-
}
|
|
30
|
+
argv.moduleInfo = this.helper.parseModuleInfoCanonical(moduleName);
|
|
31
|
+
const _module = this.helper.findModuleCanonical(moduleName);
|
|
36
32
|
// target dir
|
|
37
33
|
const targetDir = await this.helper.ensureDir(_module.root);
|
|
38
34
|
// componentName
|
|
@@ -27,12 +27,8 @@ export class CliRefactorFirstStyle extends BeanCliBase {
|
|
|
27
27
|
await super.execute();
|
|
28
28
|
// module name/info
|
|
29
29
|
const moduleName = argv.module;
|
|
30
|
-
argv.moduleInfo = this.helper.
|
|
31
|
-
|
|
32
|
-
const _module = this.helper.findModule(moduleName);
|
|
33
|
-
if (!_module) {
|
|
34
|
-
throw new Error(`module does not exist: ${moduleName}`);
|
|
35
|
-
}
|
|
30
|
+
argv.moduleInfo = this.helper.parseModuleInfoCanonical(moduleName);
|
|
31
|
+
const _module = this.helper.findModuleCanonical(moduleName);
|
|
36
32
|
// target dir
|
|
37
33
|
const targetDir = await this.helper.ensureDir(_module.root);
|
|
38
34
|
// componentName
|
|
@@ -26,12 +26,8 @@ export class CliRefactorPageParams extends BeanCliBase {
|
|
|
26
26
|
await super.execute();
|
|
27
27
|
// module name/info
|
|
28
28
|
const moduleName = argv.module;
|
|
29
|
-
argv.moduleInfo = this.helper.
|
|
30
|
-
|
|
31
|
-
const _module = this.helper.findModule(moduleName);
|
|
32
|
-
if (!_module) {
|
|
33
|
-
throw new Error(`module does not exist: ${moduleName}`);
|
|
34
|
-
}
|
|
29
|
+
argv.moduleInfo = this.helper.parseModuleInfoCanonical(moduleName);
|
|
30
|
+
const _module = this.helper.findModuleCanonical(moduleName);
|
|
35
31
|
// target dir
|
|
36
32
|
const targetDir = await this.helper.ensureDir(_module.root);
|
|
37
33
|
// pageName
|
|
@@ -26,12 +26,8 @@ export class CliRefactorPageQuery extends BeanCliBase {
|
|
|
26
26
|
await super.execute();
|
|
27
27
|
// module name/info
|
|
28
28
|
const moduleName = argv.module;
|
|
29
|
-
argv.moduleInfo = this.helper.
|
|
30
|
-
|
|
31
|
-
const _module = this.helper.findModule(moduleName);
|
|
32
|
-
if (!_module) {
|
|
33
|
-
throw new Error(`module does not exist: ${moduleName}`);
|
|
34
|
-
}
|
|
29
|
+
argv.moduleInfo = this.helper.parseModuleInfoCanonical(moduleName);
|
|
30
|
+
const _module = this.helper.findModuleCanonical(moduleName);
|
|
35
31
|
// target dir
|
|
36
32
|
const targetDir = await this.helper.ensureDir(_module.root);
|
|
37
33
|
// pageName
|
|
@@ -25,12 +25,8 @@ export class CliRefactorRenameComponent extends BeanCliBase {
|
|
|
25
25
|
await super.execute();
|
|
26
26
|
// module name/info
|
|
27
27
|
const moduleName = argv.module;
|
|
28
|
-
argv.moduleInfo = this.helper.
|
|
29
|
-
|
|
30
|
-
const _module = this.helper.findModule(moduleName);
|
|
31
|
-
if (!_module) {
|
|
32
|
-
throw new Error(`module does not exist: ${moduleName}`);
|
|
33
|
-
}
|
|
28
|
+
argv.moduleInfo = this.helper.parseModuleInfoCanonical(moduleName);
|
|
29
|
+
const _module = this.helper.findModuleCanonical(moduleName);
|
|
34
30
|
// target dir
|
|
35
31
|
const targetDir = await this.helper.ensureDir(_module.root);
|
|
36
32
|
// componentName
|
|
@@ -62,8 +62,7 @@ export class CliToolsMetadata extends BeanCliBase {
|
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
async _generateMetadata(moduleName: string, force: boolean) {
|
|
65
|
-
const module = this.helper.
|
|
66
|
-
if (!module) throw new Error(`module not found: ${moduleName}`);
|
|
65
|
+
const module = this.helper.findModuleCanonical(moduleName);
|
|
67
66
|
const modulePath = module.root;
|
|
68
67
|
const metaDir = path.join(modulePath, 'src/.metadata');
|
|
69
68
|
const metaIndexFile = path.join(metaDir, 'index.ts');
|
|
@@ -32,12 +32,8 @@ export class CliCreateComponentBase extends BeanCliBase {
|
|
|
32
32
|
await super.execute();
|
|
33
33
|
// module name/info
|
|
34
34
|
const moduleName = argv.module;
|
|
35
|
-
argv.moduleInfo = this.helper.
|
|
36
|
-
|
|
37
|
-
const _module = this.helper.findModule(moduleName);
|
|
38
|
-
if (!_module) {
|
|
39
|
-
throw new Error(`module does not exist: ${moduleName}`);
|
|
40
|
-
}
|
|
35
|
+
argv.moduleInfo = this.helper.parseModuleInfoCanonical(moduleName);
|
|
36
|
+
const _module = this.helper.findModuleCanonical(moduleName);
|
|
41
37
|
// target dir
|
|
42
38
|
const targetDir = await this.helper.ensureDir(_module.root);
|
|
43
39
|
// componentName
|
|
@@ -31,12 +31,8 @@ export class CliCreatePageBase extends BeanCliBase {
|
|
|
31
31
|
await super.execute();
|
|
32
32
|
// module name/info
|
|
33
33
|
const moduleName = argv.module;
|
|
34
|
-
argv.moduleInfo = this.helper.
|
|
35
|
-
|
|
36
|
-
const _module = this.helper.findModule(moduleName);
|
|
37
|
-
if (!_module) {
|
|
38
|
-
throw new Error(`module does not exist: ${moduleName}`);
|
|
39
|
-
}
|
|
34
|
+
argv.moduleInfo = this.helper.parseModuleInfoCanonical(moduleName);
|
|
35
|
+
const _module = this.helper.findModuleCanonical(moduleName);
|
|
40
36
|
// target dir
|
|
41
37
|
const targetDir = await this.helper.ensureDir(_module.root);
|
|
42
38
|
// pageName
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zova",
|
|
3
|
-
"version": "5.1.
|
|
3
|
+
"version": "5.1.110",
|
|
4
4
|
"gitHead": "2c5c19284bab738e492856189acb6fad74b8a7b7",
|
|
5
5
|
"description": "A vue3 framework with ioc",
|
|
6
6
|
"keywords": [
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
48
|
"zova-core": "^5.1.57",
|
|
49
|
-
"zova-suite-a-zova": "^5.1.
|
|
49
|
+
"zova-suite-a-zova": "^5.1.109"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"clean-package": "^2.2.0",
|