@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,67 @@
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/ui/Footer.tsx
20
+ var Footer_exports = {};
21
+ __export(Footer_exports, {
22
+ default: () => getContent
23
+ });
24
+ module.exports = __toCommonJS(Footer_exports);
25
+ function getContent(scanResult, dict) {
26
+ return {
27
+ filename: "Footer.tsx",
28
+ content: `
29
+ import { Image, Link } from "@util/ui";
30
+
31
+ export const Footer = () => {
32
+ return (
33
+ <div className="relative justify-center px-2 pb-12 mt-12 bg-[#f3f3f3] via-secondary-focus to-accent-focus">
34
+ <div className="container py-10">
35
+ <div className="justify-between mt-6 md:flex md:mt-10 sm:mt-0">
36
+ <Link href="/" disabled>
37
+ <Image src="/logo.svg" className="object-contain fill-black" width={200} height={36} />
38
+ </Link>
39
+ <div className="flex gap-4 mt-6 text-xs md:mt-0 md:text-base ">
40
+ <Link href="/termsofservice">
41
+ <span className="text-[#777777]">\uC774\uC6A9\uC57D\uAD00</span>
42
+ </Link>
43
+ <Link href="/privacy">
44
+ <span className="text-[#777777]">\uAC1C\uC778\uC815\uBCF4\uCC98\uB9AC\uBC29\uCE68</span>
45
+ </Link>
46
+ </div>
47
+ </div>
48
+ <div className="items-center justify-between mt-6 text-sm md:text-base md:mt-3 md:flex ">
49
+ <div className="flex flex-col text-xs md:text-base gap-1 text-[#777777]">
50
+ ${dict.CompanyName} | CEO_NAME | COMPANY_ADDRESS
51
+ </div>
52
+ <div>
53
+ <div className="flex gap-4 mt-6 text-xs md:text-base md:mt-0">
54
+ <span className="text-[#777]">\uBB38\uC758</span>
55
+ <a href="mailto:support@example.com">
56
+ <span className="text-[#777]">support@example.com</span>
57
+ </a>
58
+ </div>
59
+ </div>
60
+ </div>
61
+ </div>
62
+ </div>
63
+ );
64
+ };
65
+ `
66
+ };
67
+ }
@@ -0,0 +1,131 @@
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/ui/MainHeader.tsx
20
+ var MainHeader_exports = {};
21
+ __export(MainHeader_exports, {
22
+ default: () => getContent
23
+ });
24
+ module.exports = __toCommonJS(MainHeader_exports);
25
+ function getContent(scanResult, dict) {
26
+ return {
27
+ filename: "MainHeader.tsx",
28
+ content: `
29
+ import { usePage } from "@${dict.appName}/client";
30
+ import {
31
+ AiOutlineBuild,
32
+ AiOutlineEdit,
33
+ AiOutlineHome,
34
+ AiOutlinePoweroff,
35
+ AiOutlinePrinter,
36
+ AiOutlineRobot,
37
+ AiOutlineSecurityScan,
38
+ AiOutlineSend,
39
+ AiOutlineUser,
40
+ AiOutlineWindows,
41
+ } from "react-icons/ai";
42
+ import { User } from "@shared/client";
43
+ import { Layout, Link } from "@util/ui";
44
+ import { ReactNode } from "react";
45
+ import { clsx } from "@akanjs/client";
46
+
47
+ type DirType = "home" | "send" | "print" | "self";
48
+
49
+ const iconMap: { [key in DirType]: ReactNode } = {
50
+ home: <AiOutlineHome />,
51
+ send: <AiOutlineSend />,
52
+ print: <AiOutlinePrinter />,
53
+ self: <AiOutlineUser />,
54
+ };
55
+
56
+ interface MainHeaderProps {
57
+ className?: string;
58
+ children?: any;
59
+ items: {
60
+ type: DirType;
61
+ name: string;
62
+ href?: string;
63
+ }[];
64
+ type?: "view" | "edit" | "new";
65
+ }
66
+ export const MainHeader = ({ className, children, items, type = "view" }: MainHeaderProps) => {
67
+ const { l } = usePage();
68
+ return (
69
+ <Layout.Header
70
+ className={clsx("fixed left-0 px-2 py-2 bg-base-100/50 backdrop-blur-sm flex items-center gap-2", className)}
71
+ >
72
+ <Layout.Sider>
73
+ <div className="text-4xl font-lemonmilk w-full text-center my-8">${dict.AppName}</div>
74
+ <ul className="menu p-4 w-full bg-base-200 text-base-content">
75
+ {/* <li>
76
+ <User.Zone.Profile/>
77
+ </li> */}
78
+ <li>
79
+ <Link href="/location" className="flex gap-2 items-center text-lg">
80
+ {iconMap.home} Home
81
+ </Link>
82
+ </li>
83
+ <li>
84
+ <Link href="/self" className="flex gap-2 items-center text-lg">
85
+ {iconMap.self} My Profile
86
+ </Link>
87
+ </li>
88
+ <li>
89
+ <User.Util.Signout href="/" className="flex gap-2 items-center text-lg text-warning">
90
+ <AiOutlinePoweroff /> Sign out
91
+ </User.Util.Signout>
92
+ </li>
93
+ </ul>
94
+ </Layout.Sider>
95
+ <div className="text-sm breadcrumbs hidden md:block">
96
+ <ul>
97
+ {items.slice(0, -2).map(({ type, name, href }, idx) => (
98
+ <li key={idx}>
99
+ <Link className="flex gap-1 items-center" href={href}>
100
+ {iconMap[type]} {name}
101
+ </Link>
102
+ </li>
103
+ ))}
104
+ <li></li>
105
+ </ul>
106
+ </div>
107
+ <div className="text-sm breadcrumbs -ml-2">
108
+ <ul>
109
+ {items.slice(-2).map(({ type, name, href }, idx) => (
110
+ <li key={idx}>
111
+ <Link className="flex gap-1 items-center" href={href}>
112
+ {iconMap[type]} {name}
113
+ </Link>
114
+ </li>
115
+ ))}
116
+ {type === "new" ? (
117
+ <li>+ {l("shared.new")}</li>
118
+ ) : type === "edit" ? (
119
+ <li className="flex gap-1 items-center">
120
+ <AiOutlineEdit /> {l("shared.edit")}
121
+ </li>
122
+ ) : null}
123
+ </ul>
124
+ </div>
125
+ {children}
126
+ </Layout.Header>
127
+ );
128
+ };
129
+ `
130
+ };
131
+ }
@@ -0,0 +1,73 @@
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/crudPages/[__model__Id]/edit/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 { AiOutlineTeam } from "react-icons/ai";
30
+ import { Load } from "@shared/ui";
31
+ import { fetch, usePage, ${dict.Model} } from "${dict.appName}/client";
32
+ import type { CsrConfig } from "@akanjs/client";
33
+
34
+ interface PageProps {
35
+ params: { ${dict.model}Id: string };
36
+ }
37
+
38
+ export default function Page({ params }: PageProps) {
39
+ const { l } = usePage();
40
+ return (
41
+ <Load.Page
42
+ of={Page}
43
+ loader={async () => {
44
+ const { ${dict.model}Id } = await params;
45
+ const { ${dict.model}, ${dict.model}Edit } = await fetch.edit${dict.Model}(${dict.model}Id);
46
+ return { ${dict.model}, ${dict.model}Edit } as const;
47
+ }}
48
+ render={({ ${dict.model}, ${dict.model}Edit }) => (
49
+ <div className="container">
50
+ <div className="flex justify-between m-4 mt-8">
51
+ <div className="text-xl text-primary flex gap-2 items-center">
52
+ <AiOutlineTeam /> {l("shared.updateModel", { model: l("${dict.model}.modelName") })}
53
+ </div>
54
+ </div>
55
+ <Load.Edit
56
+ className="flex flex-col items-center"
57
+ sliceName="${dict.model}InPublic"
58
+ edit={${dict.model}Edit}
59
+ type="form"
60
+ onCancel="back"
61
+ onSubmit="/${dict.model}"
62
+ >
63
+ ${dict.Model}.Template.General
64
+ </Load.Edit>
65
+ </div>
66
+ )}
67
+ />
68
+ );
69
+ }
70
+ Page.csrConfig = { transition: "none" } satisfies CsrConfig;
71
+ `
72
+ };
73
+ }
@@ -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/crudPages/[__model__Id]/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 { ${dict.Model}, fetch, usePage } from "${dict.appName}/client";
30
+ import { Link } from "@util/ui";
31
+ import { Load } from "@shared/ui";
32
+ import { getSelf } from "@akanjs/client";
33
+ import { AiOutlineEdit } from "react-icons/ai";
34
+ import type { CsrConfig } from "@akanjs/client";
35
+
36
+ interface PageProps {
37
+ params: { ${dict.model}Id: string };
38
+ }
39
+
40
+ export async function generateMetadata({ params }: PageProps) {
41
+ const { ${dict.model}Id } = await params;
42
+ const { ${dict.model} } = await fetch.view${dict.Model}(${dict.model}Id);
43
+ return {
44
+ title: ${dict.model}.id,
45
+ description: ${dict.model}.id,
46
+ openGraph: {
47
+ title: ${dict.model}.id,
48
+ description: ${dict.model}.id,
49
+ // images: ${dict.model}.thumbnails.map((i) => i.url),
50
+ },
51
+ };
52
+ }
53
+ export default function Page({ params }: PageProps) {
54
+ const { l } = usePage();
55
+ const self = getSelf({ unauthorize: "/signin" });
56
+ return (
57
+ <Load.Page
58
+ of={Page}
59
+ loader={async () => {
60
+ const { ${dict.model}Id } = await params;
61
+ const { ${dict.model}, ${dict.model}View } = await fetch.view${dict.Model}(${dict.model}Id);
62
+ return { ${dict.model}, ${dict.model}View } as const;
63
+ }}
64
+ render={({ ${dict.model}, ${dict.model}View }) => (
65
+ <div className="container flex flex-col gap-4">
66
+ <div className="flex gap-4 font-bold text-lg items-center">
67
+ ${dict.Model}.Zone.View view={${dict.model}View} />
68
+ <Link href={\`/${dict.model}/\${${dict.model}.id}/edit\`}>
69
+ <button className="btn">
70
+ <AiOutlineEdit />
71
+ {l("shared.updateModel", { model: l("${dict.model}.modelName") })}
72
+ </button>
73
+ </Link>
74
+ </div>
75
+ </div>
76
+ )}
77
+ />
78
+ );
79
+ }
80
+ Page.csrConfig = { transition: "none" } satisfies CsrConfig;
81
+ `
82
+ };
83
+ }
@@ -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/crudPages/new/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 { AiOutlineTeam } from "react-icons/ai";
30
+ import { Load } from "@shared/ui";
31
+ import { cnst, fetch, usePage, ${dict.Model} } from "${dict.appName}/client";
32
+ import { getSelf } from "@akanjs/client";
33
+ import type { CsrConfig } from "@akanjs/client";
34
+
35
+ export default function Page() {
36
+ const { l } = usePage();
37
+ const self = getSelf({ unauthorize: "/signin" });
38
+ return (
39
+ <Load.Page
40
+ of={Page}
41
+ loader={async () => {
42
+ const ${dict.model}Form: Partial<cnst.${dict.Model}> = {};
43
+ return { ${dict.model}Form } as const;
44
+ }}
45
+ render={({ ${dict.model}Form }) => (
46
+ <div className="container">
47
+ <div className="flex justify-between m-4 mt-8">
48
+ <div className="text-xl text-primary flex gap-2 items-center">
49
+ <AiOutlineTeam /> {l("shared.createModel", { model: l("${dict.model}.modelName") })}
50
+ </div>
51
+ </div>
52
+ <Load.Edit
53
+ className="flex flex-col items-center"
54
+ sliceName="${dict.model}InPublic"
55
+ edit={${dict.model}Form}
56
+ type="form"
57
+ onCancel="back"
58
+ onSubmit="/${dict.model}"
59
+ >
60
+ ${dict.Model}.Template.General
61
+ </Load.Edit>
62
+ </div>
63
+ )}
64
+ />
65
+ );
66
+ }
67
+ Page.csrConfig = { transition: "none" } satisfies CsrConfig;
68
+ `
69
+ };
70
+ }
@@ -0,0 +1,71 @@
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/crudPages/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 { ${dict.Model}, fetch, usePage } from "${dict.appName}/client";
30
+ import { Link } from "@util/ui";
31
+ import { Load } from "@shared/ui";
32
+ import { getSelf } from "@akanjs/client";
33
+ import type { CsrConfig } from "@akanjs/client";
34
+
35
+ export default function Page() {
36
+ const { l } = usePage();
37
+ const self = getSelf({ unauthorize: "/signin" });
38
+ return (
39
+ <Load.Page
40
+ of={Page}
41
+ loader={async () => {
42
+ const { ${dict.model}InitInPublic } = await fetch.init${dict.Model}InPublic();
43
+ return { ${dict.model}InitInPublic } as const;
44
+ }}
45
+ render={({ ${dict.model}InitInPublic }) => (
46
+ <div className="container flex flex-col gap-4">
47
+ <div className="w-full mt-5 px-5 h-full ">
48
+ <div>{l("${dict.model}.modelName")}</div>
49
+ <div className="animate-fadeIn px-4 pt-4 flex gap-4 items-center">
50
+ <div className="font-bold text-lg md:text-4xl">${dict.Model}s</div>
51
+ <Link href={\`/${dict.model}/new\`}>
52
+ <button className="btn">+ {l("shared.createModel", { model: l("${dict.model}.modelName") })}</button>
53
+ </Link>
54
+ </div>
55
+ <div>{l("${dict.model}.modelDesc")}</div>
56
+ <div className="flex px-6 mt-3 gap-4">
57
+ ${dict.Model}.Zone.Card
58
+ className="animate-fadeIn grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 2xl:grid-cols-5 justify-center gap-4 w-full"
59
+ init={${dict.model}InitInPublic}
60
+ />
61
+ </div>
62
+ </div>
63
+ </div>
64
+ )}
65
+ />
66
+ );
67
+ }
68
+ Page.csrConfig = { transition: "none" } satisfies CsrConfig;
69
+ `
70
+ };
71
+ }
@@ -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/libRoot/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.libName}/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/libRoot/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/libRoot/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/libRoot/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.libName}/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
+ }