cabloy 5.1.19 → 5.1.21
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/.gitignore +0 -0
- package/LICENSE +0 -0
- package/package.json +28 -24
- package/scripts/upgrade.ts +13 -4
- package/vona/README.md +0 -0
- package/vona/README.zh-CN.md +0 -0
- package/vona/packages-cli/cabloy-cli/LICENSE +0 -0
- package/vona/packages-cli/cabloy-cli/README.md +0 -0
- package/vona/packages-cli/cabloy-cli/package.json +0 -0
- package/vona/packages-cli/cli/LICENSE +0 -0
- package/vona/packages-cli/cli/README.md +0 -0
- package/vona/packages-cli/cli/package.json +0 -0
- package/vona/packages-cli/cli-set-api/LICENSE +0 -0
- package/vona/packages-cli/cli-set-api/README.md +0 -0
- package/vona/packages-cli/cli-set-api/cli/templates/create/module/boilerplate/_package.json +0 -0
- package/vona/packages-cli/cli-set-api/cli/templates/create/module/boilerplate/src/index.ts_ +0 -0
- package/vona/packages-cli/cli-set-api/cli/templates/create/suite/modules/.gitkeep +0 -0
- package/vona/packages-cli/cli-set-api/package.json +0 -0
- package/vona/packages-utils/babel-plugin-vona-bean-module/README.md +0 -0
- package/vona/packages-utils/babel-plugin-vona-bean-module/package.json +0 -0
- package/vona/packages-utils/cascade-extend/LICENSE +0 -0
- package/vona/packages-utils/cascade-extend/README.md +0 -0
- package/vona/packages-utils/cascade-extend/package.json +0 -0
- package/vona/packages-utils/compose/README.md +0 -0
- package/vona/packages-utils/compose/package.json +0 -0
- package/vona/packages-utils/deps/README.md +0 -0
- package/vona/packages-utils/deps/package.json +0 -0
- package/vona/packages-utils/dotenv/README.md +0 -0
- package/vona/packages-utils/dotenv/package.json +0 -0
- package/vona/packages-utils/extend/README.md +0 -0
- package/vona/packages-utils/extend/package.json +0 -0
- package/vona/packages-utils/json5/README.md +0 -0
- package/vona/packages-utils/json5/package.json +0 -0
- package/vona/packages-utils/localeutil/README.md +0 -0
- package/vona/packages-utils/localeutil/package.json +0 -0
- package/vona/packages-utils/module-glob/README.md +0 -0
- package/vona/packages-utils/module-glob/package.json +0 -0
- package/vona/packages-utils/module-info-pro/README.md +0 -0
- package/vona/packages-utils/module-info-pro/package.json +0 -0
- package/vona/packages-utils/password-hash-salt/LICENSE +0 -0
- package/vona/packages-utils/password-hash-salt/README.md +0 -0
- package/vona/packages-utils/password-hash-salt/package.json +0 -0
- package/vona/packages-utils/process-helper/README.md +0 -0
- package/vona/packages-utils/process-helper/package.json +0 -0
- package/vona/packages-utils/socket/package.json +0 -0
- package/vona/packages-utils/table-identity/LICENSE +0 -0
- package/vona/packages-utils/table-identity/README.md +0 -0
- package/vona/packages-utils/table-identity/package.json +0 -0
- package/vona/packages-utils/utils/README.md +0 -0
- package/vona/packages-utils/utils/package.json +0 -0
- package/vona/packages-utils/zod-errors-custom/package.json +0 -0
- package/vona/packages-utils/zod-openapi/package.json +0 -0
- package/vona/packages-utils/zod-query/package.json +0 -0
- package/vona/packages-vona/vona/LICENSE +0 -0
- package/vona/packages-vona/vona/README.md +0 -0
- package/vona/packages-vona/vona/README.zh-CN.md +0 -0
- package/vona/packages-vona/vona/package.json +0 -0
- package/vona/packages-vona/vona-core/package.json +0 -0
- package/vona/packages-vona/vona-core/src/index.ts +0 -0
- package/vona/packages-vona/vona-core/src/lib/bean/resource/error/errorClass.ts +0 -0
- package/vona/packages-vona/vona-core/src/lib/bean/resource/error/errorInternal.ts +0 -0
- package/vona/packages-vona/vona-core/src/lib/core/context.ts +0 -0
- package/vona/packages-vona/vona-core/src/lib/core/meta.ts +0 -0
- package/vona/packages-vona/vona-core/src/lib/locale/zh-cn.ts +0 -0
- package/vona/packages-vona/vona-core/src/lib/module/config.ts +0 -0
- package/vona/packages-vona/vona-core/src/lib/module/constant.ts +0 -0
- package/vona/packages-vona/vona-core/src/lib/module/errors.ts +0 -0
- package/vona/packages-vona/vona-core/src/lib/module/loader.ts +0 -0
- package/vona/packages-vona/vona-core/src/lib/module/locales.ts +0 -0
- package/vona/packages-vona/vona-core/src/lib/module/module.ts +0 -0
- package/vona/packages-vona/vona-core/src/lib/utils/util.ts +0 -0
- package/vona/packages-vona/vona-mock/README.md +0 -0
- package/vona/packages-vona/vona-mock/package.json +0 -0
- package/vona/packages-vona/vona-shared/LICENSE +0 -0
- package/vona/packages-vona/vona-shared/package.json +0 -0
- package/vona/pnpm-lock.yaml +60 -58
- package/vona/scripts/release.sh +0 -0
- package/vona/src/suite-vendor/a-auth/modules/a-auth/src/lib/strategyMock.ts +0 -0
- package/vona/src/suite-vendor/a-auth/tsconfig.json +0 -3
- package/vona/src/suite-vendor/a-cabloy/modules/a-status/package.json +0 -0
- package/vona/src/suite-vendor/a-cabloy/modules/a-status/src/model/status.ts +0 -0
- package/vona/src/suite-vendor/a-cabloy/tsconfig.json +0 -9
- package/vona/src/suite-vendor/a-captcha/tsconfig.json +0 -3
- package/vona/src/suite-vendor/a-vona/modules/a-instance/package.json +0 -0
- package/vona/src/suite-vendor/a-vona/modules/a-instance/src/index.ts +0 -0
- package/vona/src/suite-vendor/a-vona/modules/a-version/package.json +0 -0
- package/vona/src/suite-vendor/a-vona/modules/a-version/src/config/errors.ts +0 -0
- package/vona/src/suite-vendor/a-vona/modules/a-version/src/config/locale/zh-cn.ts +0 -0
- package/vona/src/suite-vendor/a-vona/modules/a-version/src/index.ts +0 -0
- package/vona/src/suite-vendor/a-vona/tsconfig.json +0 -3
- package/zova/packages-cli/cli/LICENSE +0 -0
- package/zova/packages-cli/cli/README.md +0 -0
- package/zova/packages-cli/cli/package.json +0 -0
- package/zova/packages-cli/cli-set-front/LICENSE +0 -0
- package/zova/packages-cli/cli-set-front/README.md +0 -0
- package/zova/packages-cli/cli-set-front/cli/templates/create/module/boilerplate/_package.json +0 -0
- package/zova/packages-cli/cli-set-front/cli/templates/create/module/boilerplate/src/index.ts_ +0 -0
- package/zova/packages-cli/cli-set-front/cli/templates/create/suite/modules/.gitkeep +0 -0
- package/zova/packages-cli/cli-set-front/package.json +0 -0
- package/zova/packages-utils/babel-plugin-zova-bean-module/LICENSE +0 -0
- package/zova/packages-utils/babel-plugin-zova-bean-module/README.md +0 -0
- package/zova/packages-utils/babel-plugin-zova-bean-module/package.json +0 -0
- package/zova/packages-utils/babel-plugin-zova-bean-use/LICENSE +0 -0
- package/zova/packages-utils/babel-plugin-zova-bean-use/README.md +0 -0
- package/zova/packages-utils/babel-plugin-zova-bean-use/package.json +0 -0
- package/zova/packages-utils/babel-plugin-zova-behavior/LICENSE +0 -0
- package/zova/packages-utils/babel-plugin-zova-behavior/README.md +0 -0
- package/zova/packages-utils/babel-plugin-zova-behavior/package.json +0 -0
- package/zova/packages-utils/babel-plugin-zova-component/LICENSE +0 -0
- package/zova/packages-utils/babel-plugin-zova-component/README.md +0 -0
- package/zova/packages-utils/babel-plugin-zova-component/package.json +0 -0
- package/zova/packages-utils/logger/LICENSE +0 -0
- package/zova/packages-utils/logger/README.md +0 -0
- package/zova/packages-utils/logger/package.json +0 -0
- package/zova/packages-utils/mutate-on-copy/LICENSE +0 -0
- package/zova/packages-utils/mutate-on-copy/README.md +0 -0
- package/zova/packages-utils/mutate-on-copy/package.json +0 -0
- package/zova/packages-utils/quasar-app-extension-zova/LICENSE +0 -0
- package/zova/packages-utils/word-utils/LICENSE +0 -0
- package/zova/packages-utils/word-utils/README.md +0 -0
- package/zova/packages-utils/word-utils/package.json +0 -0
- package/zova/packages-utils/zova-jsx/LICENSE +0 -0
- package/zova/packages-utils/zova-jsx/package.json +0 -0
- package/zova/packages-utils/zova-openapi/LICENSE +0 -0
- package/zova/packages-utils/zova-openapi/package.json +0 -0
- package/zova/packages-utils/zova-vite/LICENSE +0 -0
- package/zova/packages-utils/zova-vite/README.md +0 -0
- package/zova/packages-utils/zova-vite/package.json +0 -0
- package/zova/packages-zova/zova/LICENSE +0 -0
- package/zova/packages-zova/zova/package.json +0 -0
- package/zova/packages-zova/zova-core/LICENSE +0 -0
- package/zova/packages-zova/zova-core/README.md +0 -0
- package/zova/packages-zova/zova-core/package.json +0 -0
- package/zova/packages-zova/zova-core/src/bean/resource/error/errorClass.ts +0 -0
- package/zova/packages-zova/zova-core/src/bean/resource/error/errorInternal.ts +0 -0
- package/zova/scripts/release.sh +0 -0
- package/zova/src/suite/a-home/modules/home-index/package.json +0 -0
- package/zova/src/suite/a-home/modules/home-index/src/routes.ts +0 -0
- package/zova/src/suite-vendor/a-cabloy/LICENSE +0 -0
- package/zova/src/suite-vendor/a-cabloy/modules/rest-resource/LICENSE +0 -0
- package/zova/src/suite-vendor/a-zova/LICENSE +0 -0
- package/zova/src/suite-vendor/a-zova/modules/a-api/LICENSE +0 -0
- package/zova/src/suite-vendor/a-zova/modules/a-app/LICENSE +0 -0
- package/zova/src/suite-vendor/a-zova/modules/a-bean/LICENSE +0 -0
- package/zova/src/suite-vendor/a-zova/modules/a-behavior/LICENSE +0 -0
- package/zova/src/suite-vendor/a-zova/modules/a-behaviors/LICENSE +0 -0
- package/zova/src/suite-vendor/a-zova/modules/a-boundary/LICENSE +0 -0
- package/zova/src/suite-vendor/a-zova/modules/a-command/LICENSE +0 -0
- package/zova/src/suite-vendor/a-zova/modules/a-fetch/LICENSE +0 -0
- package/zova/src/suite-vendor/a-zova/modules/a-form/LICENSE +0 -0
- package/zova/src/suite-vendor/a-zova/modules/a-icon/LICENSE +0 -0
- package/zova/src/suite-vendor/a-zova/modules/a-interceptor/LICENSE +0 -0
- package/zova/src/suite-vendor/a-zova/modules/a-logger/LICENSE +0 -0
- package/zova/src/suite-vendor/a-zova/modules/a-meta/LICENSE +0 -0
- package/zova/src/suite-vendor/a-zova/modules/a-model/LICENSE +0 -0
- package/zova/src/suite-vendor/a-zova/modules/a-openapi/LICENSE +0 -0
- package/zova/src/suite-vendor/a-zova/modules/a-router/LICENSE +0 -0
- package/zova/src/suite-vendor/a-zova/modules/a-routerstack/LICENSE +0 -0
- package/zova/src/suite-vendor/a-zova/modules/a-routertabs/LICENSE +0 -0
- package/zova/src/suite-vendor/a-zova/modules/a-ssr/LICENSE +0 -0
- package/zova/src/suite-vendor/a-zova/modules/a-ssrhmr/LICENSE +0 -0
- package/zova/src/suite-vendor/a-zova/modules/a-ssrserver/LICENSE +0 -0
- package/zova/src/suite-vendor/a-zova/modules/a-style/LICENSE +0 -0
- package/zova/src/suite-vendor/a-zova/modules/a-table/LICENSE +0 -0
- package/zova/src/suite-vendor/a-zova/modules/a-zod/LICENSE +0 -0
- package/zova/src/suite-vendor/a-zova/modules/a-zova/LICENSE +0 -0
- package/vona/src/suite-vendor/a-auth/modules/test-auth/package.json +0 -52
- package/vona/src/suite-vendor/a-auth/modules/test-auth/src/.metadata/index.ts +0 -74
- package/vona/src/suite-vendor/a-auth/modules/test-auth/src/.metadata/this.ts +0 -2
- package/vona/src/suite-vendor/a-auth/modules/test-auth/src/controller/passport.ts +0 -19
- package/vona/src/suite-vendor/a-auth/modules/test-auth/src/index.ts +0 -1
- package/vona/src/suite-vendor/a-auth/modules/test-auth/test/authOauth.test.ts +0 -55
- package/vona/src/suite-vendor/a-auth/modules/test-auth/test/authSimple.test.ts +0 -52
- package/vona/src/suite-vendor/a-auth/modules/test-auth/tsconfig.build.json +0 -11
- package/vona/src/suite-vendor/a-auth/modules/test-auth/tsconfig.json +0 -7
- package/vona/src/suite-vendor/a-cabloy/modules/test-cabloy/package.json +0 -60
- package/vona/src/suite-vendor/a-cabloy/modules/test-cabloy/src/.metadata/index.ts +0 -103
- package/vona/src/suite-vendor/a-cabloy/modules/test-cabloy/src/.metadata/this.ts +0 -2
- package/vona/src/suite-vendor/a-cabloy/modules/test-cabloy/src/bean/meta.status.ts +0 -15
- package/vona/src/suite-vendor/a-cabloy/modules/test-cabloy/src/controller/status.ts +0 -44
- package/vona/src/suite-vendor/a-cabloy/modules/test-cabloy/src/index.ts +0 -1
- package/vona/src/suite-vendor/a-cabloy/modules/test-cabloy/test/datasource.test.ts +0 -51
- package/vona/src/suite-vendor/a-cabloy/modules/test-cabloy/test/socket.test.ts +0 -48
- package/vona/src/suite-vendor/a-cabloy/modules/test-cabloy/test/status.test.ts +0 -10
- package/vona/src/suite-vendor/a-cabloy/modules/test-cabloy/tsconfig.build.json +0 -11
- package/vona/src/suite-vendor/a-cabloy/modules/test-cabloy/tsconfig.json +0 -7
- package/vona/src/suite-vendor/a-cabloy/modules/test-rest/package.json +0 -63
- package/vona/src/suite-vendor/a-cabloy/modules/test-rest/src/.metadata/index.ts +0 -377
- package/vona/src/suite-vendor/a-cabloy/modules/test-rest/src/.metadata/locales.ts +0 -18
- package/vona/src/suite-vendor/a-cabloy/modules/test-rest/src/.metadata/this.ts +0 -2
- package/vona/src/suite-vendor/a-cabloy/modules/test-rest/src/bean/meta.version.ts +0 -49
- package/vona/src/suite-vendor/a-cabloy/modules/test-rest/src/bean/ssrMenu.product.ts +0 -26
- package/vona/src/suite-vendor/a-cabloy/modules/test-rest/src/config/locale/en-us.ts +0 -15
- package/vona/src/suite-vendor/a-cabloy/modules/test-rest/src/config/locale/zh-cn.ts +0 -15
- package/vona/src/suite-vendor/a-cabloy/modules/test-rest/src/controller/product.tsx +0 -64
- package/vona/src/suite-vendor/a-cabloy/modules/test-rest/src/dto/productCreate.tsx +0 -40
- package/vona/src/suite-vendor/a-cabloy/modules/test-rest/src/dto/productSelectReq.tsx +0 -25
- package/vona/src/suite-vendor/a-cabloy/modules/test-rest/src/dto/productSelectRes.tsx +0 -11
- package/vona/src/suite-vendor/a-cabloy/modules/test-rest/src/dto/productSelectResItem.tsx +0 -39
- package/vona/src/suite-vendor/a-cabloy/modules/test-rest/src/dto/productUpdate.tsx +0 -30
- package/vona/src/suite-vendor/a-cabloy/modules/test-rest/src/dto/productView.tsx +0 -25
- package/vona/src/suite-vendor/a-cabloy/modules/test-rest/src/entity/product.tsx +0 -65
- package/vona/src/suite-vendor/a-cabloy/modules/test-rest/src/index.ts +0 -2
- package/vona/src/suite-vendor/a-cabloy/modules/test-rest/src/model/product.ts +0 -10
- package/vona/src/suite-vendor/a-cabloy/modules/test-rest/src/service/product.ts +0 -37
- package/vona/src/suite-vendor/a-cabloy/modules/test-rest/test/permission.test.ts +0 -19
- package/vona/src/suite-vendor/a-cabloy/modules/test-rest/test/product.test.ts +0 -65
- package/vona/src/suite-vendor/a-cabloy/modules/test-rest/tsconfig.build.json +0 -11
- package/vona/src/suite-vendor/a-cabloy/modules/test-rest/tsconfig.json +0 -7
- package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/package.json +0 -60
- package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/src/.metadata/index.ts +0 -161
- package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/src/.metadata/locales.ts +0 -18
- package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/src/.metadata/this.ts +0 -2
- package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/src/config/locale/en-us.ts +0 -13
- package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/src/config/locale/zh-cn.ts +0 -11
- package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/src/controller/toolOne.ts +0 -43
- package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/src/controller/toolTwo.ts +0 -37
- package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/src/dto/testBody.ts +0 -10
- package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/src/dto/testDetail.ts +0 -21
- package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/src/dto/testParams.ts +0 -13
- package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/src/dto/testQuery.ts +0 -12
- package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/src/dto/testResult.tsx +0 -159
- package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/src/index.ts +0 -2
- package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/tsconfig.build.json +0 -11
- package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/tsconfig.json +0 -7
- package/vona/src/suite-vendor/a-captcha/modules/test-captcha/package.json +0 -52
- package/vona/src/suite-vendor/a-captcha/modules/test-captcha/src/.metadata/index.ts +0 -99
- package/vona/src/suite-vendor/a-captcha/modules/test-captcha/src/.metadata/this.ts +0 -2
- package/vona/src/suite-vendor/a-captcha/modules/test-captcha/src/controller/captcha.ts +0 -18
- package/vona/src/suite-vendor/a-captcha/modules/test-captcha/src/dto/signin.ts +0 -20
- package/vona/src/suite-vendor/a-captcha/modules/test-captcha/src/index.ts +0 -1
- package/vona/src/suite-vendor/a-captcha/modules/test-captcha/test/captcha.test.ts +0 -148
- package/vona/src/suite-vendor/a-captcha/modules/test-captcha/tsconfig.build.json +0 -11
- package/vona/src/suite-vendor/a-captcha/modules/test-captcha/tsconfig.json +0 -7
- package/vona/src/suite-vendor/a-vona/modules/test-vona/assets/img/vona.png +0 -0
- package/vona/src/suite-vendor/a-vona/modules/test-vona/assets/static/img/vona.png +0 -0
- package/vona/src/suite-vendor/a-vona/modules/test-vona/assets/static/img/vona.svg +0 -3
- package/vona/src/suite-vendor/a-vona/modules/test-vona/package.json +0 -61
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/.metadata/index.ts +0 -2181
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/.metadata/locales.ts +0 -18
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/.metadata/this.ts +0 -2
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/bean/aop.regExp.ts +0 -34
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/bean/aop.simple.ts +0 -80
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/bean/aopMethod.test.ts +0 -63
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/bean/bean.testCtx.ts +0 -59
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/bean/broadcast.test.ts +0 -24
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/bean/cacheMem.test.ts +0 -7
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/bean/cacheRedis.post.ts +0 -11
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/bean/cacheRedis.test.ts +0 -7
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/bean/event.helloEcho.ts +0 -13
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/bean/eventListener.helloEcho.ts +0 -24
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/bean/meta.asset.ts +0 -10
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/bean/meta.static.ts +0 -7
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/bean/meta.version.ts +0 -108
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/bean/queue.test.ts +0 -25
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/bean/schedule.test.ts +0 -13
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/bean/schedule.test3.ts +0 -13
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/bean/serializerTransform.email.ts +0 -35
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/bean/summerCache.caching.ts +0 -36
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/bean/summerCache.test.ts +0 -36
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/config/config.ts +0 -5
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/config/locale/en-us.ts +0 -21
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/config/locale/zh-cn.ts +0 -19
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/controller/bean.ts +0 -103
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/controller/cacheMem.ts +0 -64
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/controller/cacheRedis.ts +0 -56
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/controller/dtoTest.ts +0 -61
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/controller/guardPassport.ts +0 -26
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/controller/onion.ts +0 -103
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/controller/order.ts +0 -56
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/controller/passport.ts +0 -49
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/controller/performAction.ts +0 -19
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/controller/post.ts +0 -59
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/controller/queue.ts +0 -27
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/controller/serializer.ts +0 -40
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/controller/summer.ts +0 -130
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/controller/tail.ts +0 -33
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/controller/transaction.ts +0 -30
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/controller/upload.ts +0 -61
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/dto/categoryTree.ts +0 -9
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/dto/orderCreate.ts +0 -13
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/dto/orderQuery.ts +0 -25
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/dto/orderQueryPage.ts +0 -24
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/dto/orderSelectRes.ts +0 -11
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/dto/orderSelectResItem.ts +0 -11
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/dto/orderUpdate.ts +0 -13
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/dto/postAggregate.ts +0 -17
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/dto/postCreate.ts +0 -11
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/dto/postGroup.ts +0 -14
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/dto/postSelectReq.ts +0 -36
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/dto/postSelectRes.ts +0 -11
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/dto/postSelectResItem.tsx +0 -28
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/dto/profile.ts +0 -15
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/dto/roleLazy.ts +0 -17
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/dto/serializerArray.ts +0 -39
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/dto/serializerLazy.ts +0 -31
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/dto/serializerSimple.ts +0 -112
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/dto/user.ts +0 -21
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/dto/userCreate.ts +0 -11
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/dto/userLazy.ts +0 -20
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/dto/userUpdate.ts +0 -9
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/entity/category.ts +0 -16
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/entity/order.ts +0 -21
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/entity/post.ts +0 -21
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/entity/postContent.ts +0 -16
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/entity/product.ts +0 -27
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/entity/role.ts +0 -12
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/entity/roleUser.ts +0 -16
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/entity/test.ts +0 -24
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/entity/user.ts +0 -18
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/index.ts +0 -4
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/lib/index.ts +0 -1
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/lib/serializer.ts +0 -9
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/model/category.ts +0 -22
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/model/categoryChain.ts +0 -23
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/model/order.ts +0 -33
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/model/orderStats.ts +0 -29
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/model/post.ts +0 -23
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/model/postContent.ts +0 -23
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/model/product.ts +0 -10
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/model/role.ts +0 -23
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/model/roleUser.ts +0 -10
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/model/test.ts +0 -10
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/model/testDynamicTable.ts +0 -23
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/model/user.ts +0 -30
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/model/userStats.ts +0 -22
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/model/userStatsGroup.ts +0 -36
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/service/aopMethod.ts +0 -38
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/service/caching.ts +0 -89
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/service/category.ts +0 -153
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/service/order.ts +0 -67
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/service/post.ts +0 -280
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/service/product.ts +0 -5
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/service/test.ts +0 -9
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/service/testApp.ts +0 -13
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/service/testClass.ts +0 -15
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/service/testData.ts +0 -71
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/service/transaction.ts +0 -20
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/service/user.ts +0 -124
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/types/index.ts +0 -6
- package/vona/src/suite-vendor/a-vona/modules/test-vona/test/aopMethod.test.ts +0 -21
- package/vona/src/suite-vendor/a-vona/modules/test-vona/test/bean.test.ts +0 -16
- package/vona/src/suite-vendor/a-vona/modules/test-vona/test/broadcast.test.ts +0 -17
- package/vona/src/suite-vendor/a-vona/modules/test-vona/test/cache/cacheMem.test.ts +0 -10
- package/vona/src/suite-vendor/a-vona/modules/test-vona/test/cache/cacheRedis.test.ts +0 -10
- package/vona/src/suite-vendor/a-vona/modules/test-vona/test/cache/caching.test.ts +0 -61
- package/vona/src/suite-vendor/a-vona/modules/test-vona/test/cache/summer.test.ts +0 -10
- package/vona/src/suite-vendor/a-vona/modules/test-vona/test/database/database.test.ts +0 -132
- package/vona/src/suite-vendor/a-vona/modules/test-vona/test/database/dtoAggregate.test.ts +0 -44
- package/vona/src/suite-vendor/a-vona/modules/test-vona/test/database/dtoGet.test.ts +0 -82
- package/vona/src/suite-vendor/a-vona/modules/test-vona/test/database/dtoGroup.test.ts +0 -44
- package/vona/src/suite-vendor/a-vona/modules/test-vona/test/database/dtoLazy.test.ts +0 -53
- package/vona/src/suite-vendor/a-vona/modules/test-vona/test/database/dtoMutate.test.ts +0 -56
- package/vona/src/suite-vendor/a-vona/modules/test-vona/test/database/dtoQuery.test.ts +0 -70
- package/vona/src/suite-vendor/a-vona/modules/test-vona/test/database/modelAggregate.test.ts +0 -222
- package/vona/src/suite-vendor/a-vona/modules/test-vona/test/database/modelCache.test.ts +0 -37
- package/vona/src/suite-vendor/a-vona/modules/test-vona/test/database/modelGeneral.test.ts +0 -18
- package/vona/src/suite-vendor/a-vona/modules/test-vona/test/database/modelGroup.test.ts +0 -248
- package/vona/src/suite-vendor/a-vona/modules/test-vona/test/database/modelMagic.test.ts +0 -37
- package/vona/src/suite-vendor/a-vona/modules/test-vona/test/database/modelRelations.test.ts +0 -215
- package/vona/src/suite-vendor/a-vona/modules/test-vona/test/database/modelRelationsJoins.test.ts +0 -58
- package/vona/src/suite-vendor/a-vona/modules/test-vona/test/database/modelRelationsMutate.test.ts +0 -436
- package/vona/src/suite-vendor/a-vona/modules/test-vona/test/database/modelWhere.test.ts +0 -173
- package/vona/src/suite-vendor/a-vona/modules/test-vona/test/database/orm.test.ts +0 -22
- package/vona/src/suite-vendor/a-vona/modules/test-vona/test/database/transaction.test.ts +0 -142
- package/vona/src/suite-vendor/a-vona/modules/test-vona/test/event.test.ts +0 -14
- package/vona/src/suite-vendor/a-vona/modules/test-vona/test/guardPassport.test.ts +0 -48
- package/vona/src/suite-vendor/a-vona/modules/test-vona/test/instance.test.ts +0 -35
- package/vona/src/suite-vendor/a-vona/modules/test-vona/test/jwt.test.ts +0 -28
- package/vona/src/suite-vendor/a-vona/modules/test-vona/test/locale.test.ts +0 -64
- package/vona/src/suite-vendor/a-vona/modules/test-vona/test/mail.test.ts +0 -14
- package/vona/src/suite-vendor/a-vona/modules/test-vona/test/passport.test.ts +0 -69
- package/vona/src/suite-vendor/a-vona/modules/test-vona/test/queue.test.ts +0 -11
- package/vona/src/suite-vendor/a-vona/modules/test-vona/test/runtime.test.ts +0 -24
- package/vona/src/suite-vendor/a-vona/modules/test-vona/test/serializer.test.ts +0 -82
- package/vona/src/suite-vendor/a-vona/modules/test-vona/test/static.test.ts +0 -22
- package/vona/src/suite-vendor/a-vona/modules/test-vona/test/tail.test.ts +0 -21
- package/vona/src/suite-vendor/a-vona/modules/test-vona/test/upload.test.ts +0 -75
- package/vona/src/suite-vendor/a-vona/modules/test-vona/test/utils/cabloyUtils.test.ts +0 -19
- package/vona/src/suite-vendor/a-vona/modules/test-vona/test/utils/celjs.test.ts +0 -64
- package/vona/src/suite-vendor/a-vona/modules/test-vona/test/utils/mappedTypes.test.ts +0 -73
- package/vona/src/suite-vendor/a-vona/modules/test-vona/test/utils/performAction.test.ts +0 -28
- package/vona/src/suite-vendor/a-vona/modules/test-vona/tsconfig.build.json +0 -11
- package/vona/src/suite-vendor/a-vona/modules/test-vona/tsconfig.json +0 -7
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import type { TypeLocaleBase } from 'vona';
|
|
2
|
-
|
|
3
|
-
import { $makeLocaleMagic } from 'vona';
|
|
4
|
-
|
|
5
|
-
import locale_en_us from '../config/locale/en-us.ts';
|
|
6
|
-
import locale_zh_cn from '../config/locale/zh-cn.ts';
|
|
7
|
-
|
|
8
|
-
export const locales = {
|
|
9
|
-
'en-us': locale_en_us,
|
|
10
|
-
'zh-cn': locale_zh_cn,
|
|
11
|
-
};
|
|
12
|
-
|
|
13
|
-
export function $locale<K extends keyof (typeof locales)[TypeLocaleBase]>(
|
|
14
|
-
key: K,
|
|
15
|
-
...args: any[]
|
|
16
|
-
): any {
|
|
17
|
-
return $makeLocaleMagic(`test-vona::${key}`, ...args);
|
|
18
|
-
}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import type { AopAction, AopActionGetter, AopActionSetter } from 'vona-module-a-aspect';
|
|
2
|
-
|
|
3
|
-
import { BeanAopBase } from 'vona';
|
|
4
|
-
import { Aop } from 'vona-module-a-aspect';
|
|
5
|
-
|
|
6
|
-
import type { BeanTestCtx } from './bean.testCtx.ts';
|
|
7
|
-
|
|
8
|
-
@Aop({ match: [/^test-vona\.service\.test\w+$/, 'testCtx'], meta: { mode: ['test', 'dev'] } })
|
|
9
|
-
export class AopRegExp extends BeanAopBase {
|
|
10
|
-
protected __get_name__: AopActionGetter<BeanTestCtx, 'name'> = function (next, _receiver) {
|
|
11
|
-
const value = next();
|
|
12
|
-
return `${value}:regexpaop`;
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
protected __set_name__: AopActionSetter<BeanTestCtx, 'name'> = function (value, next, _receiver) {
|
|
16
|
-
const parts = value.split(':');
|
|
17
|
-
const index = parts.indexOf('regexpaop');
|
|
18
|
-
if (index > -1) {
|
|
19
|
-
parts.splice(index, 1);
|
|
20
|
-
}
|
|
21
|
-
value = parts.join(':');
|
|
22
|
-
return next(value);
|
|
23
|
-
};
|
|
24
|
-
|
|
25
|
-
actionSync: AopAction<BeanTestCtx, 'actionSync', string> = (_args, next, _receiver) => {
|
|
26
|
-
const result = next();
|
|
27
|
-
return `${result}:regexpaop`;
|
|
28
|
-
};
|
|
29
|
-
|
|
30
|
-
actionAsync: AopAction<BeanTestCtx, 'actionAsync', string> = async (_args, next, _receiver) => {
|
|
31
|
-
const result = await next();
|
|
32
|
-
return `${result}:regexpaop`;
|
|
33
|
-
};
|
|
34
|
-
}
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
AopAction,
|
|
3
|
-
AopActionDispose,
|
|
4
|
-
AopActionGet,
|
|
5
|
-
AopActionGetter,
|
|
6
|
-
AopActionInit,
|
|
7
|
-
AopActionSet,
|
|
8
|
-
AopActionSetter,
|
|
9
|
-
} from 'vona-module-a-aspect';
|
|
10
|
-
import type { BeanTestCtx } from 'vona-module-test-vona';
|
|
11
|
-
|
|
12
|
-
import { BeanAopBase } from 'vona';
|
|
13
|
-
import { Aop } from 'vona-module-a-aspect';
|
|
14
|
-
|
|
15
|
-
declare module 'vona-module-test-vona' {
|
|
16
|
-
export interface BeanTestCtx {
|
|
17
|
-
magic: string;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
class AopSimpleBase extends BeanAopBase {
|
|
22
|
-
actionSync: AopAction<BeanTestCtx, 'actionSync', string> = (_args, next, _receiver) => {
|
|
23
|
-
const result = next();
|
|
24
|
-
return `${result}:simpleaop`;
|
|
25
|
-
};
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
@Aop({ match: 'testCtx', dependencies: 'test-vona:regExp', meta: { mode: ['test', 'dev'] } })
|
|
29
|
-
export class AopSimple extends AopSimpleBase {
|
|
30
|
-
protected __get__: AopActionGet<BeanTestCtx> = (prop, next, _receiver) => {
|
|
31
|
-
const value = next();
|
|
32
|
-
if (prop === 'magic') {
|
|
33
|
-
return 'magic:simpleaop';
|
|
34
|
-
}
|
|
35
|
-
// if (prop === 'name') {
|
|
36
|
-
// return `${value}:simpleaop`;
|
|
37
|
-
// }
|
|
38
|
-
return value;
|
|
39
|
-
};
|
|
40
|
-
|
|
41
|
-
protected __set__: AopActionSet<BeanTestCtx> = (_prop, value, next, _receiver) => {
|
|
42
|
-
// if (prop === 'name') {
|
|
43
|
-
// const parts = value.split(':');
|
|
44
|
-
// const index = parts.indexOf('simpleaop');
|
|
45
|
-
// if (index > -1) {
|
|
46
|
-
// parts.splice(index, 1);
|
|
47
|
-
// }
|
|
48
|
-
// value = parts.join(':');
|
|
49
|
-
// }
|
|
50
|
-
return next(value);
|
|
51
|
-
};
|
|
52
|
-
|
|
53
|
-
protected __get_name__: AopActionGetter<BeanTestCtx, 'name'> = function (next, _receiver) {
|
|
54
|
-
const value = next();
|
|
55
|
-
return `${value}:simpleaop`;
|
|
56
|
-
};
|
|
57
|
-
|
|
58
|
-
protected __set_name__: AopActionSetter<BeanTestCtx, 'name'> = function (value, next, _receiver) {
|
|
59
|
-
const parts = value.split(':');
|
|
60
|
-
const index = parts.indexOf('simpleaop');
|
|
61
|
-
if (index > -1) {
|
|
62
|
-
parts.splice(index, 1);
|
|
63
|
-
}
|
|
64
|
-
value = parts.join(':');
|
|
65
|
-
return next(value);
|
|
66
|
-
};
|
|
67
|
-
|
|
68
|
-
protected __init__: AopActionInit<BeanTestCtx> = (_args, next, _receiver) => {
|
|
69
|
-
next();
|
|
70
|
-
};
|
|
71
|
-
|
|
72
|
-
protected __dispose__: AopActionDispose<BeanTestCtx> = async (_args, next, _receiver) => {
|
|
73
|
-
await next();
|
|
74
|
-
};
|
|
75
|
-
|
|
76
|
-
actionAsync: AopAction<BeanTestCtx, 'actionAsync', string> = async (_args, next, _receiver) => {
|
|
77
|
-
const result = await next(_args);
|
|
78
|
-
return `${result}:simpleaop`;
|
|
79
|
-
};
|
|
80
|
-
}
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import type { Next, NextSync } from 'vona';
|
|
2
|
-
import type {
|
|
3
|
-
IAopMethodExecute,
|
|
4
|
-
IAopMethodGet,
|
|
5
|
-
IAopMethodSet,
|
|
6
|
-
IDecoratorAopMethodOptions,
|
|
7
|
-
} from 'vona-module-a-aspect';
|
|
8
|
-
|
|
9
|
-
import { BeanAopMethodBase } from 'vona';
|
|
10
|
-
import { AopMethod } from 'vona-module-a-aspect';
|
|
11
|
-
|
|
12
|
-
export interface IAopMethodOptionsTest extends IDecoratorAopMethodOptions {
|
|
13
|
-
wrapper: string;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
@AopMethod<IAopMethodOptionsTest>({ wrapper: '' })
|
|
17
|
-
export class AopMethodTest
|
|
18
|
-
extends BeanAopMethodBase
|
|
19
|
-
implements IAopMethodGet, IAopMethodSet, IAopMethodExecute
|
|
20
|
-
{
|
|
21
|
-
get(options: IAopMethodOptionsTest, next: NextSync, _receiver: any, _prop: string): string {
|
|
22
|
-
const res = next();
|
|
23
|
-
return this._wrapper(options.wrapper, res);
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
set(
|
|
27
|
-
options: IAopMethodOptionsTest,
|
|
28
|
-
value: string,
|
|
29
|
-
next: NextSync,
|
|
30
|
-
_receiver: any,
|
|
31
|
-
_prop: string,
|
|
32
|
-
): boolean {
|
|
33
|
-
return next(this._unwrapper(options.wrapper, value));
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
execute(
|
|
37
|
-
options: IAopMethodOptionsTest,
|
|
38
|
-
_args: [],
|
|
39
|
-
next: Next | NextSync,
|
|
40
|
-
_receiver: any,
|
|
41
|
-
_prop: string,
|
|
42
|
-
): Promise<string> | string {
|
|
43
|
-
const res = next();
|
|
44
|
-
if (res?.then) {
|
|
45
|
-
return res.then(res => {
|
|
46
|
-
return this._wrapper(options.wrapper, res);
|
|
47
|
-
});
|
|
48
|
-
}
|
|
49
|
-
return this._wrapper(options.wrapper, res);
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
_wrapper(wrapper: string, data: string) {
|
|
53
|
-
return `${wrapper}${data}${wrapper}`;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
_unwrapper(wrapper: string, data: string) {
|
|
57
|
-
let index = data.indexOf(wrapper);
|
|
58
|
-
if (index === 0) data = data.substring(wrapper.length);
|
|
59
|
-
index = data.lastIndexOf(wrapper);
|
|
60
|
-
if (index === data.length - wrapper.length) data = data.substring(0, index);
|
|
61
|
-
return data;
|
|
62
|
-
}
|
|
63
|
-
}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { BeanBase } from 'vona';
|
|
2
|
-
import { Bean } from 'vona-module-a-bean';
|
|
3
|
-
|
|
4
|
-
class TestCtx0 extends BeanBase {
|
|
5
|
-
private _name: string;
|
|
6
|
-
|
|
7
|
-
protected __init__(moduleName: string) {
|
|
8
|
-
this._name = moduleName;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
protected async __dispose__() {
|
|
12
|
-
this._name = '';
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
protected __get__(prop: string) {
|
|
16
|
-
if (prop === 'magicSelf') {
|
|
17
|
-
return this['magic:self'];
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
protected __set__(prop: string, value: any): boolean {
|
|
22
|
-
if (prop === 'magicSelf') {
|
|
23
|
-
this['magic:self'] = value;
|
|
24
|
-
return true;
|
|
25
|
-
}
|
|
26
|
-
return false;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
get name() {
|
|
30
|
-
return this._name;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
set name(value) {
|
|
34
|
-
this._name = value;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
actionSync({ a, b }: { a: number; b: number }) {
|
|
38
|
-
return a + b;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
async actionAsync({ a, b }: { a: number; b: number }) {
|
|
42
|
-
return Promise.resolve(a + b);
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
async actionAsync2({ a, b }: { a: number; b: number }) {
|
|
46
|
-
const name = this.name;
|
|
47
|
-
const value = await this.actionAsync({ a, b });
|
|
48
|
-
return `${name}:${value}`;
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
class TestCtx1 extends TestCtx0 {
|
|
53
|
-
async actionAsync3({ a, b }: { a: number; b: number }) {
|
|
54
|
-
return await this.actionAsync2({ a, b });
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
@Bean()
|
|
59
|
-
export class BeanTestCtx extends TestCtx1 {}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import type { IBroadcastExecute } from 'vona-module-a-broadcast';
|
|
2
|
-
|
|
3
|
-
import assert from 'node:assert';
|
|
4
|
-
import { BeanBroadcastBase, Broadcast } from 'vona-module-a-broadcast';
|
|
5
|
-
|
|
6
|
-
export interface TypeBroadcastTestJobData {
|
|
7
|
-
message: string;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
@Broadcast()
|
|
11
|
-
export class BroadcastTest
|
|
12
|
-
extends BeanBroadcastBase<TypeBroadcastTestJobData>
|
|
13
|
-
implements IBroadcastExecute<TypeBroadcastTestJobData>
|
|
14
|
-
{
|
|
15
|
-
async execute(data: TypeBroadcastTestJobData, isEmitter?: boolean) {
|
|
16
|
-
if (!isEmitter) {
|
|
17
|
-
// do something
|
|
18
|
-
}
|
|
19
|
-
// locale
|
|
20
|
-
assert.equal(this.ctx.locale, 'zh-cn');
|
|
21
|
-
// data
|
|
22
|
-
assert.equal(data.message, 'hello');
|
|
23
|
-
}
|
|
24
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { BeanCacheMemBase, CacheMem } from 'vona-module-a-cache';
|
|
2
|
-
|
|
3
|
-
export type TCacheMemTestKey = '__immutable__' | undefined;
|
|
4
|
-
export type TCacheMemTestData = { name: string } | string;
|
|
5
|
-
|
|
6
|
-
@CacheMem({ ttl: 1 * 1000 })
|
|
7
|
-
export class CacheMemTest extends BeanCacheMemBase<TCacheMemTestKey, TCacheMemTestData> {}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { TableIdentity } from 'table-identity';
|
|
2
|
-
|
|
3
|
-
import { BeanCacheRedisBase, CacheRedis } from 'vona-module-a-cache';
|
|
4
|
-
|
|
5
|
-
import type { EntityPost } from '../entity/post.ts';
|
|
6
|
-
|
|
7
|
-
export type TCacheRedisPostKey = TableIdentity;
|
|
8
|
-
export type TCacheRedisPostData = Partial<EntityPost>;
|
|
9
|
-
|
|
10
|
-
@CacheRedis()
|
|
11
|
-
export class CacheRedisPost extends BeanCacheRedisBase<TCacheRedisPostKey, TCacheRedisPostData> {}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { BeanCacheRedisBase, CacheRedis } from 'vona-module-a-cache';
|
|
2
|
-
|
|
3
|
-
export type TCacheRedisTestKey = any;
|
|
4
|
-
export type TCacheRedisTestData = string;
|
|
5
|
-
|
|
6
|
-
@CacheRedis({ ttl: 1 * 1000 })
|
|
7
|
-
export class CacheRedisTest extends BeanCacheRedisBase<TCacheRedisTestKey, TCacheRedisTestData> {}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { BeanEventBase, Event } from 'vona-module-a-event';
|
|
2
|
-
|
|
3
|
-
export interface TypeEventHelloEchoData {
|
|
4
|
-
text: string;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
export type TypeEventHelloEchoResult = string;
|
|
8
|
-
|
|
9
|
-
@Event()
|
|
10
|
-
export class EventHelloEcho extends BeanEventBase<
|
|
11
|
-
TypeEventHelloEchoData,
|
|
12
|
-
TypeEventHelloEchoResult
|
|
13
|
-
> {}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import type { IEventExecute, NextEvent } from 'vona-module-a-event';
|
|
2
|
-
|
|
3
|
-
import { BeanBase } from 'vona';
|
|
4
|
-
import { EventListener } from 'vona-module-a-event';
|
|
5
|
-
|
|
6
|
-
import type { TypeEventHelloEchoData, TypeEventHelloEchoResult } from './event.helloEcho.ts';
|
|
7
|
-
|
|
8
|
-
type TypeEventData = TypeEventHelloEchoData;
|
|
9
|
-
type TypeEventResult = TypeEventHelloEchoResult;
|
|
10
|
-
|
|
11
|
-
@EventListener({ match: 'test-vona:helloEcho' })
|
|
12
|
-
export class EventListenerHelloEcho
|
|
13
|
-
extends BeanBase
|
|
14
|
-
implements IEventExecute<TypeEventData, TypeEventResult>
|
|
15
|
-
{
|
|
16
|
-
async execute(
|
|
17
|
-
data: TypeEventData,
|
|
18
|
-
next: NextEvent<TypeEventData, TypeEventResult>,
|
|
19
|
-
): Promise<TypeEventResult> {
|
|
20
|
-
// next
|
|
21
|
-
const result = await next();
|
|
22
|
-
return `${data.text} ${result}`;
|
|
23
|
-
}
|
|
24
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { Meta } from 'vona-module-a-meta';
|
|
2
|
-
import { BeanAssetBase } from 'vona-module-a-static';
|
|
3
|
-
|
|
4
|
-
export interface IAssetGetPath {
|
|
5
|
-
static: 'img/vona.svg' | 'img/vona.png';
|
|
6
|
-
img: 'vona.png';
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
@Meta()
|
|
10
|
-
export class MetaAsset extends BeanAssetBase<IAssetGetPath> {}
|
|
@@ -1,108 +0,0 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
IMetaVersionTest,
|
|
3
|
-
IMetaVersionTestOptions,
|
|
4
|
-
IMetaVersionUpdate,
|
|
5
|
-
IMetaVersionUpdateOptions,
|
|
6
|
-
} from 'vona-module-a-version';
|
|
7
|
-
|
|
8
|
-
import { BeanBase } from 'vona';
|
|
9
|
-
import { Meta } from 'vona-module-a-meta';
|
|
10
|
-
|
|
11
|
-
@Meta()
|
|
12
|
-
export class MetaVersion extends BeanBase implements IMetaVersionUpdate, IMetaVersionTest {
|
|
13
|
-
async update(options: IMetaVersionUpdateOptions) {
|
|
14
|
-
if (options.version === 1) {
|
|
15
|
-
// testVonaTest
|
|
16
|
-
const entityTest = this.scope.entity.test;
|
|
17
|
-
await this.bean.model.createTable(entityTest.$table, table => {
|
|
18
|
-
table.comment(entityTest.$comment.$table);
|
|
19
|
-
table.basicFields();
|
|
20
|
-
table.string(entityTest.title, 255).comment(entityTest.$comment.title);
|
|
21
|
-
table.string(entityTest.description, 255);
|
|
22
|
-
});
|
|
23
|
-
// testVonaUser
|
|
24
|
-
const entityUser = this.scope.entity.user;
|
|
25
|
-
await this.bean.model.createTable(entityUser.$table, table => {
|
|
26
|
-
table.basicFields();
|
|
27
|
-
table.string(entityUser.name, 255);
|
|
28
|
-
table.integer(entityUser.age);
|
|
29
|
-
table.integer(entityUser.scores);
|
|
30
|
-
});
|
|
31
|
-
// testVonaRole
|
|
32
|
-
const entityRole = this.scope.entity.role;
|
|
33
|
-
await this.bean.model.createTable(entityRole.$table, table => {
|
|
34
|
-
table.basicFields();
|
|
35
|
-
table.string(entityRole.name, 255);
|
|
36
|
-
});
|
|
37
|
-
// testVonaRoleUser
|
|
38
|
-
const entityRoleUser = this.scope.entity.roleUser;
|
|
39
|
-
await this.bean.model.createTable(entityRoleUser.$table, table => {
|
|
40
|
-
table.basicFields();
|
|
41
|
-
table.tableIdentity(entityRoleUser.userId);
|
|
42
|
-
table.tableIdentity(entityRoleUser.roleId);
|
|
43
|
-
});
|
|
44
|
-
// testVonaPost
|
|
45
|
-
const entityPost = this.scope.entity.post;
|
|
46
|
-
await this.bean.model.createTable(entityPost.$table, table => {
|
|
47
|
-
table.basicFields();
|
|
48
|
-
table.string(entityPost.title, 255);
|
|
49
|
-
table.userId();
|
|
50
|
-
table.integer(entityPost.stars);
|
|
51
|
-
});
|
|
52
|
-
// testVonaPostContent
|
|
53
|
-
const entityPostContent = this.scope.entity.postContent;
|
|
54
|
-
await this.bean.model.createTable(entityPostContent.$table, table => {
|
|
55
|
-
table.basicFields();
|
|
56
|
-
table.text(entityPostContent.content);
|
|
57
|
-
table.tableIdentity(entityPostContent.postId);
|
|
58
|
-
});
|
|
59
|
-
// testVonaCategory
|
|
60
|
-
const entityCategory = this.scope.entity.category;
|
|
61
|
-
await this.bean.model.createTable(entityCategory.$table, table => {
|
|
62
|
-
table.basicFields();
|
|
63
|
-
table.string(entityCategory.name, 255);
|
|
64
|
-
table.tableIdentity(entityCategory.categoryIdParent);
|
|
65
|
-
});
|
|
66
|
-
// order
|
|
67
|
-
const entityOrder = this.scope.entity.order;
|
|
68
|
-
await this.bean.model.createTable(entityOrder.$table, table => {
|
|
69
|
-
table.comment(entityOrder.$comment.$table);
|
|
70
|
-
table.basicFields();
|
|
71
|
-
table
|
|
72
|
-
.string(entityOrder.orderNo, 50)
|
|
73
|
-
.defaultTo(entityOrder.$default.orderNo)
|
|
74
|
-
.comment(entityOrder.$comment.orderNo);
|
|
75
|
-
table.string(entityOrder.remark, 255).comment(entityOrder.$comment.remark);
|
|
76
|
-
table.tableIdentity(entityOrder.userId);
|
|
77
|
-
});
|
|
78
|
-
// product
|
|
79
|
-
const entityProduct = this.scope.entity.product;
|
|
80
|
-
await this.bean.model.createTable(entityProduct.$table, table => {
|
|
81
|
-
table.basicFields();
|
|
82
|
-
table.string(entityProduct.name, 50).comment(entityProduct.$comment.name);
|
|
83
|
-
table.integer(entityProduct.price);
|
|
84
|
-
table.integer(entityProduct.quantity);
|
|
85
|
-
table.integer(entityProduct.amount);
|
|
86
|
-
table.tableIdentity(entityProduct.orderId);
|
|
87
|
-
});
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
async test(_options: IMetaVersionTestOptions) {
|
|
92
|
-
// user: Kevin
|
|
93
|
-
const userKevin = await this.scope.model.user.insert({ name: 'Kevin' });
|
|
94
|
-
// create: post/postContent
|
|
95
|
-
await this.scope.model.post.insert(
|
|
96
|
-
{
|
|
97
|
-
title: 'test:post001',
|
|
98
|
-
postContent: {
|
|
99
|
-
content: 'this is a test post!',
|
|
100
|
-
},
|
|
101
|
-
userId: userKevin?.id,
|
|
102
|
-
},
|
|
103
|
-
{
|
|
104
|
-
include: { postContent: true },
|
|
105
|
-
},
|
|
106
|
-
);
|
|
107
|
-
}
|
|
108
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import type { IQueueExecute, IQueuePushOptions } from 'vona-module-a-queue';
|
|
2
|
-
|
|
3
|
-
import { BeanQueueBase, Queue } from 'vona-module-a-queue';
|
|
4
|
-
|
|
5
|
-
export interface TypeQueueTestJobData {
|
|
6
|
-
a: number;
|
|
7
|
-
b: number;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export type TypeQueueTestJobResult = number;
|
|
11
|
-
|
|
12
|
-
@Queue()
|
|
13
|
-
export class QueueTest
|
|
14
|
-
extends BeanQueueBase<TypeQueueTestJobData, TypeQueueTestJobResult>
|
|
15
|
-
implements IQueueExecute<TypeQueueTestJobData, TypeQueueTestJobResult>
|
|
16
|
-
{
|
|
17
|
-
async execute(
|
|
18
|
-
data: TypeQueueTestJobData,
|
|
19
|
-
_options?: IQueuePushOptions,
|
|
20
|
-
): Promise<TypeQueueTestJobResult> {
|
|
21
|
-
const res = data.a + data.b;
|
|
22
|
-
this.$logger.silly(`queue test worker done: ${data.a} + ${data.b} = ${res}`);
|
|
23
|
-
return res;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { IScheduleExecute, TypeScheduleJob } from 'vona-module-a-schedule';
|
|
2
|
-
|
|
3
|
-
import { BeanBase } from 'vona';
|
|
4
|
-
import { Schedule } from 'vona-module-a-schedule';
|
|
5
|
-
|
|
6
|
-
@Schedule({ enable: false, repeat: { every: 3000 } })
|
|
7
|
-
export class ScheduleTest extends BeanBase implements IScheduleExecute {
|
|
8
|
-
async execute(job?: TypeScheduleJob) {
|
|
9
|
-
this.$logger.silly(
|
|
10
|
-
`Schedule Test: iid=${this.ctx.instance.id}, every=${job?.data.options?.jobOptions?.repeat?.every}, ${new Date()}`,
|
|
11
|
-
);
|
|
12
|
-
}
|
|
13
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { IScheduleExecute, TypeScheduleJob } from 'vona-module-a-schedule';
|
|
2
|
-
|
|
3
|
-
import { BeanBase } from 'vona';
|
|
4
|
-
import { Schedule } from 'vona-module-a-schedule';
|
|
5
|
-
|
|
6
|
-
@Schedule({ enable: false, repeat: { every: 5000 } })
|
|
7
|
-
export class ScheduleTest3 extends BeanBase implements IScheduleExecute {
|
|
8
|
-
async execute(job?: TypeScheduleJob) {
|
|
9
|
-
this.$logger.silly(
|
|
10
|
-
`Schedule Test3: iid=${this.ctx.instance.id}, every=${job?.data.options?.jobOptions?.repeat?.every}, ${new Date()}`,
|
|
11
|
-
);
|
|
12
|
-
}
|
|
13
|
-
}
|
package/vona/src/suite-vendor/a-vona/modules/test-vona/src/bean/serializerTransform.email.ts
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
IDecoratorSerializerTransformOptions,
|
|
3
|
-
ISerializerTransform,
|
|
4
|
-
} from 'vona-module-a-serialization';
|
|
5
|
-
|
|
6
|
-
import { BeanBase } from 'vona';
|
|
7
|
-
import { SerializerTransform } from 'vona-module-a-serialization';
|
|
8
|
-
|
|
9
|
-
export type TypeSerializerTransformEmailValue = string | undefined;
|
|
10
|
-
|
|
11
|
-
export type TypeSerializerTransformEmailData = unknown;
|
|
12
|
-
|
|
13
|
-
export type TypeSerializerTransformEmailResult = TypeSerializerTransformEmailValue;
|
|
14
|
-
|
|
15
|
-
export interface ISerializerTransformOptionsEmail extends IDecoratorSerializerTransformOptions {}
|
|
16
|
-
|
|
17
|
-
@SerializerTransform<ISerializerTransformOptionsEmail>()
|
|
18
|
-
export class SerializerTransformEmail
|
|
19
|
-
extends BeanBase
|
|
20
|
-
implements
|
|
21
|
-
ISerializerTransform<
|
|
22
|
-
TypeSerializerTransformEmailValue,
|
|
23
|
-
TypeSerializerTransformEmailData,
|
|
24
|
-
TypeSerializerTransformEmailResult
|
|
25
|
-
>
|
|
26
|
-
{
|
|
27
|
-
async transform(
|
|
28
|
-
value: TypeSerializerTransformEmailValue,
|
|
29
|
-
_data: TypeSerializerTransformEmailData,
|
|
30
|
-
_options: ISerializerTransformOptionsEmail,
|
|
31
|
-
): Promise<TypeSerializerTransformEmailResult> {
|
|
32
|
-
// eslint-disable-next-line
|
|
33
|
-
return value?.replace(/(\w?)(\w+)(\w)(@\w+\.[a-z]+)/, '$1****$3$4');
|
|
34
|
-
}
|
|
35
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import type { ISummerCacheGet, TSummerCacheActionOptions } from 'vona-module-a-summer';
|
|
2
|
-
|
|
3
|
-
import { BeanSummerCacheBase, SummerCache } from 'vona-module-a-summer';
|
|
4
|
-
|
|
5
|
-
export interface TSummerCacheCachingKey {
|
|
6
|
-
id: number;
|
|
7
|
-
}
|
|
8
|
-
export interface TSummerCacheCachingData {
|
|
9
|
-
id: number;
|
|
10
|
-
name: string;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
@SummerCache({
|
|
14
|
-
mode: 'all',
|
|
15
|
-
mem: {
|
|
16
|
-
max: 2,
|
|
17
|
-
ttl: 1 * 1000,
|
|
18
|
-
},
|
|
19
|
-
redis: {
|
|
20
|
-
ttl: 3 * 1000,
|
|
21
|
-
},
|
|
22
|
-
})
|
|
23
|
-
export class SummerCacheCaching
|
|
24
|
-
extends BeanSummerCacheBase<TSummerCacheCachingKey, TSummerCacheCachingData>
|
|
25
|
-
implements ISummerCacheGet<TSummerCacheCachingKey, TSummerCacheCachingData>
|
|
26
|
-
{
|
|
27
|
-
async getNative(
|
|
28
|
-
key?: TSummerCacheCachingKey,
|
|
29
|
-
_options?: TSummerCacheActionOptions<TSummerCacheCachingKey, TSummerCacheCachingData>,
|
|
30
|
-
): Promise<TSummerCacheCachingData | undefined> {
|
|
31
|
-
return {
|
|
32
|
-
id: key!.id,
|
|
33
|
-
name: `name_${key!.id}`,
|
|
34
|
-
};
|
|
35
|
-
}
|
|
36
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import type { ISummerCacheGet, TSummerCacheActionOptions } from 'vona-module-a-summer';
|
|
2
|
-
|
|
3
|
-
import { BeanSummerCacheBase, SummerCache } from 'vona-module-a-summer';
|
|
4
|
-
|
|
5
|
-
export interface TSummerCacheTestKey {
|
|
6
|
-
id: number;
|
|
7
|
-
}
|
|
8
|
-
export interface TSummerCacheTestData {
|
|
9
|
-
id: number;
|
|
10
|
-
name: string;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
@SummerCache({
|
|
14
|
-
mode: 'all',
|
|
15
|
-
mem: {
|
|
16
|
-
max: 2,
|
|
17
|
-
ttl: 1 * 1000,
|
|
18
|
-
},
|
|
19
|
-
redis: {
|
|
20
|
-
ttl: 3 * 1000,
|
|
21
|
-
},
|
|
22
|
-
})
|
|
23
|
-
export class SummerCacheTest
|
|
24
|
-
extends BeanSummerCacheBase<TSummerCacheTestKey, TSummerCacheTestData>
|
|
25
|
-
implements ISummerCacheGet<TSummerCacheTestKey, TSummerCacheTestData>
|
|
26
|
-
{
|
|
27
|
-
async getNative(
|
|
28
|
-
key?: TSummerCacheTestKey,
|
|
29
|
-
_options?: TSummerCacheActionOptions<TSummerCacheTestKey, TSummerCacheTestData>,
|
|
30
|
-
): Promise<TSummerCacheTestData | undefined> {
|
|
31
|
-
return {
|
|
32
|
-
id: key!.id,
|
|
33
|
-
name: `name_${key!.id}`,
|
|
34
|
-
};
|
|
35
|
-
}
|
|
36
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
export default {
|
|
2
|
-
Name: 'Name',
|
|
3
|
-
Operations: 'Operations',
|
|
4
|
-
User: 'User',
|
|
5
|
-
UserId: 'User ID',
|
|
6
|
-
Test: 'Test',
|
|
7
|
-
TestHelloWorld: 'Hello World',
|
|
8
|
-
TestApples_: '%d apples',
|
|
9
|
-
TestApples_0: 'no apples',
|
|
10
|
-
TestApples_1: 'one apple',
|
|
11
|
-
TestNameApples_: '%s has %d apples',
|
|
12
|
-
TestNameApples_0_1: '%s has no apples',
|
|
13
|
-
TestNameApples_1_1: '%s has one apple',
|
|
14
|
-
Order: 'Order',
|
|
15
|
-
OrderNo: 'Order No',
|
|
16
|
-
Remark: 'Remark',
|
|
17
|
-
Price: 'Price',
|
|
18
|
-
Quantity: 'Quantity',
|
|
19
|
-
Amount: 'Amount',
|
|
20
|
-
Title: 'Title',
|
|
21
|
-
};
|