@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.
- package/index.d.ts +1 -0
- package/index.js +75 -59
- package/package.json +2 -1
- package/src/application/application.command.d.ts +26 -0
- package/src/application/application.prompt.d.ts +2 -0
- package/src/application/application.runner.d.ts +35 -0
- package/src/application/application.script.d.ts +36 -0
- package/src/cloud/cloud.command.d.ts +8 -0
- package/src/cloud/cloud.runner.d.ts +7 -0
- package/src/cloud/cloud.script.d.ts +7 -0
- package/src/library/library.command.d.ts +8 -0
- package/src/library/library.runner.d.ts +4 -0
- package/src/library/library.script.d.ts +8 -0
- package/src/module/module.command.d.ts +13 -0
- package/src/module/module.prompt.d.ts +15 -0
- package/src/module/module.runner.d.ts +17 -0
- package/src/module/module.script.d.ts +11 -0
- package/src/package/package.command.d.ts +9 -0
- package/src/package/package.runner.d.ts +6 -0
- package/src/package/package.script.d.ts +7 -0
- package/src/package/page/page.command.d.ts +6 -0
- package/src/package/page/page.runner.d.ts +4 -0
- package/src/package/page/page.script.d.ts +5 -0
- package/src/workspace/workspace.command.d.ts +8 -0
- package/src/workspace/workspace.runner.d.ts +6 -0
- package/src/workspace/workspace.script.d.ts +7 -0
- package/templates/__scalar/__model__/__model__.constant.js +0 -34
- package/templates/__scalar/__model__/__model__.dictionary.js +0 -45
- package/templates/__scalar/__model__/__model__.document.js +0 -32
- package/templates/app/akan.config.ts.template +0 -5
- package/templates/app/app/[lang]/(__appName__)/(public)/forgotpassword/page.js +0 -43
- package/templates/app/app/[lang]/(__appName__)/(public)/page.js +0 -44
- package/templates/app/app/[lang]/(__appName__)/(public)/privacy/page.js +0 -38
- package/templates/app/app/[lang]/(__appName__)/(public)/signin/page.js +0 -46
- package/templates/app/app/[lang]/(__appName__)/(public)/termsofservice/page.js +0 -37
- package/templates/app/app/[lang]/(__appName__)/(user)/layout.js +0 -39
- package/templates/app/app/[lang]/(__appName__)/(user)/self/page.js +0 -56
- package/templates/app/app/[lang]/(__appName__)/layout.js +0 -48
- package/templates/app/app/[lang]/admin/layout.js +0 -49
- package/templates/app/app/[lang]/admin/page.js +0 -59
- package/templates/app/app/csr.js +0 -30
- package/templates/app/app/index.html.template +0 -13
- package/templates/app/app/layout.js +0 -34
- package/templates/app/app/robots.js +0 -39
- package/templates/app/app/sitemap.js +0 -35
- package/templates/app/base/baseLogic.js +0 -34
- package/templates/app/base/index.js +0 -28
- package/templates/app/capacitor.config.ts.template +0 -8
- package/templates/app/common/commonLogic.js +0 -34
- package/templates/app/common/index.js +0 -28
- package/templates/app/env/env.client.js +0 -37
- package/templates/app/env/env.client.type.js +0 -34
- package/templates/app/env/env.server.js +0 -37
- package/templates/app/jest.config.js +0 -35
- package/templates/app/lib/___appName__/__appName__.dictionary.js +0 -30
- package/templates/app/lib/___appName__/__appName__.service.js +0 -41
- package/templates/app/lib/___appName__/__appName__.store.js +0 -35
- package/templates/app/lib/___appName__/_server.js +0 -33
- package/templates/app/lib/option.js +0 -41
- package/templates/app/lib/setting/Setting.Template.js +0 -53
- package/templates/app/lib/setting/Setting.Unit.js +0 -34
- package/templates/app/lib/setting/Setting.Util.js +0 -30
- package/templates/app/lib/setting/Setting.View.js +0 -47
- package/templates/app/lib/setting/Setting.Zone.js +0 -76
- package/templates/app/lib/setting/_server.js +0 -47
- package/templates/app/lib/setting/index.js +0 -57
- package/templates/app/lib/setting/setting.constant.js +0 -45
- package/templates/app/lib/setting/setting.dictionary.js +0 -45
- package/templates/app/lib/setting/setting.document.js +0 -47
- package/templates/app/lib/setting/setting.service.js +0 -36
- package/templates/app/lib/setting/setting.signal.js +0 -33
- package/templates/app/lib/setting/setting.store.js +0 -40
- package/templates/app/lib/summary/Summary.Template.js +0 -39
- package/templates/app/lib/summary/Summary.Unit.js +0 -34
- package/templates/app/lib/summary/Summary.Util.js +0 -29
- package/templates/app/lib/summary/Summary.View.js +0 -47
- package/templates/app/lib/summary/Summary.Zone.js +0 -58
- package/templates/app/lib/summary/_server.js +0 -47
- package/templates/app/lib/summary/index.js +0 -63
- package/templates/app/lib/summary/summary.constant.js +0 -43
- package/templates/app/lib/summary/summary.dictionary.js +0 -48
- package/templates/app/lib/summary/summary.document.js +0 -47
- package/templates/app/lib/summary/summary.service.js +0 -33
- package/templates/app/lib/summary/summary.signal.js +0 -33
- package/templates/app/lib/summary/summary.store.js +0 -40
- package/templates/app/lib/user/User.Template.js +0 -61
- package/templates/app/lib/user/User.Unit.js +0 -34
- package/templates/app/lib/user/User.Util.js +0 -90
- package/templates/app/lib/user/User.View.js +0 -62
- package/templates/app/lib/user/User.Zone.js +0 -70
- package/templates/app/lib/user/_server.js +0 -47
- package/templates/app/lib/user/index.js +0 -57
- package/templates/app/lib/user/user.constant.js +0 -66
- package/templates/app/lib/user/user.dictionary.js +0 -51
- package/templates/app/lib/user/user.document.js +0 -53
- package/templates/app/lib/user/user.service.js +0 -41
- package/templates/app/lib/user/user.signal.js +0 -33
- package/templates/app/lib/user/user.signal.spec.js +0 -36
- package/templates/app/lib/user/user.signal.test.js +0 -38
- package/templates/app/lib/user/user.store.js +0 -38
- package/templates/app/main.js +0 -39
- package/templates/app/middleware.js +0 -34
- package/templates/app/nest/backendLogic.js +0 -33
- package/templates/app/nest/index.js +0 -28
- package/templates/app/next/frontendLogic.js +0 -33
- package/templates/app/next/index.js +0 -28
- package/templates/app/page.test.ts.template +0 -10
- package/templates/app/playwright.config.ts.template +0 -6
- package/templates/app/postcss.config.js.template +0 -10
- package/templates/app/public/favicon.ico +0 -0
- package/templates/app/public/icons/icon-128x128.png +0 -0
- package/templates/app/public/icons/icon-144x144.png +0 -0
- package/templates/app/public/icons/icon-152x152.png +0 -0
- package/templates/app/public/icons/icon-192x192.png +0 -0
- package/templates/app/public/icons/icon-256x256.png +0 -0
- package/templates/app/public/icons/icon-384x384.png +0 -0
- package/templates/app/public/icons/icon-48x48.png +0 -0
- package/templates/app/public/icons/icon-512x512.png +0 -0
- package/templates/app/public/icons/icon-72x72.png +0 -0
- package/templates/app/public/icons/icon-96x96.png +0 -0
- package/templates/app/public/logo.svg +0 -70
- package/templates/app/public/manifest.json.template +0 -67
- package/templates/app/tsconfig.json.template +0 -22
- package/templates/app/tsconfig.spec.json.template +0 -7
- package/templates/app/ui/Footer.js +0 -63
- package/templates/app/ui/MainHeader.js +0 -127
- package/templates/app/ui/index.js +0 -29
- package/templates/client.js +0 -41
- package/templates/crudPages/[__model__Id]/edit/page.js +0 -69
- package/templates/crudPages/[__model__Id]/page.js +0 -79
- package/templates/crudPages/new/page.js +0 -66
- package/templates/crudPages/page.js +0 -67
- package/templates/index.js +0 -30
- package/templates/lib/__lib/extends/summary.constant.js +0 -42
- package/templates/lib/__lib/lib.constant.js +0 -52
- package/templates/lib/__lib/lib.dictionary.js +0 -41
- package/templates/lib/__lib/lib.document.js +0 -40
- package/templates/lib/__lib/lib.service.js +0 -82
- package/templates/lib/__lib/lib.signal.js +0 -35
- package/templates/lib/__lib/lib.store.js +0 -33
- package/templates/lib/__scalar/_server.js +0 -38
- package/templates/lib/cnst.js +0 -31
- package/templates/lib/cnst_.js +0 -50
- package/templates/lib/db.js +0 -52
- package/templates/lib/dict.js +0 -44
- package/templates/lib/fetch.js +0 -47
- package/templates/lib/sig.js +0 -36
- package/templates/lib/srv.js +0 -51
- package/templates/lib/st.js +0 -35
- package/templates/lib/store.js +0 -51
- package/templates/lib/usePage.js +0 -32
- package/templates/libRoot/.gitignore.template +0 -15
- package/templates/libRoot/jest.config.js +0 -35
- package/templates/libRoot/package.json.template +0 -5
- package/templates/libRoot/tsconfig.json.template +0 -11
- package/templates/libRoot/tsconfig.spec.json.template +0 -7
- package/templates/module/__Model__.Template.js +0 -50
- package/templates/module/__Model__.Unit.js +0 -38
- package/templates/module/__Model__.Util.js +0 -66
- package/templates/module/__Model__.View.js +0 -44
- package/templates/module/__Model__.Zone.js +0 -79
- package/templates/module/__model__.constant.js +0 -68
- package/templates/module/__model__.dictionary.js +0 -97
- package/templates/module/__model__.document.js +0 -52
- package/templates/module/__model__.service.js +0 -40
- package/templates/module/__model__.signal.js +0 -59
- package/templates/module/__model__.signal.spec.js +0 -38
- package/templates/module/__model__.signal.test.js +0 -47
- package/templates/module/__model__.store.js +0 -38
- package/templates/module/_server.js +0 -46
- package/templates/module/index.js +0 -57
- package/templates/pkgRoot/tsconfig.json.template +0 -12
- package/templates/server.js +0 -58
- package/templates/workplaceRoot/.env.template +0 -20
- package/templates/workplaceRoot/.gitignore.template +0 -195
- package/templates/workplaceRoot/.prettierignore.template +0 -10
- package/templates/workplaceRoot/.prettierrc.json.template +0 -5
- package/templates/workplaceRoot/.swcrc.template +0 -9
- package/templates/workplaceRoot/README.md.template +0 -37
- package/templates/workplaceRoot/eslint.config.js.template +0 -141
- 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,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,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;
|