@fernir2/saas-kit-cli 0.1.34 → 0.1.36
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/base-repo/app-constants/aliases.cjs.js +1 -1
- package/base-repo/app-constants/aliases.js +1 -1
- package/base-repo/app-constants/project-paths.cjs.js +2 -1
- package/base-repo/app-constants/project-paths.js +2 -2
- package/base-repo/constants/create-app-constants.cjs.js +1 -1
- package/base-repo/constants/create-app-constants.js +2 -2
- package/base-repo/constants/packages.cjs.js +1 -1
- package/base-repo/constants/packages.cjs2.js +1 -1
- package/base-repo/constants/packages.js +1 -1
- package/base-repo/constants/packages2.js +1 -1
- package/cli/.env.example +61 -55
- package/cli/README.md +3 -101
- package/cli/bin/{index.ts → create.ts} +446 -383
- package/cli/configs/drizzle-cli-config.ts +14 -0
- package/cli/configs/playwright-cli-config.ts +34 -0
- package/cli/configs/tsconfig.cli.json +37 -0
- package/cli/configs/tsconfig.server.json +13 -0
- package/cli/drizzle.config.ts +6 -12
- package/cli/next.config.js +73 -80
- package/cli/npm-commands/{gen-meta/index.ts → gen-meta.ts} +3 -3
- package/cli/npm-commands/gen-schema.ts +3 -0
- package/cli/npm-commands/{migrate-db/migrate-db.ts → migrate-db.ts} +15 -15
- package/cli/npm-commands/{seed-db/seed-db.ts → seed-db.ts} +15 -15
- package/cli/package-template.json +61 -64
- package/cli/playwright.config.ts +6 -34
- package/cli/postcss.config.mjs +7 -9
- package/cli/server.ts +41 -41
- package/cli/src/app/api/v1/[resourceName]/[id]/route.ts +11 -11
- package/cli/src/app/api/v1/[resourceName]/route.ts +14 -14
- package/cli/src/app/api/v1/[resourceName]/upsert/route.ts +3 -3
- package/cli/src/app/api/v1/blob/route.ts +7 -0
- package/cli/src/app/api/v1/log/route.ts +7 -7
- package/cli/src/app/api/v1/otheruser/[id]/route.ts +14 -14
- package/cli/src/app/api/v1/otheruser/route.ts +7 -7
- package/cli/src/app/api/v1/password/forgotpassword/route.ts +3 -3
- package/cli/src/app/api/v1/password/resetpassword/route.ts +3 -3
- package/cli/src/app/api/v1/payment/method/route.ts +4 -4
- package/cli/src/app/api/v1/payment/route.ts +3 -3
- package/cli/src/app/api/v1/payment/verify-fail/route.ts +3 -3
- package/cli/src/app/api/v1/payment/verify-success/route.ts +3 -3
- package/cli/src/app/api/v1/preload/route.ts +3 -3
- package/cli/src/app/api/v1/searchable-resources/route.ts +11 -11
- package/cli/src/app/api/v1/searchresult/route.ts +35 -35
- package/cli/src/app/api/v1/sign-in/route.ts +3 -3
- package/cli/src/app/api/v1/sign-out/route.ts +3 -3
- package/cli/src/app/api/v1/sign-up/route.ts +3 -3
- package/cli/src/app/api/v1/subscription/cancel/route.ts +3 -3
- package/cli/src/app/api/v1/subscription/create/route.ts +3 -3
- package/cli/src/app/api/v1/subscription/update/route.ts +3 -3
- package/cli/src/app/api/v1/uimeta/route.ts +3 -3
- package/cli/src/app/api/v1/uimetas/route.ts +3 -3
- package/cli/src/app/api/v1/userfeature/isenabled/route.ts +3 -0
- package/cli/src/app/api/v1/userpermission/route.ts +3 -3
- package/cli/src/app/api/v1/visible-workspace/route.ts +5 -5
- package/cli/src/app/api/v1/workspace/change/route.ts +5 -5
- package/cli/src/app/f/(private)/dashboard/page.tsx +8 -8
- package/cli/src/app/f/(private)/dynamiclayout/page.tsx +8 -8
- package/cli/src/app/f/(private)/edituser/[id]/page.tsx +8 -8
- package/cli/src/app/f/(private)/edituser/page.tsx +8 -8
- package/cli/src/app/f/(private)/layout.tsx +5 -5
- package/cli/src/app/f/(private)/lm/page.tsx +8 -8
- package/cli/src/app/f/(private)/payment-plans/page.tsx +8 -8
- package/cli/src/app/f/(private)/preload/page.tsx +8 -8
- package/cli/src/app/f/(private)/statusboard/page.tsx +8 -8
- package/cli/src/app/f/(private)/userlist/page.tsx +8 -8
- package/cli/src/app/f/(private)/view/page.tsx +9 -8
- package/cli/src/app/f/defaultRedirect/page.tsx +9 -9
- package/cli/src/app/f/editpassword/page.tsx +8 -8
- package/cli/src/app/f/forgotpassword/page.tsx +13 -13
- package/cli/src/app/f/resetpassword/page.tsx +11 -16
- package/cli/src/app/f/sign-in/microsoft/page.tsx +8 -8
- package/cli/src/app/f/sign-in/page.tsx +13 -13
- package/cli/src/app/f/sign-up/page.tsx +13 -13
- package/cli/src/app/f/test/feed/page.tsx +8 -8
- package/cli/src/app/f/test/file-upload/page.tsx +8 -8
- package/cli/src/app/f/test/layout.tsx +5 -5
- package/cli/src/app/f/test/page.tsx +8 -8
- package/cli/src/app/globals.css +1 -1
- package/cli/src/app/layout.tsx +46 -44
- package/cli/src/app/page.tsx +9 -9
- package/cli/src/app/styles/common.css +71 -74
- package/cli/src/app/styles/rich-text-editor.css +130 -130
- package/cli/{global-setup.ts → test/global-setup.ts} +25 -25
- package/cli/tsconfig.json +28 -65
- package/cli/tsconfig.server.json +17 -14
- package/fd-toolbox/api/api-client.cjs.js +19 -0
- package/fd-toolbox/api/api-client.js +11 -0
- package/{level2/fd-toolbox → fd-toolbox}/api/api-path-names.cjs.js +2 -2
- package/fd-toolbox/api/api-paths.cjs.js +9 -0
- package/fd-toolbox/api/api-paths.js +7 -0
- package/fd-toolbox/api/base-api.cjs.js +22 -0
- package/fd-toolbox/api/base-api.js +13 -0
- package/{level2/fd-toolbox → fd-toolbox}/auth/login-states.cjs.js +1 -1
- package/{level2/fd-toolbox → fd-toolbox}/auth/login-states.js +1 -1
- package/fd-toolbox/auth/session-storage.cjs.js +12 -0
- package/fd-toolbox/auth/session-storage.js +7 -0
- package/{level2/fd-toolbox → fd-toolbox}/auth/tokens.cjs.js +1 -1
- package/{level2/fd-toolbox → fd-toolbox}/auth/tokens.js +1 -1
- package/{level2/fd-toolbox → fd-toolbox}/constants/constants.cjs.js +1 -1
- package/fd-toolbox/constants/constants.js +4 -0
- package/{level2/fd-toolbox → fd-toolbox}/constants/header-names.cjs.js +1 -1
- package/{level2/fd-toolbox → fd-toolbox}/constants/header-names.js +1 -1
- package/{level2/fd-toolbox → fd-toolbox}/constants/public-files.cjs.js +2 -1
- package/{level2/fd-toolbox → fd-toolbox}/constants/public-files.js +2 -2
- package/fd-toolbox/enums/enums.cjs.js +26 -0
- package/fd-toolbox/enums/enums.js +4 -0
- package/{level2/fd-toolbox → fd-toolbox}/errors/error-handler.cjs.js +1 -1
- package/fd-toolbox/errors/error-handler.js +8 -0
- package/fd-toolbox/errors/errors.cjs.js +6 -0
- package/fd-toolbox/errors/errors.js +4 -0
- package/fd-toolbox/errors/problem-details.cjs.js +8 -0
- package/fd-toolbox/errors/problem-details.js +6 -0
- package/fd-toolbox/functions/value-checking-functions.cjs.js +10 -0
- package/fd-toolbox/functions/value-checking-functions.js +6 -0
- package/{level2/fd-toolbox → fd-toolbox}/http/url/urls.cjs.js +1 -1
- package/fd-toolbox/http/url/urls.js +6 -0
- package/fd-toolbox/infra/env-config.cjs.js +8 -0
- package/fd-toolbox/infra/env-config.js +6 -0
- package/fd-toolbox/infra/env-functions.cjs.js +16 -0
- package/fd-toolbox/infra/env-functions.js +11 -0
- package/fd-toolbox/infra/env-schema.cjs.js +12 -0
- package/fd-toolbox/infra/env-schema.js +8 -0
- package/{level2/fd-toolbox → fd-toolbox}/infra/env-store.cjs.js +1 -1
- package/{level2/fd-toolbox → fd-toolbox}/infra/env-store.js +1 -1
- package/fd-toolbox/lib/environments.cjs.js +25 -0
- package/fd-toolbox/lib/environments.js +11 -0
- package/fd-toolbox/lib/utils.cjs.js +29 -0
- package/fd-toolbox/lib/utils.js +13 -0
- package/fd-toolbox/local-storage/local-storage.cjs.js +12 -0
- package/fd-toolbox/local-storage/local-storage.js +7 -0
- package/fd-toolbox/logging/loggers.cjs.js +16 -0
- package/fd-toolbox/logging/loggers.js +10 -0
- package/fd-toolbox/notifications.cjs.js +14 -0
- package/fd-toolbox/notifications.js +7 -0
- package/{level2/fd-toolbox → fd-toolbox}/odata/odata-constants.cjs.js +1 -1
- package/fd-toolbox/odata/odata-constants.js +4 -0
- package/fd-toolbox/odata/odatas.cjs.js +11 -0
- package/fd-toolbox/odata/odatas.js +9 -0
- package/fd-toolbox/odata/services/odata-filters.cjs.js +11 -0
- package/fd-toolbox/odata/services/odata-filters.js +9 -0
- package/fd-toolbox/paths/paths-names.cjs.js +9 -0
- package/fd-toolbox/paths/paths-names.js +6 -0
- package/{level2/fd-toolbox → fd-toolbox}/routing/login-routers.cjs.js +1 -1
- package/{level2/fd-toolbox → fd-toolbox}/routing/login-routers.js +1 -1
- package/fd-toolbox/routing/paths.cjs.js +8 -0
- package/fd-toolbox/routing/paths.js +6 -0
- package/{level2/fd-toolbox → fd-toolbox}/strings/strings-constants.cjs.js +1 -1
- package/fd-toolbox/strings/strings-constants.js +4 -0
- package/fd-toolbox/strings/strings.cjs.js +10 -0
- package/fd-toolbox/strings/strings.js +7 -0
- package/fd-toolbox/types/ensure-type.cjs.js +22 -0
- package/fd-toolbox/types/ensure-type.js +4 -0
- package/fd-toolbox-core/core/name-of.cjs.js +8 -0
- package/fd-toolbox-core/core/name-of.js +4 -0
- package/fd-toolbox-core/types/resource-with-id.cjs.js +9 -0
- package/fd-toolbox-core/types/resource-with-id.js +6 -0
- package/level2/cli/bin/index.cjs.js +8 -0
- package/level2/cli/bin/index.js +6 -0
- package/level2/cli/create/bin/create.cjs.js +42 -0
- package/level2/cli/create/bin/create.js +20 -0
- package/level2/npm-commands/build-npm/cli-contents.cjs.js +9 -0
- package/level2/npm-commands/build-npm/cli-contents.js +6 -0
- package/level2/npm-commands/build-npm/path.cjs.js +1 -1
- package/level2/npm-commands/build-npm/path.js +2 -2
- package/package.json +32 -31
- package/cli/.env +0 -55
- package/cli/.gitlab-ci.yml +0 -16
- package/cli/.husky/commit-msg +0 -1
- package/cli/.husky/pre-commit +0 -1
- package/cli/eslint.config.js +0 -10
- package/cli/npm-commands/gen-schema/index.ts +0 -5
- package/cli/npm-commands/migrate-db/index.ts +0 -5
- package/cli/npm-commands/seed-db/index.ts +0 -5
- package/cli/tailwind.config.ts +0 -13
- package/cli/tsconfig.declaration.json +0 -48
- package/level2/cli/create-saas-kit-app/bin/index.cjs.js +0 -40
- package/level2/cli/create-saas-kit-app/bin/index.js +0 -18
- package/level2/fd-toolbox/api/api-client.cjs.js +0 -19
- package/level2/fd-toolbox/api/api-client.js +0 -11
- package/level2/fd-toolbox/api/api-paths.cjs.js +0 -9
- package/level2/fd-toolbox/api/api-paths.js +0 -7
- package/level2/fd-toolbox/api/base-api.cjs.js +0 -22
- package/level2/fd-toolbox/api/base-api.js +0 -13
- package/level2/fd-toolbox/auth/session-storage.cjs.js +0 -12
- package/level2/fd-toolbox/auth/session-storage.js +0 -7
- package/level2/fd-toolbox/constants/constants.js +0 -4
- package/level2/fd-toolbox/enums/enums.cjs.js +0 -26
- package/level2/fd-toolbox/enums/enums.js +0 -4
- package/level2/fd-toolbox/errors/error-handler.js +0 -8
- package/level2/fd-toolbox/errors/errors.cjs.js +0 -6
- package/level2/fd-toolbox/errors/errors.js +0 -4
- package/level2/fd-toolbox/errors/problem-details.cjs.js +0 -8
- package/level2/fd-toolbox/errors/problem-details.js +0 -6
- package/level2/fd-toolbox/functions/value-checking-functions.cjs.js +0 -10
- package/level2/fd-toolbox/functions/value-checking-functions.js +0 -6
- package/level2/fd-toolbox/http/url/urls.js +0 -6
- package/level2/fd-toolbox/infra/env-config.cjs.js +0 -8
- package/level2/fd-toolbox/infra/env-config.js +0 -6
- package/level2/fd-toolbox/infra/env-functions.cjs.js +0 -16
- package/level2/fd-toolbox/infra/env-functions.js +0 -11
- package/level2/fd-toolbox/infra/env-schema.cjs.js +0 -12
- package/level2/fd-toolbox/infra/env-schema.js +0 -8
- package/level2/fd-toolbox/lib/environments.cjs.js +0 -25
- package/level2/fd-toolbox/lib/environments.js +0 -11
- package/level2/fd-toolbox/lib/utils.cjs.js +0 -29
- package/level2/fd-toolbox/lib/utils.js +0 -13
- package/level2/fd-toolbox/local-storage/local-storage.cjs.js +0 -12
- package/level2/fd-toolbox/local-storage/local-storage.js +0 -7
- package/level2/fd-toolbox/logging/loggers.cjs.js +0 -16
- package/level2/fd-toolbox/logging/loggers.js +0 -10
- package/level2/fd-toolbox/notifications.cjs.js +0 -14
- package/level2/fd-toolbox/notifications.js +0 -7
- package/level2/fd-toolbox/odata/odata-constants.js +0 -4
- package/level2/fd-toolbox/odata/odatas.cjs.js +0 -11
- package/level2/fd-toolbox/odata/odatas.js +0 -9
- package/level2/fd-toolbox/odata/services/odata-filters.cjs.js +0 -11
- package/level2/fd-toolbox/odata/services/odata-filters.js +0 -9
- package/level2/fd-toolbox/paths/paths-names.cjs.js +0 -9
- package/level2/fd-toolbox/paths/paths-names.js +0 -6
- package/level2/fd-toolbox/routing/paths.cjs.js +0 -8
- package/level2/fd-toolbox/routing/paths.js +0 -6
- package/level2/fd-toolbox/strings/strings-constants.js +0 -4
- package/level2/fd-toolbox/strings/strings.cjs.js +0 -10
- package/level2/fd-toolbox/strings/strings.js +0 -7
- package/level2/fd-toolbox/types/ensure-type.cjs.js +0 -18
- package/level2/fd-toolbox/types/ensure-type.js +0 -4
- package/level2/fd-toolbox-core/core/name-of.cjs.js +0 -8
- package/level2/fd-toolbox-core/core/name-of.js +0 -4
- package/level2/fd-toolbox-core/types/resource-with-id.cjs.js +0 -9
- package/level2/fd-toolbox-core/types/resource-with-id.js +0 -6
- /package/{level2/fd-toolbox → fd-toolbox}/api/api-path-names.js +0 -0
- /package/{level2/fd-toolbox → fd-toolbox}/constants/api-constants.cjs.js +0 -0
- /package/{level2/fd-toolbox → fd-toolbox}/constants/api-constants.js +0 -0
- /package/{level2/fd-toolbox → fd-toolbox}/constants/environment-constants.cjs.js +0 -0
- /package/{level2/fd-toolbox → fd-toolbox}/constants/environment-constants.js +0 -0
- /package/{level2/fd-toolbox → fd-toolbox}/constants/extensions.cjs.js +0 -0
- /package/{level2/fd-toolbox → fd-toolbox}/constants/extensions.js +0 -0
- /package/{level2/fd-toolbox → fd-toolbox}/constants/http-status-codes.cjs.js +0 -0
- /package/{level2/fd-toolbox → fd-toolbox}/constants/http-status-codes.js +0 -0
- /package/{level2/fd-toolbox → fd-toolbox}/constants/meta-query-params.cjs.js +0 -0
- /package/{level2/fd-toolbox → fd-toolbox}/constants/meta-query-params.js +0 -0
- /package/{level2/fd-toolbox → fd-toolbox}/constants/representations.cjs.js +0 -0
- /package/{level2/fd-toolbox → fd-toolbox}/constants/representations.js +0 -0
- /package/{level2/fd-toolbox → fd-toolbox}/errors/error-statuses.cjs.js +0 -0
- /package/{level2/fd-toolbox → fd-toolbox}/errors/error-statuses.js +0 -0
- /package/{level2/fd-toolbox → fd-toolbox}/http/http-constants.cjs.js +0 -0
- /package/{level2/fd-toolbox → fd-toolbox}/http/http-constants.js +0 -0
- /package/{level2/fd-toolbox → fd-toolbox}/infra/env-setting-types.cjs.js +0 -0
- /package/{level2/fd-toolbox → fd-toolbox}/infra/env-setting-types.js +0 -0
- /package/{level2/fd-toolbox → fd-toolbox}/infra/toolbox-env-setting-keys.cjs.js +0 -0
- /package/{level2/fd-toolbox → fd-toolbox}/infra/toolbox-env-setting-keys.js +0 -0
- /package/{level2/fd-toolbox → fd-toolbox}/logging/logging-constants.cjs.js +0 -0
- /package/{level2/fd-toolbox → fd-toolbox}/logging/logging-constants.js +0 -0
- /package/{level2/fd-toolbox → fd-toolbox}/odata/odata-enums.cjs.js +0 -0
- /package/{level2/fd-toolbox → fd-toolbox}/odata/odata-enums.js +0 -0
- /package/{level2/fd-toolbox → fd-toolbox}/resources/resource-names.cjs.js +0 -0
- /package/{level2/fd-toolbox → fd-toolbox}/resources/resource-names.js +0 -0
- /package/{level2/fd-toolbox → fd-toolbox}/routing/routes.cjs.js +0 -0
- /package/{level2/fd-toolbox → fd-toolbox}/routing/routes.js +0 -0
- /package/{level2/fd-toolbox-core → fd-toolbox-core}/constants/meta-constants.cjs.js +0 -0
- /package/{level2/fd-toolbox-core → fd-toolbox-core}/constants/meta-constants.js +0 -0
- /package/{level2/fd-toolbox-core → fd-toolbox-core}/constants/promises.cjs.js +0 -0
- /package/{level2/fd-toolbox-core → fd-toolbox-core}/constants/promises.js +0 -0
- /package/{level2/fd-toolbox-core → fd-toolbox-core}/enums/log-severities.cjs.js +0 -0
- /package/{level2/fd-toolbox-core → fd-toolbox-core}/enums/log-severities.js +0 -0
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
deleteResourceRoute,
|
|
3
|
-
getResourceRoute,
|
|
4
|
-
postResourceRoute,
|
|
5
|
-
putResourceRoute,
|
|
6
|
-
} from "@meta/server/basic-crud/crud-api";
|
|
7
|
-
|
|
8
|
-
export const PUT = putResourceRoute;
|
|
9
|
-
|
|
10
|
-
export const GET = getResourceRoute;
|
|
11
|
-
|
|
12
|
-
export const POST = postResourceRoute;
|
|
13
|
-
|
|
14
|
-
export const DELETE = deleteResourceRoute;
|
|
1
|
+
import {
|
|
2
|
+
deleteResourceRoute,
|
|
3
|
+
getResourceRoute,
|
|
4
|
+
postResourceRoute,
|
|
5
|
+
putResourceRoute,
|
|
6
|
+
} from "@meta/server/basic-crud/crud-api";
|
|
7
|
+
|
|
8
|
+
export const PUT = putResourceRoute;
|
|
9
|
+
|
|
10
|
+
export const GET = getResourceRoute;
|
|
11
|
+
|
|
12
|
+
export const POST = postResourceRoute;
|
|
13
|
+
|
|
14
|
+
export const DELETE = deleteResourceRoute;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { upsertResourceRoute } from "@meta/server/basic-crud/crud-api";
|
|
2
|
-
|
|
3
|
-
export const POST = upsertResourceRoute;
|
|
1
|
+
import { upsertResourceRoute } from "@meta/server/basic-crud/crud-api";
|
|
2
|
+
|
|
3
|
+
export const POST = upsertResourceRoute;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { logDeleteRoute, logGetRoute, logPostRoute } from "@server/fd/fd-toolbox-web/logging/log-api";
|
|
2
|
-
|
|
3
|
-
export const POST = logPostRoute;
|
|
4
|
-
|
|
5
|
-
export const GET = logGetRoute;
|
|
6
|
-
|
|
7
|
-
export const DELETE = logDeleteRoute;
|
|
1
|
+
import { logDeleteRoute, logGetRoute, logPostRoute } from "@server/fd/fd-toolbox-web/logging/log-api";
|
|
2
|
+
|
|
3
|
+
export const POST = logPostRoute;
|
|
4
|
+
|
|
5
|
+
export const GET = logGetRoute;
|
|
6
|
+
|
|
7
|
+
export const DELETE = logDeleteRoute;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
otheruserIdGetRoute,
|
|
3
|
-
otheruserIdPostRoute,
|
|
4
|
-
otheruserIdPutRoute,
|
|
5
|
-
otheruserIdDeleteRoute,
|
|
6
|
-
} from "@server/otheruser/id/otheruser-id-api";
|
|
7
|
-
|
|
8
|
-
export const GET = otheruserIdGetRoute;
|
|
9
|
-
|
|
10
|
-
export const POST = otheruserIdPostRoute;
|
|
11
|
-
|
|
12
|
-
export const PUT = otheruserIdPutRoute;
|
|
13
|
-
|
|
14
|
-
export const DELETE = otheruserIdDeleteRoute;
|
|
1
|
+
import {
|
|
2
|
+
otheruserIdGetRoute,
|
|
3
|
+
otheruserIdPostRoute,
|
|
4
|
+
otheruserIdPutRoute,
|
|
5
|
+
otheruserIdDeleteRoute,
|
|
6
|
+
} from "@server/otheruser/id/otheruser-id-api";
|
|
7
|
+
|
|
8
|
+
export const GET = otheruserIdGetRoute;
|
|
9
|
+
|
|
10
|
+
export const POST = otheruserIdPostRoute;
|
|
11
|
+
|
|
12
|
+
export const PUT = otheruserIdPutRoute;
|
|
13
|
+
|
|
14
|
+
export const DELETE = otheruserIdDeleteRoute;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { otheruserGetRoute, otheruserPostRoute, otheruserPutRoute } from "@server/otheruser/otheruser-api";
|
|
2
|
-
|
|
3
|
-
export const POST = otheruserPostRoute;
|
|
4
|
-
|
|
5
|
-
export const PUT = otheruserPutRoute;
|
|
6
|
-
|
|
7
|
-
export const GET = otheruserGetRoute;
|
|
1
|
+
import { otheruserGetRoute, otheruserPostRoute, otheruserPutRoute } from "@server/otheruser/otheruser-api";
|
|
2
|
+
|
|
3
|
+
export const POST = otheruserPostRoute;
|
|
4
|
+
|
|
5
|
+
export const PUT = otheruserPutRoute;
|
|
6
|
+
|
|
7
|
+
export const GET = otheruserGetRoute;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { forgotpasswordPostRoute } from "@server/password/forgotpassword/forgotpassword-api";
|
|
2
|
-
|
|
3
|
-
export const POST = forgotpasswordPostRoute;
|
|
1
|
+
import { forgotpasswordPostRoute } from "@server/password/forgotpassword/forgotpassword-api";
|
|
2
|
+
|
|
3
|
+
export const POST = forgotpasswordPostRoute;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { resetpasswordPostRoute } from "@server/password/resetpassword/resetpassword-api";
|
|
2
|
-
|
|
3
|
-
export const POST = resetpasswordPostRoute;
|
|
1
|
+
import { resetpasswordPostRoute } from "@server/password/resetpassword/resetpassword-api";
|
|
2
|
+
|
|
3
|
+
export const POST = resetpasswordPostRoute;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { paymentMethodGetRoute, paymentMethodPutRoute } from "@server/payment/method/payment-method-api";
|
|
2
|
-
|
|
3
|
-
export const PUT = paymentMethodPutRoute;
|
|
4
|
-
export const GET = paymentMethodGetRoute;
|
|
1
|
+
import { paymentMethodGetRoute, paymentMethodPutRoute } from "@server/payment/method/payment-method-api";
|
|
2
|
+
|
|
3
|
+
export const PUT = paymentMethodPutRoute;
|
|
4
|
+
export const GET = paymentMethodGetRoute;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { registerPaymentCustomerAndCreateWorkspaceSubscriptionApi } from "@server/payments/payments/payments-api";
|
|
2
|
-
|
|
3
|
-
export const POST = registerPaymentCustomerAndCreateWorkspaceSubscriptionApi;
|
|
1
|
+
import { registerPaymentCustomerAndCreateWorkspaceSubscriptionApi } from "@server/payments/payments/payments-api";
|
|
2
|
+
|
|
3
|
+
export const POST = registerPaymentCustomerAndCreateWorkspaceSubscriptionApi;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { paymentVerifyFailPostRoute } from "@server/payment/verify-fail/payment-verify-fail-api";
|
|
2
|
-
|
|
3
|
-
export const POST = paymentVerifyFailPostRoute;
|
|
1
|
+
import { paymentVerifyFailPostRoute } from "@server/payment/verify-fail/payment-verify-fail-api";
|
|
2
|
+
|
|
3
|
+
export const POST = paymentVerifyFailPostRoute;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { paymentVerifySuccessPostRoute } from "@server/payment/verify-success/payment-verify-success";
|
|
2
|
-
|
|
3
|
-
export const POST = paymentVerifySuccessPostRoute;
|
|
1
|
+
import { paymentVerifySuccessPostRoute } from "@server/payment/verify-success/payment-verify-success";
|
|
2
|
+
|
|
3
|
+
export const POST = paymentVerifySuccessPostRoute;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { preloadApi } from "@server/fd/fd-toolbox-web/controllers/preload-api";
|
|
2
|
-
|
|
3
|
-
export const GET = preloadApi;
|
|
1
|
+
import { preloadApi } from "@server/fd/fd-toolbox-web/controllers/preload-api";
|
|
2
|
+
|
|
3
|
+
export const GET = preloadApi;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { getSearchableResources } from "@meta/server/resources/searchable-resources";
|
|
2
|
-
import { apiBadRequestResponse, apiOkResponse } from "@meta/server/web/responses";
|
|
3
|
-
import { httpApiWrapper } from "@meta/server/web/http-api-wrapper";
|
|
4
|
-
|
|
5
|
-
export const GET = httpApiWrapper(async () => {
|
|
6
|
-
const resourceNames = Array.from((await getSearchableResources()).keys());
|
|
7
|
-
|
|
8
|
-
if (!resourceNames) return apiBadRequestResponse([]);
|
|
9
|
-
|
|
10
|
-
return apiOkResponse(resourceNames);
|
|
11
|
-
});
|
|
1
|
+
import { getSearchableResources } from "@meta/server/resources/searchable-resources";
|
|
2
|
+
import { apiBadRequestResponse, apiOkResponse } from "@meta/server/web/responses";
|
|
3
|
+
import { httpApiWrapper } from "@meta/server/web/http-api-wrapper";
|
|
4
|
+
|
|
5
|
+
export const GET = httpApiWrapper(async () => {
|
|
6
|
+
const resourceNames = Array.from((await getSearchableResources()).keys());
|
|
7
|
+
|
|
8
|
+
if (!resourceNames) return apiBadRequestResponse([]);
|
|
9
|
+
|
|
10
|
+
return apiOkResponse(resourceNames);
|
|
11
|
+
});
|
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
import { SearchResult } from "@fd-app-toolbox/resources/search-result.resource";
|
|
2
|
-
import { searchResultParams } from "@fd-toolbox/constants/search-result-constants";
|
|
3
|
-
import { getSearchableResourceResult, getSearchScreensResult } from "@server/search/search-result";
|
|
4
|
-
import { SearchableResourceResult } from "@fd-app-toolbox/models/searchable-resource-result";
|
|
5
|
-
import { ScreensResult } from "@fd-app-toolbox/models/screens-result";
|
|
6
|
-
import { httpApiWrapper } from "@meta/server/web/http-api-wrapper";
|
|
7
|
-
import { apiOkResponse } from "@meta/server/web/responses";
|
|
8
|
-
import { isPromiseFulfilled } from "@fd-toolbox/lib/utils";
|
|
9
|
-
|
|
10
|
-
export const GET = httpApiWrapper(async (req: Request) => {
|
|
11
|
-
const url = new URL(req.url);
|
|
12
|
-
const querySearch = url.searchParams.get(searchResultParams.querySearch) ?? "";
|
|
13
|
-
const filterSearchParam = url.searchParams.get(searchResultParams.filterSearch);
|
|
14
|
-
|
|
15
|
-
const filterSearch = filterSearchParam ? filterSearchParam.split(",") : [];
|
|
16
|
-
|
|
17
|
-
const searchResourceResultPromise = getSearchableResourceResult(
|
|
18
|
-
querySearch,
|
|
19
|
-
filterSearch,
|
|
20
|
-
) satisfies Promise<SearchableResourceResult[]>;
|
|
21
|
-
|
|
22
|
-
const searchScreensResultPromise = getSearchScreensResult(querySearch, filterSearch) satisfies Promise<
|
|
23
|
-
ScreensResult[]
|
|
24
|
-
>;
|
|
25
|
-
|
|
26
|
-
const [searchResourceResult, searchScreensResult] = await Promise.allSettled([
|
|
27
|
-
searchResourceResultPromise,
|
|
28
|
-
searchScreensResultPromise,
|
|
29
|
-
]);
|
|
30
|
-
|
|
31
|
-
return apiOkResponse<SearchResult>({
|
|
32
|
-
searchableResources: isPromiseFulfilled(searchResourceResult) ? searchResourceResult.value : [],
|
|
33
|
-
screens: isPromiseFulfilled(searchScreensResult) ? searchScreensResult.value : [],
|
|
34
|
-
});
|
|
35
|
-
});
|
|
1
|
+
import { SearchResult } from "@fd-app-toolbox/resources/search-result.resource";
|
|
2
|
+
import { searchResultParams } from "@fd-toolbox/constants/search-result-constants";
|
|
3
|
+
import { getSearchableResourceResult, getSearchScreensResult } from "@server/search/search-result";
|
|
4
|
+
import { SearchableResourceResult } from "@fd-app-toolbox/models/searchable-resource-result";
|
|
5
|
+
import { ScreensResult } from "@fd-app-toolbox/models/screens-result";
|
|
6
|
+
import { httpApiWrapper } from "@meta/server/web/http-api-wrapper";
|
|
7
|
+
import { apiOkResponse } from "@meta/server/web/responses";
|
|
8
|
+
import { isPromiseFulfilled } from "@fd-toolbox/lib/utils";
|
|
9
|
+
|
|
10
|
+
export const GET = httpApiWrapper(async (req: Request) => {
|
|
11
|
+
const url = new URL(req.url);
|
|
12
|
+
const querySearch = url.searchParams.get(searchResultParams.querySearch) ?? "";
|
|
13
|
+
const filterSearchParam = url.searchParams.get(searchResultParams.filterSearch);
|
|
14
|
+
|
|
15
|
+
const filterSearch = filterSearchParam ? filterSearchParam.split(",") : [];
|
|
16
|
+
|
|
17
|
+
const searchResourceResultPromise = getSearchableResourceResult(
|
|
18
|
+
querySearch,
|
|
19
|
+
filterSearch,
|
|
20
|
+
) satisfies Promise<SearchableResourceResult[]>;
|
|
21
|
+
|
|
22
|
+
const searchScreensResultPromise = getSearchScreensResult(querySearch, filterSearch) satisfies Promise<
|
|
23
|
+
ScreensResult[]
|
|
24
|
+
>;
|
|
25
|
+
|
|
26
|
+
const [searchResourceResult, searchScreensResult] = await Promise.allSettled([
|
|
27
|
+
searchResourceResultPromise,
|
|
28
|
+
searchScreensResultPromise,
|
|
29
|
+
]);
|
|
30
|
+
|
|
31
|
+
return apiOkResponse<SearchResult>({
|
|
32
|
+
searchableResources: isPromiseFulfilled(searchResourceResult) ? searchResourceResult.value : [],
|
|
33
|
+
screens: isPromiseFulfilled(searchScreensResult) ? searchScreensResult.value : [],
|
|
34
|
+
});
|
|
35
|
+
});
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { signInApi } from "@server/auth/sign-in-api";
|
|
2
|
-
|
|
3
|
-
export const POST = signInApi;
|
|
1
|
+
import { signInApi } from "@server/auth/sign-in-api";
|
|
2
|
+
|
|
3
|
+
export const POST = signInApi;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { signOutGetRoute } from "@server/auth/sign-out-api";
|
|
2
|
-
|
|
3
|
-
export const GET = signOutGetRoute;
|
|
1
|
+
import { signOutGetRoute } from "@server/auth/sign-out-api";
|
|
2
|
+
|
|
3
|
+
export const GET = signOutGetRoute;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { signUpApi } from "@server/auth/sign-up-api";
|
|
2
|
-
|
|
3
|
-
export const POST = signUpApi;
|
|
1
|
+
import { signUpApi } from "@server/auth/sign-up-api";
|
|
2
|
+
|
|
3
|
+
export const POST = signUpApi;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { subscriptionCancelPostRoute } from "@server/subscription/cancel/subscription-cancel-api";
|
|
2
|
-
|
|
3
|
-
export const POST = subscriptionCancelPostRoute;
|
|
1
|
+
import { subscriptionCancelPostRoute } from "@server/subscription/cancel/subscription-cancel-api";
|
|
2
|
+
|
|
3
|
+
export const POST = subscriptionCancelPostRoute;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { subscriptionCreatePostRoute } from "@server/subscription/create/subscription-create-api";
|
|
2
|
-
|
|
3
|
-
export const POST = subscriptionCreatePostRoute;
|
|
1
|
+
import { subscriptionCreatePostRoute } from "@server/subscription/create/subscription-create-api";
|
|
2
|
+
|
|
3
|
+
export const POST = subscriptionCreatePostRoute;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { subscriptionUpdatePostRoute } from "@server/subscription/update/subscription-update-api";
|
|
2
|
-
|
|
3
|
-
export const POST = subscriptionUpdatePostRoute;
|
|
1
|
+
import { subscriptionUpdatePostRoute } from "@server/subscription/update/subscription-update-api";
|
|
2
|
+
|
|
3
|
+
export const POST = subscriptionUpdatePostRoute;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { uiMetaRoute } from "@meta/server/ui/ui-metas-api";
|
|
2
|
-
|
|
3
|
-
export const GET = uiMetaRoute;
|
|
1
|
+
import { uiMetaRoute } from "@meta/server/ui/ui-metas-api";
|
|
2
|
+
|
|
3
|
+
export const GET = uiMetaRoute;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { uiMetasRoute } from "@meta/server/ui/ui-metas-api";
|
|
2
|
-
|
|
3
|
-
export const GET = uiMetasRoute;
|
|
1
|
+
import { uiMetasRoute } from "@meta/server/ui/ui-metas-api";
|
|
2
|
+
|
|
3
|
+
export const GET = uiMetasRoute;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { permissionRoute } from "@server/fd/fd-toolbox-web/permissions/permission-api";
|
|
2
|
-
|
|
3
|
-
export const GET = permissionRoute;
|
|
1
|
+
import { permissionRoute } from "@server/fd/fd-toolbox-web/permissions/permission-api";
|
|
2
|
+
|
|
3
|
+
export const GET = permissionRoute;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { visibleWorkspaceGetRoute, visibleWorkspacePostRoute } from "@server/workspace/visible-workspace-api";
|
|
2
|
-
|
|
3
|
-
export const POST = visibleWorkspacePostRoute;
|
|
4
|
-
|
|
5
|
-
export const GET = visibleWorkspaceGetRoute;
|
|
1
|
+
import { visibleWorkspaceGetRoute, visibleWorkspacePostRoute } from "@server/workspace/visible-workspace-api";
|
|
2
|
+
|
|
3
|
+
export const POST = visibleWorkspacePostRoute;
|
|
4
|
+
|
|
5
|
+
export const GET = visibleWorkspaceGetRoute;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { workspaceGetRoute, workspacePostRoute } from "@server/workspace/workspace-api";
|
|
2
|
-
|
|
3
|
-
export const GET = workspaceGetRoute;
|
|
4
|
-
|
|
5
|
-
export const POST = workspacePostRoute;
|
|
1
|
+
import { workspaceGetRoute, workspacePostRoute } from "@server/workspace/workspace-api";
|
|
2
|
+
|
|
3
|
+
export const GET = workspaceGetRoute;
|
|
4
|
+
|
|
5
|
+
export const POST = workspacePostRoute;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { httpWrapper } from "@server/web/http-wrapper";
|
|
2
|
-
import DashboardPage from "@client/pages/dashboard-page/
|
|
3
|
-
|
|
4
|
-
const Page = httpWrapper(async () => {
|
|
5
|
-
return <DashboardPage />;
|
|
6
|
-
});
|
|
7
|
-
|
|
8
|
-
export default Page;
|
|
1
|
+
import { httpWrapper } from "@server/web/http-wrapper";
|
|
2
|
+
import DashboardPage from "@client/pages/dashboard-page/DashboardPage";
|
|
3
|
+
|
|
4
|
+
const Page = httpWrapper(async () => {
|
|
5
|
+
return <DashboardPage />;
|
|
6
|
+
});
|
|
7
|
+
|
|
8
|
+
export default Page;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { httpWrapper } from "@server/web/http-wrapper";
|
|
2
|
-
import DynamicLayoutPage from "@client/pages/dynamic-layout-page/DynamicLayoutPage";
|
|
3
|
-
|
|
4
|
-
const Page = httpWrapper(async () => {
|
|
5
|
-
return <DynamicLayoutPage />;
|
|
6
|
-
});
|
|
7
|
-
|
|
8
|
-
export default Page;
|
|
1
|
+
import { httpWrapper } from "@server/web/http-wrapper";
|
|
2
|
+
import DynamicLayoutPage from "@client/pages/dynamic-layout-page/DynamicLayoutPage";
|
|
3
|
+
|
|
4
|
+
const Page = httpWrapper(async () => {
|
|
5
|
+
return <DynamicLayoutPage />;
|
|
6
|
+
});
|
|
7
|
+
|
|
8
|
+
export default Page;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { httpWrapper } from "@server/web/http-wrapper";
|
|
2
|
-
import EditUserByIdPage from "@client/pages/edit-user-by-id-page/EditUserByIdPage";
|
|
3
|
-
|
|
4
|
-
const Page = httpWrapper(async ({ params }) => {
|
|
5
|
-
return <EditUserByIdPage params={params} />;
|
|
6
|
-
});
|
|
7
|
-
|
|
8
|
-
export default Page;
|
|
1
|
+
import { httpWrapper } from "@server/web/http-wrapper";
|
|
2
|
+
import EditUserByIdPage from "@client/pages/edit-user-by-id-page/EditUserByIdPage";
|
|
3
|
+
|
|
4
|
+
const Page = httpWrapper(async ({ params }) => {
|
|
5
|
+
return <EditUserByIdPage params={params} />;
|
|
6
|
+
});
|
|
7
|
+
|
|
8
|
+
export default Page;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { httpWrapper } from "@server/web/http-wrapper";
|
|
2
|
-
import EditUserPage from "@client/pages/edit-user-page/EditUserPage";
|
|
3
|
-
|
|
4
|
-
const Page = httpWrapper(async () => {
|
|
5
|
-
return <EditUserPage />;
|
|
6
|
-
});
|
|
7
|
-
|
|
8
|
-
export default Page;
|
|
1
|
+
import { httpWrapper } from "@server/web/http-wrapper";
|
|
2
|
+
import EditUserPage from "@client/pages/edit-user-page/EditUserPage";
|
|
3
|
+
|
|
4
|
+
const Page = httpWrapper(async () => {
|
|
5
|
+
return <EditUserPage />;
|
|
6
|
+
});
|
|
7
|
+
|
|
8
|
+
export default Page;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { PrivateLayout } from "@fd-app-toolbox/server/layout/private-layout/PrivateLayout";
|
|
2
|
-
|
|
3
|
-
export default async function Layout({ children }: { children: React.ReactNode }) {
|
|
4
|
-
return <PrivateLayout>{children}</PrivateLayout>;
|
|
5
|
-
}
|
|
1
|
+
import { PrivateLayout } from "@fd-app-toolbox/server/layout/private-layout/PrivateLayout";
|
|
2
|
+
|
|
3
|
+
export default async function Layout({ children }: { children: React.ReactNode }) {
|
|
4
|
+
return <PrivateLayout>{children}</PrivateLayout>;
|
|
5
|
+
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { httpWrapper } from "@server/web/http-wrapper";
|
|
2
|
-
import LeadsViewPage from "@client/pages/leads-viw-page/LeadsViewPage";
|
|
3
|
-
|
|
4
|
-
const Page = httpWrapper(async () => {
|
|
5
|
-
return <LeadsViewPage />;
|
|
6
|
-
});
|
|
7
|
-
|
|
8
|
-
export default Page;
|
|
1
|
+
import { httpWrapper } from "@server/web/http-wrapper";
|
|
2
|
+
import LeadsViewPage from "@client/pages/leads-viw-page/LeadsViewPage";
|
|
3
|
+
|
|
4
|
+
const Page = httpWrapper(async () => {
|
|
5
|
+
return <LeadsViewPage />;
|
|
6
|
+
});
|
|
7
|
+
|
|
8
|
+
export default Page;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import PaymentPlanPage from "@client/pages/payment-plan-page/PaymentPlanPage";
|
|
2
|
-
import { httpWrapper } from "@server/web/http-wrapper";
|
|
3
|
-
|
|
4
|
-
const Page = httpWrapper(async () => {
|
|
5
|
-
return <PaymentPlanPage />;
|
|
6
|
-
});
|
|
7
|
-
|
|
8
|
-
export default Page;
|
|
1
|
+
import PaymentPlanPage from "@client/pages/payment-plan-page/PaymentPlanPage";
|
|
2
|
+
import { httpWrapper } from "@server/web/http-wrapper";
|
|
3
|
+
|
|
4
|
+
const Page = httpWrapper(async () => {
|
|
5
|
+
return <PaymentPlanPage />;
|
|
6
|
+
});
|
|
7
|
+
|
|
8
|
+
export default Page;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { httpWrapper } from "@server/web/http-wrapper";
|
|
2
|
-
import PreloadPage from "@client/pages/preload-page/PreloadPage";
|
|
3
|
-
|
|
4
|
-
const Page = httpWrapper(async () => {
|
|
5
|
-
return <PreloadPage />;
|
|
6
|
-
});
|
|
7
|
-
|
|
8
|
-
export default Page;
|
|
1
|
+
import { httpWrapper } from "@server/web/http-wrapper";
|
|
2
|
+
import PreloadPage from "@client/pages/preload-page/PreloadPage";
|
|
3
|
+
|
|
4
|
+
const Page = httpWrapper(async () => {
|
|
5
|
+
return <PreloadPage />;
|
|
6
|
+
});
|
|
7
|
+
|
|
8
|
+
export default Page;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import StatusBoardPage from "@client/pages/status-board-page/StatusBoardPage";
|
|
2
|
-
import { httpWrapper } from "@server/web/http-wrapper";
|
|
3
|
-
|
|
4
|
-
const Page = httpWrapper(async () => {
|
|
5
|
-
return <StatusBoardPage />;
|
|
6
|
-
});
|
|
7
|
-
|
|
8
|
-
export default Page;
|
|
1
|
+
import StatusBoardPage from "@client/pages/status-board-page/StatusBoardPage";
|
|
2
|
+
import { httpWrapper } from "@server/web/http-wrapper";
|
|
3
|
+
|
|
4
|
+
const Page = httpWrapper(async () => {
|
|
5
|
+
return <StatusBoardPage />;
|
|
6
|
+
});
|
|
7
|
+
|
|
8
|
+
export default Page;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import UserListPage from "@client/pages/user-list-page/UserListPage";
|
|
2
|
-
import { httpWrapper } from "@server/web/http-wrapper";
|
|
3
|
-
|
|
4
|
-
const Page = httpWrapper(async () => {
|
|
5
|
-
return <UserListPage />;
|
|
6
|
-
});
|
|
7
|
-
|
|
8
|
-
export default Page;
|
|
1
|
+
import UserListPage from "@client/pages/user-list-page/UserListPage";
|
|
2
|
+
import { httpWrapper } from "@server/web/http-wrapper";
|
|
3
|
+
|
|
4
|
+
const Page = httpWrapper(async () => {
|
|
5
|
+
return <UserListPage />;
|
|
6
|
+
});
|
|
7
|
+
|
|
8
|
+
export default Page;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import ViewPage from "@client/pages/view-page/ViewPage";
|
|
2
|
-
import { httpWrapper } from "@server/web/http-wrapper";
|
|
3
|
-
|
|
4
|
-
const Page = httpWrapper(async ({ searchParams }) => {
|
|
5
|
-
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import ViewPage from "@client/pages/view-page/ViewPage";
|
|
2
|
+
import { httpWrapper } from "@server/web/http-wrapper";
|
|
3
|
+
|
|
4
|
+
const Page = httpWrapper(async ({ searchParams }) => {
|
|
5
|
+
const { id, name, resource } = await searchParams;
|
|
6
|
+
return <ViewPage id={id} name={name} resource={resource} />;
|
|
7
|
+
});
|
|
8
|
+
|
|
9
|
+
export default Page;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { httpWrapper } from "@server/web/http-wrapper";
|
|
2
|
-
const Page = httpWrapper(
|
|
3
|
-
async () => {
|
|
4
|
-
return null;
|
|
5
|
-
},
|
|
6
|
-
{ isAnonymous: true },
|
|
7
|
-
);
|
|
8
|
-
|
|
9
|
-
export default Page;
|
|
1
|
+
import { httpWrapper } from "@server/web/http-wrapper";
|
|
2
|
+
const Page = httpWrapper(
|
|
3
|
+
async () => {
|
|
4
|
+
return null;
|
|
5
|
+
},
|
|
6
|
+
{ isAnonymous: true },
|
|
7
|
+
);
|
|
8
|
+
|
|
9
|
+
export default Page;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { httpWrapper } from "@server/web/http-wrapper";
|
|
2
|
-
import EditPasswordPage from "@client/pages/edit-password-page/EditPasswordPage";
|
|
3
|
-
|
|
4
|
-
const Page = httpWrapper(async () => {
|
|
5
|
-
return <EditPasswordPage />;
|
|
6
|
-
});
|
|
7
|
-
|
|
8
|
-
export default Page;
|
|
1
|
+
import { httpWrapper } from "@server/web/http-wrapper";
|
|
2
|
+
import EditPasswordPage from "@client/pages/edit-password-page/EditPasswordPage";
|
|
3
|
+
|
|
4
|
+
const Page = httpWrapper(async () => {
|
|
5
|
+
return <EditPasswordPage />;
|
|
6
|
+
});
|
|
7
|
+
|
|
8
|
+
export default Page;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import ForgotPasswordPage from "@client/pages/forgot-password-page/ForgotPasswordPage";
|
|
2
|
-
import { httpWrapper } from "@server/web/http-wrapper";
|
|
3
|
-
|
|
4
|
-
export const dynamic = "force-dynamic";
|
|
5
|
-
|
|
6
|
-
const Page = httpWrapper(
|
|
7
|
-
async () => {
|
|
8
|
-
return <ForgotPasswordPage />;
|
|
9
|
-
},
|
|
10
|
-
{ isAnonymous: true },
|
|
11
|
-
);
|
|
12
|
-
|
|
13
|
-
export default Page;
|
|
1
|
+
import ForgotPasswordPage from "@client/pages/forgot-password-page/ForgotPasswordPage";
|
|
2
|
+
import { httpWrapper } from "@server/web/http-wrapper";
|
|
3
|
+
|
|
4
|
+
export const dynamic = "force-dynamic";
|
|
5
|
+
|
|
6
|
+
const Page = httpWrapper(
|
|
7
|
+
async () => {
|
|
8
|
+
return <ForgotPasswordPage />;
|
|
9
|
+
},
|
|
10
|
+
{ isAnonymous: true },
|
|
11
|
+
);
|
|
12
|
+
|
|
13
|
+
export default Page;
|