cabloy 5.1.20 → 5.1.22

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.
Files changed (227) hide show
  1. package/package.json +1 -1
  2. package/scripts/upgrade.ts +13 -5
  3. package/vona/pnpm-lock.yaml +72 -70
  4. package/vona/src/suite-vendor/a-auth/tsconfig.json +0 -3
  5. package/vona/src/suite-vendor/a-cabloy/tsconfig.json +0 -9
  6. package/vona/src/suite-vendor/a-captcha/tsconfig.json +0 -3
  7. package/vona/src/suite-vendor/a-vona/tsconfig.json +0 -3
  8. package/vona/src/suite/.gitkeep +0 -0
  9. package/vona/src/suite-vendor/.gitkeep +0 -0
  10. package/vona/src/suite-vendor/a-auth/modules/test-auth/package.json +0 -52
  11. package/vona/src/suite-vendor/a-auth/modules/test-auth/src/.metadata/index.ts +0 -74
  12. package/vona/src/suite-vendor/a-auth/modules/test-auth/src/.metadata/this.ts +0 -2
  13. package/vona/src/suite-vendor/a-auth/modules/test-auth/src/controller/passport.ts +0 -19
  14. package/vona/src/suite-vendor/a-auth/modules/test-auth/src/index.ts +0 -1
  15. package/vona/src/suite-vendor/a-auth/modules/test-auth/test/authOauth.test.ts +0 -55
  16. package/vona/src/suite-vendor/a-auth/modules/test-auth/test/authSimple.test.ts +0 -52
  17. package/vona/src/suite-vendor/a-auth/modules/test-auth/tsconfig.build.json +0 -11
  18. package/vona/src/suite-vendor/a-auth/modules/test-auth/tsconfig.json +0 -7
  19. package/vona/src/suite-vendor/a-cabloy/modules/test-cabloy/package.json +0 -60
  20. package/vona/src/suite-vendor/a-cabloy/modules/test-cabloy/src/.metadata/index.ts +0 -103
  21. package/vona/src/suite-vendor/a-cabloy/modules/test-cabloy/src/.metadata/this.ts +0 -2
  22. package/vona/src/suite-vendor/a-cabloy/modules/test-cabloy/src/bean/meta.status.ts +0 -15
  23. package/vona/src/suite-vendor/a-cabloy/modules/test-cabloy/src/controller/status.ts +0 -44
  24. package/vona/src/suite-vendor/a-cabloy/modules/test-cabloy/src/index.ts +0 -1
  25. package/vona/src/suite-vendor/a-cabloy/modules/test-cabloy/test/datasource.test.ts +0 -51
  26. package/vona/src/suite-vendor/a-cabloy/modules/test-cabloy/test/socket.test.ts +0 -48
  27. package/vona/src/suite-vendor/a-cabloy/modules/test-cabloy/test/status.test.ts +0 -10
  28. package/vona/src/suite-vendor/a-cabloy/modules/test-cabloy/tsconfig.build.json +0 -11
  29. package/vona/src/suite-vendor/a-cabloy/modules/test-cabloy/tsconfig.json +0 -7
  30. package/vona/src/suite-vendor/a-cabloy/modules/test-rest/package.json +0 -63
  31. package/vona/src/suite-vendor/a-cabloy/modules/test-rest/src/.metadata/index.ts +0 -377
  32. package/vona/src/suite-vendor/a-cabloy/modules/test-rest/src/.metadata/locales.ts +0 -18
  33. package/vona/src/suite-vendor/a-cabloy/modules/test-rest/src/.metadata/this.ts +0 -2
  34. package/vona/src/suite-vendor/a-cabloy/modules/test-rest/src/bean/meta.version.ts +0 -49
  35. package/vona/src/suite-vendor/a-cabloy/modules/test-rest/src/bean/ssrMenu.product.ts +0 -26
  36. package/vona/src/suite-vendor/a-cabloy/modules/test-rest/src/config/locale/en-us.ts +0 -15
  37. package/vona/src/suite-vendor/a-cabloy/modules/test-rest/src/config/locale/zh-cn.ts +0 -15
  38. package/vona/src/suite-vendor/a-cabloy/modules/test-rest/src/controller/product.tsx +0 -64
  39. package/vona/src/suite-vendor/a-cabloy/modules/test-rest/src/dto/productCreate.tsx +0 -40
  40. package/vona/src/suite-vendor/a-cabloy/modules/test-rest/src/dto/productSelectReq.tsx +0 -25
  41. package/vona/src/suite-vendor/a-cabloy/modules/test-rest/src/dto/productSelectRes.tsx +0 -11
  42. package/vona/src/suite-vendor/a-cabloy/modules/test-rest/src/dto/productSelectResItem.tsx +0 -39
  43. package/vona/src/suite-vendor/a-cabloy/modules/test-rest/src/dto/productUpdate.tsx +0 -30
  44. package/vona/src/suite-vendor/a-cabloy/modules/test-rest/src/dto/productView.tsx +0 -25
  45. package/vona/src/suite-vendor/a-cabloy/modules/test-rest/src/entity/product.tsx +0 -65
  46. package/vona/src/suite-vendor/a-cabloy/modules/test-rest/src/index.ts +0 -2
  47. package/vona/src/suite-vendor/a-cabloy/modules/test-rest/src/model/product.ts +0 -10
  48. package/vona/src/suite-vendor/a-cabloy/modules/test-rest/src/service/product.ts +0 -37
  49. package/vona/src/suite-vendor/a-cabloy/modules/test-rest/test/permission.test.ts +0 -19
  50. package/vona/src/suite-vendor/a-cabloy/modules/test-rest/test/product.test.ts +0 -65
  51. package/vona/src/suite-vendor/a-cabloy/modules/test-rest/tsconfig.build.json +0 -11
  52. package/vona/src/suite-vendor/a-cabloy/modules/test-rest/tsconfig.json +0 -7
  53. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/package.json +0 -60
  54. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/src/.metadata/index.ts +0 -161
  55. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/src/.metadata/locales.ts +0 -18
  56. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/src/.metadata/this.ts +0 -2
  57. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/src/config/locale/en-us.ts +0 -13
  58. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/src/config/locale/zh-cn.ts +0 -11
  59. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/src/controller/toolOne.ts +0 -43
  60. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/src/controller/toolTwo.ts +0 -37
  61. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/src/dto/testBody.ts +0 -10
  62. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/src/dto/testDetail.ts +0 -21
  63. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/src/dto/testParams.ts +0 -13
  64. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/src/dto/testQuery.ts +0 -12
  65. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/src/dto/testResult.tsx +0 -159
  66. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/src/index.ts +0 -2
  67. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/tsconfig.build.json +0 -11
  68. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/tsconfig.json +0 -7
  69. package/vona/src/suite-vendor/a-captcha/modules/test-captcha/package.json +0 -52
  70. package/vona/src/suite-vendor/a-captcha/modules/test-captcha/src/.metadata/index.ts +0 -99
  71. package/vona/src/suite-vendor/a-captcha/modules/test-captcha/src/.metadata/this.ts +0 -2
  72. package/vona/src/suite-vendor/a-captcha/modules/test-captcha/src/controller/captcha.ts +0 -18
  73. package/vona/src/suite-vendor/a-captcha/modules/test-captcha/src/dto/signin.ts +0 -20
  74. package/vona/src/suite-vendor/a-captcha/modules/test-captcha/src/index.ts +0 -1
  75. package/vona/src/suite-vendor/a-captcha/modules/test-captcha/test/captcha.test.ts +0 -148
  76. package/vona/src/suite-vendor/a-captcha/modules/test-captcha/tsconfig.build.json +0 -11
  77. package/vona/src/suite-vendor/a-captcha/modules/test-captcha/tsconfig.json +0 -7
  78. package/vona/src/suite-vendor/a-vona/modules/test-vona/assets/img/vona.png +0 -0
  79. package/vona/src/suite-vendor/a-vona/modules/test-vona/assets/static/img/vona.png +0 -0
  80. package/vona/src/suite-vendor/a-vona/modules/test-vona/assets/static/img/vona.svg +0 -3
  81. package/vona/src/suite-vendor/a-vona/modules/test-vona/package.json +0 -61
  82. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/.metadata/index.ts +0 -2181
  83. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/.metadata/locales.ts +0 -18
  84. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/.metadata/this.ts +0 -2
  85. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/bean/aop.regExp.ts +0 -34
  86. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/bean/aop.simple.ts +0 -80
  87. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/bean/aopMethod.test.ts +0 -63
  88. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/bean/bean.testCtx.ts +0 -59
  89. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/bean/broadcast.test.ts +0 -24
  90. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/bean/cacheMem.test.ts +0 -7
  91. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/bean/cacheRedis.post.ts +0 -11
  92. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/bean/cacheRedis.test.ts +0 -7
  93. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/bean/event.helloEcho.ts +0 -13
  94. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/bean/eventListener.helloEcho.ts +0 -24
  95. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/bean/meta.asset.ts +0 -10
  96. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/bean/meta.static.ts +0 -7
  97. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/bean/meta.version.ts +0 -108
  98. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/bean/queue.test.ts +0 -25
  99. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/bean/schedule.test.ts +0 -13
  100. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/bean/schedule.test3.ts +0 -13
  101. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/bean/serializerTransform.email.ts +0 -35
  102. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/bean/summerCache.caching.ts +0 -36
  103. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/bean/summerCache.test.ts +0 -36
  104. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/config/config.ts +0 -5
  105. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/config/locale/en-us.ts +0 -21
  106. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/config/locale/zh-cn.ts +0 -19
  107. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/controller/bean.ts +0 -103
  108. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/controller/cacheMem.ts +0 -64
  109. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/controller/cacheRedis.ts +0 -56
  110. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/controller/dtoTest.ts +0 -61
  111. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/controller/guardPassport.ts +0 -26
  112. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/controller/onion.ts +0 -103
  113. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/controller/order.ts +0 -56
  114. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/controller/passport.ts +0 -49
  115. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/controller/performAction.ts +0 -19
  116. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/controller/post.ts +0 -59
  117. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/controller/queue.ts +0 -27
  118. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/controller/serializer.ts +0 -40
  119. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/controller/summer.ts +0 -130
  120. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/controller/tail.ts +0 -33
  121. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/controller/transaction.ts +0 -30
  122. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/controller/upload.ts +0 -61
  123. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/dto/categoryTree.ts +0 -9
  124. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/dto/orderCreate.ts +0 -13
  125. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/dto/orderQuery.ts +0 -25
  126. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/dto/orderQueryPage.ts +0 -24
  127. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/dto/orderSelectRes.ts +0 -11
  128. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/dto/orderSelectResItem.ts +0 -11
  129. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/dto/orderUpdate.ts +0 -13
  130. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/dto/postAggregate.ts +0 -17
  131. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/dto/postCreate.ts +0 -11
  132. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/dto/postGroup.ts +0 -14
  133. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/dto/postSelectReq.ts +0 -36
  134. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/dto/postSelectRes.ts +0 -11
  135. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/dto/postSelectResItem.tsx +0 -28
  136. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/dto/profile.ts +0 -15
  137. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/dto/roleLazy.ts +0 -17
  138. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/dto/serializerArray.ts +0 -39
  139. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/dto/serializerLazy.ts +0 -31
  140. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/dto/serializerSimple.ts +0 -112
  141. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/dto/user.ts +0 -21
  142. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/dto/userCreate.ts +0 -11
  143. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/dto/userLazy.ts +0 -20
  144. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/dto/userUpdate.ts +0 -9
  145. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/entity/category.ts +0 -16
  146. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/entity/order.ts +0 -21
  147. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/entity/post.ts +0 -21
  148. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/entity/postContent.ts +0 -16
  149. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/entity/product.ts +0 -27
  150. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/entity/role.ts +0 -12
  151. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/entity/roleUser.ts +0 -16
  152. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/entity/test.ts +0 -24
  153. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/entity/user.ts +0 -18
  154. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/index.ts +0 -4
  155. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/lib/index.ts +0 -1
  156. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/lib/serializer.ts +0 -9
  157. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/model/category.ts +0 -22
  158. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/model/categoryChain.ts +0 -23
  159. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/model/order.ts +0 -33
  160. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/model/orderStats.ts +0 -29
  161. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/model/post.ts +0 -23
  162. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/model/postContent.ts +0 -23
  163. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/model/product.ts +0 -10
  164. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/model/role.ts +0 -23
  165. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/model/roleUser.ts +0 -10
  166. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/model/test.ts +0 -10
  167. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/model/testDynamicTable.ts +0 -23
  168. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/model/user.ts +0 -30
  169. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/model/userStats.ts +0 -22
  170. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/model/userStatsGroup.ts +0 -36
  171. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/service/aopMethod.ts +0 -38
  172. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/service/caching.ts +0 -89
  173. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/service/category.ts +0 -153
  174. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/service/order.ts +0 -67
  175. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/service/post.ts +0 -280
  176. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/service/product.ts +0 -5
  177. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/service/test.ts +0 -9
  178. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/service/testApp.ts +0 -13
  179. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/service/testClass.ts +0 -15
  180. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/service/testData.ts +0 -71
  181. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/service/transaction.ts +0 -20
  182. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/service/user.ts +0 -124
  183. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/types/index.ts +0 -6
  184. package/vona/src/suite-vendor/a-vona/modules/test-vona/test/aopMethod.test.ts +0 -21
  185. package/vona/src/suite-vendor/a-vona/modules/test-vona/test/bean.test.ts +0 -16
  186. package/vona/src/suite-vendor/a-vona/modules/test-vona/test/broadcast.test.ts +0 -17
  187. package/vona/src/suite-vendor/a-vona/modules/test-vona/test/cache/cacheMem.test.ts +0 -10
  188. package/vona/src/suite-vendor/a-vona/modules/test-vona/test/cache/cacheRedis.test.ts +0 -10
  189. package/vona/src/suite-vendor/a-vona/modules/test-vona/test/cache/caching.test.ts +0 -61
  190. package/vona/src/suite-vendor/a-vona/modules/test-vona/test/cache/summer.test.ts +0 -10
  191. package/vona/src/suite-vendor/a-vona/modules/test-vona/test/database/database.test.ts +0 -132
  192. package/vona/src/suite-vendor/a-vona/modules/test-vona/test/database/dtoAggregate.test.ts +0 -44
  193. package/vona/src/suite-vendor/a-vona/modules/test-vona/test/database/dtoGet.test.ts +0 -82
  194. package/vona/src/suite-vendor/a-vona/modules/test-vona/test/database/dtoGroup.test.ts +0 -44
  195. package/vona/src/suite-vendor/a-vona/modules/test-vona/test/database/dtoLazy.test.ts +0 -53
  196. package/vona/src/suite-vendor/a-vona/modules/test-vona/test/database/dtoMutate.test.ts +0 -56
  197. package/vona/src/suite-vendor/a-vona/modules/test-vona/test/database/dtoQuery.test.ts +0 -70
  198. package/vona/src/suite-vendor/a-vona/modules/test-vona/test/database/modelAggregate.test.ts +0 -222
  199. package/vona/src/suite-vendor/a-vona/modules/test-vona/test/database/modelCache.test.ts +0 -37
  200. package/vona/src/suite-vendor/a-vona/modules/test-vona/test/database/modelGeneral.test.ts +0 -18
  201. package/vona/src/suite-vendor/a-vona/modules/test-vona/test/database/modelGroup.test.ts +0 -248
  202. package/vona/src/suite-vendor/a-vona/modules/test-vona/test/database/modelMagic.test.ts +0 -37
  203. package/vona/src/suite-vendor/a-vona/modules/test-vona/test/database/modelRelations.test.ts +0 -215
  204. package/vona/src/suite-vendor/a-vona/modules/test-vona/test/database/modelRelationsJoins.test.ts +0 -58
  205. package/vona/src/suite-vendor/a-vona/modules/test-vona/test/database/modelRelationsMutate.test.ts +0 -436
  206. package/vona/src/suite-vendor/a-vona/modules/test-vona/test/database/modelWhere.test.ts +0 -173
  207. package/vona/src/suite-vendor/a-vona/modules/test-vona/test/database/orm.test.ts +0 -22
  208. package/vona/src/suite-vendor/a-vona/modules/test-vona/test/database/transaction.test.ts +0 -142
  209. package/vona/src/suite-vendor/a-vona/modules/test-vona/test/event.test.ts +0 -14
  210. package/vona/src/suite-vendor/a-vona/modules/test-vona/test/guardPassport.test.ts +0 -48
  211. package/vona/src/suite-vendor/a-vona/modules/test-vona/test/instance.test.ts +0 -35
  212. package/vona/src/suite-vendor/a-vona/modules/test-vona/test/jwt.test.ts +0 -28
  213. package/vona/src/suite-vendor/a-vona/modules/test-vona/test/locale.test.ts +0 -64
  214. package/vona/src/suite-vendor/a-vona/modules/test-vona/test/mail.test.ts +0 -14
  215. package/vona/src/suite-vendor/a-vona/modules/test-vona/test/passport.test.ts +0 -69
  216. package/vona/src/suite-vendor/a-vona/modules/test-vona/test/queue.test.ts +0 -11
  217. package/vona/src/suite-vendor/a-vona/modules/test-vona/test/runtime.test.ts +0 -24
  218. package/vona/src/suite-vendor/a-vona/modules/test-vona/test/serializer.test.ts +0 -82
  219. package/vona/src/suite-vendor/a-vona/modules/test-vona/test/static.test.ts +0 -22
  220. package/vona/src/suite-vendor/a-vona/modules/test-vona/test/tail.test.ts +0 -21
  221. package/vona/src/suite-vendor/a-vona/modules/test-vona/test/upload.test.ts +0 -75
  222. package/vona/src/suite-vendor/a-vona/modules/test-vona/test/utils/cabloyUtils.test.ts +0 -19
  223. package/vona/src/suite-vendor/a-vona/modules/test-vona/test/utils/celjs.test.ts +0 -64
  224. package/vona/src/suite-vendor/a-vona/modules/test-vona/test/utils/mappedTypes.test.ts +0 -73
  225. package/vona/src/suite-vendor/a-vona/modules/test-vona/test/utils/performAction.test.ts +0 -28
  226. package/vona/src/suite-vendor/a-vona/modules/test-vona/tsconfig.build.json +0 -11
  227. 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,2 +0,0 @@
1
- export const __ThisModule__ = 'test-vona';
2
- export { ScopeModuleTestVona as ScopeModule } from './index.ts';
@@ -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,7 +0,0 @@
1
- import { Meta } from 'vona-module-a-meta';
2
- import { BeanStaticBase } from 'vona-module-a-static';
3
-
4
- export type TypeStaticGetPath = 'img/vona.svg' | 'img/vona.png';
5
-
6
- @Meta()
7
- export class MetaStatic extends BeanStaticBase<TypeStaticGetPath> {}
@@ -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
- }
@@ -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,5 +0,0 @@
1
- import type { VonaApplication } from 'vona';
2
-
3
- export function config(_app: VonaApplication) {
4
- return {};
5
- }
@@ -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
- };