cabloy 5.1.136 → 5.1.138
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/.cabloy-version +1 -1
- package/.claude/skills/cabloy-backend-scaffold/SKILL.md +13 -0
- package/.claude/skills/cabloy-backend-scaffold/references/follow-up-checklist.md +11 -0
- package/.claude/skills/cabloy-contract-loop/SKILL.md +17 -0
- package/.claude/skills/cabloy-frontend-scaffold/SKILL.md +35 -0
- package/.claude/skills/cabloy-frontend-scaffold/evals/evals.json +1 -1
- package/.claude/skills/cabloy-frontend-scaffold/references/follow-up-checklist.md +4 -0
- package/.claude/skills/cabloy-zova-source-reading/SKILL.md +21 -0
- package/.claude/skills/cabloy-zova-source-reading/references/core-reading-paths.md +26 -0
- package/CHANGELOG.md +31 -0
- package/CLAUDE.md +5 -1
- package/cabloy-docs/.vitepress/config.mjs +1 -0
- package/cabloy-docs/.vitepress/theme/custom.css +124 -0
- package/cabloy-docs/backend/auth-guide.md +8 -0
- package/cabloy-docs/backend/config-guide.md +2 -0
- package/cabloy-docs/backend/controller-aop-guide.md +8 -0
- package/cabloy-docs/backend/controller-guide.md +33 -0
- package/cabloy-docs/backend/event-guide.md +3 -3
- package/cabloy-docs/backend/mail-guide.md +1 -1
- package/cabloy-docs/backend/markdown-guide.md +1 -1
- package/cabloy-docs/backend/runtime-and-flavors.md +29 -0
- package/cabloy-docs/backend/user-access-guide.md +2 -2
- package/cabloy-docs/blogs/ai-react-nextjs-enterprise-architecture-cabloy/cover-en-v1.png +0 -0
- package/cabloy-docs/blogs/ai-react-nextjs-enterprise-architecture-cabloy/index.md +177 -0
- package/cabloy-docs/blogs/cabloy-fullstack-resource-addressing/cover-en-v1.png +0 -0
- package/cabloy-docs/blogs/cabloy-fullstack-resource-addressing/index.md +430 -0
- package/cabloy-docs/blogs/index.md +69 -0
- package/cabloy-docs/blogs/nextjs-integrated-fullstack-cabloy-contract-loop/cover-en-v1.png +0 -0
- package/cabloy-docs/blogs/nextjs-integrated-fullstack-cabloy-contract-loop/index.md +195 -0
- package/cabloy-docs/blogs/vue-object-oriented-zova-beginner-mental-model/cover-en-v1.png +0 -0
- package/cabloy-docs/blogs/vue-object-oriented-zova-beginner-mental-model/index.md +483 -0
- package/cabloy-docs/frontend/a-openapi-under-the-hood.md +13 -0
- package/cabloy-docs/frontend/api-schema-guide.md +79 -0
- package/cabloy-docs/frontend/environment-config-guide.md +2 -0
- package/cabloy-docs/frontend/form-guide.md +37 -0
- package/cabloy-docs/frontend/markdown-guide.md +3 -0
- package/cabloy-docs/frontend/model-resource-owner-pattern.md +26 -1
- package/cabloy-docs/frontend/module-scope.md +24 -0
- package/cabloy-docs/frontend/modules-and-suites.md +23 -1
- package/cabloy-docs/frontend/navigation-guards-guide.md +2 -0
- package/cabloy-docs/frontend/page-params-guide.md +2 -0
- package/cabloy-docs/frontend/page-route-guide.md +10 -3
- package/cabloy-docs/frontend/route-alias-guide.md +12 -6
- package/cabloy-docs/frontend/ssr-env.md +15 -6
- package/cabloy-docs/frontend/ssr-overview.md +10 -0
- package/cabloy-docs/frontend/ssr-review-checklist.md +1 -0
- package/cabloy-docs/frontend/zova-form-under-the-hood.md +6 -0
- package/cabloy-docs/frontend/zova-router-under-the-hood.md +4 -5
- package/cabloy-docs/fullstack/a-pay-payment-suite.md +1 -1
- package/cabloy-docs/fullstack/deploy-cloudflare-docker.md +14 -8
- package/e2e/specs/a-commerce/commerce.spec.ts +17 -2
- package/e2e/specs/cabloy-basic/account.spec.ts +519 -0
- package/e2e/specs/cabloy-basic/basic.spec.ts +15 -3
- package/package.json +1 -1
- package/vona/env/.env +2 -0
- package/vona/packages-cli/cli/package.json +1 -1
- package/vona/packages-cli/cli-set-api/cli/templates/tools/crudStart/boilerplate/src/controller/{{resourceName}}.ts_ +14 -11
- package/vona/packages-cli/cli-set-api/cli/templates/tools/crudStart/snippets/3-en-us.ts +11 -1
- package/vona/packages-cli/cli-set-api/cli/templates/tools/crudStart/snippets/4-zh-cn.ts +11 -1
- package/vona/packages-cli/cli-set-api/package.json +1 -1
- package/vona/packages-cli/cli-set-api/src/lib/bean/cli.tools.metadata.ts +1 -0
- package/vona/packages-cli/cli-set-api/src/lib/bean/toolsMetadata/generateOnions.ts +4 -3
- package/vona/packages-vona/vona/package.json +1 -1
- package/vona/pnpm-lock.yaml +237 -66
- package/vona/pnpm-workspace.yaml +1 -1
- package/vona/src/suite/a-commerce/modules/commerce-catalog/src/.metadata/index.ts +33 -37
- package/vona/src/suite/a-commerce/modules/commerce-catalog/src/dto/skuSelectResItem.tsx +3 -0
- package/vona/src/suite/a-commerce/modules/commerce-catalog/src/dto/skuView.tsx +3 -0
- package/vona/src/suite/a-commerce/modules/commerce-catalog/src/entity/sku.tsx +17 -2
- package/vona/src/suite/a-commerce/modules/commerce-catalog/src/service/sku.ts +12 -2
- package/vona/src/suite/a-commerce/modules/commerce-catalog/test/skuPresentation.test.ts +52 -4
- package/vona/src/suite/a-commerce/modules/commerce-member/src/.metadata/index.ts +34 -36
- package/vona/src/suite/a-commerce/modules/commerce-payment/src/.metadata/index.ts +29 -33
- package/vona/src/suite/a-commerce/modules/commerce-promotion/src/.metadata/index.ts +34 -37
- package/vona/src/suite/a-commerce/modules/commerce-seed/src/.metadata/index.ts +8 -9
- package/vona/src/suite/a-commerce/modules/commerce-siteadmin/src/.metadata/index.ts +33 -35
- package/vona/src/suite/a-commerce/modules/commerce-siteweb/src/.metadata/index.ts +11 -11
- package/vona/src/suite/a-commerce/modules/commerce-trade/src/.metadata/index.ts +45 -42
- package/vona/src/suite/a-commerce/modules/commerce-trade/src/dto/stockAuditSelectResItem.tsx +4 -0
- package/vona/src/suite/a-commerce/modules/commerce-trade/src/dto/stockAuditView.tsx +6 -1
- package/vona/src/suite/a-commerce/modules/commerce-trade/src/dto/stockBalanceSelectResItem.tsx +4 -0
- package/vona/src/suite/a-commerce/modules/commerce-trade/src/dto/stockBalanceView.tsx +6 -1
- package/vona/src/suite/a-commerce/modules/commerce-trade/src/dto/stockSkuRef.tsx +16 -0
- package/vona/src/suite/a-commerce/modules/commerce-trade/src/entity/stockAudit.tsx +17 -2
- package/vona/src/suite/a-commerce/modules/commerce-trade/src/entity/stockBalance.tsx +17 -2
- package/vona/src/suite/a-commerce/modules/commerce-trade/src/service/stockAudit.ts +31 -2
- package/vona/src/suite/a-commerce/modules/commerce-trade/src/service/stockBalance.ts +31 -2
- package/vona/src/suite/a-commerce/modules/commerce-trade/test/stockPresentation.test.ts +116 -4
- package/vona/src/suite/a-demo/modules/demo-basic/src/.metadata/index.ts +11 -11
- package/vona/src/suite/a-home/modules/home-base/src/.metadata/index.ts +0 -3
- package/vona/src/suite/a-home/modules/home-index/src/.metadata/index.ts +12 -13
- package/vona/src/suite/a-home/modules/home-user/package.json +9 -1
- package/vona/src/suite/a-home/modules/home-user/src/.metadata/index.ts +333 -78
- package/vona/src/suite/a-home/modules/home-user/src/bean/cacheRedis.activation.ts +21 -0
- package/vona/src/suite/a-home/modules/home-user/src/bean/cacheRedis.activationCurrent.ts +15 -0
- package/vona/src/{suite-vendor/a-vona/modules/a-mailconfirm → suite/a-home/modules/home-user}/src/bean/cacheRedis.passwordReset.ts +6 -2
- package/vona/src/suite/a-home/modules/home-user/src/bean/cacheRedis.passwordResetCurrent.ts +15 -0
- package/vona/src/suite/a-home/modules/home-user/src/bean/cacheRedis.passwordResetRecipient.ts +13 -0
- package/vona/src/suite/a-home/modules/home-user/src/bean/cacheRedis.passwordSet.ts +22 -0
- package/vona/src/suite/a-home/modules/home-user/src/bean/cacheRedis.passwordSetCurrent.ts +15 -0
- package/vona/src/suite/a-home/modules/home-user/src/bean/imageScene.homeUserAvatar.ts +18 -0
- package/vona/src/suite/a-home/modules/home-user/src/bean/meta.redlock.ts +18 -0
- package/vona/src/suite/a-home/modules/home-user/src/bean/meta.version.ts +0 -1
- package/vona/src/suite/a-home/modules/home-user/src/bean/zodRefine.passwordConfirm.ts +8 -4
- package/vona/src/suite/a-home/modules/home-user/src/config/config.ts +10 -1
- package/vona/src/suite/a-home/modules/home-user/src/config/locale/en-us.ts +35 -3
- package/vona/src/suite/a-home/modules/home-user/src/config/locale/zh-cn.ts +35 -3
- package/vona/src/suite/a-home/modules/home-user/src/controller/account.ts +147 -0
- package/vona/src/suite/a-home/modules/home-user/src/controller/passport.ts +27 -7
- package/vona/src/suite/a-home/modules/home-user/src/dto/accountActivation.ts +12 -0
- package/vona/src/suite/a-home/modules/home-user/src/dto/accountCurrent.ts +31 -0
- package/vona/src/suite/a-home/modules/home-user/src/dto/accountPasswordChange.ts +41 -0
- package/vona/src/suite/a-home/modules/home-user/src/dto/accountPasswordReset.ts +35 -0
- package/vona/src/suite/a-home/modules/home-user/src/dto/accountPasswordResetRequest.ts +20 -0
- package/vona/src/suite/a-home/modules/home-user/src/dto/accountPasswordResetRequestResult.ts +13 -0
- package/vona/src/suite/a-home/modules/home-user/src/dto/accountPasswordSet.ts +35 -0
- package/vona/src/suite/a-home/modules/home-user/src/dto/accountPasswordSetIssue.ts +15 -0
- package/vona/src/suite/a-home/modules/home-user/src/dto/accountProfileUpdate.ts +53 -0
- package/vona/src/suite/a-home/modules/home-user/src/dto/accountRelogin.ts +12 -0
- package/vona/src/suite/a-home/modules/home-user/src/dto/passport.ts +2 -2
- package/vona/src/suite/a-home/modules/home-user/src/dto/passportUser.ts +43 -0
- package/vona/src/suite/a-home/modules/home-user/src/dto/register.ts +40 -5
- package/vona/src/suite/a-home/modules/home-user/src/service/account.ts +693 -0
- package/vona/src/suite/a-home/modules/home-user/test/account.test.ts +249 -0
- package/vona/src/suite/a-home/modules/home-user/test/accountActivation.test.ts +344 -0
- package/vona/src/suite/a-home/modules/home-user/test/accountOpenapi.test.ts +158 -0
- package/vona/src/suite/a-home/modules/home-user/test/accountPasswordReset.test.ts +724 -0
- package/vona/src/suite/a-home/modules/home-user/test/accountPasswordSet.test.ts +799 -0
- package/vona/src/suite/a-training/modules/training-record/src/.metadata/index.ts +73 -65
- package/vona/src/suite/a-training/modules/training-recordsubject/src/.metadata/index.ts +26 -17
- package/vona/src/suite/a-training/modules/training-student/src/.metadata/index.ts +47 -39
- package/vona/src/suite/cabloy-basic/modules/basic-metrics/src/.metadata/index.ts +22 -23
- package/vona/src/suite/cabloy-basic/modules/basic-siteadmin/src/.metadata/index.ts +15 -15
- package/vona/src/suite/cabloy-basic/modules/basic-siteweb/src/.metadata/index.ts +11 -11
- package/vona/src/suite-vendor/a-auth/modules/a-auth/package.json +1 -1
- package/vona/src/suite-vendor/a-auth/modules/a-auth/src/.metadata/index.ts +55 -41
- package/vona/src/suite-vendor/a-auth/modules/auth-oauth/package.json +1 -1
- package/vona/src/suite-vendor/a-auth/modules/auth-oauth/src/.metadata/index.ts +8 -8
- package/vona/src/suite-vendor/a-auth/modules/auth-simple/package.json +4 -2
- package/vona/src/suite-vendor/a-auth/modules/auth-simple/src/.metadata/index.ts +51 -27
- package/vona/src/suite-vendor/a-auth/modules/auth-simple/src/bean/meta.redlock.ts +11 -0
- package/vona/src/suite-vendor/a-auth/modules/auth-simple/src/service/authSimple.ts +53 -2
- package/vona/src/suite-vendor/a-auth/modules/auth-simple/test/authSimple.test.ts +56 -0
- package/vona/src/suite-vendor/a-auth/package.json +2 -2
- package/vona/src/suite-vendor/a-cabloy/modules/a-cabloy/package.json +1 -1
- package/vona/src/suite-vendor/a-cabloy/modules/a-cabloy/src/.metadata/index.ts +4 -4
- package/vona/src/suite-vendor/a-cabloy/modules/a-datasharding/package.json +1 -1
- package/vona/src/suite-vendor/a-cabloy/modules/a-datasharding/src/.metadata/index.ts +23 -24
- package/vona/src/suite-vendor/a-cabloy/modules/a-datasource/package.json +1 -1
- package/vona/src/suite-vendor/a-cabloy/modules/a-datasource/src/.metadata/index.ts +31 -22
- package/vona/src/suite-vendor/{a-vona/modules/a-mailconfirm → a-cabloy/modules/a-rbac}/package.json +13 -5
- package/vona/src/suite-vendor/a-cabloy/modules/a-rbac/src/.metadata/index.ts +147 -0
- package/vona/src/suite-vendor/a-cabloy/modules/a-rbac/src/.metadata/this.ts +2 -0
- package/vona/src/suite-vendor/a-cabloy/modules/a-rbac/src/bean/bean.rbacCatalog.ts +95 -0
- package/vona/src/suite-vendor/a-cabloy/modules/a-rbac/src/bean/bean.rbacScope.ts +218 -0
- package/vona/src/suite-vendor/a-cabloy/modules/a-rbac/src/bean/event.policyInvalidated.ts +17 -0
- package/vona/src/suite-vendor/a-cabloy/modules/a-rbac/src/bean/event.resolvePolicy.ts +13 -0
- package/vona/src/suite-vendor/a-cabloy/modules/a-rbac/src/bean/guard.rbac.ts +102 -0
- package/vona/src/suite-vendor/a-cabloy/modules/a-rbac/src/bean/index.ts +5 -0
- package/vona/src/suite-vendor/a-cabloy/modules/a-rbac/src/config/config.ts +10 -0
- package/vona/src/suite-vendor/a-cabloy/modules/a-rbac/src/index.ts +3 -0
- package/vona/src/suite-vendor/a-cabloy/modules/a-rbac/src/lib/index.ts +1 -0
- package/vona/src/suite-vendor/a-cabloy/modules/a-rbac/src/lib/rbac.ts +46 -0
- package/vona/src/suite-vendor/a-cabloy/modules/a-rbac/src/types/index.ts +2 -0
- package/vona/src/suite-vendor/a-cabloy/modules/a-rbac/src/types/rbac.ts +46 -0
- package/vona/src/suite-vendor/a-cabloy/modules/a-rbac/src/types/scope.ts +27 -0
- package/vona/src/suite-vendor/a-cabloy/modules/a-rbac/test/rbacCatalogGuard.test.ts +445 -0
- package/vona/src/suite-vendor/a-cabloy/modules/a-rbac/test/rbacScopeCurrent.test.ts +172 -0
- package/vona/src/suite-vendor/a-cabloy/modules/a-socket/package.json +1 -1
- package/vona/src/suite-vendor/a-cabloy/modules/a-socket/src/.metadata/index.ts +27 -31
- package/vona/src/suite-vendor/a-cabloy/modules/a-ssr/package.json +1 -1
- package/vona/src/suite-vendor/a-cabloy/modules/a-ssr/src/.metadata/index.ts +37 -45
- package/vona/src/suite-vendor/a-cabloy/modules/a-ssrhmr/package.json +1 -1
- package/vona/src/suite-vendor/a-cabloy/modules/a-ssrhmr/src/.metadata/index.ts +12 -12
- package/vona/src/suite-vendor/a-cabloy/modules/a-status/package.json +1 -1
- package/vona/src/suite-vendor/a-cabloy/modules/a-status/src/.metadata/index.ts +27 -19
- package/vona/src/suite-vendor/a-cabloy/package.json +2 -1
- package/vona/src/suite-vendor/a-cabloy/tsconfig.json +3 -0
- package/vona/src/suite-vendor/a-captcha/modules/a-captcha/package.json +1 -1
- package/vona/src/suite-vendor/a-captcha/modules/a-captcha/src/.metadata/index.ts +27 -29
- package/vona/src/suite-vendor/a-captcha/modules/captcha-simple/package.json +1 -1
- package/vona/src/suite-vendor/a-captcha/modules/captcha-simple/src/.metadata/index.ts +16 -17
- package/vona/src/suite-vendor/a-captcha/package.json +1 -1
- package/vona/src/suite-vendor/a-file/modules/a-file/package.json +1 -1
- package/vona/src/suite-vendor/a-file/modules/a-file/src/.metadata/index.ts +56 -38
- package/vona/src/suite-vendor/a-file/modules/file-cloudflare/package.json +1 -1
- package/vona/src/suite-vendor/a-file/modules/file-cloudflare/src/.metadata/index.ts +12 -13
- package/vona/src/suite-vendor/a-file/modules/file-native/package.json +1 -1
- package/vona/src/suite-vendor/a-file/modules/file-native/src/.metadata/index.ts +11 -12
- package/vona/src/suite-vendor/a-file/package.json +4 -4
- package/vona/src/suite-vendor/a-image/modules/a-image/package.json +1 -1
- package/vona/src/suite-vendor/a-image/modules/a-image/src/.metadata/index.ts +56 -38
- package/vona/src/suite-vendor/a-image/modules/image-cloudflare/package.json +1 -1
- package/vona/src/suite-vendor/a-image/modules/image-cloudflare/src/.metadata/index.ts +12 -13
- package/vona/src/suite-vendor/a-image/modules/image-native/package.json +1 -1
- package/vona/src/suite-vendor/a-image/modules/image-native/src/.metadata/index.ts +11 -12
- package/vona/src/suite-vendor/a-image/package.json +1 -1
- package/vona/src/suite-vendor/a-pay/modules/a-pay/package.json +1 -1
- package/vona/src/suite-vendor/a-pay/modules/a-pay/src/.metadata/index.ts +0 -8
- package/vona/src/suite-vendor/a-pay/modules/pay-mock/package.json +1 -1
- package/vona/src/suite-vendor/a-pay/modules/pay-mock/src/.metadata/index.ts +21 -22
- package/vona/src/suite-vendor/a-pay/modules/pay-paypal/package.json +1 -1
- package/vona/src/suite-vendor/a-pay/modules/pay-paypal/src/.metadata/index.ts +8 -8
- package/vona/src/suite-vendor/a-pay/modules/pay-stripe/package.json +1 -1
- package/vona/src/suite-vendor/a-pay/modules/pay-stripe/src/.metadata/index.ts +8 -8
- package/vona/src/suite-vendor/a-pay/package.json +5 -5
- package/vona/src/suite-vendor/a-paypal/modules/a-paypal/package.json +1 -1
- package/vona/src/suite-vendor/a-paypal/modules/a-paypal/src/.metadata/index.ts +46 -40
- package/vona/src/suite-vendor/a-paypal/package.json +1 -1
- package/vona/src/suite-vendor/a-vona/modules/a-aspect/cli/guard/boilerplate/{{sceneName}}.{{beanName}}.ts_ +6 -8
- package/vona/src/suite-vendor/a-vona/modules/a-aspect/package.json +1 -1
- package/vona/src/suite-vendor/a-vona/modules/a-aspect/src/.metadata/index.ts +8 -16
- package/vona/src/suite-vendor/a-vona/modules/a-aspect/src/lib/utils/guardBase.ts +22 -0
- package/vona/src/suite-vendor/a-vona/modules/a-aspect/src/lib/utils/index.ts +1 -0
- package/vona/src/suite-vendor/a-vona/modules/a-aspect/src/types/guard.ts +4 -1
- package/vona/src/suite-vendor/a-vona/modules/a-aspectutils/package.json +1 -1
- package/vona/src/suite-vendor/a-vona/modules/a-aspectutils/src/.metadata/index.ts +8 -10
- package/vona/src/suite-vendor/a-vona/modules/a-bean/package.json +1 -1
- package/vona/src/suite-vendor/a-vona/modules/a-bean/src/.metadata/index.ts +4 -4
- package/vona/src/suite-vendor/a-vona/modules/a-beanmutate/package.json +1 -1
- package/vona/src/suite-vendor/a-vona/modules/a-beanmutate/src/.metadata/index.ts +17 -19
- package/vona/src/suite-vendor/a-vona/modules/a-body/package.json +1 -1
- package/vona/src/suite-vendor/a-vona/modules/a-body/src/.metadata/index.ts +12 -12
- package/vona/src/suite-vendor/a-vona/modules/a-body/src/bean/interceptor.bodyReq.ts +1 -1
- package/vona/src/suite-vendor/a-vona/modules/a-body/src/types/bodyParser.ts +1 -1
- package/vona/src/suite-vendor/a-vona/modules/a-broadcast/package.json +1 -1
- package/vona/src/suite-vendor/a-vona/modules/a-broadcast/src/.metadata/index.ts +8 -9
- package/vona/src/suite-vendor/a-vona/modules/a-cache/package.json +1 -1
- package/vona/src/suite-vendor/a-vona/modules/a-cache/src/.metadata/index.ts +14 -14
- package/vona/src/suite-vendor/a-vona/modules/a-caching/package.json +1 -1
- package/vona/src/suite-vendor/a-vona/modules/a-caching/src/.metadata/index.ts +8 -8
- package/vona/src/suite-vendor/a-vona/modules/a-core/package.json +1 -1
- package/vona/src/suite-vendor/a-vona/modules/a-core/src/.metadata/index.ts +20 -22
- package/vona/src/suite-vendor/a-vona/modules/a-election/package.json +1 -1
- package/vona/src/suite-vendor/a-vona/modules/a-election/src/.metadata/index.ts +15 -16
- package/vona/src/suite-vendor/a-vona/modules/a-error/package.json +1 -1
- package/vona/src/suite-vendor/a-vona/modules/a-error/src/.metadata/index.ts +19 -21
- package/vona/src/suite-vendor/a-vona/modules/a-event/package.json +1 -1
- package/vona/src/suite-vendor/a-vona/modules/a-event/src/.metadata/index.ts +16 -18
- package/vona/src/suite-vendor/a-vona/modules/a-executor/package.json +1 -1
- package/vona/src/suite-vendor/a-vona/modules/a-executor/src/.metadata/index.ts +12 -13
- package/vona/src/suite-vendor/a-vona/modules/a-hmr/package.json +1 -1
- package/vona/src/suite-vendor/a-vona/modules/a-hmr/src/.metadata/index.ts +24 -28
- package/vona/src/suite-vendor/a-vona/modules/a-hmrbase/package.json +1 -1
- package/vona/src/suite-vendor/a-vona/modules/a-hmrbase/src/.metadata/index.ts +4 -4
- package/vona/src/suite-vendor/a-vona/modules/a-index/package.json +1 -1
- package/vona/src/suite-vendor/a-vona/modules/a-index/src/.metadata/index.ts +11 -13
- package/vona/src/suite-vendor/a-vona/modules/a-instance/package.json +1 -1
- package/vona/src/suite-vendor/a-vona/modules/a-instance/src/.metadata/index.ts +42 -35
- package/vona/src/suite-vendor/a-vona/modules/a-jwt/package.json +1 -1
- package/vona/src/suite-vendor/a-vona/modules/a-jwt/src/.metadata/index.ts +15 -17
- package/vona/src/suite-vendor/a-vona/modules/a-locale/package.json +1 -1
- package/vona/src/suite-vendor/a-vona/modules/a-locale/src/.metadata/index.ts +3 -3
- package/vona/src/suite-vendor/a-vona/modules/a-locale/src/main.ts +4 -1
- package/vona/src/suite-vendor/a-vona/modules/a-logger/package.json +1 -1
- package/vona/src/suite-vendor/a-vona/modules/a-logger/src/.metadata/index.ts +20 -20
- package/vona/src/suite-vendor/a-vona/modules/a-mail/package.json +3 -3
- package/vona/src/suite-vendor/a-vona/modules/a-mail/src/.metadata/index.ts +38 -30
- package/vona/src/suite-vendor/a-vona/modules/a-mail/src/types/config.ts +1 -0
- package/vona/src/suite-vendor/a-vona/modules/a-menu/package.json +1 -1
- package/vona/src/suite-vendor/a-vona/modules/a-menu/src/.metadata/index.ts +8 -8
- package/vona/src/suite-vendor/a-vona/modules/a-meta/package.json +1 -1
- package/vona/src/suite-vendor/a-vona/modules/a-meta/src/.metadata/index.ts +4 -4
- package/vona/src/suite-vendor/a-vona/modules/a-metrics/package.json +1 -1
- package/vona/src/suite-vendor/a-vona/modules/a-metrics/src/.metadata/index.ts +15 -18
- package/vona/src/suite-vendor/a-vona/modules/a-onion/package.json +1 -1
- package/vona/src/suite-vendor/a-vona/modules/a-onion/src/.metadata/index.ts +11 -11
- package/vona/src/suite-vendor/a-vona/modules/a-openapi/package.json +1 -1
- package/vona/src/suite-vendor/a-vona/modules/a-openapi/src/.metadata/index.ts +15 -16
- package/vona/src/suite-vendor/a-vona/modules/a-openapi/src/types/decorator.ts +2 -1
- package/vona/src/suite-vendor/a-vona/modules/a-openapi/src/types/permissions.ts +24 -1
- package/vona/src/suite-vendor/a-vona/modules/a-openapischema/package.json +1 -1
- package/vona/src/suite-vendor/a-vona/modules/a-openapischema/src/.metadata/index.ts +17 -17
- 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/.metadata/index.ts +3 -3
- 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/.metadata/index.ts +34 -39
- package/vona/src/suite-vendor/a-vona/modules/a-orm/src/lib/bean.model/bean.model_view.ts +10 -6
- package/vona/src/suite-vendor/a-vona/modules/a-orm/src/service/columns_.ts +1 -2
- package/vona/src/suite-vendor/a-vona/modules/a-orm/src/service/databaseDialectBase_.ts +37 -1
- package/vona/src/suite-vendor/a-vona/modules/a-orm/src/service/transactionFiber_.ts +8 -2
- package/vona/src/suite-vendor/a-vona/modules/a-orm/src/service/transaction_.ts +5 -8
- package/vona/src/suite-vendor/a-vona/modules/a-orm/src/types/columns.ts +1 -0
- package/vona/src/suite-vendor/a-vona/modules/a-ormdialect/package.json +1 -1
- package/vona/src/suite-vendor/a-vona/modules/a-ormdialect/src/.metadata/index.ts +8 -8
- package/vona/src/suite-vendor/a-vona/modules/a-ormdialect/src/bean/databaseDialect.mysql.ts +28 -0
- package/vona/src/suite-vendor/a-vona/modules/a-ormutils/package.json +1 -1
- package/vona/src/suite-vendor/a-vona/modules/a-ormutils/src/.metadata/index.ts +4 -4
- package/vona/src/suite-vendor/a-vona/modules/a-permission/package.json +4 -1
- package/vona/src/suite-vendor/a-vona/modules/a-permission/src/.metadata/index.ts +35 -22
- package/vona/src/suite-vendor/a-vona/modules/a-permission/src/bean/bean.permission.ts +61 -8
- package/vona/src/suite-vendor/a-vona/modules/a-permission/src/bean/event.retrievePermissionAction.ts +2 -2
- package/vona/src/suite-vendor/a-vona/modules/a-permission/src/bean/summerCache.permissionActionByUser.ts +24 -0
- package/vona/src/suite-vendor/a-vona/modules/a-permission/src/dto/permissions.tsx +18 -1
- package/vona/src/suite-vendor/a-vona/modules/a-permission/test/permission.test.ts +340 -0
- package/vona/src/suite-vendor/a-vona/modules/a-play/package.json +1 -1
- package/vona/src/suite-vendor/a-vona/modules/a-play/src/.metadata/index.ts +13 -13
- package/vona/src/suite-vendor/a-vona/modules/a-printtip/package.json +1 -1
- package/vona/src/suite-vendor/a-vona/modules/a-printtip/src/.metadata/index.ts +11 -12
- package/vona/src/suite-vendor/a-vona/modules/a-queue/package.json +1 -1
- package/vona/src/suite-vendor/a-vona/modules/a-queue/src/.metadata/index.ts +15 -17
- package/vona/src/suite-vendor/a-vona/modules/a-ratelimit/package.json +1 -1
- package/vona/src/suite-vendor/a-vona/modules/a-ratelimit/src/.metadata/index.ts +0 -1
- package/vona/src/suite-vendor/a-vona/modules/a-redis/package.json +1 -1
- package/vona/src/suite-vendor/a-vona/modules/a-redis/src/.metadata/index.ts +12 -13
- package/vona/src/suite-vendor/a-vona/modules/a-redlock/package.json +1 -1
- package/vona/src/suite-vendor/a-vona/modules/a-redlock/src/.metadata/index.ts +7 -8
- package/vona/src/suite-vendor/a-vona/modules/a-retryable/package.json +1 -1
- package/vona/src/suite-vendor/a-vona/modules/a-retryable/src/.metadata/index.ts +8 -8
- package/vona/src/suite-vendor/a-vona/modules/a-runtime/package.json +1 -1
- package/vona/src/suite-vendor/a-vona/modules/a-runtime/src/.metadata/index.ts +12 -13
- package/vona/src/suite-vendor/a-vona/modules/a-schedule/package.json +1 -1
- package/vona/src/suite-vendor/a-vona/modules/a-schedule/src/.metadata/index.ts +23 -26
- package/vona/src/suite-vendor/a-vona/modules/a-security/package.json +1 -1
- package/vona/src/suite-vendor/a-vona/modules/a-security/src/.metadata/index.ts +12 -12
- package/vona/src/suite-vendor/a-vona/modules/a-security/src/bean/bean.security.ts +78 -0
- package/vona/src/suite-vendor/a-vona/modules/a-security/src/bean/middlewareSystem.cors.ts +4 -2
- package/vona/src/suite-vendor/a-vona/modules/a-security/src/index.ts +1 -0
- package/vona/src/suite-vendor/a-vona/modules/a-security/src/types/index.ts +7 -0
- package/vona/src/suite-vendor/a-vona/modules/a-security/test/origin.test.ts +178 -0
- package/vona/src/suite-vendor/a-vona/modules/a-serialization/package.json +1 -1
- package/vona/src/suite-vendor/a-vona/modules/a-serialization/src/.metadata/index.ts +16 -16
- package/vona/src/suite-vendor/a-vona/modules/a-startup/package.json +1 -1
- package/vona/src/suite-vendor/a-vona/modules/a-startup/src/.metadata/index.ts +19 -22
- package/vona/src/suite-vendor/a-vona/modules/a-static/package.json +1 -1
- package/vona/src/suite-vendor/a-vona/modules/a-static/src/.metadata/index.ts +13 -14
- package/vona/src/suite-vendor/a-vona/modules/a-summer/package.json +1 -1
- package/vona/src/suite-vendor/a-vona/modules/a-summer/src/.metadata/index.ts +10 -10
- package/vona/src/suite-vendor/a-vona/modules/a-swagger/package.json +1 -1
- package/vona/src/suite-vendor/a-vona/modules/a-swagger/src/.metadata/index.ts +16 -17
- package/vona/src/suite-vendor/a-vona/modules/a-telemetry/package.json +1 -1
- package/vona/src/suite-vendor/a-vona/modules/a-telemetry/src/.metadata/index.ts +15 -16
- package/vona/src/suite-vendor/a-vona/modules/a-upload/package.json +1 -1
- package/vona/src/suite-vendor/a-vona/modules/a-upload/src/.metadata/index.ts +8 -8
- package/vona/src/suite-vendor/a-vona/modules/a-user/package.json +1 -1
- package/vona/src/suite-vendor/a-vona/modules/a-user/src/.metadata/index.ts +26 -35
- package/vona/src/suite-vendor/a-vona/modules/a-user/src/bean/guard.passport.ts +4 -2
- package/vona/src/suite-vendor/a-vona/modules/a-user/src/bean/guard.roleName.ts +5 -23
- package/vona/src/suite-vendor/a-vona/modules/a-user/src/lib/passport.ts +17 -2
- package/vona/src/suite-vendor/a-vona/modules/a-validation/package.json +1 -1
- package/vona/src/suite-vendor/a-vona/modules/a-validation/src/.metadata/index.ts +7 -7
- package/vona/src/suite-vendor/a-vona/modules/a-version/package.json +1 -1
- package/vona/src/suite-vendor/a-vona/modules/a-version/src/.metadata/index.ts +62 -37
- package/vona/src/suite-vendor/a-vona/modules/a-vona/package.json +1 -2
- package/vona/src/suite-vendor/a-vona/modules/a-vona/src/.metadata/index.ts +4 -4
- 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/.metadata/index.ts +27 -30
- package/vona/src/suite-vendor/a-vona/modules/a-web/src/lib/decorator/arguments.ts +5 -0
- package/vona/src/suite-vendor/a-vona/modules/a-web/src/lib/decorator/pipesArgument.ts +3 -1
- package/vona/src/suite-vendor/a-vona/modules/a-web/src/lib/middleware/extractValue.ts +5 -0
- package/vona/src/suite-vendor/a-vona/modules/a-web/src/types/controller.ts +3 -0
- package/vona/src/suite-vendor/a-vona/modules/a-worker/package.json +1 -1
- package/vona/src/suite-vendor/a-vona/modules/a-worker/src/.metadata/index.ts +15 -15
- package/vona/src/suite-vendor/a-vona/modules/a-zod/package.json +1 -1
- package/vona/src/suite-vendor/a-vona/modules/a-zod/src/.metadata/index.ts +4 -4
- package/vona/src/suite-vendor/a-vona/package.json +2 -3
- package/vona/src/suite-vendor/a-vona/tsconfig.json +0 -3
- package/zova/env/.env.admin +1 -0
- package/zova/env/.env.ssr.web +0 -1
- package/zova/env/.env.web +1 -0
- package/zova/package.original.json +1 -1
- package/zova/packages-cli/cli/package.json +2 -2
- package/zova/packages-cli/cli-set-front/package.json +1 -1
- package/zova/packages-cli/cli-set-front/src/lib/bean/cli.openapi.generate.ts +15 -4
- package/zova/packages-cli/cli-set-front/src/lib/bean/cli.tools.metadata.ts +1 -0
- package/zova/packages-utils/zova-jsx/package.json +2 -2
- package/zova/packages-zova/zova/package.json +3 -3
- package/zova/packages-zova/zova-core/package.json +1 -1
- package/zova/packages-zova/zova-core/src/core/component/locale.ts +10 -3
- package/zova/packages-zova/zova-core/src/core/sys/util.ts +6 -0
- package/zova/pnpm-lock.yaml +94 -25
- package/zova/src/suite/a-commerce/modules/commerce-catalog/src/.metadata/index.ts +21 -21
- package/zova/src/suite/a-commerce/modules/commerce-catalog/src/api/openapi/schemas.ts +92 -46
- package/zova/src/suite/a-commerce/modules/commerce-catalog/src/api/openapi/types.ts +834 -499
- package/zova/src/suite/a-commerce/modules/commerce-member/src/.metadata/index.ts +22 -22
- package/zova/src/suite/a-commerce/modules/commerce-member/src/api/openapi/schemas.ts +104 -50
- package/zova/src/suite/a-commerce/modules/commerce-member/src/api/openapi/types.ts +1202 -667
- package/zova/src/suite/a-commerce/modules/commerce-payment/src/.metadata/index.ts +5 -5
- package/zova/src/suite/a-commerce/modules/commerce-promotion/src/.metadata/index.ts +18 -18
- package/zova/src/suite/a-commerce/modules/commerce-promotion/src/api/openapi/schemas.ts +136 -62
- package/zova/src/suite/a-commerce/modules/commerce-promotion/src/api/openapi/types.ts +1564 -874
- package/zova/src/suite/a-commerce/modules/commerce-siteadmin/src/.metadata/index.ts +24 -24
- package/zova/src/suite/a-commerce/modules/commerce-siteadmin/src/api/openapi/schemas.ts +413 -59
- package/zova/src/suite/a-commerce/modules/commerce-siteadmin/src/api/openapi/types.ts +6290 -1946
- package/zova/src/suite/a-commerce/modules/commerce-siteweb/src/.metadata/index.ts +5 -5
- package/zova/src/suite/a-commerce/modules/commerce-trade/src/.metadata/index.ts +29 -29
- package/zova/src/suite/a-commerce/modules/commerce-trade/src/api/openapi/schemas.ts +112 -58
- package/zova/src/suite/a-commerce/modules/commerce-trade/src/api/openapi/types.ts +980 -721
- package/zova/src/suite/a-commerce/modules/commerce-trade/src/bean/tableCell.actionRefund.tsx +1 -1
- package/zova/src/suite/a-commerce/modules/commerce-trade/src/bean/tableCell.actionShip.tsx +1 -1
- package/zova/src/suite/a-commerce/modules/commerce-trade/src/page/payment/controller.tsx +1 -3
- package/zova/src/suite/a-demo/modules/demo-basic/src/.metadata/index.ts +23 -23
- package/zova/src/suite/a-demo/modules/demo-todo/src/.metadata/index.ts +17 -17
- package/zova/src/suite/a-devui/modules/devui-adapter/src/.metadata/index.ts +10 -10
- package/zova/src/suite/a-home/modules/home-api/cli/openapi.config.ts +1 -0
- package/zova/src/suite/a-home/modules/home-api/mock/passport.fake.ts +1 -1
- package/zova/src/suite/a-home/modules/home-api/src/.metadata/index.ts +61 -31
- package/zova/src/suite/a-home/modules/home-api/src/api/homeUserAccount.ts +171 -0
- package/zova/src/suite/a-home/modules/home-api/src/api/openapi/schemas.ts +96 -50
- package/zova/src/suite/a-home/modules/home-api/src/api/openapi/types.ts +857 -504
- package/zova/src/suite/a-home/modules/home-api/src/apiSchema/homeUserAccount.ts +62 -0
- package/zova/src/suite/a-home/modules/home-base/assets/img/avatar_user.png +0 -0
- package/zova/src/suite/a-home/modules/home-base/src/.metadata/index.ts +16 -16
- package/zova/src/suite/a-home/modules/home-base/src/config/config.ts +5 -0
- package/zova/src/suite/a-home/modules/home-base/src/service/routerGuards.ts +1 -8
- package/zova/src/suite/a-home/modules/home-icon/src/.metadata/index.ts +5 -5
- package/zova/src/suite/a-home/modules/home-indexadmin/src/.metadata/index.ts +11 -11
- package/zova/src/suite/a-home/modules/home-indexweb/src/.metadata/index.ts +9 -9
- package/zova/src/suite/a-home/modules/home-layoutadmin/src/.metadata/index.ts +19 -19
- package/zova/src/suite/a-home/modules/home-layoutadmin/src/component/layoutAdmin/render.user.tsx +19 -2
- package/zova/src/suite/a-home/modules/home-layoutadmin/src/config/locale/en-us.ts +1 -0
- package/zova/src/suite/a-home/modules/home-layoutadmin/src/config/locale/zh-cn.ts +1 -0
- package/zova/src/suite/a-home/modules/home-layoutempty/src/.metadata/index.ts +7 -7
- package/zova/src/suite/a-home/modules/home-layoutweb/src/.metadata/component/layoutWeb.ts +1 -0
- package/zova/src/suite/a-home/modules/home-layoutweb/src/.metadata/index.ts +23 -15
- package/zova/src/suite/a-home/modules/home-layoutweb/src/component/layoutWeb/render.header.tsx +1 -0
- package/zova/src/suite/a-home/modules/home-layoutweb/src/component/layoutWeb/render.tsx +4 -0
- package/zova/src/suite/a-home/modules/home-layoutweb/src/component/layoutWeb/render.user.tsx +68 -0
- package/zova/src/suite/a-home/modules/home-layoutweb/src/config/locale/en-us.ts +11 -8
- package/zova/src/suite/a-home/modules/home-layoutweb/src/config/locale/zh-cn.ts +11 -8
- package/zova/src/suite/a-home/modules/home-login/src/.metadata/index.ts +38 -18
- package/zova/src/suite/a-home/modules/home-login/src/.metadata/page/passwordResetRequest.ts +9 -0
- package/zova/src/suite/a-home/modules/home-login/src/.metadata/page/register.ts +5 -0
- package/zova/src/suite/a-home/modules/home-login/src/config/locale/en-us.ts +14 -0
- package/zova/src/suite/a-home/modules/home-login/src/config/locale/zh-cn.ts +12 -0
- package/zova/src/suite/a-home/modules/home-login/src/page/login/controller.tsx +10 -0
- package/zova/src/suite/a-home/modules/home-login/src/page/login/render.tsx +14 -0
- package/zova/src/suite/a-home/modules/home-login/src/page/passwordResetRequest/controller.tsx +130 -0
- package/zova/src/suite/a-home/modules/home-login/src/page/register/controller.tsx +124 -0
- package/zova/src/suite/a-home/modules/home-login/src/routes.ts +20 -0
- package/zova/src/suite/a-home/modules/home-passport/src/.metadata/index.ts +8 -8
- package/zova/src/suite/a-home/modules/home-passport/src/lib/permissionActionMatcher.ts +37 -0
- package/zova/src/suite/a-home/modules/home-passport/src/model/passport.ts +32 -12
- package/zova/src/suite/a-home/modules/home-passport/test/lib/permissionActionMatcher.test.ts +80 -0
- package/zova/src/suite/a-home/modules/home-theme/src/.metadata/index.ts +13 -13
- package/zova/src/suite/a-home/modules/home-user/package.json +60 -0
- package/zova/src/suite/a-home/modules/home-user/src/.metadata/index.ts +168 -0
- package/zova/src/suite/a-home/modules/home-user/src/.metadata/locales.ts +7 -0
- package/zova/src/suite/a-home/modules/home-user/src/.metadata/page/account.ts +5 -0
- package/zova/src/suite/a-home/modules/home-user/src/.metadata/page/activation.ts +16 -0
- package/zova/src/suite/a-home/modules/home-user/src/.metadata/page/passwordReset.ts +16 -0
- package/zova/src/suite/a-home/modules/home-user/src/.metadata/page/passwordSet.ts +16 -0
- package/zova/src/suite/a-home/modules/home-user/src/.metadata/this.ts +2 -0
- package/zova/src/suite/a-home/modules/home-user/src/config/locale/en-us.ts +52 -0
- package/zova/src/suite/a-home/modules/home-user/src/config/locale/zh-cn.ts +49 -0
- package/zova/src/suite/a-home/modules/home-user/src/index.ts +2 -0
- package/zova/src/suite/a-home/modules/home-user/src/model/account.ts +126 -0
- package/zova/src/suite/a-home/modules/home-user/src/page/account/controller.tsx +357 -0
- package/zova/src/suite/a-home/modules/home-user/src/page/activation/controller.tsx +83 -0
- package/zova/src/suite/a-home/modules/home-user/src/page/passwordReset/controller.tsx +138 -0
- package/zova/src/suite/a-home/modules/home-user/src/page/passwordSet/controller.tsx +138 -0
- package/zova/src/suite/a-home/modules/home-user/src/routes.ts +44 -0
- package/zova/src/suite/a-home/modules/home-user/tsconfig.build.json +13 -0
- package/zova/src/suite/a-home/modules/home-user/tsconfig.json +5 -0
- package/zova/src/suite/a-home/package.json +2 -1
- package/zova/src/suite/a-training/modules/training-student/src/.metadata/index.ts +25 -25
- package/zova/src/suite/a-training/modules/training-student/src/api/openapi/schemas.ts +136 -62
- package/zova/src/suite/a-training/modules/training-student/src/api/openapi/types.ts +1601 -884
- package/zova/src/suite/a-training/modules/training-student/src/bean/tableCell.actionDeleteForce.tsx +1 -1
- package/zova/src/suite/cabloy-basic/modules/basic-adapter/src/.metadata/index.ts +4 -4
- package/zova/src/suite/cabloy-basic/modules/basic-app/src/.metadata/index.ts +12 -12
- package/zova/src/suite/cabloy-basic/modules/basic-captcha/src/.metadata/index.ts +8 -8
- package/zova/src/suite/cabloy-basic/modules/basic-commands/src/.metadata/index.ts +9 -9
- package/zova/src/suite/cabloy-basic/modules/basic-commandssync/src/.metadata/index.ts +9 -9
- package/zova/src/suite/cabloy-basic/modules/basic-currency/src/.metadata/index.ts +13 -13
- package/zova/src/suite/cabloy-basic/modules/basic-date/src/.metadata/index.ts +13 -13
- package/zova/src/suite/cabloy-basic/modules/basic-details/src/.metadata/index.ts +21 -21
- package/zova/src/suite/cabloy-basic/modules/basic-file/src/.metadata/index.ts +26 -26
- package/zova/src/suite/cabloy-basic/modules/basic-file/src/api/openapi/schemas.ts +417 -59
- package/zova/src/suite/cabloy-basic/modules/basic-file/src/api/openapi/types.ts +6316 -1926
- package/zova/src/suite/cabloy-basic/modules/basic-form/src/.metadata/index.ts +12 -12
- package/zova/src/suite/cabloy-basic/modules/basic-image/src/.metadata/component/imageUploader.ts +31 -0
- package/zova/src/suite/cabloy-basic/modules/basic-image/src/.metadata/index.ts +39 -26
- package/zova/src/suite/cabloy-basic/modules/basic-image/src/api/openapi/schemas.ts +417 -59
- package/zova/src/suite/cabloy-basic/modules/basic-image/src/api/openapi/types.ts +6316 -1926
- package/zova/src/suite/cabloy-basic/modules/basic-image/src/component/formFieldImage/controller.tsx +194 -514
- package/zova/src/suite/cabloy-basic/modules/basic-image/src/component/imageUploader/controller.tsx +386 -0
- package/zova/src/suite/cabloy-basic/modules/basic-image/src/config/locale/en-us.ts +1 -0
- package/zova/src/suite/cabloy-basic/modules/basic-image/src/config/locale/zh-cn.ts +1 -0
- package/zova/src/suite/cabloy-basic/modules/basic-image/src/lib/imageTransform.tsx +296 -0
- package/zova/src/suite/cabloy-basic/modules/basic-image/src/lib/index.ts +1 -0
- package/zova/src/suite/cabloy-basic/modules/basic-input/src/.metadata/index.ts +9 -9
- package/zova/src/suite/cabloy-basic/modules/basic-metrics/src/.metadata/index.ts +19 -19
- package/zova/src/suite/cabloy-basic/modules/basic-page/src/.metadata/index.ts +8 -8
- package/zova/src/suite/cabloy-basic/modules/basic-pageentry/src/.metadata/index.ts +8 -8
- package/zova/src/suite/cabloy-basic/modules/basic-pageentry/src/component/blockToolbarRow/controller.tsx +9 -2
- package/zova/src/suite/cabloy-basic/modules/basic-resource/src/.metadata/index.ts +13 -13
- package/zova/src/suite/cabloy-basic/modules/basic-select/src/.metadata/index.ts +13 -13
- package/zova/src/suite/cabloy-basic/modules/basic-select/src/bean/tableCell.select.tsx +2 -3
- package/zova/src/suite/cabloy-basic/modules/basic-select/src/component/formFieldSelect/controller.tsx +2 -3
- package/zova/src/suite/cabloy-basic/modules/basic-select/src/component/select/controller.tsx +7 -7
- package/zova/src/suite/cabloy-basic/modules/basic-select/src/lib/utils.ts +5 -0
- package/zova/src/suite/cabloy-basic/modules/basic-select/test/lib/utils.test.ts +28 -0
- package/zova/src/suite/cabloy-basic/modules/basic-table/src/.metadata/index.ts +16 -16
- package/zova/src/suite/cabloy-basic/modules/basic-table/src/bean/tableCell.actionOperationsRow.tsx +3 -1
- package/zova/src/suite/cabloy-basic/modules/basic-text/src/.metadata/index.ts +13 -13
- package/zova/src/suite-vendor/a-cabloy/modules/a-rbac/package.json +52 -0
- package/zova/src/suite-vendor/a-cabloy/modules/a-rbac/src/.metadata/index.ts +26 -0
- package/zova/src/suite-vendor/a-cabloy/modules/a-rbac/src/.metadata/this.ts +2 -0
- package/zova/src/suite-vendor/a-cabloy/modules/a-rbac/src/index.ts +1 -0
- package/zova/src/suite-vendor/a-cabloy/modules/a-rbac/tsconfig.build.json +13 -0
- package/zova/src/suite-vendor/a-cabloy/modules/a-rbac/tsconfig.json +5 -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/.metadata/index.ts +15 -15
- package/zova/src/suite-vendor/a-cabloy/modules/rest-resource/src/lib/deleteRequest.ts +12 -0
- package/zova/src/suite-vendor/a-cabloy/modules/rest-resource/src/model/resource.ts +12 -6
- package/zova/src/suite-vendor/a-cabloy/modules/rest-resource/test/lib/deleteRequest.test.ts +37 -0
- package/zova/src/suite-vendor/a-cabloy/modules/rest-resource/test/model/resource.types.ts +24 -0
- package/zova/src/suite-vendor/a-cabloy/package.json +3 -2
- package/zova/src/suite-vendor/a-pay/modules/a-pay/cli/openapi.config.ts +1 -1
- package/zova/src/suite-vendor/a-pay/modules/a-pay/package.json +1 -1
- package/zova/src/suite-vendor/a-pay/modules/a-pay/src/.metadata/index.ts +43 -43
- package/zova/src/suite-vendor/a-pay/modules/a-pay/src/api/openapi/schemas.ts +120 -58
- package/zova/src/suite-vendor/a-pay/modules/a-pay/src/api/openapi/types.ts +1408 -938
- package/zova/src/suite-vendor/a-pay/modules/a-pay/src/api/payPaymentSession.ts +74 -0
- package/zova/src/suite-vendor/a-pay/modules/a-pay/src/apiSchema/payPaymentSession.ts +25 -0
- package/zova/src/suite-vendor/a-pay/modules/a-pay/src/model/paymentSession.ts +3 -3
- package/zova/src/suite-vendor/a-pay/modules/pay-mock/cli/openapi.config.ts +1 -1
- package/zova/src/suite-vendor/a-pay/modules/pay-mock/package.json +1 -1
- package/zova/src/suite-vendor/a-pay/modules/pay-mock/src/.metadata/index.ts +34 -34
- package/zova/src/suite-vendor/a-pay/modules/pay-mock/src/api/openapi/schemas.ts +140 -66
- package/zova/src/suite-vendor/a-pay/modules/pay-mock/src/api/openapi/types.ts +1621 -891
- package/zova/src/suite-vendor/a-pay/modules/pay-mock/src/api/payMockMockPayment.ts +34 -0
- package/zova/src/suite-vendor/a-pay/modules/pay-mock/src/apiSchema/payMockMockPayment.ts +13 -0
- package/zova/src/suite-vendor/a-pay/modules/pay-mock/src/model/payMockPayment.ts +3 -3
- package/zova/src/suite-vendor/a-pay/modules/pay-paypal/package.json +1 -1
- package/zova/src/suite-vendor/a-pay/modules/pay-paypal/src/.metadata/index.ts +4 -4
- package/zova/src/suite-vendor/a-pay/modules/pay-stripe/package.json +1 -1
- package/zova/src/suite-vendor/a-pay/modules/pay-stripe/src/.metadata/index.ts +4 -4
- package/zova/src/suite-vendor/a-pay/package.json +5 -5
- package/zova/src/suite-vendor/a-zova/modules/a-api/package.json +1 -1
- package/zova/src/suite-vendor/a-zova/modules/a-api/src/.metadata/index.ts +7 -7
- package/zova/src/suite-vendor/a-zova/modules/a-app/package.json +1 -1
- package/zova/src/suite-vendor/a-zova/modules/a-app/src/.metadata/index.ts +8 -8
- package/zova/src/suite-vendor/a-zova/modules/a-bean/package.json +1 -1
- package/zova/src/suite-vendor/a-zova/modules/a-bean/src/.metadata/index.ts +15 -15
- package/zova/src/suite-vendor/a-zova/modules/a-behavior/package.json +1 -1
- package/zova/src/suite-vendor/a-zova/modules/a-behavior/src/.metadata/index.ts +25 -25
- package/zova/src/suite-vendor/a-zova/modules/a-behaviors/package.json +1 -1
- package/zova/src/suite-vendor/a-zova/modules/a-behaviors/src/.metadata/index.ts +9 -9
- package/zova/src/suite-vendor/a-zova/modules/a-boundary/package.json +1 -1
- package/zova/src/suite-vendor/a-zova/modules/a-boundary/src/.metadata/index.ts +5 -5
- package/zova/src/suite-vendor/a-zova/modules/a-command/package.json +1 -1
- package/zova/src/suite-vendor/a-zova/modules/a-command/src/.metadata/index.ts +5 -5
- package/zova/src/suite-vendor/a-zova/modules/a-fetch/package.json +1 -1
- package/zova/src/suite-vendor/a-zova/modules/a-fetch/src/.metadata/index.ts +14 -14
- 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/.metadata/index.ts +12 -12
- package/zova/src/suite-vendor/a-zova/modules/a-icon/package.json +1 -1
- package/zova/src/suite-vendor/a-zova/modules/a-icon/src/.metadata/index.ts +18 -18
- package/zova/src/suite-vendor/a-zova/modules/a-interceptor/package.json +1 -1
- package/zova/src/suite-vendor/a-zova/modules/a-interceptor/src/.metadata/index.ts +8 -8
- package/zova/src/suite-vendor/a-zova/modules/a-logger/package.json +1 -1
- package/zova/src/suite-vendor/a-zova/modules/a-logger/src/.metadata/index.ts +9 -9
- package/zova/src/suite-vendor/a-zova/modules/a-meta/package.json +1 -1
- package/zova/src/suite-vendor/a-zova/modules/a-meta/src/.metadata/index.ts +5 -5
- package/zova/src/suite-vendor/a-zova/modules/a-model/package.json +1 -1
- package/zova/src/suite-vendor/a-zova/modules/a-model/src/.metadata/index.ts +12 -12
- package/zova/src/suite-vendor/a-zova/modules/a-openapi/package.json +3 -2
- package/zova/src/suite-vendor/a-zova/modules/a-openapi/src/.metadata/index.ts +13 -13
- package/zova/src/suite-vendor/a-zova/modules/a-openapi/src/monkey.ts +16 -27
- package/zova/src/suite-vendor/a-zova/modules/a-openapi/src/types/permissions.ts +18 -1
- package/zova/src/suite-vendor/a-zova/modules/a-router/package.json +1 -1
- package/zova/src/suite-vendor/a-zova/modules/a-router/src/.metadata/index.ts +27 -27
- package/zova/src/suite-vendor/a-zova/modules/a-router/src/monkey.ts +9 -6
- package/zova/src/suite-vendor/a-zova/modules/a-router/src/monkeySys.ts +15 -5
- package/zova/src/suite-vendor/a-zova/modules/a-router/src/types/router.ts +2 -2
- package/zova/src/suite-vendor/a-zova/modules/a-routerstack/package.json +1 -1
- package/zova/src/suite-vendor/a-zova/modules/a-routerstack/src/.metadata/index.ts +13 -13
- package/zova/src/suite-vendor/a-zova/modules/a-routertabs/package.json +1 -1
- package/zova/src/suite-vendor/a-zova/modules/a-routertabs/src/.metadata/index.ts +13 -13
- package/zova/src/suite-vendor/a-zova/modules/a-ssr/package.json +1 -1
- package/zova/src/suite-vendor/a-zova/modules/a-ssr/src/.metadata/index.ts +9 -9
- package/zova/src/suite-vendor/a-zova/modules/a-ssr/src/lib/ssr.ts +15 -4
- package/zova/src/suite-vendor/a-zova/modules/a-ssr/src/lib/ssrNavigation.ts +40 -0
- package/zova/src/suite-vendor/a-zova/modules/a-ssr/src/lib/ssrProfile.ts +6 -1
- package/zova/src/suite-vendor/a-zova/modules/a-ssr/src/monkey.ts +20 -6
- package/zova/src/suite-vendor/a-zova/modules/a-ssr/test/lib/ssrNavigation.test.ts +69 -0
- package/zova/src/suite-vendor/a-zova/modules/a-ssr/test/lib/ssrProfile.test.ts +25 -6
- package/zova/src/suite-vendor/a-zova/modules/a-ssrhmr/package.json +1 -1
- package/zova/src/suite-vendor/a-zova/modules/a-ssrhmr/src/.metadata/index.ts +4 -4
- package/zova/src/suite-vendor/a-zova/modules/a-ssrserver/package.json +1 -1
- package/zova/src/suite-vendor/a-zova/modules/a-ssrserver/src/.metadata/index.ts +10 -10
- package/zova/src/suite-vendor/a-zova/modules/a-ssrserver/src/service/ssrHandler.ts +1 -2
- package/zova/src/suite-vendor/a-zova/modules/a-style/package.json +1 -1
- package/zova/src/suite-vendor/a-zova/modules/a-style/src/.metadata/index.ts +9 -9
- package/zova/src/suite-vendor/a-zova/modules/a-style/src/bean/bean.theme.ts +2 -2
- package/zova/src/suite-vendor/a-zova/modules/a-table/package.json +1 -1
- package/zova/src/suite-vendor/a-zova/modules/a-table/src/.metadata/index.ts +12 -12
- package/zova/src/suite-vendor/a-zova/modules/a-zod/package.json +1 -1
- package/zova/src/suite-vendor/a-zova/modules/a-zod/src/.metadata/index.ts +9 -9
- package/zova/src/suite-vendor/a-zova/modules/a-zova/package.json +2 -2
- package/zova/src/suite-vendor/a-zova/modules/a-zova/src/.metadata/index.ts +5 -5
- package/zova/src/suite-vendor/a-zova/package.json +26 -26
- package/vona/src/suite/a-home/modules/home-user/src/bean/eventListener.emailConfirmCallback.ts +0 -32
- package/vona/src/suite/a-home/modules/home-user/src/bean/eventListener.passwordResetCallback.ts +0 -30
- package/vona/src/suite/a-home/modules/home-user/src/bean/eventListener.register.ts +0 -27
- package/vona/src/suite-vendor/a-vona/modules/a-mailconfirm/src/.metadata/index.ts +0 -207
- package/vona/src/suite-vendor/a-vona/modules/a-mailconfirm/src/.metadata/locales.ts +0 -18
- package/vona/src/suite-vendor/a-vona/modules/a-mailconfirm/src/.metadata/this.ts +0 -2
- package/vona/src/suite-vendor/a-vona/modules/a-mailconfirm/src/bean/bean.mailConfirm.ts +0 -63
- package/vona/src/suite-vendor/a-vona/modules/a-mailconfirm/src/bean/cacheRedis.emailConfirm.ts +0 -17
- package/vona/src/suite-vendor/a-vona/modules/a-mailconfirm/src/bean/event.emailConfirmCallback.ts +0 -13
- package/vona/src/suite-vendor/a-vona/modules/a-mailconfirm/src/bean/event.passwordResetCallback.ts +0 -13
- package/vona/src/suite-vendor/a-vona/modules/a-mailconfirm/src/config/locale/en-us.ts +0 -13
- package/vona/src/suite-vendor/a-vona/modules/a-mailconfirm/src/config/locale/mail/en-us.ts +0 -29
- package/vona/src/suite-vendor/a-vona/modules/a-mailconfirm/src/config/locale/mail/zh-cn.ts +0 -29
- package/vona/src/suite-vendor/a-vona/modules/a-mailconfirm/src/config/locale/zh-cn.ts +0 -13
- package/vona/src/suite-vendor/a-vona/modules/a-mailconfirm/src/controller/mail.ts +0 -34
- package/vona/src/suite-vendor/a-vona/modules/a-mailconfirm/src/index.ts +0 -2
- package/zova/src/suite-vendor/a-pay/modules/a-pay/src/api/paymentSession.ts +0 -74
- package/zova/src/suite-vendor/a-pay/modules/a-pay/src/apiSchema/paymentSession.ts +0 -25
- package/zova/src/suite-vendor/a-pay/modules/pay-mock/src/api/payMockPayment.ts +0 -34
- package/zova/src/suite-vendor/a-pay/modules/pay-mock/src/apiSchema/payMockPayment.ts +0 -13
- /package/vona/patches/{zova-core@5.1.84.patch → zova-core@5.1.85.patch} +0 -0
- /package/vona/src/suite-vendor/{a-vona/modules/a-mailconfirm → a-cabloy/modules/a-rbac}/tsconfig.build.json +0 -0
- /package/vona/src/suite-vendor/{a-vona/modules/a-mailconfirm → a-cabloy/modules/a-rbac}/tsconfig.json +0 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { TableIdentity } from 'table-identity';
|
|
2
|
+
|
|
3
|
+
import { CacheRedis, ServiceCacheRedisBase } from 'vona-module-a-cache';
|
|
4
|
+
|
|
5
|
+
export type TCacheRedisActivationKey = string;
|
|
6
|
+
|
|
7
|
+
export interface TCacheRedisActivationData {
|
|
8
|
+
purpose: 'account-activation';
|
|
9
|
+
userId: TableIdentity;
|
|
10
|
+
consumerPath: '/home/user/activation';
|
|
11
|
+
email: string;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
@CacheRedis({
|
|
15
|
+
ttl: 15 * 60 * 1000,
|
|
16
|
+
disableTransactionCompensate: true,
|
|
17
|
+
})
|
|
18
|
+
export class CacheRedisActivation extends ServiceCacheRedisBase<
|
|
19
|
+
TCacheRedisActivationKey,
|
|
20
|
+
TCacheRedisActivationData
|
|
21
|
+
> {}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { TableIdentity } from 'table-identity';
|
|
2
|
+
|
|
3
|
+
import { CacheRedis, ServiceCacheRedisBase } from 'vona-module-a-cache';
|
|
4
|
+
|
|
5
|
+
export type TCacheRedisActivationCurrentKey = TableIdentity;
|
|
6
|
+
export type TCacheRedisActivationCurrentData = string;
|
|
7
|
+
|
|
8
|
+
@CacheRedis({
|
|
9
|
+
ttl: 15 * 60 * 1000,
|
|
10
|
+
disableTransactionCompensate: true,
|
|
11
|
+
})
|
|
12
|
+
export class CacheRedisActivationCurrent extends ServiceCacheRedisBase<
|
|
13
|
+
TCacheRedisActivationCurrentKey,
|
|
14
|
+
TCacheRedisActivationCurrentData
|
|
15
|
+
> {}
|
|
@@ -1,14 +1,18 @@
|
|
|
1
1
|
import type { TableIdentity } from 'table-identity';
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { CacheRedis, ServiceCacheRedisBase } from 'vona-module-a-cache';
|
|
4
4
|
|
|
5
5
|
export type TCacheRedisPasswordResetKey = string;
|
|
6
|
+
|
|
6
7
|
export interface TCacheRedisPasswordResetData {
|
|
8
|
+
purpose: 'password-reset';
|
|
7
9
|
userId: TableIdentity;
|
|
10
|
+
consumerPath: '/home/user/password-reset';
|
|
8
11
|
}
|
|
9
12
|
|
|
10
13
|
@CacheRedis({
|
|
11
|
-
ttl:
|
|
14
|
+
ttl: 15 * 60 * 1000,
|
|
15
|
+
disableTransactionCompensate: true,
|
|
12
16
|
})
|
|
13
17
|
export class CacheRedisPasswordReset extends ServiceCacheRedisBase<
|
|
14
18
|
TCacheRedisPasswordResetKey,
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { TableIdentity } from 'table-identity';
|
|
2
|
+
|
|
3
|
+
import { CacheRedis, ServiceCacheRedisBase } from 'vona-module-a-cache';
|
|
4
|
+
|
|
5
|
+
export type TCacheRedisPasswordResetCurrentKey = TableIdentity;
|
|
6
|
+
export type TCacheRedisPasswordResetCurrentData = string;
|
|
7
|
+
|
|
8
|
+
@CacheRedis({
|
|
9
|
+
ttl: 15 * 60 * 1000,
|
|
10
|
+
disableTransactionCompensate: true,
|
|
11
|
+
})
|
|
12
|
+
export class CacheRedisPasswordResetCurrent extends ServiceCacheRedisBase<
|
|
13
|
+
TCacheRedisPasswordResetCurrentKey,
|
|
14
|
+
TCacheRedisPasswordResetCurrentData
|
|
15
|
+
> {}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { CacheRedis, ServiceCacheRedisBase } from 'vona-module-a-cache';
|
|
2
|
+
|
|
3
|
+
export type TCacheRedisPasswordResetRecipientKey = string;
|
|
4
|
+
export type TCacheRedisPasswordResetRecipientData = true;
|
|
5
|
+
|
|
6
|
+
@CacheRedis({
|
|
7
|
+
ttl: 60 * 1000,
|
|
8
|
+
disableTransactionCompensate: true,
|
|
9
|
+
})
|
|
10
|
+
export class CacheRedisPasswordResetRecipient extends ServiceCacheRedisBase<
|
|
11
|
+
TCacheRedisPasswordResetRecipientKey,
|
|
12
|
+
TCacheRedisPasswordResetRecipientData
|
|
13
|
+
> {}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { TableIdentity } from 'table-identity';
|
|
2
|
+
|
|
3
|
+
import { CacheRedis, ServiceCacheRedisBase } from 'vona-module-a-cache';
|
|
4
|
+
|
|
5
|
+
export type TCacheRedisPasswordSetKey = string;
|
|
6
|
+
|
|
7
|
+
export interface TCacheRedisPasswordSetData {
|
|
8
|
+
purpose: 'password-set';
|
|
9
|
+
userId: TableIdentity;
|
|
10
|
+
consumerPath: '/home/user/password-set';
|
|
11
|
+
email: string;
|
|
12
|
+
pendingEmail?: string;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
@CacheRedis({
|
|
16
|
+
ttl: 15 * 60 * 1000,
|
|
17
|
+
disableTransactionCompensate: true,
|
|
18
|
+
})
|
|
19
|
+
export class CacheRedisPasswordSet extends ServiceCacheRedisBase<
|
|
20
|
+
TCacheRedisPasswordSetKey,
|
|
21
|
+
TCacheRedisPasswordSetData
|
|
22
|
+
> {}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { TableIdentity } from 'table-identity';
|
|
2
|
+
|
|
3
|
+
import { CacheRedis, ServiceCacheRedisBase } from 'vona-module-a-cache';
|
|
4
|
+
|
|
5
|
+
export type TCacheRedisPasswordSetCurrentKey = TableIdentity;
|
|
6
|
+
export type TCacheRedisPasswordSetCurrentData = string;
|
|
7
|
+
|
|
8
|
+
@CacheRedis({
|
|
9
|
+
ttl: 15 * 60 * 1000,
|
|
10
|
+
disableTransactionCompensate: true,
|
|
11
|
+
})
|
|
12
|
+
export class CacheRedisPasswordSetCurrent extends ServiceCacheRedisBase<
|
|
13
|
+
TCacheRedisPasswordSetCurrentKey,
|
|
14
|
+
TCacheRedisPasswordSetCurrentData
|
|
15
|
+
> {}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { BeanBase } from 'vona';
|
|
2
|
+
import { ImageScene } from 'vona-module-a-image';
|
|
3
|
+
|
|
4
|
+
@ImageScene({
|
|
5
|
+
public: true,
|
|
6
|
+
upload: {
|
|
7
|
+
maxSize: 2 * 1024 * 1024,
|
|
8
|
+
mimeTypes: ['image/jpeg', 'image/png', 'image/webp'],
|
|
9
|
+
extensions: ['.jpg', '.jpeg', '.png', '.webp'],
|
|
10
|
+
multiple: false,
|
|
11
|
+
},
|
|
12
|
+
meta: ctx => {
|
|
13
|
+
const user = ctx.state.passport?.user;
|
|
14
|
+
if (!user || user.anonymous) return ctx.app.throw(401);
|
|
15
|
+
return { ownerUserId: user.id.toString() };
|
|
16
|
+
},
|
|
17
|
+
})
|
|
18
|
+
export class ImageSceneHomeUserAvatar extends BeanBase {}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Meta } from 'vona-module-a-meta';
|
|
2
|
+
import { BeanRedlockBase } from 'vona-module-a-redlock';
|
|
3
|
+
|
|
4
|
+
export type TypeRedlockLockResource =
|
|
5
|
+
| `homeUser.account.passwordMutation.${string}`
|
|
6
|
+
| `homeUser.account.passwordSetIssue.${string}`
|
|
7
|
+
| `homeUser.account.passwordSetConsume.${string}`
|
|
8
|
+
| `homeUser.account.passwordSetCandidate.${string}`
|
|
9
|
+
| `homeUser.account.passwordResetConsume.${string}`
|
|
10
|
+
| `homeUser.account.activationMutation.${string}`
|
|
11
|
+
| `homeUser.account.activationConsume.${string}`;
|
|
12
|
+
export type TypeRedlockLockIsolateResource = never;
|
|
13
|
+
|
|
14
|
+
@Meta()
|
|
15
|
+
export class MetaRedlock extends BeanRedlockBase<
|
|
16
|
+
TypeRedlockLockResource,
|
|
17
|
+
TypeRedlockLockIsolateResource
|
|
18
|
+
> {}
|
|
@@ -70,7 +70,6 @@ export class MetaVersion extends BeanBase implements IMetaVersionUpdate, IMetaVe
|
|
|
70
70
|
clientOptions: {
|
|
71
71
|
username: 'admin',
|
|
72
72
|
password: options.password || this.scope.config.passwordDefault.admin,
|
|
73
|
-
avatar: ':emoji:flower',
|
|
74
73
|
confirmed: true,
|
|
75
74
|
},
|
|
76
75
|
state: { intention: 'register' },
|
|
@@ -8,11 +8,14 @@ import { BeanBase } from 'vona';
|
|
|
8
8
|
import { ZodRefine } from 'vona-module-a-zod';
|
|
9
9
|
|
|
10
10
|
export interface TypeZodRefinePasswordConfirmData {
|
|
11
|
-
password
|
|
11
|
+
password?: string;
|
|
12
|
+
newPassword?: string;
|
|
12
13
|
passwordConfirm: string;
|
|
13
14
|
}
|
|
14
15
|
|
|
15
|
-
export interface IZodRefineOptionsPasswordConfirm extends IDecoratorZodRefineOptions {
|
|
16
|
+
export interface IZodRefineOptionsPasswordConfirm extends IDecoratorZodRefineOptions {
|
|
17
|
+
passwordField?: 'password' | 'newPassword';
|
|
18
|
+
}
|
|
16
19
|
|
|
17
20
|
@ZodRefine<IZodRefineOptionsPasswordConfirm>()
|
|
18
21
|
export class ZodRefinePasswordConfirm
|
|
@@ -22,9 +25,10 @@ export class ZodRefinePasswordConfirm
|
|
|
22
25
|
async execute(
|
|
23
26
|
value: TypeZodRefinePasswordConfirmData,
|
|
24
27
|
refinementCtx: TypeRefinementCtx,
|
|
25
|
-
|
|
28
|
+
options: IZodRefineOptionsPasswordConfirm,
|
|
26
29
|
) {
|
|
27
|
-
|
|
30
|
+
const passwordField = options.passwordField ?? 'password';
|
|
31
|
+
if (value[passwordField] !== value.passwordConfirm) {
|
|
28
32
|
refinementCtx.addIssue({
|
|
29
33
|
code: 'custom',
|
|
30
34
|
message: this.scope.locale.PasswordsNotMatch(),
|
|
@@ -5,7 +5,16 @@ import { builtinRoles } from './roles.ts';
|
|
|
5
5
|
export { builtinRoles } from './roles.ts';
|
|
6
6
|
export type { IRoleConfig } from './roles.ts';
|
|
7
7
|
|
|
8
|
-
export
|
|
8
|
+
export interface IHomeUserConfig {
|
|
9
|
+
passwordDefault: {
|
|
10
|
+
admin: string;
|
|
11
|
+
};
|
|
12
|
+
disableBootstrapSystemAdmin: boolean;
|
|
13
|
+
disableUserAdmin: boolean;
|
|
14
|
+
builtinRoles: typeof builtinRoles;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export function config(_app: VonaApplication): IHomeUserConfig {
|
|
9
18
|
return {
|
|
10
19
|
passwordDefault: {
|
|
11
20
|
admin: '123456',
|
|
@@ -1,7 +1,18 @@
|
|
|
1
1
|
export default {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
ActivationEmailSubject: '[{{siteName}}] Account Activation',
|
|
3
|
+
ActivationEmailBody: `
|
|
4
|
+
Hi {{userName}},
|
|
5
|
+
|
|
6
|
+
Use the following link to activate your account:
|
|
7
|
+
|
|
8
|
+
{{link}}
|
|
9
|
+
|
|
10
|
+
Thanks,
|
|
11
|
+
{{siteName}}
|
|
12
|
+
`,
|
|
13
|
+
AccountActivationPreparing: 'Preparing account activation…',
|
|
14
|
+
AccountActivationInvalid: 'This activation link is invalid or has expired.',
|
|
15
|
+
AccountActivationCompleted: 'Your account has been activated. You can now sign in.',
|
|
5
16
|
Role: 'Role',
|
|
6
17
|
RoleName: 'Role Name',
|
|
7
18
|
RoleTitle: 'Role Title',
|
|
@@ -19,5 +30,26 @@ export default {
|
|
|
19
30
|
UserTz: 'Timezone',
|
|
20
31
|
UsernameExists: 'Username Exists',
|
|
21
32
|
EmailExists: 'Email Exists',
|
|
33
|
+
Password: 'Password',
|
|
34
|
+
AccountDisplayName: 'Display name',
|
|
35
|
+
AccountAvatar: 'Avatar',
|
|
36
|
+
AccountLocale: 'Locale',
|
|
37
|
+
AccountTimezone: 'Time zone',
|
|
38
|
+
CurrentPassword: 'Current Password',
|
|
39
|
+
NewPassword: 'New Password',
|
|
40
|
+
PasswordConfirm: 'Confirm Password',
|
|
41
|
+
Captcha: 'Captcha',
|
|
22
42
|
PasswordsNotMatch: 'Passwords do not match',
|
|
43
|
+
PasswordSetEmailSubject: 'Set your password',
|
|
44
|
+
PasswordSetEmailBody: `
|
|
45
|
+
Use the following link to set your password:
|
|
46
|
+
|
|
47
|
+
{{link}}
|
|
48
|
+
`,
|
|
49
|
+
PasswordResetEmailSubject: 'Reset your password',
|
|
50
|
+
PasswordResetEmailBody: `
|
|
51
|
+
Use the following link to reset your password:
|
|
52
|
+
|
|
53
|
+
{{link}}
|
|
54
|
+
`,
|
|
23
55
|
};
|
|
@@ -1,7 +1,18 @@
|
|
|
1
1
|
export default {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
ActivationEmailSubject: '[{{siteName}}] 激活账户',
|
|
3
|
+
ActivationEmailBody: `
|
|
4
|
+
您好,{{userName}}:
|
|
5
|
+
|
|
6
|
+
请使用以下链接激活您的账户:
|
|
7
|
+
|
|
8
|
+
{{link}}
|
|
9
|
+
|
|
10
|
+
谢谢,
|
|
11
|
+
{{siteName}}
|
|
12
|
+
`,
|
|
13
|
+
AccountActivationPreparing: '正在准备账户激活…',
|
|
14
|
+
AccountActivationInvalid: '激活链接无效或已过期。',
|
|
15
|
+
AccountActivationCompleted: '您的账户已激活,现在可以登录。',
|
|
5
16
|
Role: '角色',
|
|
6
17
|
RoleName: '角色名',
|
|
7
18
|
RoleTitle: '角色标题',
|
|
@@ -19,5 +30,26 @@ export default {
|
|
|
19
30
|
UserTz: '时区',
|
|
20
31
|
UsernameExists: '用户名已存在',
|
|
21
32
|
EmailExists: '电子邮件已存在',
|
|
33
|
+
Password: '密码',
|
|
34
|
+
AccountDisplayName: '显示名称',
|
|
35
|
+
AccountAvatar: '头像',
|
|
36
|
+
AccountLocale: '语言区域',
|
|
37
|
+
AccountTimezone: '时区',
|
|
38
|
+
CurrentPassword: '当前密码',
|
|
39
|
+
NewPassword: '新密码',
|
|
40
|
+
PasswordConfirm: '确认密码',
|
|
41
|
+
Captcha: '验证码',
|
|
22
42
|
PasswordsNotMatch: '密码不一致',
|
|
43
|
+
PasswordSetEmailSubject: '设置密码',
|
|
44
|
+
PasswordSetEmailBody: `
|
|
45
|
+
请使用以下链接设置密码:
|
|
46
|
+
|
|
47
|
+
{{link}}
|
|
48
|
+
`,
|
|
49
|
+
PasswordResetEmailSubject: '重置您的密码',
|
|
50
|
+
PasswordResetEmailBody: `
|
|
51
|
+
请使用以下链接重置密码:
|
|
52
|
+
|
|
53
|
+
{{link}}
|
|
54
|
+
`,
|
|
23
55
|
};
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
import type { IDecoratorControllerOptions } from 'vona-module-a-web';
|
|
2
|
+
|
|
3
|
+
import { BeanBase } from 'vona';
|
|
4
|
+
import { Core } from 'vona-module-a-core';
|
|
5
|
+
import { Api } from 'vona-module-a-openapiutils';
|
|
6
|
+
import { Passport } from 'vona-module-a-user';
|
|
7
|
+
import { Arg, Controller, Web } from 'vona-module-a-web';
|
|
8
|
+
|
|
9
|
+
import { DtoAccountActivation } from '../dto/accountActivation.ts';
|
|
10
|
+
import { DtoAccountCurrent } from '../dto/accountCurrent.ts';
|
|
11
|
+
import { DtoAccountPasswordChange } from '../dto/accountPasswordChange.ts';
|
|
12
|
+
import { DtoAccountPasswordReset } from '../dto/accountPasswordReset.ts';
|
|
13
|
+
import { DtoAccountPasswordResetRequest } from '../dto/accountPasswordResetRequest.ts';
|
|
14
|
+
import { DtoAccountPasswordResetRequestResult } from '../dto/accountPasswordResetRequestResult.ts';
|
|
15
|
+
import { DtoAccountPasswordSet } from '../dto/accountPasswordSet.ts';
|
|
16
|
+
import { DtoAccountPasswordSetIssue } from '../dto/accountPasswordSetIssue.ts';
|
|
17
|
+
import { DtoAccountProfileUpdate } from '../dto/accountProfileUpdate.ts';
|
|
18
|
+
import { DtoAccountRelogin } from '../dto/accountRelogin.ts';
|
|
19
|
+
|
|
20
|
+
export interface IControllerOptionsAccount extends IDecoratorControllerOptions {}
|
|
21
|
+
|
|
22
|
+
@Controller<IControllerOptionsAccount>({
|
|
23
|
+
path: 'account',
|
|
24
|
+
tags: ['HomeUserAccount'],
|
|
25
|
+
})
|
|
26
|
+
export class ControllerAccount extends BeanBase {
|
|
27
|
+
@Web.get('current')
|
|
28
|
+
@Api.body(DtoAccountCurrent)
|
|
29
|
+
async current(): Promise<DtoAccountCurrent> {
|
|
30
|
+
return await this.scope.service.account.current();
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
@Web.patch('profile')
|
|
34
|
+
@Api.body(DtoAccountCurrent)
|
|
35
|
+
async updateProfile(@Arg.body() command: DtoAccountProfileUpdate): Promise<DtoAccountCurrent> {
|
|
36
|
+
return await this.scope.service.account.updateProfile(command);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
@Web.post('activation/consume')
|
|
40
|
+
@Passport.public()
|
|
41
|
+
@Core.rateLimit({
|
|
42
|
+
enable: true,
|
|
43
|
+
rateLimit: {
|
|
44
|
+
mode: 'enforce',
|
|
45
|
+
limit: 10,
|
|
46
|
+
windowMs: 15 * 60 * 1000,
|
|
47
|
+
key: 'ip',
|
|
48
|
+
name: 'home-user-account-activation-consume',
|
|
49
|
+
headers: true,
|
|
50
|
+
},
|
|
51
|
+
})
|
|
52
|
+
async consumeActivation(@Arg.body() command: DtoAccountActivation): Promise<void> {
|
|
53
|
+
await this.scope.service.account.consumeActivation(command);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
@Web.post('password/change')
|
|
57
|
+
@Api.body(DtoAccountRelogin)
|
|
58
|
+
@Core.rateLimit({
|
|
59
|
+
enable: true,
|
|
60
|
+
rateLimit: {
|
|
61
|
+
mode: 'enforce',
|
|
62
|
+
limit: 10,
|
|
63
|
+
windowMs: 15 * 60 * 1000,
|
|
64
|
+
key: 'subject',
|
|
65
|
+
name: 'home-user-account-password-change',
|
|
66
|
+
headers: true,
|
|
67
|
+
},
|
|
68
|
+
})
|
|
69
|
+
async changePassword(@Arg.body() command: DtoAccountPasswordChange): Promise<DtoAccountRelogin> {
|
|
70
|
+
return await this.scope.service.account.changePassword(command);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
@Web.post('password-set/issue')
|
|
74
|
+
@Core.rateLimit({
|
|
75
|
+
enable: true,
|
|
76
|
+
rateLimit: {
|
|
77
|
+
mode: 'enforce',
|
|
78
|
+
limit: 3,
|
|
79
|
+
windowMs: 15 * 60 * 1000,
|
|
80
|
+
key: 'subject',
|
|
81
|
+
name: 'home-user-account-password-set-issue',
|
|
82
|
+
headers: true,
|
|
83
|
+
},
|
|
84
|
+
})
|
|
85
|
+
async issuePasswordSetLink(@Arg.body() command: DtoAccountPasswordSetIssue): Promise<void> {
|
|
86
|
+
await this.scope.service.account.issuePasswordSetLink(command);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
@Web.post('password-set/consume')
|
|
90
|
+
@Api.body(DtoAccountRelogin)
|
|
91
|
+
@Passport.public()
|
|
92
|
+
@Core.rateLimit({
|
|
93
|
+
enable: true,
|
|
94
|
+
rateLimit: {
|
|
95
|
+
mode: 'enforce',
|
|
96
|
+
limit: 10,
|
|
97
|
+
windowMs: 15 * 60 * 1000,
|
|
98
|
+
key: 'ip',
|
|
99
|
+
name: 'home-user-account-password-set-consume',
|
|
100
|
+
headers: true,
|
|
101
|
+
},
|
|
102
|
+
})
|
|
103
|
+
async consumePasswordSet(@Arg.body() command: DtoAccountPasswordSet): Promise<DtoAccountRelogin> {
|
|
104
|
+
return await this.scope.service.account.consumePasswordSet(command);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
@Web.post('password-reset/request')
|
|
108
|
+
@Passport.public()
|
|
109
|
+
@Core.captchaVerify({ scene: 'captcha-simple:simple' })
|
|
110
|
+
@Api.body(DtoAccountPasswordResetRequestResult)
|
|
111
|
+
@Core.rateLimit({
|
|
112
|
+
enable: true,
|
|
113
|
+
rateLimit: {
|
|
114
|
+
mode: 'enforce',
|
|
115
|
+
limit: 5,
|
|
116
|
+
windowMs: 15 * 60 * 1000,
|
|
117
|
+
key: 'ip',
|
|
118
|
+
name: 'home-user-account-password-reset-request',
|
|
119
|
+
headers: true,
|
|
120
|
+
},
|
|
121
|
+
})
|
|
122
|
+
async requestPasswordReset(
|
|
123
|
+
@Arg.body() command: DtoAccountPasswordResetRequest,
|
|
124
|
+
): Promise<DtoAccountPasswordResetRequestResult> {
|
|
125
|
+
return await this.scope.service.account.requestPasswordReset(command);
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
@Web.post('password-reset/consume')
|
|
129
|
+
@Passport.public()
|
|
130
|
+
@Api.body(DtoAccountRelogin)
|
|
131
|
+
@Core.rateLimit({
|
|
132
|
+
enable: true,
|
|
133
|
+
rateLimit: {
|
|
134
|
+
mode: 'enforce',
|
|
135
|
+
limit: 10,
|
|
136
|
+
windowMs: 15 * 60 * 1000,
|
|
137
|
+
key: 'ip',
|
|
138
|
+
name: 'home-user-account-password-reset-consume',
|
|
139
|
+
headers: true,
|
|
140
|
+
},
|
|
141
|
+
})
|
|
142
|
+
async consumePasswordReset(
|
|
143
|
+
@Arg.body() command: DtoAccountPasswordReset,
|
|
144
|
+
): Promise<DtoAccountRelogin> {
|
|
145
|
+
return await this.scope.service.account.consumePasswordReset(command);
|
|
146
|
+
}
|
|
147
|
+
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { DtoAuth, IAuthenticateOptions, IAuthProviderRecord } from 'vona-module-a-auth';
|
|
2
2
|
import type { IJwtToken } from 'vona-module-a-jwt';
|
|
3
|
+
import type { IUser } from 'vona-module-a-user';
|
|
3
4
|
import type { IDecoratorControllerOptions } from 'vona-module-a-web';
|
|
4
5
|
|
|
5
6
|
import { BeanBase } from 'vona';
|
|
@@ -25,11 +26,12 @@ export class ControllerPassport extends BeanBase {
|
|
|
25
26
|
@Web.get('current')
|
|
26
27
|
@Passport.public()
|
|
27
28
|
@Api.body(v.optional(), v.object(DtoPassport))
|
|
28
|
-
current(): DtoPassport | undefined {
|
|
29
|
-
return this._combineDtoPassport();
|
|
29
|
+
async current(): Promise<DtoPassport | undefined> {
|
|
30
|
+
return await this._combineDtoPassport();
|
|
30
31
|
}
|
|
31
32
|
|
|
32
33
|
@Web.post('logout')
|
|
34
|
+
@Passport.activated('noCheck')
|
|
33
35
|
async logout() {
|
|
34
36
|
return await this.bean.passport.signout();
|
|
35
37
|
}
|
|
@@ -44,6 +46,10 @@ export class ControllerPassport extends BeanBase {
|
|
|
44
46
|
state: { intention: 'register' },
|
|
45
47
|
clientName: 'default',
|
|
46
48
|
});
|
|
49
|
+
const user = this.bean.passport.current?.user as EntityUser | undefined;
|
|
50
|
+
if (user && !user.activated && user.email) {
|
|
51
|
+
await this.scope.service.account.issueActivationLink(user.id, data.consumerUrl);
|
|
52
|
+
}
|
|
47
53
|
return this._combineDtoPassportJwt(jwt);
|
|
48
54
|
}
|
|
49
55
|
|
|
@@ -132,19 +138,33 @@ export class ControllerPassport extends BeanBase {
|
|
|
132
138
|
return await this.bean.passport.createTempAuthToken({ path });
|
|
133
139
|
}
|
|
134
140
|
|
|
135
|
-
private _combineDtoPassportJwt(jwt?: IJwtToken): DtoPassportJwt {
|
|
141
|
+
private async _combineDtoPassportJwt(jwt?: IJwtToken): Promise<DtoPassportJwt> {
|
|
136
142
|
if (!jwt) this.app.throw(403);
|
|
143
|
+
const passport = await this._combineDtoPassport();
|
|
144
|
+
if (!passport) this.app.throw(403);
|
|
137
145
|
return {
|
|
138
|
-
passport
|
|
146
|
+
passport,
|
|
139
147
|
jwt: jwt as DtoJwtToken,
|
|
140
148
|
};
|
|
141
149
|
}
|
|
142
150
|
|
|
143
|
-
private _combineDtoPassport(): DtoPassport | undefined {
|
|
151
|
+
private async _combineDtoPassport(): Promise<DtoPassport | undefined> {
|
|
144
152
|
const passport = this.bean.passport.current;
|
|
145
|
-
|
|
153
|
+
const user = passport?.user as (EntityUser & IUser) | undefined;
|
|
154
|
+
if (!passport || !passport.auth || !user) return;
|
|
146
155
|
return {
|
|
147
|
-
user:
|
|
156
|
+
user: {
|
|
157
|
+
id: user.id,
|
|
158
|
+
name: user.name,
|
|
159
|
+
avatar: user.avatar,
|
|
160
|
+
email: user.email,
|
|
161
|
+
mobile: user.mobile,
|
|
162
|
+
activated: user.activated,
|
|
163
|
+
accountStatus: user.accountStatus,
|
|
164
|
+
locale: user.locale,
|
|
165
|
+
tz: user.tz,
|
|
166
|
+
anonymous: user.anonymous,
|
|
167
|
+
},
|
|
148
168
|
auth: passport.auth as DtoAuth,
|
|
149
169
|
roles: passport.roles as EntityRole[],
|
|
150
170
|
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { IDecoratorDtoOptions } from 'vona-module-a-web';
|
|
2
|
+
|
|
3
|
+
import { Api, v } from 'vona-module-a-openapiutils';
|
|
4
|
+
import { Dto } from 'vona-module-a-web';
|
|
5
|
+
|
|
6
|
+
export interface IDtoOptionsAccountActivation extends IDecoratorDtoOptions {}
|
|
7
|
+
|
|
8
|
+
@Dto<IDtoOptionsAccountActivation>()
|
|
9
|
+
export class DtoAccountActivation {
|
|
10
|
+
@Api.field(v.min(32), v.max(255))
|
|
11
|
+
token: string;
|
|
12
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { ILocaleRecord } from 'vona';
|
|
2
|
+
import type { IDecoratorDtoOptions } from 'vona-module-a-web';
|
|
3
|
+
|
|
4
|
+
import { Api, v } from 'vona-module-a-openapiutils';
|
|
5
|
+
import { Dto } from 'vona-module-a-web';
|
|
6
|
+
|
|
7
|
+
export interface IDtoOptionsAccountCurrent extends IDecoratorDtoOptions {}
|
|
8
|
+
|
|
9
|
+
@Dto<IDtoOptionsAccountCurrent>()
|
|
10
|
+
export class DtoAccountCurrent {
|
|
11
|
+
@Api.field()
|
|
12
|
+
name: string;
|
|
13
|
+
|
|
14
|
+
@Api.field(v.optional())
|
|
15
|
+
avatar?: string;
|
|
16
|
+
|
|
17
|
+
@Api.field(v.optional())
|
|
18
|
+
locale?: keyof ILocaleRecord;
|
|
19
|
+
|
|
20
|
+
@Api.field(v.optional())
|
|
21
|
+
tz?: string;
|
|
22
|
+
|
|
23
|
+
@Api.field()
|
|
24
|
+
hasSimpleAuth: boolean;
|
|
25
|
+
|
|
26
|
+
@Api.field()
|
|
27
|
+
canSendSetPasswordLink: boolean;
|
|
28
|
+
|
|
29
|
+
@Api.field(v.optional())
|
|
30
|
+
eligibleEmailMasked?: string;
|
|
31
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import type { IDecoratorDtoOptions } from 'vona-module-a-web';
|
|
2
|
+
|
|
3
|
+
import { Api, v } from 'vona-module-a-openapiutils';
|
|
4
|
+
import { Dto } from 'vona-module-a-web';
|
|
5
|
+
import { ZovaRender } from 'zova-rest-cabloy-basic-admin';
|
|
6
|
+
|
|
7
|
+
import { $locale } from '../.metadata/locales.ts';
|
|
8
|
+
|
|
9
|
+
export interface IDtoOptionsAccountPasswordChange extends IDecoratorDtoOptions {}
|
|
10
|
+
|
|
11
|
+
@Dto<IDtoOptionsAccountPasswordChange>({
|
|
12
|
+
pipes: v.zodRefine('home-user:passwordConfirm', { passwordField: 'newPassword' }),
|
|
13
|
+
})
|
|
14
|
+
export class DtoAccountPasswordChange {
|
|
15
|
+
@Api.field(
|
|
16
|
+
v.title($locale('CurrentPassword')),
|
|
17
|
+
v.required(),
|
|
18
|
+
v.min(6),
|
|
19
|
+
v.max(20),
|
|
20
|
+
ZovaRender.field('basic-input:formFieldInput', { type: 'password' }),
|
|
21
|
+
)
|
|
22
|
+
currentPassword: string;
|
|
23
|
+
|
|
24
|
+
@Api.field(
|
|
25
|
+
v.title($locale('NewPassword')),
|
|
26
|
+
v.required(),
|
|
27
|
+
v.min(6),
|
|
28
|
+
v.max(20),
|
|
29
|
+
ZovaRender.field('basic-input:formFieldInput', { type: 'password' }),
|
|
30
|
+
)
|
|
31
|
+
newPassword: string;
|
|
32
|
+
|
|
33
|
+
@Api.field(
|
|
34
|
+
v.title($locale('PasswordConfirm')),
|
|
35
|
+
v.required(),
|
|
36
|
+
v.min(6),
|
|
37
|
+
v.max(20),
|
|
38
|
+
ZovaRender.field('basic-input:formFieldInput', { type: 'password' }),
|
|
39
|
+
)
|
|
40
|
+
passwordConfirm: string;
|
|
41
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import type { IDecoratorDtoOptions } from 'vona-module-a-web';
|
|
2
|
+
|
|
3
|
+
import { Api, v } from 'vona-module-a-openapiutils';
|
|
4
|
+
import { Dto } from 'vona-module-a-web';
|
|
5
|
+
import { ZovaRender } from 'zova-rest-cabloy-basic-admin';
|
|
6
|
+
|
|
7
|
+
import { $locale } from '../.metadata/locales.ts';
|
|
8
|
+
|
|
9
|
+
export interface IDtoOptionsAccountPasswordReset extends IDecoratorDtoOptions {}
|
|
10
|
+
|
|
11
|
+
@Dto<IDtoOptionsAccountPasswordReset>({
|
|
12
|
+
pipes: v.zodRefine('home-user:passwordConfirm', { passwordField: 'newPassword' }),
|
|
13
|
+
})
|
|
14
|
+
export class DtoAccountPasswordReset {
|
|
15
|
+
@Api.field(v.min(32), v.max(255))
|
|
16
|
+
token: string;
|
|
17
|
+
|
|
18
|
+
@Api.field(
|
|
19
|
+
v.title($locale('Password')),
|
|
20
|
+
v.required(),
|
|
21
|
+
v.min(6),
|
|
22
|
+
v.max(20),
|
|
23
|
+
ZovaRender.field('basic-input:formFieldInput', { type: 'password' }),
|
|
24
|
+
)
|
|
25
|
+
newPassword: string;
|
|
26
|
+
|
|
27
|
+
@Api.field(
|
|
28
|
+
v.title($locale('PasswordConfirm')),
|
|
29
|
+
v.required(),
|
|
30
|
+
v.min(6),
|
|
31
|
+
v.max(20),
|
|
32
|
+
ZovaRender.field('basic-input:formFieldInput', { type: 'password' }),
|
|
33
|
+
)
|
|
34
|
+
passwordConfirm: string;
|
|
35
|
+
}
|