@akanjs/cli 0.0.42 → 0.0.44

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (157) hide show
  1. package/index.js +126 -95
  2. package/package.json +1 -1
  3. package/src/templates/__scalar/__model__/__model__.constant.js +36 -0
  4. package/src/templates/__scalar/__model__/__model__.dictionary.js +47 -0
  5. package/src/templates/__scalar/__model__/__model__.document.js +34 -0
  6. package/src/templates/app/akan.config.ts.template +5 -0
  7. package/src/templates/app/app/[lang]/(__appName__)/(public)/forgotpassword/page.js +45 -0
  8. package/src/templates/app/app/[lang]/(__appName__)/(public)/page.js +46 -0
  9. package/src/templates/app/app/[lang]/(__appName__)/(public)/privacy/page.js +40 -0
  10. package/src/templates/app/app/[lang]/(__appName__)/(public)/signin/page.js +48 -0
  11. package/src/templates/app/app/[lang]/(__appName__)/(public)/termsofservice/page.js +39 -0
  12. package/src/templates/app/app/[lang]/(__appName__)/(user)/layout.js +41 -0
  13. package/src/templates/app/app/[lang]/(__appName__)/(user)/self/page.js +58 -0
  14. package/src/templates/app/app/[lang]/(__appName__)/layout.js +50 -0
  15. package/src/templates/app/app/[lang]/admin/layout.js +51 -0
  16. package/src/templates/app/app/[lang]/admin/page.js +61 -0
  17. package/src/templates/app/app/csr.js +32 -0
  18. package/src/templates/app/app/index.html.template +13 -0
  19. package/src/templates/app/app/layout.js +36 -0
  20. package/src/templates/app/app/robots.js +41 -0
  21. package/src/templates/app/app/sitemap.js +37 -0
  22. package/src/templates/app/base/baseLogic.js +36 -0
  23. package/src/templates/app/base/index.js +30 -0
  24. package/src/templates/app/capacitor.config.ts.template +8 -0
  25. package/src/templates/app/common/commonLogic.js +36 -0
  26. package/src/templates/app/common/index.js +30 -0
  27. package/src/templates/app/env/env.client.js +39 -0
  28. package/src/templates/app/env/env.client.type.js +36 -0
  29. package/src/templates/app/env/env.server.js +39 -0
  30. package/src/templates/app/jest.config.js +37 -0
  31. package/src/templates/app/lib/___appName__/__appName__.dictionary.js +32 -0
  32. package/src/templates/app/lib/___appName__/__appName__.service.js +43 -0
  33. package/src/templates/app/lib/___appName__/__appName__.store.js +37 -0
  34. package/src/templates/app/lib/___appName__/_server.js +35 -0
  35. package/src/templates/app/lib/option.js +43 -0
  36. package/src/templates/app/lib/setting/Setting.Template.js +55 -0
  37. package/src/templates/app/lib/setting/Setting.Unit.js +36 -0
  38. package/src/templates/app/lib/setting/Setting.Util.js +32 -0
  39. package/src/templates/app/lib/setting/Setting.View.js +49 -0
  40. package/src/templates/app/lib/setting/Setting.Zone.js +78 -0
  41. package/src/templates/app/lib/setting/_server.js +49 -0
  42. package/src/templates/app/lib/setting/index.js +59 -0
  43. package/src/templates/app/lib/setting/setting.constant.js +47 -0
  44. package/src/templates/app/lib/setting/setting.dictionary.js +47 -0
  45. package/src/templates/app/lib/setting/setting.document.js +49 -0
  46. package/src/templates/app/lib/setting/setting.service.js +38 -0
  47. package/src/templates/app/lib/setting/setting.signal.js +35 -0
  48. package/src/templates/app/lib/setting/setting.store.js +42 -0
  49. package/src/templates/app/lib/summary/Summary.Template.js +41 -0
  50. package/src/templates/app/lib/summary/Summary.Unit.js +36 -0
  51. package/src/templates/app/lib/summary/Summary.Util.js +31 -0
  52. package/src/templates/app/lib/summary/Summary.View.js +49 -0
  53. package/src/templates/app/lib/summary/Summary.Zone.js +60 -0
  54. package/src/templates/app/lib/summary/_server.js +49 -0
  55. package/src/templates/app/lib/summary/index.js +65 -0
  56. package/src/templates/app/lib/summary/summary.constant.js +45 -0
  57. package/src/templates/app/lib/summary/summary.dictionary.js +50 -0
  58. package/src/templates/app/lib/summary/summary.document.js +49 -0
  59. package/src/templates/app/lib/summary/summary.service.js +35 -0
  60. package/src/templates/app/lib/summary/summary.signal.js +35 -0
  61. package/src/templates/app/lib/summary/summary.store.js +42 -0
  62. package/src/templates/app/lib/user/User.Template.js +63 -0
  63. package/src/templates/app/lib/user/User.Unit.js +36 -0
  64. package/src/templates/app/lib/user/User.Util.js +92 -0
  65. package/src/templates/app/lib/user/User.View.js +64 -0
  66. package/src/templates/app/lib/user/User.Zone.js +72 -0
  67. package/src/templates/app/lib/user/_server.js +49 -0
  68. package/src/templates/app/lib/user/index.js +59 -0
  69. package/src/templates/app/lib/user/user.constant.js +68 -0
  70. package/src/templates/app/lib/user/user.dictionary.js +53 -0
  71. package/src/templates/app/lib/user/user.document.js +55 -0
  72. package/src/templates/app/lib/user/user.service.js +43 -0
  73. package/src/templates/app/lib/user/user.signal.js +35 -0
  74. package/src/templates/app/lib/user/user.signal.spec.js +38 -0
  75. package/src/templates/app/lib/user/user.signal.test.js +40 -0
  76. package/src/templates/app/lib/user/user.store.js +40 -0
  77. package/src/templates/app/main.js +41 -0
  78. package/src/templates/app/middleware.js +36 -0
  79. package/src/templates/app/nest/backendLogic.js +35 -0
  80. package/src/templates/app/nest/index.js +30 -0
  81. package/src/templates/app/next/frontendLogic.js +35 -0
  82. package/src/templates/app/next/index.js +30 -0
  83. package/src/templates/app/page.test.ts.template +10 -0
  84. package/src/templates/app/playwright.config.ts.template +6 -0
  85. package/src/templates/app/postcss.config.js.template +10 -0
  86. package/src/templates/app/public/favicon.ico +0 -0
  87. package/src/templates/app/public/icons/icon-128x128.png +0 -0
  88. package/src/templates/app/public/icons/icon-144x144.png +0 -0
  89. package/src/templates/app/public/icons/icon-152x152.png +0 -0
  90. package/src/templates/app/public/icons/icon-192x192.png +0 -0
  91. package/src/templates/app/public/icons/icon-256x256.png +0 -0
  92. package/src/templates/app/public/icons/icon-384x384.png +0 -0
  93. package/src/templates/app/public/icons/icon-48x48.png +0 -0
  94. package/src/templates/app/public/icons/icon-512x512.png +0 -0
  95. package/src/templates/app/public/icons/icon-72x72.png +0 -0
  96. package/src/templates/app/public/icons/icon-96x96.png +0 -0
  97. package/src/templates/app/public/logo.svg +70 -0
  98. package/src/templates/app/public/manifest.json.template +67 -0
  99. package/src/templates/app/tsconfig.json.template +22 -0
  100. package/src/templates/app/tsconfig.spec.json.template +7 -0
  101. package/src/templates/app/ui/Footer.js +65 -0
  102. package/src/templates/app/ui/MainHeader.js +129 -0
  103. package/src/templates/app/ui/index.js +31 -0
  104. package/src/templates/client.js +43 -0
  105. package/src/templates/crudPages/[__model__Id]/edit/page.js +71 -0
  106. package/src/templates/crudPages/[__model__Id]/page.js +81 -0
  107. package/src/templates/crudPages/new/page.js +68 -0
  108. package/src/templates/crudPages/page.js +69 -0
  109. package/src/templates/index.js +32 -0
  110. package/src/templates/lib/__lib/extends/summary.constant.js +44 -0
  111. package/src/templates/lib/__lib/lib.constant.js +54 -0
  112. package/src/templates/lib/__lib/lib.dictionary.js +43 -0
  113. package/src/templates/lib/__lib/lib.document.js +42 -0
  114. package/src/templates/lib/__lib/lib.service.js +84 -0
  115. package/src/templates/lib/__lib/lib.signal.js +37 -0
  116. package/src/templates/lib/__lib/lib.store.js +35 -0
  117. package/src/templates/lib/__scalar/_server.js +40 -0
  118. package/src/templates/lib/cnst.js +33 -0
  119. package/src/templates/lib/cnst_.js +52 -0
  120. package/src/templates/lib/db.js +54 -0
  121. package/src/templates/lib/dict.js +46 -0
  122. package/src/templates/lib/fetch.js +49 -0
  123. package/src/templates/lib/sig.js +38 -0
  124. package/src/templates/lib/srv.js +53 -0
  125. package/src/templates/lib/st.js +37 -0
  126. package/src/templates/lib/store.js +53 -0
  127. package/src/templates/lib/usePage.js +34 -0
  128. package/src/templates/libRoot/.gitignore.template +15 -0
  129. package/src/templates/libRoot/jest.config.js +37 -0
  130. package/src/templates/libRoot/package.json.template +5 -0
  131. package/src/templates/libRoot/tsconfig.json.template +11 -0
  132. package/src/templates/libRoot/tsconfig.spec.json.template +7 -0
  133. package/src/templates/module/__Model__.Template.js +52 -0
  134. package/src/templates/module/__Model__.Unit.js +40 -0
  135. package/src/templates/module/__Model__.Util.js +68 -0
  136. package/src/templates/module/__Model__.View.js +46 -0
  137. package/src/templates/module/__Model__.Zone.js +81 -0
  138. package/src/templates/module/__model__.constant.js +70 -0
  139. package/src/templates/module/__model__.dictionary.js +99 -0
  140. package/src/templates/module/__model__.document.js +54 -0
  141. package/src/templates/module/__model__.service.js +42 -0
  142. package/src/templates/module/__model__.signal.js +61 -0
  143. package/src/templates/module/__model__.signal.spec.js +40 -0
  144. package/src/templates/module/__model__.signal.test.js +49 -0
  145. package/src/templates/module/__model__.store.js +40 -0
  146. package/src/templates/module/_server.js +48 -0
  147. package/src/templates/module/index.js +59 -0
  148. package/src/templates/pkgRoot/tsconfig.json.template +12 -0
  149. package/src/templates/server.js +60 -0
  150. package/src/templates/workplaceRoot/.env.template +20 -0
  151. package/src/templates/workplaceRoot/.gitignore.template +195 -0
  152. package/src/templates/workplaceRoot/.prettierignore.template +10 -0
  153. package/src/templates/workplaceRoot/.prettierrc.json.template +5 -0
  154. package/src/templates/workplaceRoot/.swcrc.template +9 -0
  155. package/src/templates/workplaceRoot/README.md.template +37 -0
  156. package/src/templates/workplaceRoot/eslint.config.js.template +141 -0
  157. package/src/templates/workplaceRoot/tsconfig.json.template +29 -0
@@ -0,0 +1,30 @@
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/nest/index.ts
20
+ var nest_exports = {};
21
+ __export(nest_exports, {
22
+ default: () => getContent
23
+ });
24
+ module.exports = __toCommonJS(nest_exports);
25
+ function getContent(scanResult, dict = {}) {
26
+ return `
27
+ export * from "./backendLogic";
28
+ `;
29
+ }
30
+ module.exports = module.exports.default;
@@ -0,0 +1,35 @@
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/next/frontendLogic.ts
20
+ var frontendLogic_exports = {};
21
+ __export(frontendLogic_exports, {
22
+ default: () => getContent
23
+ });
24
+ module.exports = __toCommonJS(frontendLogic_exports);
25
+ function getContent(scanResult, dict) {
26
+ return `
27
+ // \uD604 \uB514\uB809\uD1A0\uB9AC\uC5D0\uC11C\uB294 \uD504\uB860\uD2B8\uC5D4\uB4DC\uC5D0\uC11C \uC0AC\uC6A9\uD558\uB294 \uB85C\uC9C1\uC744 \uCD94\uAC00\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.
28
+ // @${dict.appName}/next\uC5D0\uC11C\uB294 \uD074\uB77C\uC774\uC5B8\uD2B8 \uAD00\uB828 \uB77C\uC774\uBE0C\uB7EC\uB9AC(@*/server, @*/nest)\uB97C import\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.
29
+
30
+ export const someFrontendLogic = () => {
31
+ //
32
+ };
33
+ `;
34
+ }
35
+ module.exports = module.exports.default;
@@ -0,0 +1,30 @@
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/next/index.ts
20
+ var next_exports = {};
21
+ __export(next_exports, {
22
+ default: () => getContent
23
+ });
24
+ module.exports = __toCommonJS(next_exports);
25
+ function getContent(scanResult, dict = {}) {
26
+ return `
27
+ export * from "./frontendLogic";
28
+ `;
29
+ }
30
+ module.exports = module.exports.default;
@@ -0,0 +1,10 @@
1
+ // import { PageAgent } from "@akanjs/next";
2
+ // import { expect, test } from "@playwright/test";
3
+
4
+ // test.describe("index page", () => {
5
+ // test("has title", async ({ page }) => {
6
+ // const agent = new PageAgent(page);
7
+ // await agent.goto("/");
8
+ // expect(agent.page).toBeTruthy();
9
+ // });
10
+ // });
@@ -0,0 +1,6 @@
1
+ //! will be replaced with akan.config.ts
2
+ import { withBase } from "@akanjs/test/src/playwright.config.base";
3
+
4
+ const config = withBase(__filename);
5
+
6
+ export default config;
@@ -0,0 +1,10 @@
1
+ //! will be replaced with akan.config.ts
2
+ const akanjsPrefix = process.env.USE_AKANJS_PKGS === "true" ? "../../pkgs/" : "";
3
+ const { withBase } = require(`${akanjsPrefix}@akanjs/config/src/postcss.config.base`);
4
+
5
+ /**
6
+ * @type {import('postcss-load-config').Config}
7
+ */
8
+ const config = {};
9
+
10
+ module.exports = withBase(config);
@@ -0,0 +1,70 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <!-- Generator: Adobe Illustrator 24.0.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
3
+ <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
4
+ viewBox="0 0 1882 268" style="enable-background:new 0 0 1882 268;" xml:space="preserve">
5
+ <style type="text/css">
6
+ .st0{fill:#FFFFFF00;}
7
+ .st1{fill:#ED9027;}
8
+ .st2{fill:#67B5E6;}
9
+ .st3{fill:#2A85AD;}
10
+ .st4{fill:#EAB128;}
11
+ .st5{fill:#377395;}
12
+ .st6{fill:#3A6274;}
13
+ .st7{fill:#4D4C4C;}
14
+ .st8{fill:#010100;}
15
+ </style>
16
+ <title>Asset 1</title>
17
+ <g>
18
+ <rect class="st0" width="1882" height="268"/>
19
+ <g>
20
+ <g>
21
+ <path class="st1" d="M313.2,116.6h-94.7l42.7-43.9l-42.7-43.9l0,0c23.9-0.1,47.1,8.4,65.2,24.1
22
+ C302.3,68.9,313.1,92.1,313.2,116.6z"/>
23
+ <path class="st2" d="M313.2,233.1h-39.1c-1.1-16.4-3.7-56.5-55.6-68.4C282.6,164.7,313.2,188.3,313.2,233.1z"/>
24
+ <path class="st3" d="M274.1,233.1h-55.6c-10,0-20.1-1.5-29.7-4.4c19,5.2,38.7-5.9,44-25c4-14.7-1.7-30.4-14.3-39
25
+ C270.4,176.5,273,216.7,274.1,233.1z"/>
26
+ <polygon class="st4" points="218.5,28.7 261.2,72.7 218.5,116.6 "/>
27
+ <path class="st5" d="M218.5,164.7c16.3,11.2,20.5,33.4,9.3,49.7c-8.6,12.6-24.3,18.3-39,14.3l-2.1-0.7c-0.2-0.1-0.4-0.1-0.7-0.2
28
+ c-23.9-8-44.1-24.6-56.5-46.5c13.6,14.6,33.3,21.6,53,19l0.9-0.1c9.5-1.4,18.3-6.2,24.7-13.4
29
+ C213.6,180.6,217.3,172.9,218.5,164.7z"/>
30
+ <path class="st6" d="M218.5,164.7c-1.3,8.2-4.9,15.9-10.3,22.1c-6.4,7.2-15.2,11.9-24.7,13.4l-0.9,0.1c-19.7,2.6-39.5-4.5-53-19
31
+ c-15.3-27-17.5-59.5-5.9-88.4c-7.9,35.2,14.2,70.2,49.4,78.1C188.5,174.5,204.7,172.3,218.5,164.7z"/>
32
+ <path class="st7" d="M199.7,59.4c4.3,3.3,5.1,9.5,1.7,13.9c-3.3,4.3-9.5,5.1-13.9,1.7c-4.3-3.3-5.1-9.5-1.7-13.9c0,0,0,0,0-0.1
33
+ C189.3,56.8,195.5,56.1,199.7,59.4z"/>
34
+ <path class="st7" d="M218.5,164.7c-31.7,17.2-71.3,5.5-88.6-26.2c-7.6-13.9-9.8-30.1-6.3-45.5c15.2-38,51.5-63.3,92.5-64.2
35
+ c-37.6,0.7-67.5,31.7-66.8,69.3c0.7,37.6,31.6,67.5,69.2,66.8V164.7z"/>
36
+ </g>
37
+ <path class="st8" d="M451,202.9h-16.9V64h38.6c5.3,0,10.6,0.2,15.9,1c4.6,0.7,9.2,1.7,13.5,3.1c7.5,2.4,14,7,18.8,13.3
38
+ c4.3,6.5,6.8,14,6.5,21.9c0.2,6.5-1.2,12.8-4.1,18.6c-2.9,5.5-7,10.1-12.3,13.5c-6,3.9-12.5,6.5-19.5,8
39
+ c-8.4,1.9-17.1,2.9-25.8,2.7c-4.6,0-9.4,0-14.5-0.5L451,202.9z M451,130.3c2.2,0,4.6,0.5,7.2,0.7h7c6.8,0,13.7-0.5,20.5-1.9
40
+ c4.8-0.7,9.4-2.7,13.7-5.3c3.4-2.2,6.3-5.1,8-8.7c1.7-3.6,2.4-7.7,2.4-11.6c0.2-4.8-1.2-9.4-3.9-13.3c-2.9-3.6-6.8-6.5-11.1-8
41
+ c-3.4-1.2-6.8-1.9-10.1-2.4c-4.6-0.5-8.9-0.7-13.5-0.7H451V130.3z"/>
42
+ <path class="st8" d="M609,190.6c4.6,0,9.2-0.5,13.5-1.7c3.6-1,7.2-2.9,10.1-5.1s5.3-4.8,7.2-8s3.4-6.5,4.6-10.1
43
+ c0.7-2.4,1.2-5.1,1.4-7.7c0-2.9,0.5-5.5,0.5-8V64h16.9v85.9c0,3.4,0,6.8-0.5,10.1c-0.2,3.4-1,6.5-1.7,9.9c-1.2,5.1-3.1,9.9-6,14.2
44
+ c-2.7,4.3-6,8.2-10.1,11.3c-4.6,3.4-9.6,5.8-15.2,7.5c-6.8,1.9-13.7,2.9-21,2.7c-6.8,0-13.5-0.7-20-2.4c-5.3-1.4-10.4-3.9-14.7-7
45
+ c-4.1-2.9-7.5-6.3-10.1-10.4c-2.7-4.1-4.6-8.4-6-13.3c-1-3.6-1.9-7.2-2.2-11.1c-0.5-3.9-0.7-7.7-0.7-11.6V64h16.9v86.1
46
+ c0,3.1,0.2,6.5,0.7,9.6c0.5,3.1,1.2,6,2.2,8.9c2.2,6.5,6.5,12.1,12.1,15.9C593.3,188.9,601.3,190.9,609,190.6z"/>
47
+ <path class="st8" d="M715.1,202.9h-16.9V64h82.7v15.2h-65.8v44.6h58.4V139h-58.4V202.9z"/>
48
+ <path class="st8" d="M822.2,202.9h-16.9V64h83v15.2h-65.8v44.6h58.4V139h-58.4v63.9H822.2z"/>
49
+ <path class="st8" d="M912.6,202.9V64h16.9v138.9H912.6z"/>
50
+ <path class="st8" d="M1036.1,141.4c8.4,12.3,16.9,24.8,25.3,37.9h0.7c-1-13.5-1.4-27.3-1.4-41.2V64.2h17.1v138.7h-16.9l-54.5-77.4
51
+ c-9.4-13.5-17.8-26-25.3-37.9h-0.7c1,12.5,1.4,27.5,1.4,44.4v70.9H965V64h16.9L1036.1,141.4z"/>
52
+ <path class="st8" d="M1214.8,202.9h-16.9V64h38.6c5.3,0,10.6,0.2,15.9,1c4.6,0.7,9.2,1.7,13.5,3.1c7.5,2.4,14,7,18.8,13.3
53
+ c4.3,6.5,6.8,14,6.5,21.9c0.2,6.5-1.2,12.8-4.1,18.6c-2.9,5.5-7,10.1-12.3,13.5c-6,3.9-12.5,6.5-19.5,8
54
+ c-8.4,1.9-17.1,2.9-25.8,2.7c-4.6,0-9.4,0-14.5-0.5L1214.8,202.9z M1214.8,130.3c2.4,0,4.8,0.5,7.2,0.7h7c6.8,0,13.7-0.5,20.5-1.9
55
+ c4.8-1,9.4-2.7,13.7-5.5c3.4-2.2,6.3-5.1,8-8.7s2.4-7.7,2.4-11.6c0.2-4.8-1.2-9.4-3.9-13.3c-2.9-3.6-6.8-6.5-11.1-8
56
+ c-3.4-1.2-6.8-1.9-10.1-2.4c-4.6-0.5-8.9-0.7-13.5-0.7h-20v51.4H1214.8z"/>
57
+ <path class="st8" d="M1336.1,64v123.7h67.8v15.2h-84.7V63.8h16.9V64z"/>
58
+ <path class="st8" d="M1415.9,202.9L1472.6,64h14.7l56.4,138.9h-18.3l-16.6-42h-58.1l-16.6,42H1415.9z M1479.9,85.7
59
+ c-6,17.4-12.1,33-17.8,47l-5.3,13h46.1l-5.3-13c-5.5-14.5-11.6-30.1-17.4-47H1479.9z"/>
60
+ <path class="st8" d="M1630.1,76.5c-7.5,0-14.7,1.2-21.7,3.6c-6.5,2.4-12.5,6-17.6,10.9c-5.3,5.1-9.2,11.3-11.8,18.1
61
+ c-3.1,8.2-4.6,16.6-4.3,25.3c-0.2,8.4,1.2,16.9,4.1,24.8c2.4,6.5,6.3,12.5,11.3,17.4s11.1,8.2,17.8,10.1
62
+ c7.5,2.4,15.2,3.4,23.2,3.4c2.4,0,4.8,0,7.5-0.5c2.7-0.5,5.3-0.5,8-1c2.9-0.5,5.3-1,8-1.4c2.9-0.5,4.8-1.2,6.8-1.9v15
63
+ c-4.6,1.7-9.4,2.9-14.2,3.6c-5.5,1-11.1,1.2-16.6,1.2c-10.4,0.2-20.7-1.4-30.6-4.8c-8.4-2.9-16.2-7.7-22.4-14
64
+ c-6.3-6.3-10.9-13.7-13.7-21.9c-6.5-19.3-6.5-40,0-59.3c3.1-8.7,8-16.6,14.2-23.4c6.3-6.8,14-11.8,22.4-15.2
65
+ c9.4-3.9,19.5-5.5,29.7-5.5c2.9,0,5.8,0,8.7,0s5.5,0.5,8,1c2.4,0.5,5.1,1,7.2,1.7c1.9,0.5,3.9,1.2,5.8,1.9v15
66
+ c-4.6-1.4-9.2-2.7-13.7-3.6C1640.2,76.8,1635.2,76.3,1630.1,76.5z"/>
67
+ <path class="st8" d="M1705.1,188h71.4v15.2h-88V64h84.4v15.2h-67.5v44.6h59.8V139h-59.8L1705.1,188z"/>
68
+ </g>
69
+ </g>
70
+ </svg>
@@ -0,0 +1,67 @@
1
+ {
2
+ "name": "<%= AppName %>",
3
+ "short_name": "<%= AppName %>",
4
+ "orientation": "portrait",
5
+ "theme_color": "#1976d2",
6
+ "background_color": "#fafafa",
7
+ "display": "standalone",
8
+ "scope": "/",
9
+ "description": "<%= appName %>",
10
+ "start_url": "/",
11
+ "icons": [
12
+ {
13
+ "src": "icons/icon-72x72.png",
14
+ "sizes": "72x72",
15
+ "type": "image/png",
16
+ "purpose": "any"
17
+ },
18
+ {
19
+ "src": "icons/icon-96x96.png",
20
+ "sizes": "96x96",
21
+ "type": "image/png",
22
+ "purpose": "any"
23
+ },
24
+ {
25
+ "src": "icons/icon-128x128.png",
26
+ "sizes": "128x128",
27
+ "type": "image/png",
28
+ "purpose": "any"
29
+ },
30
+ {
31
+ "src": "icons/icon-144x144.png",
32
+ "sizes": "144x144",
33
+ "type": "image/png",
34
+ "purpose": "any"
35
+ },
36
+ {
37
+ "src": "icons/icon-152x152.png",
38
+ "sizes": "152x152",
39
+ "type": "image/png",
40
+ "purpose": "any"
41
+ },
42
+ {
43
+ "src": "icons/icon-192x192.png",
44
+ "sizes": "192x192",
45
+ "type": "image/png",
46
+ "purpose": "any"
47
+ },
48
+ {
49
+ "src": "icons/icon-256x256.png",
50
+ "sizes": "256x256",
51
+ "type": "image/png",
52
+ "purpose": "any"
53
+ },
54
+ {
55
+ "src": "icons/icon-384x384.png",
56
+ "sizes": "384x384",
57
+ "type": "image/png",
58
+ "purpose": "any"
59
+ },
60
+ {
61
+ "src": "icons/icon-512x512.png",
62
+ "sizes": "512x512",
63
+ "type": "image/png",
64
+ "purpose": "any"
65
+ }
66
+ ]
67
+ }
@@ -0,0 +1,22 @@
1
+ {
2
+ "extends": "../../tsconfig.json",
3
+ "compilerOptions": {
4
+ "allowJs": true,
5
+ "strict": false,
6
+ "noEmit": true,
7
+ "incremental": true,
8
+ "resolveJsonModule": true,
9
+ "jsx": "preserve",
10
+ "plugins": [
11
+ {
12
+ "name": "next",
13
+ },
14
+ ],
15
+ },
16
+ "include": ["./**/*.ts", "./**/*.tsx", ".next/types/**/*.ts"],
17
+ "references": [
18
+ {
19
+ "path": "./tsconfig.spec.json",
20
+ },
21
+ ],
22
+ }
@@ -0,0 +1,7 @@
1
+ {
2
+ "extends": "./tsconfig.json",
3
+ "compilerOptions": {
4
+ "types": ["jest", "node"]
5
+ },
6
+ "include": ["jest.config.ts", "**/*.test.ts"]
7
+ }
@@ -0,0 +1,65 @@
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
+ import { Image, Link } from "@util/ui";
28
+
29
+ export const Footer = () => {
30
+ return (
31
+ <div className="relative justify-center px-2 pb-12 mt-12 bg-[#f3f3f3] via-secondary-focus to-accent-focus">
32
+ <div className="container py-10">
33
+ <div className="justify-between mt-6 md:flex md:mt-10 sm:mt-0">
34
+ <Link href="/" disabled>
35
+ <Image src="/logo.svg" className="object-contain fill-black" width={200} height={36} />
36
+ </Link>
37
+ <div className="flex gap-4 mt-6 text-xs md:mt-0 md:text-base ">
38
+ <Link href="/termsofservice">
39
+ <span className="text-[#777777]">\uC774\uC6A9\uC57D\uAD00</span>
40
+ </Link>
41
+ <Link href="/privacy">
42
+ <span className="text-[#777777]">\uAC1C\uC778\uC815\uBCF4\uCC98\uB9AC\uBC29\uCE68</span>
43
+ </Link>
44
+ </div>
45
+ </div>
46
+ <div className="items-center justify-between mt-6 text-sm md:text-base md:mt-3 md:flex ">
47
+ <div className="flex flex-col text-xs md:text-base gap-1 text-[#777777]">
48
+ ${dict.CompanyName} | <CEO_NAME> | <COMPANY_ADDRESS>
49
+ </div>
50
+ <div>
51
+ <div className="flex gap-4 mt-6 text-xs md:text-base md:mt-0">
52
+ <span className="text-[#777]">\uBB38\uC758</span>
53
+ <a href="mailto:support@example.com">
54
+ <span className="text-[#777]">support@example.com</span>
55
+ </a>
56
+ </div>
57
+ </div>
58
+ </div>
59
+ </div>
60
+ </div>
61
+ );
62
+ };
63
+ `;
64
+ }
65
+ module.exports = module.exports.default;
@@ -0,0 +1,129 @@
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
+ import { usePage } from "@${dict.appName}/client";
28
+ import {
29
+ AiOutlineBuild,
30
+ AiOutlineEdit,
31
+ AiOutlineHome,
32
+ AiOutlinePoweroff,
33
+ AiOutlinePrinter,
34
+ AiOutlineRobot,
35
+ AiOutlineSecurityScan,
36
+ AiOutlineSend,
37
+ AiOutlineUser,
38
+ AiOutlineWindows,
39
+ } from "react-icons/ai";
40
+ import { User } from "@shared/client";
41
+ import { Layout, Link } from "@util/ui";
42
+ import { ReactNode } from "react";
43
+ import { clsx } from "@akanjs/client";
44
+
45
+ type DirType = "home" | "send" | "print" | "self";
46
+
47
+ const iconMap: { [key in DirType]: ReactNode } = {
48
+ home: <AiOutlineHome />,
49
+ send: <AiOutlineSend />,
50
+ print: <AiOutlinePrinter />,
51
+ self: <AiOutlineUser />,
52
+ };
53
+
54
+ interface MainHeaderProps {
55
+ className?: string;
56
+ children?: any;
57
+ items: {
58
+ type: DirType;
59
+ name: string;
60
+ href?: string;
61
+ }[];
62
+ type?: "view" | "edit" | "new";
63
+ }
64
+ export const MainHeader = ({ className, children, items, type = "view" }: MainHeaderProps) => {
65
+ const { l } = usePage();
66
+ return (
67
+ <Layout.Header
68
+ className={clsx("fixed left-0 px-2 py-2 bg-base-100/50 backdrop-blur-sm flex items-center gap-2", className)}
69
+ >
70
+ <Layout.Sider>
71
+ <div className="text-4xl font-lemonmilk w-full text-center my-8">${dict.AppName}</div>
72
+ <ul className="menu p-4 w-full bg-base-200 text-base-content">
73
+ {/* <li>
74
+ <User.Zone.Profile/>
75
+ </li> */}
76
+ <li>
77
+ <Link href="/location" className="flex gap-2 items-center text-lg">
78
+ {iconMap.home} Home
79
+ </Link>
80
+ </li>
81
+ <li>
82
+ <Link href="/self" className="flex gap-2 items-center text-lg">
83
+ {iconMap.self} My Profile
84
+ </Link>
85
+ </li>
86
+ <li>
87
+ <User.Util.Signout href="/" className="flex gap-2 items-center text-lg text-warning">
88
+ <AiOutlinePoweroff /> Sign out
89
+ </User.Util.Signout>
90
+ </li>
91
+ </ul>
92
+ </Layout.Sider>
93
+ <div className="text-sm breadcrumbs hidden md:block">
94
+ <ul>
95
+ {items.slice(0, -2).map(({ type, name, href }, idx) => (
96
+ <li key={idx}>
97
+ <Link className="flex gap-1 items-center" href={href}>
98
+ {iconMap[type]} {name}
99
+ </Link>
100
+ </li>
101
+ ))}
102
+ <li></li>
103
+ </ul>
104
+ </div>
105
+ <div className="text-sm breadcrumbs -ml-2">
106
+ <ul>
107
+ {items.slice(-2).map(({ type, name, href }, idx) => (
108
+ <li key={idx}>
109
+ <Link className="flex gap-1 items-center" href={href}>
110
+ {iconMap[type]} {name}
111
+ </Link>
112
+ </li>
113
+ ))}
114
+ {type === "new" ? (
115
+ <li>+ {l("shared.new")}</li>
116
+ ) : type === "edit" ? (
117
+ <li className="flex gap-1 items-center">
118
+ <AiOutlineEdit /> {l("shared.edit")}
119
+ </li>
120
+ ) : null}
121
+ </ul>
122
+ </div>
123
+ {children}
124
+ </Layout.Header>
125
+ );
126
+ };
127
+ `;
128
+ }
129
+ module.exports = module.exports.default;
@@ -0,0 +1,31 @@
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/index.ts
20
+ var ui_exports = {};
21
+ __export(ui_exports, {
22
+ default: () => getContent
23
+ });
24
+ module.exports = __toCommonJS(ui_exports);
25
+ function getContent(scanResult, dict = {}) {
26
+ return `
27
+ export { MainHeader } from "./MainHeader";
28
+ export { Footer } from "./Footer";
29
+ `;
30
+ }
31
+ module.exports = module.exports.default;
@@ -0,0 +1,43 @@
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/client.ts
20
+ var client_exports = {};
21
+ __export(client_exports, {
22
+ default: () => getContent
23
+ });
24
+ module.exports = __toCommonJS(client_exports);
25
+ var capitalize = (str) => str.charAt(0).toUpperCase() + str.slice(1);
26
+ function getContent(scanResult, dict = {}) {
27
+ if (!scanResult)
28
+ return null;
29
+ const databaseModules = scanResult.files.components.databases;
30
+ const scalarModules = scanResult.files.components.scalars;
31
+ const serviceModules = scanResult.files.components.services;
32
+ return `
33
+ export { st } from "./lib/st";
34
+ export { store } from "./lib/store";
35
+ export { usePage } from "./lib/usePage";
36
+ export { fetch } from "./lib/fetch";
37
+ export { cnst } from "./lib/cnst";
38
+ ${scalarModules.map((module2) => `export { ${capitalize(module2)} } from "./lib/__scalar/${module2}";`).join("\n")}
39
+ ${serviceModules.map((module2) => `export { ${capitalize(module2)} } from "./lib/_${module2}";`).join("\n")}
40
+ ${databaseModules.map((module2) => `export { ${capitalize(module2)} } from "./lib/${module2}";`).join("\n")}
41
+ `;
42
+ }
43
+ module.exports = module.exports.default;