@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
|
@@ -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 user_store_exports = {};
|
|
19
|
-
__export(user_store_exports, {
|
|
20
|
-
default: () => getContent
|
|
21
|
-
});
|
|
22
|
-
module.exports = __toCommonJS(user_store_exports);
|
|
23
|
-
function getContent(scanResult, dict = {}) {
|
|
24
|
-
return `
|
|
25
|
-
import { stateOf, Store } from "@akanjs/store";
|
|
26
|
-
|
|
27
|
-
import { cnst } from "../cnst";
|
|
28
|
-
import { fetch, userGql } from "../fetch";
|
|
29
|
-
|
|
30
|
-
@Store(() => cnst.User)
|
|
31
|
-
export class UserStore extends stateOf(userGql, {
|
|
32
|
-
self: fetch.defaultUser as cnst.User,
|
|
33
|
-
}) {
|
|
34
|
-
//
|
|
35
|
-
}
|
|
36
|
-
`;
|
|
37
|
-
}
|
|
38
|
-
module.exports = module.exports.default;
|
package/templates/app/main.js
DELETED
|
@@ -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 main_exports = {};
|
|
19
|
-
__export(main_exports, {
|
|
20
|
-
default: () => getContent
|
|
21
|
-
});
|
|
22
|
-
module.exports = __toCommonJS(main_exports);
|
|
23
|
-
function getContent(scanResult, dict) {
|
|
24
|
-
return `
|
|
25
|
-
import { createNestApp } from "@akanjs/server";
|
|
26
|
-
|
|
27
|
-
import { env } from "./env/env.server";
|
|
28
|
-
import { registerModules } from "./server";
|
|
29
|
-
|
|
30
|
-
const bootstrap = async () => {
|
|
31
|
-
const serverMode = process.env.SERVER_MODE as "federation" | "batch" | "all" | null;
|
|
32
|
-
if (!serverMode) throw new Error("SERVER_MODE environment variable is not defined");
|
|
33
|
-
const app = await createNestApp({ registerModules, serverMode, env });
|
|
34
|
-
return () => app.close();
|
|
35
|
-
};
|
|
36
|
-
void bootstrap();
|
|
37
|
-
`;
|
|
38
|
-
}
|
|
39
|
-
module.exports = module.exports.default;
|
|
@@ -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 middleware_exports = {};
|
|
19
|
-
__export(middleware_exports, {
|
|
20
|
-
default: () => getContent
|
|
21
|
-
});
|
|
22
|
-
module.exports = __toCommonJS(middleware_exports);
|
|
23
|
-
function getContent(scanResult, dict) {
|
|
24
|
-
return `
|
|
25
|
-
import { createNextMiddleware } from "@akanjs/next";
|
|
26
|
-
|
|
27
|
-
export const config = {
|
|
28
|
-
unstable_allowDynamic: ["/node_modules/reflect-metadata/**"],
|
|
29
|
-
matcher: ["/((?!api|_next|.*\\..*).*)"],
|
|
30
|
-
};
|
|
31
|
-
export const middleware = createNextMiddleware();
|
|
32
|
-
`;
|
|
33
|
-
}
|
|
34
|
-
module.exports = module.exports.default;
|
|
@@ -1,33 +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 backendLogic_exports = {};
|
|
19
|
-
__export(backendLogic_exports, {
|
|
20
|
-
default: () => getContent
|
|
21
|
-
});
|
|
22
|
-
module.exports = __toCommonJS(backendLogic_exports);
|
|
23
|
-
function getContent(scanResult, dict) {
|
|
24
|
-
return `
|
|
25
|
-
// \uD604 \uB514\uB809\uD1A0\uB9AC\uC5D0\uC11C\uB294 \uBC31\uC5D4\uB4DC\uC5D0\uC11C \uC0AC\uC6A9\uD558\uB294 \uB85C\uC9C1\uC744 \uCD94\uAC00\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.
|
|
26
|
-
// @${dict.appName}/nest\uC5D0\uC11C\uB294 \uD074\uB77C\uC774\uC5B8\uD2B8 \uAD00\uB828 \uB77C\uC774\uBE0C\uB7EC\uB9AC(@*/client, @*/next)\uB97C import\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.
|
|
27
|
-
|
|
28
|
-
export const someBackendLogic = () => {
|
|
29
|
-
//
|
|
30
|
-
};
|
|
31
|
-
`;
|
|
32
|
-
}
|
|
33
|
-
module.exports = module.exports.default;
|
|
@@ -1,28 +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 nest_exports = {};
|
|
19
|
-
__export(nest_exports, {
|
|
20
|
-
default: () => getContent
|
|
21
|
-
});
|
|
22
|
-
module.exports = __toCommonJS(nest_exports);
|
|
23
|
-
function getContent(scanResult, dict = {}) {
|
|
24
|
-
return `
|
|
25
|
-
export * from "./backendLogic";
|
|
26
|
-
`;
|
|
27
|
-
}
|
|
28
|
-
module.exports = module.exports.default;
|
|
@@ -1,33 +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 frontendLogic_exports = {};
|
|
19
|
-
__export(frontendLogic_exports, {
|
|
20
|
-
default: () => getContent
|
|
21
|
-
});
|
|
22
|
-
module.exports = __toCommonJS(frontendLogic_exports);
|
|
23
|
-
function getContent(scanResult, dict) {
|
|
24
|
-
return `
|
|
25
|
-
// \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.
|
|
26
|
-
// @${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.
|
|
27
|
-
|
|
28
|
-
export const someFrontendLogic = () => {
|
|
29
|
-
//
|
|
30
|
-
};
|
|
31
|
-
`;
|
|
32
|
-
}
|
|
33
|
-
module.exports = module.exports.default;
|
|
@@ -1,28 +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 next_exports = {};
|
|
19
|
-
__export(next_exports, {
|
|
20
|
-
default: () => getContent
|
|
21
|
-
});
|
|
22
|
-
module.exports = __toCommonJS(next_exports);
|
|
23
|
-
function getContent(scanResult, dict = {}) {
|
|
24
|
-
return `
|
|
25
|
-
export * from "./frontendLogic";
|
|
26
|
-
`;
|
|
27
|
-
}
|
|
28
|
-
module.exports = module.exports.default;
|
|
@@ -1,10 +0,0 @@
|
|
|
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
|
-
// });
|
|
@@ -1,10 +0,0 @@
|
|
|
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);
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,70 +0,0 @@
|
|
|
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>
|
|
@@ -1,67 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,63 +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 Footer_exports = {};
|
|
19
|
-
__export(Footer_exports, {
|
|
20
|
-
default: () => getContent
|
|
21
|
-
});
|
|
22
|
-
module.exports = __toCommonJS(Footer_exports);
|
|
23
|
-
function getContent(scanResult, dict) {
|
|
24
|
-
return `
|
|
25
|
-
import { Image, Link } from "@util/ui";
|
|
26
|
-
|
|
27
|
-
export const Footer = () => {
|
|
28
|
-
return (
|
|
29
|
-
<div className="relative justify-center px-2 pb-12 mt-12 bg-[#f3f3f3] via-secondary-focus to-accent-focus">
|
|
30
|
-
<div className="container py-10">
|
|
31
|
-
<div className="justify-between mt-6 md:flex md:mt-10 sm:mt-0">
|
|
32
|
-
<Link href="/" disabled>
|
|
33
|
-
<Image src="/logo.svg" className="object-contain fill-black" width={200} height={36} />
|
|
34
|
-
</Link>
|
|
35
|
-
<div className="flex gap-4 mt-6 text-xs md:mt-0 md:text-base ">
|
|
36
|
-
<Link href="/termsofservice">
|
|
37
|
-
<span className="text-[#777777]">\uC774\uC6A9\uC57D\uAD00</span>
|
|
38
|
-
</Link>
|
|
39
|
-
<Link href="/privacy">
|
|
40
|
-
<span className="text-[#777777]">\uAC1C\uC778\uC815\uBCF4\uCC98\uB9AC\uBC29\uCE68</span>
|
|
41
|
-
</Link>
|
|
42
|
-
</div>
|
|
43
|
-
</div>
|
|
44
|
-
<div className="items-center justify-between mt-6 text-sm md:text-base md:mt-3 md:flex ">
|
|
45
|
-
<div className="flex flex-col text-xs md:text-base gap-1 text-[#777777]">
|
|
46
|
-
${dict.CompanyName} | <CEO_NAME> | <COMPANY_ADDRESS>
|
|
47
|
-
</div>
|
|
48
|
-
<div>
|
|
49
|
-
<div className="flex gap-4 mt-6 text-xs md:text-base md:mt-0">
|
|
50
|
-
<span className="text-[#777]">\uBB38\uC758</span>
|
|
51
|
-
<a href="mailto:support@example.com">
|
|
52
|
-
<span className="text-[#777]">support@example.com</span>
|
|
53
|
-
</a>
|
|
54
|
-
</div>
|
|
55
|
-
</div>
|
|
56
|
-
</div>
|
|
57
|
-
</div>
|
|
58
|
-
</div>
|
|
59
|
-
);
|
|
60
|
-
};
|
|
61
|
-
`;
|
|
62
|
-
}
|
|
63
|
-
module.exports = module.exports.default;
|
|
@@ -1,127 +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 MainHeader_exports = {};
|
|
19
|
-
__export(MainHeader_exports, {
|
|
20
|
-
default: () => getContent
|
|
21
|
-
});
|
|
22
|
-
module.exports = __toCommonJS(MainHeader_exports);
|
|
23
|
-
function getContent(scanResult, dict) {
|
|
24
|
-
return `
|
|
25
|
-
import { usePage } from "@${dict.appName}/client";
|
|
26
|
-
import {
|
|
27
|
-
AiOutlineBuild,
|
|
28
|
-
AiOutlineEdit,
|
|
29
|
-
AiOutlineHome,
|
|
30
|
-
AiOutlinePoweroff,
|
|
31
|
-
AiOutlinePrinter,
|
|
32
|
-
AiOutlineRobot,
|
|
33
|
-
AiOutlineSecurityScan,
|
|
34
|
-
AiOutlineSend,
|
|
35
|
-
AiOutlineUser,
|
|
36
|
-
AiOutlineWindows,
|
|
37
|
-
} from "react-icons/ai";
|
|
38
|
-
import { User } from "@shared/client";
|
|
39
|
-
import { Layout, Link } from "@util/ui";
|
|
40
|
-
import { ReactNode } from "react";
|
|
41
|
-
import { clsx } from "@akanjs/client";
|
|
42
|
-
|
|
43
|
-
type DirType = "home" | "send" | "print" | "self";
|
|
44
|
-
|
|
45
|
-
const iconMap: { [key in DirType]: ReactNode } = {
|
|
46
|
-
home: <AiOutlineHome />,
|
|
47
|
-
send: <AiOutlineSend />,
|
|
48
|
-
print: <AiOutlinePrinter />,
|
|
49
|
-
self: <AiOutlineUser />,
|
|
50
|
-
};
|
|
51
|
-
|
|
52
|
-
interface MainHeaderProps {
|
|
53
|
-
className?: string;
|
|
54
|
-
children?: any;
|
|
55
|
-
items: {
|
|
56
|
-
type: DirType;
|
|
57
|
-
name: string;
|
|
58
|
-
href?: string;
|
|
59
|
-
}[];
|
|
60
|
-
type?: "view" | "edit" | "new";
|
|
61
|
-
}
|
|
62
|
-
export const MainHeader = ({ className, children, items, type = "view" }: MainHeaderProps) => {
|
|
63
|
-
const { l } = usePage();
|
|
64
|
-
return (
|
|
65
|
-
<Layout.Header
|
|
66
|
-
className={clsx("fixed left-0 px-2 py-2 bg-base-100/50 backdrop-blur-sm flex items-center gap-2", className)}
|
|
67
|
-
>
|
|
68
|
-
<Layout.Sider>
|
|
69
|
-
<div className="text-4xl font-lemonmilk w-full text-center my-8">${dict.AppName}</div>
|
|
70
|
-
<ul className="menu p-4 w-full bg-base-200 text-base-content">
|
|
71
|
-
{/* <li>
|
|
72
|
-
<User.Zone.Profile/>
|
|
73
|
-
</li> */}
|
|
74
|
-
<li>
|
|
75
|
-
<Link href="/location" className="flex gap-2 items-center text-lg">
|
|
76
|
-
{iconMap.home} Home
|
|
77
|
-
</Link>
|
|
78
|
-
</li>
|
|
79
|
-
<li>
|
|
80
|
-
<Link href="/self" className="flex gap-2 items-center text-lg">
|
|
81
|
-
{iconMap.self} My Profile
|
|
82
|
-
</Link>
|
|
83
|
-
</li>
|
|
84
|
-
<li>
|
|
85
|
-
<User.Util.Signout href="/" className="flex gap-2 items-center text-lg text-warning">
|
|
86
|
-
<AiOutlinePoweroff /> Sign out
|
|
87
|
-
</User.Util.Signout>
|
|
88
|
-
</li>
|
|
89
|
-
</ul>
|
|
90
|
-
</Layout.Sider>
|
|
91
|
-
<div className="text-sm breadcrumbs hidden md:block">
|
|
92
|
-
<ul>
|
|
93
|
-
{items.slice(0, -2).map(({ type, name, href }, idx) => (
|
|
94
|
-
<li key={idx}>
|
|
95
|
-
<Link className="flex gap-1 items-center" href={href}>
|
|
96
|
-
{iconMap[type]} {name}
|
|
97
|
-
</Link>
|
|
98
|
-
</li>
|
|
99
|
-
))}
|
|
100
|
-
<li></li>
|
|
101
|
-
</ul>
|
|
102
|
-
</div>
|
|
103
|
-
<div className="text-sm breadcrumbs -ml-2">
|
|
104
|
-
<ul>
|
|
105
|
-
{items.slice(-2).map(({ type, name, href }, idx) => (
|
|
106
|
-
<li key={idx}>
|
|
107
|
-
<Link className="flex gap-1 items-center" href={href}>
|
|
108
|
-
{iconMap[type]} {name}
|
|
109
|
-
</Link>
|
|
110
|
-
</li>
|
|
111
|
-
))}
|
|
112
|
-
{type === "new" ? (
|
|
113
|
-
<li>+ {l("shared.new")}</li>
|
|
114
|
-
) : type === "edit" ? (
|
|
115
|
-
<li className="flex gap-1 items-center">
|
|
116
|
-
<AiOutlineEdit /> {l("shared.edit")}
|
|
117
|
-
</li>
|
|
118
|
-
) : null}
|
|
119
|
-
</ul>
|
|
120
|
-
</div>
|
|
121
|
-
{children}
|
|
122
|
-
</Layout.Header>
|
|
123
|
-
);
|
|
124
|
-
};
|
|
125
|
-
`;
|
|
126
|
-
}
|
|
127
|
-
module.exports = module.exports.default;
|