@akanjs/cli 0.0.39 → 0.0.41

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 (181) hide show
  1. package/index.d.ts +1 -0
  2. package/index.js +75 -59
  3. package/package.json +2 -1
  4. package/src/application/application.command.d.ts +26 -0
  5. package/src/application/application.prompt.d.ts +2 -0
  6. package/src/application/application.runner.d.ts +35 -0
  7. package/src/application/application.script.d.ts +36 -0
  8. package/src/cloud/cloud.command.d.ts +8 -0
  9. package/src/cloud/cloud.runner.d.ts +7 -0
  10. package/src/cloud/cloud.script.d.ts +7 -0
  11. package/src/library/library.command.d.ts +8 -0
  12. package/src/library/library.runner.d.ts +4 -0
  13. package/src/library/library.script.d.ts +8 -0
  14. package/src/module/module.command.d.ts +13 -0
  15. package/src/module/module.prompt.d.ts +15 -0
  16. package/src/module/module.runner.d.ts +17 -0
  17. package/src/module/module.script.d.ts +11 -0
  18. package/src/package/package.command.d.ts +9 -0
  19. package/src/package/package.runner.d.ts +6 -0
  20. package/src/package/package.script.d.ts +7 -0
  21. package/src/package/page/page.command.d.ts +6 -0
  22. package/src/package/page/page.runner.d.ts +4 -0
  23. package/src/package/page/page.script.d.ts +5 -0
  24. package/src/workspace/workspace.command.d.ts +8 -0
  25. package/src/workspace/workspace.runner.d.ts +6 -0
  26. package/src/workspace/workspace.script.d.ts +7 -0
  27. package/templates/__scalar/__model__/__model__.constant.js +0 -34
  28. package/templates/__scalar/__model__/__model__.dictionary.js +0 -45
  29. package/templates/__scalar/__model__/__model__.document.js +0 -32
  30. package/templates/app/akan.config.ts.template +0 -5
  31. package/templates/app/app/[lang]/(__appName__)/(public)/forgotpassword/page.js +0 -43
  32. package/templates/app/app/[lang]/(__appName__)/(public)/page.js +0 -44
  33. package/templates/app/app/[lang]/(__appName__)/(public)/privacy/page.js +0 -38
  34. package/templates/app/app/[lang]/(__appName__)/(public)/signin/page.js +0 -46
  35. package/templates/app/app/[lang]/(__appName__)/(public)/termsofservice/page.js +0 -37
  36. package/templates/app/app/[lang]/(__appName__)/(user)/layout.js +0 -39
  37. package/templates/app/app/[lang]/(__appName__)/(user)/self/page.js +0 -56
  38. package/templates/app/app/[lang]/(__appName__)/layout.js +0 -48
  39. package/templates/app/app/[lang]/admin/layout.js +0 -49
  40. package/templates/app/app/[lang]/admin/page.js +0 -59
  41. package/templates/app/app/csr.js +0 -30
  42. package/templates/app/app/index.html.template +0 -13
  43. package/templates/app/app/layout.js +0 -34
  44. package/templates/app/app/robots.js +0 -39
  45. package/templates/app/app/sitemap.js +0 -35
  46. package/templates/app/base/baseLogic.js +0 -34
  47. package/templates/app/base/index.js +0 -28
  48. package/templates/app/capacitor.config.ts.template +0 -8
  49. package/templates/app/common/commonLogic.js +0 -34
  50. package/templates/app/common/index.js +0 -28
  51. package/templates/app/env/env.client.js +0 -37
  52. package/templates/app/env/env.client.type.js +0 -34
  53. package/templates/app/env/env.server.js +0 -37
  54. package/templates/app/jest.config.js +0 -35
  55. package/templates/app/lib/___appName__/__appName__.dictionary.js +0 -30
  56. package/templates/app/lib/___appName__/__appName__.service.js +0 -41
  57. package/templates/app/lib/___appName__/__appName__.store.js +0 -35
  58. package/templates/app/lib/___appName__/_server.js +0 -33
  59. package/templates/app/lib/option.js +0 -41
  60. package/templates/app/lib/setting/Setting.Template.js +0 -53
  61. package/templates/app/lib/setting/Setting.Unit.js +0 -34
  62. package/templates/app/lib/setting/Setting.Util.js +0 -30
  63. package/templates/app/lib/setting/Setting.View.js +0 -47
  64. package/templates/app/lib/setting/Setting.Zone.js +0 -76
  65. package/templates/app/lib/setting/_server.js +0 -47
  66. package/templates/app/lib/setting/index.js +0 -57
  67. package/templates/app/lib/setting/setting.constant.js +0 -45
  68. package/templates/app/lib/setting/setting.dictionary.js +0 -45
  69. package/templates/app/lib/setting/setting.document.js +0 -47
  70. package/templates/app/lib/setting/setting.service.js +0 -36
  71. package/templates/app/lib/setting/setting.signal.js +0 -33
  72. package/templates/app/lib/setting/setting.store.js +0 -40
  73. package/templates/app/lib/summary/Summary.Template.js +0 -39
  74. package/templates/app/lib/summary/Summary.Unit.js +0 -34
  75. package/templates/app/lib/summary/Summary.Util.js +0 -29
  76. package/templates/app/lib/summary/Summary.View.js +0 -47
  77. package/templates/app/lib/summary/Summary.Zone.js +0 -58
  78. package/templates/app/lib/summary/_server.js +0 -47
  79. package/templates/app/lib/summary/index.js +0 -63
  80. package/templates/app/lib/summary/summary.constant.js +0 -43
  81. package/templates/app/lib/summary/summary.dictionary.js +0 -48
  82. package/templates/app/lib/summary/summary.document.js +0 -47
  83. package/templates/app/lib/summary/summary.service.js +0 -33
  84. package/templates/app/lib/summary/summary.signal.js +0 -33
  85. package/templates/app/lib/summary/summary.store.js +0 -40
  86. package/templates/app/lib/user/User.Template.js +0 -61
  87. package/templates/app/lib/user/User.Unit.js +0 -34
  88. package/templates/app/lib/user/User.Util.js +0 -90
  89. package/templates/app/lib/user/User.View.js +0 -62
  90. package/templates/app/lib/user/User.Zone.js +0 -70
  91. package/templates/app/lib/user/_server.js +0 -47
  92. package/templates/app/lib/user/index.js +0 -57
  93. package/templates/app/lib/user/user.constant.js +0 -66
  94. package/templates/app/lib/user/user.dictionary.js +0 -51
  95. package/templates/app/lib/user/user.document.js +0 -53
  96. package/templates/app/lib/user/user.service.js +0 -41
  97. package/templates/app/lib/user/user.signal.js +0 -33
  98. package/templates/app/lib/user/user.signal.spec.js +0 -36
  99. package/templates/app/lib/user/user.signal.test.js +0 -38
  100. package/templates/app/lib/user/user.store.js +0 -38
  101. package/templates/app/main.js +0 -39
  102. package/templates/app/middleware.js +0 -34
  103. package/templates/app/nest/backendLogic.js +0 -33
  104. package/templates/app/nest/index.js +0 -28
  105. package/templates/app/next/frontendLogic.js +0 -33
  106. package/templates/app/next/index.js +0 -28
  107. package/templates/app/page.test.ts.template +0 -10
  108. package/templates/app/playwright.config.ts.template +0 -6
  109. package/templates/app/postcss.config.js.template +0 -10
  110. package/templates/app/public/favicon.ico +0 -0
  111. package/templates/app/public/icons/icon-128x128.png +0 -0
  112. package/templates/app/public/icons/icon-144x144.png +0 -0
  113. package/templates/app/public/icons/icon-152x152.png +0 -0
  114. package/templates/app/public/icons/icon-192x192.png +0 -0
  115. package/templates/app/public/icons/icon-256x256.png +0 -0
  116. package/templates/app/public/icons/icon-384x384.png +0 -0
  117. package/templates/app/public/icons/icon-48x48.png +0 -0
  118. package/templates/app/public/icons/icon-512x512.png +0 -0
  119. package/templates/app/public/icons/icon-72x72.png +0 -0
  120. package/templates/app/public/icons/icon-96x96.png +0 -0
  121. package/templates/app/public/logo.svg +0 -70
  122. package/templates/app/public/manifest.json.template +0 -67
  123. package/templates/app/tsconfig.json.template +0 -22
  124. package/templates/app/tsconfig.spec.json.template +0 -7
  125. package/templates/app/ui/Footer.js +0 -63
  126. package/templates/app/ui/MainHeader.js +0 -127
  127. package/templates/app/ui/index.js +0 -29
  128. package/templates/client.js +0 -41
  129. package/templates/crudPages/[__model__Id]/edit/page.js +0 -69
  130. package/templates/crudPages/[__model__Id]/page.js +0 -79
  131. package/templates/crudPages/new/page.js +0 -66
  132. package/templates/crudPages/page.js +0 -67
  133. package/templates/index.js +0 -30
  134. package/templates/lib/__lib/extends/summary.constant.js +0 -42
  135. package/templates/lib/__lib/lib.constant.js +0 -52
  136. package/templates/lib/__lib/lib.dictionary.js +0 -41
  137. package/templates/lib/__lib/lib.document.js +0 -40
  138. package/templates/lib/__lib/lib.service.js +0 -82
  139. package/templates/lib/__lib/lib.signal.js +0 -35
  140. package/templates/lib/__lib/lib.store.js +0 -33
  141. package/templates/lib/__scalar/_server.js +0 -38
  142. package/templates/lib/cnst.js +0 -31
  143. package/templates/lib/cnst_.js +0 -50
  144. package/templates/lib/db.js +0 -52
  145. package/templates/lib/dict.js +0 -44
  146. package/templates/lib/fetch.js +0 -47
  147. package/templates/lib/sig.js +0 -36
  148. package/templates/lib/srv.js +0 -51
  149. package/templates/lib/st.js +0 -35
  150. package/templates/lib/store.js +0 -51
  151. package/templates/lib/usePage.js +0 -32
  152. package/templates/libRoot/.gitignore.template +0 -15
  153. package/templates/libRoot/jest.config.js +0 -35
  154. package/templates/libRoot/package.json.template +0 -5
  155. package/templates/libRoot/tsconfig.json.template +0 -11
  156. package/templates/libRoot/tsconfig.spec.json.template +0 -7
  157. package/templates/module/__Model__.Template.js +0 -50
  158. package/templates/module/__Model__.Unit.js +0 -38
  159. package/templates/module/__Model__.Util.js +0 -66
  160. package/templates/module/__Model__.View.js +0 -44
  161. package/templates/module/__Model__.Zone.js +0 -79
  162. package/templates/module/__model__.constant.js +0 -68
  163. package/templates/module/__model__.dictionary.js +0 -97
  164. package/templates/module/__model__.document.js +0 -52
  165. package/templates/module/__model__.service.js +0 -40
  166. package/templates/module/__model__.signal.js +0 -59
  167. package/templates/module/__model__.signal.spec.js +0 -38
  168. package/templates/module/__model__.signal.test.js +0 -47
  169. package/templates/module/__model__.store.js +0 -38
  170. package/templates/module/_server.js +0 -46
  171. package/templates/module/index.js +0 -57
  172. package/templates/pkgRoot/tsconfig.json.template +0 -12
  173. package/templates/server.js +0 -58
  174. package/templates/workplaceRoot/.env.template +0 -20
  175. package/templates/workplaceRoot/.gitignore.template +0 -195
  176. package/templates/workplaceRoot/.prettierignore.template +0 -10
  177. package/templates/workplaceRoot/.prettierrc.json.template +0 -5
  178. package/templates/workplaceRoot/.swcrc.template +0 -9
  179. package/templates/workplaceRoot/README.md.template +0 -37
  180. package/templates/workplaceRoot/eslint.config.js.template +0 -141
  181. package/templates/workplaceRoot/tsconfig.json.template +0 -29
@@ -0,0 +1,17 @@
1
+ import { type App, type Lib, type Sys, Workspace } from "@akanjs/devkit";
2
+ export declare class ModuleRunner {
3
+ createModule(workspace: Workspace, moduleName: string): Promise<void>;
4
+ removeModule(workspace: Workspace, name: string): Promise<void>;
5
+ createScalarTemplate(sys: Sys, name: string): Promise<{
6
+ constant: {
7
+ filename: string;
8
+ content: string;
9
+ };
10
+ dictionary: {
11
+ filename: string;
12
+ content: string;
13
+ };
14
+ }>;
15
+ createUnit(sys: App | Lib, modelName: string): Promise<void>;
16
+ createView(sys: App | Lib, modelName: string): Promise<void>;
17
+ }
@@ -0,0 +1,11 @@
1
+ import { type Sys, Workspace } from "@akanjs/devkit";
2
+ export declare class ModuleScript {
3
+ #private;
4
+ createModule(workspace: Workspace, name: string): Promise<void>;
5
+ removeModule(workspace: Workspace, name: string): Promise<void>;
6
+ createScalar(sys: Sys, name: string): Promise<void>;
7
+ createService(workspace: Workspace, name: string): Promise<void>;
8
+ createTest(workspace: Workspace, name: string): Promise<void>;
9
+ createUnit(workspace: Workspace, type: "app" | "lib", appOrLibName: string, modelName: string): Promise<void>;
10
+ createView(workspace: Workspace, type: "app" | "lib", appOrLibName: string, modelName: string): Promise<void>;
11
+ }
@@ -0,0 +1,9 @@
1
+ import { Pkg, Workspace } from "@akanjs/devkit";
2
+ import { PackageScript } from "./package.script";
3
+ export declare class PackageCommand {
4
+ packageScript: PackageScript;
5
+ createPackage(name: string, workspace: Workspace): Promise<void>;
6
+ removePackage(name: string, workspace: Workspace): Promise<void>;
7
+ scanPackage(pkg: Pkg): Promise<void>;
8
+ buildPackage(pkg: Pkg): Promise<void>;
9
+ }
@@ -0,0 +1,6 @@
1
+ import { type DistPkgExecutor, type Pkg, type Workspace } from "@akanjs/devkit";
2
+ export declare class PackageRunner {
3
+ createPackage(workspace: Workspace, pkgName: string): Promise<void>;
4
+ scanSync(pkg: Pkg): Promise<import("@akanjs/config").PkgScanResult>;
5
+ buildPackage(pkg: Pkg, distPkg: DistPkgExecutor): Promise<void>;
6
+ }
@@ -0,0 +1,7 @@
1
+ import { DistPkgExecutor, type Pkg, type Workspace } from "@akanjs/devkit";
2
+ export declare class PackageScript {
3
+ #private;
4
+ createPackage(workspace: Workspace, pkgName: string): Promise<void>;
5
+ scanPackage(pkg: Pkg): Promise<void>;
6
+ buildPackage(pkg: Pkg, distPkg?: DistPkgExecutor): Promise<void>;
7
+ }
@@ -0,0 +1,6 @@
1
+ import { App } from "@akanjs/devkit";
2
+ import { PageScript } from "./page.script";
3
+ export declare class PageCommand {
4
+ pageScript: PageScript;
5
+ createPage(app: App, name: string): Promise<void>;
6
+ }
@@ -0,0 +1,4 @@
1
+ import { App } from "@akanjs/devkit";
2
+ export declare class PageRunner {
3
+ createPage(app: App, name: string): Promise<void>;
4
+ }
@@ -0,0 +1,5 @@
1
+ import { App } from "@akanjs/devkit";
2
+ export declare class PageScript {
3
+ #private;
4
+ createPage(app: App, name: string): Promise<void>;
5
+ }
@@ -0,0 +1,8 @@
1
+ import { Workspace } from "@akanjs/devkit";
2
+ import { WorkspaceScript } from "./workspace.script";
3
+ export declare class WorkspaceCommand {
4
+ workspaceScript: WorkspaceScript;
5
+ createWorkspace(name: string, dir: string, app: string): Promise<void>;
6
+ installLibrary(name: string, workspace: Workspace): Promise<void>;
7
+ generateMongo(workspace: Workspace): Promise<void>;
8
+ }
@@ -0,0 +1,6 @@
1
+ import { type Workspace } from "@akanjs/devkit";
2
+ export declare class WorkspaceRunner {
3
+ createWorkspace(repoName: string, appName: string, dirname?: string): Promise<void>;
4
+ generateMongo(workspace: Workspace): Promise<void>;
5
+ installLibrary(workspace: Workspace, libName: string): Promise<void>;
6
+ }
@@ -0,0 +1,7 @@
1
+ import { WorkspaceExecutor } from "@akanjs/devkit";
2
+ export declare class WorkspaceScript {
3
+ #private;
4
+ createWorkspace(repoName: string, appName: string, dirname?: string): Promise<void>;
5
+ generateMongo(workspace: WorkspaceExecutor): Promise<void>;
6
+ installLibrary(workspace: WorkspaceExecutor, libName: string): Promise<void>;
7
+ }
@@ -1,34 +0,0 @@
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
- var model_constant_exports = {};
19
- __export(model_constant_exports, {
20
- default: () => getContent
21
- });
22
- module.exports = __toCommonJS(model_constant_exports);
23
- function getContent(scanResult, dict) {
24
- return `
25
- import { Field, Model } from "@akanjs/constant";
26
-
27
- @Model.Scalar("${dict.Model}")
28
- export class ${dict.Model} {
29
- @Field.Prop(() => String)
30
- field: string;
31
- }
32
- `;
33
- }
34
- module.exports = module.exports.default;
@@ -1,45 +0,0 @@
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
- var model_dictionary_exports = {};
19
- __export(model_dictionary_exports, {
20
- default: () => getContent
21
- });
22
- module.exports = __toCommonJS(model_dictionary_exports);
23
- function getContent(scanResult, dict) {
24
- return `
25
- import { ModelDictionary } from "@akanjs/dictionary";
26
-
27
- import type { ${dict.Model} } from "./${dict.model}.constant";
28
-
29
- const modelDictionary = {
30
- modelName: ["${dict.Model}", "${dict.Model}"],
31
- modelDesc: ["${dict.Model}", "${dict.Model}"],
32
-
33
- // * ==================== Model ==================== * //
34
- field: ["Field", "\uD544\uB4DC"],
35
- "desc-field": ["Field", "\uD544\uB4DC"],
36
- // * ==================== Model ==================== * //
37
-
38
- // * ==================== Etc ==================== * //
39
- // * ==================== Etc ==================== * //
40
- } satisfies ModelDictionary<${dict.Model}>;
41
-
42
- export const ${dict.model}Dictionary = modelDictionary;
43
- `;
44
- }
45
- module.exports = module.exports.default;
@@ -1,32 +0,0 @@
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
- var model_document_exports = {};
19
- __export(model_document_exports, {
20
- default: () => getContent
21
- });
22
- module.exports = __toCommonJS(model_document_exports);
23
- function getContent(scanResult, dict) {
24
- return `
25
- import { by } from "@akanjs/document";
26
-
27
- import * as cnst from "./${dict.model}.constant";
28
-
29
- export class ${dict.Model} extends by(cnst.${dict.Model}) {}
30
- `;
31
- }
32
- module.exports = module.exports.default;
@@ -1,5 +0,0 @@
1
- import type { AppConfig } from "@akanjs/config";
2
-
3
- const config: AppConfig = {};
4
-
5
- export default config;
@@ -1,43 +0,0 @@
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
- var page_exports = {};
19
- __export(page_exports, {
20
- default: () => getContent
21
- });
22
- module.exports = __toCommonJS(page_exports);
23
- function getContent(scanResult, dict = {}) {
24
- return `
25
- import { Image, Link } from "@util/ui";
26
- import { User } from "@shared/client";
27
-
28
- export default function Page() {
29
- return (
30
- <div className="relative w-full h-screen overflow-hidden flex items-center justify-center">
31
- <div className="z-10 md:w-[400px] px-12 pt-12 pb-4 shadow-lg rounded-xl bg-base-100/50 backdrop-blur-xs">
32
- <User.Util.ForgotPassword />
33
- <Link.Back className="text-center">
34
- <button className="mt-2 underline btn btn-ghost">Back</button>
35
- </Link.Back>
36
- </div>
37
- <Image className="absolute left-0 right-0 top-0 bottom-0 -z-50" width={1920} height={1080} src="/back.jpg" />
38
- </div>
39
- );
40
- }
41
- `;
42
- }
43
- module.exports = module.exports.default;
@@ -1,44 +0,0 @@
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
- var page_exports = {};
19
- __export(page_exports, {
20
- default: () => getContent
21
- });
22
- module.exports = __toCommonJS(page_exports);
23
- function getContent(scanResult, dict) {
24
- return `
25
- import { Image, Link } from "@util/ui";
26
- import { getSelf } from "@akanjs/client";
27
-
28
- export default function Page() {
29
- const self = getSelf();
30
- return (
31
- <div className="relative w-full h-screen overflow-hidden flex items-center justify-center">
32
- <div className="max-w-md bg-base-100/50 shadow-lg rounded-xl backdrop-blur-xs w-full py-8 px-16 flex flex-col items-center justify-center gap-3">
33
- <h1 className="text-4xl mt-2">${dict.appName}</h1>
34
- <h2 className="text-lg">${dict.appName} description</h2>
35
- <Link className="w-full" href={self ? "/self" : "/signin"}>
36
- <button className="btn w-full btn-primary">Go to dashboard</button>
37
- </Link>
38
- </div>
39
- </div>
40
- );
41
- }
42
- `;
43
- }
44
- module.exports = module.exports.default;
@@ -1,38 +0,0 @@
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
- var page_exports = {};
19
- __export(page_exports, {
20
- default: () => getContent
21
- });
22
- module.exports = __toCommonJS(page_exports);
23
- function getContent(scanResult, dict) {
24
- return `
25
- import { Inform } from "@util/ui";
26
-
27
- export default function Page() {
28
- return (
29
- <div className="container whitespace-pre-wrap">
30
- <h1 className="flex justify-center">Privacy Policy</h1>
31
- <Inform.PrivacyPolicy companyName="${dict.CompanyName}" />
32
- </div>
33
- );
34
- }
35
-
36
- `;
37
- }
38
- module.exports = module.exports.default;
@@ -1,46 +0,0 @@
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
- var page_exports = {};
19
- __export(page_exports, {
20
- default: () => getContent
21
- });
22
- module.exports = __toCommonJS(page_exports);
23
- function getContent(scanResult, dict) {
24
- return `
25
- import { Image } from "@util/ui";
26
- import { User } from "@shared/client";
27
- import { getSelf, router } from "@akanjs/client";
28
-
29
- export default function Page() {
30
- const self = getSelf();
31
- return (
32
- <div className="relative w-full h-screen overflow-hidden flex items-center justify-center">
33
- <div className="max-w-md bg-base-100/50 shadow-lg rounded-xl backdrop-blur-xs w-full py-4 pb-10 px-16">
34
- <div className="my-6 flex justify-center text-4xl">${dict.appName}</div>
35
- <User.Util.SignInPassword
36
- siteKey=""
37
- redirect="/self"
38
- signupHref={null}
39
- />
40
- </div>
41
- </div>
42
- );
43
- }
44
- `;
45
- }
46
- module.exports = module.exports.default;
@@ -1,37 +0,0 @@
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
- var page_exports = {};
19
- __export(page_exports, {
20
- default: () => getContent
21
- });
22
- module.exports = __toCommonJS(page_exports);
23
- function getContent(scanResult, dict) {
24
- return `
25
- import { Inform } from "@util/ui";
26
-
27
- export default function Page() {
28
- return (
29
- <div className="container">
30
- <h1 className="flex justify-center">Terms of Service</h1>
31
- <Inform.ServicePolicy companyName="${dict.CompanyName}" serviceName="${dict.AppName}" />
32
- </div>
33
- );
34
- }
35
- `;
36
- }
37
- module.exports = module.exports.default;
@@ -1,39 +0,0 @@
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
- var layout_exports = {};
19
- __export(layout_exports, {
20
- default: () => getContent
21
- });
22
- module.exports = __toCommonJS(layout_exports);
23
- function getContent(scanResult, dict) {
24
- return `
25
- import { Footer } from "@${dict.appName}/ui";
26
- import { getSelf } from "@akanjs/client";
27
-
28
- export default function Layout({ children }: any) {
29
- getSelf({ unauthorize: "/signin" });
30
- return (
31
- <>
32
- <div className="w-full min-h-screen pt-20 px-2 container flex flex-col gap-2">{children}</div>
33
- <Footer />
34
- </>
35
- );
36
- }
37
- `;
38
- }
39
- module.exports = module.exports.default;
@@ -1,56 +0,0 @@
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
- var page_exports = {};
19
- __export(page_exports, {
20
- default: () => getContent
21
- });
22
- module.exports = __toCommonJS(page_exports);
23
- function getContent(scanResult, dict) {
24
- return `
25
- import { User as SharedUser } from "@shared/client";
26
- import { MainHeader } from "@${dict.appName}/ui";
27
- import { User } from "@${dict.appName}/client";
28
- import { getSelf } from "@akanjs/client";
29
-
30
- export default function Page() {
31
- const self = getSelf({ unauthorize: "/signin" });
32
- return (
33
- <>
34
- <MainHeader items={[{ type: "self", name: "profile" }]} />
35
- <div className="flex items-center gap-2">
36
- <div className="text-2xl">My Profile</div>
37
- <User.Util.EditSelf />
38
- </div>
39
- <div>
40
- <User.Zone.Self />
41
- </div>
42
- <div>
43
- <div className="font-bold">Password</div>
44
- <div>
45
- *******
46
- <span>
47
- <SharedUser.Util.SetPasswordWithPhone />
48
- </span>
49
- </div>
50
- </div>
51
- </>
52
- );
53
- }
54
- `;
55
- }
56
- module.exports = module.exports.default;
@@ -1,48 +0,0 @@
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
- var layout_exports = {};
19
- __export(layout_exports, {
20
- default: () => getContent
21
- });
22
- module.exports = __toCommonJS(layout_exports);
23
- function getContent(scanResult, dict) {
24
- return `
25
- import { System } from "@shared/ui";
26
- import { env } from "@${dict.appName}/env/env.client";
27
- import { fetch } from "@${dict.appName}/client";
28
-
29
- export const metadata = { title: "${dict.appName}" };
30
-
31
- export default function Layout({ children, params }: RootLayoutProps) {
32
- return (
33
- <System.Provider
34
- of={Layout}
35
- appName="${dict.appName}"
36
- params={params}
37
- head={<link rel="icon" href="/favicon.ico" />}
38
- // className="bg-base-100"
39
- env={env}
40
- fetch={fetch}
41
- >
42
- {children}
43
- </System.Provider>
44
- );
45
- }
46
- `;
47
- }
48
- module.exports = module.exports.default;
@@ -1,49 +0,0 @@
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
- var layout_exports = {};
19
- __export(layout_exports, {
20
- default: () => getContent
21
- });
22
- module.exports = __toCommonJS(layout_exports);
23
- function getContent(scanResult, dict) {
24
- return `
25
- import { System } from "@shared/ui";
26
- import { env } from "@${dict.appName}/env/env.client";
27
- import { fetch } from "@${dict.appName}/client";
28
- import type { RootLayoutProps } from "@akanjs/client";
29
-
30
- export const metadata = { title: "${dict.appName}" };
31
-
32
- export default function Layout({ children, params }: RootLayoutProps) {
33
- return (
34
- <System.Provider
35
- of={Layout}
36
- appName="${dict.appName}"
37
- params={params}
38
- head={<link rel="icon" href="/favicon.ico" />}
39
- // className="bg-base-100"
40
- env={env}
41
- fetch={fetch}
42
- >
43
- {children}
44
- </System.Provider>
45
- );
46
- }
47
- `;
48
- }
49
- module.exports = module.exports.default;