@akanjs/cli 0.0.149 → 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 (258) hide show
  1. package/cjs/index.js +17 -11
  2. package/cjs/src/guidelines/componentRule/componentRule.generate.json +131 -0
  3. package/cjs/src/guidelines/cssRule/cssRule.generate.json +93 -0
  4. package/cjs/src/guidelines/databaseModule/databaseModule.generate.json +51 -0
  5. package/cjs/src/guidelines/docPageRule/docPageRule.generate.json +72 -0
  6. package/cjs/src/guidelines/enumConstant/enumConstant.generate.json +24 -0
  7. package/cjs/src/guidelines/fieldDecorator/fieldDecorator.generate.json +135 -0
  8. package/cjs/src/guidelines/framework/framework.generate.json +119 -0
  9. package/cjs/src/guidelines/howToUseStore/howToUseStore.generate.json +0 -0
  10. package/cjs/src/guidelines/modelConstant/modelConstant.generate.json +135 -0
  11. package/cjs/src/guidelines/modelDictionary/modelDictionary.generate.json +115 -0
  12. package/cjs/src/guidelines/modelDocument/modelDocument.generate.json +129 -0
  13. package/cjs/src/guidelines/modelService/modelService.generate.json +179 -0
  14. package/cjs/src/guidelines/modelSignal/modelSignal.generate.json +202 -0
  15. package/cjs/src/guidelines/modelStore/modelStore.generate.json +130 -0
  16. package/cjs/src/guidelines/modelTemplate/modelTemplate.generate.json +104 -0
  17. package/cjs/src/guidelines/modelUnit/modelUnit.generate.json +92 -0
  18. package/cjs/src/guidelines/modelUtil/modelUtil.generate.json +93 -0
  19. package/cjs/src/guidelines/modelView/modelView.generate.json +80 -0
  20. package/cjs/src/guidelines/modelZone/modelZone.generate.json +126 -0
  21. package/cjs/src/guidelines/scalarConstant/scalarConstant.generate.json +102 -0
  22. package/cjs/src/guidelines/scalarDictionary/scalarDictionary.generate.json +83 -0
  23. package/cjs/src/guidelines/scalarModule/scalarModule.generate.json +35 -0
  24. package/cjs/src/guidelines/sharedUiUsage/sharedUiUsage.generate.json +115 -0
  25. package/cjs/src/guidelines/utilUiUsage/utilUiUsage.generate.json +140 -0
  26. package/cjs/src/templates/app/app/[lang]/(__appName__)/(public)/forgotpassword/page.js +47 -0
  27. package/cjs/src/templates/app/app/[lang]/(__appName__)/(public)/page.js +128 -0
  28. package/cjs/src/templates/app/app/[lang]/(__appName__)/(public)/privacy/page.js +42 -0
  29. package/cjs/src/templates/app/app/[lang]/(__appName__)/(public)/signin/page.js +50 -0
  30. package/cjs/src/templates/app/app/[lang]/(__appName__)/(public)/termsofservice/page.js +41 -0
  31. package/cjs/src/templates/app/app/[lang]/(__appName__)/(public)/unknown/page.js +51 -0
  32. package/cjs/src/templates/app/app/[lang]/(__appName__)/(user)/layout.js +43 -0
  33. package/cjs/src/templates/app/app/[lang]/(__appName__)/(user)/self/page.js +60 -0
  34. package/cjs/src/templates/app/app/[lang]/(__appName__)/layout.js +54 -0
  35. package/cjs/src/templates/app/app/[lang]/admin/layout.js +54 -0
  36. package/cjs/src/templates/app/app/[lang]/admin/page.js +63 -0
  37. package/cjs/src/templates/app/app/csr.js +34 -0
  38. package/cjs/src/templates/app/app/layout.js +38 -0
  39. package/cjs/src/templates/app/lib/setting/Setting.Template.js +57 -0
  40. package/cjs/src/templates/app/lib/setting/Setting.Unit.js +38 -0
  41. package/cjs/src/templates/app/lib/setting/Setting.Util.js +34 -0
  42. package/cjs/src/templates/app/lib/setting/Setting.View.js +51 -0
  43. package/cjs/src/templates/app/lib/setting/Setting.Zone.js +80 -0
  44. package/cjs/src/templates/app/lib/setting/index.js +61 -0
  45. package/cjs/src/templates/app/lib/summary/Summary.Template.js +43 -0
  46. package/cjs/src/templates/app/lib/summary/Summary.Unit.js +38 -0
  47. package/cjs/src/templates/app/lib/summary/Summary.Util.js +33 -0
  48. package/cjs/src/templates/app/lib/summary/Summary.View.js +51 -0
  49. package/cjs/src/templates/app/lib/summary/Summary.Zone.js +62 -0
  50. package/cjs/src/templates/app/lib/summary/index.js +67 -0
  51. package/cjs/src/templates/app/lib/user/User.Template.js +65 -0
  52. package/cjs/src/templates/app/lib/user/User.Unit.js +38 -0
  53. package/cjs/src/templates/app/lib/user/User.Util.js +94 -0
  54. package/cjs/src/templates/app/lib/user/User.View.js +66 -0
  55. package/cjs/src/templates/app/lib/user/User.Zone.js +74 -0
  56. package/cjs/src/templates/app/lib/user/index.js +61 -0
  57. package/cjs/src/templates/app/public/favicon.ico +0 -0
  58. package/cjs/src/templates/app/public/icons/icon-128x128.png +0 -0
  59. package/cjs/src/templates/app/public/icons/icon-144x144.png +0 -0
  60. package/cjs/src/templates/app/public/icons/icon-152x152.png +0 -0
  61. package/cjs/src/templates/app/public/icons/icon-192x192.png +0 -0
  62. package/cjs/src/templates/app/public/icons/icon-256x256.png +0 -0
  63. package/cjs/src/templates/app/public/icons/icon-384x384.png +0 -0
  64. package/cjs/src/templates/app/public/icons/icon-48x48.png +0 -0
  65. package/cjs/src/templates/app/public/icons/icon-512x512.png +0 -0
  66. package/cjs/src/templates/app/public/icons/icon-72x72.png +0 -0
  67. package/cjs/src/templates/app/public/icons/icon-96x96.png +0 -0
  68. package/cjs/src/templates/app/public/logo.svg +70 -0
  69. package/cjs/src/templates/app/ui/Footer.js +67 -0
  70. package/cjs/src/templates/app/ui/MainHeader.js +131 -0
  71. package/cjs/src/templates/crudPages/[__model__Id]/edit/page.js +73 -0
  72. package/cjs/src/templates/crudPages/[__model__Id]/page.js +83 -0
  73. package/cjs/src/templates/crudPages/new/page.js +70 -0
  74. package/cjs/src/templates/crudPages/page.js +71 -0
  75. package/cjs/src/templates/libRoot/lib/setting/Setting.Template.js +57 -0
  76. package/cjs/src/templates/libRoot/lib/setting/Setting.Unit.js +38 -0
  77. package/cjs/src/templates/libRoot/lib/setting/Setting.Util.js +34 -0
  78. package/cjs/src/templates/libRoot/lib/setting/Setting.View.js +51 -0
  79. package/cjs/src/templates/libRoot/lib/setting/Setting.Zone.js +80 -0
  80. package/cjs/src/templates/libRoot/lib/setting/index.js +61 -0
  81. package/cjs/src/templates/libRoot/lib/summary/Summary.Template.js +43 -0
  82. package/cjs/src/templates/libRoot/lib/summary/Summary.Unit.js +38 -0
  83. package/cjs/src/templates/libRoot/lib/summary/Summary.Util.js +33 -0
  84. package/cjs/src/templates/libRoot/lib/summary/Summary.View.js +51 -0
  85. package/cjs/src/templates/libRoot/lib/summary/Summary.Zone.js +62 -0
  86. package/cjs/src/templates/libRoot/lib/summary/index.js +67 -0
  87. package/cjs/src/templates/libRoot/lib/user/User.Template.js +65 -0
  88. package/cjs/src/templates/libRoot/lib/user/User.Unit.js +38 -0
  89. package/cjs/src/templates/libRoot/lib/user/User.Util.js +94 -0
  90. package/cjs/src/templates/libRoot/lib/user/User.View.js +66 -0
  91. package/cjs/src/templates/libRoot/lib/user/User.Zone.js +74 -0
  92. package/cjs/src/templates/libRoot/lib/user/index.js +61 -0
  93. package/cjs/src/templates/module/__Model__.Template.js +54 -0
  94. package/cjs/src/templates/module/__Model__.Unit.js +42 -0
  95. package/cjs/src/templates/module/__Model__.Util.js +70 -0
  96. package/cjs/src/templates/module/__Model__.View.js +48 -0
  97. package/cjs/src/templates/module/__Model__.Zone.js +83 -0
  98. package/cjs/src/templates/module/index.js +61 -0
  99. package/esm/index.js +17 -11
  100. package/esm/src/guidelines/componentRule/componentRule.generate.json +131 -0
  101. package/esm/src/guidelines/cssRule/cssRule.generate.json +93 -0
  102. package/esm/src/guidelines/databaseModule/databaseModule.generate.json +51 -0
  103. package/esm/src/guidelines/docPageRule/docPageRule.generate.json +72 -0
  104. package/esm/src/guidelines/enumConstant/enumConstant.generate.json +24 -0
  105. package/esm/src/guidelines/fieldDecorator/fieldDecorator.generate.json +135 -0
  106. package/esm/src/guidelines/framework/framework.generate.json +119 -0
  107. package/esm/src/guidelines/howToUseStore/howToUseStore.generate.json +0 -0
  108. package/esm/src/guidelines/modelConstant/modelConstant.generate.json +135 -0
  109. package/esm/src/guidelines/modelDictionary/modelDictionary.generate.json +115 -0
  110. package/esm/src/guidelines/modelDocument/modelDocument.generate.json +129 -0
  111. package/esm/src/guidelines/modelService/modelService.generate.json +179 -0
  112. package/esm/src/guidelines/modelSignal/modelSignal.generate.json +202 -0
  113. package/esm/src/guidelines/modelStore/modelStore.generate.json +130 -0
  114. package/esm/src/guidelines/modelTemplate/modelTemplate.generate.json +104 -0
  115. package/esm/src/guidelines/modelUnit/modelUnit.generate.json +92 -0
  116. package/esm/src/guidelines/modelUtil/modelUtil.generate.json +93 -0
  117. package/esm/src/guidelines/modelView/modelView.generate.json +80 -0
  118. package/esm/src/guidelines/modelZone/modelZone.generate.json +126 -0
  119. package/esm/src/guidelines/scalarConstant/scalarConstant.generate.json +102 -0
  120. package/esm/src/guidelines/scalarDictionary/scalarDictionary.generate.json +83 -0
  121. package/esm/src/guidelines/scalarModule/scalarModule.generate.json +35 -0
  122. package/esm/src/guidelines/sharedUiUsage/sharedUiUsage.generate.json +115 -0
  123. package/esm/src/guidelines/utilUiUsage/utilUiUsage.generate.json +140 -0
  124. package/esm/src/templates/app/app/[lang]/(__appName__)/(public)/forgotpassword/page.js +27 -0
  125. package/esm/src/templates/app/app/[lang]/(__appName__)/(public)/page.js +108 -0
  126. package/esm/src/templates/app/app/[lang]/(__appName__)/(public)/privacy/page.js +22 -0
  127. package/esm/src/templates/app/app/[lang]/(__appName__)/(public)/signin/page.js +30 -0
  128. package/esm/src/templates/app/app/[lang]/(__appName__)/(public)/termsofservice/page.js +21 -0
  129. package/esm/src/templates/app/app/[lang]/(__appName__)/(public)/unknown/page.js +31 -0
  130. package/esm/src/templates/app/app/[lang]/(__appName__)/(user)/layout.js +23 -0
  131. package/esm/src/templates/app/app/[lang]/(__appName__)/(user)/self/page.js +40 -0
  132. package/esm/src/templates/app/app/[lang]/(__appName__)/layout.js +34 -0
  133. package/esm/src/templates/app/app/[lang]/admin/layout.js +34 -0
  134. package/esm/src/templates/app/app/[lang]/admin/page.js +43 -0
  135. package/esm/src/templates/app/app/csr.js +14 -0
  136. package/esm/src/templates/app/app/layout.js +18 -0
  137. package/esm/src/templates/app/lib/setting/Setting.Template.js +37 -0
  138. package/esm/src/templates/app/lib/setting/Setting.Unit.js +18 -0
  139. package/esm/src/templates/app/lib/setting/Setting.Util.js +14 -0
  140. package/esm/src/templates/app/lib/setting/Setting.View.js +31 -0
  141. package/esm/src/templates/app/lib/setting/Setting.Zone.js +60 -0
  142. package/esm/src/templates/app/lib/setting/index.js +41 -0
  143. package/esm/src/templates/app/lib/summary/Summary.Template.js +23 -0
  144. package/esm/src/templates/app/lib/summary/Summary.Unit.js +18 -0
  145. package/esm/src/templates/app/lib/summary/Summary.Util.js +13 -0
  146. package/esm/src/templates/app/lib/summary/Summary.View.js +31 -0
  147. package/esm/src/templates/app/lib/summary/Summary.Zone.js +42 -0
  148. package/esm/src/templates/app/lib/summary/index.js +47 -0
  149. package/esm/src/templates/app/lib/user/User.Template.js +45 -0
  150. package/esm/src/templates/app/lib/user/User.Unit.js +18 -0
  151. package/esm/src/templates/app/lib/user/User.Util.js +74 -0
  152. package/esm/src/templates/app/lib/user/User.View.js +46 -0
  153. package/esm/src/templates/app/lib/user/User.Zone.js +54 -0
  154. package/esm/src/templates/app/lib/user/index.js +41 -0
  155. package/esm/src/templates/app/public/favicon.ico +0 -0
  156. package/esm/src/templates/app/public/icons/icon-128x128.png +0 -0
  157. package/esm/src/templates/app/public/icons/icon-144x144.png +0 -0
  158. package/esm/src/templates/app/public/icons/icon-152x152.png +0 -0
  159. package/esm/src/templates/app/public/icons/icon-192x192.png +0 -0
  160. package/esm/src/templates/app/public/icons/icon-256x256.png +0 -0
  161. package/esm/src/templates/app/public/icons/icon-384x384.png +0 -0
  162. package/esm/src/templates/app/public/icons/icon-48x48.png +0 -0
  163. package/esm/src/templates/app/public/icons/icon-512x512.png +0 -0
  164. package/esm/src/templates/app/public/icons/icon-72x72.png +0 -0
  165. package/esm/src/templates/app/public/icons/icon-96x96.png +0 -0
  166. package/esm/src/templates/app/public/logo.svg +70 -0
  167. package/esm/src/templates/app/ui/Footer.js +47 -0
  168. package/esm/src/templates/app/ui/MainHeader.js +111 -0
  169. package/esm/src/templates/crudPages/[__model__Id]/edit/page.js +53 -0
  170. package/esm/src/templates/crudPages/[__model__Id]/page.js +63 -0
  171. package/esm/src/templates/crudPages/new/page.js +50 -0
  172. package/esm/src/templates/crudPages/page.js +51 -0
  173. package/esm/src/templates/libRoot/lib/setting/Setting.Template.js +37 -0
  174. package/esm/src/templates/libRoot/lib/setting/Setting.Unit.js +18 -0
  175. package/esm/src/templates/libRoot/lib/setting/Setting.Util.js +14 -0
  176. package/esm/src/templates/libRoot/lib/setting/Setting.View.js +31 -0
  177. package/esm/src/templates/libRoot/lib/setting/Setting.Zone.js +60 -0
  178. package/esm/src/templates/libRoot/lib/setting/index.js +41 -0
  179. package/esm/src/templates/libRoot/lib/summary/Summary.Template.js +23 -0
  180. package/esm/src/templates/libRoot/lib/summary/Summary.Unit.js +18 -0
  181. package/esm/src/templates/libRoot/lib/summary/Summary.Util.js +13 -0
  182. package/esm/src/templates/libRoot/lib/summary/Summary.View.js +31 -0
  183. package/esm/src/templates/libRoot/lib/summary/Summary.Zone.js +42 -0
  184. package/esm/src/templates/libRoot/lib/summary/index.js +47 -0
  185. package/esm/src/templates/libRoot/lib/user/User.Template.js +45 -0
  186. package/esm/src/templates/libRoot/lib/user/User.Unit.js +18 -0
  187. package/esm/src/templates/libRoot/lib/user/User.Util.js +74 -0
  188. package/esm/src/templates/libRoot/lib/user/User.View.js +46 -0
  189. package/esm/src/templates/libRoot/lib/user/User.Zone.js +54 -0
  190. package/esm/src/templates/libRoot/lib/user/index.js +41 -0
  191. package/esm/src/templates/module/__Model__.Template.js +34 -0
  192. package/esm/src/templates/module/__Model__.Unit.js +22 -0
  193. package/esm/src/templates/module/__Model__.Util.js +50 -0
  194. package/esm/src/templates/module/__Model__.View.js +28 -0
  195. package/esm/src/templates/module/__Model__.Zone.js +63 -0
  196. package/esm/src/templates/module/index.js +41 -0
  197. package/package.json +1 -1
  198. package/src/templates/app/app/[lang]/(__appName__)/(public)/forgotpassword/page.d.ts +9 -0
  199. package/src/templates/app/app/[lang]/(__appName__)/(public)/page.d.ts +9 -0
  200. package/src/templates/app/app/[lang]/(__appName__)/(public)/privacy/page.d.ts +9 -0
  201. package/src/templates/app/app/[lang]/(__appName__)/(public)/signin/page.d.ts +9 -0
  202. package/src/templates/app/app/[lang]/(__appName__)/(public)/termsofservice/page.d.ts +10 -0
  203. package/src/templates/app/app/[lang]/(__appName__)/(public)/unknown/page.d.ts +9 -0
  204. package/src/templates/app/app/[lang]/(__appName__)/(user)/layout.d.ts +9 -0
  205. package/src/templates/app/app/[lang]/(__appName__)/(user)/self/page.d.ts +9 -0
  206. package/src/templates/app/app/[lang]/(__appName__)/layout.d.ts +9 -0
  207. package/src/templates/app/app/[lang]/admin/layout.d.ts +9 -0
  208. package/src/templates/app/app/[lang]/admin/page.d.ts +9 -0
  209. package/src/templates/app/app/csr.d.ts +9 -0
  210. package/src/templates/app/app/layout.d.ts +9 -0
  211. package/src/templates/app/lib/setting/Setting.Template.d.ts +9 -0
  212. package/src/templates/app/lib/setting/Setting.Unit.d.ts +9 -0
  213. package/src/templates/app/lib/setting/Setting.Util.d.ts +9 -0
  214. package/src/templates/app/lib/setting/Setting.View.d.ts +9 -0
  215. package/src/templates/app/lib/setting/Setting.Zone.d.ts +9 -0
  216. package/src/templates/app/lib/setting/index.d.ts +9 -0
  217. package/src/templates/app/lib/summary/Summary.Template.d.ts +9 -0
  218. package/src/templates/app/lib/summary/Summary.Unit.d.ts +9 -0
  219. package/src/templates/app/lib/summary/Summary.Util.d.ts +9 -0
  220. package/src/templates/app/lib/summary/Summary.View.d.ts +9 -0
  221. package/src/templates/app/lib/summary/Summary.Zone.d.ts +9 -0
  222. package/src/templates/app/lib/summary/index.d.ts +9 -0
  223. package/src/templates/app/lib/user/User.Template.d.ts +9 -0
  224. package/src/templates/app/lib/user/User.Unit.d.ts +9 -0
  225. package/src/templates/app/lib/user/User.Util.d.ts +9 -0
  226. package/src/templates/app/lib/user/User.View.d.ts +9 -0
  227. package/src/templates/app/lib/user/User.Zone.d.ts +9 -0
  228. package/src/templates/app/lib/user/index.d.ts +9 -0
  229. package/src/templates/app/ui/Footer.d.ts +9 -0
  230. package/src/templates/app/ui/MainHeader.d.ts +10 -0
  231. package/src/templates/crudPages/[__model__Id]/edit/page.d.ts +11 -0
  232. package/src/templates/crudPages/[__model__Id]/page.d.ts +11 -0
  233. package/src/templates/crudPages/new/page.d.ts +11 -0
  234. package/src/templates/crudPages/page.d.ts +11 -0
  235. package/src/templates/libRoot/lib/setting/Setting.Template.d.ts +9 -0
  236. package/src/templates/libRoot/lib/setting/Setting.Unit.d.ts +9 -0
  237. package/src/templates/libRoot/lib/setting/Setting.Util.d.ts +9 -0
  238. package/src/templates/libRoot/lib/setting/Setting.View.d.ts +9 -0
  239. package/src/templates/libRoot/lib/setting/Setting.Zone.d.ts +9 -0
  240. package/src/templates/libRoot/lib/setting/index.d.ts +9 -0
  241. package/src/templates/libRoot/lib/summary/Summary.Template.d.ts +9 -0
  242. package/src/templates/libRoot/lib/summary/Summary.Unit.d.ts +9 -0
  243. package/src/templates/libRoot/lib/summary/Summary.Util.d.ts +9 -0
  244. package/src/templates/libRoot/lib/summary/Summary.View.d.ts +9 -0
  245. package/src/templates/libRoot/lib/summary/Summary.Zone.d.ts +9 -0
  246. package/src/templates/libRoot/lib/summary/index.d.ts +9 -0
  247. package/src/templates/libRoot/lib/user/User.Template.d.ts +9 -0
  248. package/src/templates/libRoot/lib/user/User.Unit.d.ts +9 -0
  249. package/src/templates/libRoot/lib/user/User.Util.d.ts +9 -0
  250. package/src/templates/libRoot/lib/user/User.View.d.ts +9 -0
  251. package/src/templates/libRoot/lib/user/User.Zone.d.ts +9 -0
  252. package/src/templates/libRoot/lib/user/index.d.ts +9 -0
  253. package/src/templates/module/__Model__.Template.d.ts +11 -0
  254. package/src/templates/module/__Model__.Unit.d.ts +11 -0
  255. package/src/templates/module/__Model__.Util.d.ts +11 -0
  256. package/src/templates/module/__Model__.View.d.ts +11 -0
  257. package/src/templates/module/__Model__.Zone.d.ts +11 -0
  258. package/src/templates/module/index.d.ts +11 -0
@@ -0,0 +1,66 @@
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/libRoot/lib/user/User.View.tsx
20
+ var User_View_exports = {};
21
+ __export(User_View_exports, {
22
+ default: () => getContent
23
+ });
24
+ module.exports = __toCommonJS(User_View_exports);
25
+ function getContent(scanResult, dict) {
26
+ return {
27
+ filename: "User.View.tsx",
28
+ content: `
29
+ import { clsx } from "@akanjs/client";
30
+ import { usePage } from "@${dict.libName}/client";
31
+ import { Avatar } from "@util/ui";
32
+ import { AiOutlineUser } from "react-icons/ai";
33
+
34
+ import { cnst } from "../cnst";
35
+
36
+ interface UserViewProps {
37
+ className?: string;
38
+ user: cnst.User;
39
+ }
40
+
41
+ export const General = ({ className, user }: UserViewProps) => {
42
+ const { l } = usePage();
43
+ return (
44
+ <div className={clsx("flex flex-col gap-4", className)}>
45
+ <div>
46
+ <div className="font-bold">Profile</div>
47
+ <div className="text-base">
48
+ <Avatar
49
+ className="flex items-center justify-center w-24 h-24"
50
+ icon={<AiOutlineUser className="text-4xl" />}
51
+ src={user.image?.url}
52
+ />
53
+ </div>
54
+ </div>
55
+ <div>
56
+ <div className="flex gap-2 items-center">
57
+ <div className="font-bold">Nickname</div>
58
+ </div>
59
+ <p className="text-base">{user.nickname}</p>
60
+ </div>
61
+ </div>
62
+ );
63
+ };
64
+ `
65
+ };
66
+ }
@@ -0,0 +1,74 @@
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/libRoot/lib/user/User.Zone.tsx
20
+ var User_Zone_exports = {};
21
+ __export(User_Zone_exports, {
22
+ default: () => getContent
23
+ });
24
+ module.exports = __toCommonJS(User_Zone_exports);
25
+ function getContent(scanResult, dict) {
26
+ return {
27
+ filename: "User.Zone.tsx",
28
+ content: `
29
+ "use client";
30
+ import { ModelsProps } from "@akanjs/client";
31
+ import { DefaultOf } from "@akanjs/signal";
32
+ import { cnst, st, User } from "@${dict.libName}/client";
33
+ import { Data, Model } from "@shared/ui";
34
+
35
+ export const Admin = ({ sliceName = "user", init, query }: ModelsProps<cnst.User>) => {
36
+ return (
37
+ <Data.ListContainer
38
+ init={init}
39
+ query={query}
40
+ sliceName={sliceName}
41
+ renderItem={User.Unit.Card}
42
+ renderDashboard={User.Util.Stat}
43
+ renderInsight={User.Util.Insight}
44
+ renderTemplate={User.Template.General}
45
+ renderTitle={(user: DefaultOf<cnst.User>) => \`\${user.nickname}\`}
46
+ renderView={(user: cnst.User) => <User.View.General user={user} />}
47
+ type="list"
48
+ columns={["nickname", "status", "lastLoginAt", "createdAt"]}
49
+ actions={(user: cnst.LightUser, idx) => [
50
+ "remove",
51
+ "edit",
52
+ "view",
53
+ user.status === "active"
54
+ ? { type: "restrict", render: () => <User.Util.Restrict id={user.id} /> }
55
+ : { type: "release", render: () => <User.Util.Release id={user.id} /> },
56
+ ]}
57
+ />
58
+ );
59
+ };
60
+
61
+ export const Self = () => {
62
+ const self = st.use.self();
63
+ const userModal = st.use.userModal();
64
+ return userModal === "edit" ? (
65
+ <Model.EditModal type="form" sliceName="user" submitOption={{ path: "self" }}>
66
+ <User.Template.General />
67
+ </Model.EditModal>
68
+ ) : (
69
+ <User.View.General user={self} />
70
+ );
71
+ };
72
+ `
73
+ };
74
+ }
@@ -0,0 +1,61 @@
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/libRoot/lib/user/index.tsx
20
+ var user_exports = {};
21
+ __export(user_exports, {
22
+ default: () => getContent
23
+ });
24
+ module.exports = __toCommonJS(user_exports);
25
+ function getContent(scanResult, dict = {}) {
26
+ return {
27
+ filename: "index.tsx",
28
+ content: `
29
+ import { Signal } from "@util/ui";
30
+ import { AiOutlineUser } from "react-icons/ai";
31
+
32
+ import * as Template from "./User.Template";
33
+ import * as Unit from "./User.Unit";
34
+ import * as Util from "./User.Util";
35
+ import * as View from "./User.View";
36
+ import * as Zone from "./User.Zone";
37
+
38
+ export const User = {
39
+ Menu: {
40
+ Admin: {
41
+ key: "user",
42
+ label: "User",
43
+ icon: <AiOutlineUser />,
44
+ render: () => <Zone.Admin />,
45
+ },
46
+ Doc: {
47
+ key: "user",
48
+ label: "User",
49
+ icon: <AiOutlineUser />,
50
+ render: () => <Signal.Doc.Zone refName="user" />,
51
+ },
52
+ },
53
+ Template,
54
+ Unit,
55
+ Util,
56
+ View,
57
+ Zone,
58
+ };
59
+ `
60
+ };
61
+ }
@@ -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/module/__Model__.Template.tsx
20
+ var Model_Template_exports = {};
21
+ __export(Model_Template_exports, {
22
+ default: () => getContent
23
+ });
24
+ module.exports = __toCommonJS(Model_Template_exports);
25
+ function getContent(scanResult, dict) {
26
+ return {
27
+ filename: `${dict.Model}.Template.tsx`,
28
+ content: `
29
+ "use client";
30
+ import { cnst, st, usePage } from "@${dict.sysName}/client";
31
+ import { Field } from "@shared/ui";
32
+ import { Layout } from "@util/ui";
33
+
34
+ interface ${dict.Model}EditProps {
35
+ ${dict.model}Id?: string | null;
36
+ }
37
+
38
+ export const General = ({ ${dict.model}Id = undefined }: ${dict.Model}EditProps) => {
39
+ const ${dict.model}Form = st.use.${dict.model}Form();
40
+ const { l } = usePage();
41
+ return (
42
+ <Layout.Template>
43
+ <Field.Text
44
+ label={l.field("${dict.model}", "id")}
45
+ desc={l.desc("${dict.model}", "id")}
46
+ value={${dict.model}Form.id}
47
+ onChange={st.do.setIdOn${dict.Model}}
48
+ />
49
+ </Layout.Template>
50
+ );
51
+ };
52
+ `
53
+ };
54
+ }
@@ -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/module/__Model__.Unit.tsx
20
+ var Model_Unit_exports = {};
21
+ __export(Model_Unit_exports, {
22
+ default: () => getContent
23
+ });
24
+ module.exports = __toCommonJS(Model_Unit_exports);
25
+ function getContent(scanResult, dict) {
26
+ return {
27
+ filename: `${dict.Model}.Unit.tsx`,
28
+ content: `
29
+ import { ModelProps } from "@akanjs/client";
30
+ import { cnst, ${dict.Model} } from "@${dict.sysName}/client";
31
+ import { Link } from "@util/ui";
32
+
33
+ export const Card = ({ ${dict.model}, href }: ModelProps<"${dict.model}", cnst.Light${dict.Model}>) => {
34
+ return (
35
+ <Link href={href} className="animate-fadeIn w-full h-36 flex rounded-lg shadow-sm hover:shadow-lg duration-300">
36
+ <div>{${dict.model}.id}</div>
37
+ </Link>
38
+ );
39
+ };
40
+ `
41
+ };
42
+ }
@@ -0,0 +1,70 @@
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/module/__Model__.Util.tsx
20
+ var Model_Util_exports = {};
21
+ __export(Model_Util_exports, {
22
+ default: () => getContent
23
+ });
24
+ module.exports = __toCommonJS(Model_Util_exports);
25
+ function getContent(scanResult, dict) {
26
+ return {
27
+ filename: `${dict.Model}.Util.tsx`,
28
+ content: `
29
+ "use client";
30
+ import { ModelDashboardProps, ModelInsightProps } from "@akanjs/client";
31
+ import { getQueryMap } from "@akanjs/constant";
32
+ import { cnst } from "@${dict.sysName}/client";
33
+ import { Data } from "@shared/ui";
34
+
35
+ export const Stat = ({
36
+ className,
37
+ summary,
38
+ sliceName = "${dict.model}",
39
+ queryMap = getQueryMap(cnst.${dict.Model}Summary),
40
+ hidePresents,
41
+ }: ModelDashboardProps<cnst.Summary>) => {
42
+ return (
43
+ <Data.Dashboard
44
+ className={className}
45
+ summary={summary}
46
+ sliceName={sliceName}
47
+ queryMap={queryMap}
48
+ columns={["total${dict.Model}"]}
49
+ hidePresents={hidePresents}
50
+ />
51
+ );
52
+ };
53
+
54
+ export const Insight = ({
55
+ className,
56
+ insight,
57
+ sliceName = "${dict.model}",
58
+ }: ModelInsightProps<cnst.${dict.Model}Insight>) => {
59
+ return (
60
+ <Data.Insight
61
+ className={className}
62
+ insight={insight}
63
+ sliceName={sliceName}
64
+ columns={["count"]}
65
+ />
66
+ );
67
+ };
68
+ `
69
+ };
70
+ }
@@ -0,0 +1,48 @@
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/module/__Model__.View.tsx
20
+ var Model_View_exports = {};
21
+ __export(Model_View_exports, {
22
+ default: () => getContent
23
+ });
24
+ module.exports = __toCommonJS(Model_View_exports);
25
+ function getContent(scanResult, dict) {
26
+ return {
27
+ filename: `${dict.Model}.View.tsx`,
28
+ content: `
29
+ import { clsx } from "@akanjs/client";
30
+ import { cnst } from "@${dict.sysName}/client";
31
+ import { Image } from "@util/ui";
32
+
33
+ interface ${dict.Model}ViewProps {
34
+ className?: string;
35
+ ${dict.model}: cnst.${dict.Model};
36
+ self?: { id?: string } | null;
37
+ }
38
+
39
+ export const General = ({ className, ${dict.model}, self }: ${dict.Model}ViewProps) => {
40
+ return (
41
+ <div className={clsx(className, "animate-fadeIn w-full")}>
42
+ <div>{${dict.model}.id}</div>
43
+ </div>
44
+ );
45
+ };
46
+ `
47
+ };
48
+ }
@@ -0,0 +1,83 @@
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/module/__Model__.Zone.tsx
20
+ var Model_Zone_exports = {};
21
+ __export(Model_Zone_exports, {
22
+ default: () => getContent
23
+ });
24
+ module.exports = __toCommonJS(Model_Zone_exports);
25
+ function getContent(scanResult, dict) {
26
+ return {
27
+ filename: `${dict.Model}.Zone.tsx`,
28
+ content: `
29
+ "use client";
30
+ import { Data, Load } from "@shared/ui";
31
+ import { ModelsProps } from "@akanjs/client";
32
+ import { cnst, ${dict.Model} } from "@${dict.sysName}/client";
33
+ import { ClientInit, ClientView, DefaultOf } from "@akanjs/signal";
34
+
35
+ export const Admin = ({ sliceName = "${dict.model}", init, query }: ModelsProps<cnst.${dict.Model}>) => {
36
+ return (
37
+ <Data.ListContainer
38
+ init={init}
39
+ query={query}
40
+ sliceName={sliceName}
41
+ renderItem={${dict.Model}.Unit.Card}
42
+ renderDashboard={${dict.Model}.Util.Stat}
43
+ renderInsight={${dict.Model}.Util.Insight}
44
+ renderTemplate={${dict.Model}.Template.General}
45
+ renderTitle={(${dict.model}: DefaultOf<cnst.${dict.Model}>) => \`${dict.Model} - \${${dict.model}.id ? ${dict.model}.id : "New"}\`}
46
+ renderView={(${dict.model}: cnst.${dict.Model}) => <${dict.Model}.View.General ${dict.model}={${dict.model}} />}
47
+ columns={[
48
+ "id",
49
+ "status",
50
+ "createdAt",
51
+ "updatedAt",
52
+ ]}
53
+ actions={(${dict.model}: cnst.Light${dict.Model}, idx) => ["remove", "edit", "view"]}
54
+ />
55
+ );
56
+ };
57
+
58
+ interface CardProps {
59
+ className?: string;
60
+ init: ClientInit<"${dict.model}", cnst.Light${dict.Model}>;
61
+ }
62
+ export const Card = ({ className, init }: CardProps) => {
63
+ return (
64
+ <Load.Units
65
+ className={className}
66
+ init={init}
67
+ renderItem={(${dict.model}: cnst.Light${dict.Model}) => (
68
+ <${dict.Model}.Unit.Card key={${dict.model}.id} href={\`/${dict.model}/\${${dict.model}.id}\`} ${dict.model}={${dict.model}} />
69
+ )}
70
+ />
71
+ );
72
+ };
73
+
74
+ interface ViewProps {
75
+ className?: string;
76
+ view: ClientView<"${dict.model}", cnst.${dict.Model}>;
77
+ }
78
+ export const View = ({ view }: ViewProps) => {
79
+ return <Load.View view={view} renderView={(${dict.model}) => <${dict.Model}.View.General ${dict.model}={${dict.model}} />} />;
80
+ };
81
+ `
82
+ };
83
+ }
@@ -0,0 +1,61 @@
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/module/index.tsx
20
+ var module_exports = {};
21
+ __export(module_exports, {
22
+ default: () => getContent
23
+ });
24
+ module.exports = __toCommonJS(module_exports);
25
+ function getContent(scanResult, dict) {
26
+ return {
27
+ filename: "index.tsx",
28
+ content: `
29
+ import { Signal } from "@util/ui";
30
+ import { AiOutlineDatabase } from "react-icons/ai";
31
+
32
+ import * as Template from "./${dict.Model}.Template";
33
+ import * as Unit from "./${dict.Model}.Unit";
34
+ import * as Util from "./${dict.Model}.Util";
35
+ import * as View from "./${dict.Model}.View";
36
+ import * as Zone from "./${dict.Model}.Zone";
37
+
38
+ export const ${dict.Model} = {
39
+ Menu: {
40
+ Admin: {
41
+ key: "${dict.model}",
42
+ label: "${dict.Model}",
43
+ icon: <AiOutlineDatabase />,
44
+ render: () => <Zone.Admin />,
45
+ },
46
+ Doc: {
47
+ key: "${dict.model}",
48
+ label: "${dict.Model}",
49
+ icon: <AiOutlineDatabase />,
50
+ render: () => <Signal.Doc.Zone refName="${dict.model}" />,
51
+ },
52
+ },
53
+ Template,
54
+ Unit,
55
+ Util,
56
+ View,
57
+ Zone,
58
+ };
59
+ `
60
+ };
61
+ }
package/esm/index.js CHANGED
@@ -589,7 +589,7 @@ var withBase = (appName, config, libs, routes = []) => {
589
589
  eslint: { ...config.eslint, ignoreDuringBuilds: true },
590
590
  env: {
591
591
  ...config.env,
592
- basePaths: routes.map(({ basePath: basePath2 }) => basePath2).join(",")
592
+ basePaths: [...new Set(routes.map(({ basePath: basePath2 }) => basePath2))].join(",")
593
593
  },
594
594
  transpilePackages: ["swiper", "ssr-window", "dom7"],
595
595
  reactStrictMode: commandType === "start" ? false : true,
@@ -755,6 +755,7 @@ CMD ["npm", "start"]`,
755
755
  config.libs ?? [],
756
756
  config.frontend?.routes
757
757
  ),
758
+ routes: config.frontend?.routes,
758
759
  explicitDependencies: config.frontend?.explicitDependencies ?? []
759
760
  },
760
761
  mobile: {
@@ -3169,6 +3170,8 @@ ${fileCheck.lintResult.message}`
3169
3170
  import * as esbuild from "esbuild";
3170
3171
  import { dtsPlugin } from "esbuild-plugin-d.ts";
3171
3172
  import fs13 from "fs";
3173
+ var assetExtensions = [".css", ".md", ".js", ".png", ".ico", ".svg", ".json", ".template"];
3174
+ var assetLoader = Object.fromEntries(assetExtensions.map((ext) => [ext, "copy"]));
3172
3175
  var Builder = class {
3173
3176
  #executor;
3174
3177
  #distExecutor;
@@ -3193,7 +3196,7 @@ var Builder = class {
3193
3196
  format,
3194
3197
  outdir: `${this.#distExecutor.cwdPath}/${format}`,
3195
3198
  logLevel: "error",
3196
- loader: { ".template": "copy", ".md": "copy" }
3199
+ loader: assetLoader
3197
3200
  };
3198
3201
  }
3199
3202
  #getAssetBuildOptions() {
@@ -3207,7 +3210,7 @@ var Builder = class {
3207
3210
  ],
3208
3211
  outdir: this.#distExecutor.cwdPath,
3209
3212
  logLevel: "error",
3210
- loader: { ".css": "copy", ".md": "copy", ".js": "copy" }
3213
+ loader: assetLoader
3211
3214
  };
3212
3215
  }
3213
3216
  async build(options = {}) {
@@ -3606,6 +3609,8 @@ var ApplicationRunner = class {
3606
3609
  async #getViteConfig(app, command) {
3607
3610
  const { env } = await this.#prepareCommand(app, command, "csr");
3608
3611
  const tsconfig = app.workspace.getTsConfig();
3612
+ const akanConfig = await app.getConfig();
3613
+ const basePaths = akanConfig.frontend.routes ? [...new Set(akanConfig.frontend.routes.map(({ basePath: basePath2 }) => basePath2))].join(",") : void 0;
3609
3614
  const processEnv = env;
3610
3615
  const akanjsPrefix = process.env.USE_AKANJS_PKGS === "true" ? `${app.workspace.workspaceRoot}/pkgs/` : "";
3611
3616
  const config = vite.defineConfig({
@@ -3669,7 +3674,8 @@ var ApplicationRunner = class {
3669
3674
  APP_OPERATION_MODE: processEnv.APP_OPERATION_MODE ?? "local",
3670
3675
  AKAN_WORKSPACE_ROOT: app.workspace.workspaceRoot,
3671
3676
  AKAN_APP_ROOT: app.cwdPath,
3672
- RENDER_ENV: "csr"
3677
+ RENDER_ENV: "csr",
3678
+ basePaths
3673
3679
  },
3674
3680
  "process.platform": JSON.stringify("browser"),
3675
3681
  "process.version": JSON.stringify(process.version)
@@ -3984,7 +3990,11 @@ var ApplicationScript = class {
3984
3990
  await this.syncApplication(app);
3985
3991
  if (app.workspace.getBaseDevEnv().env === "local")
3986
3992
  await this.dbup(app.workspace);
3987
- await Promise.all([this.startBackend(app, { open: open2, sync: false }), this.startFrontend(app, { open: open2, sync: false })]);
3993
+ await Promise.all([
3994
+ this.startBackend(app, { open: open2, sync: false }),
3995
+ this.startFrontend(app, { open: open2, sync: false }),
3996
+ this.startCsr(app, { open: open2, sync: false })
3997
+ ]);
3988
3998
  }
3989
3999
  async buildBackend(app, { sync = true } = {}) {
3990
4000
  if (sync)
@@ -4381,11 +4391,7 @@ var PackageRunner = class {
4381
4391
  if (pkg.name === "@akanjs/cli")
4382
4392
  await builder.build({
4383
4393
  bundle: true,
4384
- additionalEntryPoints: [
4385
- `${pkg.cwdPath}/src/templates/**/*.ts`,
4386
- `${pkg.cwdPath}/src/templates/**/*.template`,
4387
- `${pkg.cwdPath}/src/guidelines/**/*.md`
4388
- ]
4394
+ additionalEntryPoints: [`${pkg.cwdPath}/src/templates/**/*`, `${pkg.cwdPath}/src/guidelines/**/*`]
4389
4395
  });
4390
4396
  else
4391
4397
  await builder.build();
@@ -5503,7 +5509,7 @@ var WorkspaceCommand = class {
5503
5509
  __decorateClass([
5504
5510
  Target.Public(),
5505
5511
  __decorateParam(0, Argument("workspaceName", { desc: "what is the name of your organization?" })),
5506
- __decorateParam(1, Option("app", { desc: "describe your first application to create " })),
5512
+ __decorateParam(1, Option("app", { desc: "what is the codename of your first application? (e.g. myapp)" })),
5507
5513
  __decorateParam(2, Option("dir", { desc: "directory of workspace", default: process.env.USE_AKANJS_PKGS === "true" ? "local" : "." }))
5508
5514
  ], WorkspaceCommand.prototype, "createWorkspace", 1);
5509
5515
  __decorateClass([