@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
@@ -97,7 +97,7 @@ import { dayjs } from "@akanjs/base";
97
97
  import { beyond, by, Database, into, Loader, type SchemaOf } from "@akanjs/document";
98
98
  import { hashPassword } from "@shared/nest";
99
99
 
100
- import { cnst } from "../cnst";
100
+ import * as cnst from "../cnst";
101
101
 
102
102
  // Input model for database operations
103
103
  @Database.Input(() => cnst.UserInput)
@@ -119,7 +119,7 @@ export class User extends by(cnst.User) {
119
119
 
120
120
  // Model with database operations
121
121
  @Database.Model(() => cnst.User)
122
- export class UserModel extends into(User, cnst.userCnst) {
122
+ export class UserModel extends into(User, cnst.userCnst, ...user.models) {
123
123
  @Loader.ByField("email") userEmailLoader: Loader<string, User>;
124
124
 
125
125
  async findByEmail(email: string) {
@@ -162,7 +162,7 @@ import { DbService, Service, Srv, Use } from "@akanjs/service";
162
162
  import { Account, type Me } from "@akanjs/signal";
163
163
  import { isPasswordMatch } from "@shared/nest";
164
164
 
165
- import { cnst } from "../cnst";
165
+ import * as cnst from "../cnst";
166
166
  import * as db from "../db";
167
167
  import type * as option from "../option";
168
168
  import type * as srv from "../srv";
@@ -208,11 +208,11 @@ Define GraphQL operations in the signal:
208
208
  import { ID } from "@akanjs/base";
209
209
  import { Account, Arg, DbSignal, Me, Mutation, Query, resolve, Signal } from "@akanjs/signal";
210
210
 
211
- import { cnst, Srvs } from "../cnst";
211
+ import * as cnst from "../cnst";
212
212
  import type * as db from "../db";
213
213
 
214
214
  @Signal(() => cnst.User)
215
- export class UserSignal extends DbSignal(cnst.userCnst, Srvs, {
215
+ export class UserSignal extends DbSignal(cnst.userCnst, cnst.Srvs, {
216
216
  guards: { get: Query.Public, cru: Mutation.Admin },
217
217
  }) {
218
218
  @Mutation.Public(() => cnst.util.AccessToken)
@@ -256,8 +256,8 @@ Implement client-side state management:
256
256
  import { StateCreator } from "zustand";
257
257
  import { immer } from "zustand/middleware/immer";
258
258
 
259
- import { cnst } from "../cnst";
260
- import * as fetch from "../fetch";
259
+ import * as cnst from "../cnst";
260
+ import * as fetch from "../sig";
261
261
 
262
262
  export interface UserState {
263
263
  users: cnst.User[];
@@ -584,30 +584,36 @@ export const Layout = () => (
584
584
  ## Best Practices
585
585
 
586
586
  1. **Naming Conventions**
587
+
587
588
  - Use PascalCase for classes and components (e.g., `UserService`, `User.Unit.tsx`)
588
589
  - Use camelCase for files (e.g., `user.service.ts`, `user.document.ts`)
589
590
 
590
591
  2. **Security**
592
+
591
593
  - Use `@Field.Secret` for sensitive data like passwords
592
594
  - Apply proper permission guards to queries and mutations (`@Query.Admin`, `@Mutation.Public`)
593
595
  - Validate input data using the `validate` option in `@Field.Prop`
594
596
 
595
597
  3. **Code Organization**
598
+
596
599
  - Keep business logic in service files
597
600
  - Use signals for API calls only, not for business logic
598
601
  - Define reusable utility methods in document models
599
602
 
600
603
  4. **Performance**
604
+
601
605
  - Use dataloader pattern (`@Loader.ByField`) for efficient database access
602
606
  - Create proper indexes in the middleware
603
607
  - Use projections to limit returned fields when appropriate
604
608
 
605
609
  5. **Testing**
610
+
606
611
  - Create signal tests for each API endpoint
607
612
  - Mock services for unit testing signals
608
613
  - Use integration tests for testing complex workflows
609
614
 
610
615
  6. **UI Components**
616
+
611
617
  - Follow the separation between Template, Unit, View, and Zone components
612
618
  - Make components reusable across different parts of the application
613
619
  - Use dictionary files for all UI text to support internationalization
@@ -84,13 +84,6 @@ export class DroneInsight {
84
84
  count: number;
85
85
  }
86
86
 
87
- // 8. Summary Model
88
- @Model.Summary("DroneSummary")
89
- export class DroneSummary {
90
- @Field.Prop(() => Int, { min: 0, default: 0, query: { status: { $ne: "inactive" } } })
91
- totalDrone: number;
92
- }
93
-
94
87
  // 9. Query Model
95
88
  export const droneQuery = {
96
89
  byName: (name: string) => ({ name }),
@@ -253,18 +246,6 @@ const droneInsight = await fetch.droneInsight({ ...query });
253
246
  const droneInsight = st.use.droneInsight(); // droneInsight.count
254
247
  ```
255
248
 
256
- ## Summary Model Implementation
257
-
258
- Summary model defines periodic statistics:
259
-
260
- ```typescript
261
- @Model.Summary("DroneSummary")
262
- export class DroneSummary {
263
- @Field.Prop(() => Int, { min: 0, default: 0, query: { status: { $ne: "inactive" } } })
264
- totalDrone: number;
265
- }
266
- ```
267
-
268
249
  **Usage Examples**:
269
250
 
270
251
  ```typescript
@@ -436,7 +417,6 @@ import { LightMission } from "../cnst_";
436
417
  ## Best Practices for Maintainable Models
437
418
 
438
419
  1. **Consistent Naming**:
439
-
440
420
  - Input: `DroneInput`
441
421
  - Object: `DroneObject`
442
422
  - Light: `LightDrone`
@@ -444,19 +424,16 @@ import { LightMission } from "../cnst_";
444
424
  - Sort: `droneSort`
445
425
 
446
426
  2. **Reference Handling**:
447
-
448
427
  - Use Light models for references
449
428
  - Avoid circular dependencies
450
429
  - Prefer direct imports over barrel files
451
430
 
452
431
  3. **Field Design**:
453
-
454
432
  - Use proper field types (Prop, Hidden, Secret, Resolve)
455
433
  - Set appropriate defaults (especially for arrays)
456
434
  - Add validation where needed
457
435
 
458
436
  4. **Performance Optimization**:
459
-
460
437
  - Use Light models for list queries
461
438
  - Keep Insight/Summary models lean
462
439
  - Use appropriate indexes for queries
@@ -509,13 +486,6 @@ export class DroneInsight {
509
486
  count: number;
510
487
  }
511
488
 
512
- // Summary Model
513
- @Model.Summary("DroneSummary")
514
- export class DroneSummary {
515
- @Field.Prop(() => Int, { query: { status: "active" } })
516
- activeDrones: number;
517
- }
518
-
519
489
  // Query Model
520
490
  export const droneQuery = {
521
491
  byStatus: (status: string) => ({ status }),
@@ -18,13 +18,7 @@ This system ensures consistent terminology across all application layers and sup
18
18
  ## 2. File Structure
19
19
 
20
20
  ```typescript
21
- import {
22
- ModelDictionary,
23
- SignalDictionary,
24
- SummaryDictionary,
25
- baseTrans,
26
- getBaseSignalTrans,
27
- } from "@akanjs/dictionary";
21
+ import { ModelDictionary, SignalDictionary, baseTrans, getBaseSignalTrans } from "@akanjs/dictionary";
28
22
 
29
23
  import type { YourModel, YourFilter, YourInsight, YourSummary } from "./your-model.constant";
30
24
  import type { YourSignal } from "./your-model.signal";
@@ -59,14 +53,6 @@ const modelDictionary = {
59
53
  // * ==================== Etc ==================== * //
60
54
  } satisfies ModelDictionary<YourModel, YourInsight, YourFilter>;
61
55
 
62
- // Summary model translations (optional)
63
- export const yourSummaryDictionary = {
64
- // * ==================== Summary ==================== * //
65
- totalItems: ["Total Items", "총 항목 수"],
66
- "desc-totalItems": ["Total item count in database", "데이터베이스의 총 항목 수"],
67
- // * ==================== Summary ==================== * //
68
- } satisfies SummaryDictionary<YourSummary>;
69
-
70
56
  // API endpoint translations
71
57
  const signalDictionary = {
72
58
  ...getBaseSignalTrans("modelName"), // Auto-generate standard API texts
@@ -341,7 +327,6 @@ Always include these imports in your dictionary file:
341
327
  import {
342
328
  ModelDictionary,
343
329
  SignalDictionary,
344
- SummaryDictionary,
345
330
  ExtendModelDictionary, // For extended models
346
331
  baseTrans, // Common translations
347
332
  getBaseSignalTrans, // Auto-generated API translations
@@ -358,17 +343,10 @@ import type { YourSummary } from "./your-model.summary"; // If using summary
358
343
  ## 10. Full Example of model.dictionary.ts
359
344
 
360
345
  ```typescript
361
- import {
362
- ModelDictionary,
363
- SignalDictionary,
364
- SummaryDictionary,
365
- baseTrans,
366
- getBaseSignalTrans,
367
- } from "@akanjs/dictionary";
346
+ import { ModelDictionary, SignalDictionary, baseTrans, getBaseSignalTrans } from "@akanjs/dictionary";
368
347
 
369
348
  import type { Post, PostFilter, PostInsight } from "./post.constant";
370
349
  import type { PostSignal } from "./post.signal";
371
- import type { PostSummary } from "./post.summary";
372
350
 
373
351
  const modelDictionary = {
374
352
  ...baseTrans,
@@ -438,19 +416,6 @@ const modelDictionary = {
438
416
  // * ==================== Etc ==================== * //
439
417
  } satisfies ModelDictionary<Post, PostInsight, PostFilter>;
440
418
 
441
- export const postSummaryDictionary = {
442
- // * ==================== Summary ==================== * //
443
- totalPosts: ["Total Posts", "총 게시물 수"],
444
- "desc-totalPosts": ["Total post count in database", "데이터베이스의 총 게시물 수"],
445
-
446
- publishedPosts: ["Published Posts", "게시된 게시물 수"],
447
- "desc-publishedPosts": ["Number of published posts", "게시된 게시물 수"],
448
-
449
- draftPosts: ["Draft Posts", "초안 게시물 수"],
450
- "desc-draftPosts": ["Number of draft posts", "초안 게시물 수"],
451
- // * ==================== Summary ==================== * //
452
- } satisfies SummaryDictionary<PostSummary>;
453
-
454
419
  const signalDictionary = {
455
420
  ...getBaseSignalTrans("post"),
456
421
 
@@ -573,7 +538,6 @@ export const settingDictionary = userSettingDictionary;
573
538
  7. **Validate Dictionary**: Run `akan dict:check` before committing changes
574
539
 
575
540
  8. **Consistent Casing**:
576
-
577
541
  - Model field names: camelCase
578
542
  - Enum values: camelCase
579
543
  - Custom keys: camelCase
@@ -495,7 +495,7 @@ Here's a complete example integrating multiple features:
495
495
  // product.document.ts
496
496
  import { dayjs } from "@akanjs/base";
497
497
  import { beyond, by, Database, into, Loader, SchemaOf } from "@akanjs/document";
498
- import { cnst } from "../cnst";
498
+ import * as cnst from "../cnst";
499
499
 
500
500
  @Database.Input(() => cnst.ProductInput)
501
501
  export class ProductInput extends by(cnst.ProductInput) {}
@@ -605,7 +605,7 @@ import { Cron } from "@akanjs/nest";
605
605
  import { DbService, Service, Srv, Use } from "@akanjs/service";
606
606
  import type { EmailApi } from "@util/nest";
607
607
 
608
- import { cnst } from "../cnst";
608
+ import * as cnst from "../cnst";
609
609
  import * as db from "../db";
610
610
  import { Revert } from "../dict";
611
611
  import type * as srv from "../srv";
@@ -23,11 +23,11 @@ import { ID, Int } from "@akanjs/base";
23
23
  import { SortOf } from "@akanjs/constant";
24
24
  import { Arg, DbSignal, Mutation, Query, resolve, Self, Signal } from "@akanjs/signal";
25
25
 
26
- import { cnst, Srvs } from "../cnst";
26
+ import * as cnst from "../cnst";
27
27
  import type * as db from "../db";
28
28
 
29
29
  @Signal(() => cnst.ModelName)
30
- export class ModelNameSignal extends DbSignal(cnst.modelNameCnst, Srvs, {
30
+ export class ModelNameSignal extends DbSignal(cnst.modelNameCnst, cnst.Srvs, {
31
31
  guards: { get: Query.Public, cru: Mutation.User },
32
32
  }) {
33
33
  // Signal methods here...
@@ -289,7 +289,7 @@ DbSignal creates standard operations that you don't need to implement:
289
289
 
290
290
  ```typescript
291
291
  @Signal(() => cnst.Board)
292
- export class BoardSignal extends DbSignal(cnst.boardCnst, Srvs, {
292
+ export class BoardSignal extends DbSignal(cnst.boardCnst, cnst.Srvs, {
293
293
  guards: { get: Query.Public, cru: Mutation.Admin },
294
294
  }) {
295
295
  // Custom methods beyond CRUD go here
@@ -409,7 +409,7 @@ async getProjectDetails(
409
409
 
410
410
  ```typescript
411
411
  @Signal(() => cnst.Product)
412
- export class ProductSignal extends DbSignal(cnst.productCnst, Srvs, {
412
+ export class ProductSignal extends DbSignal(cnst.productCnst, cnst.Srvs, {
413
413
  guards: { get: Query.Public, cru: Mutation.Admin },
414
414
  }) {
415
415
  // Custom methods beyond auto-generated CRUD
@@ -34,8 +34,8 @@ Model stores follow a consistent architecture pattern:
34
34
 
35
35
  ```typescript
36
36
  import { stateOf, Store } from "@akanjs/store";
37
- import { cnst } from "../cnst";
38
- import { fetch } from "../fetch";
37
+ import * as cnst from "../cnst";
38
+ import { fetch } from "../sig";
39
39
 
40
40
  @Store(() => cnst.Product)
41
41
  export class ProductStore extends stateOf(fetch.productGql, {
@@ -485,8 +485,8 @@ initProductChat(productId: string) {
485
485
 
486
486
  ```typescript
487
487
  import { stateOf, Store, Toast } from "@akanjs/store";
488
- import { cnst } from "../cnst";
489
- import { fetch } from "../fetch";
488
+ import * as cnst from "../cnst";
489
+ import { fetch } from "../sig";
490
490
  import { msg } from "../msg";
491
491
 
492
492
  @Store(() => cnst.Product)
@@ -1,4 +1,4 @@
1
1
  import type { AppInfo, LibInfo } from "@akanjs/devkit";
2
2
  export default function getContent(scanInfo: AppInfo | LibInfo | null, dict?: {
3
3
  [key: string]: string;
4
- }): string;
4
+ }): string | null;
@@ -1,44 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __export = (target, all) => {
6
- for (var name in all)
7
- __defProp(target, name, { get: all[name], enumerable: true });
8
- };
9
- var __copyProps = (to, from, except, desc) => {
10
- if (from && typeof from === "object" || typeof from === "function") {
11
- for (let key of __getOwnPropNames(from))
12
- if (!__hasOwnProp.call(to, key) && key !== except)
13
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
- }
15
- return to;
16
- };
17
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
-
19
- // pkgs/@akanjs/cli/src/templates/app/lib/setting/Setting.Template.tsx
20
- var Setting_Template_exports = {};
21
- __export(Setting_Template_exports, {
22
- default: () => getContent
23
- });
24
- module.exports = __toCommonJS(Setting_Template_exports);
25
- function getContent(scanInfo, dict) {
26
- return {
27
- filename: "Setting.Template.tsx",
28
- content: `
29
- "use client";
30
- import { clsx } from "@akanjs/client";
31
- import { st, usePage } from "@${dict.appName}/client";
32
-
33
- interface GeneralProps {
34
- className?: string;
35
- }
36
-
37
- export const General = ({ className }: GeneralProps) => {
38
- const settingForm = st.use.settingForm();
39
- const { l } = usePage();
40
- return <div className={clsx("", className)}></div>; // update your UI here
41
- };
42
- `
43
- };
44
- }
@@ -1,38 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __export = (target, all) => {
6
- for (var name in all)
7
- __defProp(target, name, { get: all[name], enumerable: true });
8
- };
9
- var __copyProps = (to, from, except, desc) => {
10
- if (from && typeof from === "object" || typeof from === "function") {
11
- for (let key of __getOwnPropNames(from))
12
- if (!__hasOwnProp.call(to, key) && key !== except)
13
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
- }
15
- return to;
16
- };
17
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
-
19
- // pkgs/@akanjs/cli/src/templates/app/lib/setting/Setting.Unit.tsx
20
- var Setting_Unit_exports = {};
21
- __export(Setting_Unit_exports, {
22
- default: () => getContent
23
- });
24
- module.exports = __toCommonJS(Setting_Unit_exports);
25
- function getContent(scanInfo, dict = {}) {
26
- return {
27
- filename: "Setting.Unit.tsx",
28
- content: `
29
- import { clsx, ModelProps } from "@akanjs/client";
30
-
31
- import { cnst } from "../cnst";
32
-
33
- export const Card = ({ className, setting }: ModelProps<"setting", cnst.LightSetting>) => {
34
- return <div className={clsx("", className)}>{setting.id}</div>; // update your UI here
35
- };
36
- `
37
- };
38
- }
@@ -1,40 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __export = (target, all) => {
6
- for (var name in all)
7
- __defProp(target, name, { get: all[name], enumerable: true });
8
- };
9
- var __copyProps = (to, from, except, desc) => {
10
- if (from && typeof from === "object" || typeof from === "function") {
11
- for (let key of __getOwnPropNames(from))
12
- if (!__hasOwnProp.call(to, key) && key !== except)
13
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
- }
15
- return to;
16
- };
17
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
-
19
- // pkgs/@akanjs/cli/src/templates/app/lib/setting/Setting.Util.tsx
20
- var Setting_Util_exports = {};
21
- __export(Setting_Util_exports, {
22
- default: () => getContent
23
- });
24
- module.exports = __toCommonJS(Setting_Util_exports);
25
- function getContent(scanInfo, dict = {}) {
26
- return {
27
- filename: "Setting.Util.tsx",
28
- content: `
29
- "use client";
30
- import { clsx } from "@akanjs/client";
31
-
32
- interface CustomUtilProps {
33
- className?: string;
34
- }
35
- export const CustomUtil = ({ className }: CustomUtilProps) => {
36
- return <div className={clsx("", className)}></div>; // update your UI here
37
- };
38
- `
39
- };
40
- }
@@ -1,48 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __export = (target, all) => {
6
- for (var name in all)
7
- __defProp(target, name, { get: all[name], enumerable: true });
8
- };
9
- var __copyProps = (to, from, except, desc) => {
10
- if (from && typeof from === "object" || typeof from === "function") {
11
- for (let key of __getOwnPropNames(from))
12
- if (!__hasOwnProp.call(to, key) && key !== except)
13
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
- }
15
- return to;
16
- };
17
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
-
19
- // pkgs/@akanjs/cli/src/templates/app/lib/setting/Setting.View.tsx
20
- var Setting_View_exports = {};
21
- __export(Setting_View_exports, {
22
- default: () => getContent
23
- });
24
- module.exports = __toCommonJS(Setting_View_exports);
25
- function getContent(scanInfo, dict) {
26
- return {
27
- filename: "Setting.View.tsx",
28
- content: `
29
- import { clsx } from "@akanjs/client";
30
- import { usePage } from "@${dict.appName}/client";
31
-
32
- import { cnst } from "../cnst";
33
-
34
- interface SettingViewProps {
35
- className?: string;
36
- setting: cnst.Setting;
37
- }
38
-
39
- export const General = ({ className, setting }: SettingViewProps) => {
40
- const { l } = usePage();
41
- return (
42
- <div className={clsx("", className)}>
43
- {setting.id}
44
- </div>
45
- );
46
- };`
47
- };
48
- }
@@ -1,74 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __export = (target, all) => {
6
- for (var name in all)
7
- __defProp(target, name, { get: all[name], enumerable: true });
8
- };
9
- var __copyProps = (to, from, except, desc) => {
10
- if (from && typeof from === "object" || typeof from === "function") {
11
- for (let key of __getOwnPropNames(from))
12
- if (!__hasOwnProp.call(to, key) && key !== except)
13
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
- }
15
- return to;
16
- };
17
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
-
19
- // pkgs/@akanjs/cli/src/templates/app/lib/setting/Setting.Zone.tsx
20
- var Setting_Zone_exports = {};
21
- __export(Setting_Zone_exports, {
22
- default: () => getContent
23
- });
24
- module.exports = __toCommonJS(Setting_Zone_exports);
25
- function getContent(scanInfo, dict) {
26
- return {
27
- filename: "Setting.Zone.tsx",
28
- content: `
29
- "use client";
30
- import { ModelsProps } from "@akanjs/client";
31
- import { cnst, Setting, st, usePage } from "@${dict.appName}/client";
32
- import { Model } from "@akanjs/ui";
33
- import { Loading } from "@akanjs/ui";
34
- import { useEffect } from "react";
35
- import { AiOutlineEdit } from "react-icons/ai";
36
-
37
- export const Admin = ({ sliceName = "setting" }: ModelsProps<cnst.Setting>) => {
38
- const { l } = usePage();
39
- const setting = st.use.setting();
40
- const settingModal = st.use.settingModal();
41
- useEffect(() => {
42
- void st.do.getActiveSetting();
43
- }, []);
44
- if (!setting) return <Loading.Skeleton active />;
45
-
46
- return (
47
- <div>
48
- <div className="my-2 flex items-center gap-4 text-3xl">
49
- {l("setting.modelName")}
50
- {settingModal ? null : (
51
- <button className="btn btn-sm" onClick={() => st.do.editSetting(setting.id)}>
52
- <AiOutlineEdit /> {l("shared.edit")}
53
- </button>
54
- )}
55
- </div>
56
- {settingModal === "edit" ? (
57
- <Model.EditModal
58
- sliceName="setting"
59
- type="form"
60
- onCancel={() => {
61
- st.do.resetSetting(setting);
62
- }}
63
- >
64
- <Setting.Template.General />
65
- </Model.EditModal>
66
- ) : (
67
- <Setting.View.General setting={setting} />
68
- )}
69
- </div>
70
- );
71
- };
72
- `
73
- };
74
- }
@@ -1,46 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __export = (target, all) => {
6
- for (var name in all)
7
- __defProp(target, name, { get: all[name], enumerable: true });
8
- };
9
- var __copyProps = (to, from, except, desc) => {
10
- if (from && typeof from === "object" || typeof from === "function") {
11
- for (let key of __getOwnPropNames(from))
12
- if (!__hasOwnProp.call(to, key) && key !== except)
13
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
- }
15
- return to;
16
- };
17
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
-
19
- // pkgs/@akanjs/cli/src/templates/app/lib/setting/setting.constant.ts
20
- var setting_constant_exports = {};
21
- __export(setting_constant_exports, {
22
- default: () => getContent
23
- });
24
- module.exports = __toCommonJS(setting_constant_exports);
25
- function getContent(scanInfo, dict) {
26
- return `
27
- import { from, Model, via } from "@akanjs/constant";
28
-
29
- import { libSettingInputs, libSettings, root } from "../__lib/lib.constant";
30
-
31
- @Model.Input("${dict.AppName}SettingInput")
32
- export class ${dict.AppName}SettingInput {}
33
-
34
- @Model.Input("SettingInput")
35
- export class SettingInput extends from(...libSettingInputs, ${dict.AppName}SettingInput) {}
36
-
37
- @Model.Object("SettingObject")
38
- export class SettingObject extends from(...libSettings, SettingInput) {}
39
-
40
- @Model.Light("LightSetting")
41
- export class LightSetting extends via(SettingObject, ["status"] as const) {}
42
-
43
- @Model.Full("Setting")
44
- export class Setting extends via(SettingObject, LightSetting, root.Setting, root.LightSetting) {}
45
- `;
46
- }
@@ -1,46 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __export = (target, all) => {
6
- for (var name in all)
7
- __defProp(target, name, { get: all[name], enumerable: true });
8
- };
9
- var __copyProps = (to, from, except, desc) => {
10
- if (from && typeof from === "object" || typeof from === "function") {
11
- for (let key of __getOwnPropNames(from))
12
- if (!__hasOwnProp.call(to, key) && key !== except)
13
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
- }
15
- return to;
16
- };
17
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
-
19
- // pkgs/@akanjs/cli/src/templates/app/lib/setting/setting.dictionary.ts
20
- var setting_dictionary_exports = {};
21
- __export(setting_dictionary_exports, {
22
- default: () => getContent
23
- });
24
- module.exports = __toCommonJS(setting_dictionary_exports);
25
- function getContent(scanInfo, dict) {
26
- return `
27
- import { ExtendModelDictionary, SignalDictionary } from "@akanjs/dictionary";
28
-
29
- import type { ${dict.AppName}SettingInput } from "./setting.constant";
30
- import type { SettingSignal } from "./setting.signal";
31
-
32
- const modelDictionary = {
33
- // * ==================== Model ==================== * //
34
- // * ==================== Model ==================== * //
35
- // * ==================== Etc ==================== * //
36
- // * ==================== Etc ==================== * //
37
- } satisfies ExtendModelDictionary<${dict.AppName}SettingInput>;
38
-
39
- const signalDictionary = {
40
- // * ==================== Endpoint ==================== * //
41
- // * ==================== Endpoint ==================== * //
42
- } satisfies SignalDictionary<SettingSignal, ${dict.AppName}SettingInput>;
43
-
44
- export const settingDictionary = { ...modelDictionary, ...signalDictionary };
45
- `;
46
- }