@akanjs/cli 0.0.148 → 0.0.150

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 (340) hide show
  1. package/cjs/index.js +58 -11
  2. package/cjs/src/guidelines/___library/sharedUiStructureDescription.en.md +0 -18
  3. package/cjs/src/guidelines/componentRule/componentRule.generate.json +131 -0
  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/docPageRule/docPageRule.generate.json +72 -0
  7. package/cjs/src/guidelines/enumConstant/enumConstant.generate.json +24 -0
  8. package/cjs/src/guidelines/fieldDecorator/fieldDecorator.generate.json +135 -0
  9. package/cjs/src/guidelines/framework/framework.generate.json +119 -0
  10. package/cjs/src/guidelines/howToUseStore/howToUseStore.generate.json +0 -0
  11. package/cjs/src/guidelines/modelConstant/modelConstant.generate.json +135 -0
  12. package/cjs/src/guidelines/modelDictionary/modelDictionary.generate.json +115 -0
  13. package/cjs/src/guidelines/modelDocument/modelDocument.generate.json +129 -0
  14. package/cjs/src/guidelines/modelService/modelService.generate.json +179 -0
  15. package/cjs/src/guidelines/modelSignal/modelSignal.generate.json +202 -0
  16. package/cjs/src/guidelines/modelStore/modelStore.generate.json +130 -0
  17. package/cjs/src/guidelines/modelTemplate/modelTemplate.generate.json +104 -0
  18. package/cjs/src/guidelines/modelUnit/modelUnit.generate.json +92 -0
  19. package/cjs/src/guidelines/modelUtil/modelUtil.generate.json +93 -0
  20. package/cjs/src/guidelines/modelView/modelView.generate.json +80 -0
  21. package/cjs/src/guidelines/modelZone/modelZone.generate.json +126 -0
  22. package/cjs/src/guidelines/scalarConstant/scalarConstant.generate.json +102 -0
  23. package/cjs/src/guidelines/scalarDictionary/scalarDictionary.generate.json +83 -0
  24. package/cjs/src/guidelines/scalarModule/scalarModule.generate.json +35 -0
  25. package/cjs/src/guidelines/sharedUiUsage/sharedUiUsage.generate.json +115 -0
  26. package/cjs/src/guidelines/utilUiUsage/utilUiUsage.generate.json +140 -0
  27. package/cjs/src/templates/app/app/[lang]/(__appName__)/(public)/forgotpassword/page.js +47 -0
  28. package/cjs/src/templates/app/app/[lang]/(__appName__)/(public)/page.js +128 -0
  29. package/cjs/src/templates/app/app/[lang]/(__appName__)/(public)/privacy/page.js +42 -0
  30. package/cjs/src/templates/app/app/[lang]/(__appName__)/(public)/signin/page.js +50 -0
  31. package/cjs/src/templates/app/app/[lang]/(__appName__)/(public)/termsofservice/page.js +41 -0
  32. package/cjs/src/templates/app/app/[lang]/(__appName__)/(public)/unknown/page.js +51 -0
  33. package/cjs/src/templates/app/app/[lang]/(__appName__)/(user)/layout.js +43 -0
  34. package/cjs/src/templates/app/app/[lang]/(__appName__)/(user)/self/page.js +60 -0
  35. package/cjs/src/templates/app/app/[lang]/(__appName__)/layout.js +54 -0
  36. package/cjs/src/templates/app/app/[lang]/(__appName__)/styles.css.template +19 -0
  37. package/cjs/src/templates/app/app/[lang]/admin/layout.js +54 -0
  38. package/cjs/src/templates/app/app/[lang]/admin/page.js +63 -0
  39. package/cjs/src/templates/app/app/csr.js +34 -0
  40. package/cjs/src/templates/app/app/index.html.template +13 -0
  41. package/cjs/src/templates/app/app/layout.js +38 -0
  42. package/cjs/src/templates/app/capacitor.config.ts.template +8 -0
  43. package/cjs/src/templates/app/env/env.client.debug.ts.template +7 -0
  44. package/cjs/src/templates/app/env/env.client.develop.ts.template +7 -0
  45. package/cjs/src/templates/app/env/env.client.local.ts.template +7 -0
  46. package/cjs/src/templates/app/env/env.client.main.ts.template +7 -0
  47. package/cjs/src/templates/app/env/env.client.testing.ts.template +7 -0
  48. package/cjs/src/templates/app/env/env.server.debug.ts.template +15 -0
  49. package/cjs/src/templates/app/env/env.server.develop.ts.template +15 -0
  50. package/cjs/src/templates/app/env/env.server.local.ts.template +15 -0
  51. package/cjs/src/templates/app/env/env.server.main.ts.template +15 -0
  52. package/cjs/src/templates/app/env/env.server.testing.ts.template +7 -0
  53. package/cjs/src/templates/app/lib/setting/Setting.Template.js +57 -0
  54. package/cjs/src/templates/app/lib/setting/Setting.Unit.js +38 -0
  55. package/cjs/src/templates/app/lib/setting/Setting.Util.js +34 -0
  56. package/cjs/src/templates/app/lib/setting/Setting.View.js +51 -0
  57. package/cjs/src/templates/app/lib/setting/Setting.Zone.js +80 -0
  58. package/cjs/src/templates/app/lib/setting/index.js +61 -0
  59. package/cjs/src/templates/app/lib/summary/Summary.Template.js +43 -0
  60. package/cjs/src/templates/app/lib/summary/Summary.Unit.js +38 -0
  61. package/cjs/src/templates/app/lib/summary/Summary.Util.js +33 -0
  62. package/cjs/src/templates/app/lib/summary/Summary.View.js +51 -0
  63. package/cjs/src/templates/app/lib/summary/Summary.Zone.js +62 -0
  64. package/cjs/src/templates/app/lib/summary/index.js +67 -0
  65. package/cjs/src/templates/app/lib/user/User.Template.js +65 -0
  66. package/cjs/src/templates/app/lib/user/User.Unit.js +38 -0
  67. package/cjs/src/templates/app/lib/user/User.Util.js +94 -0
  68. package/cjs/src/templates/app/lib/user/User.View.js +66 -0
  69. package/cjs/src/templates/app/lib/user/User.Zone.js +74 -0
  70. package/cjs/src/templates/app/lib/user/index.js +61 -0
  71. package/cjs/src/templates/app/main.js +2 -1
  72. package/cjs/src/templates/app/page.test.ts.template +10 -0
  73. package/cjs/src/templates/app/playwright.config.ts.template +6 -0
  74. package/cjs/src/templates/app/postcss.config.js.template +10 -0
  75. package/cjs/src/templates/app/public/favicon.ico +0 -0
  76. package/cjs/src/templates/app/public/icons/icon-128x128.png +0 -0
  77. package/cjs/src/templates/app/public/icons/icon-144x144.png +0 -0
  78. package/cjs/src/templates/app/public/icons/icon-152x152.png +0 -0
  79. package/cjs/src/templates/app/public/icons/icon-192x192.png +0 -0
  80. package/cjs/src/templates/app/public/icons/icon-256x256.png +0 -0
  81. package/cjs/src/templates/app/public/icons/icon-384x384.png +0 -0
  82. package/cjs/src/templates/app/public/icons/icon-48x48.png +0 -0
  83. package/cjs/src/templates/app/public/icons/icon-512x512.png +0 -0
  84. package/cjs/src/templates/app/public/icons/icon-72x72.png +0 -0
  85. package/cjs/src/templates/app/public/icons/icon-96x96.png +0 -0
  86. package/cjs/src/templates/app/public/logo.svg +70 -0
  87. package/cjs/src/templates/app/public/manifest.json.template +67 -0
  88. package/cjs/src/templates/app/tsconfig.json.template +22 -0
  89. package/cjs/src/templates/app/tsconfig.spec.json.template +7 -0
  90. package/cjs/src/templates/app/ui/Footer.js +67 -0
  91. package/cjs/src/templates/app/ui/MainHeader.js +131 -0
  92. package/cjs/src/templates/crudPages/[__model__Id]/edit/page.js +73 -0
  93. package/cjs/src/templates/crudPages/[__model__Id]/page.js +83 -0
  94. package/cjs/src/templates/crudPages/new/page.js +70 -0
  95. package/cjs/src/templates/crudPages/page.js +71 -0
  96. package/cjs/src/templates/libRoot/.gitignore.template +15 -0
  97. package/cjs/src/templates/libRoot/env/env.server.example.ts.template +7 -0
  98. package/cjs/src/templates/libRoot/env/env.server.testing.ts.template +7 -0
  99. package/cjs/src/templates/libRoot/lib/setting/Setting.Template.js +57 -0
  100. package/cjs/src/templates/libRoot/lib/setting/Setting.Unit.js +38 -0
  101. package/cjs/src/templates/libRoot/lib/setting/Setting.Util.js +34 -0
  102. package/cjs/src/templates/libRoot/lib/setting/Setting.View.js +51 -0
  103. package/cjs/src/templates/libRoot/lib/setting/Setting.Zone.js +80 -0
  104. package/cjs/src/templates/libRoot/lib/setting/index.js +61 -0
  105. package/cjs/src/templates/libRoot/lib/summary/Summary.Template.js +43 -0
  106. package/cjs/src/templates/libRoot/lib/summary/Summary.Unit.js +38 -0
  107. package/cjs/src/templates/libRoot/lib/summary/Summary.Util.js +33 -0
  108. package/cjs/src/templates/libRoot/lib/summary/Summary.View.js +51 -0
  109. package/cjs/src/templates/libRoot/lib/summary/Summary.Zone.js +62 -0
  110. package/cjs/src/templates/libRoot/lib/summary/index.js +67 -0
  111. package/cjs/src/templates/libRoot/lib/user/User.Template.js +65 -0
  112. package/cjs/src/templates/libRoot/lib/user/User.Unit.js +38 -0
  113. package/cjs/src/templates/libRoot/lib/user/User.Util.js +94 -0
  114. package/cjs/src/templates/libRoot/lib/user/User.View.js +66 -0
  115. package/cjs/src/templates/libRoot/lib/user/User.Zone.js +74 -0
  116. package/cjs/src/templates/libRoot/lib/user/index.js +61 -0
  117. package/cjs/src/templates/libRoot/package.json.template +4 -0
  118. package/cjs/src/templates/libRoot/tsconfig.json.template +13 -0
  119. package/cjs/src/templates/libRoot/tsconfig.spec.json.template +7 -0
  120. package/cjs/src/templates/localDev/docker-compose.yaml.template +36 -0
  121. package/cjs/src/templates/module/__Model__.Template.js +54 -0
  122. package/cjs/src/templates/module/__Model__.Unit.js +42 -0
  123. package/cjs/src/templates/module/__Model__.Util.js +70 -0
  124. package/cjs/src/templates/module/__Model__.View.js +48 -0
  125. package/cjs/src/templates/module/__Model__.Zone.js +83 -0
  126. package/cjs/src/templates/module/index.js +61 -0
  127. package/cjs/src/templates/pkgRoot/tsconfig.json.template +15 -0
  128. package/cjs/src/templates/workspaceRoot/.env.template +20 -0
  129. package/cjs/src/templates/workspaceRoot/.gitignore.template +118 -0
  130. package/cjs/src/templates/workspaceRoot/.prettierignore.template +10 -0
  131. package/cjs/src/templates/workspaceRoot/.prettierrc.json.template +6 -0
  132. package/cjs/src/templates/workspaceRoot/.swcrc.template +9 -0
  133. package/cjs/src/templates/workspaceRoot/.vscode/settings.json.template +13 -0
  134. package/cjs/src/templates/workspaceRoot/README.md.template +37 -0
  135. package/cjs/src/templates/workspaceRoot/eslint.config.ts.template +3 -0
  136. package/cjs/src/templates/workspaceRoot/package.json.template +43 -0
  137. package/cjs/src/templates/workspaceRoot/tsconfig.json.template +29 -0
  138. package/esm/index.js +59 -12
  139. package/esm/src/guidelines/___library/sharedUiStructureDescription.en.md +0 -18
  140. package/esm/src/guidelines/componentRule/componentRule.generate.json +131 -0
  141. package/esm/src/guidelines/cssRule/cssRule.generate.json +93 -0
  142. package/esm/src/guidelines/databaseModule/databaseModule.generate.json +51 -0
  143. package/esm/src/guidelines/docPageRule/docPageRule.generate.json +72 -0
  144. package/esm/src/guidelines/enumConstant/enumConstant.generate.json +24 -0
  145. package/esm/src/guidelines/fieldDecorator/fieldDecorator.generate.json +135 -0
  146. package/esm/src/guidelines/framework/framework.generate.json +119 -0
  147. package/esm/src/guidelines/howToUseStore/howToUseStore.generate.json +0 -0
  148. package/esm/src/guidelines/modelConstant/modelConstant.generate.json +135 -0
  149. package/esm/src/guidelines/modelDictionary/modelDictionary.generate.json +115 -0
  150. package/esm/src/guidelines/modelDocument/modelDocument.generate.json +129 -0
  151. package/esm/src/guidelines/modelService/modelService.generate.json +179 -0
  152. package/esm/src/guidelines/modelSignal/modelSignal.generate.json +202 -0
  153. package/esm/src/guidelines/modelStore/modelStore.generate.json +130 -0
  154. package/esm/src/guidelines/modelTemplate/modelTemplate.generate.json +104 -0
  155. package/esm/src/guidelines/modelUnit/modelUnit.generate.json +92 -0
  156. package/esm/src/guidelines/modelUtil/modelUtil.generate.json +93 -0
  157. package/esm/src/guidelines/modelView/modelView.generate.json +80 -0
  158. package/esm/src/guidelines/modelZone/modelZone.generate.json +126 -0
  159. package/esm/src/guidelines/scalarConstant/scalarConstant.generate.json +102 -0
  160. package/esm/src/guidelines/scalarDictionary/scalarDictionary.generate.json +83 -0
  161. package/esm/src/guidelines/scalarModule/scalarModule.generate.json +35 -0
  162. package/esm/src/guidelines/sharedUiUsage/sharedUiUsage.generate.json +115 -0
  163. package/esm/src/guidelines/utilUiUsage/utilUiUsage.generate.json +140 -0
  164. package/esm/src/templates/app/app/[lang]/(__appName__)/(public)/forgotpassword/page.js +27 -0
  165. package/esm/src/templates/app/app/[lang]/(__appName__)/(public)/page.js +108 -0
  166. package/esm/src/templates/app/app/[lang]/(__appName__)/(public)/privacy/page.js +22 -0
  167. package/esm/src/templates/app/app/[lang]/(__appName__)/(public)/signin/page.js +30 -0
  168. package/esm/src/templates/app/app/[lang]/(__appName__)/(public)/termsofservice/page.js +21 -0
  169. package/esm/src/templates/app/app/[lang]/(__appName__)/(public)/unknown/page.js +31 -0
  170. package/esm/src/templates/app/app/[lang]/(__appName__)/(user)/layout.js +23 -0
  171. package/esm/src/templates/app/app/[lang]/(__appName__)/(user)/self/page.js +40 -0
  172. package/esm/src/templates/app/app/[lang]/(__appName__)/layout.js +34 -0
  173. package/esm/src/templates/app/app/[lang]/(__appName__)/styles.css.template +19 -0
  174. package/esm/src/templates/app/app/[lang]/admin/layout.js +34 -0
  175. package/esm/src/templates/app/app/[lang]/admin/page.js +43 -0
  176. package/esm/src/templates/app/app/csr.js +14 -0
  177. package/esm/src/templates/app/app/index.html.template +13 -0
  178. package/esm/src/templates/app/app/layout.js +18 -0
  179. package/esm/src/templates/app/capacitor.config.ts.template +8 -0
  180. package/esm/src/templates/app/env/env.client.debug.ts.template +7 -0
  181. package/esm/src/templates/app/env/env.client.develop.ts.template +7 -0
  182. package/esm/src/templates/app/env/env.client.local.ts.template +7 -0
  183. package/esm/src/templates/app/env/env.client.main.ts.template +7 -0
  184. package/esm/src/templates/app/env/env.client.testing.ts.template +7 -0
  185. package/esm/src/templates/app/env/env.server.debug.ts.template +15 -0
  186. package/esm/src/templates/app/env/env.server.develop.ts.template +15 -0
  187. package/esm/src/templates/app/env/env.server.local.ts.template +15 -0
  188. package/esm/src/templates/app/env/env.server.main.ts.template +15 -0
  189. package/esm/src/templates/app/env/env.server.testing.ts.template +7 -0
  190. package/esm/src/templates/app/lib/setting/Setting.Template.js +37 -0
  191. package/esm/src/templates/app/lib/setting/Setting.Unit.js +18 -0
  192. package/esm/src/templates/app/lib/setting/Setting.Util.js +14 -0
  193. package/esm/src/templates/app/lib/setting/Setting.View.js +31 -0
  194. package/esm/src/templates/app/lib/setting/Setting.Zone.js +60 -0
  195. package/esm/src/templates/app/lib/setting/index.js +41 -0
  196. package/esm/src/templates/app/lib/summary/Summary.Template.js +23 -0
  197. package/esm/src/templates/app/lib/summary/Summary.Unit.js +18 -0
  198. package/esm/src/templates/app/lib/summary/Summary.Util.js +13 -0
  199. package/esm/src/templates/app/lib/summary/Summary.View.js +31 -0
  200. package/esm/src/templates/app/lib/summary/Summary.Zone.js +42 -0
  201. package/esm/src/templates/app/lib/summary/index.js +47 -0
  202. package/esm/src/templates/app/lib/user/User.Template.js +45 -0
  203. package/esm/src/templates/app/lib/user/User.Unit.js +18 -0
  204. package/esm/src/templates/app/lib/user/User.Util.js +74 -0
  205. package/esm/src/templates/app/lib/user/User.View.js +46 -0
  206. package/esm/src/templates/app/lib/user/User.Zone.js +54 -0
  207. package/esm/src/templates/app/lib/user/index.js +41 -0
  208. package/esm/src/templates/app/main.js +2 -1
  209. package/esm/src/templates/app/page.test.ts.template +10 -0
  210. package/esm/src/templates/app/playwright.config.ts.template +6 -0
  211. package/esm/src/templates/app/postcss.config.js.template +10 -0
  212. package/esm/src/templates/app/public/favicon.ico +0 -0
  213. package/esm/src/templates/app/public/icons/icon-128x128.png +0 -0
  214. package/esm/src/templates/app/public/icons/icon-144x144.png +0 -0
  215. package/esm/src/templates/app/public/icons/icon-152x152.png +0 -0
  216. package/esm/src/templates/app/public/icons/icon-192x192.png +0 -0
  217. package/esm/src/templates/app/public/icons/icon-256x256.png +0 -0
  218. package/esm/src/templates/app/public/icons/icon-384x384.png +0 -0
  219. package/esm/src/templates/app/public/icons/icon-48x48.png +0 -0
  220. package/esm/src/templates/app/public/icons/icon-512x512.png +0 -0
  221. package/esm/src/templates/app/public/icons/icon-72x72.png +0 -0
  222. package/esm/src/templates/app/public/icons/icon-96x96.png +0 -0
  223. package/esm/src/templates/app/public/logo.svg +70 -0
  224. package/esm/src/templates/app/public/manifest.json.template +67 -0
  225. package/esm/src/templates/app/tsconfig.json.template +22 -0
  226. package/esm/src/templates/app/tsconfig.spec.json.template +7 -0
  227. package/esm/src/templates/app/ui/Footer.js +47 -0
  228. package/esm/src/templates/app/ui/MainHeader.js +111 -0
  229. package/esm/src/templates/crudPages/[__model__Id]/edit/page.js +53 -0
  230. package/esm/src/templates/crudPages/[__model__Id]/page.js +63 -0
  231. package/esm/src/templates/crudPages/new/page.js +50 -0
  232. package/esm/src/templates/crudPages/page.js +51 -0
  233. package/esm/src/templates/libRoot/.gitignore.template +15 -0
  234. package/esm/src/templates/libRoot/env/env.server.example.ts.template +7 -0
  235. package/esm/src/templates/libRoot/env/env.server.testing.ts.template +7 -0
  236. package/esm/src/templates/libRoot/lib/setting/Setting.Template.js +37 -0
  237. package/esm/src/templates/libRoot/lib/setting/Setting.Unit.js +18 -0
  238. package/esm/src/templates/libRoot/lib/setting/Setting.Util.js +14 -0
  239. package/esm/src/templates/libRoot/lib/setting/Setting.View.js +31 -0
  240. package/esm/src/templates/libRoot/lib/setting/Setting.Zone.js +60 -0
  241. package/esm/src/templates/libRoot/lib/setting/index.js +41 -0
  242. package/esm/src/templates/libRoot/lib/summary/Summary.Template.js +23 -0
  243. package/esm/src/templates/libRoot/lib/summary/Summary.Unit.js +18 -0
  244. package/esm/src/templates/libRoot/lib/summary/Summary.Util.js +13 -0
  245. package/esm/src/templates/libRoot/lib/summary/Summary.View.js +31 -0
  246. package/esm/src/templates/libRoot/lib/summary/Summary.Zone.js +42 -0
  247. package/esm/src/templates/libRoot/lib/summary/index.js +47 -0
  248. package/esm/src/templates/libRoot/lib/user/User.Template.js +45 -0
  249. package/esm/src/templates/libRoot/lib/user/User.Unit.js +18 -0
  250. package/esm/src/templates/libRoot/lib/user/User.Util.js +74 -0
  251. package/esm/src/templates/libRoot/lib/user/User.View.js +46 -0
  252. package/esm/src/templates/libRoot/lib/user/User.Zone.js +54 -0
  253. package/esm/src/templates/libRoot/lib/user/index.js +41 -0
  254. package/esm/src/templates/libRoot/package.json.template +4 -0
  255. package/esm/src/templates/libRoot/tsconfig.json.template +13 -0
  256. package/esm/src/templates/libRoot/tsconfig.spec.json.template +7 -0
  257. package/esm/src/templates/localDev/docker-compose.yaml.template +36 -0
  258. package/esm/src/templates/module/__Model__.Template.js +34 -0
  259. package/esm/src/templates/module/__Model__.Unit.js +22 -0
  260. package/esm/src/templates/module/__Model__.Util.js +50 -0
  261. package/esm/src/templates/module/__Model__.View.js +28 -0
  262. package/esm/src/templates/module/__Model__.Zone.js +63 -0
  263. package/esm/src/templates/module/index.js +41 -0
  264. package/esm/src/templates/pkgRoot/tsconfig.json.template +15 -0
  265. package/esm/src/templates/workspaceRoot/.env.template +20 -0
  266. package/esm/src/templates/workspaceRoot/.gitignore.template +118 -0
  267. package/esm/src/templates/workspaceRoot/.prettierignore.template +10 -0
  268. package/esm/src/templates/workspaceRoot/.prettierrc.json.template +6 -0
  269. package/esm/src/templates/workspaceRoot/.swcrc.template +9 -0
  270. package/esm/src/templates/workspaceRoot/.vscode/settings.json.template +13 -0
  271. package/esm/src/templates/workspaceRoot/README.md.template +37 -0
  272. package/esm/src/templates/workspaceRoot/eslint.config.ts.template +3 -0
  273. package/esm/src/templates/workspaceRoot/package.json.template +43 -0
  274. package/esm/src/templates/workspaceRoot/tsconfig.json.template +29 -0
  275. package/package.json +1 -1
  276. package/src/application/application.command.d.ts +1 -0
  277. package/src/application/application.runner.d.ts +6 -1
  278. package/src/application/application.script.d.ts +3 -1
  279. package/src/guidelines/___library/sharedUiStructureDescription.en.md +0 -18
  280. package/src/templates/app/app/[lang]/(__appName__)/(public)/forgotpassword/page.d.ts +9 -0
  281. package/src/templates/app/app/[lang]/(__appName__)/(public)/page.d.ts +9 -0
  282. package/src/templates/app/app/[lang]/(__appName__)/(public)/privacy/page.d.ts +9 -0
  283. package/src/templates/app/app/[lang]/(__appName__)/(public)/signin/page.d.ts +9 -0
  284. package/src/templates/app/app/[lang]/(__appName__)/(public)/termsofservice/page.d.ts +10 -0
  285. package/src/templates/app/app/[lang]/(__appName__)/(public)/unknown/page.d.ts +9 -0
  286. package/src/templates/app/app/[lang]/(__appName__)/(user)/layout.d.ts +9 -0
  287. package/src/templates/app/app/[lang]/(__appName__)/(user)/self/page.d.ts +9 -0
  288. package/src/templates/app/app/[lang]/(__appName__)/layout.d.ts +9 -0
  289. package/src/templates/app/app/[lang]/admin/layout.d.ts +9 -0
  290. package/src/templates/app/app/[lang]/admin/page.d.ts +9 -0
  291. package/src/templates/app/app/csr.d.ts +9 -0
  292. package/src/templates/app/app/layout.d.ts +9 -0
  293. package/src/templates/app/lib/setting/Setting.Template.d.ts +9 -0
  294. package/src/templates/app/lib/setting/Setting.Unit.d.ts +9 -0
  295. package/src/templates/app/lib/setting/Setting.Util.d.ts +9 -0
  296. package/src/templates/app/lib/setting/Setting.View.d.ts +9 -0
  297. package/src/templates/app/lib/setting/Setting.Zone.d.ts +9 -0
  298. package/src/templates/app/lib/setting/index.d.ts +9 -0
  299. package/src/templates/app/lib/summary/Summary.Template.d.ts +9 -0
  300. package/src/templates/app/lib/summary/Summary.Unit.d.ts +9 -0
  301. package/src/templates/app/lib/summary/Summary.Util.d.ts +9 -0
  302. package/src/templates/app/lib/summary/Summary.View.d.ts +9 -0
  303. package/src/templates/app/lib/summary/Summary.Zone.d.ts +9 -0
  304. package/src/templates/app/lib/summary/index.d.ts +9 -0
  305. package/src/templates/app/lib/user/User.Template.d.ts +9 -0
  306. package/src/templates/app/lib/user/User.Unit.d.ts +9 -0
  307. package/src/templates/app/lib/user/User.Util.d.ts +9 -0
  308. package/src/templates/app/lib/user/User.View.d.ts +9 -0
  309. package/src/templates/app/lib/user/User.Zone.d.ts +9 -0
  310. package/src/templates/app/lib/user/index.d.ts +9 -0
  311. package/src/templates/app/ui/Footer.d.ts +9 -0
  312. package/src/templates/app/ui/MainHeader.d.ts +10 -0
  313. package/src/templates/crudPages/[__model__Id]/edit/page.d.ts +11 -0
  314. package/src/templates/crudPages/[__model__Id]/page.d.ts +11 -0
  315. package/src/templates/crudPages/new/page.d.ts +11 -0
  316. package/src/templates/crudPages/page.d.ts +11 -0
  317. package/src/templates/libRoot/lib/setting/Setting.Template.d.ts +9 -0
  318. package/src/templates/libRoot/lib/setting/Setting.Unit.d.ts +9 -0
  319. package/src/templates/libRoot/lib/setting/Setting.Util.d.ts +9 -0
  320. package/src/templates/libRoot/lib/setting/Setting.View.d.ts +9 -0
  321. package/src/templates/libRoot/lib/setting/Setting.Zone.d.ts +9 -0
  322. package/src/templates/libRoot/lib/setting/index.d.ts +9 -0
  323. package/src/templates/libRoot/lib/summary/Summary.Template.d.ts +9 -0
  324. package/src/templates/libRoot/lib/summary/Summary.Unit.d.ts +9 -0
  325. package/src/templates/libRoot/lib/summary/Summary.Util.d.ts +9 -0
  326. package/src/templates/libRoot/lib/summary/Summary.View.d.ts +9 -0
  327. package/src/templates/libRoot/lib/summary/Summary.Zone.d.ts +9 -0
  328. package/src/templates/libRoot/lib/summary/index.d.ts +9 -0
  329. package/src/templates/libRoot/lib/user/User.Template.d.ts +9 -0
  330. package/src/templates/libRoot/lib/user/User.Unit.d.ts +9 -0
  331. package/src/templates/libRoot/lib/user/User.Util.d.ts +9 -0
  332. package/src/templates/libRoot/lib/user/User.View.d.ts +9 -0
  333. package/src/templates/libRoot/lib/user/User.Zone.d.ts +9 -0
  334. package/src/templates/libRoot/lib/user/index.d.ts +9 -0
  335. package/src/templates/module/__Model__.Template.d.ts +11 -0
  336. package/src/templates/module/__Model__.Unit.d.ts +11 -0
  337. package/src/templates/module/__Model__.Util.d.ts +11 -0
  338. package/src/templates/module/__Model__.View.d.ts +11 -0
  339. package/src/templates/module/__Model__.Zone.d.ts +11 -0
  340. package/src/templates/module/index.d.ts +11 -0
@@ -0,0 +1,60 @@
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__)/(user)/self/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 { User as SharedUser } from "@shared/client";
30
+ import { MainHeader } from "@${dict.appName}/ui";
31
+ import { User } from "@${dict.appName}/client";
32
+ import { getSelf } from "@akanjs/client";
33
+
34
+ export default function Page() {
35
+ const self = getSelf({ unauthorize: "/signin" });
36
+ return (
37
+ <>
38
+ <MainHeader items={[{ type: "self", name: "profile" }]} />
39
+ <div className="flex items-center gap-2">
40
+ <div className="text-2xl">My Profile</div>
41
+ <User.Util.EditSelf />
42
+ </div>
43
+ <div>
44
+ <User.Zone.Self />
45
+ </div>
46
+ <div>
47
+ <div className="font-bold">Password</div>
48
+ <div>
49
+ *******
50
+ <span>
51
+ <SharedUser.Util.SetPasswordWithPhone />
52
+ </span>
53
+ </div>
54
+ </div>
55
+ </>
56
+ );
57
+ }
58
+ `
59
+ };
60
+ }
@@ -0,0 +1,54 @@
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__)/layout.tsx
20
+ var layout_exports = {};
21
+ __export(layout_exports, {
22
+ default: () => getContent
23
+ });
24
+ module.exports = __toCommonJS(layout_exports);
25
+ function getContent(scanResult, dict) {
26
+ return {
27
+ filename: "layout.tsx",
28
+ content: `
29
+ import "./styles.css";
30
+ import { RootLayoutProps } from "@akanjs/client";
31
+ import { System } from "@shared/ui";
32
+ import { env } from "@${dict.appName}/env/env.client";
33
+ import { fetch } from "@${dict.appName}/client";
34
+
35
+ export const metadata = { title: "${dict.appName}" };
36
+
37
+ export default function Layout({ children, params }: RootLayoutProps) {
38
+ return (
39
+ <System.Provider
40
+ of={Layout}
41
+ appName="${dict.appName}"
42
+ params={params}
43
+ head={<link rel="icon" href="/favicon.ico" />}
44
+ // className="bg-base-100"
45
+ env={env}
46
+ fetch={fetch}
47
+ >
48
+ {children}
49
+ </System.Provider>
50
+ );
51
+ }
52
+ `
53
+ };
54
+ }
@@ -0,0 +1,19 @@
1
+ @import "tailwindcss";
2
+ @import "@akanjs/config/styles.css";
3
+
4
+ @plugin "daisyui" {
5
+ logs: false;
6
+ }
7
+
8
+ @plugin "daisyui/theme" {
9
+ name: "light";
10
+ }
11
+
12
+ @plugin "daisyui/theme" {
13
+ name: "dark";
14
+ }
15
+
16
+ @theme {
17
+ --font-lemonmilk: var(--font-lemonmilk);
18
+ --font-pretendard: var(--font-pretendard);
19
+ }
@@ -0,0 +1,54 @@
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]/admin/layout.tsx
20
+ var layout_exports = {};
21
+ __export(layout_exports, {
22
+ default: () => getContent
23
+ });
24
+ module.exports = __toCommonJS(layout_exports);
25
+ function getContent(scanResult, dict) {
26
+ return {
27
+ filename: "layout.tsx",
28
+ content: `
29
+ import "../(${dict.appName})/styles.css";
30
+ import { System } from "@shared/ui";
31
+ import { env } from "@${dict.appName}/env/env.client";
32
+ import { fetch } from "@${dict.appName}/client";
33
+ import type { RootLayoutProps } from "@akanjs/client";
34
+
35
+ export const metadata = { title: "${dict.appName}" };
36
+
37
+ export default function Layout({ children, params }: RootLayoutProps) {
38
+ return (
39
+ <System.Provider
40
+ of={Layout}
41
+ appName="${dict.appName}"
42
+ params={params}
43
+ head={<link rel="icon" href="/favicon.ico" />}
44
+ // className="bg-base-100"
45
+ env={env}
46
+ fetch={fetch}
47
+ >
48
+ {children}
49
+ </System.Provider>
50
+ );
51
+ }
52
+ `
53
+ };
54
+ }
@@ -0,0 +1,63 @@
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]/admin/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
+ "use client";
30
+ import { Admin } from "@shared/client";
31
+ import { User, st } from "@${dict.appName}/client";
32
+
33
+ export default function Page() {
34
+ const me = st.use.me();
35
+ return (
36
+ <Admin.Zone.Layout
37
+ password
38
+ // ssoTypes={["google"]}
39
+ logo={<div className="text-white ">${dict.appName}</div>}
40
+ pageMenus={[
41
+ {
42
+ key: "data",
43
+ title: "Data",
44
+ menus: [
45
+ Admin.Menu.Admin,
46
+ User.Menu.Admin,
47
+ ],
48
+ },
49
+ {
50
+ key: "api",
51
+ title: "API Doc",
52
+ menus: [
53
+ Admin.Menu.Doc,
54
+ User.Menu.Doc,
55
+ ],
56
+ },
57
+ ]}
58
+ />
59
+ );
60
+ }
61
+ `
62
+ };
63
+ }
@@ -0,0 +1,34 @@
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/csr.tsx
20
+ var csr_exports = {};
21
+ __export(csr_exports, {
22
+ default: () => getContent
23
+ });
24
+ module.exports = __toCommonJS(csr_exports);
25
+ function getContent(scanResult, dict) {
26
+ return {
27
+ filename: "csr.tsx",
28
+ content: `
29
+ import { bootCsr } from "@akanjs/next";
30
+
31
+ void bootCsr(import.meta.glob("./**/*.tsx"));
32
+ `
33
+ };
34
+ }
@@ -0,0 +1,13 @@
1
+ <!doctype html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8" />
5
+ <title><%= appName %></title>
6
+ <base href="/" />
7
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
8
+ </head>
9
+ <body>
10
+ <div id="root"></div>
11
+ <script type="module" src="/csr.tsx"></script>
12
+ </body>
13
+ </html>
@@ -0,0 +1,38 @@
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/layout.tsx
20
+ var layout_exports = {};
21
+ __export(layout_exports, {
22
+ default: () => getContent
23
+ });
24
+ module.exports = __toCommonJS(layout_exports);
25
+ function getContent(scanResult, dict) {
26
+ return {
27
+ filename: "layout.tsx",
28
+ content: `
29
+ "use client";
30
+ import { st } from "@${dict.appName}/client";
31
+ import { System } from "@shared/ui";
32
+
33
+ export default function Layout({ children }) {
34
+ return <System.Root st={st}>{children}</System.Root>;
35
+ }
36
+ `
37
+ };
38
+ }
@@ -0,0 +1,8 @@
1
+ //! will be replaced with akan.config.ts
2
+ import { withBase } from "@akanjs/config/capacitor.base.config";
3
+
4
+ export default withBase((config) => {
5
+ return {
6
+ ...config,
7
+ };
8
+ });
@@ -0,0 +1,7 @@
1
+ import { baseClientEnv } from "@akanjs/base";
2
+
3
+ import { AppClientEnv } from "./env.client.type";
4
+
5
+ export const env: AppClientEnv = {
6
+ ...baseClientEnv,
7
+ } as const;
@@ -0,0 +1,7 @@
1
+ import { baseClientEnv } from "@akanjs/base";
2
+
3
+ import { AppClientEnv } from "./env.client.type";
4
+
5
+ export const env: AppClientEnv = {
6
+ ...baseClientEnv,
7
+ } as const;
@@ -0,0 +1,7 @@
1
+ import { baseClientEnv } from "@akanjs/base";
2
+
3
+ import { AppClientEnv } from "./env.client.type";
4
+
5
+ export const env: AppClientEnv = {
6
+ ...baseClientEnv,
7
+ } as const;
@@ -0,0 +1,7 @@
1
+ import { baseClientEnv } from "@akanjs/base";
2
+
3
+ import { AppClientEnv } from "./env.client.type";
4
+
5
+ export const env: AppClientEnv = {
6
+ ...baseClientEnv,
7
+ } as const;
@@ -0,0 +1,7 @@
1
+ import { baseClientEnv } from "@akanjs/base";
2
+
3
+ import { AppClientEnv } from "./env.client.type";
4
+
5
+ export const env: AppClientEnv = {
6
+ ...baseClientEnv,
7
+ } as const;
@@ -0,0 +1,15 @@
1
+ import { baseEnv } from "@akanjs/base";
2
+
3
+ import type { ModulesOptions } from "../lib/option";
4
+
5
+ export const env: ModulesOptions = {
6
+ ...baseEnv,
7
+ hostname: null,
8
+ redis: {},
9
+ mongo: { password: "S20n-D2bUg" },
10
+ security: {
11
+ verifies: [["password", "phone", "naver", "kakao"]],
12
+ sso: {},
13
+ },
14
+ rootAdminInfo: { accountId: "akamirofficial@gmail.com", password: "akamir190319" },
15
+ };
@@ -0,0 +1,15 @@
1
+ import { baseEnv } from "@akanjs/base";
2
+
3
+ import type { ModulesOptions } from "../lib/option";
4
+
5
+ export const env: ModulesOptions = {
6
+ ...baseEnv,
7
+ hostname: null,
8
+ redis: {},
9
+ mongo: { password: "S20n-D2VeL0p-0905*" },
10
+ security: {
11
+ verifies: [["password", "phone", "naver", "kakao"]],
12
+ sso: {},
13
+ },
14
+ rootAdminInfo: { accountId: "akamirofficial@gmail.com", password: "akamir190319" },
15
+ };
@@ -0,0 +1,15 @@
1
+ import { baseEnv } from "@akanjs/base";
2
+
3
+ import type { ModulesOptions } from "../lib/option";
4
+
5
+ export const env: ModulesOptions = {
6
+ ...baseEnv,
7
+ hostname: null,
8
+ redis: {},
9
+ mongo: {},
10
+ security: {
11
+ verifies: [["password", "phone", "naver", "kakao"]],
12
+ sso: {},
13
+ },
14
+ rootAdminInfo: { accountId: "akamirofficial@gmail.com", password: "akamir190319" },
15
+ };
@@ -0,0 +1,15 @@
1
+ import { baseEnv } from "@akanjs/base";
2
+
3
+ import type { ModulesOptions } from "../lib/option";
4
+
5
+ export const env: ModulesOptions = {
6
+ ...baseEnv,
7
+ hostname: null,
8
+ redis: {},
9
+ mongo: { password: "S20n-m@In-0905*-SEON" },
10
+ security: {
11
+ verifies: [["password", "phone", "naver", "kakao"]],
12
+ sso: {},
13
+ },
14
+ rootAdminInfo: { accountId: "akamirofficial@gmail.com", password: "akamir190319" },
15
+ };
@@ -0,0 +1,7 @@
1
+ import { env as shared } from "@shared/server";
2
+
3
+ import type { ModulesOptions } from "../lib/option";
4
+
5
+ export const env: ModulesOptions = {
6
+ ...shared,
7
+ };
@@ -0,0 +1,57 @@
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(scanResult, dict) {
26
+ return {
27
+ filename: "Setting.Template.tsx",
28
+ content: `
29
+ "use client";
30
+ import { st, usePage } from "@${dict.appName}/client";
31
+
32
+ interface GeneralProps {
33
+ settingId?: string | null;
34
+ }
35
+
36
+ export const General = ({ settingId = undefined }: GeneralProps) => {
37
+ const settingForm = st.use.settingForm();
38
+ const { l } = usePage();
39
+ return (
40
+ <div className="mb-4 flex items-center">
41
+ <div className="flex items-center gap-2">
42
+ <div className="w-32">{l("setting.resignupDays")}</div>
43
+ <input
44
+ type="number"
45
+ className="input"
46
+ value={settingForm.resignupDays}
47
+ onChange={(e) => {
48
+ st.do.setResignupDaysOnSetting(e.target.valueAsNumber);
49
+ }}
50
+ />
51
+ </div>
52
+ </div>
53
+ );
54
+ };
55
+ `
56
+ };
57
+ }
@@ -0,0 +1,38 @@
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(scanResult, dict = {}) {
26
+ return {
27
+ filename: "Setting.Unit.tsx",
28
+ content: `
29
+ import { ModelProps } from "@akanjs/client";
30
+
31
+ import { cnst } from "../cnst";
32
+
33
+ export const Card = ({ className, setting }: ModelProps<"setting", cnst.LightSetting>) => {
34
+ return <div>{setting.id}</div>;
35
+ };
36
+ `
37
+ };
38
+ }
@@ -0,0 +1,34 @@
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(scanResult, dict = {}) {
26
+ return {
27
+ filename: "Setting.Util.tsx",
28
+ content: `
29
+ "use client";
30
+
31
+ export const aaa = 1;
32
+ `
33
+ };
34
+ }
@@ -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/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(scanResult, 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, "mr-12")}>
43
+ <div>
44
+ {l("setting.resignupDays")}: {setting.resignupDays}
45
+ </div>
46
+ </div>
47
+ );
48
+ };
49
+ `
50
+ };
51
+ }