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,19 +0,0 @@
|
|
|
1
|
-
export default {
|
|
2
|
-
Name: '名称',
|
|
3
|
-
Operations: '操作',
|
|
4
|
-
User: '用户',
|
|
5
|
-
UserId: '用户ID',
|
|
6
|
-
Test: '测试',
|
|
7
|
-
TestHelloWorld: '您好,世界',
|
|
8
|
-
TestApples_: '%d个苹果',
|
|
9
|
-
TestApples_0: '没有苹果',
|
|
10
|
-
TestNameApples_: '%s有%d个苹果',
|
|
11
|
-
TestNameApples_0_1: '%s没有苹果',
|
|
12
|
-
Order: '订单',
|
|
13
|
-
OrderNo: '订单号',
|
|
14
|
-
Remark: '备注',
|
|
15
|
-
Price: '单价',
|
|
16
|
-
Quantity: '数量',
|
|
17
|
-
Amount: '金额',
|
|
18
|
-
Title: '标题',
|
|
19
|
-
};
|
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
import type { IDecoratorControllerOptions } from 'vona-module-a-web';
|
|
2
|
-
|
|
3
|
-
import assert from 'node:assert';
|
|
4
|
-
import { BeanBase, cast } from 'vona';
|
|
5
|
-
import { Api } from 'vona-module-a-openapiutils';
|
|
6
|
-
import { Passport } from 'vona-module-a-user';
|
|
7
|
-
import { Controller, Web } from 'vona-module-a-web';
|
|
8
|
-
|
|
9
|
-
import { __ThisModule__ } from '../.metadata/this.ts';
|
|
10
|
-
import { ServiceTest } from '../service/test.ts';
|
|
11
|
-
|
|
12
|
-
export interface IControllerOptionsBean extends IDecoratorControllerOptions {}
|
|
13
|
-
|
|
14
|
-
@Controller<IControllerOptionsBean>({ path: 'bean', meta: { mode: 'test' } })
|
|
15
|
-
@Api.exclude()
|
|
16
|
-
@Passport.public()
|
|
17
|
-
export class ControllerBean extends BeanBase {
|
|
18
|
-
@Web.get('test')
|
|
19
|
-
async test() {
|
|
20
|
-
const a = 3;
|
|
21
|
-
const b = 4;
|
|
22
|
-
let res;
|
|
23
|
-
|
|
24
|
-
// app.bean
|
|
25
|
-
assert.equal(
|
|
26
|
-
this.bean._getBean('test-vona.service.testApp'),
|
|
27
|
-
this.bean['test-vona.service.testApp'],
|
|
28
|
-
);
|
|
29
|
-
|
|
30
|
-
res = this.bean['test-vona.service.testApp'].actionSync({ a, b });
|
|
31
|
-
assert.equal(res, `${a + b}:regexpaop`);
|
|
32
|
-
|
|
33
|
-
res = await this.bean['test-vona.service.testApp'].actionAsync({ a, b });
|
|
34
|
-
assert.equal(res, `${a + b}:regexpaop`);
|
|
35
|
-
|
|
36
|
-
// ctx.bean: global
|
|
37
|
-
assert.equal(this.bean.testCtx, this.bean.testCtx);
|
|
38
|
-
|
|
39
|
-
// magic
|
|
40
|
-
res = cast(this.bean.testCtx).magic;
|
|
41
|
-
assert.equal(res, 'magic:simpleaop');
|
|
42
|
-
|
|
43
|
-
// name
|
|
44
|
-
this.bean.testCtx.name = 'test-vona:simpleaop:regexpaop';
|
|
45
|
-
res = this.bean.testCtx.name;
|
|
46
|
-
assert.equal(res, 'test-vona:simpleaop:regexpaop');
|
|
47
|
-
|
|
48
|
-
res = this.bean.testCtx.actionSync({ a, b });
|
|
49
|
-
assert.equal(res, `${a + b}:simpleaop:regexpaop`);
|
|
50
|
-
|
|
51
|
-
res = await this.bean.testCtx.actionAsync({ a, b });
|
|
52
|
-
assert.equal(res, `${a + b}:simpleaop:regexpaop`);
|
|
53
|
-
|
|
54
|
-
res = await this.bean.testCtx.actionAsync2({ a, b });
|
|
55
|
-
assert.equal(res, `test-vona:simpleaop:regexpaop:${a + b}:simpleaop:regexpaop`);
|
|
56
|
-
|
|
57
|
-
res = await this.bean.testCtx.actionAsync3({ a, b });
|
|
58
|
-
assert.equal(res, `test-vona:simpleaop:regexpaop:${a + b}:simpleaop:regexpaop`);
|
|
59
|
-
|
|
60
|
-
// ctx.bean: class
|
|
61
|
-
assert.equal(
|
|
62
|
-
this.bean['test-vona.service.testClass'],
|
|
63
|
-
this.app.bean['test-vona.service.testClass'],
|
|
64
|
-
);
|
|
65
|
-
|
|
66
|
-
res = this.bean['test-vona.service.testClass'].actionSync({ a, b });
|
|
67
|
-
assert.equal(res, `${a + b}:regexpaop`);
|
|
68
|
-
|
|
69
|
-
res = await this.bean['test-vona.service.testClass'].actionAsync({ a, b });
|
|
70
|
-
assert.equal(res, `${a + b}:regexpaop`);
|
|
71
|
-
|
|
72
|
-
// magic of self
|
|
73
|
-
cast(this.bean.testCtx).magicSelf = '__magicSelf__';
|
|
74
|
-
res = cast(this.bean.testCtx).magicSelf;
|
|
75
|
-
assert.equal(res, '__magicSelf__');
|
|
76
|
-
res = cast(this.bean.testCtx)['magic:self'];
|
|
77
|
-
assert.equal(res, '__magicSelf__');
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
@Web.get('service')
|
|
81
|
-
@Passport.public()
|
|
82
|
-
async service() {
|
|
83
|
-
let res;
|
|
84
|
-
|
|
85
|
-
// general way
|
|
86
|
-
res = this.bean._getBean(ServiceTest).name;
|
|
87
|
-
assert.equal(res, 'serviceTest');
|
|
88
|
-
|
|
89
|
-
res = this.bean._getBean('test-vona.service.test').name;
|
|
90
|
-
assert.equal(res, 'serviceTest');
|
|
91
|
-
|
|
92
|
-
// this scope
|
|
93
|
-
res = this.scope.service.test.name;
|
|
94
|
-
assert.equal(res, 'serviceTest');
|
|
95
|
-
|
|
96
|
-
// general scope
|
|
97
|
-
res = this.app.scope(__ThisModule__).service.test.name;
|
|
98
|
-
assert.equal(res, 'serviceTest');
|
|
99
|
-
|
|
100
|
-
res = this.$scope.testVona.service.test.name;
|
|
101
|
-
assert.equal(res, 'serviceTest');
|
|
102
|
-
}
|
|
103
|
-
}
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import type { IDecoratorControllerOptions } from 'vona-module-a-web';
|
|
2
|
-
|
|
3
|
-
import { sleep } from '@cabloy/utils';
|
|
4
|
-
import assert from 'node:assert';
|
|
5
|
-
import { BeanBase, retry } from 'vona';
|
|
6
|
-
import { Api } from 'vona-module-a-openapiutils';
|
|
7
|
-
import { Passport } from 'vona-module-a-user';
|
|
8
|
-
import { Controller, Web } from 'vona-module-a-web';
|
|
9
|
-
|
|
10
|
-
export interface IControllerOptionsCacheMem extends IDecoratorControllerOptions {}
|
|
11
|
-
|
|
12
|
-
@Controller<IControllerOptionsCacheMem>({ path: 'cacheMem', meta: { mode: 'test' } })
|
|
13
|
-
@Api.exclude()
|
|
14
|
-
@Passport.public()
|
|
15
|
-
export class ControllerCacheMem extends BeanBase {
|
|
16
|
-
@Web.post()
|
|
17
|
-
async mem() {
|
|
18
|
-
let res;
|
|
19
|
-
let value;
|
|
20
|
-
|
|
21
|
-
// set/get
|
|
22
|
-
this.scope.cacheMem.test.set({ name: 'zhen.nann' }, '__immutable__');
|
|
23
|
-
value = this.scope.cacheMem.test.get('__immutable__');
|
|
24
|
-
assert.deepEqual(value, { name: 'zhen.nann' });
|
|
25
|
-
value.name = 'zhennann';
|
|
26
|
-
value = this.scope.cacheMem.test.get('__immutable__');
|
|
27
|
-
assert.deepEqual(value, { name: 'zhen.nann' });
|
|
28
|
-
|
|
29
|
-
// set
|
|
30
|
-
value = this.scope.cacheMem.test.getset('zhen.nann');
|
|
31
|
-
assert.equal(value, undefined);
|
|
32
|
-
|
|
33
|
-
value = this.scope.cacheMem.test.getset('zhennann');
|
|
34
|
-
assert.equal(value, 'zhen.nann');
|
|
35
|
-
|
|
36
|
-
// has
|
|
37
|
-
res = this.scope.cacheMem.test.has();
|
|
38
|
-
assert.equal(!!res, true);
|
|
39
|
-
|
|
40
|
-
// get
|
|
41
|
-
value = this.scope.cacheMem.test.get();
|
|
42
|
-
assert.equal(value, 'zhennann');
|
|
43
|
-
|
|
44
|
-
// del
|
|
45
|
-
this.scope.cacheMem.test.del();
|
|
46
|
-
res = this.scope.cacheMem.test.has();
|
|
47
|
-
assert.equal(res, false);
|
|
48
|
-
|
|
49
|
-
// set again
|
|
50
|
-
this.scope.cacheMem.test.set('zhennann'); // will be expired after 1s
|
|
51
|
-
|
|
52
|
-
// get
|
|
53
|
-
value = this.scope.cacheMem.test.get();
|
|
54
|
-
assert.equal(value, 'zhennann');
|
|
55
|
-
|
|
56
|
-
// peek after timeout
|
|
57
|
-
await sleep(900);
|
|
58
|
-
await retry({ retries: 3 }, async () => {
|
|
59
|
-
await sleep(100);
|
|
60
|
-
value = this.scope.cacheMem.test.peek();
|
|
61
|
-
assert.equal(value, undefined);
|
|
62
|
-
});
|
|
63
|
-
}
|
|
64
|
-
}
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import type { IDecoratorControllerOptions } from 'vona-module-a-web';
|
|
2
|
-
|
|
3
|
-
import { sleep } from '@cabloy/utils';
|
|
4
|
-
import assert from 'node:assert';
|
|
5
|
-
import { BeanBase, retry } from 'vona';
|
|
6
|
-
import { Api } from 'vona-module-a-openapiutils';
|
|
7
|
-
import { Passport } from 'vona-module-a-user';
|
|
8
|
-
import { Controller, Web } from 'vona-module-a-web';
|
|
9
|
-
|
|
10
|
-
export interface IControllerOptionsCacheRedis extends IDecoratorControllerOptions {}
|
|
11
|
-
|
|
12
|
-
@Controller<IControllerOptionsCacheRedis>({ path: 'cacheRedis', meta: { mode: 'test' } })
|
|
13
|
-
@Api.exclude()
|
|
14
|
-
@Passport.public()
|
|
15
|
-
export class ControllerCacheRedis extends BeanBase {
|
|
16
|
-
@Web.post()
|
|
17
|
-
async redis() {
|
|
18
|
-
let res;
|
|
19
|
-
let value;
|
|
20
|
-
|
|
21
|
-
// getset
|
|
22
|
-
value = await this.scope.cacheRedis.test.getset('zhen.nann');
|
|
23
|
-
assert.equal(value, undefined);
|
|
24
|
-
|
|
25
|
-
value = await this.scope.cacheRedis.test.getset('zhennann');
|
|
26
|
-
assert.equal(value, 'zhen.nann');
|
|
27
|
-
|
|
28
|
-
// has
|
|
29
|
-
res = await this.scope.cacheRedis.test.has();
|
|
30
|
-
assert.equal(res, true);
|
|
31
|
-
|
|
32
|
-
// get
|
|
33
|
-
value = await this.scope.cacheRedis.test.get();
|
|
34
|
-
assert.equal(value, 'zhennann');
|
|
35
|
-
|
|
36
|
-
// del
|
|
37
|
-
await this.scope.cacheRedis.test.del();
|
|
38
|
-
res = await this.scope.cacheRedis.test.has();
|
|
39
|
-
assert.equal(res, false);
|
|
40
|
-
|
|
41
|
-
// set again
|
|
42
|
-
await this.scope.cacheRedis.test.set('zhennann'); // will be expired after 1s
|
|
43
|
-
|
|
44
|
-
// get
|
|
45
|
-
value = await this.scope.cacheRedis.test.get();
|
|
46
|
-
assert.equal(value, 'zhennann');
|
|
47
|
-
|
|
48
|
-
// peek after timeout
|
|
49
|
-
await sleep(900);
|
|
50
|
-
await retry({ retries: 3 }, async () => {
|
|
51
|
-
await sleep(100);
|
|
52
|
-
value = await this.scope.cacheRedis.test.peek();
|
|
53
|
-
assert.equal(value, undefined);
|
|
54
|
-
});
|
|
55
|
-
}
|
|
56
|
-
}
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import type { TableIdentity } from 'table-identity';
|
|
2
|
-
import type { IDecoratorControllerOptions } from 'vona-module-a-web';
|
|
3
|
-
|
|
4
|
-
import { BeanBase } from 'vona';
|
|
5
|
-
import { Api, v } from 'vona-module-a-openapiutils';
|
|
6
|
-
import { $Dto } from 'vona-module-a-orm';
|
|
7
|
-
import { Arg, Controller, Web } from 'vona-module-a-web';
|
|
8
|
-
|
|
9
|
-
import { DtoCategoryTree } from '../dto/categoryTree.ts';
|
|
10
|
-
import { DtoUserCreate } from '../dto/userCreate.ts';
|
|
11
|
-
import { DtoUserLazy } from '../dto/userLazy.ts';
|
|
12
|
-
import { DtoUserUpdate } from '../dto/userUpdate.ts';
|
|
13
|
-
|
|
14
|
-
export interface IControllerOptionsDtoTest extends IDecoratorControllerOptions {}
|
|
15
|
-
|
|
16
|
-
@Controller<IControllerOptionsDtoTest>('dtoTest', { meta: { mode: ['test', 'dev'] } })
|
|
17
|
-
export class ControllerDtoTest extends BeanBase {
|
|
18
|
-
@Web.get('getUserLazy')
|
|
19
|
-
getUserLazy(): DtoUserLazy {
|
|
20
|
-
return {} as any;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
@Web.get('getUserDynamic')
|
|
24
|
-
@Api.body($Dto.get('test-vona:post'))
|
|
25
|
-
getPostDynamic() {}
|
|
26
|
-
|
|
27
|
-
@Web.get('getUserStats')
|
|
28
|
-
@Api.body($Dto.get('test-vona:userStats'))
|
|
29
|
-
getUserStats() {}
|
|
30
|
-
|
|
31
|
-
@Web.get('getUserStatsGroup')
|
|
32
|
-
@Api.body($Dto.get('test-vona:userStatsGroup'))
|
|
33
|
-
getUserStatsGroup() {}
|
|
34
|
-
|
|
35
|
-
@Web.post('createUser')
|
|
36
|
-
createUser(@Arg.body(v.object(DtoUserCreate)) user: DtoUserCreate) {
|
|
37
|
-
return this.scope.model.user.insert(user);
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
@Web.patch('updateUser/:id')
|
|
41
|
-
updateUser(
|
|
42
|
-
@Arg.param('id') id: TableIdentity,
|
|
43
|
-
@Arg.body(v.object(DtoUserUpdate)) user: DtoUserUpdate,
|
|
44
|
-
) {
|
|
45
|
-
return this.scope.model.user.update(user, { where: { id } });
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
@Web.get('getCategoryTree')
|
|
49
|
-
@Api.body(v.array($Dto.get('test-vona:category', { columns: ['id', 'name'] })))
|
|
50
|
-
async getCategoryTree() {
|
|
51
|
-
const items = await this.scope.model.category.select({ columns: ['id', 'name'] });
|
|
52
|
-
return items;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
@Web.get('getCategoryTree2')
|
|
56
|
-
@Api.body(v.array(DtoCategoryTree))
|
|
57
|
-
async getCategoryTree2() {
|
|
58
|
-
const items = await this.scope.model.category.select({ columns: ['id', 'name'] });
|
|
59
|
-
return items;
|
|
60
|
-
}
|
|
61
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import type { IDecoratorControllerOptions } from 'vona-module-a-web';
|
|
2
|
-
|
|
3
|
-
import { BeanBase } from 'vona';
|
|
4
|
-
import { Passport } from 'vona-module-a-user';
|
|
5
|
-
import { Controller, Web } from 'vona-module-a-web';
|
|
6
|
-
|
|
7
|
-
export interface IControllerOptionsGuardPassport extends IDecoratorControllerOptions {}
|
|
8
|
-
|
|
9
|
-
@Controller<IControllerOptionsGuardPassport>('guardPassport')
|
|
10
|
-
export class ControllerGuardPassport extends BeanBase {
|
|
11
|
-
@Web.get('testUserName')
|
|
12
|
-
@Passport.userName({ name: 'admin' })
|
|
13
|
-
testUserName() {}
|
|
14
|
-
|
|
15
|
-
@Web.get('testUserNameFail')
|
|
16
|
-
@Passport.userName({ name: 'admin-none' as any })
|
|
17
|
-
testUserNameFail() {}
|
|
18
|
-
|
|
19
|
-
@Web.get('testRoleName')
|
|
20
|
-
@Passport.roleName({ name: 'admin' })
|
|
21
|
-
testRoleName() {}
|
|
22
|
-
|
|
23
|
-
@Web.get('testRoleNameFail')
|
|
24
|
-
@Passport.roleName({ name: 'admin-none' as any })
|
|
25
|
-
testRoleNameFail() {}
|
|
26
|
-
}
|
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
import type { IDecoratorControllerOptions } from 'vona-module-a-web';
|
|
2
|
-
|
|
3
|
-
import { BeanBase } from 'vona';
|
|
4
|
-
import { Aspect } from 'vona-module-a-aspect';
|
|
5
|
-
import { Core } from 'vona-module-a-core';
|
|
6
|
-
import { Api, v } from 'vona-module-a-openapiutils';
|
|
7
|
-
import { Passport } from 'vona-module-a-user';
|
|
8
|
-
import { Arg, Controller, Web } from 'vona-module-a-web';
|
|
9
|
-
import { z } from 'zod';
|
|
10
|
-
|
|
11
|
-
import { $locale } from '../.metadata/locales.ts';
|
|
12
|
-
import { DtoUser } from '../dto/user.ts';
|
|
13
|
-
|
|
14
|
-
export interface IControllerOptionsOnion extends IDecoratorControllerOptions {}
|
|
15
|
-
|
|
16
|
-
@Controller<IControllerOptionsOnion>({
|
|
17
|
-
path: 'onion',
|
|
18
|
-
tags: ['Onion'],
|
|
19
|
-
meta: { mode: ['dev', 'test'] },
|
|
20
|
-
})
|
|
21
|
-
export class ControllerOnion extends BeanBase {
|
|
22
|
-
@Web.get('/')
|
|
23
|
-
@Aspect.aopMethod('a-orm:transaction', { enable: true, meta: { mode: 'dev' } })
|
|
24
|
-
@Aspect.guardGlobal('a-user:passport', { public: true })
|
|
25
|
-
index() {
|
|
26
|
-
return this.ctx.db.inTransaction;
|
|
27
|
-
// return 'Hello Vona';
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
@Web.post('//echo')
|
|
31
|
-
@Aspect.guardGlobal('a-user:passport', { public: true })
|
|
32
|
-
@Aspect.middlewareGlobal('a-core:gate', { gate: { mode: 'dev' } })
|
|
33
|
-
@Core.gate({ gate: { mode: 'dev' } })
|
|
34
|
-
@Aspect.aopMethod('a-orm:transaction', { isolationLevel: 'SERIALIZABLE', readOnly: true })
|
|
35
|
-
@Core.transaction({ isolationLevel: 'READ_COMMITTED', readOnly: false })
|
|
36
|
-
@Api.body(v.optional(), z.string())
|
|
37
|
-
echo(
|
|
38
|
-
@Arg.query('id', v.default(0), z.number()) id: number,
|
|
39
|
-
temp: string,
|
|
40
|
-
@Arg.query('name', z.number().optional()) name: string,
|
|
41
|
-
@Arg.body(
|
|
42
|
-
v.title($locale('User')),
|
|
43
|
-
z.object({ id: z.number().openapi({ title: $locale('UserId') }) }),
|
|
44
|
-
)
|
|
45
|
-
_user: DtoUser,
|
|
46
|
-
): string | undefined {
|
|
47
|
-
return `echo: ${id}:${temp}:${name}`;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
@Web.post('echo2/:userId/:userName')
|
|
51
|
-
// @Aspect.middlewareGlobal('a-core:gate', { gate: { mode: 'dev' } })
|
|
52
|
-
@Aspect.guardGlobal('a-user:passport', { public: true })
|
|
53
|
-
// echo2(@Arg.query(v.object(DtoUser, { loose: false, strict: false })) book: Partial<DtoUser>) {
|
|
54
|
-
echo2(
|
|
55
|
-
@Arg.param('userId', v.title($locale('UserId')), v.example('example:1')) _userId: number,
|
|
56
|
-
@Arg.param('userName', v.title($locale('UserId')), v.example('example:1')) _userName: string,
|
|
57
|
-
@Arg.query(DtoUser) _user: DtoUser,
|
|
58
|
-
@Arg.body(
|
|
59
|
-
v.title($locale('User')),
|
|
60
|
-
z.object({ id: z.number().openapi({ title: $locale('UserId') }) }),
|
|
61
|
-
)
|
|
62
|
-
user: DtoUser,
|
|
63
|
-
): DtoUser {
|
|
64
|
-
// const ctx = this.app.currentContext;
|
|
65
|
-
// this.$logger.silly(ctx === this.ctx);
|
|
66
|
-
return user;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
@Web.get('echo3/:userId')
|
|
70
|
-
@Aspect.guardGlobal('a-user:passport', { public: true })
|
|
71
|
-
echo3(
|
|
72
|
-
@Arg.param('userId') _userId: number,
|
|
73
|
-
@Arg.query('id', v.optional()) id: number,
|
|
74
|
-
@Arg.headers('Accept', v.title($locale('UserId'))) accept: string,
|
|
75
|
-
) {
|
|
76
|
-
this.$logger.silly(this.ctx.path);
|
|
77
|
-
// const ctx = this.app.currentContext;
|
|
78
|
-
// this.$logger.silly(ctx === this.ctx);
|
|
79
|
-
return `${id}:${accept}`;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
@Web.post('echo4')
|
|
83
|
-
@Aspect.guardGlobal('a-user:passport', { public: true })
|
|
84
|
-
@Aspect.filterGlobal('a-error:error', { enable: true, logs: { 422: true } })
|
|
85
|
-
@Api.body(v.array(DtoUser))
|
|
86
|
-
echo4(@Arg.body(v.optional(), v.array(), v.object(DtoUser)) users: DtoUser[]): DtoUser[] {
|
|
87
|
-
return users;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
@Web.get('echo5')
|
|
91
|
-
@Passport.public()
|
|
92
|
-
echo5(@Arg.query('ids', v.default([1]), v.array(Number, { separator: '-' })) ids: number[]) {
|
|
93
|
-
// const ctx = this.app.currentContext;
|
|
94
|
-
// this.$logger.silly(ctx === this.ctx);
|
|
95
|
-
return ids;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
@Web.get('echo6')
|
|
99
|
-
@Passport.admin()
|
|
100
|
-
echo6() {
|
|
101
|
-
return this.bean.passport.isAuthenticated;
|
|
102
|
-
}
|
|
103
|
-
}
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import type { TableIdentity } from 'table-identity';
|
|
2
|
-
import type { IQueryParams } from 'vona-module-a-orm';
|
|
3
|
-
import type { IDecoratorControllerOptions } from 'vona-module-a-web';
|
|
4
|
-
|
|
5
|
-
import { BeanBase } from 'vona';
|
|
6
|
-
import { Api, v } from 'vona-module-a-openapiutils';
|
|
7
|
-
import { Arg, Controller, Web } from 'vona-module-a-web';
|
|
8
|
-
|
|
9
|
-
import type { ModelOrder } from '../model/order.ts';
|
|
10
|
-
|
|
11
|
-
import { DtoOrderCreate } from '../dto/orderCreate.ts';
|
|
12
|
-
import { DtoOrderQuery } from '../dto/orderQuery.ts';
|
|
13
|
-
import { DtoOrderQueryPage } from '../dto/orderQueryPage.ts';
|
|
14
|
-
import { DtoOrderSelectRes } from '../dto/orderSelectRes.ts';
|
|
15
|
-
import { DtoOrderSelectResItem } from '../dto/orderSelectResItem.ts';
|
|
16
|
-
import { DtoOrderUpdate } from '../dto/orderUpdate.ts';
|
|
17
|
-
|
|
18
|
-
export interface IControllerOptionsOrder extends IDecoratorControllerOptions {}
|
|
19
|
-
|
|
20
|
-
@Controller<IControllerOptionsOrder>('order')
|
|
21
|
-
export class ControllerOrder extends BeanBase {
|
|
22
|
-
@Web.post('create')
|
|
23
|
-
@Api.body(v.tableIdentity())
|
|
24
|
-
async create(@Arg.body() data: DtoOrderCreate): Promise<TableIdentity> {
|
|
25
|
-
return (await this.scope.model.order.insert(data)).id;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
@Web.post('update/:id')
|
|
29
|
-
async update(@Arg.param('id') id: TableIdentity, @Arg.body() data: DtoOrderUpdate) {
|
|
30
|
-
return await this.scope.model.order.updateById(id, data);
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
@Web.get('findAll')
|
|
34
|
-
@Api.body(v.array(DtoOrderSelectResItem))
|
|
35
|
-
async findAll(
|
|
36
|
-
@Arg.filter(DtoOrderQuery) params: IQueryParams<ModelOrder>,
|
|
37
|
-
): Promise<DtoOrderSelectResItem[]> {
|
|
38
|
-
return this.scope.model.order.select({
|
|
39
|
-
...params,
|
|
40
|
-
include: {
|
|
41
|
-
products: true,
|
|
42
|
-
},
|
|
43
|
-
});
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
@Web.get('findMany')
|
|
47
|
-
@Api.body(DtoOrderSelectRes)
|
|
48
|
-
async findMany(@Arg.filter(DtoOrderQueryPage) params: IQueryParams<ModelOrder>) {
|
|
49
|
-
return this.scope.model.order.selectAndCount({
|
|
50
|
-
...params,
|
|
51
|
-
include: {
|
|
52
|
-
products: true,
|
|
53
|
-
},
|
|
54
|
-
});
|
|
55
|
-
}
|
|
56
|
-
}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import type { IJwtToken } from 'vona-module-a-jwt';
|
|
2
|
-
import type { IUser, IUserNameRecord } from 'vona-module-a-user';
|
|
3
|
-
import type { IDecoratorControllerOptions } from 'vona-module-a-web';
|
|
4
|
-
|
|
5
|
-
import assert from 'node:assert';
|
|
6
|
-
import { BeanBase } from 'vona';
|
|
7
|
-
import { DtoJwtToken } from 'vona-module-a-jwt';
|
|
8
|
-
import { Api, v } from 'vona-module-a-openapiutils';
|
|
9
|
-
import { Passport } from 'vona-module-a-user';
|
|
10
|
-
import { Arg, Controller, Web } from 'vona-module-a-web';
|
|
11
|
-
|
|
12
|
-
export interface IControllerOptionsPassport extends IDecoratorControllerOptions {}
|
|
13
|
-
|
|
14
|
-
@Controller<IControllerOptionsPassport>({ path: 'passport', meta: { mode: 'test' } })
|
|
15
|
-
@Api.exclude()
|
|
16
|
-
export class ControllerPassport extends BeanBase {
|
|
17
|
-
@Web.get('echo/:name')
|
|
18
|
-
@Passport.public()
|
|
19
|
-
echo(@Arg.param('name') name: string, @Arg.user() user: IUser) {
|
|
20
|
-
assert.equal(name, 'admin');
|
|
21
|
-
assert.equal(user.name, 'admin');
|
|
22
|
-
return { name, user };
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
@Web.post('login')
|
|
26
|
-
@Api.body(v.object(DtoJwtToken))
|
|
27
|
-
@Passport.public()
|
|
28
|
-
async login(@Arg.body('name') name: string): Promise<IJwtToken> {
|
|
29
|
-
const jwt = await this.bean.passport.signinMock(name as keyof IUserNameRecord);
|
|
30
|
-
return jwt;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
@Web.get('isAuthenticated')
|
|
34
|
-
isAuthenticated(): boolean {
|
|
35
|
-
return this.bean.passport.isAuthenticated;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
@Web.post('refresh')
|
|
39
|
-
@Api.body(v.object(DtoJwtToken))
|
|
40
|
-
@Passport.public()
|
|
41
|
-
async refresh(@Arg.body('refreshToken') refreshToken: string): Promise<IJwtToken> {
|
|
42
|
-
return await this.bean.passport.refreshAuthToken(refreshToken);
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
@Web.post('logout')
|
|
46
|
-
async logout() {
|
|
47
|
-
return await this.bean.passport.signout();
|
|
48
|
-
}
|
|
49
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import type { IDecoratorControllerOptions } from 'vona-module-a-web';
|
|
2
|
-
|
|
3
|
-
import { BeanBase } from 'vona';
|
|
4
|
-
import { Api } from 'vona-module-a-openapiutils';
|
|
5
|
-
import { Passport } from 'vona-module-a-user';
|
|
6
|
-
import { Arg, Controller, Web } from 'vona-module-a-web';
|
|
7
|
-
|
|
8
|
-
export interface IControllerOptionsPerformAction extends IDecoratorControllerOptions {}
|
|
9
|
-
|
|
10
|
-
@Controller<IControllerOptionsPerformAction>({ path: 'performAction', meta: { mode: 'test' } })
|
|
11
|
-
@Api.exclude()
|
|
12
|
-
export class ControllerPerformAction extends BeanBase {
|
|
13
|
-
@Web.post('echo')
|
|
14
|
-
@Passport.public()
|
|
15
|
-
echo(@Arg.body('id') id: number) {
|
|
16
|
-
const url = this.scope.util.combineApiPath('performAction/echo');
|
|
17
|
-
return { id, url };
|
|
18
|
-
}
|
|
19
|
-
}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import type { IQueryParams } from 'vona-module-a-orm';
|
|
2
|
-
import type { IDecoratorControllerOptions } from 'vona-module-a-web';
|
|
3
|
-
|
|
4
|
-
import { BeanBase } from 'vona';
|
|
5
|
-
import { Api, v } 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 type { ModelPost } from '../model/post.ts';
|
|
10
|
-
|
|
11
|
-
import { DtoPostAggregate } from '../dto/postAggregate.ts';
|
|
12
|
-
import { DtoPostGroup } from '../dto/postGroup.ts';
|
|
13
|
-
import { DtoPostSelectReq } from '../dto/postSelectReq.ts';
|
|
14
|
-
import { DtoPostSelectRes } from '../dto/postSelectRes.ts';
|
|
15
|
-
|
|
16
|
-
export interface IControllerOptionsPost extends IDecoratorControllerOptions {}
|
|
17
|
-
|
|
18
|
-
@Controller<IControllerOptionsPost>('post', { meta: { mode: ['test', 'dev'] } })
|
|
19
|
-
export class ControllerPost extends BeanBase {
|
|
20
|
-
@Web.get('group')
|
|
21
|
-
@Api.body(v.array(DtoPostGroup))
|
|
22
|
-
async group(): Promise<DtoPostGroup[]> {
|
|
23
|
-
return await this.scope.model.post.group({
|
|
24
|
-
groups: 'userId',
|
|
25
|
-
aggrs: {
|
|
26
|
-
count: '*',
|
|
27
|
-
sum: 'stars',
|
|
28
|
-
},
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
@Web.get('aggregate')
|
|
33
|
-
@Api.body(DtoPostAggregate)
|
|
34
|
-
async aggregate(): Promise<DtoPostAggregate> {
|
|
35
|
-
return await this.scope.model.post.aggregate({
|
|
36
|
-
aggrs: {
|
|
37
|
-
count: ['*', 'stars'],
|
|
38
|
-
sum: 'stars',
|
|
39
|
-
avg: 'stars',
|
|
40
|
-
min: 'stars',
|
|
41
|
-
max: 'stars',
|
|
42
|
-
},
|
|
43
|
-
});
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
@Web.get('findManyEcho')
|
|
47
|
-
@Api.body(DtoPostSelectRes)
|
|
48
|
-
@Passport.public()
|
|
49
|
-
findManyEcho(@Arg.filter(DtoPostSelectReq) params: IQueryParams<ModelPost>) {
|
|
50
|
-
return params;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
@Web.get('findMany')
|
|
54
|
-
@Api.body(DtoPostSelectRes)
|
|
55
|
-
@Passport.public()
|
|
56
|
-
async findMany(@Arg.filter(DtoPostSelectReq) params: IQueryParams<ModelPost>) {
|
|
57
|
-
return await this.scope.service.post.findMany(params);
|
|
58
|
-
}
|
|
59
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import type { IDecoratorControllerOptions } from 'vona-module-a-web';
|
|
2
|
-
|
|
3
|
-
import assert from 'node:assert';
|
|
4
|
-
import { BeanBase } from 'vona';
|
|
5
|
-
import { Api } from 'vona-module-a-openapiutils';
|
|
6
|
-
import { Passport } from 'vona-module-a-user';
|
|
7
|
-
import { Controller, Web } from 'vona-module-a-web';
|
|
8
|
-
|
|
9
|
-
export interface IControllerOptionsQueue extends IDecoratorControllerOptions {}
|
|
10
|
-
|
|
11
|
-
@Controller<IControllerOptionsQueue>({ path: 'queue', meta: { mode: 'test' } })
|
|
12
|
-
@Api.exclude()
|
|
13
|
-
export class ControllerQueue extends BeanBase {
|
|
14
|
-
@Web.post('pushAsync')
|
|
15
|
-
@Passport.public()
|
|
16
|
-
async pushAsync() {
|
|
17
|
-
const res = await this.scope.queue.test.pushAsync({ a: 1, b: 2 });
|
|
18
|
-
this.$logger.silly(`queue test await done: 1 + 2 = ${res}`);
|
|
19
|
-
assert.equal(res, 3);
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
@Web.post('push')
|
|
23
|
-
@Passport.public()
|
|
24
|
-
push() {
|
|
25
|
-
this.scope.queue.test.push({ a: 2, b: 3 });
|
|
26
|
-
}
|
|
27
|
-
}
|