@akanjs/cli 0.9.43 → 0.9.44

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 (303) hide show
  1. package/cjs/index.js +46 -46
  2. package/cjs/src/guidelines/componentRule/componentRule.instruction.md +0 -18
  3. package/cjs/src/guidelines/cssRule/cssRule.instruction.md +2 -2
  4. package/cjs/src/guidelines/databaseModule/databaseModule.instruction.md +13 -7
  5. package/cjs/src/guidelines/modelConstant/modelConstant.instruction.md +0 -30
  6. package/cjs/src/guidelines/modelDictionary/modelDictionary.generate.json +0 -7
  7. package/cjs/src/guidelines/modelDictionary/modelDictionary.instruction.md +2 -38
  8. package/cjs/src/guidelines/modelDocument/modelDocument.instruction.md +1 -1
  9. package/cjs/src/guidelines/modelService/modelService.instruction.md +1 -1
  10. package/cjs/src/guidelines/modelSignal/modelSignal.instruction.md +4 -4
  11. package/cjs/src/guidelines/modelStore/modelStore.instruction.md +4 -4
  12. package/cjs/src/templates/app/lib/___appName__/__appName__.service.js +2 -5
  13. package/cjs/src/templates/app/lib/___appName__/__appName__.signal.js +2 -2
  14. package/cjs/src/templates/client.js +4 -5
  15. package/cjs/src/templates/index.js +2 -3
  16. package/cjs/src/templates/lib/__lib/lib.constant.js +22 -12
  17. package/cjs/src/templates/lib/__lib/lib.dictionary.js +15 -8
  18. package/cjs/src/templates/lib/__lib/lib.document.js +17 -7
  19. package/cjs/src/templates/lib/__lib/lib.service.js +14 -33
  20. package/cjs/src/templates/lib/cnst.js +19 -1
  21. package/cjs/src/templates/lib/db.js +3 -10
  22. package/cjs/src/templates/lib/dict.js +2 -2
  23. package/cjs/src/templates/lib/sig.js +20 -0
  24. package/cjs/src/templates/lib/st.js +13 -1
  25. package/cjs/src/templates/lib/usePage.js +2 -2
  26. package/cjs/src/templates/module/__model__.constant.js +0 -6
  27. package/cjs/src/templates/module/__model__.dictionary.js +1 -14
  28. package/cjs/src/templates/module/__model__.document.js +1 -1
  29. package/cjs/src/templates/module/__model__.service.js +1 -1
  30. package/cjs/src/templates/module/__model__.signal.js +2 -2
  31. package/cjs/src/templates/module/__model__.signal.spec.js +2 -2
  32. package/cjs/src/templates/module/__model__.signal.test.js +2 -2
  33. package/cjs/src/templates/module/__model__.store.js +2 -2
  34. package/cjs/src/templates/server.js +4 -3
  35. package/cjs/src/templates/workspaceRoot/.gitignore.template +0 -6
  36. package/esm/index.js +47 -47
  37. package/esm/src/guidelines/componentRule/componentRule.instruction.md +0 -18
  38. package/esm/src/guidelines/cssRule/cssRule.instruction.md +2 -2
  39. package/esm/src/guidelines/databaseModule/databaseModule.instruction.md +13 -7
  40. package/esm/src/guidelines/modelConstant/modelConstant.instruction.md +0 -30
  41. package/esm/src/guidelines/modelDictionary/modelDictionary.generate.json +0 -7
  42. package/esm/src/guidelines/modelDictionary/modelDictionary.instruction.md +2 -38
  43. package/esm/src/guidelines/modelDocument/modelDocument.instruction.md +1 -1
  44. package/esm/src/guidelines/modelService/modelService.instruction.md +1 -1
  45. package/esm/src/guidelines/modelSignal/modelSignal.instruction.md +4 -4
  46. package/esm/src/guidelines/modelStore/modelStore.instruction.md +4 -4
  47. package/esm/src/templates/app/lib/___appName__/__appName__.service.js +2 -5
  48. package/esm/src/templates/app/lib/___appName__/__appName__.signal.js +2 -2
  49. package/esm/src/templates/client.js +4 -5
  50. package/esm/src/templates/index.js +2 -3
  51. package/esm/src/templates/lib/__lib/lib.constant.js +22 -12
  52. package/esm/src/templates/lib/__lib/lib.dictionary.js +15 -8
  53. package/esm/src/templates/lib/__lib/lib.document.js +17 -7
  54. package/esm/src/templates/lib/__lib/lib.service.js +14 -33
  55. package/esm/src/templates/lib/cnst.js +19 -1
  56. package/esm/src/templates/lib/db.js +3 -10
  57. package/esm/src/templates/lib/dict.js +2 -2
  58. package/esm/src/templates/lib/sig.js +20 -0
  59. package/esm/src/templates/lib/st.js +13 -1
  60. package/esm/src/templates/lib/usePage.js +2 -2
  61. package/esm/src/templates/module/__model__.constant.js +0 -6
  62. package/esm/src/templates/module/__model__.dictionary.js +1 -14
  63. package/esm/src/templates/module/__model__.document.js +1 -1
  64. package/esm/src/templates/module/__model__.service.js +1 -1
  65. package/esm/src/templates/module/__model__.signal.js +2 -2
  66. package/esm/src/templates/module/__model__.signal.spec.js +2 -2
  67. package/esm/src/templates/module/__model__.signal.test.js +2 -2
  68. package/esm/src/templates/module/__model__.store.js +2 -2
  69. package/esm/src/templates/server.js +4 -3
  70. package/esm/src/templates/workspaceRoot/.gitignore.template +0 -6
  71. package/package.json +1 -1
  72. package/src/guidelines/componentRule/componentRule.instruction.md +0 -18
  73. package/src/guidelines/cssRule/cssRule.instruction.md +2 -2
  74. package/src/guidelines/databaseModule/databaseModule.instruction.md +13 -7
  75. package/src/guidelines/modelConstant/modelConstant.instruction.md +0 -30
  76. package/src/guidelines/modelDictionary/modelDictionary.instruction.md +2 -38
  77. package/src/guidelines/modelDocument/modelDocument.instruction.md +1 -1
  78. package/src/guidelines/modelService/modelService.instruction.md +1 -1
  79. package/src/guidelines/modelSignal/modelSignal.instruction.md +4 -4
  80. package/src/guidelines/modelStore/modelStore.instruction.md +4 -4
  81. package/src/templates/lib/cnst.d.ts +1 -1
  82. package/cjs/src/templates/app/lib/setting/Setting.Template.js +0 -44
  83. package/cjs/src/templates/app/lib/setting/Setting.Unit.js +0 -38
  84. package/cjs/src/templates/app/lib/setting/Setting.Util.js +0 -40
  85. package/cjs/src/templates/app/lib/setting/Setting.View.js +0 -48
  86. package/cjs/src/templates/app/lib/setting/Setting.Zone.js +0 -74
  87. package/cjs/src/templates/app/lib/setting/setting.constant.js +0 -46
  88. package/cjs/src/templates/app/lib/setting/setting.dictionary.js +0 -46
  89. package/cjs/src/templates/app/lib/setting/setting.document.js +0 -48
  90. package/cjs/src/templates/app/lib/setting/setting.service.js +0 -37
  91. package/cjs/src/templates/app/lib/setting/setting.signal.js +0 -34
  92. package/cjs/src/templates/app/lib/setting/setting.store.js +0 -41
  93. package/cjs/src/templates/app/lib/summary/Summary.Template.js +0 -44
  94. package/cjs/src/templates/app/lib/summary/Summary.Unit.js +0 -37
  95. package/cjs/src/templates/app/lib/summary/Summary.Util.js +0 -40
  96. package/cjs/src/templates/app/lib/summary/Summary.View.js +0 -47
  97. package/cjs/src/templates/app/lib/summary/Summary.Zone.js +0 -40
  98. package/cjs/src/templates/app/lib/summary/summary.constant.js +0 -44
  99. package/cjs/src/templates/app/lib/summary/summary.dictionary.js +0 -49
  100. package/cjs/src/templates/app/lib/summary/summary.document.js +0 -48
  101. package/cjs/src/templates/app/lib/summary/summary.service.js +0 -34
  102. package/cjs/src/templates/app/lib/summary/summary.signal.js +0 -34
  103. package/cjs/src/templates/app/lib/summary/summary.store.js +0 -41
  104. package/cjs/src/templates/app/lib/user/User.Template.js +0 -64
  105. package/cjs/src/templates/app/lib/user/User.Unit.js +0 -37
  106. package/cjs/src/templates/app/lib/user/User.Util.js +0 -48
  107. package/cjs/src/templates/app/lib/user/User.View.js +0 -64
  108. package/cjs/src/templates/app/lib/user/User.Zone.js +0 -49
  109. package/cjs/src/templates/app/lib/user/user.constant.js +0 -67
  110. package/cjs/src/templates/app/lib/user/user.dictionary.js +0 -52
  111. package/cjs/src/templates/app/lib/user/user.document.js +0 -48
  112. package/cjs/src/templates/app/lib/user/user.service.js +0 -36
  113. package/cjs/src/templates/app/lib/user/user.signal.js +0 -34
  114. package/cjs/src/templates/app/lib/user/user.signal.spec.js +0 -37
  115. package/cjs/src/templates/app/lib/user/user.signal.test.js +0 -39
  116. package/cjs/src/templates/app/lib/user/user.store.js +0 -39
  117. package/cjs/src/templates/lib/__lib/extends/summary.constant.js +0 -45
  118. package/cjs/src/templates/lib/cnst_.js +0 -54
  119. package/cjs/src/templates/lib/fetch.js +0 -48
  120. package/cjs/src/templates/lib/store.js +0 -49
  121. package/cjs/src/templates/libRoot/lib/setting/Setting.Template.js +0 -44
  122. package/cjs/src/templates/libRoot/lib/setting/Setting.Unit.js +0 -38
  123. package/cjs/src/templates/libRoot/lib/setting/Setting.Util.js +0 -40
  124. package/cjs/src/templates/libRoot/lib/setting/Setting.View.js +0 -48
  125. package/cjs/src/templates/libRoot/lib/setting/Setting.Zone.js +0 -74
  126. package/cjs/src/templates/libRoot/lib/setting/setting.constant.js +0 -46
  127. package/cjs/src/templates/libRoot/lib/setting/setting.dictionary.js +0 -46
  128. package/cjs/src/templates/libRoot/lib/setting/setting.document.js +0 -48
  129. package/cjs/src/templates/libRoot/lib/setting/setting.service.js +0 -37
  130. package/cjs/src/templates/libRoot/lib/setting/setting.signal.js +0 -34
  131. package/cjs/src/templates/libRoot/lib/setting/setting.store.js +0 -41
  132. package/cjs/src/templates/libRoot/lib/summary/Summary.Template.js +0 -44
  133. package/cjs/src/templates/libRoot/lib/summary/Summary.Unit.js +0 -37
  134. package/cjs/src/templates/libRoot/lib/summary/Summary.Util.js +0 -40
  135. package/cjs/src/templates/libRoot/lib/summary/Summary.View.js +0 -47
  136. package/cjs/src/templates/libRoot/lib/summary/Summary.Zone.js +0 -40
  137. package/cjs/src/templates/libRoot/lib/summary/summary.constant.js +0 -44
  138. package/cjs/src/templates/libRoot/lib/summary/summary.dictionary.js +0 -49
  139. package/cjs/src/templates/libRoot/lib/summary/summary.document.js +0 -48
  140. package/cjs/src/templates/libRoot/lib/summary/summary.service.js +0 -34
  141. package/cjs/src/templates/libRoot/lib/summary/summary.signal.js +0 -34
  142. package/cjs/src/templates/libRoot/lib/summary/summary.store.js +0 -41
  143. package/cjs/src/templates/libRoot/lib/user/User.Template.js +0 -64
  144. package/cjs/src/templates/libRoot/lib/user/User.Unit.js +0 -37
  145. package/cjs/src/templates/libRoot/lib/user/User.Util.js +0 -48
  146. package/cjs/src/templates/libRoot/lib/user/User.View.js +0 -64
  147. package/cjs/src/templates/libRoot/lib/user/User.Zone.js +0 -50
  148. package/cjs/src/templates/libRoot/lib/user/user.constant.js +0 -67
  149. package/cjs/src/templates/libRoot/lib/user/user.dictionary.js +0 -52
  150. package/cjs/src/templates/libRoot/lib/user/user.document.js +0 -48
  151. package/cjs/src/templates/libRoot/lib/user/user.service.js +0 -36
  152. package/cjs/src/templates/libRoot/lib/user/user.signal.js +0 -34
  153. package/cjs/src/templates/libRoot/lib/user/user.signal.spec.js +0 -37
  154. package/cjs/src/templates/libRoot/lib/user/user.signal.test.js +0 -39
  155. package/cjs/src/templates/libRoot/lib/user/user.store.js +0 -39
  156. package/esm/src/templates/app/lib/setting/Setting.Template.js +0 -24
  157. package/esm/src/templates/app/lib/setting/Setting.Unit.js +0 -18
  158. package/esm/src/templates/app/lib/setting/Setting.Util.js +0 -20
  159. package/esm/src/templates/app/lib/setting/Setting.View.js +0 -28
  160. package/esm/src/templates/app/lib/setting/Setting.Zone.js +0 -54
  161. package/esm/src/templates/app/lib/setting/setting.constant.js +0 -26
  162. package/esm/src/templates/app/lib/setting/setting.dictionary.js +0 -26
  163. package/esm/src/templates/app/lib/setting/setting.document.js +0 -28
  164. package/esm/src/templates/app/lib/setting/setting.service.js +0 -17
  165. package/esm/src/templates/app/lib/setting/setting.signal.js +0 -14
  166. package/esm/src/templates/app/lib/setting/setting.store.js +0 -21
  167. package/esm/src/templates/app/lib/summary/Summary.Template.js +0 -24
  168. package/esm/src/templates/app/lib/summary/Summary.Unit.js +0 -17
  169. package/esm/src/templates/app/lib/summary/Summary.Util.js +0 -20
  170. package/esm/src/templates/app/lib/summary/Summary.View.js +0 -27
  171. package/esm/src/templates/app/lib/summary/Summary.Zone.js +0 -20
  172. package/esm/src/templates/app/lib/summary/summary.constant.js +0 -24
  173. package/esm/src/templates/app/lib/summary/summary.dictionary.js +0 -29
  174. package/esm/src/templates/app/lib/summary/summary.document.js +0 -28
  175. package/esm/src/templates/app/lib/summary/summary.service.js +0 -14
  176. package/esm/src/templates/app/lib/summary/summary.signal.js +0 -14
  177. package/esm/src/templates/app/lib/summary/summary.store.js +0 -21
  178. package/esm/src/templates/app/lib/user/User.Template.js +0 -44
  179. package/esm/src/templates/app/lib/user/User.Unit.js +0 -17
  180. package/esm/src/templates/app/lib/user/User.Util.js +0 -28
  181. package/esm/src/templates/app/lib/user/User.View.js +0 -44
  182. package/esm/src/templates/app/lib/user/User.Zone.js +0 -29
  183. package/esm/src/templates/app/lib/user/user.constant.js +0 -47
  184. package/esm/src/templates/app/lib/user/user.dictionary.js +0 -32
  185. package/esm/src/templates/app/lib/user/user.document.js +0 -28
  186. package/esm/src/templates/app/lib/user/user.service.js +0 -16
  187. package/esm/src/templates/app/lib/user/user.signal.js +0 -14
  188. package/esm/src/templates/app/lib/user/user.signal.spec.js +0 -17
  189. package/esm/src/templates/app/lib/user/user.signal.test.js +0 -19
  190. package/esm/src/templates/app/lib/user/user.store.js +0 -19
  191. package/esm/src/templates/lib/__lib/extends/summary.constant.js +0 -25
  192. package/esm/src/templates/lib/cnst_.js +0 -34
  193. package/esm/src/templates/lib/fetch.js +0 -28
  194. package/esm/src/templates/lib/store.js +0 -29
  195. package/esm/src/templates/libRoot/lib/setting/Setting.Template.js +0 -24
  196. package/esm/src/templates/libRoot/lib/setting/Setting.Unit.js +0 -18
  197. package/esm/src/templates/libRoot/lib/setting/Setting.Util.js +0 -20
  198. package/esm/src/templates/libRoot/lib/setting/Setting.View.js +0 -28
  199. package/esm/src/templates/libRoot/lib/setting/Setting.Zone.js +0 -54
  200. package/esm/src/templates/libRoot/lib/setting/setting.constant.js +0 -26
  201. package/esm/src/templates/libRoot/lib/setting/setting.dictionary.js +0 -26
  202. package/esm/src/templates/libRoot/lib/setting/setting.document.js +0 -28
  203. package/esm/src/templates/libRoot/lib/setting/setting.service.js +0 -17
  204. package/esm/src/templates/libRoot/lib/setting/setting.signal.js +0 -14
  205. package/esm/src/templates/libRoot/lib/setting/setting.store.js +0 -21
  206. package/esm/src/templates/libRoot/lib/summary/Summary.Template.js +0 -24
  207. package/esm/src/templates/libRoot/lib/summary/Summary.Unit.js +0 -17
  208. package/esm/src/templates/libRoot/lib/summary/Summary.Util.js +0 -20
  209. package/esm/src/templates/libRoot/lib/summary/Summary.View.js +0 -27
  210. package/esm/src/templates/libRoot/lib/summary/Summary.Zone.js +0 -20
  211. package/esm/src/templates/libRoot/lib/summary/summary.constant.js +0 -24
  212. package/esm/src/templates/libRoot/lib/summary/summary.dictionary.js +0 -29
  213. package/esm/src/templates/libRoot/lib/summary/summary.document.js +0 -28
  214. package/esm/src/templates/libRoot/lib/summary/summary.service.js +0 -14
  215. package/esm/src/templates/libRoot/lib/summary/summary.signal.js +0 -14
  216. package/esm/src/templates/libRoot/lib/summary/summary.store.js +0 -21
  217. package/esm/src/templates/libRoot/lib/user/User.Template.js +0 -44
  218. package/esm/src/templates/libRoot/lib/user/User.Unit.js +0 -17
  219. package/esm/src/templates/libRoot/lib/user/User.Util.js +0 -28
  220. package/esm/src/templates/libRoot/lib/user/User.View.js +0 -44
  221. package/esm/src/templates/libRoot/lib/user/User.Zone.js +0 -30
  222. package/esm/src/templates/libRoot/lib/user/user.constant.js +0 -47
  223. package/esm/src/templates/libRoot/lib/user/user.dictionary.js +0 -32
  224. package/esm/src/templates/libRoot/lib/user/user.document.js +0 -28
  225. package/esm/src/templates/libRoot/lib/user/user.service.js +0 -16
  226. package/esm/src/templates/libRoot/lib/user/user.signal.js +0 -14
  227. package/esm/src/templates/libRoot/lib/user/user.signal.spec.js +0 -17
  228. package/esm/src/templates/libRoot/lib/user/user.signal.test.js +0 -19
  229. package/esm/src/templates/libRoot/lib/user/user.store.js +0 -19
  230. package/src/templates/app/lib/setting/Setting.Template.d.ts +0 -9
  231. package/src/templates/app/lib/setting/Setting.Unit.d.ts +0 -9
  232. package/src/templates/app/lib/setting/Setting.Util.d.ts +0 -9
  233. package/src/templates/app/lib/setting/Setting.View.d.ts +0 -9
  234. package/src/templates/app/lib/setting/Setting.Zone.d.ts +0 -9
  235. package/src/templates/app/lib/setting/setting.constant.d.ts +0 -7
  236. package/src/templates/app/lib/setting/setting.dictionary.d.ts +0 -7
  237. package/src/templates/app/lib/setting/setting.document.d.ts +0 -6
  238. package/src/templates/app/lib/setting/setting.service.d.ts +0 -7
  239. package/src/templates/app/lib/setting/setting.signal.d.ts +0 -6
  240. package/src/templates/app/lib/setting/setting.store.d.ts +0 -6
  241. package/src/templates/app/lib/summary/Summary.Template.d.ts +0 -9
  242. package/src/templates/app/lib/summary/Summary.Unit.d.ts +0 -9
  243. package/src/templates/app/lib/summary/Summary.Util.d.ts +0 -9
  244. package/src/templates/app/lib/summary/Summary.View.d.ts +0 -9
  245. package/src/templates/app/lib/summary/Summary.Zone.d.ts +0 -9
  246. package/src/templates/app/lib/summary/summary.constant.d.ts +0 -7
  247. package/src/templates/app/lib/summary/summary.dictionary.d.ts +0 -7
  248. package/src/templates/app/lib/summary/summary.document.d.ts +0 -6
  249. package/src/templates/app/lib/summary/summary.service.d.ts +0 -7
  250. package/src/templates/app/lib/summary/summary.signal.d.ts +0 -6
  251. package/src/templates/app/lib/summary/summary.store.d.ts +0 -6
  252. package/src/templates/app/lib/user/User.Template.d.ts +0 -9
  253. package/src/templates/app/lib/user/User.Unit.d.ts +0 -9
  254. package/src/templates/app/lib/user/User.Util.d.ts +0 -9
  255. package/src/templates/app/lib/user/User.View.d.ts +0 -9
  256. package/src/templates/app/lib/user/User.Zone.d.ts +0 -9
  257. package/src/templates/app/lib/user/user.constant.d.ts +0 -7
  258. package/src/templates/app/lib/user/user.dictionary.d.ts +0 -7
  259. package/src/templates/app/lib/user/user.document.d.ts +0 -7
  260. package/src/templates/app/lib/user/user.service.d.ts +0 -7
  261. package/src/templates/app/lib/user/user.signal.d.ts +0 -6
  262. package/src/templates/app/lib/user/user.signal.spec.d.ts +0 -6
  263. package/src/templates/app/lib/user/user.signal.test.d.ts +0 -6
  264. package/src/templates/app/lib/user/user.store.d.ts +0 -6
  265. package/src/templates/lib/__lib/extends/summary.constant.d.ts +0 -4
  266. package/src/templates/lib/cnst_.d.ts +0 -4
  267. package/src/templates/lib/fetch.d.ts +0 -4
  268. package/src/templates/lib/store.d.ts +0 -4
  269. package/src/templates/libRoot/lib/setting/Setting.Template.d.ts +0 -9
  270. package/src/templates/libRoot/lib/setting/Setting.Unit.d.ts +0 -9
  271. package/src/templates/libRoot/lib/setting/Setting.Util.d.ts +0 -9
  272. package/src/templates/libRoot/lib/setting/Setting.View.d.ts +0 -9
  273. package/src/templates/libRoot/lib/setting/Setting.Zone.d.ts +0 -9
  274. package/src/templates/libRoot/lib/setting/setting.constant.d.ts +0 -7
  275. package/src/templates/libRoot/lib/setting/setting.dictionary.d.ts +0 -7
  276. package/src/templates/libRoot/lib/setting/setting.document.d.ts +0 -6
  277. package/src/templates/libRoot/lib/setting/setting.service.d.ts +0 -7
  278. package/src/templates/libRoot/lib/setting/setting.signal.d.ts +0 -6
  279. package/src/templates/libRoot/lib/setting/setting.store.d.ts +0 -6
  280. package/src/templates/libRoot/lib/summary/Summary.Template.d.ts +0 -9
  281. package/src/templates/libRoot/lib/summary/Summary.Unit.d.ts +0 -9
  282. package/src/templates/libRoot/lib/summary/Summary.Util.d.ts +0 -9
  283. package/src/templates/libRoot/lib/summary/Summary.View.d.ts +0 -9
  284. package/src/templates/libRoot/lib/summary/Summary.Zone.d.ts +0 -9
  285. package/src/templates/libRoot/lib/summary/summary.constant.d.ts +0 -7
  286. package/src/templates/libRoot/lib/summary/summary.dictionary.d.ts +0 -7
  287. package/src/templates/libRoot/lib/summary/summary.document.d.ts +0 -6
  288. package/src/templates/libRoot/lib/summary/summary.service.d.ts +0 -7
  289. package/src/templates/libRoot/lib/summary/summary.signal.d.ts +0 -6
  290. package/src/templates/libRoot/lib/summary/summary.store.d.ts +0 -6
  291. package/src/templates/libRoot/lib/user/User.Template.d.ts +0 -9
  292. package/src/templates/libRoot/lib/user/User.Unit.d.ts +0 -9
  293. package/src/templates/libRoot/lib/user/User.Util.d.ts +0 -9
  294. package/src/templates/libRoot/lib/user/User.View.d.ts +0 -9
  295. package/src/templates/libRoot/lib/user/User.Zone.d.ts +0 -9
  296. package/src/templates/libRoot/lib/user/user.constant.d.ts +0 -7
  297. package/src/templates/libRoot/lib/user/user.dictionary.d.ts +0 -7
  298. package/src/templates/libRoot/lib/user/user.document.d.ts +0 -7
  299. package/src/templates/libRoot/lib/user/user.service.d.ts +0 -7
  300. package/src/templates/libRoot/lib/user/user.signal.d.ts +0 -6
  301. package/src/templates/libRoot/lib/user/user.signal.spec.d.ts +0 -6
  302. package/src/templates/libRoot/lib/user/user.signal.test.d.ts +0 -6
  303. package/src/templates/libRoot/lib/user/user.store.d.ts +0 -6
@@ -1,14 +0,0 @@
1
- // pkgs/@akanjs/cli/src/templates/libRoot/lib/summary/summary.signal.ts
2
- function getContent(scanInfo, dict = {}) {
3
- return `
4
- import { LogSignal, Signal } from "@akanjs/signal";
5
-
6
- import { cnst, Srvs } from "../cnst";
7
-
8
- @Signal(() => cnst.Summary)
9
- export class SummarySignal extends LogSignal(Srvs) {}
10
- `;
11
- }
12
- export {
13
- getContent as default
14
- };
@@ -1,21 +0,0 @@
1
- // pkgs/@akanjs/cli/src/templates/libRoot/lib/summary/summary.store.ts
2
- function getContent(scanInfo, dict = {}) {
3
- return `
4
- import { stateOf, Store } from "@akanjs/store";
5
-
6
- import { cnst } from "../cnst";
7
- import { fetch, summaryGql } from "../fetch";
8
-
9
- @Store(() => cnst.Summary)
10
- export class SummaryStore extends stateOf(summaryGql, {
11
- // state
12
- }) {
13
- async getActiveSummary() {
14
- this.set({ summary: (await fetch.getActiveSummary()) as cnst.Summary, summaryLoading: false });
15
- }
16
- }
17
- `;
18
- }
19
- export {
20
- getContent as default
21
- };
@@ -1,44 +0,0 @@
1
- // pkgs/@akanjs/cli/src/templates/libRoot/lib/user/User.Template.tsx
2
- function getContent(scanInfo, dict) {
3
- return {
4
- filename: "User.Template.tsx",
5
- content: `
6
- "use client";
7
- import { clsx } from "@akanjs/client";
8
- import { Field } from "@shared/ui";
9
- import { Layout } from "@akanjs/ui";
10
- import { st, usePage } from "@${dict.libName}/client";
11
-
12
- interface UserEditProps {
13
- className?: string;
14
- }
15
-
16
- export const General = ({ className }: UserEditProps) => {
17
- const userForm = st.use.userForm();
18
- const { l } = usePage();
19
- return (
20
- <Layout.Template className={clsx("flex flex-col gap-4", className)}>
21
- <div className="w-[150px] flex mt-10 md:mt-0">
22
- <Field.Img
23
- label={l.field("user", "image")}
24
- desc={l.desc("user", "image")}
25
- sliceName="user"
26
- value={userForm.image}
27
- onChange={st.do.setImageOnUser}
28
- />
29
- </div>
30
- <Field.Text
31
- label={l.field("user", "nickname")}
32
- desc={l.desc("user", "nickname")}
33
- value={userForm.nickname}
34
- onChange={st.do.setNicknameOnUser}
35
- />
36
- </Layout.Template>
37
- );
38
- };
39
- `
40
- };
41
- }
42
- export {
43
- getContent as default
44
- };
@@ -1,17 +0,0 @@
1
- // pkgs/@akanjs/cli/src/templates/libRoot/lib/user/User.Unit.tsx
2
- function getContent(scanInfo, dict = {}) {
3
- return {
4
- filename: "User.Unit.tsx",
5
- content: `
6
- import { clsx, ModelProps } from "@akanjs/client";
7
- import { cnst } from "@${dict.libName}/client";
8
-
9
- export const Card = ({ className, user }: ModelProps<"user", cnst.LightUser>) => {
10
- return <div className={clsx("", className)}>{user.id}</div>; // update your UI here
11
- };
12
- `
13
- };
14
- }
15
- export {
16
- getContent as default
17
- };
@@ -1,28 +0,0 @@
1
- // pkgs/@akanjs/cli/src/templates/libRoot/lib/user/User.Util.tsx
2
- function getContent(scanInfo, dict) {
3
- return {
4
- filename: "User.Util.tsx",
5
- content: `
6
- "use client";
7
- import { clsx, st } from "@${dict.libName}/client";
8
- import { AiOutlineEdit, AiOutlineLock, AiOutlineUnlock } from "react-icons/ai";
9
-
10
- interface EditSelfProps {
11
- className?: string;
12
- }
13
- export const EditSelf = ({ className }: EditSelfProps) => {
14
- const self = st.use.self();
15
- const userModal = st.use.userModal();
16
- return userModal !== "edit" ? (
17
- <button className={clsx("gap-2 btn", className)} onClick={() => st.do.editUser(self)}>
18
- <AiOutlineEdit />
19
- Edit
20
- </button>
21
- ) : null;
22
- };
23
- `
24
- };
25
- }
26
- export {
27
- getContent as default
28
- };
@@ -1,44 +0,0 @@
1
- // pkgs/@akanjs/cli/src/templates/libRoot/lib/user/User.View.tsx
2
- function getContent(scanInfo, dict) {
3
- return {
4
- filename: "User.View.tsx",
5
- content: `
6
- import { clsx } from "@akanjs/client";
7
- import { cnst, usePage } from "@${dict.libName}/client";
8
- import { Avatar } from "@util/ui";
9
- import { AiOutlineUser } from "react-icons/ai";
10
-
11
- interface UserViewProps {
12
- className?: string;
13
- user: cnst.User;
14
- }
15
-
16
- export const General = ({ className, user }: UserViewProps) => {
17
- const { l } = usePage();
18
- return (
19
- <div className={clsx("flex flex-col gap-4", className)}>
20
- <div>
21
- <div className="font-bold">Profile</div>
22
- <div className="text-base">
23
- <Avatar
24
- className="flex items-center justify-center w-24 h-24"
25
- icon={<AiOutlineUser className="text-4xl" />}
26
- src={user.image?.url}
27
- />
28
- </div>
29
- </div>
30
- <div>
31
- <div className="flex gap-2 items-center">
32
- <div className="font-bold">Nickname</div>
33
- </div>
34
- <p className="text-base">{user.nickname}</p>
35
- </div>
36
- </div>
37
- );
38
- };
39
- `
40
- };
41
- }
42
- export {
43
- getContent as default
44
- };
@@ -1,30 +0,0 @@
1
- // pkgs/@akanjs/cli/src/templates/libRoot/lib/user/User.Zone.tsx
2
- function getContent(scanInfo, dict) {
3
- return {
4
- filename: "User.Zone.tsx",
5
- content: `
6
- "use client";
7
- import { st, User } from "@${dict.libName}/client";
8
- import { Model } from "@akanjs/ui";
9
-
10
-
11
- interface SelfProps {
12
- className?: string;
13
- }
14
- export const Self = ({ className }: SelfProps) => {
15
- const self = st.use.self();
16
- const userModal = st.use.userModal();
17
- return userModal === "edit" ? (
18
- <Model.EditModal type="form" sliceName="user" submitOption={{ path: "self" }}>
19
- <User.Template.General />
20
- </Model.EditModal>
21
- ) : (
22
- <User.View.General className={className} user={self} />
23
- );
24
- };
25
- `
26
- };
27
- }
28
- export {
29
- getContent as default
30
- };
@@ -1,47 +0,0 @@
1
- // pkgs/@akanjs/cli/src/templates/libRoot/lib/user/user.constant.ts
2
- function getContent(scanInfo, dict) {
3
- return `
4
- import { as, from, Model, sortOf, via } from "@akanjs/constant";
5
-
6
- import {
7
- libUserFilters,
8
- libUserInputs,
9
- libUserInsights,
10
- libUsers,
11
- libUserSummaries,
12
- root,
13
- } from "../__lib/lib.constant";
14
-
15
- @Model.Input("${dict.LibName}UserInput")
16
- export class ${dict.LibName}UserInput {}
17
-
18
- @Model.Object("${dict.LibName}User")
19
- export class ${dict.LibName}User extends as(${dict.LibName}UserInput) {}
20
-
21
- @Model.Insight("${dict.LibName}UserInsight")
22
- export class ${dict.LibName}UserInsight {}
23
-
24
- @Model.Summary("${dict.LibName}UserSummary")
25
- export class ${dict.LibName}UserSummary {}
26
-
27
- @Model.Filter("${dict.LibName}UserFilter")
28
- export class ${dict.LibName}UserFilter extends sortOf(root.User, {}) {}
29
-
30
- export class UserInput extends from(...libUserInputs, ${dict.LibName}UserInput) {}
31
- export class UserObject extends from(...libUsers, ${dict.LibName}User) {}
32
-
33
- @Model.Light("LightUser")
34
- export class LightUser extends via(UserObject, ["nickname", "image", "roles", "status"] as const) {}
35
-
36
- @Model.Full("User")
37
- export class User extends via(UserObject, LightUser, root.User, root.LightUser) {}
38
-
39
- export class UserSummary extends from(...libUserSummaries, ${dict.LibName}UserSummary) {}
40
- export class UserInsight extends from(...libUserInsights, ${dict.LibName}UserInsight) {}
41
-
42
- export class UserFilter extends from(...libUserFilters, ${dict.LibName}UserFilter) {}
43
- `;
44
- }
45
- export {
46
- getContent as default
47
- };
@@ -1,32 +0,0 @@
1
- // pkgs/@akanjs/cli/src/templates/libRoot/lib/user/user.dictionary.ts
2
- function getContent(scanInfo, dict) {
3
- return `
4
- import { ExtendModelDictionary, SignalDictionary, SummaryDictionary } from "@akanjs/dictionary";
5
-
6
- import type { ${dict.Libname}User, ${dict.Libname}UserFilter, ${dict.Libname}UserInsight, ${dict.Libname}UserSummary } from "./user.constant";
7
- import type { UserSignal } from "./user.signal";
8
-
9
- const modelDictionary = {
10
- // * ==================== Model ==================== * //
11
- // * ==================== Model ==================== * //
12
- // * ==================== Insight ==================== * //
13
- // * ==================== Insight ==================== * //
14
- // * ==================== Filter ==================== * //
15
- // * ==================== Filter ==================== * //
16
- // * ==================== Etc ==================== * //
17
- // * ==================== Etc ==================== * //
18
- } satisfies ExtendModelDictionary<${dict.Libname}User, ${dict.Libname}UserInsight, ${dict.Libname}UserFilter>;
19
-
20
- export const userSummaryDictionary = {} satisfies SummaryDictionary<${dict.Libname}UserSummary>;
21
-
22
- const signalDictionary = {
23
- // * ==================== Endpoint ==================== * //
24
- // * ==================== Endpoint ==================== * //
25
- } satisfies SignalDictionary<UserSignal, ${dict.Libname}User>;
26
-
27
- export const userDictionary = { ...modelDictionary, ...signalDictionary };
28
- `;
29
- }
30
- export {
31
- getContent as default
32
- };
@@ -1,28 +0,0 @@
1
- // pkgs/@akanjs/cli/src/templates/libRoot/lib/user/user.document.ts
2
- function getContent(scanInfo, dict) {
3
- return `
4
- import { beyond, by, Database, into, type SchemaOf } from "@akanjs/document";
5
-
6
- import { rootUser } from "../__lib/lib.document";
7
- import { cnst } from "../cnst";
8
-
9
- @Database.Input(() => cnst.UserInput)
10
- export class UserInput extends by(rootUser.Input, cnst.UserInput) {}
11
-
12
- @Database.Document(() => cnst.User)
13
- export class User extends by(rootUser.Doc, cnst.User) {}
14
-
15
- @Database.Model(() => cnst.User)
16
- export class UserModel extends into(User, cnst.userCnst) {}
17
-
18
- @Database.Middleware(() => cnst.User)
19
- export class UserMiddleware extends beyond(UserModel, User) {
20
- onSchema(schema: SchemaOf<UserModel, User>) {
21
- //
22
- }
23
- }
24
- `;
25
- }
26
- export {
27
- getContent as default
28
- };
@@ -1,16 +0,0 @@
1
- // pkgs/@akanjs/cli/src/templates/libRoot/lib/user/user.service.ts
2
- function getContent(scanInfo, dict) {
3
- return `
4
- import { ExtendedUserService, Service } from "@akanjs/service";
5
-
6
- import { LibUserService } from "../__lib/lib.service";
7
- import { cnst } from "../cnst";
8
- import * as db from "../db";
9
-
10
- @Service("UserService")
11
- export class UserService extends ExtendedUserService(db.userDb, LibUserService) {}
12
- `;
13
- }
14
- export {
15
- getContent as default
16
- };
@@ -1,14 +0,0 @@
1
- // pkgs/@akanjs/cli/src/templates/libRoot/lib/user/user.signal.ts
2
- function getContent(scanInfo, dict = {}) {
3
- return `
4
- import { LogSignal, Signal } from "@akanjs/signal";
5
-
6
- import { cnst, Srvs } from "../cnst";
7
-
8
- @Signal(() => cnst.User)
9
- export class UserSignal extends LogSignal(Srvs) {}
10
- `;
11
- }
12
- export {
13
- getContent as default
14
- };
@@ -1,17 +0,0 @@
1
- // pkgs/@akanjs/cli/src/templates/libRoot/lib/user/user.signal.spec.ts
2
- function getContent(scanInfo, dict = {}) {
3
- return `
4
- import * as adminSpec from "@shared/lib/admin/admin.signal.spec";
5
- import * as userSpec from "@shared/lib/user/user.signal.spec";
6
-
7
- import { cnst } from "../cnst";
8
- import { fetch } from "../fetch";
9
-
10
- export * from "@shared/lib/user/user.signal.spec";
11
- export type UserAgent = userSpec.UserAgent<typeof fetch, cnst.User, cnst.UserInput>;
12
- export type AdminAgent = adminSpec.AdminAgent<typeof fetch>;
13
- `;
14
- }
15
- export {
16
- getContent as default
17
- };
@@ -1,19 +0,0 @@
1
- // pkgs/@akanjs/cli/src/templates/libRoot/lib/user/user.signal.test.ts
2
- function getContent(scanInfo, dict) {
3
- return `
4
- import * as userSpec from "@${dict.libName}/lib/user/user.signal.spec";
5
-
6
- describe("User Signal", () => {
7
- describe("Sign", () => {
8
- let adminAgent: userSpec.AdminAgent;
9
- let userAgent: userSpec.UserAgent;
10
- it("can signup", async () => {
11
- //
12
- });
13
- });
14
- });
15
- `;
16
- }
17
- export {
18
- getContent as default
19
- };
@@ -1,19 +0,0 @@
1
- // pkgs/@akanjs/cli/src/templates/libRoot/lib/user/user.store.ts
2
- function getContent(scanInfo, dict = {}) {
3
- return `
4
- import { stateOf, Store } from "@akanjs/store";
5
-
6
- import { cnst } from "../cnst";
7
- import { fetch, userGql } from "../fetch";
8
-
9
- @Store(() => cnst.User)
10
- export class UserStore extends stateOf(userGql, {
11
- self: fetch.defaultUser as cnst.User,
12
- }) {
13
- //
14
- }
15
- `;
16
- }
17
- export {
18
- getContent as default
19
- };
@@ -1,9 +0,0 @@
1
- import type { AppInfo, LibInfo } from "@akanjs/devkit";
2
- interface Dict {
3
- appName: string;
4
- }
5
- export default function getContent(scanInfo: AppInfo | LibInfo | null, dict: Dict): {
6
- filename: string;
7
- content: string;
8
- };
9
- export {};
@@ -1,9 +0,0 @@
1
- import type { AppInfo, LibInfo } from "@akanjs/devkit";
2
- interface Dict {
3
- [key: string]: string;
4
- }
5
- export default function getContent(scanInfo: AppInfo | LibInfo | null, dict?: Dict): {
6
- filename: string;
7
- content: string;
8
- };
9
- export {};
@@ -1,9 +0,0 @@
1
- import type { AppInfo, LibInfo } from "@akanjs/devkit";
2
- interface Dict {
3
- [key: string]: string;
4
- }
5
- export default function getContent(scanInfo: AppInfo | LibInfo | null, dict?: Dict): {
6
- filename: string;
7
- content: string;
8
- };
9
- export {};
@@ -1,9 +0,0 @@
1
- import type { AppInfo, LibInfo } from "@akanjs/devkit";
2
- interface Dict {
3
- appName: string;
4
- }
5
- export default function getContent(scanInfo: AppInfo | LibInfo | null, dict: Dict): {
6
- filename: string;
7
- content: string;
8
- };
9
- export {};
@@ -1,9 +0,0 @@
1
- import type { AppInfo, LibInfo } from "@akanjs/devkit";
2
- interface Dict {
3
- appName: string;
4
- }
5
- export default function getContent(scanInfo: AppInfo | LibInfo | null, dict: Dict): {
6
- filename: string;
7
- content: string;
8
- };
9
- export {};
@@ -1,7 +0,0 @@
1
- import type { AppInfo, LibInfo } from "@akanjs/devkit";
2
- interface Dict {
3
- appName: string;
4
- AppName: string;
5
- }
6
- export default function getContent(scanInfo: AppInfo | LibInfo | null, dict: Dict): string;
7
- export {};
@@ -1,7 +0,0 @@
1
- import type { AppInfo, LibInfo } from "@akanjs/devkit";
2
- interface Dict {
3
- appName: string;
4
- AppName: string;
5
- }
6
- export default function getContent(scanInfo: AppInfo | LibInfo | null, dict: Dict): string;
7
- export {};
@@ -1,6 +0,0 @@
1
- import type { AppInfo, LibInfo } from "@akanjs/devkit";
2
- interface Dict {
3
- [key: string]: string;
4
- }
5
- export default function getContent(scanInfo: AppInfo | LibInfo | null, dict?: Dict): string;
6
- export {};
@@ -1,7 +0,0 @@
1
- import type { AppInfo, LibInfo } from "@akanjs/devkit";
2
- interface Dict {
3
- appName: string;
4
- AppName: string;
5
- }
6
- export default function getContent(scanInfo: AppInfo | LibInfo | null, dict: Dict): string;
7
- export {};
@@ -1,6 +0,0 @@
1
- import type { AppInfo, LibInfo } from "@akanjs/devkit";
2
- interface Dict {
3
- [key: string]: string;
4
- }
5
- export default function getContent(scanInfo: AppInfo | LibInfo | null, dict?: Dict): string;
6
- export {};
@@ -1,6 +0,0 @@
1
- import type { AppInfo, LibInfo } from "@akanjs/devkit";
2
- interface Dict {
3
- [key: string]: string;
4
- }
5
- export default function getContent(scanInfo: AppInfo | LibInfo | null, dict?: Dict): string;
6
- export {};
@@ -1,9 +0,0 @@
1
- import type { AppInfo, LibInfo } from "@akanjs/devkit";
2
- interface Dict {
3
- appName: string;
4
- }
5
- export default function getContent(scanInfo: AppInfo | LibInfo | null, dict: Dict): {
6
- filename: string;
7
- content: string;
8
- };
9
- export {};
@@ -1,9 +0,0 @@
1
- import type { AppInfo, LibInfo } from "@akanjs/devkit";
2
- interface Dict {
3
- [key: string]: string;
4
- }
5
- export default function getContent(scanInfo: AppInfo | LibInfo | null, dict?: Dict): {
6
- filename: string;
7
- content: string;
8
- };
9
- export {};
@@ -1,9 +0,0 @@
1
- import type { AppInfo, LibInfo } from "@akanjs/devkit";
2
- interface Dict {
3
- [key: string]: string;
4
- }
5
- export default function getContent(scanInfo: AppInfo | LibInfo | null, dict?: Dict): {
6
- filename: string;
7
- content: string;
8
- };
9
- export {};
@@ -1,9 +0,0 @@
1
- import type { AppInfo, LibInfo } from "@akanjs/devkit";
2
- interface Dict {
3
- appName: string;
4
- }
5
- export default function getContent(scanInfo: AppInfo | LibInfo | null, dict: Dict): {
6
- filename: string;
7
- content: string;
8
- };
9
- export {};
@@ -1,9 +0,0 @@
1
- import type { AppInfo, LibInfo } from "@akanjs/devkit";
2
- interface Dict {
3
- appName: string;
4
- }
5
- export default function getContent(scanInfo: AppInfo | LibInfo | null, dict: Dict): {
6
- filename: string;
7
- content: string;
8
- };
9
- export {};
@@ -1,7 +0,0 @@
1
- import type { AppInfo, LibInfo } from "@akanjs/devkit";
2
- interface Dict {
3
- appName: string;
4
- AppName: string;
5
- }
6
- export default function getContent(scanInfo: AppInfo | LibInfo | null, dict: Dict): string;
7
- export {};
@@ -1,7 +0,0 @@
1
- import type { AppInfo, LibInfo } from "@akanjs/devkit";
2
- interface Dict {
3
- appName: string;
4
- AppName: string;
5
- }
6
- export default function getContent(scanInfo: AppInfo | LibInfo | null, dict: Dict): string;
7
- export {};
@@ -1,6 +0,0 @@
1
- import type { AppInfo, LibInfo } from "@akanjs/devkit";
2
- interface Dict {
3
- [key: string]: string;
4
- }
5
- export default function getContent(scanInfo: AppInfo | LibInfo | null, dict?: Dict): string;
6
- export {};
@@ -1,7 +0,0 @@
1
- import type { AppInfo, LibInfo } from "@akanjs/devkit";
2
- interface Dict {
3
- appName: string;
4
- AppName: string;
5
- }
6
- export default function getContent(scanInfo: AppInfo | LibInfo | null, dict: Dict): string;
7
- export {};
@@ -1,6 +0,0 @@
1
- import type { AppInfo, LibInfo } from "@akanjs/devkit";
2
- interface Dict {
3
- [key: string]: string;
4
- }
5
- export default function getContent(scanInfo: AppInfo | LibInfo | null, dict?: Dict): string;
6
- export {};
@@ -1,6 +0,0 @@
1
- import type { AppInfo, LibInfo } from "@akanjs/devkit";
2
- interface Dict {
3
- [key: string]: string;
4
- }
5
- export default function getContent(scanInfo: AppInfo | LibInfo | null, dict?: Dict): string;
6
- export {};
@@ -1,9 +0,0 @@
1
- import type { AppInfo, LibInfo } from "@akanjs/devkit";
2
- interface Dict {
3
- appName: string;
4
- }
5
- export default function getContent(scanInfo: AppInfo | LibInfo | null, dict: Dict): {
6
- filename: string;
7
- content: string;
8
- };
9
- export {};
@@ -1,9 +0,0 @@
1
- import type { AppInfo, LibInfo } from "@akanjs/devkit";
2
- interface Dict {
3
- [key: string]: string;
4
- }
5
- export default function getContent(scanInfo: AppInfo | LibInfo | null, dict?: Dict): {
6
- filename: string;
7
- content: string;
8
- };
9
- export {};
@@ -1,9 +0,0 @@
1
- import type { AppInfo, LibInfo } from "@akanjs/devkit";
2
- interface Dict {
3
- appName: string;
4
- }
5
- export default function getContent(scanInfo: AppInfo | LibInfo | null, dict: Dict): {
6
- filename: string;
7
- content: string;
8
- };
9
- export {};
@@ -1,9 +0,0 @@
1
- import type { AppInfo, LibInfo } from "@akanjs/devkit";
2
- interface Dict {
3
- appName: string;
4
- }
5
- export default function getContent(scanInfo: AppInfo | LibInfo | null, dict: Dict): {
6
- filename: string;
7
- content: string;
8
- };
9
- export {};