@akanjs/cli 0.0.149 → 0.0.151

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 (290) hide show
  1. package/cjs/index.js +28 -20
  2. package/cjs/src/guidelines/componentRule/componentRule.generate.json +131 -0
  3. package/cjs/src/guidelines/componentRule/componentRule.instruction.md +7 -6
  4. package/cjs/src/guidelines/cssRule/cssRule.generate.json +93 -0
  5. package/cjs/src/guidelines/databaseModule/databaseModule.generate.json +51 -0
  6. package/cjs/src/guidelines/databaseModule/databaseModule.instruction.md +4 -17
  7. package/cjs/src/guidelines/docPageRule/docPageRule.generate.json +72 -0
  8. package/cjs/src/guidelines/enumConstant/enumConstant.generate.json +24 -0
  9. package/cjs/src/guidelines/fieldDecorator/fieldDecorator.generate.json +135 -0
  10. package/cjs/src/guidelines/framework/framework.generate.json +119 -0
  11. package/cjs/src/guidelines/howToUseStore/howToUseStore.generate.json +0 -0
  12. package/cjs/src/guidelines/modelConstant/modelConstant.generate.json +135 -0
  13. package/cjs/src/guidelines/modelConstant/modelConstant.instruction.md +1 -1
  14. package/cjs/src/guidelines/modelDictionary/modelDictionary.generate.json +115 -0
  15. package/cjs/src/guidelines/modelDocument/modelDocument.generate.json +129 -0
  16. package/cjs/src/guidelines/modelService/modelService.generate.json +179 -0
  17. package/cjs/src/guidelines/modelSignal/modelSignal.generate.json +202 -0
  18. package/cjs/src/guidelines/modelStore/modelStore.generate.json +130 -0
  19. package/cjs/src/guidelines/modelTemplate/modelTemplate.generate.json +104 -0
  20. package/cjs/src/guidelines/modelUnit/modelUnit.generate.json +92 -0
  21. package/cjs/src/guidelines/modelUnit/modelUnit.instruction.md +2 -2
  22. package/cjs/src/guidelines/modelUtil/modelUtil.generate.json +93 -0
  23. package/cjs/src/guidelines/modelView/modelView.generate.json +80 -0
  24. package/cjs/src/guidelines/modelView/modelView.instruction.md +1 -1
  25. package/cjs/src/guidelines/modelZone/modelZone.generate.json +126 -0
  26. package/cjs/src/guidelines/modelZone/modelZone.instruction.md +3 -3
  27. package/cjs/src/guidelines/scalarConstant/scalarConstant.generate.json +102 -0
  28. package/cjs/src/guidelines/scalarDictionary/scalarDictionary.generate.json +83 -0
  29. package/cjs/src/guidelines/scalarModule/scalarModule.generate.json +35 -0
  30. package/cjs/src/guidelines/sharedUiUsage/sharedUiUsage.generate.json +115 -0
  31. package/cjs/src/guidelines/sharedUiUsage/sharedUiUsage.instruction.md +5 -10
  32. package/cjs/src/guidelines/utilUiUsage/utilUiUsage.generate.json +140 -0
  33. package/cjs/src/guidelines/utilUiUsage/utilUiUsage.instruction.md +1 -1
  34. package/cjs/src/templates/app/app/[lang]/(__appName__)/(public)/forgotpassword/page.js +47 -0
  35. package/cjs/src/templates/app/app/[lang]/(__appName__)/(public)/page.js +128 -0
  36. package/cjs/src/templates/app/app/[lang]/(__appName__)/(public)/privacy/page.js +42 -0
  37. package/cjs/src/templates/app/app/[lang]/(__appName__)/(public)/signin/page.js +50 -0
  38. package/cjs/src/templates/app/app/[lang]/(__appName__)/(public)/termsofservice/page.js +41 -0
  39. package/cjs/src/templates/app/app/[lang]/(__appName__)/(public)/unknown/page.js +51 -0
  40. package/cjs/src/templates/app/app/[lang]/(__appName__)/(user)/layout.js +43 -0
  41. package/cjs/src/templates/app/app/[lang]/(__appName__)/(user)/self/page.js +60 -0
  42. package/cjs/src/templates/app/app/[lang]/(__appName__)/layout.js +54 -0
  43. package/cjs/src/templates/app/app/[lang]/admin/layout.js +54 -0
  44. package/cjs/src/templates/app/app/[lang]/admin/page.js +63 -0
  45. package/cjs/src/templates/app/app/csr.js +34 -0
  46. package/cjs/src/templates/app/app/layout.js +38 -0
  47. package/cjs/src/templates/app/lib/setting/Setting.Template.js +57 -0
  48. package/cjs/src/templates/app/lib/setting/Setting.Unit.js +38 -0
  49. package/cjs/src/templates/app/lib/setting/Setting.Util.js +34 -0
  50. package/cjs/src/templates/app/lib/setting/Setting.View.js +51 -0
  51. package/cjs/src/templates/app/lib/setting/Setting.Zone.js +80 -0
  52. package/cjs/src/templates/app/lib/setting/index.js +61 -0
  53. package/cjs/src/templates/app/lib/summary/Summary.Template.js +43 -0
  54. package/cjs/src/templates/app/lib/summary/Summary.Unit.js +38 -0
  55. package/cjs/src/templates/app/lib/summary/Summary.Util.js +33 -0
  56. package/cjs/src/templates/app/lib/summary/Summary.View.js +51 -0
  57. package/cjs/src/templates/app/lib/summary/Summary.Zone.js +62 -0
  58. package/cjs/src/templates/app/lib/summary/index.js +67 -0
  59. package/cjs/src/templates/app/lib/user/User.Template.js +65 -0
  60. package/cjs/src/templates/app/lib/user/User.Unit.js +38 -0
  61. package/cjs/src/templates/app/lib/user/User.Util.js +94 -0
  62. package/cjs/src/templates/app/lib/user/User.View.js +66 -0
  63. package/cjs/src/templates/app/lib/user/User.Zone.js +74 -0
  64. package/cjs/src/templates/app/lib/user/index.js +61 -0
  65. package/cjs/src/templates/app/main.js +1 -2
  66. package/cjs/src/templates/app/public/favicon.ico +0 -0
  67. package/cjs/src/templates/app/public/icons/icon-128x128.png +0 -0
  68. package/cjs/src/templates/app/public/icons/icon-144x144.png +0 -0
  69. package/cjs/src/templates/app/public/icons/icon-152x152.png +0 -0
  70. package/cjs/src/templates/app/public/icons/icon-192x192.png +0 -0
  71. package/cjs/src/templates/app/public/icons/icon-256x256.png +0 -0
  72. package/cjs/src/templates/app/public/icons/icon-384x384.png +0 -0
  73. package/cjs/src/templates/app/public/icons/icon-48x48.png +0 -0
  74. package/cjs/src/templates/app/public/icons/icon-512x512.png +0 -0
  75. package/cjs/src/templates/app/public/icons/icon-72x72.png +0 -0
  76. package/cjs/src/templates/app/public/icons/icon-96x96.png +0 -0
  77. package/cjs/src/templates/app/public/logo.svg +70 -0
  78. package/cjs/src/templates/app/ui/Footer.js +67 -0
  79. package/cjs/src/templates/app/ui/MainHeader.js +131 -0
  80. package/cjs/src/templates/crudPages/[__model__Id]/edit/page.js +73 -0
  81. package/cjs/src/templates/crudPages/[__model__Id]/page.js +83 -0
  82. package/cjs/src/templates/crudPages/new/page.js +70 -0
  83. package/cjs/src/templates/crudPages/page.js +71 -0
  84. package/cjs/src/templates/lib/__lib/lib.dictionary.js +2 -2
  85. package/cjs/src/templates/lib/__lib/lib.signal.js +3 -3
  86. package/cjs/src/templates/lib/__lib/lib.store.js +2 -1
  87. package/cjs/src/templates/libRoot/lib/setting/Setting.Template.js +57 -0
  88. package/cjs/src/templates/libRoot/lib/setting/Setting.Unit.js +38 -0
  89. package/cjs/src/templates/libRoot/lib/setting/Setting.Util.js +34 -0
  90. package/cjs/src/templates/libRoot/lib/setting/Setting.View.js +51 -0
  91. package/cjs/src/templates/libRoot/lib/setting/Setting.Zone.js +80 -0
  92. package/cjs/src/templates/libRoot/lib/setting/index.js +61 -0
  93. package/cjs/src/templates/libRoot/lib/summary/Summary.Template.js +43 -0
  94. package/cjs/src/templates/libRoot/lib/summary/Summary.Unit.js +38 -0
  95. package/cjs/src/templates/libRoot/lib/summary/Summary.Util.js +33 -0
  96. package/cjs/src/templates/libRoot/lib/summary/Summary.View.js +51 -0
  97. package/cjs/src/templates/libRoot/lib/summary/Summary.Zone.js +62 -0
  98. package/cjs/src/templates/libRoot/lib/summary/index.js +67 -0
  99. package/cjs/src/templates/libRoot/lib/user/User.Template.js +65 -0
  100. package/cjs/src/templates/libRoot/lib/user/User.Unit.js +38 -0
  101. package/cjs/src/templates/libRoot/lib/user/User.Util.js +94 -0
  102. package/cjs/src/templates/libRoot/lib/user/User.View.js +66 -0
  103. package/cjs/src/templates/libRoot/lib/user/User.Zone.js +74 -0
  104. package/cjs/src/templates/libRoot/lib/user/index.js +61 -0
  105. package/cjs/src/templates/module/__Model__.Template.js +54 -0
  106. package/cjs/src/templates/module/__Model__.Unit.js +42 -0
  107. package/cjs/src/templates/module/__Model__.Util.js +70 -0
  108. package/cjs/src/templates/module/__Model__.View.js +48 -0
  109. package/cjs/src/templates/module/__Model__.Zone.js +83 -0
  110. package/cjs/src/templates/module/index.js +61 -0
  111. package/esm/index.js +28 -20
  112. package/esm/src/guidelines/componentRule/componentRule.generate.json +131 -0
  113. package/esm/src/guidelines/componentRule/componentRule.instruction.md +7 -6
  114. package/esm/src/guidelines/cssRule/cssRule.generate.json +93 -0
  115. package/esm/src/guidelines/databaseModule/databaseModule.generate.json +51 -0
  116. package/esm/src/guidelines/databaseModule/databaseModule.instruction.md +4 -17
  117. package/esm/src/guidelines/docPageRule/docPageRule.generate.json +72 -0
  118. package/esm/src/guidelines/enumConstant/enumConstant.generate.json +24 -0
  119. package/esm/src/guidelines/fieldDecorator/fieldDecorator.generate.json +135 -0
  120. package/esm/src/guidelines/framework/framework.generate.json +119 -0
  121. package/esm/src/guidelines/howToUseStore/howToUseStore.generate.json +0 -0
  122. package/esm/src/guidelines/modelConstant/modelConstant.generate.json +135 -0
  123. package/esm/src/guidelines/modelConstant/modelConstant.instruction.md +1 -1
  124. package/esm/src/guidelines/modelDictionary/modelDictionary.generate.json +115 -0
  125. package/esm/src/guidelines/modelDocument/modelDocument.generate.json +129 -0
  126. package/esm/src/guidelines/modelService/modelService.generate.json +179 -0
  127. package/esm/src/guidelines/modelSignal/modelSignal.generate.json +202 -0
  128. package/esm/src/guidelines/modelStore/modelStore.generate.json +130 -0
  129. package/esm/src/guidelines/modelTemplate/modelTemplate.generate.json +104 -0
  130. package/esm/src/guidelines/modelUnit/modelUnit.generate.json +92 -0
  131. package/esm/src/guidelines/modelUnit/modelUnit.instruction.md +2 -2
  132. package/esm/src/guidelines/modelUtil/modelUtil.generate.json +93 -0
  133. package/esm/src/guidelines/modelView/modelView.generate.json +80 -0
  134. package/esm/src/guidelines/modelView/modelView.instruction.md +1 -1
  135. package/esm/src/guidelines/modelZone/modelZone.generate.json +126 -0
  136. package/esm/src/guidelines/modelZone/modelZone.instruction.md +3 -3
  137. package/esm/src/guidelines/scalarConstant/scalarConstant.generate.json +102 -0
  138. package/esm/src/guidelines/scalarDictionary/scalarDictionary.generate.json +83 -0
  139. package/esm/src/guidelines/scalarModule/scalarModule.generate.json +35 -0
  140. package/esm/src/guidelines/sharedUiUsage/sharedUiUsage.generate.json +115 -0
  141. package/esm/src/guidelines/sharedUiUsage/sharedUiUsage.instruction.md +5 -10
  142. package/esm/src/guidelines/utilUiUsage/utilUiUsage.generate.json +140 -0
  143. package/esm/src/guidelines/utilUiUsage/utilUiUsage.instruction.md +1 -1
  144. package/esm/src/templates/app/app/[lang]/(__appName__)/(public)/forgotpassword/page.js +27 -0
  145. package/esm/src/templates/app/app/[lang]/(__appName__)/(public)/page.js +108 -0
  146. package/esm/src/templates/app/app/[lang]/(__appName__)/(public)/privacy/page.js +22 -0
  147. package/esm/src/templates/app/app/[lang]/(__appName__)/(public)/signin/page.js +30 -0
  148. package/esm/src/templates/app/app/[lang]/(__appName__)/(public)/termsofservice/page.js +21 -0
  149. package/esm/src/templates/app/app/[lang]/(__appName__)/(public)/unknown/page.js +31 -0
  150. package/esm/src/templates/app/app/[lang]/(__appName__)/(user)/layout.js +23 -0
  151. package/esm/src/templates/app/app/[lang]/(__appName__)/(user)/self/page.js +40 -0
  152. package/esm/src/templates/app/app/[lang]/(__appName__)/layout.js +34 -0
  153. package/esm/src/templates/app/app/[lang]/admin/layout.js +34 -0
  154. package/esm/src/templates/app/app/[lang]/admin/page.js +43 -0
  155. package/esm/src/templates/app/app/csr.js +14 -0
  156. package/esm/src/templates/app/app/layout.js +18 -0
  157. package/esm/src/templates/app/lib/setting/Setting.Template.js +37 -0
  158. package/esm/src/templates/app/lib/setting/Setting.Unit.js +18 -0
  159. package/esm/src/templates/app/lib/setting/Setting.Util.js +14 -0
  160. package/esm/src/templates/app/lib/setting/Setting.View.js +31 -0
  161. package/esm/src/templates/app/lib/setting/Setting.Zone.js +60 -0
  162. package/esm/src/templates/app/lib/setting/index.js +41 -0
  163. package/esm/src/templates/app/lib/summary/Summary.Template.js +23 -0
  164. package/esm/src/templates/app/lib/summary/Summary.Unit.js +18 -0
  165. package/esm/src/templates/app/lib/summary/Summary.Util.js +13 -0
  166. package/esm/src/templates/app/lib/summary/Summary.View.js +31 -0
  167. package/esm/src/templates/app/lib/summary/Summary.Zone.js +42 -0
  168. package/esm/src/templates/app/lib/summary/index.js +47 -0
  169. package/esm/src/templates/app/lib/user/User.Template.js +45 -0
  170. package/esm/src/templates/app/lib/user/User.Unit.js +18 -0
  171. package/esm/src/templates/app/lib/user/User.Util.js +74 -0
  172. package/esm/src/templates/app/lib/user/User.View.js +46 -0
  173. package/esm/src/templates/app/lib/user/User.Zone.js +54 -0
  174. package/esm/src/templates/app/lib/user/index.js +41 -0
  175. package/esm/src/templates/app/main.js +1 -2
  176. package/esm/src/templates/app/public/favicon.ico +0 -0
  177. package/esm/src/templates/app/public/icons/icon-128x128.png +0 -0
  178. package/esm/src/templates/app/public/icons/icon-144x144.png +0 -0
  179. package/esm/src/templates/app/public/icons/icon-152x152.png +0 -0
  180. package/esm/src/templates/app/public/icons/icon-192x192.png +0 -0
  181. package/esm/src/templates/app/public/icons/icon-256x256.png +0 -0
  182. package/esm/src/templates/app/public/icons/icon-384x384.png +0 -0
  183. package/esm/src/templates/app/public/icons/icon-48x48.png +0 -0
  184. package/esm/src/templates/app/public/icons/icon-512x512.png +0 -0
  185. package/esm/src/templates/app/public/icons/icon-72x72.png +0 -0
  186. package/esm/src/templates/app/public/icons/icon-96x96.png +0 -0
  187. package/esm/src/templates/app/public/logo.svg +70 -0
  188. package/esm/src/templates/app/ui/Footer.js +47 -0
  189. package/esm/src/templates/app/ui/MainHeader.js +111 -0
  190. package/esm/src/templates/crudPages/[__model__Id]/edit/page.js +53 -0
  191. package/esm/src/templates/crudPages/[__model__Id]/page.js +63 -0
  192. package/esm/src/templates/crudPages/new/page.js +50 -0
  193. package/esm/src/templates/crudPages/page.js +51 -0
  194. package/esm/src/templates/lib/__lib/lib.dictionary.js +2 -2
  195. package/esm/src/templates/lib/__lib/lib.signal.js +3 -3
  196. package/esm/src/templates/lib/__lib/lib.store.js +2 -1
  197. package/esm/src/templates/libRoot/lib/setting/Setting.Template.js +37 -0
  198. package/esm/src/templates/libRoot/lib/setting/Setting.Unit.js +18 -0
  199. package/esm/src/templates/libRoot/lib/setting/Setting.Util.js +14 -0
  200. package/esm/src/templates/libRoot/lib/setting/Setting.View.js +31 -0
  201. package/esm/src/templates/libRoot/lib/setting/Setting.Zone.js +60 -0
  202. package/esm/src/templates/libRoot/lib/setting/index.js +41 -0
  203. package/esm/src/templates/libRoot/lib/summary/Summary.Template.js +23 -0
  204. package/esm/src/templates/libRoot/lib/summary/Summary.Unit.js +18 -0
  205. package/esm/src/templates/libRoot/lib/summary/Summary.Util.js +13 -0
  206. package/esm/src/templates/libRoot/lib/summary/Summary.View.js +31 -0
  207. package/esm/src/templates/libRoot/lib/summary/Summary.Zone.js +42 -0
  208. package/esm/src/templates/libRoot/lib/summary/index.js +47 -0
  209. package/esm/src/templates/libRoot/lib/user/User.Template.js +45 -0
  210. package/esm/src/templates/libRoot/lib/user/User.Unit.js +18 -0
  211. package/esm/src/templates/libRoot/lib/user/User.Util.js +74 -0
  212. package/esm/src/templates/libRoot/lib/user/User.View.js +46 -0
  213. package/esm/src/templates/libRoot/lib/user/User.Zone.js +54 -0
  214. package/esm/src/templates/libRoot/lib/user/index.js +41 -0
  215. package/esm/src/templates/module/__Model__.Template.js +34 -0
  216. package/esm/src/templates/module/__Model__.Unit.js +22 -0
  217. package/esm/src/templates/module/__Model__.Util.js +50 -0
  218. package/esm/src/templates/module/__Model__.View.js +28 -0
  219. package/esm/src/templates/module/__Model__.Zone.js +63 -0
  220. package/esm/src/templates/module/index.js +41 -0
  221. package/package.json +1 -1
  222. package/src/guidelines/componentRule/componentRule.instruction.md +7 -6
  223. package/src/guidelines/databaseModule/databaseModule.instruction.md +4 -17
  224. package/src/guidelines/modelConstant/modelConstant.instruction.md +1 -1
  225. package/src/guidelines/modelUnit/modelUnit.instruction.md +2 -2
  226. package/src/guidelines/modelView/modelView.instruction.md +1 -1
  227. package/src/guidelines/modelZone/modelZone.instruction.md +3 -3
  228. package/src/guidelines/sharedUiUsage/sharedUiUsage.instruction.md +5 -10
  229. package/src/guidelines/utilUiUsage/utilUiUsage.instruction.md +1 -1
  230. package/src/templates/app/app/[lang]/(__appName__)/(public)/forgotpassword/page.d.ts +9 -0
  231. package/src/templates/app/app/[lang]/(__appName__)/(public)/page.d.ts +9 -0
  232. package/src/templates/app/app/[lang]/(__appName__)/(public)/privacy/page.d.ts +9 -0
  233. package/src/templates/app/app/[lang]/(__appName__)/(public)/signin/page.d.ts +9 -0
  234. package/src/templates/app/app/[lang]/(__appName__)/(public)/termsofservice/page.d.ts +10 -0
  235. package/src/templates/app/app/[lang]/(__appName__)/(public)/unknown/page.d.ts +9 -0
  236. package/src/templates/app/app/[lang]/(__appName__)/(user)/layout.d.ts +9 -0
  237. package/src/templates/app/app/[lang]/(__appName__)/(user)/self/page.d.ts +9 -0
  238. package/src/templates/app/app/[lang]/(__appName__)/layout.d.ts +9 -0
  239. package/src/templates/app/app/[lang]/admin/layout.d.ts +9 -0
  240. package/src/templates/app/app/[lang]/admin/page.d.ts +9 -0
  241. package/src/templates/app/app/csr.d.ts +9 -0
  242. package/src/templates/app/app/layout.d.ts +9 -0
  243. package/src/templates/app/lib/setting/Setting.Template.d.ts +9 -0
  244. package/src/templates/app/lib/setting/Setting.Unit.d.ts +9 -0
  245. package/src/templates/app/lib/setting/Setting.Util.d.ts +9 -0
  246. package/src/templates/app/lib/setting/Setting.View.d.ts +9 -0
  247. package/src/templates/app/lib/setting/Setting.Zone.d.ts +9 -0
  248. package/src/templates/app/lib/setting/index.d.ts +9 -0
  249. package/src/templates/app/lib/summary/Summary.Template.d.ts +9 -0
  250. package/src/templates/app/lib/summary/Summary.Unit.d.ts +9 -0
  251. package/src/templates/app/lib/summary/Summary.Util.d.ts +9 -0
  252. package/src/templates/app/lib/summary/Summary.View.d.ts +9 -0
  253. package/src/templates/app/lib/summary/Summary.Zone.d.ts +9 -0
  254. package/src/templates/app/lib/summary/index.d.ts +9 -0
  255. package/src/templates/app/lib/user/User.Template.d.ts +9 -0
  256. package/src/templates/app/lib/user/User.Unit.d.ts +9 -0
  257. package/src/templates/app/lib/user/User.Util.d.ts +9 -0
  258. package/src/templates/app/lib/user/User.View.d.ts +9 -0
  259. package/src/templates/app/lib/user/User.Zone.d.ts +9 -0
  260. package/src/templates/app/lib/user/index.d.ts +9 -0
  261. package/src/templates/app/ui/Footer.d.ts +9 -0
  262. package/src/templates/app/ui/MainHeader.d.ts +10 -0
  263. package/src/templates/crudPages/[__model__Id]/edit/page.d.ts +11 -0
  264. package/src/templates/crudPages/[__model__Id]/page.d.ts +11 -0
  265. package/src/templates/crudPages/new/page.d.ts +11 -0
  266. package/src/templates/crudPages/page.d.ts +11 -0
  267. package/src/templates/libRoot/lib/setting/Setting.Template.d.ts +9 -0
  268. package/src/templates/libRoot/lib/setting/Setting.Unit.d.ts +9 -0
  269. package/src/templates/libRoot/lib/setting/Setting.Util.d.ts +9 -0
  270. package/src/templates/libRoot/lib/setting/Setting.View.d.ts +9 -0
  271. package/src/templates/libRoot/lib/setting/Setting.Zone.d.ts +9 -0
  272. package/src/templates/libRoot/lib/setting/index.d.ts +9 -0
  273. package/src/templates/libRoot/lib/summary/Summary.Template.d.ts +9 -0
  274. package/src/templates/libRoot/lib/summary/Summary.Unit.d.ts +9 -0
  275. package/src/templates/libRoot/lib/summary/Summary.Util.d.ts +9 -0
  276. package/src/templates/libRoot/lib/summary/Summary.View.d.ts +9 -0
  277. package/src/templates/libRoot/lib/summary/Summary.Zone.d.ts +9 -0
  278. package/src/templates/libRoot/lib/summary/index.d.ts +9 -0
  279. package/src/templates/libRoot/lib/user/User.Template.d.ts +9 -0
  280. package/src/templates/libRoot/lib/user/User.Unit.d.ts +9 -0
  281. package/src/templates/libRoot/lib/user/User.Util.d.ts +9 -0
  282. package/src/templates/libRoot/lib/user/User.View.d.ts +9 -0
  283. package/src/templates/libRoot/lib/user/User.Zone.d.ts +9 -0
  284. package/src/templates/libRoot/lib/user/index.d.ts +9 -0
  285. package/src/templates/module/__Model__.Template.d.ts +11 -0
  286. package/src/templates/module/__Model__.Unit.d.ts +11 -0
  287. package/src/templates/module/__Model__.Util.d.ts +11 -0
  288. package/src/templates/module/__Model__.View.d.ts +11 -0
  289. package/src/templates/module/__Model__.Zone.d.ts +11 -0
  290. package/src/templates/module/index.d.ts +11 -0
@@ -0,0 +1,115 @@
1
+ {
2
+ "title": "Shared UI Components Usage Guide",
3
+ "description": "Comprehensive guide on using shared library UI components in Akan.js applications",
4
+ "scans": [
5
+ {
6
+ "type": "source",
7
+ "description": "Core shared UI component library structure",
8
+ "path": "libs/shared/ui/index.ts"
9
+ },
10
+ {
11
+ "type": "source",
12
+ "description": "Field component implementations (form inputs)",
13
+ "path": "libs/shared/ui/Field.tsx"
14
+ },
15
+ {
16
+ "type": "source",
17
+ "description": "Data component implementations (tables, lists, visualization)",
18
+ "path": "libs/shared/ui/Data/index_.tsx"
19
+ },
20
+ {
21
+ "type": "source",
22
+ "description": "Load component implementations (data fetching)",
23
+ "path": "libs/shared/ui/Load/index_.tsx"
24
+ },
25
+ {
26
+ "type": "source",
27
+ "description": "Model component implementations (CRUD operations)",
28
+ "path": "libs/shared/ui/Model/index_.tsx"
29
+ },
30
+ {
31
+ "type": "source",
32
+ "description": "System component implementations (providers, app utilities)",
33
+ "path": "libs/shared/ui/System/index.tsx"
34
+ },
35
+ {
36
+ "type": "source",
37
+ "description": "Only component implementations (conditional rendering)",
38
+ "path": "libs/shared/ui/Only/index.tsx"
39
+ },
40
+ {
41
+ "type": "example",
42
+ "description": "Field components usage examples",
43
+ "path": "{apps,libs}/*/lib/*/*.{Template,Unit,View,Zone}.tsx",
44
+ "filterText": "Field} from \"@shared/ui\"",
45
+ "sample": 5
46
+ },
47
+ {
48
+ "type": "example",
49
+ "description": "Data components usage examples",
50
+ "path": "{apps,libs}/*/lib/*/*.{Zone,View}.tsx",
51
+ "filterText": "Data} from \"@shared/ui\"",
52
+ "sample": 5
53
+ },
54
+ {
55
+ "type": "example",
56
+ "description": "Load components usage examples",
57
+ "path": "{apps,libs}/*/lib/*/*.{Zone,View}.tsx",
58
+ "filterText": "Load} from \"@shared/ui\"",
59
+ "sample": 5
60
+ },
61
+ {
62
+ "type": "example",
63
+ "description": "Model components usage examples",
64
+ "path": "{apps,libs}/*/lib/*/*.{Template,Unit,Util,Zone}.tsx",
65
+ "filterText": "Model} from \"@shared/ui\"",
66
+ "sample": 5
67
+ },
68
+ {
69
+ "type": "example",
70
+ "description": "Only component usage examples",
71
+ "path": "{apps,libs}/*/lib/*/*.{Unit,View,Util}.tsx",
72
+ "filterText": "Only} from \"@shared/ui\"",
73
+ "sample": 3
74
+ },
75
+ {
76
+ "type": "example",
77
+ "description": "Complex form examples with validation",
78
+ "path": "{apps,libs}/*/lib/*/*.Template.tsx",
79
+ "filterText": "validate",
80
+ "sample": 3
81
+ },
82
+ {
83
+ "type": "example",
84
+ "description": "Store integration examples",
85
+ "path": "{apps,libs}/*/lib/*/*.{Template,Unit,View,Zone}.tsx",
86
+ "filterText": "sliceName",
87
+ "sample": 5
88
+ },
89
+ {
90
+ "type": "example",
91
+ "description": "Internationalization usage examples",
92
+ "path": "{apps,libs}/*/lib/*/*.{Template,Unit,View}.tsx",
93
+ "filterText": "l.field",
94
+ "sample": 3
95
+ }
96
+ ],
97
+ "update": {
98
+ "filePath": "./sharedUiUsage.instruction.md",
99
+ "contents": [
100
+ "Overview of Shared UI Components",
101
+ "Component Namespaces (Field, Data, Load, Model, System, Only, Editor, Property)",
102
+ "Basic Component Usage",
103
+ "Form Fields and Validation",
104
+ "Data Management Components",
105
+ "Loading and Data Fetching",
106
+ "CRUD Operations",
107
+ "Conditional Rendering",
108
+ "Store Integration",
109
+ "Common Patterns and Best Practices",
110
+ "Troubleshooting"
111
+ ],
112
+ "rules": []
113
+ },
114
+ "page": "/[lang]/model/[model]"
115
+ }
@@ -19,22 +19,17 @@ The `@shared/ui` library in the Akan.js framework provides a comprehensive set o
19
19
 
20
20
  ### Importing Components
21
21
 
22
- All UI components are available as named exports from the `@shared/ui` package:
22
+ UI components are available as named exports from the `@shared/ui` package:
23
23
 
24
24
  ```tsx
25
- import { Field, Data, Load, Model, System, Only, Editor, Property } from "@shared/ui";
25
+ import { Field, Only, Editor } from "@shared/ui";
26
26
  ```
27
27
 
28
28
  Each namespace contains specialized components for specific use cases:
29
29
 
30
30
  - **Field**: Form inputs and data entry components
31
- - **Data**: Data visualization and management interfaces
32
- - **Load**: Data loading patterns with SSR/CSR support
33
- - **Model**: CRUD operations with modal and inline editing
34
- - **System**: Application-level providers and utilities
35
31
  - **Only**: Conditional rendering based on user state and device
36
32
  - **Editor**: Rich text editing capabilities
37
- - **Property**: Metadata-driven property editing
38
33
 
39
34
  ### Component Organization in Your Module
40
35
 
@@ -106,7 +101,7 @@ const MyComponent = () => {
106
101
  Data components are used to display and manage collections of data:
107
102
 
108
103
  ```tsx
109
- import { Data, Model } from "@shared/ui";
104
+ import { Data, Model } from "@akanjs/ui";
110
105
 
111
106
  export const MyFeatureAdmin = ({ sliceName = "myFeature" }) => {
112
107
  return (
@@ -128,7 +123,7 @@ export const MyFeatureAdmin = ({ sliceName = "myFeature" }) => {
128
123
  Load components handle data fetching and state management:
129
124
 
130
125
  ```tsx
131
- import { Load } from "@shared/ui";
126
+ import { Load } from "@akanjs/ui";
132
127
 
133
128
  export const MyFeatureView = ({ id }) => {
134
129
  return (
@@ -161,7 +156,7 @@ export const MyFeatureList = () => {
161
156
  Model components handle create, read, update and delete operations:
162
157
 
163
158
  ```tsx
164
- import { Model } from "@shared/ui";
159
+ import { Model } from "@akanjs/ui";
165
160
 
166
161
  export const CreateMyFeature = () => {
167
162
  return (
@@ -0,0 +1,140 @@
1
+ {
2
+ "title": "Util UI Usage",
3
+ "description": "Comprehensive guide on how to use utility library UI components",
4
+ "scans": [
5
+ {
6
+ "type": "source",
7
+ "description": "Core util library source code for UI components",
8
+ "path": "libs/util/ui/**/*.{ts,tsx}"
9
+ },
10
+ {
11
+ "type": "source",
12
+ "description": "Main UI component directories for namespace patterns",
13
+ "path": "libs/util/ui/{Button,Input,Select,Image,Link,Layout,Dialog,Loading,Tab,Chart}/**/*.{ts,tsx}"
14
+ },
15
+ {
16
+ "type": "example",
17
+ "description": "Form components usage examples",
18
+ "path": "{apps,libs}/*/lib/*/*.{Template,Unit,View}.tsx",
19
+ "filterText": "import.*\\{ (Button|Input|Select|DatePicker|ToggleSelect).*\\} from \"@util/ui\";",
20
+ "sample": 5
21
+ },
22
+ {
23
+ "type": "example",
24
+ "description": "Navigation component usage examples",
25
+ "path": "{apps,libs}/*/lib/*/*.{Template,Unit,View}.tsx",
26
+ "filterText": "import.*\\{ (Link|Tab|Menu|ScreenNavigator).*\\} from \"@util/ui\";",
27
+ "sample": 5
28
+ },
29
+ {
30
+ "type": "example",
31
+ "description": "Layout component usage examples",
32
+ "path": "{apps,libs}/*/lib/*/*.{Template,Unit,View}.tsx",
33
+ "filterText": "import.*\\{ (Layout|Dialog|Modal|BottomSheet).*\\} from \"@util/ui\";",
34
+ "sample": 5
35
+ },
36
+ {
37
+ "type": "example",
38
+ "description": "Media component usage examples",
39
+ "path": "{apps,libs}/*/lib/*/*.{Template,Unit,View}.tsx",
40
+ "filterText": "import.*\\{ (Image|Upload|Avatar|Chart).*\\} from \"@util/ui\";",
41
+ "sample": 5
42
+ },
43
+ {
44
+ "type": "example",
45
+ "description": "Loading and feedback component usage examples",
46
+ "path": "{apps,libs}/*/lib/*/*.{Template,Unit,View}.tsx",
47
+ "filterText": "import.*\\{ (Loading|Empty).*\\} from \"@util/ui\";",
48
+ "sample": 5
49
+ },
50
+ {
51
+ "type": "example",
52
+ "description": "Complex component composition examples",
53
+ "path": "{apps,libs}/*/lib/*/*.{Template,Unit,View}.tsx",
54
+ "filterText": "<(Dialog|Tab|Layout)\\.(\\w+)",
55
+ "sample": 5
56
+ },
57
+ {
58
+ "type": "example",
59
+ "description": "UI component integration in Model.Unit.tsx files",
60
+ "path": "{apps,libs}/*/lib/*/*.Unit.tsx",
61
+ "filterText": "from \"@util/ui\";",
62
+ "sample": 3
63
+ },
64
+ {
65
+ "type": "example",
66
+ "description": "UI component integration in Model.Template.tsx files",
67
+ "path": "{apps,libs}/*/lib/*/*.Template.tsx",
68
+ "filterText": "from \"@util/ui\";",
69
+ "sample": 3
70
+ },
71
+ {
72
+ "type": "example",
73
+ "description": "UI component integration in Model.View.tsx files",
74
+ "path": "{apps,libs}/*/lib/*/*.View.tsx",
75
+ "filterText": "from \"@util/ui\";",
76
+ "sample": 3
77
+ },
78
+ {
79
+ "type": "example",
80
+ "description": "UI component usage in Page components",
81
+ "path": "apps/*/app/**/page.tsx",
82
+ "filterText": "from \"@util/ui\";",
83
+ "sample": 3
84
+ },
85
+ {
86
+ "type": "interface",
87
+ "description": "Button component props interface",
88
+ "path": "libs/util/ui/Button.tsx",
89
+ "interfaceName": "ButtonProps"
90
+ },
91
+ {
92
+ "type": "interface",
93
+ "description": "Input component props interface",
94
+ "path": "libs/util/ui/Input.tsx",
95
+ "interfaceName": "InputProps"
96
+ },
97
+ {
98
+ "type": "interface",
99
+ "description": "Link component props interface",
100
+ "path": "libs/util/ui/Link/index.tsx",
101
+ "interfaceName": "LinkProps"
102
+ },
103
+ {
104
+ "type": "interface",
105
+ "description": "Image component props interface",
106
+ "path": "libs/util/ui/Image.tsx",
107
+ "interfaceName": "ImageProps"
108
+ }
109
+ ],
110
+ "update": {
111
+ "filePath": "./utilUiUsage.instruction.md",
112
+ "contents": [
113
+ "@util/ui Component Library Guide",
114
+ "Importing Components",
115
+ "Component Organization and Usage",
116
+ "Common Component Patterns",
117
+ "Form Fields and Data Input",
118
+ "Data Display Components",
119
+ "Navigation Components",
120
+ "Layout Components",
121
+ "Media and File Components",
122
+ "Loading and Feedback Components",
123
+ "Integration with Akan.js Architecture",
124
+ "In Model.Template.tsx",
125
+ "In Model.Unit.tsx",
126
+ "In Model.View.tsx",
127
+ "Best Practices",
128
+ "[Strict Caution]",
129
+ "Framework Integration Features"
130
+ ],
131
+ "rules": [
132
+ "Document all major component categories and namespacing patterns",
133
+ "Provide concrete examples for each component type",
134
+ "Explain integration with the Akan.js module architecture",
135
+ "Include best practices for component selection and usage",
136
+ "Detail strict usage requirements for the component library"
137
+ ]
138
+ },
139
+ "page": "/[lang]/model/[model]"
140
+ }
@@ -14,7 +14,7 @@ import { Button } from "@util/ui";
14
14
  import { Button, Input, Link, Image } from "@util/ui";
15
15
 
16
16
  // Namespace component import
17
- import { Dialog } from "@util/ui";
17
+ import { Dialog } from "@akanjs/ui";
18
18
  ```
19
19
 
20
20
  ## Component Organization and Usage
@@ -0,0 +1,47 @@
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/app/[lang]/(__appName__)/(public)/forgotpassword/page.tsx
20
+ var page_exports = {};
21
+ __export(page_exports, {
22
+ default: () => getContent
23
+ });
24
+ module.exports = __toCommonJS(page_exports);
25
+ function getContent(scanResult, dict = {}) {
26
+ return {
27
+ filename: "page.tsx",
28
+ content: `
29
+ import { Image, Link } from "@akanjs/ui";
30
+ import { User } from "@shared/client";
31
+
32
+ export default function Page() {
33
+ return (
34
+ <div className="relative w-full h-screen overflow-hidden flex items-center justify-center">
35
+ <div className="z-10 md:w-[400px] px-12 pt-12 pb-4 shadow-lg rounded-xl bg-base-100/50 backdrop-blur-xs">
36
+ <User.Util.ForgotPassword />
37
+ <Link.Back className="text-center">
38
+ <button className="mt-2 underline btn btn-ghost">Back</button>
39
+ </Link.Back>
40
+ </div>
41
+ <Image className="absolute left-0 right-0 top-0 bottom-0 -z-50" width={1920} height={1080} src="/back.jpg" />
42
+ </div>
43
+ );
44
+ }
45
+ `
46
+ };
47
+ }
@@ -0,0 +1,128 @@
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/app/[lang]/(__appName__)/(public)/page.tsx
20
+ var page_exports = {};
21
+ __export(page_exports, {
22
+ default: () => getContent
23
+ });
24
+ module.exports = __toCommonJS(page_exports);
25
+ function getContent(scanResult, dict) {
26
+ return {
27
+ filename: "page.tsx",
28
+ content: `
29
+ import {
30
+ FaBolt,
31
+ FaBook,
32
+ FaCloudUploadAlt,
33
+ FaCode,
34
+ FaExternalLinkAlt,
35
+ FaGraduationCap,
36
+ FaHeart,
37
+ FaShieldAlt,
38
+ } from "react-icons/fa";
39
+
40
+ export const metadata = {
41
+ title: "Akan.js",
42
+ };
43
+
44
+ export default function Page() {
45
+ return (
46
+ <div className="bg-base-100 flex min-h-screen items-center justify-center">
47
+ <div className="container mx-auto px-4 py-16">
48
+ <div className="mb-16 text-center">
49
+ <h1 className="mb-6 text-6xl font-bold">Akan.js</h1>
50
+ <p className="mx-auto max-w-2xl text-lg">A typescript full-stack framework designed for solo developers</p>
51
+ <p className="mx-auto max-w-2xl text-lg">that enables building servers, web, and apps all at once</p>
52
+ <p className="mx-auto max-w-2xl text-lg">making in-house development with minimal resources.</p>
53
+ <div className="my-8 flex flex-wrap justify-center gap-4">
54
+ <div className="badge badge-lg text-base-100 bg-primary border-none">
55
+ <FaBolt className="" />
56
+ All-in-One
57
+ </div>
58
+ <div className="badge badge-lg text-base-100 bg-secondary border-none">
59
+ <FaShieldAlt className="" />
60
+ Type-Safe
61
+ </div>
62
+ <div className="badge badge-lg text-base-100 bg-success border-none">
63
+ <FaHeart className="" />
64
+ Minimal-Code
65
+ </div>
66
+ </div>
67
+ </div>
68
+ <div className="mb-12 text-center">
69
+ <button className="btn btn-primary btn-lg bg-primary border-none px-12 py-4 text-lg font-semibold">
70
+ <FaCloudUploadAlt className="mr-3 text-xl" />
71
+ Deploy Now
72
+ </button>
73
+ </div>
74
+ <div className="mb-16 rounded-lg bg-slate-800 p-8">
75
+ <h2 className="text-gray-200 mb-6 text-center text-2xl font-bold">Quick Start</h2>
76
+ <div className="mockup-code">
77
+ <pre data-prefix="$">
78
+ <code className="text-success">npx create-akan-workspace</code>
79
+ </pre>
80
+ <pre data-prefix="$">
81
+ <code className="text-success">cd my-workspace</code>
82
+ </pre>
83
+ <pre data-prefix="$">
84
+ <code className="text-success">akan start my-app</code>
85
+ </pre>
86
+ </div>
87
+ </div>
88
+ <div className="mb-16 grid grid-cols-1 gap-6 md:grid-cols-2 lg:grid-cols-4">
89
+ <div className="card bg-slate-800">
90
+ <div className="card-body p-6 text-center">
91
+ <FaBook className="mx-auto mb-4 text-4xl text-purple-400" />
92
+ <h3 className="text-gray-200 mb-2 text-lg font-semibold">Documentation</h3>
93
+ <p className="mb-4 text-sm text-gray-400">Complete API guides and tutorials</p>
94
+ <button className="btn btn-sm w-full">Read Documentation</button>
95
+ </div>
96
+ </div>
97
+ <div className="card bg-slate-800">
98
+ <div className="card-body p-6 text-center">
99
+ <FaGraduationCap className="mx-auto mb-4 text-4xl text-blue-400" />
100
+ <h3 className="text-gray-200 mb-2 text-lg font-semibold">Learn</h3>
101
+ <p className="mb-4 text-sm text-gray-400">Step-by-step learning guides</p>
102
+ <button className="btn btn-sm w-full">Learn</button>
103
+ </div>
104
+ </div>
105
+ <div className="card bg-slate-800">
106
+ <div className="card-body p-6 text-center">
107
+ <FaCode className="mx-auto mb-4 text-4xl text-green-400" />
108
+ <h3 className="text-gray-200 mb-2 text-lg font-semibold">Examples</h3>
109
+ <p className="mb-4 text-sm text-gray-400">Real project examples</p>
110
+ <button className="btn btn-sm w-full">Examples</button>
111
+ </div>
112
+ </div>
113
+ <div className="card bg-slate-800">
114
+ <div className="card-body p-6 text-center">
115
+ <FaExternalLinkAlt className="mx-auto mb-4 text-4xl text-yellow-400" />
116
+ <h3 className="text-gray-200 mb-2 text-lg font-semibold">Official Site</h3>
117
+ <p className="mb-4 text-sm text-gray-400">Visit our official website</p>
118
+ <button className="btn btn-sm w-full">Go to akanjs.com</button>
119
+ </div>
120
+ </div>
121
+ </div>
122
+ </div>
123
+ </div>
124
+ );
125
+ }
126
+ `
127
+ };
128
+ }
@@ -0,0 +1,42 @@
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/app/[lang]/(__appName__)/(public)/privacy/page.tsx
20
+ var page_exports = {};
21
+ __export(page_exports, {
22
+ default: () => getContent
23
+ });
24
+ module.exports = __toCommonJS(page_exports);
25
+ function getContent(scanResult, dict) {
26
+ return {
27
+ filename: "page.tsx",
28
+ content: `
29
+ import { Inform } from "@util/ui";
30
+
31
+ export default function Page() {
32
+ return (
33
+ <div className="container whitespace-pre-wrap">
34
+ <h1 className="flex justify-center">Privacy Policy</h1>
35
+ <Inform.PrivacyPolicy companyName="${dict.CompanyName}" />
36
+ </div>
37
+ );
38
+ }
39
+
40
+ `
41
+ };
42
+ }
@@ -0,0 +1,50 @@
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/app/[lang]/(__appName__)/(public)/signin/page.tsx
20
+ var page_exports = {};
21
+ __export(page_exports, {
22
+ default: () => getContent
23
+ });
24
+ module.exports = __toCommonJS(page_exports);
25
+ function getContent(scanResult, dict) {
26
+ return {
27
+ filename: "page.tsx",
28
+ content: `
29
+ import { Image } from "@akanjs/ui";
30
+ import { User } from "@shared/client";
31
+ import { getSelf, router } from "@akanjs/client";
32
+
33
+ export default function Page() {
34
+ const self = getSelf();
35
+ return (
36
+ <div className="relative w-full h-screen overflow-hidden flex items-center justify-center">
37
+ <div className="max-w-md bg-base-100/50 shadow-lg rounded-xl backdrop-blur-xs w-full py-4 pb-10 px-16">
38
+ <div className="my-6 flex justify-center text-4xl">${dict.appName}</div>
39
+ <User.Util.SignInPassword
40
+ siteKey=""
41
+ redirect="/self"
42
+ signupHref={null}
43
+ />
44
+ </div>
45
+ </div>
46
+ );
47
+ }
48
+ `
49
+ };
50
+ }
@@ -0,0 +1,41 @@
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/app/[lang]/(__appName__)/(public)/termsofservice/page.tsx
20
+ var page_exports = {};
21
+ __export(page_exports, {
22
+ default: () => getContent
23
+ });
24
+ module.exports = __toCommonJS(page_exports);
25
+ function getContent(scanResult, dict) {
26
+ return {
27
+ filename: "page.tsx",
28
+ content: `
29
+ import { Inform } from "@util/ui";
30
+
31
+ export default function Page() {
32
+ return (
33
+ <div className="container">
34
+ <h1 className="flex justify-center">Terms of Service</h1>
35
+ <Inform.ServicePolicy companyName="${dict.CompanyName}" serviceName="${dict.AppName}" />
36
+ </div>
37
+ );
38
+ }
39
+ `
40
+ };
41
+ }
@@ -0,0 +1,51 @@
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/app/[lang]/(__appName__)/(public)/unknown/page.tsx
20
+ var page_exports = {};
21
+ __export(page_exports, {
22
+ default: () => getContent
23
+ });
24
+ module.exports = __toCommonJS(page_exports);
25
+ function getContent(scanResult, dict) {
26
+ return {
27
+ filename: "page.tsx",
28
+ content: `
29
+ import { Load, System } from "@akanjs/ui";
30
+
31
+ interface PageProps {
32
+ searchParams: Promise<{
33
+ p: string;
34
+ }>;
35
+ }
36
+
37
+ export default function Page({ searchParams }: PageProps) {
38
+ return (
39
+ <Load.Page
40
+ of={Page}
41
+ loader={async () => {
42
+ const { p } = await searchParams;
43
+ return { p } as const;
44
+ }}
45
+ render={({ p }) => <System.Reconnect path={p} dev={true} />}
46
+ />
47
+ );
48
+ }
49
+ `
50
+ };
51
+ }