diff --git a/dsql-app/.local_dist/BUILD_ID b/dsql-app/.local_dist/BUILD_ID index f2c3e23..96b98fd 100644 --- a/dsql-app/.local_dist/BUILD_ID +++ b/dsql-app/.local_dist/BUILD_ID @@ -1 +1 @@ -YuXZx16H1DusDjnsSaCji \ No newline at end of file +Vwi6iXhX7A60Ca2R9JTQV \ No newline at end of file diff --git a/dsql-app/.local_dist/build-manifest.json b/dsql-app/.local_dist/build-manifest.json index cfbd648..b3f06eb 100644 --- a/dsql-app/.local_dist/build-manifest.json +++ b/dsql-app/.local_dist/build-manifest.json @@ -5,8 +5,8 @@ "devFiles": [], "ampDevFiles": [], "lowPriorityFiles": [ - "static/YuXZx16H1DusDjnsSaCji/_buildManifest.js", - "static/YuXZx16H1DusDjnsSaCji/_ssgManifest.js" + "static/Vwi6iXhX7A60Ca2R9JTQV/_buildManifest.js", + "static/Vwi6iXhX7A60Ca2R9JTQV/_ssgManifest.js" ], "rootMainFiles": [], "rootMainFilesTree": {}, @@ -117,7 +117,7 @@ "static/chunks/8261-3c3582fc434ee275.js", "static/chunks/7391-b72414be460cf0f0.js", "static/chunks/8076-c34ce8d8512255e7.js", - "static/chunks/3867-6732c13e333b30b2.js", + "static/chunks/3867-14d00e04cb2d431b.js", "static/chunks/pages/admin/[user_id]/databases/[single]/edit-database-1f2bf0df5f51fa43.js" ], "/admin/[user_id]/databases/[single]/schema": [ @@ -162,10 +162,10 @@ "static/chunks/8076-c34ce8d8512255e7.js", "static/chunks/9268-6ca91a807cecf2b4.js", "static/chunks/2438-aa7e9f2130cd81f0.js", - "static/chunks/8311-ae577d4bb030d416.js", + "static/chunks/8311-87e8d6ec01c2e05f.js", "static/chunks/1580-68f706d212c5eb63.js", "static/chunks/6830-80ccce098977dfd6.js", - "static/chunks/4403-fc19b6af6ca4b3fe.js", + "static/chunks/4403-dd72a46996d6c5f9.js", "static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]-f34ee3fd9517cd2c.js" ], "/admin/[user_id]/databases/[single]/tables/[single_table]/edit-table": [ @@ -179,7 +179,7 @@ "static/chunks/8076-c34ce8d8512255e7.js", "static/chunks/9268-6ca91a807cecf2b4.js", "static/chunks/2438-aa7e9f2130cd81f0.js", - "static/chunks/8311-ae577d4bb030d416.js", + "static/chunks/8311-87e8d6ec01c2e05f.js", "static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]/edit-table-38aa98661e043781.js" ], "/admin/[user_id]/databases/[single]/tables/[single_table]/entries": [ @@ -195,7 +195,7 @@ "static/chunks/2438-aa7e9f2130cd81f0.js", "static/chunks/1580-68f706d212c5eb63.js", "static/chunks/6830-80ccce098977dfd6.js", - "static/chunks/4403-fc19b6af6ca4b3fe.js", + "static/chunks/4403-dd72a46996d6c5f9.js", "static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries-e611979837269e2d.js" ], "/admin/[user_id]/databases/[single]/tables/[single_table]/entries/[single_entry]": [ @@ -235,7 +235,7 @@ "static/chunks/8076-c34ce8d8512255e7.js", "static/chunks/9268-6ca91a807cecf2b4.js", "static/chunks/2438-aa7e9f2130cd81f0.js", - "static/chunks/8311-ae577d4bb030d416.js", + "static/chunks/8311-87e8d6ec01c2e05f.js", "static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]/fields-ab177e1e5adacaef.js" ], "/admin/[user_id]/databases/[single]/tables/add-table": [ @@ -248,7 +248,7 @@ "static/chunks/7391-b72414be460cf0f0.js", "static/chunks/8076-c34ce8d8512255e7.js", "static/chunks/9268-6ca91a807cecf2b4.js", - "static/chunks/8311-ae577d4bb030d416.js", + "static/chunks/8311-87e8d6ec01c2e05f.js", "static/chunks/pages/admin/[user_id]/databases/[single]/tables/add-table-e39fba476a9e1ad8.js" ], "/admin/[user_id]/databases/[single]/users": [ @@ -299,7 +299,7 @@ "static/chunks/7391-b72414be460cf0f0.js", "static/chunks/8076-c34ce8d8512255e7.js", "static/chunks/9268-6ca91a807cecf2b4.js", - "static/chunks/pages/admin/[user_id]/databases/[single]/users/add-user-6d9f5bb6c681b082.js" + "static/chunks/pages/admin/[user_id]/databases/[single]/users/add-user-4954d7d1ed514dc9.js" ], "/admin/[user_id]/databases/add-database": [ "static/chunks/webpack-5381863dc66a9c32.js", @@ -307,7 +307,7 @@ "static/chunks/main-96e9b4333635008a.js", "static/chunks/8261-3c3582fc434ee275.js", "static/chunks/7391-b72414be460cf0f0.js", - "static/chunks/3867-6732c13e333b30b2.js", + "static/chunks/3867-14d00e04cb2d431b.js", "static/chunks/pages/admin/[user_id]/databases/add-database-276c7177adf6be55.js" ], "/admin/[user_id]/media": [ diff --git a/dsql-app/.local_dist/cache/config.json b/dsql-app/.local_dist/cache/config.json index bb1d432..0cca535 100644 --- a/dsql-app/.local_dist/cache/config.json +++ b/dsql-app/.local_dist/cache/config.json @@ -1,7 +1,7 @@ { "telemetry": { - "notifiedAt": "1736835503733", - "anonymousId": "d8a5792aca5b6269f0327eb47e58765b69c7dc609ce966f506f1b45bece43fbd", - "salt": "1ae110675d99367b74078126931e5f50" + "notifiedAt": "1736836792870", + "anonymousId": "12c333b099226b7f06961f90752c741fa77dd65469741f760bc699718e048ad1", + "salt": "fe4ed0064e0b02598414a60bf810fba6" } } \ No newline at end of file diff --git a/dsql-app/.local_dist/cache/webpack/client-production/0.pack b/dsql-app/.local_dist/cache/webpack/client-production/0.pack index 95577de..8056048 100644 Binary files a/dsql-app/.local_dist/cache/webpack/client-production/0.pack and b/dsql-app/.local_dist/cache/webpack/client-production/0.pack differ diff --git a/dsql-app/.local_dist/cache/webpack/client-production/index.pack b/dsql-app/.local_dist/cache/webpack/client-production/index.pack index 455ef3b..5ca4324 100644 Binary files a/dsql-app/.local_dist/cache/webpack/client-production/index.pack and b/dsql-app/.local_dist/cache/webpack/client-production/index.pack differ diff --git a/dsql-app/.local_dist/cache/webpack/edge-server-production/index.pack b/dsql-app/.local_dist/cache/webpack/edge-server-production/index.pack index 8596c73..fa81bf2 100644 Binary files a/dsql-app/.local_dist/cache/webpack/edge-server-production/index.pack and b/dsql-app/.local_dist/cache/webpack/edge-server-production/index.pack differ diff --git a/dsql-app/.local_dist/cache/webpack/server-production/0.pack b/dsql-app/.local_dist/cache/webpack/server-production/0.pack index a0e0c36..b3c097e 100644 Binary files a/dsql-app/.local_dist/cache/webpack/server-production/0.pack and b/dsql-app/.local_dist/cache/webpack/server-production/0.pack differ diff --git a/dsql-app/.local_dist/cache/webpack/server-production/index.pack b/dsql-app/.local_dist/cache/webpack/server-production/index.pack index dfd05a6..f0548c1 100644 Binary files a/dsql-app/.local_dist/cache/webpack/server-production/index.pack and b/dsql-app/.local_dist/cache/webpack/server-production/index.pack differ diff --git a/dsql-app/.local_dist/next-minimal-server.js.nft.json b/dsql-app/.local_dist/next-minimal-server.js.nft.json index 6774250..922dcea 100644 --- a/dsql-app/.local_dist/next-minimal-server.js.nft.json +++ b/dsql-app/.local_dist/next-minimal-server.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../node_modules/styled-jsx/index.js","../node_modules/styled-jsx/package.json","../node_modules/react/package.json","../node_modules/styled-jsx/dist/index/index.js","../node_modules/react/index.js","../node_modules/client-only/package.json","../node_modules/react/cjs/react.production.min.js","../node_modules/client-only/index.js","../node_modules/styled-jsx/style.js","../node_modules/next/dist/compiled/next-server/server.runtime.prod.js","../node_modules/next/package.json","../node_modules/next/dist/lib/is-error.js","../node_modules/next/dist/server/body-streams.js","../node_modules/next/dist/lib/constants.js","../node_modules/next/dist/shared/lib/constants.js","../node_modules/next/dist/server/web/utils.js","../node_modules/next/dist/client/components/app-router-headers.js","../node_modules/next/dist/server/lib/trace/tracer.js","../node_modules/next/dist/server/lib/trace/constants.js","../node_modules/next/dist/shared/lib/is-plain-object.js","../node_modules/next/dist/lib/picocolors.js","../node_modules/next/dist/shared/lib/modern-browserslist-target.js","../node_modules/next/dist/shared/lib/is-thenable.js","../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../node_modules/next/dist/server/patch-error-inspect.js","../node_modules/next/dist/shared/lib/runtime-config.external.js","../node_modules/next/dist/server/after/builtin-request-context.js","../node_modules/next/dist/server/app-render/work-async-storage.external.js","../node_modules/@swc/helpers/_/_interop_require_default/package.json","../node_modules/next/dist/compiled/jsonwebtoken/package.json","../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../node_modules/@swc/helpers/package.json","../node_modules/next/dist/server/app-render/async-local-storage.js","../node_modules/next/dist/compiled/jsonwebtoken/index.js","../node_modules/next/dist/compiled/ws/package.json","../node_modules/next/dist/shared/lib/error-source.js","../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../node_modules/next/dist/client/components/react-dev-overlay/server/middleware-webpack.js","../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../node_modules/next/dist/client/components/react-dev-overlay/server/shared.js","../node_modules/next/dist/compiled/ws/index.js","../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../node_modules/next/dist/compiled/source-map/package.json","../node_modules/next/dist/shared/lib/is-internal.js","../node_modules/next/dist/compiled/source-map/source-map.js","../node_modules/next/dist/compiled/debug/package.json","../node_modules/next/dist/client/components/react-dev-overlay/internal/helpers/launchEditor.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/helpers/get-source-map-from-file.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/helpers/node-stack-frames.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/helpers/parse-stack.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/helpers/webpack-module-path.js","../node_modules/next/dist/lib/semver-noop.js","../node_modules/next/dist/compiled/debug/index.js","../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../node_modules/next/dist/compiled/babel/code-frame.js","../node_modules/next/dist/compiled/source-map08/package.json","../node_modules/next/dist/compiled/babel/package.json","../node_modules/next/dist/client/components/is-hydration-error.js","../node_modules/next/dist/compiled/source-map08/source-map.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/helpers/get-source-map-url.js","../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../node_modules/next/dist/compiled/babel/bundle.js","../node_modules/next/dist/compiled/shell-quote/package.json","../node_modules/next/dist/compiled/data-uri-to-buffer/package.json","../node_modules/next/dist/compiled/stacktrace-parser/package.json","../node_modules/next/dist/compiled/shell-quote/index.js","../node_modules/next/dist/compiled/data-uri-to-buffer/index.js","../node_modules/next/dist/compiled/stacktrace-parser/stack-trace-parser.cjs.js","../node_modules/next/dist/compiled/browserslist/package.json","../node_modules/next/dist/compiled/json5/package.json","../node_modules/next/dist/compiled/babel-packages/package.json","../node_modules/next/dist/compiled/semver/package.json","../node_modules/next/dist/compiled/lru-cache/package.json","../node_modules/next/dist/compiled/browserslist/index.js","../node_modules/next/dist/compiled/babel-packages/packages-bundle.js","../node_modules/next/dist/compiled/json5/index.js","../node_modules/next/dist/compiled/semver/index.js","../node_modules/next/dist/compiled/lru-cache/index.js","../node_modules/caniuse-lite/dist/unpacker/agents.js","../node_modules/caniuse-lite/dist/unpacker/feature.js","../node_modules/caniuse-lite/dist/unpacker/region.js","../node_modules/next/dist/compiled/babel/core.js","../node_modules/next/dist/compiled/babel/parser.js","../node_modules/caniuse-lite/package.json","../node_modules/next/dist/compiled/babel/traverse.js","../node_modules/next/dist/compiled/babel/types.js","../node_modules/caniuse-lite/data/agents.js","../node_modules/caniuse-lite/dist/unpacker/browsers.js","../node_modules/caniuse-lite/dist/unpacker/browserVersions.js","../node_modules/caniuse-lite/dist/lib/statuses.js","../node_modules/caniuse-lite/dist/lib/supported.js","../node_modules/caniuse-lite/data/browserVersions.js","../node_modules/caniuse-lite/data/browsers.js","../node_modules/next/dist/server/route-modules/app-page/vendored/contexts/server-inserted-html.js","../node_modules/next/dist/server/route-modules/app-page/vendored/contexts/router-context.js","../node_modules/next/dist/server/route-modules/app-page/vendored/contexts/head-manager-context.js","../node_modules/next/dist/server/route-modules/app-page/vendored/contexts/image-config-context.js","../node_modules/next/dist/server/route-modules/app-page/vendored/contexts/hooks-client-context.js","../node_modules/next/dist/server/route-modules/app-page/vendored/contexts/entrypoints.js","../node_modules/next/dist/server/route-modules/app-page/vendored/contexts/app-router-context.js","../node_modules/next/dist/server/route-modules/app-page/vendored/contexts/amp-context.js","../node_modules/next/dist/server/route-modules/app-page/module.compiled.js","../node_modules/next/dist/server/route-modules/pages/vendored/contexts/server-inserted-html.js","../node_modules/next/dist/server/route-modules/pages/vendored/contexts/router-context.js","../node_modules/next/dist/server/route-modules/pages/vendored/contexts/html-context.js","../node_modules/next/dist/server/route-modules/pages/vendored/contexts/head-manager-context.js","../node_modules/next/dist/server/route-modules/pages/vendored/contexts/image-config-context.js","../node_modules/next/dist/server/route-modules/pages/vendored/contexts/loadable.js","../node_modules/next/dist/server/route-modules/pages/vendored/contexts/hooks-client-context.js","../node_modules/next/dist/server/route-modules/pages/vendored/contexts/entrypoints.js","../node_modules/next/dist/server/route-modules/pages/vendored/contexts/app-router-context.js","../node_modules/next/dist/server/route-modules/pages/vendored/contexts/amp-context.js","../node_modules/next/dist/server/route-modules/pages/vendored/contexts/loadable-context.js","../node_modules/next/dist/server/route-modules/pages/module.compiled.js"]} \ No newline at end of file +{"version":1,"files":["../node_modules/styled-jsx/index.js","../node_modules/styled-jsx/package.json","../node_modules/react/package.json","../node_modules/styled-jsx/dist/index/index.js","../node_modules/react/index.js","../node_modules/client-only/package.json","../node_modules/react/cjs/react.production.min.js","../node_modules/client-only/index.js","../node_modules/styled-jsx/style.js","../node_modules/next/dist/compiled/next-server/server.runtime.prod.js","../node_modules/next/package.json","../node_modules/next/dist/lib/is-error.js","../node_modules/next/dist/server/body-streams.js","../node_modules/next/dist/lib/constants.js","../node_modules/next/dist/shared/lib/constants.js","../node_modules/next/dist/server/web/utils.js","../node_modules/next/dist/client/components/app-router-headers.js","../node_modules/next/dist/server/lib/trace/tracer.js","../node_modules/next/dist/server/lib/trace/constants.js","../node_modules/next/dist/shared/lib/is-plain-object.js","../node_modules/next/dist/lib/picocolors.js","../node_modules/next/dist/shared/lib/modern-browserslist-target.js","../node_modules/next/dist/shared/lib/is-thenable.js","../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../node_modules/next/dist/shared/lib/runtime-config.external.js","../node_modules/next/dist/server/after/builtin-request-context.js","../node_modules/next/dist/server/patch-error-inspect.js","../node_modules/next/dist/server/app-render/work-async-storage.external.js","../node_modules/@swc/helpers/_/_interop_require_default/package.json","../node_modules/next/dist/compiled/jsonwebtoken/package.json","../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../node_modules/@swc/helpers/package.json","../node_modules/next/dist/server/app-render/async-local-storage.js","../node_modules/next/dist/compiled/jsonwebtoken/index.js","../node_modules/next/dist/compiled/ws/package.json","../node_modules/next/dist/shared/lib/error-source.js","../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../node_modules/next/dist/client/components/react-dev-overlay/server/middleware-webpack.js","../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../node_modules/next/dist/client/components/react-dev-overlay/server/shared.js","../node_modules/next/dist/compiled/ws/index.js","../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../node_modules/next/dist/compiled/source-map/package.json","../node_modules/next/dist/shared/lib/is-internal.js","../node_modules/next/dist/compiled/source-map/source-map.js","../node_modules/next/dist/compiled/debug/package.json","../node_modules/next/dist/client/components/react-dev-overlay/internal/helpers/get-source-map-from-file.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/helpers/launchEditor.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/helpers/parse-stack.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/helpers/node-stack-frames.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/helpers/webpack-module-path.js","../node_modules/next/dist/lib/semver-noop.js","../node_modules/next/dist/compiled/debug/index.js","../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../node_modules/next/dist/compiled/babel/code-frame.js","../node_modules/next/dist/compiled/source-map08/package.json","../node_modules/next/dist/compiled/babel/package.json","../node_modules/next/dist/client/components/is-hydration-error.js","../node_modules/next/dist/compiled/source-map08/source-map.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/helpers/get-source-map-url.js","../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../node_modules/next/dist/compiled/babel/bundle.js","../node_modules/next/dist/compiled/shell-quote/package.json","../node_modules/next/dist/compiled/data-uri-to-buffer/package.json","../node_modules/next/dist/compiled/stacktrace-parser/package.json","../node_modules/next/dist/compiled/shell-quote/index.js","../node_modules/next/dist/compiled/data-uri-to-buffer/index.js","../node_modules/next/dist/compiled/stacktrace-parser/stack-trace-parser.cjs.js","../node_modules/next/dist/compiled/semver/package.json","../node_modules/next/dist/compiled/browserslist/package.json","../node_modules/next/dist/compiled/babel-packages/package.json","../node_modules/next/dist/compiled/json5/package.json","../node_modules/next/dist/compiled/lru-cache/package.json","../node_modules/next/dist/compiled/semver/index.js","../node_modules/next/dist/compiled/browserslist/index.js","../node_modules/next/dist/compiled/babel-packages/packages-bundle.js","../node_modules/next/dist/compiled/json5/index.js","../node_modules/next/dist/compiled/lru-cache/index.js","../node_modules/caniuse-lite/dist/unpacker/agents.js","../node_modules/caniuse-lite/dist/unpacker/region.js","../node_modules/caniuse-lite/dist/unpacker/feature.js","../node_modules/next/dist/compiled/babel/traverse.js","../node_modules/next/dist/compiled/babel/types.js","../node_modules/next/dist/compiled/babel/core.js","../node_modules/next/dist/compiled/babel/parser.js","../node_modules/caniuse-lite/package.json","../node_modules/caniuse-lite/data/agents.js","../node_modules/caniuse-lite/dist/lib/supported.js","../node_modules/caniuse-lite/dist/lib/statuses.js","../node_modules/caniuse-lite/dist/unpacker/browsers.js","../node_modules/caniuse-lite/dist/unpacker/browserVersions.js","../node_modules/caniuse-lite/data/browsers.js","../node_modules/caniuse-lite/data/browserVersions.js","../node_modules/next/dist/server/route-modules/app-page/vendored/contexts/server-inserted-html.js","../node_modules/next/dist/server/route-modules/app-page/vendored/contexts/router-context.js","../node_modules/next/dist/server/route-modules/app-page/vendored/contexts/head-manager-context.js","../node_modules/next/dist/server/route-modules/app-page/vendored/contexts/image-config-context.js","../node_modules/next/dist/server/route-modules/app-page/vendored/contexts/hooks-client-context.js","../node_modules/next/dist/server/route-modules/app-page/vendored/contexts/entrypoints.js","../node_modules/next/dist/server/route-modules/app-page/vendored/contexts/app-router-context.js","../node_modules/next/dist/server/route-modules/app-page/vendored/contexts/amp-context.js","../node_modules/next/dist/server/route-modules/app-page/module.compiled.js","../node_modules/next/dist/server/route-modules/pages/vendored/contexts/server-inserted-html.js","../node_modules/next/dist/server/route-modules/pages/vendored/contexts/router-context.js","../node_modules/next/dist/server/route-modules/pages/vendored/contexts/html-context.js","../node_modules/next/dist/server/route-modules/pages/vendored/contexts/head-manager-context.js","../node_modules/next/dist/server/route-modules/pages/vendored/contexts/image-config-context.js","../node_modules/next/dist/server/route-modules/pages/vendored/contexts/loadable.js","../node_modules/next/dist/server/route-modules/pages/vendored/contexts/hooks-client-context.js","../node_modules/next/dist/server/route-modules/pages/vendored/contexts/entrypoints.js","../node_modules/next/dist/server/route-modules/pages/vendored/contexts/app-router-context.js","../node_modules/next/dist/server/route-modules/pages/vendored/contexts/amp-context.js","../node_modules/next/dist/server/route-modules/pages/vendored/contexts/loadable-context.js","../node_modules/next/dist/server/route-modules/pages/module.compiled.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/next-server.js.nft.json b/dsql-app/.local_dist/next-server.js.nft.json index 7c48e73..d5bd9cf 100644 --- a/dsql-app/.local_dist/next-server.js.nft.json +++ b/dsql-app/.local_dist/next-server.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../node_modules/styled-jsx/index.js","../node_modules/styled-jsx/package.json","../node_modules/react/package.json","../node_modules/styled-jsx/dist/index/index.js","../node_modules/react/index.js","../node_modules/client-only/package.json","../node_modules/react/cjs/react.production.min.js","../node_modules/client-only/index.js","../node_modules/styled-jsx/style.js","../node_modules/next/dist/server/next-server.js","../node_modules/next/package.json","../node_modules/next/dist/server/base-server.js","../node_modules/next/dist/server/node-environment.js","../node_modules/next/dist/server/require-hook.js","../node_modules/next/dist/server/node-polyfill-crypto.js","../node_modules/next/dist/server/request-meta.js","../node_modules/next/dist/lib/find-pages-dir.js","../node_modules/next/dist/server/send-payload.js","../node_modules/next/dist/server/require.js","../node_modules/next/dist/server/load-components.js","../node_modules/next/dist/lib/is-error.js","../node_modules/next/dist/server/body-streams.js","../node_modules/next/dist/server/setup-http-agent-env.js","../node_modules/next/dist/lib/constants.js","../node_modules/next/dist/server/pipe-readable.js","../node_modules/next/dist/server/load-manifest.js","../node_modules/next/dist/lib/format-dynamic-import-path.js","../node_modules/next/dist/lib/interop-default.js","../node_modules/next/dist/lib/generate-interception-routes-rewrites.js","../node_modules/next/dist/server/route-kind.js","../node_modules/next/dist/server/image-optimizer.js","../node_modules/next/dist/server/serve-static.js","../node_modules/next/dist/lib/format-server-error.js","../node_modules/react-dom/package.json","../node_modules/next/dist/shared/lib/utils.js","../node_modules/next/dist/shared/lib/constants.js","../node_modules/next/dist/build/output/log.js","../node_modules/next/dist/server/base-http/node.js","../node_modules/next/dist/server/web/utils.js","../node_modules/next/dist/server/route-matches/pages-api-route-match.js","../node_modules/next/dist/server/lib/node-fs-methods.js","../node_modules/next/dist/server/lib/mock-request.js","../node_modules/next/dist/client/components/app-router-headers.js","../node_modules/next/dist/server/after/awaiter.js","../node_modules/next/dist/server/lib/async-callback-set.js","../node_modules/next/dist/shared/lib/invariant-error.js","../node_modules/next/dist/shared/lib/page-path/denormalize-page-path.js","../node_modules/next/dist/shared/lib/page-path/normalize-page-path.js","../node_modules/next/dist/server/lib/trace/tracer.js","../node_modules/next/dist/server/lib/trace/constants.js","../node_modules/next/dist/server/route-modules/app-page/module.render.js","../node_modules/next/dist/server/lib/module-loader/route-module-loader.js","../node_modules/next/dist/server/route-modules/pages/module.render.js","../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../node_modules/react/jsx-runtime.js","../node_modules/next/dist/shared/lib/router/utils/parse-url.js","../node_modules/next/dist/shared/lib/router/utils/route-matcher.js","../node_modules/next/dist/shared/lib/router/utils/middleware-route-matcher.js","../node_modules/next/dist/shared/lib/router/utils/querystring.js","../node_modules/next/dist/shared/lib/router/utils/remove-trailing-slash.js","../node_modules/next/dist/shared/lib/router/utils/get-next-pathname-info.js","../node_modules/next/dist/shared/lib/router/utils/app-paths.js","../node_modules/next/dist/shared/lib/router/utils/route-regex.js","../node_modules/next/dist/server/web/spec-extension/adapters/next-request.js","../node_modules/sharp/package.json","../node_modules/next/dist/server/api-utils/index.js","../node_modules/next/dist/server/response-cache/index.js","../node_modules/next/dist/server/lib/incremental-cache/index.js","../node_modules/next/dist/server/web/sandbox/index.js","../node_modules/sharp/lib/index.js","../node_modules/react-dom/index.js","../node_modules/@next/env/package.json","../node_modules/next/dist/shared/lib/head.js","../node_modules/next/dist/server/node-environment-baseline.js","../node_modules/next/dist/lib/wait.js","../node_modules/next/dist/server/client-component-renderer-logger.js","../node_modules/next/dist/lib/detached-promise.js","../node_modules/next/dist/lib/url.js","../node_modules/next/dist/experimental/testmode/server.js","../node_modules/react/cjs/react-jsx-runtime.production.min.js","../node_modules/next/dist/server/node-environment-extensions/random.js","../node_modules/next/dist/server/node-environment-extensions/date.js","../node_modules/next/dist/server/node-environment-extensions/error-inspect.js","../node_modules/next/dist/server/node-environment-extensions/node-crypto.js","../node_modules/next/dist/server/node-environment-extensions/web-crypto.js","../node_modules/next/dist/server/lib/etag.js","../node_modules/next/dist/server/lib/revalidate.js","../node_modules/next/dist/server/lib/lru-cache.js","../node_modules/next/dist/server/app-render/encryption-utils.js","../node_modules/next/dist/lib/metadata/is-metadata-route.js","../node_modules/next/dist/server/app-render/action-utils.js","../node_modules/next/dist/shared/lib/is-plain-object.js","../node_modules/next/dist/shared/lib/deep-freeze.js","../node_modules/next/dist/server/lib/interception-routes.js","../node_modules/next/dist/shared/lib/image-blur-svg.js","../node_modules/next/dist/shared/lib/match-local-pattern.js","../node_modules/next/dist/shared/lib/match-remote-pattern.js","../node_modules/next/dist/lib/picocolors.js","../node_modules/next/dist/shared/lib/i18n/normalize-locale-path.js","../node_modules/next/dist/server/base-http/index.js","../node_modules/next/dist/shared/lib/modern-browserslist-target.js","../node_modules/@next/env/dist/index.js","../node_modules/next/dist/shared/lib/is-thenable.js","../node_modules/react-dom/cjs/react-dom.production.min.js","../node_modules/next/dist/shared/lib/page-path/normalize-path-sep.js","../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../node_modules/next/dist/server/route-modules/app-page/module.compiled.js","../node_modules/next/dist/server/lib/module-loader/node-module-loader.js","../node_modules/next/dist/server/route-modules/pages/module.compiled.js","../node_modules/next/dist/shared/lib/segment.js","../node_modules/next/dist/shared/lib/escape-regexp.js","../node_modules/next/dist/server/base-http/helpers.js","../node_modules/next/dist/lib/batcher.js","../node_modules/next/dist/lib/scheduler.js","../node_modules/next/dist/server/web/spec-extension/request.js","../node_modules/next/dist/server/response-cache/types.js","../node_modules/next/dist/server/response-cache/utils.js","../node_modules/next/dist/shared/lib/router/utils/parse-relative-url.js","../node_modules/next/dist/shared/lib/router/utils/prepare-destination.js","../node_modules/next/dist/shared/lib/router/utils/remove-path-prefix.js","../node_modules/next/dist/shared/lib/router/utils/path-has-prefix.js","../node_modules/next/dist/server/lib/to-route.js","../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../node_modules/next/dist/server/web/spec-extension/adapters/headers.js","../node_modules/next/dist/server/lib/incremental-cache/file-system-cache.js","../node_modules/next/dist/server/lib/incremental-cache/fetch-cache.js","../node_modules/next/dist/server/lib/incremental-cache/shared-revalidate-timings.js","../node_modules/next/dist/server/web/sandbox/sandbox.js","../node_modules/next/dist/server/web/sandbox/context.js","../node_modules/next/dist/lib/is-edge-runtime.js","../node_modules/next/dist/lib/redirect-status.js","../node_modules/next/dist/server/utils.js","../node_modules/next/dist/server/server-utils.js","../node_modules/next/dist/server/render-result.js","../node_modules/next/dist/server/send-response.js","../node_modules/next/dist/lib/fallback.js","../node_modules/next/dist/compiled/fresh/package.json","../node_modules/next/dist/shared/lib/router/utils/index.js","../node_modules/next/dist/compiled/content-disposition/package.json","../node_modules/next/dist/compiled/path-to-regexp/package.json","../node_modules/next/dist/compiled/send/package.json","../node_modules/next/dist/compiled/image-size/package.json","../node_modules/next/dist/compiled/is-animated/package.json","../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../node_modules/next/dist/shared/lib/side-effect.js","../node_modules/next/dist/shared/lib/amp-mode.js","../node_modules/next/dist/server/patch-error-inspect.js","../node_modules/next/dist/server/request/fallback-params.js","../node_modules/next/dist/server/lib/format-hostname.js","../node_modules/next/dist/shared/lib/runtime-config.external.js","../node_modules/next/dist/server/normalizers/locale-route-normalizer.js","../node_modules/next/dist/shared/lib/get-hostname.js","../node_modules/next/dist/server/route-matcher-managers/default-route-matcher-manager.js","../node_modules/next/dist/server/route-matcher-providers/app-page-route-matcher-provider.js","../node_modules/next/dist/server/route-matcher-providers/pages-route-matcher-provider.js","../node_modules/next/dist/server/route-matcher-providers/pages-api-route-matcher-provider.js","../node_modules/next/dist/server/route-matcher-providers/app-route-route-matcher-provider.js","../node_modules/next/dist/server/lib/i18n-provider.js","../node_modules/next/dist/server/lib/match-next-data-pathname.js","../node_modules/next/dist/server/app-render/strip-flight-headers.js","../node_modules/next/dist/server/route-modules/checks.js","../node_modules/next/dist/server/lib/server-action-request-meta.js","../node_modules/next/dist/server/lib/patch-set-header.js","../node_modules/next/dist/server/after/builtin-request-context.js","../node_modules/next/dist/server/stream-utils/encodedTags.js","../node_modules/next/dist/server/web/adapter.js","../node_modules/next/dist/server/instrumentation/utils.js","../node_modules/next/dist/experimental/testmode/context.js","../node_modules/next/dist/experimental/testmode/fetch.js","../node_modules/next/dist/experimental/testmode/httpget.js","../node_modules/next/dist/shared/lib/utils/warn-once.js","../node_modules/next/dist/server/node-environment-extensions/utils.js","../node_modules/next/dist/server/lib/router-utils/decode-path-params.js","../node_modules/next/dist/server/normalizers/request/rsc.js","../node_modules/next/dist/server/normalizers/request/prefetch-rsc.js","../node_modules/next/dist/server/normalizers/request/next-data.js","../node_modules/next/dist/server/lib/experimental/ppr.js","../node_modules/next/dist/server/api-utils/node/try-get-preview-data.js","../node_modules/next/dist/server/app-render/work-async-storage.external.js","../node_modules/next/dist/compiled/@hapi/accept/package.json","../node_modules/@swc/helpers/_/_interop_require_default/package.json","../node_modules/next/dist/shared/lib/router/utils/is-bot.js","../node_modules/next/dist/server/route-matcher-providers/helpers/manifest-loaders/server-manifest-loader.js","../node_modules/next/dist/shared/lib/router/utils/get-route-from-asset-path.js","../node_modules/react-dom/server.browser.js","../node_modules/next/dist/client/components/redirect-status-code.js","../node_modules/next/dist/server/api-utils/get-cookie-parser.js","../node_modules/next/dist/compiled/jsonwebtoken/package.json","../node_modules/next/dist/compiled/fresh/index.js","../node_modules/next/dist/compiled/content-disposition/index.js","../node_modules/next/dist/compiled/send/index.js","../node_modules/next/dist/compiled/path-to-regexp/index.js","../node_modules/next/dist/compiled/image-size/index.js","../node_modules/next/dist/compiled/is-animated/index.js","../node_modules/scheduler/package.json","../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../node_modules/@swc/helpers/package.json","../node_modules/next/dist/compiled/cookie/package.json","../node_modules/next/dist/server/web/next-url.js","../node_modules/next/dist/server/web/error.js","../node_modules/next/dist/compiled/@hapi/accept/index.js","../node_modules/next/dist/server/web/spec-extension/cookies.js","../node_modules/scheduler/index.js","../node_modules/next/dist/server/app-render/async-local-storage.js","../node_modules/next/dist/lib/pick.js","../node_modules/@img/sharp-libvips-linux-x64/package.json","../node_modules/@img/sharp-libvips-linux-x64/versions.json","../node_modules/@img/sharp-libvips-linuxmusl-x64/package.json","../node_modules/@img/sharp-libvips-linuxmusl-x64/versions.json","../node_modules/@img/sharp-linux-x64/LICENSE","../node_modules/@img/sharp-linux-x64/package.json","../node_modules/@img/sharp-linuxmusl-x64/LICENSE","../node_modules/@img/sharp-linuxmusl-x64/package.json","../node_modules/next/dist/compiled/jsonwebtoken/index.js","../node_modules/next/dist/compiled/ws/package.json","../node_modules/@img/sharp-libvips-linux-x64/lib/index.js","../node_modules/@img/sharp-libvips-linux-x64/lib/libvips-cpp.so.42","../node_modules/@img/sharp-libvips-linuxmusl-x64/lib/index.js","../node_modules/@img/sharp-libvips-linuxmusl-x64/lib/libvips-cpp.so.42","../node_modules/@img/sharp-linuxmusl-x64/lib/sharp-linuxmusl-x64.node","../node_modules/@img/sharp-linux-x64/lib/sharp-linux-x64.node","../node_modules/next/dist/server/stream-utils/node-web-streams-helper.js","../node_modules/next/dist/shared/lib/error-source.js","../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../node_modules/next/dist/lib/is-app-page-route.js","../node_modules/next/dist/lib/is-api-route.js","../node_modules/next/dist/lib/is-app-route-route.js","../node_modules/next/dist/server/internal-utils.js","../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../node_modules/next/dist/shared/lib/router/utils/parse-path.js","../node_modules/next/dist/shared/lib/isomorphic/path.js","../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../node_modules/next/dist/compiled/cookie/index.js","../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../node_modules/next/dist/server/web/sandbox/resource-managers.js","../node_modules/next/dist/server/web/sandbox/fetch-inline-assets.js","../node_modules/next/dist/server/lib/is-ipv6.js","../node_modules/next/dist/server/route-matchers/app-page-route-matcher.js","../node_modules/next/dist/server/route-matcher-providers/manifest-route-matcher-provider.js","../node_modules/next/dist/server/route-matchers/locale-route-matcher.js","../node_modules/next/dist/server/route-matchers/pages-api-route-matcher.js","../node_modules/next/dist/server/route-matchers/pages-route-matcher.js","../node_modules/next/dist/server/route-matchers/app-route-route-matcher.js","../node_modules/next/dist/server/async-storage/request-store.js","../node_modules/next/dist/server/web/globals.js","../node_modules/next/dist/server/async-storage/work-store.js","../node_modules/next/dist/server/web/web-on-close.js","../node_modules/next/dist/server/web/get-edge-preview-props.js","../node_modules/next/dist/server/crypto-utils.js","../node_modules/next/dist/server/web/spec-extension/adapters/reflect.js","../node_modules/next/dist/compiled/picomatch/package.json","../node_modules/next/dist/shared/lib/router/utils/path-match.js","../node_modules/next/dist/client/components/react-dev-overlay/server/middleware-webpack.js","../node_modules/next/dist/server/app-render/dynamic-rendering.js","../node_modules/next/dist/server/web/spec-extension/fetch-event.js","../node_modules/next/dist/server/web/spec-extension/response.js","../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../node_modules/next/dist/client/components/react-dev-overlay/server/shared.js","../node_modules/next/dist/shared/lib/router/utils/relativize-url.js","../node_modules/sharp/lib/operation.js","../node_modules/sharp/lib/input.js","../node_modules/sharp/lib/constructor.js","../node_modules/sharp/lib/composite.js","../node_modules/sharp/lib/output.js","../node_modules/sharp/lib/channel.js","../node_modules/sharp/lib/utility.js","../node_modules/sharp/lib/resize.js","../node_modules/sharp/lib/colour.js","../node_modules/next/dist/server/normalizers/request/suffix.js","../node_modules/next/dist/server/normalizers/request/prefix.js","../node_modules/next/dist/shared/lib/router/utils/sorted-routes.js","../node_modules/next/dist/shared/lib/router/utils/is-dynamic.js","../node_modules/next/dist/compiled/ws/index.js","../node_modules/next/dist/shared/lib/router/utils/escape-path-delimiters.js","../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../node_modules/next/dist/compiled/next-server/app-page-experimental.runtime.prod.js","../node_modules/next/dist/compiled/next-server/pages-turbo.runtime.prod.js","../node_modules/next/dist/compiled/next-server/app-page-turbo-experimental.runtime.prod.js","../node_modules/next/dist/compiled/next-server/app-page-turbo.runtime.prod.js","../node_modules/scheduler/cjs/scheduler.development.js","../node_modules/scheduler/cjs/scheduler.production.min.js","../node_modules/next/dist/server/route-modules/app-page/module.js","../node_modules/next/dist/server/route-modules/pages/module.js","../node_modules/next/dist/compiled/picomatch/index.js","../node_modules/next/dist/server/normalizers/built/app/index.js","../node_modules/next/dist/server/normalizers/built/pages/index.js","../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../node_modules/next/dist/shared/lib/i18n/detect-domain-locale.js","../node_modules/next/dist/shared/lib/router/utils/format-next-pathname-info.js","../node_modules/next/dist/compiled/source-map/package.json","../node_modules/next/dist/experimental/testmode/server-edge.js","../node_modules/next/dist/server/stream-utils/uint8array-helpers.js","../node_modules/next/dist/compiled/edge-runtime/package.json","../node_modules/sharp/lib/is.js","../node_modules/sharp/lib/sharp.js","../node_modules/sharp/lib/libvips.js","../node_modules/next/dist/server/dynamic-rendering-utils.js","../node_modules/next/dist/server/route-matchers/route-matcher.js","../node_modules/next/dist/server/async-storage/draft-mode-provider.js","../node_modules/next/dist/server/after/after-context.js","../node_modules/next/dist/client/components/static-generation-bailout.js","../node_modules/next/dist/client/components/hooks-server-context.js","../node_modules/next/dist/lib/metadata/metadata-constants.js","../node_modules/next/dist/server/route-matcher-providers/helpers/cached-route-matcher-provider.js","../node_modules/next/dist/server/web/spec-extension/adapters/request-cookies.js","../node_modules/next/dist/compiled/@mswjs/interceptors/ClientRequest/package.json","../node_modules/next/dist/shared/lib/is-internal.js","../node_modules/next/dist/compiled/source-map/source-map.js","../node_modules/next/dist/compiled/edge-runtime/index.js","../node_modules/next/dist/compiled/debug/package.json","../node_modules/color/index.js","../node_modules/next/dist/server/render.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/helpers/launchEditor.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/helpers/get-source-map-from-file.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/helpers/node-stack-frames.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/helpers/parse-stack.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/helpers/webpack-module-path.js","../node_modules/next/dist/server/route-modules/route-module.js","../node_modules/next/dist/server/app-render/app-render.js","../node_modules/next/dist/lib/semver-noop.js","../node_modules/color/package.json","../node_modules/next/dist/compiled/@mswjs/interceptors/ClientRequest/index.js","../node_modules/next/dist/server/route-modules/app-page/vendored/contexts/entrypoints.js","../node_modules/next/dist/server/route-modules/pages/vendored/contexts/entrypoints.js","../node_modules/next/dist/server/route-modules/app-page/vendored/rsc/entrypoints.js","../node_modules/next/dist/server/route-modules/app-page/vendored/ssr/entrypoints.js","../node_modules/next/dist/compiled/debug/index.js","../node_modules/next/dist/compiled/@edge-runtime/cookies/package.json","../node_modules/next/dist/server/normalizers/built/app/app-page-normalizer.js","../node_modules/next/dist/server/normalizers/built/app/app-bundle-path-normalizer.js","../node_modules/next/dist/server/normalizers/built/pages/pages-page-normalizer.js","../node_modules/next/dist/server/normalizers/built/pages/pages-filename-normalizer.js","../node_modules/next/dist/server/normalizers/built/app/app-pathname-normalizer.js","../node_modules/next/dist/server/normalizers/built/app/app-filename-normalizer.js","../node_modules/next/dist/server/normalizers/built/pages/pages-bundle-path-normalizer.js","../node_modules/next/dist/server/normalizers/built/pages/pages-pathname-normalizer.js","../node_modules/semver/functions/coerce.js","../node_modules/semver/functions/satisfies.js","../node_modules/semver/functions/gte.js","../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../node_modules/next/dist/server/after/revalidation-utils.js","../node_modules/next/dist/compiled/path-browserify/package.json","../node_modules/next/dist/shared/lib/router/utils/add-path-prefix.js","../node_modules/next/dist/shared/lib/router/utils/add-locale.js","../node_modules/next/dist/shared/lib/router/utils/add-path-suffix.js","../node_modules/next/dist/compiled/bytes/package.json","../node_modules/semver/package.json","../node_modules/next/dist/compiled/babel/code-frame.js","../node_modules/next/dist/compiled/source-map08/package.json","../node_modules/next/dist/lib/is-serializable-props.js","../node_modules/next/dist/server/post-process.js","../node_modules/next/dist/compiled/@edge-runtime/cookies/index.js","../node_modules/next/dist/shared/lib/loadable.shared-runtime.js","../node_modules/next/dist/shared/lib/loadable-context.shared-runtime.js","../node_modules/next/dist/shared/lib/router-context.shared-runtime.js","../node_modules/next/dist/shared/lib/html-context.shared-runtime.js","../node_modules/next/dist/shared/lib/image-config-context.shared-runtime.js","../node_modules/next/dist/shared/lib/app-router-context.shared-runtime.js","../node_modules/next/dist/shared/lib/hooks-client-context.shared-runtime.js","../node_modules/next/dist/compiled/babel/package.json","../node_modules/next/dist/compiled/path-browserify/index.js","../node_modules/next/dist/shared/lib/router/adapters.js","../node_modules/color-convert/index.js","../node_modules/color-string/index.js","../node_modules/next/dist/compiled/bytes/index.js","../node_modules/next/dist/lib/metadata/metadata-context.js","../node_modules/next/dist/client/components/redirect.js","../node_modules/next/dist/server/lib/implicit-tags.js","../node_modules/next/dist/client/components/redirect-error.js","../node_modules/next/dist/server/app-render/create-error-handler.js","../node_modules/next/dist/server/app-render/get-short-dynamic-param-type.js","../node_modules/next/dist/server/app-render/flight-render-result.js","../node_modules/next/dist/server/app-render/get-segment-param.js","../node_modules/next/dist/server/app-render/get-script-nonce-from-header.js","../node_modules/next/dist/server/app-render/parse-and-validate-flight-router-state.js","../node_modules/next/dist/server/app-render/create-flight-router-state-from-loader-tree.js","../node_modules/next/dist/server/app-render/action-handler.js","../node_modules/next/dist/server/app-render/required-scripts.js","../node_modules/next/dist/server/app-render/server-inserted-html.js","../node_modules/next/dist/server/app-render/make-get-server-inserted-html.js","../node_modules/next/dist/server/app-render/create-component-tree.js","../node_modules/next/dist/server/app-render/walk-tree-with-flight-router-state.js","../node_modules/next/dist/server/app-render/get-asset-query-string.js","../node_modules/next/dist/server/app-render/postponed-state.js","../node_modules/next/dist/server/app-render/use-flight-response.js","../node_modules/next/dist/client/components/app-router.js","../node_modules/next/dist/server/app-render/prospective-render-utils.js","../node_modules/next/dist/server/app-render/app-render-prerender-utils.js","../node_modules/next/dist/server/app-render/app-render-render-utils.js","../node_modules/next/dist/server/app-render/cache-signal.js","../node_modules/next/dist/server/app-render/create-component-styles-and-scripts.js","../node_modules/next/dist/server/app-render/clean-async-snapshot.external.js","../node_modules/next/dist/server/resume-data-cache/resume-data-cache.js","../node_modules/next/dist/client/components/dev-root-http-access-fallback-boundary.js","../node_modules/next/dist/server/app-render/parse-loader-tree.js","../node_modules/next/dist/client/components/is-hydration-error.js","../node_modules/next/dist/server/app-render/action-async-storage.external.js","../node_modules/next/dist/client/components/http-access-fallback/http-access-fallback.js","../node_modules/next/dist/shared/lib/lazy-dynamic/bailout-to-csr.js","../node_modules/next/dist/client/components/router-reducer/create-initial-router-state.js","../node_modules/next/dist/shared/lib/router/action-queue.js","../node_modules/next/dist/server/lib/trace/utils.js","../node_modules/next/dist/compiled/source-map08/source-map.js","../node_modules/color-string/package.json","../node_modules/color-convert/package.json","../node_modules/semver/internal/re.js","../node_modules/semver/functions/parse.js","../node_modules/semver/classes/semver.js","../node_modules/semver/functions/compare.js","../node_modules/semver/classes/range.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/helpers/get-source-map-url.js","../node_modules/next/dist/lib/page-types.js","../node_modules/next/dist/shared/lib/server-inserted-html.shared-runtime.js","../node_modules/next/dist/server/normalizers/absolute-filename-normalizer.js","../node_modules/next/dist/server/normalizers/prefixing-normalizer.js","../node_modules/next/dist/server/normalizers/normalizers.js","../node_modules/next/dist/server/normalizers/underscore-normalizer.js","../node_modules/next/dist/server/normalizers/wrap-normalizer-fn.js","../node_modules/next/dist/compiled/p-queue/package.json","../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../node_modules/next/dist/server/ReactDOMServerPages.js","../node_modules/color-convert/conversions.js","../node_modules/color-convert/route.js","../node_modules/next/dist/server/optimize-amp.js","../node_modules/next/dist/lib/non-nullable.js","../node_modules/next/dist/compiled/babel/bundle.js","../node_modules/next/dist/compiled/strip-ansi/package.json","../node_modules/next/dist/compiled/react-is/package.json","../node_modules/next/dist/compiled/p-queue/index.js","../node_modules/next/dist/shared/lib/image-config.js","../node_modules/next/dist/server/htmlescape.js","../node_modules/next/dist/lib/client-reference.js","../node_modules/next/dist/client/has-base-path.js","../node_modules/next/dist/client/app-call-server.js","../node_modules/next/dist/client/remove-base-path.js","../node_modules/next/dist/client/add-base-path.js","../node_modules/color-name/package.json","../node_modules/next/dist/compiled/nanoid/package.json","../node_modules/semver/internal/constants.js","../node_modules/semver/internal/debug.js","../node_modules/semver/internal/identifiers.js","../node_modules/semver/internal/parse-options.js","../node_modules/semver/internal/lrucache.js","../node_modules/semver/classes/comparator.js","../node_modules/next/dist/client/components/is-next-router-error.js","../node_modules/next/dist/server/app-render/csrf-protection.js","../node_modules/next/dist/server/app-render/types.js","../node_modules/next/dist/shared/lib/encode-uri-path.js","../node_modules/next/dist/client/components/use-reducer.js","../node_modules/next/dist/client/components/error-boundary.js","../node_modules/next/dist/server/app-render/clean-async-snapshot-instance.js","../node_modules/next/dist/client/components/parallel-route-default.js","../node_modules/next/dist/server/lib/patch-fetch.js","../node_modules/next/dist/server/app-render/has-loading-component-in-tree.js","../node_modules/next/dist/server/app-render/get-css-inlined-link-tags.js","../node_modules/next/dist/server/app-render/interop-default.js","../node_modules/next/dist/server/app-render/get-layer-assets.js","../node_modules/next/dist/client/components/match-segments.js","../node_modules/next/dist/server/lib/app-dir-module.js","../node_modules/next/dist/server/app-render/react-server.node.js","../node_modules/next/dist/server/app-render/render-css-resource.js","../node_modules/next/dist/server/app-render/get-preloadable-fonts.js","../node_modules/next/dist/client/components/redirect-boundary.js","../node_modules/next/dist/server/resume-data-cache/cache-store.js","../node_modules/next/dist/client/components/app-router-announcer.js","../node_modules/next/dist/client/components/unresolved-thenable.js","../node_modules/next/dist/client/components/nav-failure-handler.js","../node_modules/next/dist/client/flight-data-helpers.js","../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../node_modules/simple-swizzle/index.js","../node_modules/next/dist/server/lib/server-ipc/utils.js","../node_modules/next/dist/client/components/router-reducer/create-href-from-url.js","../node_modules/next/dist/client/components/segment-cache/prefetch.js","../node_modules/next/dist/client/components/router-reducer/router-reducer-types.js","../node_modules/next/dist/client/components/http-access-fallback/error-boundary.js","../node_modules/next/dist/client/components/router-reducer/compute-changed-path.js","../node_modules/next/dist/compiled/shell-quote/package.json","../node_modules/next/dist/compiled/data-uri-to-buffer/package.json","../node_modules/next/dist/compiled/stacktrace-parser/package.json","../node_modules/color-name/index.js","../node_modules/next/dist/client/components/react-dev-overlay/app/hot-reloader-client.js","../node_modules/next/dist/client/components/router-reducer/reducers/find-head-in-cache.js","../node_modules/next/dist/compiled/strip-ansi/index.js","../node_modules/next/dist/compiled/react-is/index.js","../node_modules/next/dist/shared/lib/router/utils/as-path-to-search-params.js","../node_modules/next/dist/client/components/router-reducer/router-reducer.js","../node_modules/next/dist/client/components/router-reducer/prefetch-cache-utils.js","../node_modules/next/dist/client/components/router-reducer/refetch-inactive-parallel-segments.js","../node_modules/next/dist/client/components/router-reducer/fill-lazy-items-till-leaf-with-head.js","../node_modules/simple-swizzle/package.json","../node_modules/react/jsx-dev-runtime.js","../node_modules/next/dist/compiled/nanoid/index.cjs","../node_modules/next/dist/shared/lib/page-path/absolute-path-to-page.js","../node_modules/next/dist/compiled/shell-quote/index.js","../node_modules/next/dist/compiled/data-uri-to-buffer/index.js","../node_modules/next/dist/compiled/stacktrace-parser/stack-trace-parser.cjs.js","../node_modules/busboy/package.json","../node_modules/semver/functions/cmp.js","../node_modules/next/dist/client/normalize-trailing-slash.js","../node_modules/busboy/lib/index.js","../node_modules/next/dist/compiled/string-hash/package.json","../node_modules/next/dist/compiled/superstruct/package.json","../node_modules/next/dist/client/components/navigation-untracked.js","../node_modules/next/dist/client/components/not-found.js","../node_modules/next/dist/server/lib/dedupe-fetch.js","../node_modules/next/dist/server/lib/clone-response.js","../node_modules/react/cjs/react-jsx-dev-runtime.production.min.js","../node_modules/next/dist/client/components/navigation.js","../node_modules/is-arrayish/index.js","../node_modules/next/dist/client/components/segment-cache/scheduler.js","../node_modules/next/dist/client/components/segment-cache/cache-key.js","../node_modules/next/dist/server/dev/hot-reloader-types.js","../node_modules/next/dist/server/dev/extract-modules-from-turbopack-message.js","../node_modules/next/dist/compiled/react-is/cjs/react-is.production.js","../node_modules/next/dist/compiled/react-is/cjs/react-is.development.js","../node_modules/is-arrayish/package.json","../node_modules/next/dist/client/components/react-dev-overlay/shared.js","../node_modules/next/dist/client/components/router-reducer/apply-flight-data.js","../node_modules/next/dist/client/components/router-reducer/fetch-server-response.js","../node_modules/next/dist/client/components/router-reducer/create-router-cache-key.js","../node_modules/next/dist/compiled/string-hash/index.js","../node_modules/next/dist/compiled/superstruct/index.cjs","../node_modules/next/dist/client/components/router-reducer/reducers/refresh-reducer.js","../node_modules/next/dist/client/components/router-reducer/reducers/hmr-refresh-reducer.js","../node_modules/next/dist/client/components/router-reducer/reducers/navigate-reducer.js","../node_modules/next/dist/client/components/router-reducer/reducers/server-patch-reducer.js","../node_modules/next/dist/client/components/router-reducer/reducers/prefetch-reducer.js","../node_modules/next/dist/client/components/router-reducer/reducers/server-action-reducer.js","../node_modules/next/dist/client/components/router-reducer/reducers/restore-reducer.js","../node_modules/next/dist/client/components/react-dev-overlay/app/ReactDevOverlay.js","../node_modules/semver/functions/neq.js","../node_modules/semver/functions/lt.js","../node_modules/semver/functions/lte.js","../node_modules/semver/functions/eq.js","../node_modules/semver/functions/gt.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/helpers/format-webpack-messages.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/helpers/use-error-handler.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/helpers/parse-component-stack.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/helpers/use-websocket.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/helpers/stitched-error.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/helpers/runtime-error-handler.js","../node_modules/next/dist/lib/metadata/get-metadata-route.js","../node_modules/next/dist/compiled/browserslist/package.json","../node_modules/next/dist/compiled/json5/package.json","../node_modules/next/dist/compiled/babel-packages/package.json","../node_modules/next/dist/compiled/semver/package.json","../node_modules/next/dist/compiled/lru-cache/package.json","../node_modules/busboy/lib/utils.js","../node_modules/next/dist/shared/lib/page-path/remove-page-path-tail.js","../node_modules/busboy/lib/types/urlencoded.js","../node_modules/busboy/lib/types/multipart.js","../node_modules/next/dist/client/components/navigation.react-server.js","../node_modules/next/dist/client/components/bailout-to-client-rendering.js","../node_modules/next/dist/compiled/browserslist/index.js","../node_modules/next/dist/compiled/babel-packages/packages-bundle.js","../node_modules/next/dist/compiled/json5/index.js","../node_modules/next/dist/compiled/semver/index.js","../node_modules/next/dist/compiled/lru-cache/index.js","../node_modules/next/dist/client/components/router-reducer/reducers/get-segment-value.js","../node_modules/next/dist/client/app-find-source-map-url.js","../node_modules/next/dist/client/app-build-id.js","../node_modules/next/dist/client/components/segment-cache/cache.js","../node_modules/next/dist/shared/lib/hash.js","../node_modules/next/dist/client/assign-location.js","../node_modules/next/dist/client/components/router-reducer/fill-cache-with-new-subtree-data.js","../node_modules/next/dist/client/components/promise-queue.js","../node_modules/next/dist/client/components/router-reducer/handle-segment-mismatch.js","../node_modules/next/dist/client/components/router-reducer/is-navigating-to-new-root-layout.js","../node_modules/next/dist/client/components/router-reducer/apply-router-state-patch-to-tree.js","../node_modules/next/dist/client/components/router-reducer/handle-mutable.js","../node_modules/next/dist/client/components/router-reducer/ppr-navigations.js","../node_modules/next/dist/client/components/router-reducer/invalidate-cache-below-flight-segmentpath.js","../node_modules/next/dist/client/components/router-reducer/should-hard-navigate.js","../node_modules/next/dist/client/components/segment-cache/navigation.js","../node_modules/next/dist/client/components/router-reducer/clear-cache-node-data-for-segment-path.js","../node_modules/next/dist/client/components/router-reducer/aliased-prefetch-navigations.js","../node_modules/next/dist/client/lib/console.js","../node_modules/next/dist/client/components/router-reducer/reducers/has-interception-route-in-current-tree.js","../node_modules/next/dist/client/components/router-reducer/reducers/server-reference-info.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/container/StaticIndicator.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/styles/Base.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/styles/ComponentStyles.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/container/Errors.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/container/root-layout-missing-tags-error.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/components/ShadowPortal.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/styles/CssReset.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/container/BuildError.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/helpers/hydration-error-info.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/helpers/attach-hydration-error-state.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/helpers/console-error.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/helpers/enqueue-client-error.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/helpers/get-socket-url.js","../node_modules/streamsearch/package.json","../node_modules/next/dist/client/components/unstable-rethrow.js","../node_modules/next/dist/client/components/forbidden.js","../node_modules/next/dist/client/components/unauthorized.js","../node_modules/streamsearch/lib/sbmh.js","../node_modules/next/dist/client/components/segment-cache/tuple-map.js","../node_modules/next/dist/client/components/segment-cache/lru.js","../node_modules/next/dist/client/components/router-reducer/invalidate-cache-by-router-state.js","../node_modules/caniuse-lite/dist/unpacker/agents.js","../node_modules/caniuse-lite/dist/unpacker/feature.js","../node_modules/caniuse-lite/dist/unpacker/region.js","../node_modules/next/dist/compiled/babel/core.js","../node_modules/next/dist/compiled/babel/parser.js","../node_modules/caniuse-lite/package.json","../node_modules/next/dist/compiled/babel/traverse.js","../node_modules/next/dist/compiled/babel/types.js","../node_modules/next/dist/shared/lib/normalized-asset-prefix.js","../node_modules/next/dist/export/helpers/is-dynamic-usage-error.js","../node_modules/next/dist/server/lib/router-utils/is-postpone.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/icons/LightningBolt.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/icons/CloseIcon.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/helpers/noop-template.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/helpers/get-error-by-type.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/components/nodejs-inspector.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/components/LeftRightDialogHeader/styles.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/components/CodeFrame/styles.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/components/Overlay/styles.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/components/Terminal/styles.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/container/RuntimeError/component-stack-pseudo-html.js","../node_modules/@swc/helpers/_/_class_private_field_loose_base/package.json","../node_modules/@swc/helpers/_/_class_private_field_loose_key/package.json","../node_modules/caniuse-lite/data/agents.js","../node_modules/caniuse-lite/dist/unpacker/browsers.js","../node_modules/caniuse-lite/dist/unpacker/browserVersions.js","../node_modules/caniuse-lite/dist/lib/statuses.js","../node_modules/caniuse-lite/dist/lib/supported.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/components/Toast/index.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/components/Dialog/index.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/components/VersionStalenessInfo/index.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/components/LeftRightDialogHeader/index.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/container/RuntimeError/index.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/components/Overlay/index.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/components/copy-button/index.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/components/hot-linked-text/index.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/components/Terminal/index.js","../node_modules/@swc/helpers/_/_tagged_template_literal_loose/package.json","../node_modules/@swc/helpers/cjs/_class_private_field_loose_key.cjs","../node_modules/@swc/helpers/cjs/_class_private_field_loose_base.cjs","../node_modules/caniuse-lite/data/browserVersions.js","../node_modules/caniuse-lite/data/browsers.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/helpers/stack-frame.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/icons/CollapseIcon.js","../node_modules/@swc/helpers/cjs/_tagged_template_literal_loose.cjs","../node_modules/next/dist/shared/lib/magic-identifier.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/components/Dialog/styles.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/components/Dialog/Dialog.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/components/Dialog/DialogHeader.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/components/Dialog/DialogBody.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/components/Dialog/DialogContent.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/components/VersionStalenessInfo/styles.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/components/Toast/styles.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/components/VersionStalenessInfo/VersionStalenessInfo.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/components/Toast/Toast.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/components/LeftRightDialogHeader/LeftRightDialogHeader.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/components/Overlay/Overlay.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/components/Terminal/Terminal.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/container/RuntimeError/CallStackFrame.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/components/CodeFrame/index.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/hooks/use-on-click-outside.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/helpers/use-open-in-editor.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/components/Overlay/body-locker.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/components/Overlay/maintain--tab-focus.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/components/Terminal/EditorLink.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/components/CodeFrame/CodeFrame.js","../node_modules/next/dist/compiled/anser/package.json","../node_modules/next/dist/compiled/anser/index.js","../node_modules/next/dist/compiled/css.escape/package.json","../node_modules/next/dist/compiled/platform/package.json","../node_modules/next/dist/compiled/css.escape/css.escape.js","../node_modules/next/dist/compiled/platform/platform.js","../node_modules/next/dist/server/route-modules/app-page/vendored/contexts/server-inserted-html.js","../node_modules/next/dist/server/route-modules/app-page/vendored/contexts/router-context.js","../node_modules/next/dist/server/route-modules/app-page/vendored/contexts/head-manager-context.js","../node_modules/next/dist/server/route-modules/app-page/vendored/contexts/image-config-context.js","../node_modules/next/dist/server/route-modules/app-page/vendored/contexts/hooks-client-context.js","../node_modules/next/dist/server/route-modules/app-page/vendored/contexts/app-router-context.js","../node_modules/next/dist/server/route-modules/app-page/vendored/contexts/amp-context.js","../node_modules/next/dist/server/route-modules/pages/vendored/contexts/server-inserted-html.js","../node_modules/next/dist/server/route-modules/pages/vendored/contexts/router-context.js","../node_modules/next/dist/server/route-modules/pages/vendored/contexts/html-context.js","../node_modules/next/dist/server/route-modules/pages/vendored/contexts/head-manager-context.js","../node_modules/next/dist/server/route-modules/pages/vendored/contexts/image-config-context.js","../node_modules/next/dist/server/route-modules/pages/vendored/contexts/loadable.js","../node_modules/next/dist/server/route-modules/pages/vendored/contexts/hooks-client-context.js","../node_modules/next/dist/server/route-modules/pages/vendored/contexts/app-router-context.js","../node_modules/next/dist/server/route-modules/pages/vendored/contexts/amp-context.js","../node_modules/next/dist/server/route-modules/pages/vendored/contexts/loadable-context.js"]} \ No newline at end of file +{"version":1,"files":["../node_modules/styled-jsx/index.js","../node_modules/styled-jsx/package.json","../node_modules/react/package.json","../node_modules/styled-jsx/dist/index/index.js","../node_modules/react/index.js","../node_modules/client-only/package.json","../node_modules/react/cjs/react.production.min.js","../node_modules/client-only/index.js","../node_modules/styled-jsx/style.js","../node_modules/next/dist/server/next-server.js","../node_modules/next/package.json","../node_modules/next/dist/server/require-hook.js","../node_modules/next/dist/server/base-server.js","../node_modules/next/dist/server/node-environment.js","../node_modules/next/dist/server/request-meta.js","../node_modules/next/dist/server/node-polyfill-crypto.js","../node_modules/next/dist/lib/find-pages-dir.js","../node_modules/next/dist/server/require.js","../node_modules/next/dist/server/send-payload.js","../node_modules/next/dist/server/load-components.js","../node_modules/next/dist/lib/is-error.js","../node_modules/next/dist/server/body-streams.js","../node_modules/next/dist/server/setup-http-agent-env.js","../node_modules/next/dist/lib/constants.js","../node_modules/next/dist/server/pipe-readable.js","../node_modules/next/dist/server/load-manifest.js","../node_modules/next/dist/lib/interop-default.js","../node_modules/next/dist/lib/generate-interception-routes-rewrites.js","../node_modules/next/dist/lib/format-dynamic-import-path.js","../node_modules/next/dist/server/route-kind.js","../node_modules/next/dist/server/image-optimizer.js","../node_modules/next/dist/server/serve-static.js","../node_modules/next/dist/lib/format-server-error.js","../node_modules/react-dom/package.json","../node_modules/next/dist/shared/lib/utils.js","../node_modules/next/dist/shared/lib/constants.js","../node_modules/next/dist/server/base-http/node.js","../node_modules/next/dist/build/output/log.js","../node_modules/next/dist/server/web/utils.js","../node_modules/next/dist/server/route-matches/pages-api-route-match.js","../node_modules/next/dist/server/lib/node-fs-methods.js","../node_modules/next/dist/server/lib/mock-request.js","../node_modules/next/dist/client/components/app-router-headers.js","../node_modules/next/dist/server/lib/async-callback-set.js","../node_modules/next/dist/server/after/awaiter.js","../node_modules/next/dist/shared/lib/invariant-error.js","../node_modules/next/dist/shared/lib/page-path/normalize-page-path.js","../node_modules/next/dist/shared/lib/page-path/denormalize-page-path.js","../node_modules/next/dist/server/lib/trace/tracer.js","../node_modules/next/dist/server/lib/trace/constants.js","../node_modules/next/dist/server/lib/module-loader/route-module-loader.js","../node_modules/next/dist/server/route-modules/app-page/module.render.js","../node_modules/next/dist/server/route-modules/pages/module.render.js","../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../node_modules/react/jsx-runtime.js","../node_modules/sharp/package.json","../node_modules/next/dist/shared/lib/router/utils/route-matcher.js","../node_modules/next/dist/shared/lib/router/utils/parse-url.js","../node_modules/next/dist/shared/lib/router/utils/get-next-pathname-info.js","../node_modules/next/dist/shared/lib/router/utils/querystring.js","../node_modules/next/dist/shared/lib/router/utils/middleware-route-matcher.js","../node_modules/next/dist/shared/lib/router/utils/remove-trailing-slash.js","../node_modules/next/dist/shared/lib/router/utils/app-paths.js","../node_modules/next/dist/shared/lib/router/utils/route-regex.js","../node_modules/next/dist/server/web/spec-extension/adapters/next-request.js","../node_modules/next/dist/server/response-cache/index.js","../node_modules/next/dist/server/api-utils/index.js","../node_modules/sharp/lib/index.js","../node_modules/next/dist/server/lib/incremental-cache/index.js","../node_modules/next/dist/server/web/sandbox/index.js","../node_modules/react-dom/index.js","../node_modules/@next/env/package.json","../node_modules/next/dist/shared/lib/head.js","../node_modules/next/dist/server/node-environment-baseline.js","../node_modules/next/dist/lib/wait.js","../node_modules/next/dist/server/client-component-renderer-logger.js","../node_modules/next/dist/lib/detached-promise.js","../node_modules/next/dist/lib/url.js","../node_modules/next/dist/experimental/testmode/server.js","../node_modules/react/cjs/react-jsx-runtime.production.min.js","../node_modules/next/dist/server/node-environment-extensions/random.js","../node_modules/next/dist/server/node-environment-extensions/error-inspect.js","../node_modules/next/dist/server/node-environment-extensions/web-crypto.js","../node_modules/next/dist/server/node-environment-extensions/date.js","../node_modules/next/dist/server/node-environment-extensions/node-crypto.js","../node_modules/next/dist/server/lib/lru-cache.js","../node_modules/next/dist/server/lib/etag.js","../node_modules/next/dist/server/lib/revalidate.js","../node_modules/next/dist/shared/lib/is-plain-object.js","../node_modules/next/dist/server/app-render/encryption-utils.js","../node_modules/next/dist/server/app-render/action-utils.js","../node_modules/next/dist/lib/metadata/is-metadata-route.js","../node_modules/next/dist/shared/lib/deep-freeze.js","../node_modules/next/dist/server/lib/interception-routes.js","../node_modules/next/dist/shared/lib/image-blur-svg.js","../node_modules/next/dist/shared/lib/match-local-pattern.js","../node_modules/next/dist/shared/lib/match-remote-pattern.js","../node_modules/next/dist/lib/picocolors.js","../node_modules/next/dist/shared/lib/i18n/normalize-locale-path.js","../node_modules/next/dist/server/base-http/index.js","../node_modules/next/dist/shared/lib/modern-browserslist-target.js","../node_modules/@next/env/dist/index.js","../node_modules/next/dist/shared/lib/is-thenable.js","../node_modules/react-dom/cjs/react-dom.production.min.js","../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../node_modules/next/dist/shared/lib/page-path/normalize-path-sep.js","../node_modules/next/dist/server/lib/module-loader/node-module-loader.js","../node_modules/next/dist/server/route-modules/app-page/module.compiled.js","../node_modules/next/dist/server/route-modules/pages/module.compiled.js","../node_modules/next/dist/shared/lib/segment.js","../node_modules/next/dist/server/base-http/helpers.js","../node_modules/next/dist/shared/lib/escape-regexp.js","../node_modules/next/dist/lib/scheduler.js","../node_modules/next/dist/lib/batcher.js","../node_modules/next/dist/server/web/spec-extension/request.js","../node_modules/next/dist/server/response-cache/types.js","../node_modules/next/dist/server/response-cache/utils.js","../node_modules/next/dist/shared/lib/router/utils/parse-relative-url.js","../node_modules/next/dist/shared/lib/router/utils/path-has-prefix.js","../node_modules/next/dist/shared/lib/router/utils/remove-path-prefix.js","../node_modules/next/dist/shared/lib/router/utils/prepare-destination.js","../node_modules/next/dist/server/lib/to-route.js","../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../node_modules/next/dist/server/web/spec-extension/adapters/headers.js","../node_modules/next/dist/server/lib/incremental-cache/fetch-cache.js","../node_modules/next/dist/server/lib/incremental-cache/file-system-cache.js","../node_modules/next/dist/server/lib/incremental-cache/shared-revalidate-timings.js","../node_modules/next/dist/server/web/sandbox/sandbox.js","../node_modules/next/dist/server/web/sandbox/context.js","../node_modules/next/dist/lib/is-edge-runtime.js","../node_modules/next/dist/lib/redirect-status.js","../node_modules/next/dist/server/utils.js","../node_modules/next/dist/server/render-result.js","../node_modules/next/dist/server/server-utils.js","../node_modules/next/dist/server/send-response.js","../node_modules/next/dist/lib/fallback.js","../node_modules/next/dist/shared/lib/router/utils/index.js","../node_modules/next/dist/compiled/fresh/package.json","../node_modules/next/dist/compiled/image-size/package.json","../node_modules/next/dist/compiled/path-to-regexp/package.json","../node_modules/next/dist/compiled/is-animated/package.json","../node_modules/next/dist/compiled/send/package.json","../node_modules/next/dist/compiled/content-disposition/package.json","../node_modules/next/dist/shared/lib/side-effect.js","../node_modules/next/dist/shared/lib/amp-mode.js","../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../node_modules/next/dist/server/request/fallback-params.js","../node_modules/next/dist/server/lib/format-hostname.js","../node_modules/next/dist/shared/lib/runtime-config.external.js","../node_modules/next/dist/shared/lib/get-hostname.js","../node_modules/next/dist/server/normalizers/locale-route-normalizer.js","../node_modules/next/dist/server/route-matcher-providers/app-page-route-matcher-provider.js","../node_modules/next/dist/server/route-matcher-providers/app-route-route-matcher-provider.js","../node_modules/next/dist/server/route-matcher-managers/default-route-matcher-manager.js","../node_modules/next/dist/server/route-matcher-providers/pages-route-matcher-provider.js","../node_modules/next/dist/server/route-matcher-providers/pages-api-route-matcher-provider.js","../node_modules/next/dist/server/lib/i18n-provider.js","../node_modules/next/dist/server/lib/match-next-data-pathname.js","../node_modules/next/dist/server/app-render/strip-flight-headers.js","../node_modules/next/dist/server/route-modules/checks.js","../node_modules/next/dist/server/lib/server-action-request-meta.js","../node_modules/next/dist/server/lib/patch-set-header.js","../node_modules/next/dist/server/web/adapter.js","../node_modules/next/dist/server/after/builtin-request-context.js","../node_modules/next/dist/server/instrumentation/utils.js","../node_modules/next/dist/server/stream-utils/encodedTags.js","../node_modules/next/dist/server/patch-error-inspect.js","../node_modules/next/dist/experimental/testmode/context.js","../node_modules/next/dist/experimental/testmode/httpget.js","../node_modules/next/dist/experimental/testmode/fetch.js","../node_modules/next/dist/shared/lib/utils/warn-once.js","../node_modules/next/dist/server/lib/router-utils/decode-path-params.js","../node_modules/next/dist/server/normalizers/request/rsc.js","../node_modules/next/dist/server/normalizers/request/next-data.js","../node_modules/next/dist/server/normalizers/request/prefetch-rsc.js","../node_modules/next/dist/server/lib/experimental/ppr.js","../node_modules/next/dist/server/api-utils/node/try-get-preview-data.js","../node_modules/next/dist/server/node-environment-extensions/utils.js","../node_modules/next/dist/server/app-render/work-async-storage.external.js","../node_modules/next/dist/compiled/@hapi/accept/package.json","../node_modules/@swc/helpers/_/_interop_require_default/package.json","../node_modules/next/dist/shared/lib/router/utils/is-bot.js","../node_modules/next/dist/server/route-matcher-providers/helpers/manifest-loaders/server-manifest-loader.js","../node_modules/next/dist/shared/lib/router/utils/get-route-from-asset-path.js","../node_modules/react-dom/server.browser.js","../node_modules/next/dist/client/components/redirect-status-code.js","../node_modules/next/dist/server/api-utils/get-cookie-parser.js","../node_modules/next/dist/compiled/jsonwebtoken/package.json","../node_modules/next/dist/compiled/fresh/index.js","../node_modules/next/dist/compiled/image-size/index.js","../node_modules/next/dist/compiled/path-to-regexp/index.js","../node_modules/next/dist/compiled/is-animated/index.js","../node_modules/next/dist/compiled/send/index.js","../node_modules/next/dist/compiled/content-disposition/index.js","../node_modules/scheduler/package.json","../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../node_modules/@swc/helpers/package.json","../node_modules/next/dist/compiled/cookie/package.json","../node_modules/next/dist/server/web/next-url.js","../node_modules/next/dist/server/web/error.js","../node_modules/next/dist/compiled/@hapi/accept/index.js","../node_modules/next/dist/server/web/spec-extension/cookies.js","../node_modules/scheduler/index.js","../node_modules/next/dist/server/app-render/async-local-storage.js","../node_modules/next/dist/lib/pick.js","../node_modules/@img/sharp-libvips-linux-x64/package.json","../node_modules/@img/sharp-libvips-linux-x64/versions.json","../node_modules/@img/sharp-libvips-linuxmusl-x64/package.json","../node_modules/@img/sharp-libvips-linuxmusl-x64/versions.json","../node_modules/@img/sharp-linux-x64/LICENSE","../node_modules/@img/sharp-linux-x64/package.json","../node_modules/@img/sharp-linuxmusl-x64/LICENSE","../node_modules/@img/sharp-linuxmusl-x64/package.json","../node_modules/next/dist/compiled/jsonwebtoken/index.js","../node_modules/@img/sharp-libvips-linux-x64/lib/index.js","../node_modules/@img/sharp-libvips-linux-x64/lib/libvips-cpp.so.42","../node_modules/@img/sharp-libvips-linuxmusl-x64/lib/index.js","../node_modules/@img/sharp-libvips-linuxmusl-x64/lib/libvips-cpp.so.42","../node_modules/@img/sharp-linux-x64/lib/sharp-linux-x64.node","../node_modules/@img/sharp-linuxmusl-x64/lib/sharp-linuxmusl-x64.node","../node_modules/next/dist/compiled/ws/package.json","../node_modules/next/dist/server/stream-utils/node-web-streams-helper.js","../node_modules/next/dist/shared/lib/error-source.js","../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../node_modules/next/dist/lib/is-app-page-route.js","../node_modules/next/dist/lib/is-api-route.js","../node_modules/next/dist/lib/is-app-route-route.js","../node_modules/next/dist/server/internal-utils.js","../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../node_modules/next/dist/shared/lib/router/utils/parse-path.js","../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../node_modules/next/dist/shared/lib/isomorphic/path.js","../node_modules/next/dist/compiled/cookie/index.js","../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../node_modules/next/dist/server/web/sandbox/fetch-inline-assets.js","../node_modules/next/dist/server/web/sandbox/resource-managers.js","../node_modules/next/dist/server/lib/is-ipv6.js","../node_modules/next/dist/server/route-matcher-providers/manifest-route-matcher-provider.js","../node_modules/next/dist/server/route-matchers/app-page-route-matcher.js","../node_modules/next/dist/server/route-matchers/pages-route-matcher.js","../node_modules/next/dist/server/route-matchers/locale-route-matcher.js","../node_modules/next/dist/server/route-matchers/app-route-route-matcher.js","../node_modules/next/dist/server/route-matchers/pages-api-route-matcher.js","../node_modules/next/dist/server/web/globals.js","../node_modules/next/dist/server/async-storage/request-store.js","../node_modules/next/dist/server/async-storage/work-store.js","../node_modules/next/dist/server/web/web-on-close.js","../node_modules/next/dist/server/web/get-edge-preview-props.js","../node_modules/next/dist/server/crypto-utils.js","../node_modules/next/dist/server/web/spec-extension/adapters/reflect.js","../node_modules/next/dist/compiled/picomatch/package.json","../node_modules/next/dist/shared/lib/router/utils/path-match.js","../node_modules/next/dist/client/components/react-dev-overlay/server/middleware-webpack.js","../node_modules/next/dist/server/web/spec-extension/fetch-event.js","../node_modules/next/dist/server/web/spec-extension/response.js","../node_modules/next/dist/server/app-render/dynamic-rendering.js","../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../node_modules/next/dist/client/components/react-dev-overlay/server/shared.js","../node_modules/sharp/lib/operation.js","../node_modules/sharp/lib/constructor.js","../node_modules/sharp/lib/resize.js","../node_modules/sharp/lib/channel.js","../node_modules/sharp/lib/input.js","../node_modules/sharp/lib/composite.js","../node_modules/sharp/lib/colour.js","../node_modules/sharp/lib/output.js","../node_modules/sharp/lib/utility.js","../node_modules/next/dist/shared/lib/router/utils/relativize-url.js","../node_modules/next/dist/server/normalizers/request/suffix.js","../node_modules/next/dist/server/normalizers/request/prefix.js","../node_modules/next/dist/shared/lib/router/utils/sorted-routes.js","../node_modules/next/dist/shared/lib/router/utils/is-dynamic.js","../node_modules/next/dist/compiled/ws/index.js","../node_modules/next/dist/shared/lib/router/utils/escape-path-delimiters.js","../node_modules/next/dist/compiled/next-server/app-page-turbo-experimental.runtime.prod.js","../node_modules/next/dist/compiled/next-server/pages-turbo.runtime.prod.js","../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../node_modules/next/dist/compiled/next-server/app-page-turbo.runtime.prod.js","../node_modules/next/dist/compiled/next-server/app-page-experimental.runtime.prod.js","../node_modules/scheduler/cjs/scheduler.development.js","../node_modules/scheduler/cjs/scheduler.production.min.js","../node_modules/next/dist/server/route-modules/pages/module.js","../node_modules/next/dist/compiled/picomatch/index.js","../node_modules/next/dist/server/route-modules/app-page/module.js","../node_modules/next/dist/server/normalizers/built/app/index.js","../node_modules/next/dist/server/normalizers/built/pages/index.js","../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../node_modules/next/dist/shared/lib/i18n/detect-domain-locale.js","../node_modules/next/dist/shared/lib/router/utils/format-next-pathname-info.js","../node_modules/next/dist/experimental/testmode/server-edge.js","../node_modules/next/dist/compiled/source-map/package.json","../node_modules/next/dist/server/stream-utils/uint8array-helpers.js","../node_modules/next/dist/compiled/edge-runtime/package.json","../node_modules/sharp/lib/is.js","../node_modules/sharp/lib/sharp.js","../node_modules/sharp/lib/libvips.js","../node_modules/next/dist/server/route-matchers/route-matcher.js","../node_modules/next/dist/server/after/after-context.js","../node_modules/next/dist/server/async-storage/draft-mode-provider.js","../node_modules/next/dist/server/dynamic-rendering-utils.js","../node_modules/next/dist/server/route-matcher-providers/helpers/cached-route-matcher-provider.js","../node_modules/next/dist/client/components/static-generation-bailout.js","../node_modules/next/dist/client/components/hooks-server-context.js","../node_modules/next/dist/lib/metadata/metadata-constants.js","../node_modules/next/dist/server/web/spec-extension/adapters/request-cookies.js","../node_modules/next/dist/compiled/@mswjs/interceptors/ClientRequest/package.json","../node_modules/next/dist/shared/lib/is-internal.js","../node_modules/next/dist/compiled/source-map/source-map.js","../node_modules/next/dist/compiled/edge-runtime/index.js","../node_modules/next/dist/compiled/debug/package.json","../node_modules/color/index.js","../node_modules/next/dist/server/render.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/helpers/get-source-map-from-file.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/helpers/launchEditor.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/helpers/parse-stack.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/helpers/node-stack-frames.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/helpers/webpack-module-path.js","../node_modules/next/dist/server/route-modules/route-module.js","../node_modules/next/dist/server/app-render/app-render.js","../node_modules/next/dist/lib/semver-noop.js","../node_modules/color/package.json","../node_modules/next/dist/compiled/@mswjs/interceptors/ClientRequest/index.js","../node_modules/next/dist/server/route-modules/pages/vendored/contexts/entrypoints.js","../node_modules/next/dist/server/route-modules/app-page/vendored/contexts/entrypoints.js","../node_modules/next/dist/server/route-modules/app-page/vendored/rsc/entrypoints.js","../node_modules/next/dist/server/route-modules/app-page/vendored/ssr/entrypoints.js","../node_modules/next/dist/compiled/debug/index.js","../node_modules/next/dist/compiled/@edge-runtime/cookies/package.json","../node_modules/next/dist/server/normalizers/built/app/app-bundle-path-normalizer.js","../node_modules/next/dist/server/normalizers/built/app/app-pathname-normalizer.js","../node_modules/next/dist/server/normalizers/built/app/app-page-normalizer.js","../node_modules/next/dist/server/normalizers/built/app/app-filename-normalizer.js","../node_modules/next/dist/server/normalizers/built/pages/pages-page-normalizer.js","../node_modules/next/dist/server/normalizers/built/pages/pages-filename-normalizer.js","../node_modules/next/dist/server/normalizers/built/pages/pages-pathname-normalizer.js","../node_modules/next/dist/server/normalizers/built/pages/pages-bundle-path-normalizer.js","../node_modules/semver/functions/coerce.js","../node_modules/semver/functions/satisfies.js","../node_modules/semver/functions/gte.js","../node_modules/next/dist/server/after/revalidation-utils.js","../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../node_modules/next/dist/compiled/path-browserify/package.json","../node_modules/next/dist/shared/lib/router/utils/add-path-prefix.js","../node_modules/next/dist/shared/lib/router/utils/add-path-suffix.js","../node_modules/next/dist/shared/lib/router/utils/add-locale.js","../node_modules/next/dist/compiled/bytes/package.json","../node_modules/semver/package.json","../node_modules/next/dist/compiled/babel/code-frame.js","../node_modules/next/dist/compiled/source-map08/package.json","../node_modules/next/dist/lib/is-serializable-props.js","../node_modules/next/dist/server/post-process.js","../node_modules/next/dist/compiled/@edge-runtime/cookies/index.js","../node_modules/next/dist/shared/lib/loadable-context.shared-runtime.js","../node_modules/next/dist/shared/lib/router-context.shared-runtime.js","../node_modules/next/dist/shared/lib/loadable.shared-runtime.js","../node_modules/next/dist/shared/lib/html-context.shared-runtime.js","../node_modules/next/dist/shared/lib/image-config-context.shared-runtime.js","../node_modules/next/dist/shared/lib/hooks-client-context.shared-runtime.js","../node_modules/next/dist/shared/lib/app-router-context.shared-runtime.js","../node_modules/next/dist/compiled/babel/package.json","../node_modules/next/dist/compiled/path-browserify/index.js","../node_modules/color-string/index.js","../node_modules/color-convert/index.js","../node_modules/next/dist/shared/lib/router/adapters.js","../node_modules/next/dist/compiled/bytes/index.js","../node_modules/next/dist/client/components/redirect.js","../node_modules/next/dist/server/lib/implicit-tags.js","../node_modules/next/dist/client/components/redirect-error.js","../node_modules/next/dist/server/app-render/flight-render-result.js","../node_modules/next/dist/lib/metadata/metadata-context.js","../node_modules/next/dist/server/app-render/create-error-handler.js","../node_modules/next/dist/server/app-render/get-segment-param.js","../node_modules/next/dist/server/app-render/get-short-dynamic-param-type.js","../node_modules/next/dist/server/app-render/get-script-nonce-from-header.js","../node_modules/next/dist/server/app-render/create-flight-router-state-from-loader-tree.js","../node_modules/next/dist/server/app-render/parse-and-validate-flight-router-state.js","../node_modules/next/dist/server/app-render/action-handler.js","../node_modules/next/dist/server/app-render/server-inserted-html.js","../node_modules/next/dist/server/app-render/required-scripts.js","../node_modules/next/dist/server/app-render/walk-tree-with-flight-router-state.js","../node_modules/next/dist/server/app-render/make-get-server-inserted-html.js","../node_modules/next/dist/server/app-render/create-component-tree.js","../node_modules/next/dist/server/app-render/postponed-state.js","../node_modules/next/dist/server/app-render/get-asset-query-string.js","../node_modules/next/dist/server/app-render/use-flight-response.js","../node_modules/next/dist/client/components/app-router.js","../node_modules/next/dist/server/app-render/app-render-prerender-utils.js","../node_modules/next/dist/server/app-render/prospective-render-utils.js","../node_modules/next/dist/server/app-render/cache-signal.js","../node_modules/next/dist/server/app-render/clean-async-snapshot.external.js","../node_modules/next/dist/server/app-render/app-render-render-utils.js","../node_modules/next/dist/server/resume-data-cache/resume-data-cache.js","../node_modules/next/dist/server/app-render/create-component-styles-and-scripts.js","../node_modules/next/dist/server/app-render/parse-loader-tree.js","../node_modules/next/dist/client/components/dev-root-http-access-fallback-boundary.js","../node_modules/next/dist/client/components/is-hydration-error.js","../node_modules/next/dist/server/app-render/action-async-storage.external.js","../node_modules/next/dist/client/components/http-access-fallback/http-access-fallback.js","../node_modules/next/dist/shared/lib/lazy-dynamic/bailout-to-csr.js","../node_modules/next/dist/shared/lib/router/action-queue.js","../node_modules/next/dist/client/components/router-reducer/create-initial-router-state.js","../node_modules/next/dist/server/lib/trace/utils.js","../node_modules/color-string/package.json","../node_modules/color-convert/package.json","../node_modules/next/dist/compiled/source-map08/source-map.js","../node_modules/semver/functions/parse.js","../node_modules/semver/classes/semver.js","../node_modules/semver/internal/re.js","../node_modules/semver/classes/range.js","../node_modules/semver/functions/compare.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/helpers/get-source-map-url.js","../node_modules/next/dist/lib/page-types.js","../node_modules/next/dist/shared/lib/server-inserted-html.shared-runtime.js","../node_modules/next/dist/server/normalizers/absolute-filename-normalizer.js","../node_modules/next/dist/server/normalizers/prefixing-normalizer.js","../node_modules/next/dist/server/normalizers/normalizers.js","../node_modules/next/dist/server/normalizers/wrap-normalizer-fn.js","../node_modules/next/dist/server/normalizers/underscore-normalizer.js","../node_modules/next/dist/compiled/p-queue/package.json","../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../node_modules/next/dist/server/ReactDOMServerPages.js","../node_modules/color-convert/conversions.js","../node_modules/color-convert/route.js","../node_modules/next/dist/lib/non-nullable.js","../node_modules/next/dist/server/optimize-amp.js","../node_modules/next/dist/compiled/babel/bundle.js","../node_modules/next/dist/compiled/strip-ansi/package.json","../node_modules/next/dist/compiled/react-is/package.json","../node_modules/next/dist/compiled/p-queue/index.js","../node_modules/next/dist/shared/lib/image-config.js","../node_modules/color-name/package.json","../node_modules/next/dist/server/htmlescape.js","../node_modules/next/dist/lib/client-reference.js","../node_modules/next/dist/client/add-base-path.js","../node_modules/next/dist/client/remove-base-path.js","../node_modules/next/dist/client/has-base-path.js","../node_modules/next/dist/client/app-call-server.js","../node_modules/semver/internal/debug.js","../node_modules/semver/internal/constants.js","../node_modules/semver/internal/identifiers.js","../node_modules/semver/internal/parse-options.js","../node_modules/semver/internal/lrucache.js","../node_modules/semver/classes/comparator.js","../node_modules/next/dist/compiled/nanoid/package.json","../node_modules/next/dist/client/components/is-next-router-error.js","../node_modules/next/dist/server/app-render/types.js","../node_modules/next/dist/server/app-render/csrf-protection.js","../node_modules/next/dist/server/app-render/react-server.node.js","../node_modules/next/dist/shared/lib/encode-uri-path.js","../node_modules/next/dist/client/components/match-segments.js","../node_modules/next/dist/server/app-render/get-css-inlined-link-tags.js","../node_modules/next/dist/server/app-render/get-preloadable-fonts.js","../node_modules/next/dist/server/app-render/has-loading-component-in-tree.js","../node_modules/next/dist/server/app-render/interop-default.js","../node_modules/next/dist/server/lib/app-dir-module.js","../node_modules/next/dist/server/app-render/get-layer-assets.js","../node_modules/next/dist/server/lib/patch-fetch.js","../node_modules/next/dist/client/components/parallel-route-default.js","../node_modules/next/dist/client/components/error-boundary.js","../node_modules/next/dist/client/components/app-router-announcer.js","../node_modules/next/dist/client/components/use-reducer.js","../node_modules/next/dist/client/components/redirect-boundary.js","../node_modules/next/dist/client/components/unresolved-thenable.js","../node_modules/next/dist/client/components/nav-failure-handler.js","../node_modules/next/dist/server/app-render/clean-async-snapshot-instance.js","../node_modules/next/dist/server/resume-data-cache/cache-store.js","../node_modules/next/dist/server/app-render/render-css-resource.js","../node_modules/next/dist/client/flight-data-helpers.js","../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../node_modules/simple-swizzle/index.js","../node_modules/next/dist/server/lib/server-ipc/utils.js","../node_modules/next/dist/client/components/router-reducer/create-href-from-url.js","../node_modules/next/dist/client/components/router-reducer/router-reducer-types.js","../node_modules/next/dist/client/components/segment-cache/prefetch.js","../node_modules/next/dist/client/components/router-reducer/compute-changed-path.js","../node_modules/next/dist/client/components/http-access-fallback/error-boundary.js","../node_modules/next/dist/compiled/shell-quote/package.json","../node_modules/next/dist/compiled/data-uri-to-buffer/package.json","../node_modules/next/dist/compiled/stacktrace-parser/package.json","../node_modules/color-name/index.js","../node_modules/next/dist/client/components/router-reducer/reducers/find-head-in-cache.js","../node_modules/next/dist/client/components/react-dev-overlay/app/hot-reloader-client.js","../node_modules/next/dist/compiled/strip-ansi/index.js","../node_modules/next/dist/shared/lib/router/utils/as-path-to-search-params.js","../node_modules/next/dist/compiled/react-is/index.js","../node_modules/simple-swizzle/package.json","../node_modules/next/dist/client/components/router-reducer/router-reducer.js","../node_modules/next/dist/client/components/router-reducer/fill-lazy-items-till-leaf-with-head.js","../node_modules/next/dist/client/components/router-reducer/prefetch-cache-utils.js","../node_modules/next/dist/client/components/router-reducer/refetch-inactive-parallel-segments.js","../node_modules/react/jsx-dev-runtime.js","../node_modules/next/dist/compiled/nanoid/index.cjs","../node_modules/next/dist/shared/lib/page-path/absolute-path-to-page.js","../node_modules/next/dist/compiled/shell-quote/index.js","../node_modules/next/dist/compiled/data-uri-to-buffer/index.js","../node_modules/next/dist/compiled/stacktrace-parser/stack-trace-parser.cjs.js","../node_modules/busboy/package.json","../node_modules/semver/functions/cmp.js","../node_modules/next/dist/client/normalize-trailing-slash.js","../node_modules/busboy/lib/index.js","../node_modules/next/dist/compiled/string-hash/package.json","../node_modules/next/dist/compiled/superstruct/package.json","../node_modules/next/dist/client/components/not-found.js","../node_modules/next/dist/client/components/navigation-untracked.js","../node_modules/next/dist/server/lib/dedupe-fetch.js","../node_modules/next/dist/server/lib/clone-response.js","../node_modules/next/dist/client/components/navigation.js","../node_modules/react/cjs/react-jsx-dev-runtime.production.min.js","../node_modules/is-arrayish/index.js","../node_modules/next/dist/client/components/segment-cache/scheduler.js","../node_modules/next/dist/client/components/segment-cache/cache-key.js","../node_modules/next/dist/server/dev/hot-reloader-types.js","../node_modules/next/dist/server/dev/extract-modules-from-turbopack-message.js","../node_modules/next/dist/compiled/react-is/cjs/react-is.production.js","../node_modules/next/dist/compiled/react-is/cjs/react-is.development.js","../node_modules/is-arrayish/package.json","../node_modules/next/dist/client/components/router-reducer/create-router-cache-key.js","../node_modules/next/dist/client/components/router-reducer/apply-flight-data.js","../node_modules/next/dist/client/components/router-reducer/fetch-server-response.js","../node_modules/next/dist/client/components/react-dev-overlay/shared.js","../node_modules/next/dist/compiled/string-hash/index.js","../node_modules/next/dist/compiled/superstruct/index.cjs","../node_modules/semver/functions/neq.js","../node_modules/semver/functions/eq.js","../node_modules/semver/functions/lt.js","../node_modules/semver/functions/gt.js","../node_modules/semver/functions/lte.js","../node_modules/next/dist/client/components/router-reducer/reducers/restore-reducer.js","../node_modules/next/dist/client/components/router-reducer/reducers/navigate-reducer.js","../node_modules/next/dist/client/components/router-reducer/reducers/refresh-reducer.js","../node_modules/next/dist/client/components/router-reducer/reducers/hmr-refresh-reducer.js","../node_modules/next/dist/client/components/router-reducer/reducers/prefetch-reducer.js","../node_modules/next/dist/client/components/router-reducer/reducers/server-patch-reducer.js","../node_modules/next/dist/client/components/router-reducer/reducers/server-action-reducer.js","../node_modules/next/dist/client/components/react-dev-overlay/app/ReactDevOverlay.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/helpers/format-webpack-messages.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/helpers/use-error-handler.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/helpers/runtime-error-handler.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/helpers/parse-component-stack.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/helpers/stitched-error.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/helpers/use-websocket.js","../node_modules/next/dist/lib/metadata/get-metadata-route.js","../node_modules/next/dist/compiled/semver/package.json","../node_modules/next/dist/compiled/browserslist/package.json","../node_modules/next/dist/compiled/babel-packages/package.json","../node_modules/next/dist/compiled/json5/package.json","../node_modules/next/dist/compiled/lru-cache/package.json","../node_modules/busboy/lib/utils.js","../node_modules/next/dist/shared/lib/page-path/remove-page-path-tail.js","../node_modules/busboy/lib/types/urlencoded.js","../node_modules/busboy/lib/types/multipart.js","../node_modules/next/dist/client/components/bailout-to-client-rendering.js","../node_modules/next/dist/client/components/navigation.react-server.js","../node_modules/next/dist/compiled/semver/index.js","../node_modules/next/dist/compiled/browserslist/index.js","../node_modules/next/dist/compiled/babel-packages/packages-bundle.js","../node_modules/next/dist/compiled/json5/index.js","../node_modules/next/dist/compiled/lru-cache/index.js","../node_modules/next/dist/client/components/router-reducer/reducers/get-segment-value.js","../node_modules/next/dist/client/app-find-source-map-url.js","../node_modules/next/dist/client/app-build-id.js","../node_modules/next/dist/client/components/segment-cache/cache.js","../node_modules/next/dist/shared/lib/hash.js","../node_modules/next/dist/client/assign-location.js","../node_modules/next/dist/client/components/router-reducer/fill-cache-with-new-subtree-data.js","../node_modules/next/dist/client/components/promise-queue.js","../node_modules/next/dist/client/components/router-reducer/ppr-navigations.js","../node_modules/next/dist/client/components/router-reducer/apply-router-state-patch-to-tree.js","../node_modules/next/dist/client/components/router-reducer/handle-mutable.js","../node_modules/next/dist/client/components/router-reducer/is-navigating-to-new-root-layout.js","../node_modules/next/dist/client/components/router-reducer/should-hard-navigate.js","../node_modules/next/dist/client/components/router-reducer/handle-segment-mismatch.js","../node_modules/next/dist/client/components/router-reducer/invalidate-cache-below-flight-segmentpath.js","../node_modules/next/dist/client/components/segment-cache/navigation.js","../node_modules/next/dist/client/components/router-reducer/aliased-prefetch-navigations.js","../node_modules/next/dist/client/components/router-reducer/clear-cache-node-data-for-segment-path.js","../node_modules/next/dist/client/lib/console.js","../node_modules/next/dist/client/components/router-reducer/reducers/has-interception-route-in-current-tree.js","../node_modules/next/dist/client/components/router-reducer/reducers/server-reference-info.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/components/ShadowPortal.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/styles/CssReset.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/styles/ComponentStyles.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/container/StaticIndicator.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/container/BuildError.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/container/Errors.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/container/root-layout-missing-tags-error.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/styles/Base.js","../node_modules/streamsearch/package.json","../node_modules/next/dist/client/components/react-dev-overlay/internal/helpers/attach-hydration-error-state.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/helpers/enqueue-client-error.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/helpers/hydration-error-info.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/helpers/console-error.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/helpers/get-socket-url.js","../node_modules/next/dist/client/components/unauthorized.js","../node_modules/next/dist/client/components/unstable-rethrow.js","../node_modules/next/dist/client/components/forbidden.js","../node_modules/streamsearch/lib/sbmh.js","../node_modules/next/dist/client/components/segment-cache/tuple-map.js","../node_modules/next/dist/client/components/segment-cache/lru.js","../node_modules/next/dist/client/components/router-reducer/invalidate-cache-by-router-state.js","../node_modules/caniuse-lite/dist/unpacker/agents.js","../node_modules/caniuse-lite/dist/unpacker/region.js","../node_modules/caniuse-lite/dist/unpacker/feature.js","../node_modules/next/dist/compiled/babel/traverse.js","../node_modules/next/dist/compiled/babel/types.js","../node_modules/next/dist/compiled/babel/core.js","../node_modules/next/dist/compiled/babel/parser.js","../node_modules/caniuse-lite/package.json","../node_modules/next/dist/export/helpers/is-dynamic-usage-error.js","../node_modules/next/dist/shared/lib/normalized-asset-prefix.js","../node_modules/next/dist/server/lib/router-utils/is-postpone.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/helpers/noop-template.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/icons/CloseIcon.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/icons/LightningBolt.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/helpers/get-error-by-type.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/components/nodejs-inspector.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/components/Overlay/styles.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/components/CodeFrame/styles.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/components/LeftRightDialogHeader/styles.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/components/Terminal/styles.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/container/RuntimeError/component-stack-pseudo-html.js","../node_modules/@swc/helpers/_/_class_private_field_loose_key/package.json","../node_modules/@swc/helpers/_/_class_private_field_loose_base/package.json","../node_modules/caniuse-lite/data/agents.js","../node_modules/caniuse-lite/dist/lib/supported.js","../node_modules/caniuse-lite/dist/lib/statuses.js","../node_modules/caniuse-lite/dist/unpacker/browsers.js","../node_modules/caniuse-lite/dist/unpacker/browserVersions.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/components/Dialog/index.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/components/Overlay/index.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/components/Terminal/index.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/components/VersionStalenessInfo/index.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/components/Toast/index.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/container/RuntimeError/index.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/components/hot-linked-text/index.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/components/LeftRightDialogHeader/index.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/components/copy-button/index.js","../node_modules/@swc/helpers/_/_tagged_template_literal_loose/package.json","../node_modules/@swc/helpers/cjs/_class_private_field_loose_key.cjs","../node_modules/@swc/helpers/cjs/_class_private_field_loose_base.cjs","../node_modules/caniuse-lite/data/browsers.js","../node_modules/caniuse-lite/data/browserVersions.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/helpers/stack-frame.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/icons/CollapseIcon.js","../node_modules/@swc/helpers/cjs/_tagged_template_literal_loose.cjs","../node_modules/next/dist/shared/lib/magic-identifier.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/components/Dialog/Dialog.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/components/Dialog/DialogHeader.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/components/Overlay/Overlay.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/components/Dialog/DialogBody.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/components/Dialog/styles.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/components/Dialog/DialogContent.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/components/Terminal/Terminal.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/components/VersionStalenessInfo/styles.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/components/Toast/styles.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/components/VersionStalenessInfo/VersionStalenessInfo.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/components/Toast/Toast.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/container/RuntimeError/CallStackFrame.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/components/LeftRightDialogHeader/LeftRightDialogHeader.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/components/CodeFrame/index.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/hooks/use-on-click-outside.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/helpers/use-open-in-editor.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/components/Overlay/body-locker.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/components/Overlay/maintain--tab-focus.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/components/Terminal/EditorLink.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/components/CodeFrame/CodeFrame.js","../node_modules/next/dist/compiled/anser/package.json","../node_modules/next/dist/compiled/anser/index.js","../node_modules/next/dist/compiled/platform/package.json","../node_modules/next/dist/compiled/css.escape/package.json","../node_modules/next/dist/compiled/platform/platform.js","../node_modules/next/dist/compiled/css.escape/css.escape.js","../node_modules/next/dist/server/route-modules/app-page/vendored/contexts/server-inserted-html.js","../node_modules/next/dist/server/route-modules/app-page/vendored/contexts/router-context.js","../node_modules/next/dist/server/route-modules/app-page/vendored/contexts/head-manager-context.js","../node_modules/next/dist/server/route-modules/app-page/vendored/contexts/image-config-context.js","../node_modules/next/dist/server/route-modules/app-page/vendored/contexts/hooks-client-context.js","../node_modules/next/dist/server/route-modules/app-page/vendored/contexts/app-router-context.js","../node_modules/next/dist/server/route-modules/app-page/vendored/contexts/amp-context.js","../node_modules/next/dist/server/route-modules/pages/vendored/contexts/server-inserted-html.js","../node_modules/next/dist/server/route-modules/pages/vendored/contexts/router-context.js","../node_modules/next/dist/server/route-modules/pages/vendored/contexts/html-context.js","../node_modules/next/dist/server/route-modules/pages/vendored/contexts/head-manager-context.js","../node_modules/next/dist/server/route-modules/pages/vendored/contexts/image-config-context.js","../node_modules/next/dist/server/route-modules/pages/vendored/contexts/loadable.js","../node_modules/next/dist/server/route-modules/pages/vendored/contexts/hooks-client-context.js","../node_modules/next/dist/server/route-modules/pages/vendored/contexts/app-router-context.js","../node_modules/next/dist/server/route-modules/pages/vendored/contexts/amp-context.js","../node_modules/next/dist/server/route-modules/pages/vendored/contexts/loadable-context.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/prerender-manifest.json b/dsql-app/.local_dist/prerender-manifest.json index 824d0f2..7b1960e 100644 --- a/dsql-app/.local_dist/prerender-manifest.json +++ b/dsql-app/.local_dist/prerender-manifest.json @@ -1 +1 @@ -{"version":4,"routes":{},"dynamicRoutes":{"/docs/[page]/[sub-page]":{"routeRegex":"^/docs/([^/]+?)/([^/]+?)(?:/)?$","dataRoute":"/_next/data/YuXZx16H1DusDjnsSaCji/docs/[page]/[sub-page].json","fallback":false,"dataRouteRegex":"^/_next/data/YuXZx16H1DusDjnsSaCji/docs/([^/]+?)/([^/]+?)\\.json$","allowHeader":["host","x-matched-path","x-prerender-revalidate","x-prerender-revalidate-if-generated","x-next-revalidated-tags","x-next-revalidate-tag-token"]},"/docs/[page]":{"routeRegex":"^/docs/([^/]+?)(?:/)?$","dataRoute":"/_next/data/YuXZx16H1DusDjnsSaCji/docs/[page].json","fallback":false,"dataRouteRegex":"^/_next/data/YuXZx16H1DusDjnsSaCji/docs/([^/]+?)\\.json$","allowHeader":["host","x-matched-path","x-prerender-revalidate","x-prerender-revalidate-if-generated","x-next-revalidated-tags","x-next-revalidate-tag-token"]}},"notFoundRoutes":[],"preview":{"previewModeId":"a4620535e975a0fbcc1af8ab74e90079","previewModeSigningKey":"23c656fa6fab0dd37fef05852b2b81cb930f72ed39f66a226a3c54157e6ae96e","previewModeEncryptionKey":"597645c19a4d1c3f6017a73796fc4b590ec242293a6108f33c1f3db1bff837d7"}} \ No newline at end of file +{"version":4,"routes":{},"dynamicRoutes":{"/docs/[page]/[sub-page]":{"routeRegex":"^/docs/([^/]+?)/([^/]+?)(?:/)?$","dataRoute":"/_next/data/Vwi6iXhX7A60Ca2R9JTQV/docs/[page]/[sub-page].json","fallback":false,"dataRouteRegex":"^/_next/data/Vwi6iXhX7A60Ca2R9JTQV/docs/([^/]+?)/([^/]+?)\\.json$","allowHeader":["host","x-matched-path","x-prerender-revalidate","x-prerender-revalidate-if-generated","x-next-revalidated-tags","x-next-revalidate-tag-token"]},"/docs/[page]":{"routeRegex":"^/docs/([^/]+?)(?:/)?$","dataRoute":"/_next/data/Vwi6iXhX7A60Ca2R9JTQV/docs/[page].json","fallback":false,"dataRouteRegex":"^/_next/data/Vwi6iXhX7A60Ca2R9JTQV/docs/([^/]+?)\\.json$","allowHeader":["host","x-matched-path","x-prerender-revalidate","x-prerender-revalidate-if-generated","x-next-revalidated-tags","x-next-revalidate-tag-token"]}},"notFoundRoutes":[],"preview":{"previewModeId":"2531335e345d8dc29e5d06aa705cd30c","previewModeSigningKey":"82eb6532cdbba0a9333716dc3a732c969674cd6875aebf01723092bdb6aca757","previewModeEncryptionKey":"84629edda918ff69e82e4c66cbcb476e4f069bbdbd7fb70df4945c104a31342d"}} \ No newline at end of file diff --git a/dsql-app/.local_dist/routes-manifest.json b/dsql-app/.local_dist/routes-manifest.json index 1e4925b..11a7a2c 100644 --- a/dsql-app/.local_dist/routes-manifest.json +++ b/dsql-app/.local_dist/routes-manifest.json @@ -1 +1 @@ -{"version":3,"pages404":true,"caseSensitive":false,"basePath":"","redirects":[{"source":"/:path+/","destination":"/:path+","internal":true,"statusCode":308,"regex":"^(?:/((?:[^/]+?)(?:/(?:[^/]+?))*))/$"}],"headers":[],"dynamicRoutes":[{"page":"/admin/[user_id]","regex":"^/admin/([^/]+?)(?:/)?$","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"namedRegex":"^/admin/(?[^/]+?)(?:/)?$"},{"page":"/admin/[user_id]/api-keys","regex":"^/admin/([^/]+?)/api\\-keys(?:/)?$","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"namedRegex":"^/admin/(?[^/]+?)/api\\-keys(?:/)?$"},{"page":"/admin/[user_id]/connect","regex":"^/admin/([^/]+?)/connect(?:/)?$","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"namedRegex":"^/admin/(?[^/]+?)/connect(?:/)?$"},{"page":"/admin/[user_id]/databases","regex":"^/admin/([^/]+?)/databases(?:/)?$","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"namedRegex":"^/admin/(?[^/]+?)/databases(?:/)?$"},{"page":"/admin/[user_id]/databases/add-database","regex":"^/admin/([^/]+?)/databases/add\\-database(?:/)?$","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"namedRegex":"^/admin/(?[^/]+?)/databases/add\\-database(?:/)?$"},{"page":"/admin/[user_id]/databases/[single]","regex":"^/admin/([^/]+?)/databases/([^/]+?)(?:/)?$","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPsingle":"nxtPsingle"},"namedRegex":"^/admin/(?[^/]+?)/databases/(?[^/]+?)(?:/)?$"},{"page":"/admin/[user_id]/databases/[single]/connect","regex":"^/admin/([^/]+?)/databases/([^/]+?)/connect(?:/)?$","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPsingle":"nxtPsingle"},"namedRegex":"^/admin/(?[^/]+?)/databases/(?[^/]+?)/connect(?:/)?$"},{"page":"/admin/[user_id]/databases/[single]/edit-database","regex":"^/admin/([^/]+?)/databases/([^/]+?)/edit\\-database(?:/)?$","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPsingle":"nxtPsingle"},"namedRegex":"^/admin/(?[^/]+?)/databases/(?[^/]+?)/edit\\-database(?:/)?$"},{"page":"/admin/[user_id]/databases/[single]/schema","regex":"^/admin/([^/]+?)/databases/([^/]+?)/schema(?:/)?$","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPsingle":"nxtPsingle"},"namedRegex":"^/admin/(?[^/]+?)/databases/(?[^/]+?)/schema(?:/)?$"},{"page":"/admin/[user_id]/databases/[single]/shell","regex":"^/admin/([^/]+?)/databases/([^/]+?)/shell(?:/)?$","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPsingle":"nxtPsingle"},"namedRegex":"^/admin/(?[^/]+?)/databases/(?[^/]+?)/shell(?:/)?$"},{"page":"/admin/[user_id]/databases/[single]/tables","regex":"^/admin/([^/]+?)/databases/([^/]+?)/tables(?:/)?$","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPsingle":"nxtPsingle"},"namedRegex":"^/admin/(?[^/]+?)/databases/(?[^/]+?)/tables(?:/)?$"},{"page":"/admin/[user_id]/databases/[single]/tables/add-table","regex":"^/admin/([^/]+?)/databases/([^/]+?)/tables/add\\-table(?:/)?$","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPsingle":"nxtPsingle"},"namedRegex":"^/admin/(?[^/]+?)/databases/(?[^/]+?)/tables/add\\-table(?:/)?$"},{"page":"/admin/[user_id]/databases/[single]/tables/[single_table]","regex":"^/admin/([^/]+?)/databases/([^/]+?)/tables/([^/]+?)(?:/)?$","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPsingle":"nxtPsingle","nxtPsingle_table":"nxtPsingle_table"},"namedRegex":"^/admin/(?[^/]+?)/databases/(?[^/]+?)/tables/(?[^/]+?)(?:/)?$"},{"page":"/admin/[user_id]/databases/[single]/tables/[single_table]/edit-table","regex":"^/admin/([^/]+?)/databases/([^/]+?)/tables/([^/]+?)/edit\\-table(?:/)?$","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPsingle":"nxtPsingle","nxtPsingle_table":"nxtPsingle_table"},"namedRegex":"^/admin/(?[^/]+?)/databases/(?[^/]+?)/tables/(?[^/]+?)/edit\\-table(?:/)?$"},{"page":"/admin/[user_id]/databases/[single]/tables/[single_table]/entries","regex":"^/admin/([^/]+?)/databases/([^/]+?)/tables/([^/]+?)/entries(?:/)?$","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPsingle":"nxtPsingle","nxtPsingle_table":"nxtPsingle_table"},"namedRegex":"^/admin/(?[^/]+?)/databases/(?[^/]+?)/tables/(?[^/]+?)/entries(?:/)?$"},{"page":"/admin/[user_id]/databases/[single]/tables/[single_table]/entries/add-entry","regex":"^/admin/([^/]+?)/databases/([^/]+?)/tables/([^/]+?)/entries/add\\-entry(?:/)?$","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPsingle":"nxtPsingle","nxtPsingle_table":"nxtPsingle_table"},"namedRegex":"^/admin/(?[^/]+?)/databases/(?[^/]+?)/tables/(?[^/]+?)/entries/add\\-entry(?:/)?$"},{"page":"/admin/[user_id]/databases/[single]/tables/[single_table]/entries/[single_entry]","regex":"^/admin/([^/]+?)/databases/([^/]+?)/tables/([^/]+?)/entries/([^/]+?)(?:/)?$","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPsingle":"nxtPsingle","nxtPsingle_table":"nxtPsingle_table","nxtPsingle_entry":"nxtPsingle_entry"},"namedRegex":"^/admin/(?[^/]+?)/databases/(?[^/]+?)/tables/(?[^/]+?)/entries/(?[^/]+?)(?:/)?$"},{"page":"/admin/[user_id]/databases/[single]/tables/[single_table]/fields","regex":"^/admin/([^/]+?)/databases/([^/]+?)/tables/([^/]+?)/fields(?:/)?$","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPsingle":"nxtPsingle","nxtPsingle_table":"nxtPsingle_table"},"namedRegex":"^/admin/(?[^/]+?)/databases/(?[^/]+?)/tables/(?[^/]+?)/fields(?:/)?$"},{"page":"/admin/[user_id]/databases/[single]/users","regex":"^/admin/([^/]+?)/databases/([^/]+?)/users(?:/)?$","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPsingle":"nxtPsingle"},"namedRegex":"^/admin/(?[^/]+?)/databases/(?[^/]+?)/users(?:/)?$"},{"page":"/admin/[user_id]/databases/[single]/users/add-social-logins","regex":"^/admin/([^/]+?)/databases/([^/]+?)/users/add\\-social\\-logins(?:/)?$","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPsingle":"nxtPsingle"},"namedRegex":"^/admin/(?[^/]+?)/databases/(?[^/]+?)/users/add\\-social\\-logins(?:/)?$"},{"page":"/admin/[user_id]/databases/[single]/users/add-user","regex":"^/admin/([^/]+?)/databases/([^/]+?)/users/add\\-user(?:/)?$","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPsingle":"nxtPsingle"},"namedRegex":"^/admin/(?[^/]+?)/databases/(?[^/]+?)/users/add\\-user(?:/)?$"},{"page":"/admin/[user_id]/databases/[single]/users/[user]","regex":"^/admin/([^/]+?)/databases/([^/]+?)/users/([^/]+?)(?:/)?$","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPsingle":"nxtPsingle","nxtPuser":"nxtPuser"},"namedRegex":"^/admin/(?[^/]+?)/databases/(?[^/]+?)/users/(?[^/]+?)(?:/)?$"},{"page":"/admin/[user_id]/databases/[single]/users/[user]/change-password","regex":"^/admin/([^/]+?)/databases/([^/]+?)/users/([^/]+?)/change\\-password(?:/)?$","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPsingle":"nxtPsingle","nxtPuser":"nxtPuser"},"namedRegex":"^/admin/(?[^/]+?)/databases/(?[^/]+?)/users/(?[^/]+?)/change\\-password(?:/)?$"},{"page":"/admin/[user_id]/media","regex":"^/admin/([^/]+?)/media(?:/)?$","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"namedRegex":"^/admin/(?[^/]+?)/media(?:/)?$"},{"page":"/admin/[user_id]/media/[...folder]","regex":"^/admin/([^/]+?)/media/(.+?)(?:/)?$","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPfolder":"nxtPfolder"},"namedRegex":"^/admin/(?[^/]+?)/media/(?.+?)(?:/)?$"},{"page":"/admin/[user_id]/schema","regex":"^/admin/([^/]+?)/schema(?:/)?$","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"namedRegex":"^/admin/(?[^/]+?)/schema(?:/)?$"},{"page":"/admin/[user_id]/settings","regex":"^/admin/([^/]+?)/settings(?:/)?$","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"namedRegex":"^/admin/(?[^/]+?)/settings(?:/)?$"},{"page":"/admin/[user_id]/users","regex":"^/admin/([^/]+?)/users(?:/)?$","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"namedRegex":"^/admin/(?[^/]+?)/users(?:/)?$"},{"page":"/admin/[user_id]/users/add-user","regex":"^/admin/([^/]+?)/users/add\\-user(?:/)?$","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"namedRegex":"^/admin/(?[^/]+?)/users/add\\-user(?:/)?$"},{"page":"/admin/[user_id]/users/databases","regex":"^/admin/([^/]+?)/users/databases(?:/)?$","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"namedRegex":"^/admin/(?[^/]+?)/users/databases(?:/)?$"},{"page":"/admin/[user_id]/users/databases/[database]","regex":"^/admin/([^/]+?)/users/databases/([^/]+?)(?:/)?$","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPdatabase":"nxtPdatabase"},"namedRegex":"^/admin/(?[^/]+?)/users/databases/(?[^/]+?)(?:/)?$"},{"page":"/admin/[user_id]/users/databases/[database]/[user]","regex":"^/admin/([^/]+?)/users/databases/([^/]+?)/([^/]+?)(?:/)?$","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPdatabase":"nxtPdatabase","nxtPuser":"nxtPuser"},"namedRegex":"^/admin/(?[^/]+?)/users/databases/(?[^/]+?)/(?[^/]+?)(?:/)?$"},{"page":"/api/admin/docs/[action]","regex":"^/api/admin/docs/([^/]+?)(?:/)?$","routeKeys":{"nxtPaction":"nxtPaction"},"namedRegex":"^/api/admin/docs/(?[^/]+?)(?:/)?$"},{"page":"/api/query/[user_id]/add-file","regex":"^/api/query/([^/]+?)/add\\-file(?:/)?$","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"namedRegex":"^/api/query/(?[^/]+?)/add\\-file(?:/)?$"},{"page":"/api/query/[user_id]/add-image","regex":"^/api/query/([^/]+?)/add\\-image(?:/)?$","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"namedRegex":"^/api/query/(?[^/]+?)/add\\-image(?:/)?$"},{"page":"/api/query/[user_id]/delete-file","regex":"^/api/query/([^/]+?)/delete\\-file(?:/)?$","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"namedRegex":"^/api/query/(?[^/]+?)/delete\\-file(?:/)?$"},{"page":"/api/query/[user_id]/get","regex":"^/api/query/([^/]+?)/get(?:/)?$","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"namedRegex":"^/api/query/(?[^/]+?)/get(?:/)?$"},{"page":"/api/query/[user_id]/get-private-file","regex":"^/api/query/([^/]+?)/get\\-private\\-file(?:/)?$","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"namedRegex":"^/api/query/(?[^/]+?)/get\\-private\\-file(?:/)?$"},{"page":"/api/query/[user_id]/get-schema","regex":"^/api/query/([^/]+?)/get\\-schema(?:/)?$","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"namedRegex":"^/api/query/(?[^/]+?)/get\\-schema(?:/)?$"},{"page":"/api/query/[user_id]/post","regex":"^/api/query/([^/]+?)/post(?:/)?$","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"namedRegex":"^/api/query/(?[^/]+?)/post(?:/)?$"},{"page":"/api/query/[user_id]/update-schema-from-single-database","regex":"^/api/query/([^/]+?)/update\\-schema\\-from\\-single\\-database(?:/)?$","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"namedRegex":"^/api/query/(?[^/]+?)/update\\-schema\\-from\\-single\\-database(?:/)?$"},{"page":"/api/stream/[path]","regex":"^/api/stream/([^/]+?)(?:/)?$","routeKeys":{"nxtPpath":"nxtPpath"},"namedRegex":"^/api/stream/(?[^/]+?)(?:/)?$"},{"page":"/api/user/[user_id]/add-user","regex":"^/api/user/([^/]+?)/add\\-user(?:/)?$","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"namedRegex":"^/api/user/(?[^/]+?)/add\\-user(?:/)?$"},{"page":"/api/user/[user_id]/delete-user","regex":"^/api/user/([^/]+?)/delete\\-user(?:/)?$","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"namedRegex":"^/api/user/(?[^/]+?)/delete\\-user(?:/)?$"},{"page":"/api/user/[user_id]/get-user","regex":"^/api/user/([^/]+?)/get\\-user(?:/)?$","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"namedRegex":"^/api/user/(?[^/]+?)/get\\-user(?:/)?$"},{"page":"/api/user/[user_id]/github-login","regex":"^/api/user/([^/]+?)/github\\-login(?:/)?$","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"namedRegex":"^/api/user/(?[^/]+?)/github\\-login(?:/)?$"},{"page":"/api/user/[user_id]/google-login","regex":"^/api/user/([^/]+?)/google\\-login(?:/)?$","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"namedRegex":"^/api/user/(?[^/]+?)/google\\-login(?:/)?$"},{"page":"/api/user/[user_id]/grab-google-user-from-token","regex":"^/api/user/([^/]+?)/grab\\-google\\-user\\-from\\-token(?:/)?$","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"namedRegex":"^/api/user/(?[^/]+?)/grab\\-google\\-user\\-from\\-token(?:/)?$"},{"page":"/api/user/[user_id]/login-user","regex":"^/api/user/([^/]+?)/login\\-user(?:/)?$","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"namedRegex":"^/api/user/(?[^/]+?)/login\\-user(?:/)?$"},{"page":"/api/user/[user_id]/reauth-user","regex":"^/api/user/([^/]+?)/reauth\\-user(?:/)?$","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"namedRegex":"^/api/user/(?[^/]+?)/reauth\\-user(?:/)?$"},{"page":"/api/user/[user_id]/send-email-code","regex":"^/api/user/([^/]+?)/send\\-email\\-code(?:/)?$","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"namedRegex":"^/api/user/(?[^/]+?)/send\\-email\\-code(?:/)?$"},{"page":"/api/user/[user_id]/update-user","regex":"^/api/user/([^/]+?)/update\\-user(?:/)?$","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"namedRegex":"^/api/user/(?[^/]+?)/update\\-user(?:/)?$"},{"page":"/docs/[page]","regex":"^/docs/([^/]+?)(?:/)?$","routeKeys":{"nxtPpage":"nxtPpage"},"namedRegex":"^/docs/(?[^/]+?)(?:/)?$"},{"page":"/docs/[page]/[sub-page]","regex":"^/docs/([^/]+?)/([^/]+?)(?:/)?$","routeKeys":{"nxtPpage":"nxtPpage","nxtPsubpage":"nxtPsub-page"},"namedRegex":"^/docs/(?[^/]+?)/(?[^/]+?)(?:/)?$"},{"page":"/su/docs/pages/[id]","regex":"^/su/docs/pages/([^/]+?)(?:/)?$","routeKeys":{"nxtPid":"nxtPid"},"namedRegex":"^/su/docs/pages/(?[^/]+?)(?:/)?$"},{"page":"/su/users/[single]","regex":"^/su/users/([^/]+?)(?:/)?$","routeKeys":{"nxtPsingle":"nxtPsingle"},"namedRegex":"^/su/users/(?[^/]+?)(?:/)?$"}],"staticRoutes":[{"page":"/","regex":"^/(?:/)?$","routeKeys":{},"namedRegex":"^/(?:/)?$"},{"page":"/404","regex":"^/404(?:/)?$","routeKeys":{},"namedRegex":"^/404(?:/)?$"},{"page":"/500","regex":"^/500(?:/)?$","routeKeys":{},"namedRegex":"^/500(?:/)?$"},{"page":"/about","regex":"^/about(?:/)?$","routeKeys":{},"namedRegex":"^/about(?:/)?$"},{"page":"/admin","regex":"^/admin(?:/)?$","routeKeys":{},"namedRegex":"^/admin(?:/)?$"},{"page":"/blog","regex":"^/blog(?:/)?$","routeKeys":{},"namedRegex":"^/blog(?:/)?$"},{"page":"/contact","regex":"^/contact(?:/)?$","routeKeys":{},"namedRegex":"^/contact(?:/)?$"},{"page":"/create-account","regex":"^/create\\-account(?:/)?$","routeKeys":{},"namedRegex":"^/create\\-account(?:/)?$"},{"page":"/docs","regex":"^/docs(?:/)?$","routeKeys":{},"namedRegex":"^/docs(?:/)?$"},{"page":"/email-verification","regex":"^/email\\-verification(?:/)?$","routeKeys":{},"namedRegex":"^/email\\-verification(?:/)?$"},{"page":"/login","regex":"^/login(?:/)?$","routeKeys":{},"namedRegex":"^/login(?:/)?$"},{"page":"/logout","regex":"^/logout(?:/)?$","routeKeys":{},"namedRegex":"^/logout(?:/)?$"},{"page":"/privacy","regex":"^/privacy(?:/)?$","routeKeys":{},"namedRegex":"^/privacy(?:/)?$"},{"page":"/redirect","regex":"^/redirect(?:/)?$","routeKeys":{},"namedRegex":"^/redirect(?:/)?$"},{"page":"/reset-password","regex":"^/reset\\-password(?:/)?$","routeKeys":{},"namedRegex":"^/reset\\-password(?:/)?$"},{"page":"/send-password-reset-link","regex":"^/send\\-password\\-reset\\-link(?:/)?$","routeKeys":{},"namedRegex":"^/send\\-password\\-reset\\-link(?:/)?$"},{"page":"/su","regex":"^/su(?:/)?$","routeKeys":{},"namedRegex":"^/su(?:/)?$"},{"page":"/su/backups","regex":"^/su/backups(?:/)?$","routeKeys":{},"namedRegex":"^/su/backups(?:/)?$"},{"page":"/su/console","regex":"^/su/console(?:/)?$","routeKeys":{},"namedRegex":"^/su/console(?:/)?$"},{"page":"/su/docs","regex":"^/su/docs(?:/)?$","routeKeys":{},"namedRegex":"^/su/docs(?:/)?$"},{"page":"/su/docs/create-page","regex":"^/su/docs/create\\-page(?:/)?$","routeKeys":{},"namedRegex":"^/su/docs/create\\-page(?:/)?$"},{"page":"/su/docs/edit-page","regex":"^/su/docs/edit\\-page(?:/)?$","routeKeys":{},"namedRegex":"^/su/docs/edit\\-page(?:/)?$"},{"page":"/su/docs/pages","regex":"^/su/docs/pages(?:/)?$","routeKeys":{},"namedRegex":"^/su/docs/pages(?:/)?$"},{"page":"/su/envar","regex":"^/su/envar(?:/)?$","routeKeys":{},"namedRegex":"^/su/envar(?:/)?$"},{"page":"/su/error-logs","regex":"^/su/error\\-logs(?:/)?$","routeKeys":{},"namedRegex":"^/su/error\\-logs(?:/)?$"},{"page":"/su/load-balancing","regex":"^/su/load\\-balancing(?:/)?$","routeKeys":{},"namedRegex":"^/su/load\\-balancing(?:/)?$"},{"page":"/su/login","regex":"^/su/login(?:/)?$","routeKeys":{},"namedRegex":"^/su/login(?:/)?$"},{"page":"/su/servers","regex":"^/su/servers(?:/)?$","routeKeys":{},"namedRegex":"^/su/servers(?:/)?$"},{"page":"/su/users","regex":"^/su/users(?:/)?$","routeKeys":{},"namedRegex":"^/su/users(?:/)?$"},{"page":"/su/users/new","regex":"^/su/users/new(?:/)?$","routeKeys":{},"namedRegex":"^/su/users/new(?:/)?$"},{"page":"/terms","regex":"^/terms(?:/)?$","routeKeys":{},"namedRegex":"^/terms(?:/)?$"},{"page":"/unsubscribe","regex":"^/unsubscribe(?:/)?$","routeKeys":{},"namedRegex":"^/unsubscribe(?:/)?$"}],"dataRoutes":[{"page":"/admin","dataRouteRegex":"^/_next/data/YuXZx16H1DusDjnsSaCji/admin.json$"},{"page":"/admin/[user_id]","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"dataRouteRegex":"^/_next/data/YuXZx16H1DusDjnsSaCji/admin/([^/]+?)\\.json$","namedDataRouteRegex":"^/_next/data/YuXZx16H1DusDjnsSaCji/admin/(?[^/]+?)\\.json$"},{"page":"/admin/[user_id]/api-keys","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"dataRouteRegex":"^/_next/data/YuXZx16H1DusDjnsSaCji/admin/([^/]+?)/api\\-keys\\.json$","namedDataRouteRegex":"^/_next/data/YuXZx16H1DusDjnsSaCji/admin/(?[^/]+?)/api\\-keys\\.json$"},{"page":"/admin/[user_id]/connect","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"dataRouteRegex":"^/_next/data/YuXZx16H1DusDjnsSaCji/admin/([^/]+?)/connect\\.json$","namedDataRouteRegex":"^/_next/data/YuXZx16H1DusDjnsSaCji/admin/(?[^/]+?)/connect\\.json$"},{"page":"/admin/[user_id]/databases","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"dataRouteRegex":"^/_next/data/YuXZx16H1DusDjnsSaCji/admin/([^/]+?)/databases\\.json$","namedDataRouteRegex":"^/_next/data/YuXZx16H1DusDjnsSaCji/admin/(?[^/]+?)/databases\\.json$"},{"page":"/admin/[user_id]/databases/add-database","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"dataRouteRegex":"^/_next/data/YuXZx16H1DusDjnsSaCji/admin/([^/]+?)/databases/add\\-database\\.json$","namedDataRouteRegex":"^/_next/data/YuXZx16H1DusDjnsSaCji/admin/(?[^/]+?)/databases/add\\-database\\.json$"},{"page":"/admin/[user_id]/databases/[single]","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPsingle":"nxtPsingle"},"dataRouteRegex":"^/_next/data/YuXZx16H1DusDjnsSaCji/admin/([^/]+?)/databases/([^/]+?)\\.json$","namedDataRouteRegex":"^/_next/data/YuXZx16H1DusDjnsSaCji/admin/(?[^/]+?)/databases/(?[^/]+?)\\.json$"},{"page":"/admin/[user_id]/databases/[single]/connect","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPsingle":"nxtPsingle"},"dataRouteRegex":"^/_next/data/YuXZx16H1DusDjnsSaCji/admin/([^/]+?)/databases/([^/]+?)/connect\\.json$","namedDataRouteRegex":"^/_next/data/YuXZx16H1DusDjnsSaCji/admin/(?[^/]+?)/databases/(?[^/]+?)/connect\\.json$"},{"page":"/admin/[user_id]/databases/[single]/edit-database","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPsingle":"nxtPsingle"},"dataRouteRegex":"^/_next/data/YuXZx16H1DusDjnsSaCji/admin/([^/]+?)/databases/([^/]+?)/edit\\-database\\.json$","namedDataRouteRegex":"^/_next/data/YuXZx16H1DusDjnsSaCji/admin/(?[^/]+?)/databases/(?[^/]+?)/edit\\-database\\.json$"},{"page":"/admin/[user_id]/databases/[single]/schema","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPsingle":"nxtPsingle"},"dataRouteRegex":"^/_next/data/YuXZx16H1DusDjnsSaCji/admin/([^/]+?)/databases/([^/]+?)/schema\\.json$","namedDataRouteRegex":"^/_next/data/YuXZx16H1DusDjnsSaCji/admin/(?[^/]+?)/databases/(?[^/]+?)/schema\\.json$"},{"page":"/admin/[user_id]/databases/[single]/shell","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPsingle":"nxtPsingle"},"dataRouteRegex":"^/_next/data/YuXZx16H1DusDjnsSaCji/admin/([^/]+?)/databases/([^/]+?)/shell\\.json$","namedDataRouteRegex":"^/_next/data/YuXZx16H1DusDjnsSaCji/admin/(?[^/]+?)/databases/(?[^/]+?)/shell\\.json$"},{"page":"/admin/[user_id]/databases/[single]/tables","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPsingle":"nxtPsingle"},"dataRouteRegex":"^/_next/data/YuXZx16H1DusDjnsSaCji/admin/([^/]+?)/databases/([^/]+?)/tables\\.json$","namedDataRouteRegex":"^/_next/data/YuXZx16H1DusDjnsSaCji/admin/(?[^/]+?)/databases/(?[^/]+?)/tables\\.json$"},{"page":"/admin/[user_id]/databases/[single]/tables/add-table","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPsingle":"nxtPsingle"},"dataRouteRegex":"^/_next/data/YuXZx16H1DusDjnsSaCji/admin/([^/]+?)/databases/([^/]+?)/tables/add\\-table\\.json$","namedDataRouteRegex":"^/_next/data/YuXZx16H1DusDjnsSaCji/admin/(?[^/]+?)/databases/(?[^/]+?)/tables/add\\-table\\.json$"},{"page":"/admin/[user_id]/databases/[single]/tables/[single_table]","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPsingle":"nxtPsingle","nxtPsingle_table":"nxtPsingle_table"},"dataRouteRegex":"^/_next/data/YuXZx16H1DusDjnsSaCji/admin/([^/]+?)/databases/([^/]+?)/tables/([^/]+?)\\.json$","namedDataRouteRegex":"^/_next/data/YuXZx16H1DusDjnsSaCji/admin/(?[^/]+?)/databases/(?[^/]+?)/tables/(?[^/]+?)\\.json$"},{"page":"/admin/[user_id]/databases/[single]/tables/[single_table]/edit-table","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPsingle":"nxtPsingle","nxtPsingle_table":"nxtPsingle_table"},"dataRouteRegex":"^/_next/data/YuXZx16H1DusDjnsSaCji/admin/([^/]+?)/databases/([^/]+?)/tables/([^/]+?)/edit\\-table\\.json$","namedDataRouteRegex":"^/_next/data/YuXZx16H1DusDjnsSaCji/admin/(?[^/]+?)/databases/(?[^/]+?)/tables/(?[^/]+?)/edit\\-table\\.json$"},{"page":"/admin/[user_id]/databases/[single]/tables/[single_table]/entries","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPsingle":"nxtPsingle","nxtPsingle_table":"nxtPsingle_table"},"dataRouteRegex":"^/_next/data/YuXZx16H1DusDjnsSaCji/admin/([^/]+?)/databases/([^/]+?)/tables/([^/]+?)/entries\\.json$","namedDataRouteRegex":"^/_next/data/YuXZx16H1DusDjnsSaCji/admin/(?[^/]+?)/databases/(?[^/]+?)/tables/(?[^/]+?)/entries\\.json$"},{"page":"/admin/[user_id]/databases/[single]/tables/[single_table]/entries/add-entry","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPsingle":"nxtPsingle","nxtPsingle_table":"nxtPsingle_table"},"dataRouteRegex":"^/_next/data/YuXZx16H1DusDjnsSaCji/admin/([^/]+?)/databases/([^/]+?)/tables/([^/]+?)/entries/add\\-entry\\.json$","namedDataRouteRegex":"^/_next/data/YuXZx16H1DusDjnsSaCji/admin/(?[^/]+?)/databases/(?[^/]+?)/tables/(?[^/]+?)/entries/add\\-entry\\.json$"},{"page":"/admin/[user_id]/databases/[single]/tables/[single_table]/entries/[single_entry]","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPsingle":"nxtPsingle","nxtPsingle_table":"nxtPsingle_table","nxtPsingle_entry":"nxtPsingle_entry"},"dataRouteRegex":"^/_next/data/YuXZx16H1DusDjnsSaCji/admin/([^/]+?)/databases/([^/]+?)/tables/([^/]+?)/entries/([^/]+?)\\.json$","namedDataRouteRegex":"^/_next/data/YuXZx16H1DusDjnsSaCji/admin/(?[^/]+?)/databases/(?[^/]+?)/tables/(?[^/]+?)/entries/(?[^/]+?)\\.json$"},{"page":"/admin/[user_id]/databases/[single]/tables/[single_table]/fields","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPsingle":"nxtPsingle","nxtPsingle_table":"nxtPsingle_table"},"dataRouteRegex":"^/_next/data/YuXZx16H1DusDjnsSaCji/admin/([^/]+?)/databases/([^/]+?)/tables/([^/]+?)/fields\\.json$","namedDataRouteRegex":"^/_next/data/YuXZx16H1DusDjnsSaCji/admin/(?[^/]+?)/databases/(?[^/]+?)/tables/(?[^/]+?)/fields\\.json$"},{"page":"/admin/[user_id]/databases/[single]/users","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPsingle":"nxtPsingle"},"dataRouteRegex":"^/_next/data/YuXZx16H1DusDjnsSaCji/admin/([^/]+?)/databases/([^/]+?)/users\\.json$","namedDataRouteRegex":"^/_next/data/YuXZx16H1DusDjnsSaCji/admin/(?[^/]+?)/databases/(?[^/]+?)/users\\.json$"},{"page":"/admin/[user_id]/databases/[single]/users/add-social-logins","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPsingle":"nxtPsingle"},"dataRouteRegex":"^/_next/data/YuXZx16H1DusDjnsSaCji/admin/([^/]+?)/databases/([^/]+?)/users/add\\-social\\-logins\\.json$","namedDataRouteRegex":"^/_next/data/YuXZx16H1DusDjnsSaCji/admin/(?[^/]+?)/databases/(?[^/]+?)/users/add\\-social\\-logins\\.json$"},{"page":"/admin/[user_id]/databases/[single]/users/add-user","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPsingle":"nxtPsingle"},"dataRouteRegex":"^/_next/data/YuXZx16H1DusDjnsSaCji/admin/([^/]+?)/databases/([^/]+?)/users/add\\-user\\.json$","namedDataRouteRegex":"^/_next/data/YuXZx16H1DusDjnsSaCji/admin/(?[^/]+?)/databases/(?[^/]+?)/users/add\\-user\\.json$"},{"page":"/admin/[user_id]/databases/[single]/users/[user]","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPsingle":"nxtPsingle","nxtPuser":"nxtPuser"},"dataRouteRegex":"^/_next/data/YuXZx16H1DusDjnsSaCji/admin/([^/]+?)/databases/([^/]+?)/users/([^/]+?)\\.json$","namedDataRouteRegex":"^/_next/data/YuXZx16H1DusDjnsSaCji/admin/(?[^/]+?)/databases/(?[^/]+?)/users/(?[^/]+?)\\.json$"},{"page":"/admin/[user_id]/databases/[single]/users/[user]/change-password","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPsingle":"nxtPsingle","nxtPuser":"nxtPuser"},"dataRouteRegex":"^/_next/data/YuXZx16H1DusDjnsSaCji/admin/([^/]+?)/databases/([^/]+?)/users/([^/]+?)/change\\-password\\.json$","namedDataRouteRegex":"^/_next/data/YuXZx16H1DusDjnsSaCji/admin/(?[^/]+?)/databases/(?[^/]+?)/users/(?[^/]+?)/change\\-password\\.json$"},{"page":"/admin/[user_id]/media","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"dataRouteRegex":"^/_next/data/YuXZx16H1DusDjnsSaCji/admin/([^/]+?)/media\\.json$","namedDataRouteRegex":"^/_next/data/YuXZx16H1DusDjnsSaCji/admin/(?[^/]+?)/media\\.json$"},{"page":"/admin/[user_id]/media/[...folder]","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPfolder":"nxtPfolder"},"dataRouteRegex":"^/_next/data/YuXZx16H1DusDjnsSaCji/admin/([^/]+?)/media/(.+?)\\.json$","namedDataRouteRegex":"^/_next/data/YuXZx16H1DusDjnsSaCji/admin/(?[^/]+?)/media/(?.+?)\\.json$"},{"page":"/admin/[user_id]/schema","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"dataRouteRegex":"^/_next/data/YuXZx16H1DusDjnsSaCji/admin/([^/]+?)/schema\\.json$","namedDataRouteRegex":"^/_next/data/YuXZx16H1DusDjnsSaCji/admin/(?[^/]+?)/schema\\.json$"},{"page":"/admin/[user_id]/settings","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"dataRouteRegex":"^/_next/data/YuXZx16H1DusDjnsSaCji/admin/([^/]+?)/settings\\.json$","namedDataRouteRegex":"^/_next/data/YuXZx16H1DusDjnsSaCji/admin/(?[^/]+?)/settings\\.json$"},{"page":"/admin/[user_id]/users","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"dataRouteRegex":"^/_next/data/YuXZx16H1DusDjnsSaCji/admin/([^/]+?)/users\\.json$","namedDataRouteRegex":"^/_next/data/YuXZx16H1DusDjnsSaCji/admin/(?[^/]+?)/users\\.json$"},{"page":"/admin/[user_id]/users/add-user","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"dataRouteRegex":"^/_next/data/YuXZx16H1DusDjnsSaCji/admin/([^/]+?)/users/add\\-user\\.json$","namedDataRouteRegex":"^/_next/data/YuXZx16H1DusDjnsSaCji/admin/(?[^/]+?)/users/add\\-user\\.json$"},{"page":"/admin/[user_id]/users/databases","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"dataRouteRegex":"^/_next/data/YuXZx16H1DusDjnsSaCji/admin/([^/]+?)/users/databases\\.json$","namedDataRouteRegex":"^/_next/data/YuXZx16H1DusDjnsSaCji/admin/(?[^/]+?)/users/databases\\.json$"},{"page":"/admin/[user_id]/users/databases/[database]","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPdatabase":"nxtPdatabase"},"dataRouteRegex":"^/_next/data/YuXZx16H1DusDjnsSaCji/admin/([^/]+?)/users/databases/([^/]+?)\\.json$","namedDataRouteRegex":"^/_next/data/YuXZx16H1DusDjnsSaCji/admin/(?[^/]+?)/users/databases/(?[^/]+?)\\.json$"},{"page":"/admin/[user_id]/users/databases/[database]/[user]","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPdatabase":"nxtPdatabase","nxtPuser":"nxtPuser"},"dataRouteRegex":"^/_next/data/YuXZx16H1DusDjnsSaCji/admin/([^/]+?)/users/databases/([^/]+?)/([^/]+?)\\.json$","namedDataRouteRegex":"^/_next/data/YuXZx16H1DusDjnsSaCji/admin/(?[^/]+?)/users/databases/(?[^/]+?)/(?[^/]+?)\\.json$"},{"page":"/create-account","dataRouteRegex":"^/_next/data/YuXZx16H1DusDjnsSaCji/create-account.json$"},{"page":"/docs","dataRouteRegex":"^/_next/data/YuXZx16H1DusDjnsSaCji/docs.json$"},{"page":"/docs/[page]","routeKeys":{"nxtPpage":"nxtPpage"},"dataRouteRegex":"^/_next/data/YuXZx16H1DusDjnsSaCji/docs/([^/]+?)\\.json$","namedDataRouteRegex":"^/_next/data/YuXZx16H1DusDjnsSaCji/docs/(?[^/]+?)\\.json$"},{"page":"/docs/[page]/[sub-page]","routeKeys":{"nxtPpage":"nxtPpage","nxtPsubpage":"nxtPsub-page"},"dataRouteRegex":"^/_next/data/YuXZx16H1DusDjnsSaCji/docs/([^/]+?)/([^/]+?)\\.json$","namedDataRouteRegex":"^/_next/data/YuXZx16H1DusDjnsSaCji/docs/(?[^/]+?)/(?[^/]+?)\\.json$"},{"page":"/email-verification","dataRouteRegex":"^/_next/data/YuXZx16H1DusDjnsSaCji/email-verification.json$"},{"page":"/login","dataRouteRegex":"^/_next/data/YuXZx16H1DusDjnsSaCji/login.json$"},{"page":"/logout","dataRouteRegex":"^/_next/data/YuXZx16H1DusDjnsSaCji/logout.json$"},{"page":"/reset-password","dataRouteRegex":"^/_next/data/YuXZx16H1DusDjnsSaCji/reset-password.json$"},{"page":"/send-password-reset-link","dataRouteRegex":"^/_next/data/YuXZx16H1DusDjnsSaCji/send-password-reset-link.json$"},{"page":"/su","dataRouteRegex":"^/_next/data/YuXZx16H1DusDjnsSaCji/su.json$"},{"page":"/su/backups","dataRouteRegex":"^/_next/data/YuXZx16H1DusDjnsSaCji/su/backups.json$"},{"page":"/su/console","dataRouteRegex":"^/_next/data/YuXZx16H1DusDjnsSaCji/su/console.json$"},{"page":"/su/docs","dataRouteRegex":"^/_next/data/YuXZx16H1DusDjnsSaCji/su/docs.json$"},{"page":"/su/docs/create-page","dataRouteRegex":"^/_next/data/YuXZx16H1DusDjnsSaCji/su/docs/create-page.json$"},{"page":"/su/docs/edit-page","dataRouteRegex":"^/_next/data/YuXZx16H1DusDjnsSaCji/su/docs/edit-page.json$"},{"page":"/su/docs/pages","dataRouteRegex":"^/_next/data/YuXZx16H1DusDjnsSaCji/su/docs/pages.json$"},{"page":"/su/docs/pages/[id]","routeKeys":{"nxtPid":"nxtPid"},"dataRouteRegex":"^/_next/data/YuXZx16H1DusDjnsSaCji/su/docs/pages/([^/]+?)\\.json$","namedDataRouteRegex":"^/_next/data/YuXZx16H1DusDjnsSaCji/su/docs/pages/(?[^/]+?)\\.json$"},{"page":"/su/envar","dataRouteRegex":"^/_next/data/YuXZx16H1DusDjnsSaCji/su/envar.json$"},{"page":"/su/error-logs","dataRouteRegex":"^/_next/data/YuXZx16H1DusDjnsSaCji/su/error-logs.json$"},{"page":"/su/load-balancing","dataRouteRegex":"^/_next/data/YuXZx16H1DusDjnsSaCji/su/load-balancing.json$"},{"page":"/su/login","dataRouteRegex":"^/_next/data/YuXZx16H1DusDjnsSaCji/su/login.json$"},{"page":"/su/servers","dataRouteRegex":"^/_next/data/YuXZx16H1DusDjnsSaCji/su/servers.json$"},{"page":"/su/users","dataRouteRegex":"^/_next/data/YuXZx16H1DusDjnsSaCji/su/users.json$"},{"page":"/su/users/new","dataRouteRegex":"^/_next/data/YuXZx16H1DusDjnsSaCji/su/users/new.json$"},{"page":"/su/users/[single]","routeKeys":{"nxtPsingle":"nxtPsingle"},"dataRouteRegex":"^/_next/data/YuXZx16H1DusDjnsSaCji/su/users/([^/]+?)\\.json$","namedDataRouteRegex":"^/_next/data/YuXZx16H1DusDjnsSaCji/su/users/(?[^/]+?)\\.json$"},{"page":"/unsubscribe","dataRouteRegex":"^/_next/data/YuXZx16H1DusDjnsSaCji/unsubscribe.json$"}],"rsc":{"header":"RSC","varyHeader":"RSC, Next-Router-State-Tree, Next-Router-Prefetch, Next-Router-Segment-Prefetch","prefetchHeader":"Next-Router-Prefetch","didPostponeHeader":"x-nextjs-postponed","contentTypeHeader":"text/x-component","suffix":".rsc","prefetchSuffix":".prefetch.rsc"},"rewrites":[]} \ No newline at end of file +{"version":3,"pages404":true,"caseSensitive":false,"basePath":"","redirects":[{"source":"/:path+/","destination":"/:path+","internal":true,"statusCode":308,"regex":"^(?:/((?:[^/]+?)(?:/(?:[^/]+?))*))/$"}],"headers":[],"dynamicRoutes":[{"page":"/admin/[user_id]","regex":"^/admin/([^/]+?)(?:/)?$","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"namedRegex":"^/admin/(?[^/]+?)(?:/)?$"},{"page":"/admin/[user_id]/api-keys","regex":"^/admin/([^/]+?)/api\\-keys(?:/)?$","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"namedRegex":"^/admin/(?[^/]+?)/api\\-keys(?:/)?$"},{"page":"/admin/[user_id]/connect","regex":"^/admin/([^/]+?)/connect(?:/)?$","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"namedRegex":"^/admin/(?[^/]+?)/connect(?:/)?$"},{"page":"/admin/[user_id]/databases","regex":"^/admin/([^/]+?)/databases(?:/)?$","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"namedRegex":"^/admin/(?[^/]+?)/databases(?:/)?$"},{"page":"/admin/[user_id]/databases/add-database","regex":"^/admin/([^/]+?)/databases/add\\-database(?:/)?$","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"namedRegex":"^/admin/(?[^/]+?)/databases/add\\-database(?:/)?$"},{"page":"/admin/[user_id]/databases/[single]","regex":"^/admin/([^/]+?)/databases/([^/]+?)(?:/)?$","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPsingle":"nxtPsingle"},"namedRegex":"^/admin/(?[^/]+?)/databases/(?[^/]+?)(?:/)?$"},{"page":"/admin/[user_id]/databases/[single]/connect","regex":"^/admin/([^/]+?)/databases/([^/]+?)/connect(?:/)?$","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPsingle":"nxtPsingle"},"namedRegex":"^/admin/(?[^/]+?)/databases/(?[^/]+?)/connect(?:/)?$"},{"page":"/admin/[user_id]/databases/[single]/edit-database","regex":"^/admin/([^/]+?)/databases/([^/]+?)/edit\\-database(?:/)?$","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPsingle":"nxtPsingle"},"namedRegex":"^/admin/(?[^/]+?)/databases/(?[^/]+?)/edit\\-database(?:/)?$"},{"page":"/admin/[user_id]/databases/[single]/schema","regex":"^/admin/([^/]+?)/databases/([^/]+?)/schema(?:/)?$","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPsingle":"nxtPsingle"},"namedRegex":"^/admin/(?[^/]+?)/databases/(?[^/]+?)/schema(?:/)?$"},{"page":"/admin/[user_id]/databases/[single]/shell","regex":"^/admin/([^/]+?)/databases/([^/]+?)/shell(?:/)?$","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPsingle":"nxtPsingle"},"namedRegex":"^/admin/(?[^/]+?)/databases/(?[^/]+?)/shell(?:/)?$"},{"page":"/admin/[user_id]/databases/[single]/tables","regex":"^/admin/([^/]+?)/databases/([^/]+?)/tables(?:/)?$","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPsingle":"nxtPsingle"},"namedRegex":"^/admin/(?[^/]+?)/databases/(?[^/]+?)/tables(?:/)?$"},{"page":"/admin/[user_id]/databases/[single]/tables/add-table","regex":"^/admin/([^/]+?)/databases/([^/]+?)/tables/add\\-table(?:/)?$","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPsingle":"nxtPsingle"},"namedRegex":"^/admin/(?[^/]+?)/databases/(?[^/]+?)/tables/add\\-table(?:/)?$"},{"page":"/admin/[user_id]/databases/[single]/tables/[single_table]","regex":"^/admin/([^/]+?)/databases/([^/]+?)/tables/([^/]+?)(?:/)?$","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPsingle":"nxtPsingle","nxtPsingle_table":"nxtPsingle_table"},"namedRegex":"^/admin/(?[^/]+?)/databases/(?[^/]+?)/tables/(?[^/]+?)(?:/)?$"},{"page":"/admin/[user_id]/databases/[single]/tables/[single_table]/edit-table","regex":"^/admin/([^/]+?)/databases/([^/]+?)/tables/([^/]+?)/edit\\-table(?:/)?$","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPsingle":"nxtPsingle","nxtPsingle_table":"nxtPsingle_table"},"namedRegex":"^/admin/(?[^/]+?)/databases/(?[^/]+?)/tables/(?[^/]+?)/edit\\-table(?:/)?$"},{"page":"/admin/[user_id]/databases/[single]/tables/[single_table]/entries","regex":"^/admin/([^/]+?)/databases/([^/]+?)/tables/([^/]+?)/entries(?:/)?$","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPsingle":"nxtPsingle","nxtPsingle_table":"nxtPsingle_table"},"namedRegex":"^/admin/(?[^/]+?)/databases/(?[^/]+?)/tables/(?[^/]+?)/entries(?:/)?$"},{"page":"/admin/[user_id]/databases/[single]/tables/[single_table]/entries/add-entry","regex":"^/admin/([^/]+?)/databases/([^/]+?)/tables/([^/]+?)/entries/add\\-entry(?:/)?$","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPsingle":"nxtPsingle","nxtPsingle_table":"nxtPsingle_table"},"namedRegex":"^/admin/(?[^/]+?)/databases/(?[^/]+?)/tables/(?[^/]+?)/entries/add\\-entry(?:/)?$"},{"page":"/admin/[user_id]/databases/[single]/tables/[single_table]/entries/[single_entry]","regex":"^/admin/([^/]+?)/databases/([^/]+?)/tables/([^/]+?)/entries/([^/]+?)(?:/)?$","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPsingle":"nxtPsingle","nxtPsingle_table":"nxtPsingle_table","nxtPsingle_entry":"nxtPsingle_entry"},"namedRegex":"^/admin/(?[^/]+?)/databases/(?[^/]+?)/tables/(?[^/]+?)/entries/(?[^/]+?)(?:/)?$"},{"page":"/admin/[user_id]/databases/[single]/tables/[single_table]/fields","regex":"^/admin/([^/]+?)/databases/([^/]+?)/tables/([^/]+?)/fields(?:/)?$","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPsingle":"nxtPsingle","nxtPsingle_table":"nxtPsingle_table"},"namedRegex":"^/admin/(?[^/]+?)/databases/(?[^/]+?)/tables/(?[^/]+?)/fields(?:/)?$"},{"page":"/admin/[user_id]/databases/[single]/users","regex":"^/admin/([^/]+?)/databases/([^/]+?)/users(?:/)?$","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPsingle":"nxtPsingle"},"namedRegex":"^/admin/(?[^/]+?)/databases/(?[^/]+?)/users(?:/)?$"},{"page":"/admin/[user_id]/databases/[single]/users/add-social-logins","regex":"^/admin/([^/]+?)/databases/([^/]+?)/users/add\\-social\\-logins(?:/)?$","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPsingle":"nxtPsingle"},"namedRegex":"^/admin/(?[^/]+?)/databases/(?[^/]+?)/users/add\\-social\\-logins(?:/)?$"},{"page":"/admin/[user_id]/databases/[single]/users/add-user","regex":"^/admin/([^/]+?)/databases/([^/]+?)/users/add\\-user(?:/)?$","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPsingle":"nxtPsingle"},"namedRegex":"^/admin/(?[^/]+?)/databases/(?[^/]+?)/users/add\\-user(?:/)?$"},{"page":"/admin/[user_id]/databases/[single]/users/[user]","regex":"^/admin/([^/]+?)/databases/([^/]+?)/users/([^/]+?)(?:/)?$","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPsingle":"nxtPsingle","nxtPuser":"nxtPuser"},"namedRegex":"^/admin/(?[^/]+?)/databases/(?[^/]+?)/users/(?[^/]+?)(?:/)?$"},{"page":"/admin/[user_id]/databases/[single]/users/[user]/change-password","regex":"^/admin/([^/]+?)/databases/([^/]+?)/users/([^/]+?)/change\\-password(?:/)?$","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPsingle":"nxtPsingle","nxtPuser":"nxtPuser"},"namedRegex":"^/admin/(?[^/]+?)/databases/(?[^/]+?)/users/(?[^/]+?)/change\\-password(?:/)?$"},{"page":"/admin/[user_id]/media","regex":"^/admin/([^/]+?)/media(?:/)?$","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"namedRegex":"^/admin/(?[^/]+?)/media(?:/)?$"},{"page":"/admin/[user_id]/media/[...folder]","regex":"^/admin/([^/]+?)/media/(.+?)(?:/)?$","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPfolder":"nxtPfolder"},"namedRegex":"^/admin/(?[^/]+?)/media/(?.+?)(?:/)?$"},{"page":"/admin/[user_id]/schema","regex":"^/admin/([^/]+?)/schema(?:/)?$","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"namedRegex":"^/admin/(?[^/]+?)/schema(?:/)?$"},{"page":"/admin/[user_id]/settings","regex":"^/admin/([^/]+?)/settings(?:/)?$","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"namedRegex":"^/admin/(?[^/]+?)/settings(?:/)?$"},{"page":"/admin/[user_id]/users","regex":"^/admin/([^/]+?)/users(?:/)?$","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"namedRegex":"^/admin/(?[^/]+?)/users(?:/)?$"},{"page":"/admin/[user_id]/users/add-user","regex":"^/admin/([^/]+?)/users/add\\-user(?:/)?$","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"namedRegex":"^/admin/(?[^/]+?)/users/add\\-user(?:/)?$"},{"page":"/admin/[user_id]/users/databases","regex":"^/admin/([^/]+?)/users/databases(?:/)?$","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"namedRegex":"^/admin/(?[^/]+?)/users/databases(?:/)?$"},{"page":"/admin/[user_id]/users/databases/[database]","regex":"^/admin/([^/]+?)/users/databases/([^/]+?)(?:/)?$","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPdatabase":"nxtPdatabase"},"namedRegex":"^/admin/(?[^/]+?)/users/databases/(?[^/]+?)(?:/)?$"},{"page":"/admin/[user_id]/users/databases/[database]/[user]","regex":"^/admin/([^/]+?)/users/databases/([^/]+?)/([^/]+?)(?:/)?$","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPdatabase":"nxtPdatabase","nxtPuser":"nxtPuser"},"namedRegex":"^/admin/(?[^/]+?)/users/databases/(?[^/]+?)/(?[^/]+?)(?:/)?$"},{"page":"/api/admin/docs/[action]","regex":"^/api/admin/docs/([^/]+?)(?:/)?$","routeKeys":{"nxtPaction":"nxtPaction"},"namedRegex":"^/api/admin/docs/(?[^/]+?)(?:/)?$"},{"page":"/api/query/[user_id]/add-file","regex":"^/api/query/([^/]+?)/add\\-file(?:/)?$","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"namedRegex":"^/api/query/(?[^/]+?)/add\\-file(?:/)?$"},{"page":"/api/query/[user_id]/add-image","regex":"^/api/query/([^/]+?)/add\\-image(?:/)?$","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"namedRegex":"^/api/query/(?[^/]+?)/add\\-image(?:/)?$"},{"page":"/api/query/[user_id]/delete-file","regex":"^/api/query/([^/]+?)/delete\\-file(?:/)?$","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"namedRegex":"^/api/query/(?[^/]+?)/delete\\-file(?:/)?$"},{"page":"/api/query/[user_id]/get","regex":"^/api/query/([^/]+?)/get(?:/)?$","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"namedRegex":"^/api/query/(?[^/]+?)/get(?:/)?$"},{"page":"/api/query/[user_id]/get-private-file","regex":"^/api/query/([^/]+?)/get\\-private\\-file(?:/)?$","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"namedRegex":"^/api/query/(?[^/]+?)/get\\-private\\-file(?:/)?$"},{"page":"/api/query/[user_id]/get-schema","regex":"^/api/query/([^/]+?)/get\\-schema(?:/)?$","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"namedRegex":"^/api/query/(?[^/]+?)/get\\-schema(?:/)?$"},{"page":"/api/query/[user_id]/post","regex":"^/api/query/([^/]+?)/post(?:/)?$","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"namedRegex":"^/api/query/(?[^/]+?)/post(?:/)?$"},{"page":"/api/query/[user_id]/update-schema-from-single-database","regex":"^/api/query/([^/]+?)/update\\-schema\\-from\\-single\\-database(?:/)?$","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"namedRegex":"^/api/query/(?[^/]+?)/update\\-schema\\-from\\-single\\-database(?:/)?$"},{"page":"/api/stream/[path]","regex":"^/api/stream/([^/]+?)(?:/)?$","routeKeys":{"nxtPpath":"nxtPpath"},"namedRegex":"^/api/stream/(?[^/]+?)(?:/)?$"},{"page":"/api/user/[user_id]/add-user","regex":"^/api/user/([^/]+?)/add\\-user(?:/)?$","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"namedRegex":"^/api/user/(?[^/]+?)/add\\-user(?:/)?$"},{"page":"/api/user/[user_id]/delete-user","regex":"^/api/user/([^/]+?)/delete\\-user(?:/)?$","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"namedRegex":"^/api/user/(?[^/]+?)/delete\\-user(?:/)?$"},{"page":"/api/user/[user_id]/get-user","regex":"^/api/user/([^/]+?)/get\\-user(?:/)?$","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"namedRegex":"^/api/user/(?[^/]+?)/get\\-user(?:/)?$"},{"page":"/api/user/[user_id]/github-login","regex":"^/api/user/([^/]+?)/github\\-login(?:/)?$","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"namedRegex":"^/api/user/(?[^/]+?)/github\\-login(?:/)?$"},{"page":"/api/user/[user_id]/google-login","regex":"^/api/user/([^/]+?)/google\\-login(?:/)?$","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"namedRegex":"^/api/user/(?[^/]+?)/google\\-login(?:/)?$"},{"page":"/api/user/[user_id]/grab-google-user-from-token","regex":"^/api/user/([^/]+?)/grab\\-google\\-user\\-from\\-token(?:/)?$","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"namedRegex":"^/api/user/(?[^/]+?)/grab\\-google\\-user\\-from\\-token(?:/)?$"},{"page":"/api/user/[user_id]/login-user","regex":"^/api/user/([^/]+?)/login\\-user(?:/)?$","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"namedRegex":"^/api/user/(?[^/]+?)/login\\-user(?:/)?$"},{"page":"/api/user/[user_id]/reauth-user","regex":"^/api/user/([^/]+?)/reauth\\-user(?:/)?$","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"namedRegex":"^/api/user/(?[^/]+?)/reauth\\-user(?:/)?$"},{"page":"/api/user/[user_id]/send-email-code","regex":"^/api/user/([^/]+?)/send\\-email\\-code(?:/)?$","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"namedRegex":"^/api/user/(?[^/]+?)/send\\-email\\-code(?:/)?$"},{"page":"/api/user/[user_id]/update-user","regex":"^/api/user/([^/]+?)/update\\-user(?:/)?$","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"namedRegex":"^/api/user/(?[^/]+?)/update\\-user(?:/)?$"},{"page":"/docs/[page]","regex":"^/docs/([^/]+?)(?:/)?$","routeKeys":{"nxtPpage":"nxtPpage"},"namedRegex":"^/docs/(?[^/]+?)(?:/)?$"},{"page":"/docs/[page]/[sub-page]","regex":"^/docs/([^/]+?)/([^/]+?)(?:/)?$","routeKeys":{"nxtPpage":"nxtPpage","nxtPsubpage":"nxtPsub-page"},"namedRegex":"^/docs/(?[^/]+?)/(?[^/]+?)(?:/)?$"},{"page":"/su/docs/pages/[id]","regex":"^/su/docs/pages/([^/]+?)(?:/)?$","routeKeys":{"nxtPid":"nxtPid"},"namedRegex":"^/su/docs/pages/(?[^/]+?)(?:/)?$"},{"page":"/su/users/[single]","regex":"^/su/users/([^/]+?)(?:/)?$","routeKeys":{"nxtPsingle":"nxtPsingle"},"namedRegex":"^/su/users/(?[^/]+?)(?:/)?$"}],"staticRoutes":[{"page":"/","regex":"^/(?:/)?$","routeKeys":{},"namedRegex":"^/(?:/)?$"},{"page":"/404","regex":"^/404(?:/)?$","routeKeys":{},"namedRegex":"^/404(?:/)?$"},{"page":"/500","regex":"^/500(?:/)?$","routeKeys":{},"namedRegex":"^/500(?:/)?$"},{"page":"/about","regex":"^/about(?:/)?$","routeKeys":{},"namedRegex":"^/about(?:/)?$"},{"page":"/admin","regex":"^/admin(?:/)?$","routeKeys":{},"namedRegex":"^/admin(?:/)?$"},{"page":"/blog","regex":"^/blog(?:/)?$","routeKeys":{},"namedRegex":"^/blog(?:/)?$"},{"page":"/contact","regex":"^/contact(?:/)?$","routeKeys":{},"namedRegex":"^/contact(?:/)?$"},{"page":"/create-account","regex":"^/create\\-account(?:/)?$","routeKeys":{},"namedRegex":"^/create\\-account(?:/)?$"},{"page":"/docs","regex":"^/docs(?:/)?$","routeKeys":{},"namedRegex":"^/docs(?:/)?$"},{"page":"/email-verification","regex":"^/email\\-verification(?:/)?$","routeKeys":{},"namedRegex":"^/email\\-verification(?:/)?$"},{"page":"/login","regex":"^/login(?:/)?$","routeKeys":{},"namedRegex":"^/login(?:/)?$"},{"page":"/logout","regex":"^/logout(?:/)?$","routeKeys":{},"namedRegex":"^/logout(?:/)?$"},{"page":"/privacy","regex":"^/privacy(?:/)?$","routeKeys":{},"namedRegex":"^/privacy(?:/)?$"},{"page":"/redirect","regex":"^/redirect(?:/)?$","routeKeys":{},"namedRegex":"^/redirect(?:/)?$"},{"page":"/reset-password","regex":"^/reset\\-password(?:/)?$","routeKeys":{},"namedRegex":"^/reset\\-password(?:/)?$"},{"page":"/send-password-reset-link","regex":"^/send\\-password\\-reset\\-link(?:/)?$","routeKeys":{},"namedRegex":"^/send\\-password\\-reset\\-link(?:/)?$"},{"page":"/su","regex":"^/su(?:/)?$","routeKeys":{},"namedRegex":"^/su(?:/)?$"},{"page":"/su/backups","regex":"^/su/backups(?:/)?$","routeKeys":{},"namedRegex":"^/su/backups(?:/)?$"},{"page":"/su/console","regex":"^/su/console(?:/)?$","routeKeys":{},"namedRegex":"^/su/console(?:/)?$"},{"page":"/su/docs","regex":"^/su/docs(?:/)?$","routeKeys":{},"namedRegex":"^/su/docs(?:/)?$"},{"page":"/su/docs/create-page","regex":"^/su/docs/create\\-page(?:/)?$","routeKeys":{},"namedRegex":"^/su/docs/create\\-page(?:/)?$"},{"page":"/su/docs/edit-page","regex":"^/su/docs/edit\\-page(?:/)?$","routeKeys":{},"namedRegex":"^/su/docs/edit\\-page(?:/)?$"},{"page":"/su/docs/pages","regex":"^/su/docs/pages(?:/)?$","routeKeys":{},"namedRegex":"^/su/docs/pages(?:/)?$"},{"page":"/su/envar","regex":"^/su/envar(?:/)?$","routeKeys":{},"namedRegex":"^/su/envar(?:/)?$"},{"page":"/su/error-logs","regex":"^/su/error\\-logs(?:/)?$","routeKeys":{},"namedRegex":"^/su/error\\-logs(?:/)?$"},{"page":"/su/load-balancing","regex":"^/su/load\\-balancing(?:/)?$","routeKeys":{},"namedRegex":"^/su/load\\-balancing(?:/)?$"},{"page":"/su/login","regex":"^/su/login(?:/)?$","routeKeys":{},"namedRegex":"^/su/login(?:/)?$"},{"page":"/su/servers","regex":"^/su/servers(?:/)?$","routeKeys":{},"namedRegex":"^/su/servers(?:/)?$"},{"page":"/su/users","regex":"^/su/users(?:/)?$","routeKeys":{},"namedRegex":"^/su/users(?:/)?$"},{"page":"/su/users/new","regex":"^/su/users/new(?:/)?$","routeKeys":{},"namedRegex":"^/su/users/new(?:/)?$"},{"page":"/terms","regex":"^/terms(?:/)?$","routeKeys":{},"namedRegex":"^/terms(?:/)?$"},{"page":"/unsubscribe","regex":"^/unsubscribe(?:/)?$","routeKeys":{},"namedRegex":"^/unsubscribe(?:/)?$"}],"dataRoutes":[{"page":"/admin","dataRouteRegex":"^/_next/data/Vwi6iXhX7A60Ca2R9JTQV/admin.json$"},{"page":"/admin/[user_id]","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"dataRouteRegex":"^/_next/data/Vwi6iXhX7A60Ca2R9JTQV/admin/([^/]+?)\\.json$","namedDataRouteRegex":"^/_next/data/Vwi6iXhX7A60Ca2R9JTQV/admin/(?[^/]+?)\\.json$"},{"page":"/admin/[user_id]/api-keys","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"dataRouteRegex":"^/_next/data/Vwi6iXhX7A60Ca2R9JTQV/admin/([^/]+?)/api\\-keys\\.json$","namedDataRouteRegex":"^/_next/data/Vwi6iXhX7A60Ca2R9JTQV/admin/(?[^/]+?)/api\\-keys\\.json$"},{"page":"/admin/[user_id]/connect","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"dataRouteRegex":"^/_next/data/Vwi6iXhX7A60Ca2R9JTQV/admin/([^/]+?)/connect\\.json$","namedDataRouteRegex":"^/_next/data/Vwi6iXhX7A60Ca2R9JTQV/admin/(?[^/]+?)/connect\\.json$"},{"page":"/admin/[user_id]/databases","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"dataRouteRegex":"^/_next/data/Vwi6iXhX7A60Ca2R9JTQV/admin/([^/]+?)/databases\\.json$","namedDataRouteRegex":"^/_next/data/Vwi6iXhX7A60Ca2R9JTQV/admin/(?[^/]+?)/databases\\.json$"},{"page":"/admin/[user_id]/databases/add-database","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"dataRouteRegex":"^/_next/data/Vwi6iXhX7A60Ca2R9JTQV/admin/([^/]+?)/databases/add\\-database\\.json$","namedDataRouteRegex":"^/_next/data/Vwi6iXhX7A60Ca2R9JTQV/admin/(?[^/]+?)/databases/add\\-database\\.json$"},{"page":"/admin/[user_id]/databases/[single]","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPsingle":"nxtPsingle"},"dataRouteRegex":"^/_next/data/Vwi6iXhX7A60Ca2R9JTQV/admin/([^/]+?)/databases/([^/]+?)\\.json$","namedDataRouteRegex":"^/_next/data/Vwi6iXhX7A60Ca2R9JTQV/admin/(?[^/]+?)/databases/(?[^/]+?)\\.json$"},{"page":"/admin/[user_id]/databases/[single]/connect","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPsingle":"nxtPsingle"},"dataRouteRegex":"^/_next/data/Vwi6iXhX7A60Ca2R9JTQV/admin/([^/]+?)/databases/([^/]+?)/connect\\.json$","namedDataRouteRegex":"^/_next/data/Vwi6iXhX7A60Ca2R9JTQV/admin/(?[^/]+?)/databases/(?[^/]+?)/connect\\.json$"},{"page":"/admin/[user_id]/databases/[single]/edit-database","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPsingle":"nxtPsingle"},"dataRouteRegex":"^/_next/data/Vwi6iXhX7A60Ca2R9JTQV/admin/([^/]+?)/databases/([^/]+?)/edit\\-database\\.json$","namedDataRouteRegex":"^/_next/data/Vwi6iXhX7A60Ca2R9JTQV/admin/(?[^/]+?)/databases/(?[^/]+?)/edit\\-database\\.json$"},{"page":"/admin/[user_id]/databases/[single]/schema","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPsingle":"nxtPsingle"},"dataRouteRegex":"^/_next/data/Vwi6iXhX7A60Ca2R9JTQV/admin/([^/]+?)/databases/([^/]+?)/schema\\.json$","namedDataRouteRegex":"^/_next/data/Vwi6iXhX7A60Ca2R9JTQV/admin/(?[^/]+?)/databases/(?[^/]+?)/schema\\.json$"},{"page":"/admin/[user_id]/databases/[single]/shell","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPsingle":"nxtPsingle"},"dataRouteRegex":"^/_next/data/Vwi6iXhX7A60Ca2R9JTQV/admin/([^/]+?)/databases/([^/]+?)/shell\\.json$","namedDataRouteRegex":"^/_next/data/Vwi6iXhX7A60Ca2R9JTQV/admin/(?[^/]+?)/databases/(?[^/]+?)/shell\\.json$"},{"page":"/admin/[user_id]/databases/[single]/tables","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPsingle":"nxtPsingle"},"dataRouteRegex":"^/_next/data/Vwi6iXhX7A60Ca2R9JTQV/admin/([^/]+?)/databases/([^/]+?)/tables\\.json$","namedDataRouteRegex":"^/_next/data/Vwi6iXhX7A60Ca2R9JTQV/admin/(?[^/]+?)/databases/(?[^/]+?)/tables\\.json$"},{"page":"/admin/[user_id]/databases/[single]/tables/add-table","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPsingle":"nxtPsingle"},"dataRouteRegex":"^/_next/data/Vwi6iXhX7A60Ca2R9JTQV/admin/([^/]+?)/databases/([^/]+?)/tables/add\\-table\\.json$","namedDataRouteRegex":"^/_next/data/Vwi6iXhX7A60Ca2R9JTQV/admin/(?[^/]+?)/databases/(?[^/]+?)/tables/add\\-table\\.json$"},{"page":"/admin/[user_id]/databases/[single]/tables/[single_table]","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPsingle":"nxtPsingle","nxtPsingle_table":"nxtPsingle_table"},"dataRouteRegex":"^/_next/data/Vwi6iXhX7A60Ca2R9JTQV/admin/([^/]+?)/databases/([^/]+?)/tables/([^/]+?)\\.json$","namedDataRouteRegex":"^/_next/data/Vwi6iXhX7A60Ca2R9JTQV/admin/(?[^/]+?)/databases/(?[^/]+?)/tables/(?[^/]+?)\\.json$"},{"page":"/admin/[user_id]/databases/[single]/tables/[single_table]/edit-table","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPsingle":"nxtPsingle","nxtPsingle_table":"nxtPsingle_table"},"dataRouteRegex":"^/_next/data/Vwi6iXhX7A60Ca2R9JTQV/admin/([^/]+?)/databases/([^/]+?)/tables/([^/]+?)/edit\\-table\\.json$","namedDataRouteRegex":"^/_next/data/Vwi6iXhX7A60Ca2R9JTQV/admin/(?[^/]+?)/databases/(?[^/]+?)/tables/(?[^/]+?)/edit\\-table\\.json$"},{"page":"/admin/[user_id]/databases/[single]/tables/[single_table]/entries","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPsingle":"nxtPsingle","nxtPsingle_table":"nxtPsingle_table"},"dataRouteRegex":"^/_next/data/Vwi6iXhX7A60Ca2R9JTQV/admin/([^/]+?)/databases/([^/]+?)/tables/([^/]+?)/entries\\.json$","namedDataRouteRegex":"^/_next/data/Vwi6iXhX7A60Ca2R9JTQV/admin/(?[^/]+?)/databases/(?[^/]+?)/tables/(?[^/]+?)/entries\\.json$"},{"page":"/admin/[user_id]/databases/[single]/tables/[single_table]/entries/add-entry","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPsingle":"nxtPsingle","nxtPsingle_table":"nxtPsingle_table"},"dataRouteRegex":"^/_next/data/Vwi6iXhX7A60Ca2R9JTQV/admin/([^/]+?)/databases/([^/]+?)/tables/([^/]+?)/entries/add\\-entry\\.json$","namedDataRouteRegex":"^/_next/data/Vwi6iXhX7A60Ca2R9JTQV/admin/(?[^/]+?)/databases/(?[^/]+?)/tables/(?[^/]+?)/entries/add\\-entry\\.json$"},{"page":"/admin/[user_id]/databases/[single]/tables/[single_table]/entries/[single_entry]","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPsingle":"nxtPsingle","nxtPsingle_table":"nxtPsingle_table","nxtPsingle_entry":"nxtPsingle_entry"},"dataRouteRegex":"^/_next/data/Vwi6iXhX7A60Ca2R9JTQV/admin/([^/]+?)/databases/([^/]+?)/tables/([^/]+?)/entries/([^/]+?)\\.json$","namedDataRouteRegex":"^/_next/data/Vwi6iXhX7A60Ca2R9JTQV/admin/(?[^/]+?)/databases/(?[^/]+?)/tables/(?[^/]+?)/entries/(?[^/]+?)\\.json$"},{"page":"/admin/[user_id]/databases/[single]/tables/[single_table]/fields","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPsingle":"nxtPsingle","nxtPsingle_table":"nxtPsingle_table"},"dataRouteRegex":"^/_next/data/Vwi6iXhX7A60Ca2R9JTQV/admin/([^/]+?)/databases/([^/]+?)/tables/([^/]+?)/fields\\.json$","namedDataRouteRegex":"^/_next/data/Vwi6iXhX7A60Ca2R9JTQV/admin/(?[^/]+?)/databases/(?[^/]+?)/tables/(?[^/]+?)/fields\\.json$"},{"page":"/admin/[user_id]/databases/[single]/users","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPsingle":"nxtPsingle"},"dataRouteRegex":"^/_next/data/Vwi6iXhX7A60Ca2R9JTQV/admin/([^/]+?)/databases/([^/]+?)/users\\.json$","namedDataRouteRegex":"^/_next/data/Vwi6iXhX7A60Ca2R9JTQV/admin/(?[^/]+?)/databases/(?[^/]+?)/users\\.json$"},{"page":"/admin/[user_id]/databases/[single]/users/add-social-logins","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPsingle":"nxtPsingle"},"dataRouteRegex":"^/_next/data/Vwi6iXhX7A60Ca2R9JTQV/admin/([^/]+?)/databases/([^/]+?)/users/add\\-social\\-logins\\.json$","namedDataRouteRegex":"^/_next/data/Vwi6iXhX7A60Ca2R9JTQV/admin/(?[^/]+?)/databases/(?[^/]+?)/users/add\\-social\\-logins\\.json$"},{"page":"/admin/[user_id]/databases/[single]/users/add-user","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPsingle":"nxtPsingle"},"dataRouteRegex":"^/_next/data/Vwi6iXhX7A60Ca2R9JTQV/admin/([^/]+?)/databases/([^/]+?)/users/add\\-user\\.json$","namedDataRouteRegex":"^/_next/data/Vwi6iXhX7A60Ca2R9JTQV/admin/(?[^/]+?)/databases/(?[^/]+?)/users/add\\-user\\.json$"},{"page":"/admin/[user_id]/databases/[single]/users/[user]","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPsingle":"nxtPsingle","nxtPuser":"nxtPuser"},"dataRouteRegex":"^/_next/data/Vwi6iXhX7A60Ca2R9JTQV/admin/([^/]+?)/databases/([^/]+?)/users/([^/]+?)\\.json$","namedDataRouteRegex":"^/_next/data/Vwi6iXhX7A60Ca2R9JTQV/admin/(?[^/]+?)/databases/(?[^/]+?)/users/(?[^/]+?)\\.json$"},{"page":"/admin/[user_id]/databases/[single]/users/[user]/change-password","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPsingle":"nxtPsingle","nxtPuser":"nxtPuser"},"dataRouteRegex":"^/_next/data/Vwi6iXhX7A60Ca2R9JTQV/admin/([^/]+?)/databases/([^/]+?)/users/([^/]+?)/change\\-password\\.json$","namedDataRouteRegex":"^/_next/data/Vwi6iXhX7A60Ca2R9JTQV/admin/(?[^/]+?)/databases/(?[^/]+?)/users/(?[^/]+?)/change\\-password\\.json$"},{"page":"/admin/[user_id]/media","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"dataRouteRegex":"^/_next/data/Vwi6iXhX7A60Ca2R9JTQV/admin/([^/]+?)/media\\.json$","namedDataRouteRegex":"^/_next/data/Vwi6iXhX7A60Ca2R9JTQV/admin/(?[^/]+?)/media\\.json$"},{"page":"/admin/[user_id]/media/[...folder]","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPfolder":"nxtPfolder"},"dataRouteRegex":"^/_next/data/Vwi6iXhX7A60Ca2R9JTQV/admin/([^/]+?)/media/(.+?)\\.json$","namedDataRouteRegex":"^/_next/data/Vwi6iXhX7A60Ca2R9JTQV/admin/(?[^/]+?)/media/(?.+?)\\.json$"},{"page":"/admin/[user_id]/schema","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"dataRouteRegex":"^/_next/data/Vwi6iXhX7A60Ca2R9JTQV/admin/([^/]+?)/schema\\.json$","namedDataRouteRegex":"^/_next/data/Vwi6iXhX7A60Ca2R9JTQV/admin/(?[^/]+?)/schema\\.json$"},{"page":"/admin/[user_id]/settings","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"dataRouteRegex":"^/_next/data/Vwi6iXhX7A60Ca2R9JTQV/admin/([^/]+?)/settings\\.json$","namedDataRouteRegex":"^/_next/data/Vwi6iXhX7A60Ca2R9JTQV/admin/(?[^/]+?)/settings\\.json$"},{"page":"/admin/[user_id]/users","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"dataRouteRegex":"^/_next/data/Vwi6iXhX7A60Ca2R9JTQV/admin/([^/]+?)/users\\.json$","namedDataRouteRegex":"^/_next/data/Vwi6iXhX7A60Ca2R9JTQV/admin/(?[^/]+?)/users\\.json$"},{"page":"/admin/[user_id]/users/add-user","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"dataRouteRegex":"^/_next/data/Vwi6iXhX7A60Ca2R9JTQV/admin/([^/]+?)/users/add\\-user\\.json$","namedDataRouteRegex":"^/_next/data/Vwi6iXhX7A60Ca2R9JTQV/admin/(?[^/]+?)/users/add\\-user\\.json$"},{"page":"/admin/[user_id]/users/databases","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"dataRouteRegex":"^/_next/data/Vwi6iXhX7A60Ca2R9JTQV/admin/([^/]+?)/users/databases\\.json$","namedDataRouteRegex":"^/_next/data/Vwi6iXhX7A60Ca2R9JTQV/admin/(?[^/]+?)/users/databases\\.json$"},{"page":"/admin/[user_id]/users/databases/[database]","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPdatabase":"nxtPdatabase"},"dataRouteRegex":"^/_next/data/Vwi6iXhX7A60Ca2R9JTQV/admin/([^/]+?)/users/databases/([^/]+?)\\.json$","namedDataRouteRegex":"^/_next/data/Vwi6iXhX7A60Ca2R9JTQV/admin/(?[^/]+?)/users/databases/(?[^/]+?)\\.json$"},{"page":"/admin/[user_id]/users/databases/[database]/[user]","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPdatabase":"nxtPdatabase","nxtPuser":"nxtPuser"},"dataRouteRegex":"^/_next/data/Vwi6iXhX7A60Ca2R9JTQV/admin/([^/]+?)/users/databases/([^/]+?)/([^/]+?)\\.json$","namedDataRouteRegex":"^/_next/data/Vwi6iXhX7A60Ca2R9JTQV/admin/(?[^/]+?)/users/databases/(?[^/]+?)/(?[^/]+?)\\.json$"},{"page":"/create-account","dataRouteRegex":"^/_next/data/Vwi6iXhX7A60Ca2R9JTQV/create-account.json$"},{"page":"/docs","dataRouteRegex":"^/_next/data/Vwi6iXhX7A60Ca2R9JTQV/docs.json$"},{"page":"/docs/[page]","routeKeys":{"nxtPpage":"nxtPpage"},"dataRouteRegex":"^/_next/data/Vwi6iXhX7A60Ca2R9JTQV/docs/([^/]+?)\\.json$","namedDataRouteRegex":"^/_next/data/Vwi6iXhX7A60Ca2R9JTQV/docs/(?[^/]+?)\\.json$"},{"page":"/docs/[page]/[sub-page]","routeKeys":{"nxtPpage":"nxtPpage","nxtPsubpage":"nxtPsub-page"},"dataRouteRegex":"^/_next/data/Vwi6iXhX7A60Ca2R9JTQV/docs/([^/]+?)/([^/]+?)\\.json$","namedDataRouteRegex":"^/_next/data/Vwi6iXhX7A60Ca2R9JTQV/docs/(?[^/]+?)/(?[^/]+?)\\.json$"},{"page":"/email-verification","dataRouteRegex":"^/_next/data/Vwi6iXhX7A60Ca2R9JTQV/email-verification.json$"},{"page":"/login","dataRouteRegex":"^/_next/data/Vwi6iXhX7A60Ca2R9JTQV/login.json$"},{"page":"/logout","dataRouteRegex":"^/_next/data/Vwi6iXhX7A60Ca2R9JTQV/logout.json$"},{"page":"/reset-password","dataRouteRegex":"^/_next/data/Vwi6iXhX7A60Ca2R9JTQV/reset-password.json$"},{"page":"/send-password-reset-link","dataRouteRegex":"^/_next/data/Vwi6iXhX7A60Ca2R9JTQV/send-password-reset-link.json$"},{"page":"/su","dataRouteRegex":"^/_next/data/Vwi6iXhX7A60Ca2R9JTQV/su.json$"},{"page":"/su/backups","dataRouteRegex":"^/_next/data/Vwi6iXhX7A60Ca2R9JTQV/su/backups.json$"},{"page":"/su/console","dataRouteRegex":"^/_next/data/Vwi6iXhX7A60Ca2R9JTQV/su/console.json$"},{"page":"/su/docs","dataRouteRegex":"^/_next/data/Vwi6iXhX7A60Ca2R9JTQV/su/docs.json$"},{"page":"/su/docs/create-page","dataRouteRegex":"^/_next/data/Vwi6iXhX7A60Ca2R9JTQV/su/docs/create-page.json$"},{"page":"/su/docs/edit-page","dataRouteRegex":"^/_next/data/Vwi6iXhX7A60Ca2R9JTQV/su/docs/edit-page.json$"},{"page":"/su/docs/pages","dataRouteRegex":"^/_next/data/Vwi6iXhX7A60Ca2R9JTQV/su/docs/pages.json$"},{"page":"/su/docs/pages/[id]","routeKeys":{"nxtPid":"nxtPid"},"dataRouteRegex":"^/_next/data/Vwi6iXhX7A60Ca2R9JTQV/su/docs/pages/([^/]+?)\\.json$","namedDataRouteRegex":"^/_next/data/Vwi6iXhX7A60Ca2R9JTQV/su/docs/pages/(?[^/]+?)\\.json$"},{"page":"/su/envar","dataRouteRegex":"^/_next/data/Vwi6iXhX7A60Ca2R9JTQV/su/envar.json$"},{"page":"/su/error-logs","dataRouteRegex":"^/_next/data/Vwi6iXhX7A60Ca2R9JTQV/su/error-logs.json$"},{"page":"/su/load-balancing","dataRouteRegex":"^/_next/data/Vwi6iXhX7A60Ca2R9JTQV/su/load-balancing.json$"},{"page":"/su/login","dataRouteRegex":"^/_next/data/Vwi6iXhX7A60Ca2R9JTQV/su/login.json$"},{"page":"/su/servers","dataRouteRegex":"^/_next/data/Vwi6iXhX7A60Ca2R9JTQV/su/servers.json$"},{"page":"/su/users","dataRouteRegex":"^/_next/data/Vwi6iXhX7A60Ca2R9JTQV/su/users.json$"},{"page":"/su/users/new","dataRouteRegex":"^/_next/data/Vwi6iXhX7A60Ca2R9JTQV/su/users/new.json$"},{"page":"/su/users/[single]","routeKeys":{"nxtPsingle":"nxtPsingle"},"dataRouteRegex":"^/_next/data/Vwi6iXhX7A60Ca2R9JTQV/su/users/([^/]+?)\\.json$","namedDataRouteRegex":"^/_next/data/Vwi6iXhX7A60Ca2R9JTQV/su/users/(?[^/]+?)\\.json$"},{"page":"/unsubscribe","dataRouteRegex":"^/_next/data/Vwi6iXhX7A60Ca2R9JTQV/unsubscribe.json$"}],"rsc":{"header":"RSC","varyHeader":"RSC, Next-Router-State-Tree, Next-Router-Prefetch, Next-Router-Segment-Prefetch","prefetchHeader":"Next-Router-Prefetch","didPostponeHeader":"x-nextjs-postponed","contentTypeHeader":"text/x-component","suffix":".rsc","prefetchSuffix":".prefetch.rsc"},"rewrites":[]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/1251.js b/dsql-app/.local_dist/server/chunks/1251.js index 6322b71..1986ecf 100644 --- a/dsql-app/.local_dist/server/chunks/1251.js +++ b/dsql-app/.local_dist/server/chunks/1251.js @@ -1 +1 @@ -"use strict";exports.id=1251,exports.ids=[1251],exports.modules={96762:(e,t)=>{Object.defineProperty(t,"M",{enumerable:!0,get:function(){return function e(t,r){return r in t?t[r]:"then"in t&&"function"==typeof t.then?t.then(t=>e(t,r)):"function"==typeof t&&"default"===r?t:void 0}}})},98e3:(e,t,r)=>{r.d(t,{A:()=>d});var n=r(72583),a=r.n(n),o=r(92652),s=r(30802),l=r(48786),c=r(37275),i=r(68829),u=r(7971);async function d({dbContext:e,paradigm:t,dbFullName:r,tableName:n,data:d,tableSchema:p,duplicateColumnName:f,duplicateColumnValue:_,update:g,encryptionKey:h,encryptionSalt:y,useLocal:S}){let E=!!S||!e?.match(/dsql.user/i)&&(!r||!!r.match(/^datasquirel$/)),m=S?u.A:E?l.A:c.default;if(d?.date_created_timestamp&&delete d.date_created_timestamp,d?.date_updated_timestamp&&delete d.date_updated_timestamp,d?.date_updated&&delete d.date_updated,d?.date_updated_code&&delete d.date_updated_code,d?.date_created&&delete d.date_created,d?.date_created_code&&delete d.date_created_code,f&&"string"==typeof f){let a=E?await m(`SELECT * FROM \`${n}\` WHERE \`${f}\`=?`,[_]):await m({paradigm:"Read Only",queryString:`SELECT * FROM \`${r}\`.\`${n}\` WHERE \`${f}\`=?`,queryValues:[_]});if(a?.[0]&&!g)return null;if(a&&a[0]&&g)return await (0,s.A)({dbContext:e,paradigm:t,dbFullName:r,tableName:n,data:d,tableSchema:p,encryptionKey:h,encryptionSalt:y,identifierColumnName:f,identifierValue:_||""})}let D=Object.keys(d),A=[],N=[];for(let e=0;ee.fieldName==t):null,s=n&&n[0]?n[0]:null;if(null==r||void 0==r||s?.dataType?.match(/int$/i)&&"string"==typeof r&&!r?.match(/./))continue;s?.encrypted&&(r=(0,i.default)({data:r,encryptionKey:h,encryptionSalt:y}),console.log("DSQL: Encrypted value =>",r));let l=/<[^>]+>/g;(s?.richText||String(r).match(l))&&(r=a()(r,o.A)),s?.pattern&&!new RegExp(s.pattern,s.patternFlags||"").test(r)&&(console.log("DSQL: Pattern not matched =>",r),r=""),A.push("`"+t+"`"),"object"==typeof r&&(r=JSON.stringify(r)),"number"==typeof r?N.push(String(r)):N.push(r)}catch(e){console.log("DSQL: Error in parsing data keys =>",e.message);continue}d?.date_created||(A.push("`date_created`"),N.push(Date())),d?.date_created_code||(A.push("`date_created_code`"),N.push(Date.now())),d?.date_updated||(A.push("`date_updated`"),N.push(Date())),d?.date_updated_code||(A.push("`date_updated_code`"),N.push(Date.now()));let L=`INSERT INTO \`${r}\`.\`${n}\` (${A.join(",")}) VALUES (${N.map(()=>"?").join(",")})`;return E?await m(L,N):await m({paradigm:t,queryString:L,queryValues:N})}},30802:(e,t,r)=>{r.d(t,{A:()=>u});var n=r(72583),a=r.n(n),o=r(92652),s=r(48786),l=r(37275),c=r(68829),i=r(7971);async function u({dbContext:e,paradigm:t,dbFullName:r,tableName:n,data:u,tableSchema:d,identifierColumnName:p,identifierValue:f,encryptionKey:_,encryptionSalt:g,useLocal:h}){if(!u||!Object.keys(u).length)return null;let y=!!h||!e?.match(/dsql.user/i)&&(!r||!!r.match(/^datasquirel$/)),S=h?i.A:y?s.A:l.default,E=Object.keys(u),m=[],D=[];for(let e=0;ee.fieldName===t):null,s=n&&n[0]?n[0]:null;if(null==r||void 0==r)continue;let l=/<[^>]+>/g;(s?.richText||String(r).match(l))&&(r=a()(r,o.A)),s?.encrypted&&(r=(0,c.default)({data:r,encryptionKey:_,encryptionSalt:g})),"object"==typeof r&&(r=JSON.stringify(r)),s?.pattern&&!new RegExp(s.pattern,s.patternFlags||"").test(r)&&(console.log("DSQL: Pattern not matched =>",r),r=""),"string"==typeof r&&r.match(/^null$/i)&&(r={toSqlString:function(){return"NULL"}}),"string"!=typeof r||r.match(/./i)||(r={toSqlString:function(){return"NULL"}}),m.push(`\`${t}\`=?`),"number"==typeof r?D.push(String(r)):D.push(r)}catch(e){console.log("DSQL: Error in parsing data keys in update function =>",e.message);continue}m.push(`date_updated='${Date()}'`),m.push(`date_updated_code='${Date.now()}'`);let A=`UPDATE \`${r}\`.\`${n}\` SET ${m.join(",")} WHERE \`${p}\`=?`;return D.push(f),y?await S(A,D):await S({paradigm:t,queryString:A,queryValues:D})}},92652:(e,t,r)=>{r.d(t,{A:()=>n});let n={allowedTags:["b","i","em","strong","a","p","span","ul","ol","li","h1","h2","h3","h4","h5","h6","img","div","button","pre","code","br"],allowedAttributes:{a:["href"],img:["src","alt","width","height","class","style"],"*":["style","class"]}}},68829:(e,t,r)=>{r.r(t),r.d(t,{default:()=>o});var n=r(55511),a=r(79428);function o({data:e,encryptionKey:t,encryptionSalt:r}){if(!e?.match(/./))return console.log("Encryption string is invalid"),e;let o=t||process.env.DSQL_ENCRYPTION_PASSWORD,s=r||process.env.DSQL_ENCRYPTION_SALT,l=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!o?.match(/.{8,}/))return console.log("Encryption key is invalid"),e;if(!s?.match(/.{8,}/))return console.log("Encryption salt is invalid"),e;let c=(0,n.scryptSync)(o,s,l),i=a.Buffer.alloc(16,0),u=(0,n.createCipheriv)("aes-192-cbc",c,i);try{let t=u.update(e,"utf8","hex");return t+=u.final("hex")}catch(t){return console.log("Error in encrypting =>",t.message),e}}},48786:(e,t,r)=>{r.d(t,{A:()=>n});async function n(...e){let t=global.DSQL_DB_CONN;try{if(!t)throw Error("No Connection provided to DB_HANDLER function!");let r=await t.query(...e);return JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await t?.end()}}},37275:(e,t,r)=>{async function n(e,t,r){try{if("string"==typeof t){let n=await e.query(a(t),r);return JSON.parse(JSON.stringify(n))}if("object"!=typeof t)return null;{let r=[];for(let n=0;no})},7971:(e,t,r)=>{r.d(t,{A:()=>l});var n=r(9973),a=r.n(n),o=r(29021),s=r.n(o);async function l(...e){let t=a()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let t=`${e}/ca-cert.pem`;if(!s().existsSync(t)){console.log(`${t} does not exist`);return}return{ca:s().readFileSync(`${e}/ca-cert.pem`),rejectUnauthorized:!1}}()},onConnect:()=>{console.log("Connection Successful!")},onConnectError:e=>{console.log("Connection Error",e.message)},onError:e=>{console.log("Client Error",e.message)}});console.log("Querying ...");try{let r=await t.query(...e);return await t.end(),JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e.message),{success:!1,error:e.message}}}},2706:(e,t)=>{Object.defineProperty(t,"A",{enumerable:!0,get:function(){return r}});var r=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,t,r)=>{e.exports=r(75600)}}; \ No newline at end of file +"use strict";exports.id=1251,exports.ids=[1251],exports.modules={96762:(e,t)=>{Object.defineProperty(t,"M",{enumerable:!0,get:function(){return function e(t,n){return n in t?t[n]:"then"in t&&"function"==typeof t.then?t.then(t=>e(t,n)):"function"==typeof t&&"default"===n?t:void 0}}})},98e3:(e,t,n)=>{n.d(t,{A:()=>d});var r=n(72583),a=n.n(r),o=n(92652),s=n(30802),c=n(48786),i=n(37275),l=n(68829),u=n(7971);async function d({dbContext:e,paradigm:t,dbFullName:n,tableName:r,data:d,tableSchema:p,duplicateColumnName:_,duplicateColumnValue:f,update:g,encryptionKey:h,encryptionSalt:y,useLocal:S}){let E=!!S||!e?.match(/dsql.user/i)&&(!n||!!n.match(/^datasquirel$/)),m=S?u.A:E?c.A:i.A;if(d?.date_created_timestamp&&delete d.date_created_timestamp,d?.date_updated_timestamp&&delete d.date_updated_timestamp,d?.date_updated&&delete d.date_updated,d?.date_updated_code&&delete d.date_updated_code,d?.date_created&&delete d.date_created,d?.date_created_code&&delete d.date_created_code,_&&"string"==typeof _){let a=E?await m(`SELECT * FROM \`${r}\` WHERE \`${_}\`=?`,[f]):await m({paradigm:"Read Only",queryString:`SELECT * FROM \`${n}\`.\`${r}\` WHERE \`${_}\`=?`,queryValues:[f]});if(a?.[0]&&!g)return null;if(a&&a[0]&&g)return await (0,s.A)({dbContext:e,paradigm:t,dbFullName:n,tableName:r,data:d,tableSchema:p,encryptionKey:h,encryptionSalt:y,identifierColumnName:_,identifierValue:f||""})}let A=Object.keys(d),D=[],N=[];for(let e=0;ee.fieldName==t):null,s=r&&r[0]?r[0]:null;if(null==n||void 0==n||s?.dataType?.match(/int$/i)&&"string"==typeof n&&!n?.match(/./))continue;s?.encrypted&&(n=(0,l.A)({data:n,encryptionKey:h,encryptionSalt:y}),console.log("DSQL: Encrypted value =>",n));let c=/<[^>]+>/g;(s?.richText||String(n).match(c))&&(n=a()(n,o.A)),s?.pattern&&!new RegExp(s.pattern,s.patternFlags||"").test(n)&&(console.log("DSQL: Pattern not matched =>",n),n=""),D.push("`"+t+"`"),"object"==typeof n&&(n=JSON.stringify(n)),"number"==typeof n?N.push(String(n)):N.push(n)}catch(e){console.log("DSQL: Error in parsing data keys =>",e.message);continue}d?.date_created||(D.push("`date_created`"),N.push(Date())),d?.date_created_code||(D.push("`date_created_code`"),N.push(Date.now())),d?.date_updated||(D.push("`date_updated`"),N.push(Date())),d?.date_updated_code||(D.push("`date_updated_code`"),N.push(Date.now()));let L=`INSERT INTO \`${n}\`.\`${r}\` (${D.join(",")}) VALUES (${N.map(()=>"?").join(",")})`;return E?await m(L,N):await m({paradigm:t,queryString:L,queryValues:N})}},30802:(e,t,n)=>{n.d(t,{A:()=>u});var r=n(72583),a=n.n(r),o=n(92652),s=n(48786),c=n(37275),i=n(68829),l=n(7971);async function u({dbContext:e,paradigm:t,dbFullName:n,tableName:r,data:u,tableSchema:d,identifierColumnName:p,identifierValue:_,encryptionKey:f,encryptionSalt:g,useLocal:h}){if(!u||!Object.keys(u).length)return null;let y=!!h||!e?.match(/dsql.user/i)&&(!n||!!n.match(/^datasquirel$/)),S=h?l.A:y?s.A:c.A,E=Object.keys(u),m=[],A=[];for(let e=0;ee.fieldName===t):null,s=r&&r[0]?r[0]:null;if(null==n||void 0==n)continue;let c=/<[^>]+>/g;(s?.richText||String(n).match(c))&&(n=a()(n,o.A)),s?.encrypted&&(n=(0,i.A)({data:n,encryptionKey:f,encryptionSalt:g})),"object"==typeof n&&(n=JSON.stringify(n)),s?.pattern&&!new RegExp(s.pattern,s.patternFlags||"").test(n)&&(console.log("DSQL: Pattern not matched =>",n),n=""),"string"==typeof n&&n.match(/^null$/i)&&(n={toSqlString:function(){return"NULL"}}),"string"!=typeof n||n.match(/./i)||(n={toSqlString:function(){return"NULL"}}),m.push(`\`${t}\`=?`),"number"==typeof n?A.push(String(n)):A.push(n)}catch(e){console.log("DSQL: Error in parsing data keys in update function =>",e.message);continue}m.push(`date_updated='${Date()}'`),m.push(`date_updated_code='${Date.now()}'`);let D=`UPDATE \`${n}\`.\`${r}\` SET ${m.join(",")} WHERE \`${p}\`=?`;return A.push(_),y?await S(D,A):await S({paradigm:t,queryString:D,queryValues:A})}},92652:(e,t,n)=>{n.d(t,{A:()=>r});let r={allowedTags:["b","i","em","strong","a","p","span","ul","ol","li","h1","h2","h3","h4","h5","h6","img","div","button","pre","code","br"],allowedAttributes:{a:["href"],img:["src","alt","width","height","class","style"],"*":["style","class"]}}},68829:(e,t,n)=>{n.d(t,{A:()=>o});var r=n(55511),a=n(79428);function o({data:e,encryptionKey:t,encryptionSalt:n}){if(!e?.match(/./))return console.log("Encryption string is invalid"),e;let o=t||process.env.DSQL_ENCRYPTION_PASSWORD,s=n||process.env.DSQL_ENCRYPTION_SALT,c=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!o?.match(/.{8,}/))return console.log("Encryption key is invalid"),e;if(!s?.match(/.{8,}/))return console.log("Encryption salt is invalid"),e;let i=(0,r.scryptSync)(o,s,c),l=a.Buffer.alloc(16,0),u=(0,r.createCipheriv)("aes-192-cbc",i,l);try{let t=u.update(e,"utf8","hex");return t+=u.final("hex")}catch(t){return console.log("Error in encrypting =>",t.message),e}}},48786:(e,t,n)=>{n.d(t,{A:()=>r});async function r(...e){let t=global.DSQL_DB_CONN;try{if(!t)throw Error("No Connection provided to DB_HANDLER function!");let n=await t.query(...e);return JSON.parse(JSON.stringify(n))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await t?.end()}}},37275:(e,t,n)=>{async function r(e,t,n){try{if("string"==typeof t){let r=await e.query(a(t),n);return JSON.parse(JSON.stringify(r))}if("object"!=typeof t)return null;{let n=[];for(let r=0;ro})},7971:(e,t,n)=>{n.d(t,{A:()=>c});var r=n(9973),a=n.n(r),o=n(29021),s=n.n(o);async function c(...e){let t=a()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let t=`${e}/ca-cert.pem`;if(!s().existsSync(t)){console.log(`${t} does not exist`);return}return{ca:s().readFileSync(`${e}/ca-cert.pem`),rejectUnauthorized:!1}}()},onConnect:()=>{console.log("Connection Successful!")},onConnectError:e=>{console.log("Connection Error",e.message)},onError:e=>{console.log("Client Error",e.message)}});console.log("Querying ...");try{let n=await t.query(...e);return await t.end(),JSON.parse(JSON.stringify(n))}catch(e){return console.log("DB Error =>",e.message),{success:!1,error:e.message}}}},2706:(e,t)=>{Object.defineProperty(t,"A",{enumerable:!0,get:function(){return n}});var n=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,t,n)=>{e.exports=n(75600)}}; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/194.js b/dsql-app/.local_dist/server/chunks/194.js index e45885f..be1ec3b 100644 --- a/dsql-app/.local_dist/server/chunks/194.js +++ b/dsql-app/.local_dist/server/chunks/194.js @@ -1 +1 @@ -"use strict";exports.id=194,exports.ids=[194],exports.modules={61347:(e,a,t)=>{let l;t.d(a,{A:()=>b});var s=t(8732),i=t(82015),d=t.n(i),n=t(24872),r=t(10621),c=t(46169),u=t(72390);async function o({e,setLoading:a,dbImage:t,database:l,user:s}){a(!0);let i={db_description:e.target.database_description?.value?.match(/./)?e.target.database_description.value:null,db_name:e.target.database_name?.value?.match(/./)?e.target.database_name.value:null,db_slug:e.target.database_slug?.value?.match(/./)?e.target.database_slug.value:null,db_full_name:l.db_full_name,id:l.id,active_clone:l.active_clone,active_clone_parent_db:l.active_clone_parent_db};if(t){if("string"==typeof t)i.db_image=t;else if("object"==typeof t){let e=await (0,c.A)("/api/addUserMedia",{method:"post",body:{media:[t],folder:i.db_slug.replace(/_/g,"-"),type:"image"}},!0);i.db_image=e?.mediaData[0]?.media_thumbnail_url?e.mediaData[0].media_thumbnail_url:"/images/database-placeholder.png"}}else i.db_image="/images/database-placeholder.png";(0,c.A)("/api/updateUserDatabase",{method:"post",body:i},!0).then(e=>{e.success?(0,u.A)().then(()=>{window.location.pathname=`/admin/${s?.id}/databases`,setTimeout(()=>{a(!1)},1e3)}):(alert("Error! Please Try Again"),setTimeout(()=>{a(!1)},1e3))})}async function m({e,setLoading:a,dbImage:t,keepUpdated:l,keepDataUpdated:s,query:i,user:d}){a(!0);let n={db_name:e.target.database_name.value,db_slug:e.target.database_slug.value,db_description:e.target.database_description?.value?.match(/./)?e.target.database_description.value:null};if(t){if("string"==typeof t)n.db_image=t;else if("object"==typeof t){let e=await (0,c.A)("/api/addUserMedia",{method:"post",body:{media:[t],folder:n.db_slug.replace(/_/g,"-"),type:"image"}},!0);n.db_image=e?.mediaData[0]?.media_thumbnail_url?e.mediaData[0].media_thumbnail_url:"/images/database-placeholder.png"}}i?.duplicate&&(n.duplicate=i.duplicate,n.keepUpdated=!!l&&l,n.keepDataUpdated=!!s&&s),(0,c.A)("/api/createUserDatabase",{method:"post",body:n},!0).then(e=>{e.success?(0,u.A)().then(()=>{window.location.pathname=`/admin/${d?.id}/databases/${n.db_slug}`}):setTimeout(()=>{a(!1)},1e3)})}var p=t(2913);function b({user:e,dbImage:a,setDbImage:t,database:i,setLoading:c,query:u}){async function b(a){return i?.db_slug===a?null:await (0,n.A)({tableName:"user_databases",columnName:"db_slug",value:a,userId:e.id})}let[g,h]=d().useState(null),[f,_]=d().useState(!1),[x,w]=d().useState(!1);return(0,s.jsxs)("form",{className:"w-full max-w-none xl:max-w-lg flex flex-col items-start gap-4 relative",onSubmit:t=>{t.preventDefault(),i?o({e:t,setLoading:c,dbImage:a,database:i,user:e}):m({e:t,setLoading:c,dbImage:a,keepUpdated:f,keepDataUpdated:x,query:u,user:e})},children:[g&&(0,s.jsx)(r.A,{message:g}),(0,s.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:[(0,s.jsx)("label",{htmlFor:"database_name",children:"Name"}),(0,s.jsx)("input",{type:"text",name:"database_name",id:"database_name",placeholder:"Database Name",onInput:async e=>{let a=e.target,t=a.closest("form");if(a.value.match(/./)?(a.classList.remove("warning"),h(null)):a.classList.add("warning"),t){t.database_slug.value=a.value.toLowerCase().replace(/ /g,"_").replace(/[^a-zA-Z0-9-_]/g,"");let e=t.database_slug.value;window.clearTimeout(l),l=setTimeout(()=>{b(e).then(e=>{e?.result?(t.database_slug.classList.add("warning"),h("Duplicate Database Name")):(t.database_slug.classList.remove("warning"),h(null))})},300)}},defaultValue:i?i.db_name:"",required:!0})]}),(0,s.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:[(0,s.jsx)("label",{htmlFor:"database_slug",children:"Slug"}),(0,s.jsx)("input",{type:"text",name:"database_slug",id:"database_slug",placeholder:"Database Slug",onInput:e=>{let a=e.target;a.value.match(/./)?(a.classList.remove("warning"),h(null)):a.classList.add("warning");let t=a.value;window.clearTimeout(l),l=setTimeout(()=>{b(t).then(e=>{e?.result?(a.classList.add("warning"),h("Duplicate Database Name")):(a.classList.remove("warning"),h(null))})},300)},defaultValue:i?i.db_slug:"",required:!0})]}),(0,s.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:[(0,s.jsx)("label",{htmlFor:"database_description",children:"Description (optional)"}),(0,s.jsx)("textarea",{name:"database_description",id:"database_description",placeholder:"Short Description of database",defaultValue:i?i.db_description:""})]}),u?.duplicate&&(0,s.jsx)(d().Fragment,{children:(0,s.jsxs)("div",{className:"card col items-start",children:[(0,s.jsx)(p.A,{checkBoxValues:[{payload:"Keep New Database Updated?",title:"Keep New Database Updated?",name:"clone_database",onChangeHandler:e=>{e.target.checked?_(!0):_(!1)}}]}),(0,s.jsx)("span",{className:"text-sm italic text-slate-600 dark:text-slate-300",children:"By checking this box the new Database stays up to date with changes to the structure of the parent Database"})]})}),(0,s.jsxs)("button",{type:"submit",className:"w-full",children:[i?"Update":"Create"," Database"]})]})}},89088:(e,a,t)=>{t.d(a,{A:()=>c});var l=t(8732),s=t(82015),i=t.n(s),d=t(65842),n=t(91140),r=t(55904);function c({user:e,dbImage:a,setDbImage:t,database:s}){let c=i().useRef();return(0,l.jsxs)("div",{className:"card no-hover col items-center justify-center",children:[(0,l.jsx)("h4",{className:"m-0",children:"Database Image"}),(0,l.jsx)("div",{className:"bg-white rounded-full overflow-hidden w-24 h-24",children:(0,l.jsx)("img",{src:a?"string"==typeof a?a:a.imageBase64Full:"/images/database-placeholder.png",alt:"Database Image",width:100,className:"w-full h-full object-cover",ref:c,"data-imagepreview":"image"})}),(0,l.jsxs)("div",{className:"w-full flex-col",id:"edit-database-image-option-wrapper",children:[(0,l.jsxs)(r.A,{column:!0,className:"w-full",children:[(0,l.jsx)("button",{className:"outlined w-full whitespace-normal",onClick:e=>{(0,n.PB)("user-media-popup")},children:"Choose Image from uploads"}),(0,l.jsx)("button",{className:"outlined secondary w-full whitespace-normal",onClick:e=>{let a=e.target;a?.closest("#edit-database-image-option-wrapper")?.querySelector("input")?.click()},children:"Choose Image from Computer"})]}),(0,l.jsx)("input",{type:"file",accept:".png,.jpg,.jpeg,.webp",placeholder:"Choose Database Image",className:"hidden",onChange:async e=>{let a=e.target.files?.[0];t(await (0,d.A)({imageInputFile:a,maxWidth:400}))}})]})]})}},2913:(e,a,t)=>{t.d(a,{A:()=>s});var l=t(8732);function s({name:e,checkBoxValues:a,setAlert:t,labelColor:s,flexRow:i,baseText:d,smallText:n,className:r}){return(0,l.jsx)("div",{className:"flex items-start gap-x-4"+(i?" flex-row flex-wrap gap-y-2 ":" flex-col gap-y-4 ")+(r||""),children:a.map((a,i)=>{let{payload:r,title:c,onChangeHandler:u,fixed:o,jsx:m}=a,p=a.name?`${e}-${a.name}`:r?e+"-"+r:e;return(0,l.jsxs)("div",{className:"flex items-center"+(a.default&&o?" pointer-events-none":"")+(n?" gap-1 ":" gap-2 ")+(a?.className?a.className:""),children:[(0,l.jsx)("input",{className:"m-0"+(n?" w-4 h-4":" w-5 h-5"),type:"checkbox",defaultChecked:!!a.default,name:p,id:p,onChange:e=>{t&&t(null),u&&u(e,a)},value:r,style:{minWidth:"20px"},...a.props}),m||(0,l.jsx)("label",{htmlFor:p,className:"m-0 "+(s||"text-slate-800 dark:text-white/80")+(d||n?" text-base":" text-lg"),children:c})]},i+1)})})}t(82015)},24872:(e,a,t)=>{t.d(a,{A:()=>s});var l=t(46169);async function s({tableName:e,columnName:a,value:t,dbFullName:s,dispatch:i,userId:d,dbId:n}){return await (0,l.A)(`/api/checkDuplicateData?tableName=${e}&type=${a}&value=${t}${s?"&dbFullName="+s:""}${d?"&userId="+d:""}${n?"&dbId="+n:""}`)}}}; \ No newline at end of file +"use strict";exports.id=194,exports.ids=[194],exports.modules={61347:(e,a,t)=>{let l;t.d(a,{A:()=>b});var s=t(8732),i=t(82015),d=t.n(i),n=t(24872),r=t(10621),c=t(46169),u=t(72390);async function o({e,setLoading:a,dbImage:t,database:l,user:s}){a(!0);let i={db_description:e.target.database_description?.value?.match(/./)?e.target.database_description.value:null,db_name:e.target.database_name?.value?.match(/./)?e.target.database_name.value:null,db_slug:e.target.database_slug?.value?.match(/./)?e.target.database_slug.value:null,db_full_name:l.db_full_name,id:l.id,active_clone:l.active_clone,active_clone_parent_db:l.active_clone_parent_db};if(t){if("string"==typeof t)i.db_image=t;else if("object"==typeof t){let e=await (0,c.A)("/api/addUserMedia",{method:"post",body:{media:[t],folder:i.db_slug.replace(/_/g,"-"),type:"image"}},!0);i.db_image=e?.mediaData[0]?.media_thumbnail_url?e.mediaData[0].media_thumbnail_url:"/images/database-placeholder.png"}}else i.db_image="/images/database-placeholder.png";(0,c.A)("/api/updateUserDatabase",{method:"post",body:i},!0).then(e=>{e.success?(0,u.A)().then(()=>{window.location.pathname=`/admin/${s?.id}/databases`,setTimeout(()=>{a(!1)},1e3)}):(alert("Error! Please Try Again"),setTimeout(()=>{a(!1)},1e3))})}async function m({e,setLoading:a,dbImage:t,keepUpdated:l,keepDataUpdated:s,query:i,user:d}){a(!0);let n={db_name:e.target.database_name.value,db_slug:e.target.database_slug.value,db_description:e.target.database_description?.value?.match(/./)?e.target.database_description.value:null};if(t){if("string"==typeof t)n.db_image=t;else if("object"==typeof t){let e=await (0,c.A)("/api/addUserMedia",{method:"post",body:{media:[t],folder:n.db_slug.replace(/_/g,"-"),type:"image"}},!0);n.db_image=e?.mediaData[0]?.media_thumbnail_url?e.mediaData[0].media_thumbnail_url:"/images/database-placeholder.png"}}i?.duplicate&&(n.duplicate=i.duplicate,n.keepUpdated=!!l&&l,n.keepDataUpdated=!!s&&s),(0,c.A)("/api/createUserDatabase",{method:"POST",body:n},!0).then(e=>{e.success?(0,u.A)().then(()=>{window.location.pathname=`/admin/${d?.id}/databases/${n.db_slug}`}):setTimeout(()=>{a(!1)},1e3)})}var p=t(2913);function b({user:e,dbImage:a,setDbImage:t,database:i,setLoading:c,query:u}){async function b(a){return i?.db_slug===a?null:await (0,n.A)({tableName:"user_databases",columnName:"db_slug",value:a,userId:e.id})}let[g,h]=d().useState(null),[f,_]=d().useState(!1),[x,w]=d().useState(!1);return(0,s.jsxs)("form",{className:"w-full max-w-none xl:max-w-lg flex flex-col items-start gap-4 relative",onSubmit:t=>{t.preventDefault(),i?o({e:t,setLoading:c,dbImage:a,database:i,user:e}):m({e:t,setLoading:c,dbImage:a,keepUpdated:f,keepDataUpdated:x,query:u,user:e})},children:[g&&(0,s.jsx)(r.A,{message:g}),(0,s.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:[(0,s.jsx)("label",{htmlFor:"database_name",children:"Name"}),(0,s.jsx)("input",{type:"text",name:"database_name",id:"database_name",placeholder:"Database Name",onInput:async e=>{let a=e.target,t=a.closest("form");if(a.value.match(/./)?(a.classList.remove("warning"),h(null)):a.classList.add("warning"),t){t.database_slug.value=a.value.toLowerCase().replace(/ /g,"_").replace(/[^a-zA-Z0-9-_]/g,"");let e=t.database_slug.value;window.clearTimeout(l),l=setTimeout(()=>{b(e).then(e=>{e?.result?(t.database_slug.classList.add("warning"),h("Duplicate Database Name")):(t.database_slug.classList.remove("warning"),h(null))})},300)}},defaultValue:i?i.db_name:"",required:!0})]}),(0,s.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:[(0,s.jsx)("label",{htmlFor:"database_slug",children:"Slug"}),(0,s.jsx)("input",{type:"text",name:"database_slug",id:"database_slug",placeholder:"Database Slug",onInput:e=>{let a=e.target;a.value.match(/./)?(a.classList.remove("warning"),h(null)):a.classList.add("warning");let t=a.value;window.clearTimeout(l),l=setTimeout(()=>{b(t).then(e=>{e?.result?(a.classList.add("warning"),h("Duplicate Database Name")):(a.classList.remove("warning"),h(null))})},300)},defaultValue:i?i.db_slug:"",required:!0})]}),(0,s.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:[(0,s.jsx)("label",{htmlFor:"database_description",children:"Description (optional)"}),(0,s.jsx)("textarea",{name:"database_description",id:"database_description",placeholder:"Short Description of database",defaultValue:i?i.db_description:""})]}),u?.duplicate&&(0,s.jsx)(d().Fragment,{children:(0,s.jsxs)("div",{className:"card col items-start",children:[(0,s.jsx)(p.A,{checkBoxValues:[{payload:"Keep New Database Updated?",title:"Keep New Database Updated?",name:"clone_database",onChangeHandler:e=>{e.target.checked?_(!0):_(!1)}}]}),(0,s.jsx)("span",{className:"text-sm italic text-slate-600 dark:text-slate-300",children:"By checking this box the new Database stays up to date with changes to the structure of the parent Database"})]})}),(0,s.jsxs)("button",{type:"submit",className:"w-full",children:[i?"Update":"Create"," Database"]})]})}},89088:(e,a,t)=>{t.d(a,{A:()=>c});var l=t(8732),s=t(82015),i=t.n(s),d=t(65842),n=t(91140),r=t(55904);function c({user:e,dbImage:a,setDbImage:t,database:s}){let c=i().useRef();return(0,l.jsxs)("div",{className:"card no-hover col items-center justify-center",children:[(0,l.jsx)("h4",{className:"m-0",children:"Database Image"}),(0,l.jsx)("div",{className:"bg-white rounded-full overflow-hidden w-24 h-24",children:(0,l.jsx)("img",{src:a?"string"==typeof a?a:a.imageBase64Full:"/images/database-placeholder.png",alt:"Database Image",width:100,className:"w-full h-full object-cover",ref:c,"data-imagepreview":"image"})}),(0,l.jsxs)("div",{className:"w-full flex-col",id:"edit-database-image-option-wrapper",children:[(0,l.jsxs)(r.A,{column:!0,className:"w-full",children:[(0,l.jsx)("button",{className:"outlined w-full whitespace-normal",onClick:e=>{(0,n.PB)("user-media-popup")},children:"Choose Image from uploads"}),(0,l.jsx)("button",{className:"outlined secondary w-full whitespace-normal",onClick:e=>{let a=e.target;a?.closest("#edit-database-image-option-wrapper")?.querySelector("input")?.click()},children:"Choose Image from Computer"})]}),(0,l.jsx)("input",{type:"file",accept:".png,.jpg,.jpeg,.webp",placeholder:"Choose Database Image",className:"hidden",onChange:async e=>{let a=e.target.files?.[0];t(await (0,d.A)({imageInputFile:a,maxWidth:400}))}})]})]})}},2913:(e,a,t)=>{t.d(a,{A:()=>s});var l=t(8732);function s({name:e,checkBoxValues:a,setAlert:t,labelColor:s,flexRow:i,baseText:d,smallText:n,className:r}){return(0,l.jsx)("div",{className:"flex items-start gap-x-4"+(i?" flex-row flex-wrap gap-y-2 ":" flex-col gap-y-4 ")+(r||""),children:a.map((a,i)=>{let{payload:r,title:c,onChangeHandler:u,fixed:o,jsx:m}=a,p=a.name?`${e}-${a.name}`:r?e+"-"+r:e;return(0,l.jsxs)("div",{className:"flex items-center"+(a.default&&o?" pointer-events-none":"")+(n?" gap-1 ":" gap-2 ")+(a?.className?a.className:""),children:[(0,l.jsx)("input",{className:"m-0"+(n?" w-4 h-4":" w-5 h-5"),type:"checkbox",defaultChecked:!!a.default,name:p,id:p,onChange:e=>{t&&t(null),u&&u(e,a)},value:r,style:{minWidth:"20px"},...a.props}),m||(0,l.jsx)("label",{htmlFor:p,className:"m-0 "+(s||"text-slate-800 dark:text-white/80")+(d||n?" text-base":" text-lg"),children:c})]},i+1)})})}t(82015)},24872:(e,a,t)=>{t.d(a,{A:()=>s});var l=t(46169);async function s({tableName:e,columnName:a,value:t,dbFullName:s,dispatch:i,userId:d,dbId:n}){return await (0,l.A)(`/api/checkDuplicateData?tableName=${e}&type=${a}&value=${t}${s?"&dbFullName="+s:""}${d?"&userId="+d:""}${n?"&dbId="+n:""}`)}}}; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/2282.js b/dsql-app/.local_dist/server/chunks/2282.js index 85069cd..260a325 100644 --- a/dsql-app/.local_dist/server/chunks/2282.js +++ b/dsql-app/.local_dist/server/chunks/2282.js @@ -1,4 +1,4 @@ -"use strict";exports.id=2282,exports.ids=[2282],exports.modules={67619:(e,a,t)=>{t.r(a),t.d(a,{default:()=>i});var l=t(29021),r=t.n(l);async function i({user:e,message:a,component:t,noMail:l,req:i}){let n=new Date,d=(()=>{if(!i)return null;try{let e=i.headers["x-forwarded-for"],a=i.headers["x-real-ip"],t=i.headers["cf-connecting-ip"],l=Array.isArray(e)?e[0]:e?.split(",")[0],r=t||l||a||i.socket.remoteAddress;if(!r)return null;return String(r)}catch(e){return null}})();try{let l=`🚀 SERVER ERROR =========================== +"use strict";exports.id=2282,exports.ids=[2282],exports.modules={67619:(e,a,t)=>{t.d(a,{A:()=>i});var l=t(29021),r=t.n(l);async function i({user:e,message:a,component:t,noMail:l,req:i}){let n=new Date,d=(()=>{if(!i)return null;try{let e=i.headers["x-forwarded-for"],a=i.headers["x-real-ip"],t=i.headers["cf-connecting-ip"],l=Array.isArray(e)?e[0]:e?.split(",")[0],r=t||l||a||i.socket.remoteAddress;if(!r)return null;return String(r)}catch(e){return null}})();try{let l=`🚀 SERVER ERROR =========================== Error Message: ${a} Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(l+=` User Id: ${e?.id} diff --git a/dsql-app/.local_dist/server/chunks/3496.js b/dsql-app/.local_dist/server/chunks/3496.js index 8727c85..bc152db 100644 --- a/dsql-app/.local_dist/server/chunks/3496.js +++ b/dsql-app/.local_dist/server/chunks/3496.js @@ -1,16 +1,16 @@ -"use strict";exports.id=3496,exports.ids=[3496],exports.modules={96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},69842:(e,r,t)=>{t.d(r,{A:()=>l});var s=t(48786),n=t(95969),a=t(29021),o=t.n(a),i=t(89159);async function l(e,r,t){try{let{keyCookieName:a,csrfCookieName:l}=(0,i.A)();if(!e.cookies?.[a]?.match(/./))throw Error("Request Cookies not Found!");let c=(0,n.A)({encryptedString:e.cookies[a]});if(!c)throw Error("Couldn't decrypt auth cookie!");let u=JSON.parse(c);if(!u.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(u.csrf_k)))throw Error("Deep Auth Failed. `csrf` key not found in request headers!");let E=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!E)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!o().existsSync(`${E}/${u.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==u.verification_status&&!t){let e=await (0,s.A)(`SELECT verification_status FROM users WHERE id='${u.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(u?.date&&Date.now()-u.date>6048e5)throw Error("Key expired!");return u}catch(e){return console.log(`userAuth Error: ${e.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>s});function s(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",n=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",a=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),o=r;e?.userId&&(o+=`user_${e.userId}_`),a&&(o+=`${a}_`),o+=t;let i=r;e?.userId&&(i+=`user_${e.userId}_`),a&&(i+=`${a}_`),i+=s;let l=r;return e?.userId&&(l+=`user_${e.userId}_`),a&&(l+=`${a}_`),{keyCookieName:o,csrfCookieName:i,oneTimeCodeName:l+=n}}},67619:(e,r,t)=>{t.r(r),t.d(r,{default:()=>a});var s=t(29021),n=t.n(s);async function a({user:e,message:r,component:t,noMail:s,req:a}){let o=new Date,i=(()=>{if(!a)return null;try{let e=a.headers["x-forwarded-for"],r=a.headers["x-real-ip"],t=a.headers["cf-connecting-ip"],s=Array.isArray(e)?e[0]:e?.split(",")[0],n=t||s||r||a.socket.remoteAddress;if(!n)return null;return String(n)}catch(e){return null}})();try{let s=`🚀 SERVER ERROR =========================== +"use strict";exports.id=3496,exports.ids=[3496],exports.modules={96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,s){return s in r?r[s]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,s)):"function"==typeof r&&"default"===s?r:void 0}}})},69842:(e,r,s)=>{s.d(r,{A:()=>l});var t=s(48786),n=s(95969),a=s(29021),o=s.n(a),i=s(89159);async function l(e,r,s){try{let{keyCookieName:a,csrfCookieName:l}=(0,i.A)();if(!e.cookies?.[a]?.match(/./))throw Error("Request Cookies not Found!");let c=(0,n.A)({encryptedString:e.cookies[a]});if(!c)throw Error("Couldn't decrypt auth cookie!");let u=JSON.parse(c);if(!u.csrf_k)throw Error("No `csrf_k` present in user Object!");if(s&&!Object.keys(e.headers).find(e=>e.includes(u.csrf_k)))throw console.log("req.headers",e.headers),console.log("userObject",u),Error("Deep Auth Failed. `csrf` key not found in request headers!");let E=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!E)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(s&&!o().existsSync(`${E}/${u.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==u.verification_status&&!s){let e=await (0,t.A)(`SELECT verification_status FROM users WHERE id='${u.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(u?.date&&Date.now()-u.date>6048e5)throw Error("Key expired!");return u}catch(e){return console.log(`userAuth Error: ${e.message}`),null}}},89159:(e,r,s)=>{s.d(r,{A:()=>t});function t(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",s=process.env.DSQL_COOKIES_KEY_NAME||"key",t=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",n=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",a=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),o=r;e?.userId&&(o+=`user_${e.userId}_`),a&&(o+=`${a}_`),o+=s;let i=r;e?.userId&&(i+=`user_${e.userId}_`),a&&(i+=`${a}_`),i+=t;let l=r;return e?.userId&&(l+=`user_${e.userId}_`),a&&(l+=`${a}_`),{keyCookieName:o,csrfCookieName:i,oneTimeCodeName:l+=n}}},67619:(e,r,s)=>{s.d(r,{A:()=>a});var t=s(29021),n=s.n(t);async function a({user:e,message:r,component:s,noMail:t,req:a}){let o=new Date,i=(()=>{if(!a)return null;try{let e=a.headers["x-forwarded-for"],r=a.headers["x-real-ip"],s=a.headers["cf-connecting-ip"],t=Array.isArray(e)?e[0]:e?.split(",")[0],n=s||t||r||a.socket.remoteAddress;if(!n)return null;return String(n)}catch(e){return null}})();try{let t=`🚀 SERVER ERROR =========================== Error Message: ${r} -Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(s+=` +Component: ${s}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(t+=` User Id: ${e?.id} User Name: ${e?.first_name} ${e?.last_name} -User Email: ${e?.email}`),a?.url&&(s+=` -URL: ${a.url}`),a?.body&&(s+=` -Request Body: ${JSON.stringify(a.body,null,4)}`),i&&(s+=` -IP: ${i}`),s+=` +User Email: ${e?.email}`),a?.url&&(t+=` +URL: ${a.url}`),a?.body&&(t+=` +Request Body: ${JSON.stringify(a.body,null,4)}`),i&&(t+=` +IP: ${i}`),t+=` Date: ${o.toDateString()} -========================================`,n().existsSync("./.tmp/error.log")||n().writeFileSync("./.tmp/error.log","","utf-8");let l=n().readFileSync("./.tmp/error.log","utf-8");n().writeFileSync("./.tmp/error.log",s),n().appendFileSync("./.tmp/error.log",` +========================================`,n().existsSync("./.tmp/error.log")||n().writeFileSync("./.tmp/error.log","","utf-8");let l=n().readFileSync("./.tmp/error.log","utf-8");n().writeFileSync("./.tmp/error.log",t),n().appendFileSync("./.tmp/error.log",` -${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},95969:(e,r,t)=>{t.d(r,{A:()=>a});var s=t(55511),n=t(79428);function a({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let a=r||process.env.DSQL_ENCRYPTION_PASSWORD,o=t||process.env.DSQL_ENCRYPTION_SALT,i=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!a?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!o?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let l=(0,s.scryptSync)(a,o,i),c=n.Buffer.alloc(16,0),u=(0,s.createDecipheriv)("aes-192-cbc",l,c);try{let r=u.update(e,"hex","utf8");return r+=u.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},68829:(e,r,t)=>{t.r(r),t.d(r,{default:()=>a});var s=t(55511),n=t(79428);function a({data:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encryption string is invalid"),e;let a=r||process.env.DSQL_ENCRYPTION_PASSWORD,o=t||process.env.DSQL_ENCRYPTION_SALT,i=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!a?.match(/.{8,}/))return console.log("Encryption key is invalid"),e;if(!o?.match(/.{8,}/))return console.log("Encryption salt is invalid"),e;let l=(0,s.scryptSync)(a,o,i),c=n.Buffer.alloc(16,0),u=(0,s.createCipheriv)("aes-192-cbc",l,c);try{let r=u.update(e,"utf8","hex");return r+=u.final("hex")}catch(r){return console.log("Error in encrypting =>",r.message),e}}},5437:(e,r,t)=>{t.d(r,{A:()=>_});var s=t(33873),n=t.n(s),a=t(47795),o=t.n(a),i=t(66866),l=t(41864);async function c({username:e,host:r,grants:t,userId:s}){let n=!1;if(console.log("Handling Grants for User =>",e,r),!e)return console.log("No username provided."),n;if(!r)return console.log(`No Host provided. \x1b[35m\`--host\`\x1b[0m flag is required`),n;if(!t)return console.log("No grants Array provided."),n;try{let a=await (0,i.A)(`SELECT * FROM mysql.user WHERE User = '${e}' AND Host = '${r}'`);if(a?.[0]?.User){let n=await (0,i.A)(`SHOW GRANTS FOR '${e}'@'${r}'`);for(let e=0;e",e.message)}return n}var u=t(68829),E=t(95969);t(60818).config({path:n().resolve(__dirname,"../../../.env")});let d=process.env.DSQL_DB_HOST||"127.0.0.1";async function _({userId:e,mariadbUserHost:r,mariadbUsername:t,sqlUserID:s}){let n=await (0,l.A)({query:"SELECT * FROM mariadb_users"});if(!n?.[0])return;let a=!!e&&e==Number(process.env.DSQL_SU_USER_ID);for(let _=0;_",e.message)}}}},41864:(e,r,t)=>{t.d(r,{A:()=>i});var s=t(29021),n=t.n(s),a=t(33873),o=t.n(a);async function i({query:e,values:r}){let t,s=global.DSQL_DB_CONN;try{t=e&&r?await s.query(e,r):await s.query(e)}catch(e){if(process.env.FIRST_RUN)return null;console.log("ERROR in dbHandler =>",e.message),console.log(e),console.log(s.config()),n().appendFileSync(o().resolve(__dirname,"../.tmp/dbErrorLogs.txt"),JSON.stringify(e,null,4)+"\n"+Date()+"\n\n\n","utf8"),t=null}finally{await s?.end()}return t?JSON.parse(JSON.stringify(t)):null}},66866:(e,r,t)=>{t.d(r,{A:()=>n});var s=t(41864);async function n(e){let r;try{r=await (0,s.A)({query:e})}catch(e){console.log("ERROR in noDatabaseDbHandler =>",e.message)}return r||null}},48786:(e,r,t)=>{t.d(r,{A:()=>s});async function s(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}}; \ No newline at end of file +${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},95969:(e,r,s)=>{s.d(r,{A:()=>a});var t=s(55511),n=s(79428);function a({encryptedString:e,encryptionKey:r,encryptionSalt:s}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let a=r||process.env.DSQL_ENCRYPTION_PASSWORD,o=s||process.env.DSQL_ENCRYPTION_SALT,i=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!a?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!o?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let l=(0,t.scryptSync)(a,o,i),c=n.Buffer.alloc(16,0),u=(0,t.createDecipheriv)("aes-192-cbc",l,c);try{let r=u.update(e,"hex","utf8");return r+=u.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},68829:(e,r,s)=>{s.d(r,{A:()=>a});var t=s(55511),n=s(79428);function a({data:e,encryptionKey:r,encryptionSalt:s}){if(!e?.match(/./))return console.log("Encryption string is invalid"),e;let a=r||process.env.DSQL_ENCRYPTION_PASSWORD,o=s||process.env.DSQL_ENCRYPTION_SALT,i=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!a?.match(/.{8,}/))return console.log("Encryption key is invalid"),e;if(!o?.match(/.{8,}/))return console.log("Encryption salt is invalid"),e;let l=(0,t.scryptSync)(a,o,i),c=n.Buffer.alloc(16,0),u=(0,t.createCipheriv)("aes-192-cbc",l,c);try{let r=u.update(e,"utf8","hex");return r+=u.final("hex")}catch(r){return console.log("Error in encrypting =>",r.message),e}}},5437:(e,r,s)=>{s.d(r,{A:()=>_});var t=s(33873),n=s.n(t),a=s(47795),o=s.n(a),i=s(66866),l=s(41864);async function c({username:e,host:r,grants:s,userId:t}){let n=!1;if(console.log("Handling Grants for User =>",e,r),!e)return console.log("No username provided."),n;if(!r)return console.log(`No Host provided. \x1b[35m\`--host\`\x1b[0m flag is required`),n;if(!s)return console.log("No grants Array provided."),n;try{let a=await (0,i.A)(`SELECT * FROM mysql.user WHERE User = '${e}' AND Host = '${r}'`);if(a?.[0]?.User){let n=await (0,i.A)(`SHOW GRANTS FOR '${e}'@'${r}'`);for(let e=0;e",e.message)}return n}var u=s(68829),E=s(95969);s(60818).config({path:n().resolve(__dirname,"../../../.env")});let d=process.env.DSQL_DB_HOST||"127.0.0.1";async function _({userId:e,mariadbUserHost:r,mariadbUsername:s,sqlUserID:t}){let n=await (0,l.A)({query:"SELECT * FROM mariadb_users"});if(!n?.[0])return;let a=!!e&&e==Number(process.env.DSQL_SU_USER_ID);for(let _=0;_",e.message)}}}},41864:(e,r,s)=>{s.d(r,{A:()=>i});var t=s(29021),n=s.n(t),a=s(33873),o=s.n(a);async function i({query:e,values:r}){let s,t=global.DSQL_DB_CONN;try{s=e&&r?await t.query(e,r):await t.query(e)}catch(e){if(process.env.FIRST_RUN)return null;console.log("ERROR in dbHandler =>",e.message),console.log(e),console.log(t.config()),n().appendFileSync(o().resolve(__dirname,"../.tmp/dbErrorLogs.txt"),JSON.stringify(e,null,4)+"\n"+Date()+"\n\n\n","utf8"),s=null}finally{await t?.end()}return s?JSON.parse(JSON.stringify(s)):null}},66866:(e,r,s)=>{s.d(r,{A:()=>n});var t=s(41864);async function n(e){let r;try{r=await (0,t.A)({query:e})}catch(e){console.log("ERROR in noDatabaseDbHandler =>",e.message)}return r||null}},48786:(e,r,s)=>{s.d(r,{A:()=>t});async function t(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let s=await r.query(...e);return JSON.parse(JSON.stringify(s))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return s}});var s=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,s)=>{e.exports=s(75600)}}; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/3704.js b/dsql-app/.local_dist/server/chunks/3704.js index fe12fdb..4dedf0c 100644 --- a/dsql-app/.local_dist/server/chunks/3704.js +++ b/dsql-app/.local_dist/server/chunks/3704.js @@ -1,4 +1,4 @@ -"use strict";exports.id=3704,exports.ids=[3704],exports.modules={83704:(e,a,t)=>{t.d(a,{A:()=>g});var s=t(29021),r=t.n(s),i=t(96052),l=t(33873),n=t.n(l),d=t(67580),o=t(30944),u=t(68829),c=t(98e3),m=t(49941);async function _({user:e,social_platform:a,invitation:t,database:s,additionalFields:r,useLocal:i}){let l=s||"datasquirel",n=`SELECT * FROM \`${l}\`.\`users\` WHERE email=? AND social_id=? AND social_platform=?`,d=[e.email,e.social_id,a],u=await (0,o.A)({database:l,queryString:n,queryValuesArray:d,useLocal:i});if(!u?.[0])return{success:!1,payload:null};let c=Math.random().toString(36).substring(2)+"-"+Math.random().toString(36).substring(2),_={id:u[0].id,first_name:u[0].first_name,last_name:u[0].last_name,username:u[0].username,user_type:u[0].user_type,email:u[0].email,social_id:u[0].social_id,image:u[0].image,image_thumbnail:u[0].image_thumbnail,verification_status:u[0].verification_status,social_login:u[0].social_login,social_platform:u[0].social_platform,csrf_k:c,logged_in_status:!0,date:Date.now()};return r?.[0]&&r.forEach(e=>{_[e]=u[0][e]}),t&&(!s||s?.match(/^datasquirel$/))&&(0,m.A)({query:t,user:_,useLocal:i}),{success:!0,payload:_,csrf:c}}async function g({database:e,social_id:a,email:t,social_platform:s,payload:l,invitation:m,supEmail:g,additionalFields:p,useLocal:f}){try{let E=[a.toString(),s],y=await (0,o.A)({database:e||"datasquirel",queryString:"SELECT * FROM datasquirel.users WHERE social_id = ? AND social_login='1' AND social_platform = ? ",queryValuesArray:E,useLocal:f});if(y&&y[0])return await _({user:y[0],social_platform:s,invitation:m,database:e,additionalFields:p,useLocal:f});let S=t||g||null;if(!S)return{success:!1,payload:null,msg:"No Email Present"};let A=`SELECT * FROM datasquirel.users WHERE email='${S}'`,b=await (0,o.A)({database:e||"datasquirel",queryString:A,useLocal:f});if(b&&b[0])return{success:!1,payload:null,msg:"This Email is already taken"};let D=[S,s,a],h=await (0,o.A)({database:e||"datasquirel",queryString:"SELECT * FROM datasquirel.users WHERE email=? AND social_login='1' AND social_platform=? AND social_id=?",queryValuesArray:D,useLocal:f});if(h&&h[0])return await _({user:l,social_platform:s,invitation:m,database:e,additionalFields:p,useLocal:f});let R=(0,u.default)({data:a.toString()}),v={social_login:"1",verification_status:g?"0":"1",password:R};Object.keys(l).forEach(e=>{v[e]=l[e]});let N=await (0,c.A)({dbContext:e?"Dsql User":void 0,paradigm:e?"Full Access":void 0,dbFullName:e||"datasquirel",tableName:"users",duplicateColumnName:"email",duplicateColumnValue:S,data:{...v,email:S},useLocal:f});if(!N?.insertId)return console.log("Social User Failed to insert in 'handleSocialDb.ts' backend function =>",N),{success:!1,payload:null,msg:"Social User Failed to insert in 'handleSocialDb.ts' backend function"};{e||await (0,d.A)({userId:N.insertId,useLocal:f});let a=`SELECT * FROM datasquirel.users WHERE id='${N.insertId}'`,t=await (0,o.A)({database:e||"datasquirel",queryString:a,useLocal:f});if(!t||!t[0])return{success:!1,payload:null,msg:"User Insertion Failed!"};if(g&&e?.match(/^datasquirel$/)){let e=(0,u.default)({data:JSON.stringify({id:N.insertId,email:g,dateCode:Date.now()})});(0,i.default)({to:g,subject:"Verify Email Address",text:"Please click the link to verify your email address",html:r().readFileSync("./email/send-email-verification-link.html","utf8").replace(/{{host}}/,process.env.DSQL_HOST||"").replace(/{{token}}/,e||"")}).then(()=>{})}let l=process.env.DSQL_STATIC_SERVER_DIR;if(!l)return console.log("Static File ENV not Found!"),{success:!1,payload:null,msg:"Static File ENV not Found!"};if(!e||e?.match(/^datasquirel$/)){let e=`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${N.insertId}`,a=n().join(l,`images/user-images/user-${N.insertId}`);r().mkdirSync(e),r().mkdirSync(a),r().writeFileSync(`${e}/main.json`,JSON.stringify([]),"utf8")}return await _({user:t[0],social_platform:s,invitation:m,database:e,additionalFields:p,useLocal:f})}}catch(e){return console.log("ERROR in 'handleSocialDb.ts' backend function =>",e.message),{success:!1,payload:null,msg:e.message}}}},49941:(e,a,t)=>{t.d(a,{A:()=>n});var s=t(67619),r=t(48786),i=t(98e3),l=t(7971);async function n({query:e,user:a,useLocal:t}){try{let s=t?l.A:r.A,{invite:n,database_access:d,priviledge:o,email:u}=e,c=[n,u],m=await s("SELECT date_created_code FROM invitations WHERE inviting_user_id=? AND invited_user_email=?",c);if(!m||!m[0])throw Error("No Invitation Found");let _=[n],g=await s("SELECT first_name,last_name,email FROM users WHERE id=?",_);if(g?.[0]){let e=await s("SELECT email FROM user_users WHERE user_id=? AND invited_user_id=? AND user_type='admin' AND email=?",[n,a.id,u]);if(e?.[0])console.log("User already added");else{(0,i.A)({dbFullName:"datasquirel",tableName:"user_users",data:{user_id:n,invited_user_id:a.id,database_access:d,first_name:a.first_name,last_name:a.last_name,phone:a.phone,email:a.email,username:a.username,user_type:"admin",user_priviledge:o,image:a.image,image_thumbnail:a.image_thumbnail},useLocal:t});let e=await s("SELECT db_tables_data FROM invitations WHERE inviting_user_id=? AND invited_user_email=?",[n,u]);if(await s("DELETE FROM delegated_user_tables WHERE root_user_id=? AND delegated_user_id=?",[n,a.id]),e&&e[0]){let s=e[0].db_tables_data.split("|");for(let e=0;e{t.d(a,{A:()=>u});var s=t(47795),r=t.n(s),i=t(48786),l=t(47546),n=t(98e3),d=t(68829),o=t(7971);async function u({userId:e,useLocal:a}){try{let t=process.env.DSQL_DB_HOST||"127.0.0.1",s=`dsql_user_${e}`,u=r().generate({length:16,numbers:!0,symbols:!0,uppercase:!0,exclude:"*#.'`\""}),c=(0,d.default)({data:u}),m=`CREATE USER IF NOT EXISTS '${s}'@'127.0.0.1' IDENTIFIED BY '${u}'`;a?await (0,o.A)(m):await (0,l.A)(m);let _="UPDATE users SET mariadb_user = ?, mariadb_host = '127.0.0.1', mariadb_pass = ? WHERE id = ?",g=[s,c,e];a?await (0,o.A)(_,g):await (0,i.A)(_,g),await (0,n.A)({tableName:"mariadb_users",data:{user_id:e,username:s,host:t,password:c,primary:"1",grants:'[{"database":"*","table":"*","privileges":["ALL"]}]'},dbContext:"Master",useLocal:a}),console.log(`User ${e} SQL credentials successfully added.`)}catch(e){console.log("Error in adding SQL user in 'addMariadbUser' function =>",e.message)}}},96052:(e,a,t)=>{t.r(a),t.d(a,{default:()=>n});var s=t(29021),r=t.n(s),i=t(21572);let l=t.n(i)().createTransport({host:process.env.DSQL_MAIL_HOST,port:465,secure:!0,auth:{user:process.env.DSQL_MAIL_EMAIL,pass:process.env.DSQL_MAIL_PASSWORD}});async function n({to:e,subject:a,text:t,html:s,alias:i,senderName:n}){let d;if(!process.env.DSQL_MAIL_HOST||!process.env.DSQL_MAIL_EMAIL||!process.env.DSQL_MAIL_PASSWORD)return null;let o=(i?.match(/support/i),process.env.DSQL_MAIL_EMAIL);if(!r().existsSync("./email/index.html"))return;let u=r().readFileSync("./email/index.html","utf8").replace(/{{email_body}}/,s||"").replace(/{{issue_date}}/,Date().substring(0,24));try{let s={};s.from=`"${n||"Datasquirel"}" <${o}>`,s.sender=o,i&&(s.replyTo=o),s.to=e,s.subject=a,s.text=t,s.html=u,d=await l.sendMail(s)}catch(e){console.log("ERROR in handleNodemailer Function =>",e.message)}return d}},43775:(e,a,t)=>{t.d(a,{A:()=>i});var s=t(95969);let r=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/;async function i({unparsedResults:e,tableSchema:a}){let t=[];try{for(let i=0;i",a.message),e}}},67619:(e,a,t)=>{t.r(a),t.d(a,{default:()=>i});var s=t(29021),r=t.n(s);async function i({user:e,message:a,component:t,noMail:s,req:i}){let l=new Date,n=(()=>{if(!i)return null;try{let e=i.headers["x-forwarded-for"],a=i.headers["x-real-ip"],t=i.headers["cf-connecting-ip"],s=Array.isArray(e)?e[0]:e?.split(",")[0],r=t||s||a||i.socket.remoteAddress;if(!r)return null;return String(r)}catch(e){return null}})();try{let s=`🚀 SERVER ERROR =========================== +"use strict";exports.id=3704,exports.ids=[3704],exports.modules={83704:(e,a,t)=>{t.d(a,{A:()=>g});var s=t(29021),r=t.n(s),i=t(96052),l=t(33873),n=t.n(l),o=t(67580),d=t(30944),u=t(68829),c=t(98e3),m=t(49941);async function _({user:e,social_platform:a,invitation:t,database:s,additionalFields:r,useLocal:i}){let l=s||"datasquirel",n=`SELECT * FROM \`${l}\`.\`users\` WHERE email=? AND social_id=? AND social_platform=?`,o=[e.email,e.social_id,a],u=await (0,d.A)({database:l,queryString:n,queryValuesArray:o,useLocal:i});if(!u?.[0])return{success:!1,payload:null};let c=Math.random().toString(36).substring(2)+"-"+Math.random().toString(36).substring(2),_={id:u[0].id,first_name:u[0].first_name,last_name:u[0].last_name,username:u[0].username,user_type:u[0].user_type,email:u[0].email,social_id:u[0].social_id,image:u[0].image,image_thumbnail:u[0].image_thumbnail,verification_status:u[0].verification_status,social_login:u[0].social_login,social_platform:u[0].social_platform,csrf_k:c,logged_in_status:!0,date:Date.now()};return r?.[0]&&r.forEach(e=>{_[e]=u[0][e]}),t&&(!s||s?.match(/^datasquirel$/))&&(0,m.A)({query:t,user:_,useLocal:i}),{success:!0,payload:_,csrf:c}}async function g({database:e,social_id:a,email:t,social_platform:s,payload:l,invitation:m,supEmail:g,additionalFields:p,useLocal:E}){try{let y=[a.toString(),s],A=await (0,d.A)({database:e||"datasquirel",queryString:"SELECT * FROM datasquirel.users WHERE social_id = ? AND social_login='1' AND social_platform = ? ",queryValuesArray:y,useLocal:E});if(A&&A[0])return await _({user:A[0],social_platform:s,invitation:m,database:e,additionalFields:p,useLocal:E});let S=t||g||null;if(!S)return{success:!1,payload:null,msg:"No Email Present"};let f=`SELECT * FROM datasquirel.users WHERE email='${S}'`,b=await (0,d.A)({database:e||"datasquirel",queryString:f,useLocal:E});if(b&&b[0])return{success:!1,payload:null,msg:"This Email is already taken"};let D=[S,s,a],h=await (0,d.A)({database:e||"datasquirel",queryString:"SELECT * FROM datasquirel.users WHERE email=? AND social_login='1' AND social_platform=? AND social_id=?",queryValuesArray:D,useLocal:E});if(h&&h[0])return await _({user:l,social_platform:s,invitation:m,database:e,additionalFields:p,useLocal:E});let R=(0,u.A)({data:a.toString()}),v={social_login:"1",verification_status:g?"0":"1",password:R};Object.keys(l).forEach(e=>{v[e]=l[e]});let N=await (0,c.A)({dbContext:e?"Dsql User":void 0,paradigm:e?"Full Access":void 0,dbFullName:e||"datasquirel",tableName:"users",duplicateColumnName:"email",duplicateColumnValue:S,data:{...v,email:S},useLocal:E});if(!N?.insertId)return console.log("Social User Failed to insert in 'handleSocialDb.ts' backend function =>",N),{success:!1,payload:null,msg:"Social User Failed to insert in 'handleSocialDb.ts' backend function"};{e||await (0,o.A)({userId:N.insertId,useLocal:E});let a=`SELECT * FROM datasquirel.users WHERE id='${N.insertId}'`,t=await (0,d.A)({database:e||"datasquirel",queryString:a,useLocal:E});if(!t||!t[0])return{success:!1,payload:null,msg:"User Insertion Failed!"};if(g&&e?.match(/^datasquirel$/)){let e=(0,u.A)({data:JSON.stringify({id:N.insertId,email:g,dateCode:Date.now()})});(0,i.A)({to:g,subject:"Verify Email Address",text:"Please click the link to verify your email address",html:r().readFileSync("./email/send-email-verification-link.html","utf8").replace(/{{host}}/,process.env.DSQL_HOST||"").replace(/{{token}}/,e||"")}).then(()=>{})}let l=process.env.DSQL_STATIC_SERVER_DIR;if(!l)return console.log("Static File ENV not Found!"),{success:!1,payload:null,msg:"Static File ENV not Found!"};if(!e||e?.match(/^datasquirel$/)){let e=`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${N.insertId}`,a=n().join(l,`images/user-images/user-${N.insertId}`);r().mkdirSync(e),r().mkdirSync(a),r().writeFileSync(`${e}/main.json`,JSON.stringify([]),"utf8")}return await _({user:t[0],social_platform:s,invitation:m,database:e,additionalFields:p,useLocal:E})}}catch(e){return console.log("ERROR in 'handleSocialDb.ts' backend function =>",e.message),{success:!1,payload:null,msg:e.message}}}},49941:(e,a,t)=>{t.d(a,{A:()=>n});var s=t(67619),r=t(48786),i=t(98e3),l=t(7971);async function n({query:e,user:a,useLocal:t}){try{let s=t?l.A:r.A,{invite:n,database_access:o,priviledge:d,email:u}=e,c=[n,u],m=await s("SELECT date_created_code FROM invitations WHERE inviting_user_id=? AND invited_user_email=?",c);if(!m||!m[0])throw Error("No Invitation Found");let _=[n],g=await s("SELECT first_name,last_name,email FROM users WHERE id=?",_);if(g?.[0]){let e=await s("SELECT email FROM user_users WHERE user_id=? AND invited_user_id=? AND user_type='admin' AND email=?",[n,a.id,u]);if(e?.[0])console.log("User already added");else{(0,i.A)({dbFullName:"datasquirel",tableName:"user_users",data:{user_id:n,invited_user_id:a.id,database_access:o,first_name:a.first_name,last_name:a.last_name,phone:a.phone,email:a.email,username:a.username,user_type:"admin",user_priviledge:d,image:a.image,image_thumbnail:a.image_thumbnail},useLocal:t});let e=await s("SELECT db_tables_data FROM invitations WHERE inviting_user_id=? AND invited_user_email=?",[n,u]);if(await s("DELETE FROM delegated_user_tables WHERE root_user_id=? AND delegated_user_id=?",[n,a.id]),e&&e[0]){let s=e[0].db_tables_data.split("|");for(let e=0;e{t.d(a,{A:()=>u});var s=t(47795),r=t.n(s),i=t(48786),l=t(47546),n=t(98e3),o=t(68829),d=t(7971);async function u({userId:e,useLocal:a}){try{let t=process.env.DSQL_DB_HOST||"127.0.0.1",s=`dsql_user_${e}`,u=r().generate({length:16,numbers:!0,symbols:!0,uppercase:!0,exclude:"*#.'`\""}),c=(0,o.A)({data:u}),m=`CREATE USER IF NOT EXISTS '${s}'@'127.0.0.1' IDENTIFIED BY '${u}'`;a?await (0,d.A)(m):await (0,l.A)(m);let _="UPDATE users SET mariadb_user = ?, mariadb_host = '127.0.0.1', mariadb_pass = ? WHERE id = ?",g=[s,c,e];a?await (0,d.A)(_,g):await (0,i.A)(_,g),await (0,n.A)({tableName:"mariadb_users",data:{user_id:e,username:s,host:t,password:c,primary:"1",grants:'[{"database":"*","table":"*","privileges":["ALL"]}]'},dbContext:"Master",useLocal:a}),console.log(`User ${e} SQL credentials successfully added.`)}catch(e){console.log("Error in adding SQL user in 'addMariadbUser' function =>",e.message)}}},96052:(e,a,t)=>{t.d(a,{A:()=>n});var s=t(29021),r=t.n(s),i=t(21572);let l=t.n(i)().createTransport({host:process.env.DSQL_MAIL_HOST,port:465,secure:!0,auth:{user:process.env.DSQL_MAIL_EMAIL,pass:process.env.DSQL_MAIL_PASSWORD}});async function n({to:e,subject:a,text:t,html:s,alias:i,senderName:n}){let o;if(!process.env.DSQL_MAIL_HOST||!process.env.DSQL_MAIL_EMAIL||!process.env.DSQL_MAIL_PASSWORD)return null;let d=(i?.match(/support/i),process.env.DSQL_MAIL_EMAIL);if(!r().existsSync("./email/index.html"))return;let u=r().readFileSync("./email/index.html","utf8").replace(/{{email_body}}/,s||"").replace(/{{issue_date}}/,Date().substring(0,24));try{let s={};s.from=`"${n||"Datasquirel"}" <${d}>`,s.sender=d,i&&(s.replyTo=d),s.to=e,s.subject=a,s.text=t,s.html=u,o=await l.sendMail(s)}catch(e){console.log("ERROR in handleNodemailer Function =>",e.message)}return o}},43775:(e,a,t)=>{t.d(a,{A:()=>i});var s=t(95969);let r=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/;async function i({unparsedResults:e,tableSchema:a}){let t=[];try{for(let i=0;i",a.message),e}}},67619:(e,a,t)=>{t.d(a,{A:()=>i});var s=t(29021),r=t.n(s);async function i({user:e,message:a,component:t,noMail:s,req:i}){let l=new Date,n=(()=>{if(!i)return null;try{let e=i.headers["x-forwarded-for"],a=i.headers["x-real-ip"],t=i.headers["cf-connecting-ip"],s=Array.isArray(e)?e[0]:e?.split(",")[0],r=t||s||a||i.socket.remoteAddress;if(!r)return null;return String(r)}catch(e){return null}})();try{let s=`🚀 SERVER ERROR =========================== Error Message: ${a} Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(s+=` User Id: ${e?.id} @@ -8,9 +8,9 @@ URL: ${i.url}`),i?.body&&(s+=` Request Body: ${JSON.stringify(i.body,null,4)}`),n&&(s+=` IP: ${n}`),s+=` Date: ${l.toDateString()} -========================================`,r().existsSync("./.tmp/error.log")||r().writeFileSync("./.tmp/error.log","","utf-8");let d=r().readFileSync("./.tmp/error.log","utf-8");r().writeFileSync("./.tmp/error.log",s),r().appendFileSync("./.tmp/error.log",` +========================================`,r().existsSync("./.tmp/error.log")||r().writeFileSync("./.tmp/error.log","","utf-8");let o=r().readFileSync("./.tmp/error.log","utf-8");r().writeFileSync("./.tmp/error.log",s),r().appendFileSync("./.tmp/error.log",` -${d}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},30944:(e,a,t)=>{t.d(a,{A:()=>d});var s=t(43775),r=t(67619),i=t(48786),l=t(37275),n=t(7971);async function d({queryString:e,queryValuesArray:a,database:t,tableSchema:d,useLocal:o}){let u;let c=!!o||!!t?.match(/^datasquirel$/),m=o?n.A:c?i.A:l.default;try{u=e&&a&&Array.isArray(a)&&a[0]?c?await m(e,a):await m({paradigm:"Full Access",queryString:e,queryValues:a}):c?await m(e):await m({paradigm:"Full Access",queryString:e})}catch(e){console.log(`varDatabaseDbHandler Error: ${e.message}`),(0,r.default)({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(u&&d)try{let e=u;return await (0,s.A)({unparsedResults:e,tableSchema:d})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",t,e),(0,r.default)({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(u)return u;else return null}},95969:(e,a,t)=>{t.d(a,{A:()=>i});var s=t(55511),r=t(79428);function i({encryptedString:e,encryptionKey:a,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let i=a||process.env.DSQL_ENCRYPTION_PASSWORD,l=t||process.env.DSQL_ENCRYPTION_SALT,n=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!i?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!l?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let d=(0,s.scryptSync)(i,l,n),o=r.Buffer.alloc(16,0),u=(0,s.createDecipheriv)("aes-192-cbc",d,o);try{let a=u.update(e,"hex","utf8");return a+=u.final("utf8")}catch(a){return console.log("Error in decrypting =>",a.message),e}}},47546:(e,a,t)=>{t.d(a,{A:()=>s});function s(...e){let a=global.DSQL_DB_CONN;try{return new Promise((t,s)=>{a.query(...e).then(e=>{a.end(),t(JSON.parse(JSON.stringify(e)))}).catch(e=>{a.end(),t({error:e.message,sql:e.sql})})})}catch(e){return{success:!1,error:e.message}}}}}; \ No newline at end of file +${o}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},30944:(e,a,t)=>{t.d(a,{A:()=>o});var s=t(43775),r=t(67619),i=t(48786),l=t(37275),n=t(7971);async function o({queryString:e,queryValuesArray:a,database:t,tableSchema:o,useLocal:d}){let u;let c=!!d||!!t?.match(/^datasquirel$/),m=d?n.A:c?i.A:l.A;try{u=e&&a&&Array.isArray(a)&&a[0]?c?await m(e,a):await m({paradigm:"Full Access",queryString:e,queryValues:a}):c?await m(e):await m({paradigm:"Full Access",queryString:e})}catch(e){console.log(`varDatabaseDbHandler Error: ${e.message}`),(0,r.A)({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(u&&o)try{let e=u;return await (0,s.A)({unparsedResults:e,tableSchema:o})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",t,e),(0,r.A)({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(u)return u;else return null}},95969:(e,a,t)=>{t.d(a,{A:()=>i});var s=t(55511),r=t(79428);function i({encryptedString:e,encryptionKey:a,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let i=a||process.env.DSQL_ENCRYPTION_PASSWORD,l=t||process.env.DSQL_ENCRYPTION_SALT,n=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!i?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!l?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let o=(0,s.scryptSync)(i,l,n),d=r.Buffer.alloc(16,0),u=(0,s.createDecipheriv)("aes-192-cbc",o,d);try{let a=u.update(e,"hex","utf8");return a+=u.final("utf8")}catch(a){return console.log("Error in decrypting =>",a.message),e}}},47546:(e,a,t)=>{t.d(a,{A:()=>s});function s(...e){let a=global.DSQL_DB_CONN;try{return new Promise((t,s)=>{a.query(...e).then(e=>{a.end(),t(JSON.parse(JSON.stringify(e)))}).catch(e=>{a.end(),t({error:e.message,sql:e.sql})})})}catch(e){return{success:!1,error:e.message}}}}}; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/5392.js b/dsql-app/.local_dist/server/chunks/5392.js index 30f2e08..f797a30 100644 --- a/dsql-app/.local_dist/server/chunks/5392.js +++ b/dsql-app/.local_dist/server/chunks/5392.js @@ -1 +1 @@ -"use strict";exports.id=5392,exports.ids=[5392],exports.modules={53926:(e,s,t)=>{t.d(s,{A:()=>i});var a=t(8732),r=t(82015),n=t.n(r);function i({confirmedDelegetedUser:e,linksArray:s,user:t}){let[r,i]=n().useState(s||null);return r&&r[1]?(0,a.jsx)("div",{className:"text-sm mt-2 flex-wrap",children:r.map((e,s,t)=>s===r.length-1?(0,a.jsx)("a",{href:e.path,className:"text-slate-400 dark:text-slate-500 pointer-events-none",children:e.title},s):(0,a.jsxs)(n().Fragment,{children:[(0,a.jsx)("a",{href:e.path,className:"query-url",children:e.title}),(0,a.jsx)("span",{className:"opacity-20",children:"|"})]},s))}):(0,a.jsx)(n().Fragment,{})}},87639:(e,s,t)=>{t.d(s,{A:()=>x});var a=t(8732),r=t(82015),n=t.n(r);t(46169);var i=t(72390),l=t(16757),c=t(66916),o=t(66918),d=t(23293);function x(){let[e,s]=n().useState(!0),[t,r]=n().useState(0),[x,m]=n().useState(0);return e?(0,a.jsx)("div",{className:"button ghost small-text",style:{height:"30px"},children:(0,a.jsx)(l.A,{width:"15px",position:"relative"})}):(0,a.jsx)(n().Fragment,{children:t?(0,a.jsxs)("div",{className:"button ghost small-text normal-weight p-0",style:{height:"30px",padding:0},onClick:e=>{s(!0),(0,i.A)().then(()=>{m(e=>e+1),s(!1)})},children:[e&&(0,a.jsx)(l.A,{width:"15px"}),(0,a.jsx)(c.A,{size:20,className:"text-slate-400 mr-[3px]"}),(0,a.jsx)("span",{className:"font-bold text-slate-700 dark:text-white",children:t&&t.toFixed(2)}),(0,a.jsx)("span",{className:"text-slate-500",children:"mb"}),(0,a.jsx)(o.A,{size:17,className:"text-slate-400",strokeWidth:2})]}):(0,a.jsxs)("span",{className:"text-sm info gray font-normal w-auto",children:[(0,a.jsx)(d.A,{}),(0,a.jsx)("span",{children:"No Disk Usage Data Available Yet"})]})})}},92702:(e,s,t)=>{t.d(s,{A:()=>c});var a=t(71934),r=t(71205),n=t(29021),i=t.n(n),l=t(41939);async function c(e,s,t){try{let{keyCookieName:n,csrfCookieName:c}=(0,l.A)();if(!e.cookies?.[n]?.match(/./))throw Error("Request Cookies not Found!");let o=(0,r.A)({encryptedString:e.cookies[n]});if(!o)throw Error("Couldn't decrypt auth cookie!");let d=JSON.parse(o);if(!d.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(d.csrf_k)))throw Error("Deep Auth Failed. `csrf` key not found in request headers!");let x=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!x)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!i().existsSync(`${x}/${d.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==d.verification_status&&!t){let e=await (0,a.A)(`SELECT verification_status FROM users WHERE id='${d.id}'`);e&&e[0]&&1==e[0].verification_status&&s.setHeader("Set-Cookie",["user_refresh=1"])}if(d?.date&&Date.now()-d.date>6048e5)throw Error("Key expired!");return d}catch(e){return console.log(`userAuth Error: ${e.message}`),null}}},72390:(e,s,t)=>{t.d(s,{A:()=>r});var a=t(46169);async function r(){let e=await (0,a.A)("/api/getDiskUsage");localStorage.setItem("disk_usage",e.total)}},89923:(e,s,t)=>{t.d(s,{A:()=>a});function a(e,s){return s?!!(e?.id&&String(e?.id)==(process.env.DSQL_SU_USER_ID||"1")):!!(e?.id&&"1"==String(e?.id))}},25562:(e,s,t)=>{t.d(s,{A:()=>N});var a=t(8732),r=t(82015),n=t.n(r),i=t(27912),l=t.n(i),c=t(50139),o=t(52070),d=t(34637),x=t(83158),m=t(25294),h=t(92441),u=t(29743),p=t(10643),j=t(10321),f=t(89923);function g({user:e}){let[s,t]=n().useState(!0);return(0,a.jsxs)("aside",{className:"aside"+(s?" mobile-collapsed":" mobile-expanded"),children:[(0,a.jsx)(c.A,{adminAside:!0,collapseAsideMobile:s,setCollapseAsideMobile:t}),(0,a.jsx)("hr",{className:"opacity-0 mt-4"}),(0,a.jsxs)("div",{className:"main-links"+(s?" hidden lg:flex":" "),children:[(0,a.jsxs)("a",{href:"/admin","data-currentlink":"/admin","data-strictlink":"true",children:[(0,a.jsx)(o.A,{size:20}),(0,a.jsx)("span",{children:"Dashboard"})]}),(0,a.jsxs)("a",{href:`/admin/${e?.id}/databases`,"data-currentlink":`/admin/${e?.id}/databases`,children:[(0,a.jsx)(d.A,{size:20}),(0,a.jsx)("span",{children:"Databases"})]}),(0,a.jsxs)("a",{href:`/admin/${e?.id}/media`,"data-currentlink":`/admin/${e?.id}/media`,children:[(0,a.jsx)(x.A,{size:20}),(0,a.jsx)("span",{children:"Media"})]}),(0,a.jsxs)("a",{href:`/admin/${e?.id}/users`,"data-currentlink":`/admin/${e?.id}/users`,children:[(0,a.jsx)(m.A,{size:20}),(0,a.jsx)("span",{children:"Users"})]}),(0,a.jsxs)("a",{href:`/admin/${e?.id}/schema`,"data-currentlink":`/admin/${e?.id}/schema`,children:[(0,a.jsx)(h.A,{size:20}),(0,a.jsx)("span",{children:"Schema"})]}),(0,a.jsxs)("a",{href:`/admin/${e?.id}/api-keys`,"data-currentlink":`/admin/${e?.id}/api-keys`,children:[(0,a.jsx)(u.A,{size:20}),(0,a.jsx)("span",{children:"API Keys"})]}),(0,a.jsxs)("a",{href:`/admin/${e?.id}/connect`,"data-currentlink":`/admin/${e?.id}/connect`,children:[(0,a.jsx)(p.A,{size:20}),(0,a.jsx)("span",{children:"Connect"})]}),(0,f.A)(e)&&(0,a.jsx)(n().Fragment,{children:(0,a.jsxs)("a",{href:"/su","data-currentlink":"/su",children:[(0,a.jsx)(j.A,{size:20}),(0,a.jsx)("span",{children:"Super Admin User"})]})}),(0,a.jsx)("hr",{className:"opacity-80"}),(0,a.jsxs)("div",{className:"flex-col gap-0 items-start w-full",children:[(0,a.jsx)("a",{href:`/admin/${e?.id}/settings`,"data-currentlink":`/admin/${e?.id}/settings`,children:(0,a.jsx)("span",{children:"Settings"})}),(0,a.jsx)("a",{href:"/docs","data-currentlink":"/docs",target:"_blank",children:(0,a.jsx)("span",{children:"Documentation"})}),(0,a.jsx)("a",{href:"/logout","data-currentlink":"/logout",children:(0,a.jsx)("span",{children:"Logout"})})]})]})]})}var y=t(192);function v({user:e,extraHeaderContent:s}){let[t,r]=n().useState(e||null);return(0,a.jsx)("section",{className:"overflow-visible w-full px-0 md:px-8 py-0 flex justify-center bg-white dark:bg-slate-800 shadow-lg gap-4 dark:shadow-black/10 shadow-slate-900/5 relative z-[100]",style:{zIndex:700,border:"none"},children:(0,a.jsxs)("div",{className:"w-full items-center justify-between gap-4 md:gap-8",children:[(0,a.jsxs)("div",{className:"hidden xl:flex flex-col items-stretch grow fixed xl:static top-0 right-0 px-4 xl:px-0 shadow-xl xl:shadow-none h-screen xl:h-auto overflow-auto xl:overflow-visible w-screen sl:w-auto bg-white xl:bg-transparent pb-10 xl:pb-0",id:"main-nav-content-wrapper",children:[(0,a.jsxs)("div",{className:"items-center mb-2 flex xl:hidden",children:[(0,a.jsx)("a",{href:"/",className:"hidden xl:flex",children:(0,a.jsx)("img",{src:"/images/logo-icon-alt-2.png",alt:"Logo Icon",width:37})}),(0,a.jsx)("button",{className:"outlined gray ml-auto",onClick:e=>{let s=document.getElementById("main-nav-content-wrapper");s?.classList.toggle("hidden")},style:{border:"none"},children:(0,a.jsx)("span",{className:"font-semibold text-4xl",children:"✕"})})]}),(0,a.jsxs)("div",{className:"flex items-center w-full gap-6 grow flex-col xl:flex-row justify-start xl:justify-between",children:[(0,a.jsx)("div",{className:"gap-6",children:s}),(0,a.jsx)(y.A,{activeUser:t})]})]}),(0,a.jsxs)("button",{className:"bg-transparent w-16 p-4 gap-1.5 flex xl:hidden flex-col hover:bg-transparent transition-all ml-auto",onClick:e=>{let s=document.getElementById("main-nav-content-wrapper");s?.classList.toggle("hidden")},style:{minWidth:"50px",backgroundColor:"transparent"},id:"main-header-hamburger-button","aria-label":"Mobile Hambutget Button",children:[(0,a.jsx)("div",{className:"w-full h-1 bg-slate-600 dark:bg-slate-400 rounded-full"}),(0,a.jsx)("div",{className:"w-full h-1 bg-slate-600 dark:bg-slate-400 rounded-full"}),(0,a.jsx)("div",{className:"w-full h-1 bg-slate-600 dark:bg-slate-400 rounded-full"})]})]})})}t(27550);var _=t(87639);function N({children:e,head:s,user:t,productionEnvironment:r,extraHeaderContent:i,aceEditor:o}){return i||(i=(0,a.jsx)(_.A,{})),(0,a.jsxs)(n().Fragment,{children:[(0,a.jsxs)(l(),{children:[s,(0,a.jsxs)(n().Fragment,{children:[(0,a.jsx)("script",{src:"https://cdnjs.cloudflare.com/ajax/libs/ace/1.22.0/ace.min.js",integrity:"sha512-q6CTB0jS+VuJnSct82rVcWlI06LGzNjaG3CWenHWVUncRvc4UQMFkA3a5Ip880xr+lBx38FcHDclOxPdSg+sBw==",crossOrigin:"anonymous",referrerPolicy:"no-referrer"}),(0,a.jsx)("script",{src:"https://cdnjs.cloudflare.com/ajax/libs/ace/1.22.0/ext-language_tools.min.js",integrity:"sha512-6g6cvocV7eT/J8L44lL8gJKqq9onqQeYGgJO0DmrsYFcCfRl6wYkYA/KHS768r4QVTB4JxsCcMQ9gIezxpTCZw==",crossOrigin:"anonymous",referrerPolicy:"no-referrer"})]})]}),(0,a.jsxs)("div",{className:"admin w-full flex items-start gap-0",children:[(0,a.jsx)(g,{user:t}),(0,a.jsxs)("main",{className:"relative",children:[(0,a.jsx)(v,{user:t,extraHeaderContent:i}),(0,a.jsx)("div",{className:"admin-content relative z-10",children:e}),(0,a.jsx)("footer",{className:"flex justify-center w-full items-center p-4",children:(0,a.jsxs)("div",{className:"max-w-6xl w-full justify-center flex-wrap",children:[(0,a.jsx)("div",{className:"flex items-center gap-2 scale-75",children:(0,a.jsx)(c.A,{})}),(0,a.jsx)("span",{className:"opacity-25",children:"|"}),(0,a.jsxs)("span",{className:"text-sm text-slate-400 dark:text-slate-600 text-center",children:[new Date().getFullYear()," \xa9 Datasquirel. All rights reserved."]}),(0,a.jsx)("span",{className:"opacity-25",children:"|"}),(0,a.jsx)("a",{href:"/docs",children:"Docs"}),(0,a.jsx)("span",{className:"opacity-25",children:"|"}),(0,a.jsx)("a",{href:"/terms",children:"Terms"})]})})]})]})]})}t(46169)},41939:(e,s,t)=>{t.d(s,{A:()=>a});function a(e){let s=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",a=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",r=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",n=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),i=s;e?.userId&&(i+=`user_${e.userId}_`),n&&(i+=`${n}_`),i+=t;let l=s;e?.userId&&(l+=`user_${e.userId}_`),n&&(l+=`${n}_`),l+=a;let c=s;return e?.userId&&(c+=`user_${e.userId}_`),n&&(c+=`${n}_`),{keyCookieName:i,csrfCookieName:l,oneTimeCodeName:c+=r}}},71205:(e,s,t)=>{t.d(s,{A:()=>n});var a=t(55511),r=t(79428);function n({encryptedString:e,encryptionKey:s,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let n=s||process.env.DSQL_ENCRYPTION_PASSWORD,i=t||process.env.DSQL_ENCRYPTION_SALT,l=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!n?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let c=(0,a.scryptSync)(n,i,l),o=r.Buffer.alloc(16,0),d=(0,a.createDecipheriv)("aes-192-cbc",c,o);try{let s=d.update(e,"hex","utf8");return s+=d.final("utf8")}catch(s){return console.log("Error in decrypting =>",s.message),e}}},71934:(e,s,t)=>{t.d(s,{A:()=>a});async function a(...e){let s=global.DSQL_DB_CONN;try{if(!s)throw Error("No Connection provided to DB_HANDLER function!");let t=await s.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await s?.end()}}},5583:(e,s,t)=>{t.r(s),t.d(s,{default:()=>n});var a=t(8732);t(82015);var r=t(20883);function n(){return(0,a.jsxs)(r.Html,{lang:"en",children:[(0,a.jsxs)(r.Head,{children:[(0,a.jsx)("meta",{name:"author",content:"Datasquirel"}),(0,a.jsx)("meta",{name:"Copyright",content:`Copyright (c) ${new Date().getFullYear()} Datasquirel`}),"dev_dev".match(/dev/)&&(0,a.jsx)("meta",{name:"robots",content:"noindex,nofollow"}),(0,a.jsx)("link",{rel:"preconnect",href:"https://fonts.googleapis.com/",crossOrigin:"anonymous"}),(0,a.jsx)("link",{rel:"preconnect",href:"https://fonts.gstatic.com",crossOrigin:"anonymous"}),(0,a.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=Poppins"}),(0,a.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=Inter"}),(0,a.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=IBM+Plex+Mono"}),(0,a.jsx)("script",{src:"/scripts/themeSelector.js"}),(0,a.jsx)("meta",{httpEquiv:"Content-Type",content:"text/html; charset=UTF-8"}),(0,a.jsx)("meta",{property:"og:site_name",content:"DATASQUIREL"}),(0,a.jsx)("meta",{property:"og:type",content:"website"}),(0,a.jsx)("meta",{name:"twitter:card",content:"summary"}),(0,a.jsx)("meta",{property:"og:image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,a.jsx)("meta",{itemProp:"image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,a.jsx)("meta",{name:"twitter:image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,a.jsx)("link",{rel:"stylesheet",href:"/styles/prism.css"}),(0,a.jsx)("script",{src:"/scripts/prism.js",async:!0}),(0,a.jsx)("script",{dangerouslySetInnerHTML:{__html:"var DSQL = {}"}})]}),(0,a.jsxs)("body",{children:[(0,a.jsx)(r.Main,{}),(0,a.jsx)(r.NextScript,{})]})]})}}}; \ No newline at end of file +"use strict";exports.id=5392,exports.ids=[5392],exports.modules={53926:(e,s,t)=>{t.d(s,{A:()=>i});var a=t(8732),r=t(82015),n=t.n(r);function i({confirmedDelegetedUser:e,linksArray:s,user:t}){let[r,i]=n().useState(s||null);return r&&r[1]?(0,a.jsx)("div",{className:"text-sm mt-2 flex-wrap",children:r.map((e,s,t)=>s===r.length-1?(0,a.jsx)("a",{href:e.path,className:"text-slate-400 dark:text-slate-500 pointer-events-none",children:e.title},s):(0,a.jsxs)(n().Fragment,{children:[(0,a.jsx)("a",{href:e.path,className:"query-url",children:e.title}),(0,a.jsx)("span",{className:"opacity-20",children:"|"})]},s))}):(0,a.jsx)(n().Fragment,{})}},87639:(e,s,t)=>{t.d(s,{A:()=>x});var a=t(8732),r=t(82015),n=t.n(r);t(46169);var i=t(72390),l=t(16757),c=t(66916),o=t(66918),d=t(23293);function x(){let[e,s]=n().useState(!0),[t,r]=n().useState(0),[x,h]=n().useState(0);return e?(0,a.jsx)("div",{className:"button ghost small-text",style:{height:"30px"},children:(0,a.jsx)(l.A,{width:"15px",position:"relative"})}):(0,a.jsx)(n().Fragment,{children:t?(0,a.jsxs)("div",{className:"button ghost small-text normal-weight p-0",style:{height:"30px",padding:0},onClick:e=>{s(!0),(0,i.A)().then(()=>{h(e=>e+1),s(!1)})},children:[e&&(0,a.jsx)(l.A,{width:"15px"}),(0,a.jsx)(c.A,{size:20,className:"text-slate-400 mr-[3px]"}),(0,a.jsx)("span",{className:"font-bold text-slate-700 dark:text-white",children:t&&t.toFixed(2)}),(0,a.jsx)("span",{className:"text-slate-500",children:"mb"}),(0,a.jsx)(o.A,{size:17,className:"text-slate-400",strokeWidth:2})]}):(0,a.jsxs)("span",{className:"text-sm info gray font-normal w-auto",children:[(0,a.jsx)(d.A,{}),(0,a.jsx)("span",{children:"No Disk Usage Data Available Yet"})]})})}},92702:(e,s,t)=>{t.d(s,{A:()=>c});var a=t(71934),r=t(71205),n=t(29021),i=t.n(n),l=t(41939);async function c(e,s,t){try{let{keyCookieName:n,csrfCookieName:c}=(0,l.A)();if(!e.cookies?.[n]?.match(/./))throw Error("Request Cookies not Found!");let o=(0,r.A)({encryptedString:e.cookies[n]});if(!o)throw Error("Couldn't decrypt auth cookie!");let d=JSON.parse(o);if(!d.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(d.csrf_k)))throw console.log("req.headers",e.headers),console.log("userObject",d),Error("Deep Auth Failed. `csrf` key not found in request headers!");let x=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!x)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!i().existsSync(`${x}/${d.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==d.verification_status&&!t){let e=await (0,a.A)(`SELECT verification_status FROM users WHERE id='${d.id}'`);e&&e[0]&&1==e[0].verification_status&&s.setHeader("Set-Cookie",["user_refresh=1"])}if(d?.date&&Date.now()-d.date>6048e5)throw Error("Key expired!");return d}catch(e){return console.log(`userAuth Error: ${e.message}`),null}}},72390:(e,s,t)=>{t.d(s,{A:()=>r});var a=t(46169);async function r(){let e=await (0,a.A)("/api/getDiskUsage");localStorage.setItem("disk_usage",e.total)}},89923:(e,s,t)=>{t.d(s,{A:()=>a});function a(e,s){return s?!!(e?.id&&String(e?.id)==(process.env.DSQL_SU_USER_ID||"1")):!!(e?.id&&"1"==String(e?.id))}},25562:(e,s,t)=>{t.d(s,{A:()=>N});var a=t(8732),r=t(82015),n=t.n(r),i=t(27912),l=t.n(i),c=t(50139),o=t(52070),d=t(34637),x=t(83158),h=t(25294),m=t(92441),u=t(29743),p=t(10643),j=t(10321),f=t(89923);function g({user:e}){let[s,t]=n().useState(!0);return(0,a.jsxs)("aside",{className:"aside"+(s?" mobile-collapsed":" mobile-expanded"),children:[(0,a.jsx)(c.A,{adminAside:!0,collapseAsideMobile:s,setCollapseAsideMobile:t}),(0,a.jsx)("hr",{className:"opacity-0 mt-4"}),(0,a.jsxs)("div",{className:"main-links"+(s?" hidden lg:flex":" "),children:[(0,a.jsxs)("a",{href:"/admin","data-currentlink":"/admin","data-strictlink":"true",children:[(0,a.jsx)(o.A,{size:20}),(0,a.jsx)("span",{children:"Dashboard"})]}),(0,a.jsxs)("a",{href:`/admin/${e?.id}/databases`,"data-currentlink":`/admin/${e?.id}/databases`,children:[(0,a.jsx)(d.A,{size:20}),(0,a.jsx)("span",{children:"Databases"})]}),(0,a.jsxs)("a",{href:`/admin/${e?.id}/media`,"data-currentlink":`/admin/${e?.id}/media`,children:[(0,a.jsx)(x.A,{size:20}),(0,a.jsx)("span",{children:"Media"})]}),(0,a.jsxs)("a",{href:`/admin/${e?.id}/users`,"data-currentlink":`/admin/${e?.id}/users`,children:[(0,a.jsx)(h.A,{size:20}),(0,a.jsx)("span",{children:"Users"})]}),(0,a.jsxs)("a",{href:`/admin/${e?.id}/schema`,"data-currentlink":`/admin/${e?.id}/schema`,children:[(0,a.jsx)(m.A,{size:20}),(0,a.jsx)("span",{children:"Schema"})]}),(0,a.jsxs)("a",{href:`/admin/${e?.id}/api-keys`,"data-currentlink":`/admin/${e?.id}/api-keys`,children:[(0,a.jsx)(u.A,{size:20}),(0,a.jsx)("span",{children:"API Keys"})]}),(0,a.jsxs)("a",{href:`/admin/${e?.id}/connect`,"data-currentlink":`/admin/${e?.id}/connect`,children:[(0,a.jsx)(p.A,{size:20}),(0,a.jsx)("span",{children:"Connect"})]}),(0,f.A)(e)&&(0,a.jsx)(n().Fragment,{children:(0,a.jsxs)("a",{href:"/su","data-currentlink":"/su",children:[(0,a.jsx)(j.A,{size:20}),(0,a.jsx)("span",{children:"Super Admin User"})]})}),(0,a.jsx)("hr",{className:"opacity-80"}),(0,a.jsxs)("div",{className:"flex-col gap-0 items-start w-full",children:[(0,a.jsx)("a",{href:`/admin/${e?.id}/settings`,"data-currentlink":`/admin/${e?.id}/settings`,children:(0,a.jsx)("span",{children:"Settings"})}),(0,a.jsx)("a",{href:"/docs","data-currentlink":"/docs",target:"_blank",children:(0,a.jsx)("span",{children:"Documentation"})}),(0,a.jsx)("a",{href:"/logout","data-currentlink":"/logout",children:(0,a.jsx)("span",{children:"Logout"})})]})]})]})}var y=t(192);function v({user:e,extraHeaderContent:s}){let[t,r]=n().useState(e||null);return(0,a.jsx)("section",{className:"overflow-visible w-full px-0 md:px-8 py-0 flex justify-center bg-white dark:bg-slate-800 shadow-lg gap-4 dark:shadow-black/10 shadow-slate-900/5 relative z-[100]",style:{zIndex:700,border:"none"},children:(0,a.jsxs)("div",{className:"w-full items-center justify-between gap-4 md:gap-8",children:[(0,a.jsxs)("div",{className:"hidden xl:flex flex-col items-stretch grow fixed xl:static top-0 right-0 px-4 xl:px-0 shadow-xl xl:shadow-none h-screen xl:h-auto overflow-auto xl:overflow-visible w-screen sl:w-auto bg-white xl:bg-transparent pb-10 xl:pb-0",id:"main-nav-content-wrapper",children:[(0,a.jsxs)("div",{className:"items-center mb-2 flex xl:hidden",children:[(0,a.jsx)("a",{href:"/",className:"hidden xl:flex",children:(0,a.jsx)("img",{src:"/images/logo-icon-alt-2.png",alt:"Logo Icon",width:37})}),(0,a.jsx)("button",{className:"outlined gray ml-auto",onClick:e=>{let s=document.getElementById("main-nav-content-wrapper");s?.classList.toggle("hidden")},style:{border:"none"},children:(0,a.jsx)("span",{className:"font-semibold text-4xl",children:"✕"})})]}),(0,a.jsxs)("div",{className:"flex items-center w-full gap-6 grow flex-col xl:flex-row justify-start xl:justify-between",children:[(0,a.jsx)("div",{className:"gap-6",children:s}),(0,a.jsx)(y.A,{activeUser:t})]})]}),(0,a.jsxs)("button",{className:"bg-transparent w-16 p-4 gap-1.5 flex xl:hidden flex-col hover:bg-transparent transition-all ml-auto",onClick:e=>{let s=document.getElementById("main-nav-content-wrapper");s?.classList.toggle("hidden")},style:{minWidth:"50px",backgroundColor:"transparent"},id:"main-header-hamburger-button","aria-label":"Mobile Hambutget Button",children:[(0,a.jsx)("div",{className:"w-full h-1 bg-slate-600 dark:bg-slate-400 rounded-full"}),(0,a.jsx)("div",{className:"w-full h-1 bg-slate-600 dark:bg-slate-400 rounded-full"}),(0,a.jsx)("div",{className:"w-full h-1 bg-slate-600 dark:bg-slate-400 rounded-full"})]})]})})}t(27550);var _=t(87639);function N({children:e,head:s,user:t,productionEnvironment:r,extraHeaderContent:i,aceEditor:o}){return i||(i=(0,a.jsx)(_.A,{})),(0,a.jsxs)(n().Fragment,{children:[(0,a.jsxs)(l(),{children:[s,(0,a.jsxs)(n().Fragment,{children:[(0,a.jsx)("script",{src:"https://cdnjs.cloudflare.com/ajax/libs/ace/1.22.0/ace.min.js",integrity:"sha512-q6CTB0jS+VuJnSct82rVcWlI06LGzNjaG3CWenHWVUncRvc4UQMFkA3a5Ip880xr+lBx38FcHDclOxPdSg+sBw==",crossOrigin:"anonymous",referrerPolicy:"no-referrer"}),(0,a.jsx)("script",{src:"https://cdnjs.cloudflare.com/ajax/libs/ace/1.22.0/ext-language_tools.min.js",integrity:"sha512-6g6cvocV7eT/J8L44lL8gJKqq9onqQeYGgJO0DmrsYFcCfRl6wYkYA/KHS768r4QVTB4JxsCcMQ9gIezxpTCZw==",crossOrigin:"anonymous",referrerPolicy:"no-referrer"})]})]}),(0,a.jsxs)("div",{className:"admin w-full flex items-start gap-0",children:[(0,a.jsx)(g,{user:t}),(0,a.jsxs)("main",{className:"relative",children:[(0,a.jsx)(v,{user:t,extraHeaderContent:i}),(0,a.jsx)("div",{className:"admin-content relative z-10",children:e}),(0,a.jsx)("footer",{className:"flex justify-center w-full items-center p-4",children:(0,a.jsxs)("div",{className:"max-w-6xl w-full justify-center flex-wrap",children:[(0,a.jsx)("div",{className:"flex items-center gap-2 scale-75",children:(0,a.jsx)(c.A,{})}),(0,a.jsx)("span",{className:"opacity-25",children:"|"}),(0,a.jsxs)("span",{className:"text-sm text-slate-400 dark:text-slate-600 text-center",children:[new Date().getFullYear()," \xa9 Datasquirel. All rights reserved."]}),(0,a.jsx)("span",{className:"opacity-25",children:"|"}),(0,a.jsx)("a",{href:"/docs",children:"Docs"}),(0,a.jsx)("span",{className:"opacity-25",children:"|"}),(0,a.jsx)("a",{href:"/terms",children:"Terms"})]})})]})]})]})}t(46169)},41939:(e,s,t)=>{t.d(s,{A:()=>a});function a(e){let s=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",a=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",r=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",n=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),i=s;e?.userId&&(i+=`user_${e.userId}_`),n&&(i+=`${n}_`),i+=t;let l=s;e?.userId&&(l+=`user_${e.userId}_`),n&&(l+=`${n}_`),l+=a;let c=s;return e?.userId&&(c+=`user_${e.userId}_`),n&&(c+=`${n}_`),{keyCookieName:i,csrfCookieName:l,oneTimeCodeName:c+=r}}},71205:(e,s,t)=>{t.d(s,{A:()=>n});var a=t(55511),r=t(79428);function n({encryptedString:e,encryptionKey:s,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let n=s||process.env.DSQL_ENCRYPTION_PASSWORD,i=t||process.env.DSQL_ENCRYPTION_SALT,l=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!n?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let c=(0,a.scryptSync)(n,i,l),o=r.Buffer.alloc(16,0),d=(0,a.createDecipheriv)("aes-192-cbc",c,o);try{let s=d.update(e,"hex","utf8");return s+=d.final("utf8")}catch(s){return console.log("Error in decrypting =>",s.message),e}}},71934:(e,s,t)=>{t.d(s,{A:()=>a});async function a(...e){let s=global.DSQL_DB_CONN;try{if(!s)throw Error("No Connection provided to DB_HANDLER function!");let t=await s.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await s?.end()}}},5583:(e,s,t)=>{t.r(s),t.d(s,{default:()=>n});var a=t(8732);t(82015);var r=t(20883);function n(){return(0,a.jsxs)(r.Html,{lang:"en",children:[(0,a.jsxs)(r.Head,{children:[(0,a.jsx)("meta",{name:"author",content:"Datasquirel"}),(0,a.jsx)("meta",{name:"Copyright",content:`Copyright (c) ${new Date().getFullYear()} Datasquirel`}),"dev_dev".match(/dev/)&&(0,a.jsx)("meta",{name:"robots",content:"noindex,nofollow"}),(0,a.jsx)("link",{rel:"preconnect",href:"https://fonts.googleapis.com/",crossOrigin:"anonymous"}),(0,a.jsx)("link",{rel:"preconnect",href:"https://fonts.gstatic.com",crossOrigin:"anonymous"}),(0,a.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=Poppins"}),(0,a.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=Inter"}),(0,a.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=IBM+Plex+Mono"}),(0,a.jsx)("script",{src:"/scripts/themeSelector.js"}),(0,a.jsx)("meta",{httpEquiv:"Content-Type",content:"text/html; charset=UTF-8"}),(0,a.jsx)("meta",{property:"og:site_name",content:"DATASQUIREL"}),(0,a.jsx)("meta",{property:"og:type",content:"website"}),(0,a.jsx)("meta",{name:"twitter:card",content:"summary"}),(0,a.jsx)("meta",{property:"og:image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,a.jsx)("meta",{itemProp:"image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,a.jsx)("meta",{name:"twitter:image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,a.jsx)("link",{rel:"stylesheet",href:"/styles/prism.css"}),(0,a.jsx)("script",{src:"/scripts/prism.js",async:!0}),(0,a.jsx)("script",{dangerouslySetInnerHTML:{__html:"var DSQL = {}"}})]}),(0,a.jsxs)("body",{children:[(0,a.jsx)(r.Main,{}),(0,a.jsx)(r.NextScript,{})]})]})}}}; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/8704.js b/dsql-app/.local_dist/server/chunks/8704.js index 92acbba..ce6aaa1 100644 --- a/dsql-app/.local_dist/server/chunks/8704.js +++ b/dsql-app/.local_dist/server/chunks/8704.js @@ -1 +1 @@ -"use strict";exports.id=8704,exports.ids=[8704],exports.modules={39506:(e,t,a)=>{a.d(t,{A:()=>o});var s=a(8732),l=a(82015),n=a.n(l),r=a(16757),i=a(83921),d=a(46169);function c({paradigm:e,payload:t,setLoading:a,table:s,database:l}){a(!0),(0,d.A)("/api/exportTableData",{method:"POST",body:{paradigm:e,dbName:l.db_slug,tableName:s.tableName,payload:t}},!0).then(t=>{if(t.success){if("export"==e){let e=new Blob([JSON.stringify(t.data||[],null,4)],{type:"application/json"}),a=URL.createObjectURL(e),n=document.createElement("a");n.href=a,n.style.display="none",n.download=`${l.db_slug}-${s.tableName}-${Date.now()}.json`,document.body.appendChild(n),n.click(),document.body.removeChild(n)}else"import"==e&&(window.alert("Data Imported Successfully"),window.location.reload())}else t.msg&&window.alert(t.msg)}).catch(e=>{console.log(e)}).finally(()=>{a(!1)})}function o({database:e,table:t}){let[a,l]=n().useState(!1),[d,o]=n().useState(!0),u=n().useRef(null);return n().useRef(null),(0,s.jsxs)("div",{className:"relative",children:[a&&(0,s.jsx)(r.A,{width:"15px"}),(0,s.jsx)("div",{className:"button outlined gray",onClick:a=>{c({paradigm:"export",database:e,setLoading:l,table:t})},children:"Export"}),(0,s.jsx)("div",{className:"button outlined gray",onClick:a=>{u.current?.addEventListener("change",a=>{l(!0);let s=a.target;if(!s.files?.[0]){window.alert("No FIles selected"),l(!1);return}i.A({inputFile:s.files[0]}).then(a=>{window.confirm(`Use this file '${a.fileName}' as your import file?`)?c({paradigm:"import",payload:a.fileBase64,database:e,setLoading:l,table:t}):l(!1),o(!1),setTimeout(()=>{o(!0)},200)})}),u.current?.click()},children:"Import"}),d&&(0,s.jsx)("input",{type:"file",name:"json_file_input",id:"json_file_input",accept:".json",className:"hidden",ref:u})]})}},42427:(e,t,a)=>{a.d(t,{A:()=>x});var s=a(8732),l=a(82015),n=a.n(l),r=a(41836),i=a(95939),d=a(1346),c=a(80830),o=a(16757),u=a(84483),m=a(46169);function h({database:e,table:t,setOpenPopover:a,dbSchemaData:l,query:r}){let[i,d]=n().useState(!1);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("button",{className:"ghost p-3 justify-start",onClick:()=>{d(!0),setTimeout(()=>{a&&a(!1)},200)},children:"Sync Data"}),(0,s.jsx)(u.A,{open:i,setOpen:d,children:(0,s.jsx)(b,{database:e,table:t,dbSchemaData:l,query:r})})]})}function b({database:e,table:t,query:a,dbSchemaData:l}){let[r,i]=n().useState(l),[u,h]=n().useState("Push"),[b,x]=n().useState(r?.[0]),[p,f]=n().useState(b?.tables),[g,j]=n().useState(p?.[0]),[N,y]=n().useState(!1),[w,v]=n().useState(!1);return(0,s.jsxs)("div",{className:"stack gap-2 relative w-full",children:[N||!r&&(0,s.jsx)(o.A,{width:"20px"}),(0,s.jsx)("h3",{className:"m-0 text-lg",children:"Sync Data with another table"}),w?(0,s.jsxs)("span",{className:"info green inline",children:["The selected table matches ",(0,s.jsx)("b",{children:t.tableFullName})," ","schema"]}):(0,s.jsxs)("span",{className:"info warning inline",children:["The selected table is not compatible with"," ",(0,s.jsx)("b",{children:t.tableFullName})]}),r&&(0,s.jsxs)("form",{onSubmit:s=>{!function({e,setLoading:t,database:a,table:s,query:l}){e.preventDefault(),t(!0);let n=e.target,r=n.paradigm?.value,i=n.database?.value,d=n.table?.value,c={paradigm:r,src:{db:a.db_slug,table:s.tableName},dst:{db:i,table:d},delegated:l.delegated};if(!window.confirm("Pull"==r?"NOTE: This operation will override the current database entries. Continue?":"NOTE: This operation will override the selected database entries. Continue?")){setTimeout(()=>{t(!1)},1e3);return}(0,m.A)("/api/sync-table-data",{method:"POST",body:{...c}},!0).then(e=>{e.success?(window.alert("Data Sync Successful"),window.location.reload()):e.msg&&window.alert("ERROR: "+e.msg)}).finally(()=>{setTimeout(()=>{t(!1)},1e3)})}({e:s,database:e,setLoading:y,table:t,query:a})},className:"w-full stack gap-2 items-stretch",children:[(0,s.jsxs)("div",{className:"stack gap-2 my-2",children:[(0,s.jsx)(d.A,{radioValues:[{title:"Push",payload:"Push",default:!0},{title:"Pull",payload:"Pull"}],name:"paradigm",smallText:!0,flexRow:!0,onChangeHandler:e=>{h(e.target.value)}}),(0,s.jsx)("span",{className:"text-xs text-slate-500 dark:text-slate-400",children:"Push"==u?(0,s.jsxs)(s.Fragment,{children:["Sync data from the current table(",(0,s.jsx)("b",{children:t.tableFullName}),") to the selected table below"]}):(0,s.jsxs)(s.Fragment,{children:["Sync data from the selected table below to the current table(",(0,s.jsx)("b",{children:t.tableFullName}),")"]})})]}),(0,s.jsx)(c.A,{selectOptions:r.filter(t=>t.dbFullName!==e.db_full_name).map(e=>({title:e.dbName,payload:e.dbSlug})),name:"database",onChangeHandler:e=>{let t=r.find(t=>t.dbSlug==e.target.value);t&&(x(t),f(t.tables),j(t.tables?.[0]))}}),(0,s.jsx)(c.A,{selectOptions:p.map(e=>({title:e.tableFullName,payload:e.tableName})),name:"table",onChangeHandler:e=>{let t=p.find(t=>t.tableName===e.target.value);t&&j(t)}}),(0,s.jsx)("button",{className:w?"":"disabled",children:"Sync"})]})]})}function x({database:e,table:t,dbSchemaData:a,query:l}){let[d,c]=n().useState(!1);return(0,s.jsx)(r.Popover,{isOpen:d,onClickOutside:()=>c(!1),positions:["bottom"],align:"end",content:(0,s.jsxs)("div",{className:"stack items-stretch bg-white rounded shadow-md gap-0 min-w-[200px]",children:[(0,s.jsx)(h,{database:e,table:t,setOpenPopover:c,dbSchemaData:a,query:l}),(0,s.jsx)("hr",{className:"m-0"})]}),containerClassName:"z-[1000]",children:(0,s.jsx)("button",{onClick:()=>{c(!d)},className:"outlined gray px-2 py-1.5",children:(0,s.jsx)(i.A,{})})})}a(27825)},7141:(e,t,a)=>{a.a(e,async(e,s)=>{try{let b;a.d(t,{A:()=>h});var l=a(8732),n=a(82015),r=a.n(n),i=a(78704),d=a(80830),c=a(83155),o=a(46169),u=a(16757),m=e([i]);function h({data:e}){let{table:t,entries:s,activeEntries:n,setActiveEntries:m,confirmedDelegetedUser:h,database:x,targetField:p,searchTerm:f}=r().useContext(i.TableEntriesContext);a(94327),h?.delegated,h?.priviledges?.match(/Edit Tables/i),h?.priviledges?.match(/Delete Tables/i),h?.priviledges?.match(/Create Tables/i);let[g,j]=r().useState(!1),N=r().useRef(),[y,w]=r().useState(null);function v(e){if(j(!0),n&&m(null),!e?.toString().match(/./)){setTimeout(()=>{m&&m(s||[]),j(!1)},500);return}window.clearTimeout(b);let a=t?.fields.filter(e=>e.fieldName===p?.current),l=a&&a[0]&&a[0].dataType?.match(/int/i)||p?.current?.match(/^id$/)?"equal":"like";b=setTimeout(()=>{j(!1),(0,o.A)(`/api/queryEntriesSearchTerm?db=${x?.db_full_name}&table=${t?.tableName}&field=${p?.current}&term=${e}&operator=${l}`).then(e=>{"number"==typeof e.count&&w(e.count),e.success&&m&&m(e.result),j(!1)})},500)}return(0,l.jsxs)("div",{className:"w-full flex-col items-stretch",children:[(0,l.jsxs)("form",{onSubmit:e=>{e.preventDefault(),f?.current&&v(f.current)},className:"flex flex-row items-stretch gap-4 w-full",children:[(0,l.jsx)("div",{className:"max-w-xs",children:(0,l.jsx)(d.A,{required:!0,selectOptions:t?t.fields.map(e=>({title:e.fieldName||"",payload:e.fieldName||""})):[],name:"database_tables",onChangeHandler:e=>{p&&(p.current=e.target.value)},title:"Select Field",defaultValue:p?.current,id:"entries-search-field-select"})}),(0,l.jsx)("div",{className:"grow",children:(0,l.jsx)(c.A,{title:"Search Term",placeholder:"Enter search term that corresponds with the selected field type ...",onInputHandler:e=>{let t=e.target;t.value?.match(/./)&&f?f.current=t.value:f&&(f.current=null),v(t.value)},elementRef:N,id:"entries-search-input"})}),g&&(0,l.jsx)("div",{className:"relative items-center justify-center",children:(0,l.jsx)("div",{className:"relative mt-5 w-6",children:(0,l.jsx)(u.A,{width:"20px"})})})]}),f?.current?.match(/./)&&(0,l.jsx)("div",{className:"py-4",children:(0,l.jsxs)("span",{className:"text-lg",children:["number"==typeof y?y>0?(0,l.jsxs)("b",{children:[y," "]}):(0,l.jsx)(l.Fragment,{children:"No "}):"... ","Search result",y&&1!==y?"s":""," for"," ",(0,l.jsxs)("b",{children:['"',f.current,'"']})]})})]})}i=(m.then?(await m)():m)[0],s()}catch(e){s(e)}})},61925:(e,t,a)=>{a.a(e,async(e,s)=>{try{a.d(t,{A:()=>j});var l=a(8732),n=a(82015),r=a.n(n),i=a(78704),d=a(59023),c=a(53926),o=a(73872),u=a(70468),m=a(537),h=a(51275),b=a(23791),x=a(16757);a(46169);var p=a(39506),f=a(42427),g=e([i,o,u,b]);function j(){let{user:e,database:t,table:s,dbSchemaData:n,setTargetEntry:x,richTextEditors:g,jsonTextEditors:j,query:y,confirmedDelegetedUser:w,activeEntries:v,entriesCount:S,setActiveEntries:A}=r().useContext(i.TableEntriesContext),T=a(94327);return w?.delegated,w?.priviledges?.match(/Edit Tables/i),w?.priviledges?.match(/Delete Tables/i),w?.priviledges?.match(/Create Tables/i),(0,l.jsxs)(r().Fragment,{children:[(0,l.jsxs)("div",{className:"flex-col items-start gap-0 w-full relative z-50",children:[(0,l.jsxs)("div",{className:"w-full justify-between flex-wrap",children:[(0,l.jsxs)("div",{className:"flex-wrap",children:[(0,l.jsx)(d.A,{}),(0,l.jsx)("h1",{className:"text-3xl m-0",children:(0,l.jsxs)("span",{className:"flex items-center flex-wrap gap-2",children:["All Entries In"," ",(0,l.jsxs)("span",{className:"bg-slate-100 dark:bg-slate-800 px-2 py-1 border border-solid border-slate-400 dark:border-slate-600 rounded relative",children:[s.tableFullName,(0,l.jsx)("div",{className:"absolute -top-5 -right-4",children:(0,l.jsx)(o.A,{slugText:s.tableName,justIcon:!0})})]})," ","Table"]})})]}),(0,l.jsxs)("div",{className:"w-full sm:w-auto",children:[(0,l.jsxs)("a",{href:`/admin/${e?.id}/databases/${t.db_slug}/tables/${s.tableName}/entries/add-entry`,className:"button flex items-center gap-2 w-full sm:w-auto justify-center",children:[(0,l.jsx)("span",{className:"symbol",children:"+"}),(0,l.jsx)("span",{children:"Add New Entry"})]}),(0,l.jsx)(p.A,{database:t,table:s}),(0,l.jsx)(f.A,{database:t,table:s,dbSchemaData:n,query:y})]})]}),(0,l.jsx)(c.A,{confirmedDelegetedUser:y?.delegated,user:e})]}),t.active_clone?(0,l.jsx)(m.A,{database:t,user:e}):(0,l.jsx)(l.Fragment,{}),t.remote_connected?(0,l.jsx)(b.p,{database:t}):(0,l.jsx)(l.Fragment,{}),(0,l.jsx)(h.A,{table:s,database:t,user:e}),(0,l.jsx)(u.A,{user:e,entries:v,database:t,table:s,setTargetEntry:x,dbSchemaData:n,richTextEditors:g,dataTypes:T,query:y,confirmedDelegetedUser:w,jsonTextEditors:j,search:!0}),S>20&&(0,l.jsx)(N,{activeEntries:v,setActiveEntries:A,database:t,table:s,entriesCount:S})]})}function N({activeEntries:e,setActiveEntries:t,database:a,table:s,entriesCount:n}){r().useContext(i.TableEntriesContext);let d=r().useRef(),c=r().useRef(1);return 20*Number(c.current)>=n?(0,l.jsx)(r().Fragment,{}):(0,l.jsx)("div",{className:"w-full flex items-center justify-center",ref:d,children:(0,l.jsx)(x.A,{position:"relative",style:{backgroundColor:"transparent"},width:"20px"})})}[i,o,u,b]=g.then?(await g)():g,s()}catch(e){s(e)}})},70468:(e,t,a)=>{a.a(e,async(e,s)=>{try{a.d(t,{A:()=>b});var l=a(8732),n=a(82015),r=a.n(n),i=a(23180),d=a(7141),c=a(16757),o=a(39506),u=a(42427),m=a(2833),h=e([d]);function b({user:e,entries:t,database:a,table:s,setTargetEntry:n,dbSchemaData:h,richTextEditors:b,jsonTextEditors:x,dataTypes:p,title:f,confirmedDelegetedUser:g,query:j,search:N,entriesCount:y}){g?.delegated,g?.priviledges?.match(/Edit Tables/i),g?.priviledges?.match(/Delete Tables/i),g?.priviledges?.match(/Create Tables/i),g?.priviledges?.match(/Edit Entries/i),g?.priviledges?.match(/Delete Entries/i);let{active_clone:w,active_clone_parent_db:v,remote_connected:S}=a;return(0,l.jsx)(r().Fragment,{children:(0,l.jsxs)("section",{className:"paper gray gray-bg",children:[f&&(0,l.jsxs)("div",{className:"justify-between w-full flex-wrap px-4 sm:px-0 pt-4 sm:pt-0",children:[(0,l.jsx)("h2",{className:"text-xl m-0",children:f}),(0,l.jsxs)("div",{children:[(0,l.jsxs)("a",{className:"button flex gap-2 items-center",href:`/admin/${e?.id}/databases/${a.db_slug}/tables/${s.tableName}/entries/add-entry`,children:[(0,l.jsx)("span",{className:"symbol",children:"+"}),(0,l.jsx)("span",{children:"Add New Entry"})]}),(0,l.jsx)(o.A,{database:a,table:s}),(0,l.jsx)(u.A,{database:a,table:s,dbSchemaData:h,query:j})]})]}),N&&(0,l.jsx)(d.A,{}),(0,l.jsxs)("div",{className:"w-full flex-col gap-6",children:[t?.[0]&&t.map(t=>(0,l.jsx)(r().Fragment,{children:(0,l.jsx)(i.A,{user:e,database:a,table:s,dbSchemaData:h,richTextEditors:b,dataTypes:p,entry:t,query:j,confirmedDelegetedUser:g,jsonTextEditors:x})},t.id)),!t&&(0,l.jsx)("div",{className:"w-full h-[300px]",children:(0,l.jsx)(c.A,{position:"relative"})}),t&&!t?.[0]&&(0,l.jsxs)("a",{href:`/admin/${e?.id}/databases/${a.db_slug}/tables/${s.tableName}/entries/add-entry`,className:"border-dotted border-slate-200 border-2 p-4 w-full flex-col rounded flex items-center hover:border-primary/50 gap-2",children:[(0,l.jsx)("span",{className:"text-slate-400 text-center",children:"No Entries Added Yet."}),(0,l.jsx)(m.A,{}),(0,l.jsx)("span",{className:"text-center",children:"Add an Entry to this Table"})]}),y&&y>10?(0,l.jsx)("a",{href:`/admin/${e?.id}/databases/${a.db_slug}/tables/${s.tableName}/entries`,className:"button outlined gray w-full -mb-4",children:(0,l.jsx)("span",{children:"See All Entries"})}):null,t?.[0]&&f&&(0,l.jsxs)("a",{className:"button flex gap-2 items-center w-full justify-center mt-2 more-padding",href:`/admin/${e?.id}/databases/${a.db_slug}/tables/${s.tableName}/entries/add-entry`,style:{borderStyle:"dotted",borderWidth:"2px"},children:[(0,l.jsx)("span",{className:"symbol",children:"+"}),(0,l.jsx)("span",{children:"Add New Entry"})]})]})]})})}d=(h.then?(await h)():h)[0],s()}catch(e){s(e)}})},1346:(e,t,a)=>{a.d(t,{A:()=>l});var s=a(8732);function l({radioValues:e,name:t,onChangeHandler:a,setAlert:l,flexRow:n,labelColor:r,baseText:i,smallText:d,className:c}){try{return(0,s.jsx)("div",{className:"flex items-start gap-4 flex-wrap "+(n?"":" flex-col ")+(c||""),children:e.map((e,n)=>{let{payload:c,title:o,jsx:u}=e,m=!1===c?c:c||o||null;return(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)("input",{className:"m-0"+(i?" w-5 h-5":d?" w-4 h-4":" w-6 h-6"),type:"radio",defaultChecked:!!e.default,name:t,id:t+"_"+m,onChange:t=>{l&&l(null),e.onChangeHandler?e.onChangeHandler(t):a&&a(t)},value:"string"==typeof m?m:void 0}),u||(0,s.jsx)("label",{htmlFor:t+"_"+m,className:"text-lg m-0 "+(r||"text-slate-800")+(i?" text-base":d?" text-sm":" text-lg"),children:o})]},n+1)})})}catch(e){return console.log("ERROR in FormRadio =>",e),(0,s.jsx)("div",{children:"Form Radio Error"})}}a(82015)},51275:(e,t,a)=>{a.d(t,{A:()=>r});var s=a(8732),l=a(82015),n=a.n(l);function r({table:e,database:t,user:a,activeDbClone:l}){let r=e?.childTableDbFullName?e.childTableDbFullName.replace(new RegExp(/datasquirel_user_\d+_/),""):null,i=e.childTableDbFullName===t.db_full_name;return r?(0,s.jsxs)("span",{className:"info small green gap-1"+(t?.active_clone?" -mt-6":""),style:{fontWeight:"500"},children:["This Table is an active clone of"," ",(0,s.jsx)("a",{href:`/admin/${a?.id}/databases/${r}/tables/${e.childTableName}`,target:"_blank",className:"button gray outlined small-text",style:{display:"inline-block",fontSize:"12px",padding:"3px 7px"},children:(0,s.jsx)("b",{children:e.childTableName})})," ","in"," ",i?(0,s.jsxs)("span",{children:["this current database(",(0,s.jsx)("b",{children:t.db_name}),")."]}):(0,s.jsxs)(n().Fragment,{children:[(0,s.jsx)("a",{href:`/admin/${a?.id}/databases/${r}`,target:"_blank",className:"button gray outlined small-text",style:{display:"inline-block",fontSize:"12px",padding:"3px 7px"},children:(0,s.jsx)("b",{children:r})}),(0,s.jsx)("span",{children:"database."})]})," ",t?.active_clone?"":"Only Foreign keys and Entries can be updated."]}):(0,s.jsx)(n().Fragment,{})}},78704:(e,t,a)=>{a.a(e,async(e,s)=>{try{a.r(t),a.d(t,{TableEntriesContext:()=>y,default:()=>j,getServerSideProps:()=>N});var l=a(8732),n=a(82015),r=a.n(n),i=a(29021),d=a.n(i),c=a(92702),o=a(25562),u=a(61925),m=a(55880),h=a(52854),b=a(22873),x=a(77047),p=a(71934),f=a(43363),g=e([u,m]);[u,m]=g.then?(await g)():g;let y=r().createContext({});function j({user:e,database:t,table:a,dbSchemaData:s,entries:n,query:i,confirmedDelegetedUser:d,entriesCount:c}){let h=`${a.tableFullName} Table Entries | Datasquirel`,b=(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("title",{children:h}),(0,l.jsx)("meta",{name:"description",content:"All Entries in table"})]}),[x,p]=r().useState(null),[g,j]=r().useState(n),N=r().useRef("title"),w=r().useRef(null),v=r().useRef([]),S=r().useRef([]);return(0,l.jsx)(o.A,{head:b,user:e,extraHeaderContent:(0,l.jsx)(m.A,{database:t,query:i,confirmedDelegetedUser:d,user:e}),children:(0,l.jsxs)(y.Provider,{value:{user:e,database:t,table:a,dbSchemaData:s,entries:n,targetEntry:x,setTargetEntry:p,richTextEditors:v,jsonTextEditors:S,query:i,confirmedDelegetedUser:d,activeEntries:g,setActiveEntries:j,targetField:N,searchTerm:w,entriesCount:c},children:[(0,l.jsx)(u.A,{}),(0,l.jsx)(f.A,{snug:!0})]})})}async function N({req:e,res:t,query:a}){let s=await (0,c.A)(e,t);if(!s?.logged_in_status)return{redirect:{destination:"/login",permanent:!1}};try{let t=a.single,l=await (0,b.A)({request:e,user:s,databaseSlug:t,query:a});if(!l)throw Error("No Db Object Found!");let{dbUserId:n}=l,r=await (0,p.A)(`SELECT * FROM user_databases WHERE user_id='${n}' AND db_slug='${a.single}'`),i=r[0].db_full_name;if(!r||!r[0])return{redirect:{destination:`/admin/${s?.id}/databases`,permanent:!1}};let c=JSON.parse(d().readFileSync(`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${n}/main.json`,"utf-8")),o=(c.filter(e=>e.dbFullName===r[0].db_full_name)[0]?.tables).filter(e=>e.tableName===a.single_table)[0],u=await (0,h.A)({queryString:`SELECT * FROM \`${r[0].db_full_name}\`.\`${o.tableName}\` ORDER BY id DESC LIMIT 20`,tableSchema:o,database:i});console.log("tableEntries",u);let m=await (0,h.A)({queryString:`SELECT COUNT(id) AS count FROM \`${r[0].db_full_name}\`.\`${o.tableName}\``,tableSchema:o,database:i});return{props:{user:s,database:r[0],table:o,dbSchemaData:c,entries:u,query:a,confirmedDelegetedUser:l,entriesCount:m?.[0]?.count||0}}}catch(e){return(0,x.A)({component:"[single_table]/entries-page-component/getServerSideProps/catch-error",message:e.message,user:s}),{props:{user:s,database:null,table:null,entries:[]}}}}s()}catch(e){s(e)}})}}; \ No newline at end of file +"use strict";exports.id=8704,exports.ids=[8704],exports.modules={39506:(e,t,a)=>{a.d(t,{A:()=>o});var s=a(8732),l=a(82015),n=a.n(l),r=a(16757),i=a(83921),d=a(46169);function c({paradigm:e,payload:t,setLoading:a,table:s,database:l}){a(!0),(0,d.A)("/api/exportTableData",{method:"POST",body:{paradigm:e,dbName:l.db_slug,tableName:s.tableName,payload:t}},!0).then(t=>{if(t.success){if("export"==e){let e=new Blob([JSON.stringify(t.data||[],null,4)],{type:"application/json"}),a=URL.createObjectURL(e),n=document.createElement("a");n.href=a,n.style.display="none",n.download=`${l.db_slug}-${s.tableName}-${Date.now()}.json`,document.body.appendChild(n),n.click(),document.body.removeChild(n)}else"import"==e&&(window.alert("Data Imported Successfully"),window.location.reload())}else t.msg&&window.alert(t.msg)}).catch(e=>{console.log(e)}).finally(()=>{a(!1)})}function o({database:e,table:t}){let[a,l]=n().useState(!1),[d,o]=n().useState(!0),u=n().useRef(null);return n().useRef(null),(0,s.jsxs)("div",{className:"relative",children:[a&&(0,s.jsx)(r.A,{width:"15px"}),(0,s.jsx)("div",{className:"button outlined gray",onClick:a=>{c({paradigm:"export",database:e,setLoading:l,table:t})},children:"Export"}),(0,s.jsx)("div",{className:"button outlined gray",onClick:a=>{u.current?.addEventListener("change",a=>{l(!0);let s=a.target;if(!s.files?.[0]){window.alert("No FIles selected"),l(!1);return}i.A({inputFile:s.files[0]}).then(a=>{window.confirm(`Use this file '${a.fileName}' as your import file?`)?c({paradigm:"import",payload:a.fileBase64,database:e,setLoading:l,table:t}):l(!1),o(!1),setTimeout(()=>{o(!0)},200)})}),u.current?.click()},children:"Import"}),d&&(0,s.jsx)("input",{type:"file",name:"json_file_input",id:"json_file_input",accept:".json",className:"hidden",ref:u})]})}},42427:(e,t,a)=>{a.d(t,{A:()=>x});var s=a(8732),l=a(82015),n=a.n(l),r=a(41836),i=a(95939),d=a(1346),c=a(80830),o=a(16757),u=a(84483),m=a(46169);function h({database:e,table:t,setOpenPopover:a,dbSchemaData:l,query:r}){let[i,d]=n().useState(!1);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("button",{className:"ghost p-3 justify-start",onClick:()=>{d(!0),setTimeout(()=>{a&&a(!1)},200)},children:"Sync Data"}),(0,s.jsx)(u.A,{open:i,setOpen:d,children:(0,s.jsx)(b,{database:e,table:t,dbSchemaData:l,query:r})})]})}function b({database:e,table:t,query:a,dbSchemaData:l}){let[r,i]=n().useState(l),[u,h]=n().useState("Push"),[b,x]=n().useState(r?.[0]),[p,f]=n().useState(b?.tables),[g,j]=n().useState(p?.[0]),[N,y]=n().useState(!1),[w,v]=n().useState(!1);return(0,s.jsxs)("div",{className:"stack gap-2 relative w-full",children:[N||!r&&(0,s.jsx)(o.A,{width:"20px"}),(0,s.jsx)("h3",{className:"m-0 text-lg",children:"Sync Data with another table"}),w?(0,s.jsxs)("span",{className:"info green inline",children:["The selected table matches ",(0,s.jsx)("b",{children:t.tableFullName})," ","schema"]}):(0,s.jsxs)("span",{className:"info warning inline",children:["The selected table is not compatible with"," ",(0,s.jsx)("b",{children:t.tableFullName})]}),r&&(0,s.jsxs)("form",{onSubmit:s=>{!function({e,setLoading:t,database:a,table:s,query:l}){e.preventDefault(),t(!0);let n=e.target,r=n.paradigm?.value,i=n.database?.value,d=n.table?.value,c={paradigm:r,src:{db:a.db_slug,table:s.tableName},dst:{db:i,table:d},delegated:l.delegated};if(!window.confirm("Pull"==r?"NOTE: This operation will override the current database entries. Continue?":"NOTE: This operation will override the selected database entries. Continue?")){setTimeout(()=>{t(!1)},1e3);return}(0,m.A)("/api/sync-table-data",{method:"POST",body:{...c}},!0).then(e=>{e.success?(window.alert("Data Sync Successful"),window.location.reload()):e.msg&&window.alert("ERROR: "+e.msg)}).finally(()=>{setTimeout(()=>{t(!1)},1e3)})}({e:s,database:e,setLoading:y,table:t,query:a})},className:"w-full stack gap-2 items-stretch",children:[(0,s.jsxs)("div",{className:"stack gap-2 my-2",children:[(0,s.jsx)(d.A,{radioValues:[{title:"Push",payload:"Push",default:!0},{title:"Pull",payload:"Pull"}],name:"paradigm",smallText:!0,flexRow:!0,onChangeHandler:e=>{h(e.target.value)}}),(0,s.jsx)("span",{className:"text-xs text-slate-500 dark:text-slate-400",children:"Push"==u?(0,s.jsxs)(s.Fragment,{children:["Sync data from the current table(",(0,s.jsx)("b",{children:t.tableFullName}),") to the selected table below"]}):(0,s.jsxs)(s.Fragment,{children:["Sync data from the selected table below to the current table(",(0,s.jsx)("b",{children:t.tableFullName}),")"]})})]}),(0,s.jsx)(c.A,{selectOptions:r.filter(t=>t.dbFullName!==e.db_full_name).map(e=>({title:e.dbName,payload:e.dbSlug})),name:"database",onChangeHandler:e=>{let t=r.find(t=>t.dbSlug==e.target.value);t&&(x(t),f(t.tables),j(t.tables?.[0]))}}),(0,s.jsx)(c.A,{selectOptions:p.map(e=>({title:e.tableFullName,payload:e.tableName})),name:"table",onChangeHandler:e=>{let t=p.find(t=>t.tableName===e.target.value);t&&j(t)}}),(0,s.jsx)("button",{className:w?"":"disabled",children:"Sync"})]})]})}function x({database:e,table:t,dbSchemaData:a,query:l}){let[d,c]=n().useState(!1);return(0,s.jsx)(r.Popover,{isOpen:d,onClickOutside:()=>c(!1),positions:["bottom"],align:"end",content:(0,s.jsxs)("div",{className:"stack items-stretch bg-white rounded shadow-md gap-0 min-w-[200px]",children:[(0,s.jsx)(h,{database:e,table:t,setOpenPopover:c,dbSchemaData:a,query:l}),(0,s.jsx)("hr",{className:"m-0"})]}),containerClassName:"z-[1000]",children:(0,s.jsx)("button",{onClick:()=>{c(!d)},className:"outlined gray px-2 py-1.5",children:(0,s.jsx)(i.A,{})})})}a(27825)},7141:(e,t,a)=>{a.a(e,async(e,s)=>{try{let b;a.d(t,{A:()=>h});var l=a(8732),n=a(82015),r=a.n(n),i=a(78704),d=a(80830),c=a(83155),o=a(46169),u=a(16757),m=e([i]);function h({data:e}){let{table:t,entries:a,activeEntries:s,setActiveEntries:n,confirmedDelegetedUser:m,database:h,targetField:x,searchTerm:p}=r().useContext(i.TableEntriesContext);m?.delegated,m?.priviledges?.match(/Edit Tables/i),m?.priviledges?.match(/Delete Tables/i),m?.priviledges?.match(/Create Tables/i);let[f,g]=r().useState(!1),j=r().useRef(),[N,y]=r().useState(null);function w(e){if(g(!0),s&&n(null),!e?.toString().match(/./)){setTimeout(()=>{n&&n(a||[]),g(!1)},500);return}window.clearTimeout(b);let l=t?.fields.filter(e=>e.fieldName===x?.current),r=l&&l[0]&&l[0].dataType?.match(/int/i)||x?.current?.match(/^id$/)?"equal":"like";b=setTimeout(()=>{g(!1),(0,o.A)(`/api/queryEntriesSearchTerm?db=${h?.db_full_name}&table=${t?.tableName}&field=${x?.current}&term=${e}&operator=${r}`).then(e=>{"number"==typeof e.count&&y(e.count),e.success&&n&&n(e.result),g(!1)})},500)}return(0,l.jsxs)("div",{className:"w-full flex-col items-stretch",children:[(0,l.jsxs)("form",{onSubmit:e=>{e.preventDefault(),p?.current&&w(p.current)},className:"flex flex-row items-stretch gap-4 w-full",children:[(0,l.jsx)("div",{className:"max-w-xs",children:(0,l.jsx)(d.A,{required:!0,selectOptions:t?t.fields.map(e=>({title:e.fieldName||"",payload:e.fieldName||""})):[],name:"database_tables",onChangeHandler:e=>{x&&(x.current=e.target.value)},title:"Select Field",defaultValue:x?.current,id:"entries-search-field-select"})}),(0,l.jsx)("div",{className:"grow",children:(0,l.jsx)(c.A,{title:"Search Term",placeholder:"Enter search term that corresponds with the selected field type ...",onInputHandler:e=>{let t=e.target;t.value?.match(/./)&&p?p.current=t.value:p&&(p.current=null),w(t.value)},elementRef:j,id:"entries-search-input"})}),f&&(0,l.jsx)("div",{className:"relative items-center justify-center",children:(0,l.jsx)("div",{className:"relative mt-5 w-6",children:(0,l.jsx)(u.A,{width:"20px"})})})]}),p?.current?.match(/./)&&(0,l.jsx)("div",{className:"py-4",children:(0,l.jsxs)("span",{className:"text-lg",children:["number"==typeof N?N>0?(0,l.jsxs)("b",{children:[N," "]}):(0,l.jsx)(l.Fragment,{children:"No "}):"... ","Search result",N&&1!==N?"s":""," for"," ",(0,l.jsxs)("b",{children:['"',p.current,'"']})]})})]})}i=(m.then?(await m)():m)[0],s()}catch(e){s(e)}})},61925:(e,t,a)=>{a.a(e,async(e,s)=>{try{a.d(t,{A:()=>j});var l=a(8732),n=a(82015),r=a.n(n),i=a(78704),d=a(59023),c=a(53926),o=a(73872),u=a(70468),m=a(537),h=a(51275),b=a(23791),x=a(16757);a(46169);var p=a(39506),f=a(42427),g=e([i,o,u,b]);function j(){let{user:e,database:t,table:s,dbSchemaData:n,setTargetEntry:x,richTextEditors:g,jsonTextEditors:j,query:y,confirmedDelegetedUser:w,activeEntries:v,entriesCount:S,setActiveEntries:A}=r().useContext(i.TableEntriesContext),T=a(94327);return w?.delegated,w?.priviledges?.match(/Edit Tables/i),w?.priviledges?.match(/Delete Tables/i),w?.priviledges?.match(/Create Tables/i),(0,l.jsxs)(r().Fragment,{children:[(0,l.jsxs)("div",{className:"flex-col items-start gap-0 w-full relative z-50",children:[(0,l.jsxs)("div",{className:"w-full justify-between flex-wrap",children:[(0,l.jsxs)("div",{className:"flex-wrap",children:[(0,l.jsx)(d.A,{}),(0,l.jsx)("h1",{className:"text-3xl m-0",children:(0,l.jsxs)("span",{className:"flex items-center flex-wrap gap-2",children:["All Entries In"," ",(0,l.jsxs)("span",{className:"bg-slate-100 dark:bg-slate-800 px-2 py-1 border border-solid border-slate-400 dark:border-slate-600 rounded relative",children:[s.tableFullName,(0,l.jsx)("div",{className:"absolute -top-5 -right-4",children:(0,l.jsx)(o.A,{slugText:s.tableName,justIcon:!0})})]})," ","Table"]})})]}),(0,l.jsxs)("div",{className:"w-full sm:w-auto",children:[(0,l.jsxs)("a",{href:`/admin/${e?.id}/databases/${t.db_slug}/tables/${s.tableName}/entries/add-entry`,className:"button flex items-center gap-2 w-full sm:w-auto justify-center",children:[(0,l.jsx)("span",{className:"symbol",children:"+"}),(0,l.jsx)("span",{children:"Add New Entry"})]}),(0,l.jsx)(p.A,{database:t,table:s}),(0,l.jsx)(f.A,{database:t,table:s,dbSchemaData:n,query:y})]})]}),(0,l.jsx)(c.A,{confirmedDelegetedUser:y?.delegated,user:e})]}),t.active_clone?(0,l.jsx)(m.A,{database:t,user:e}):(0,l.jsx)(l.Fragment,{}),t.remote_connected?(0,l.jsx)(b.p,{database:t}):(0,l.jsx)(l.Fragment,{}),(0,l.jsx)(h.A,{table:s,database:t,user:e}),(0,l.jsx)(u.A,{user:e,entries:v,database:t,table:s,setTargetEntry:x,dbSchemaData:n,richTextEditors:g,dataTypes:T,query:y,confirmedDelegetedUser:w,jsonTextEditors:j,search:!0}),S>20&&(0,l.jsx)(N,{activeEntries:v,setActiveEntries:A,database:t,table:s,entriesCount:S})]})}function N({activeEntries:e,setActiveEntries:t,database:a,table:s,entriesCount:n}){r().useContext(i.TableEntriesContext);let d=r().useRef(),c=r().useRef(1);return 20*Number(c.current)>=n?(0,l.jsx)(r().Fragment,{}):(0,l.jsx)("div",{className:"w-full flex items-center justify-center",ref:d,children:(0,l.jsx)(x.A,{position:"relative",style:{backgroundColor:"transparent"},width:"20px"})})}[i,o,u,b]=g.then?(await g)():g,s()}catch(e){s(e)}})},70468:(e,t,a)=>{a.a(e,async(e,s)=>{try{a.d(t,{A:()=>b});var l=a(8732),n=a(82015),r=a.n(n),i=a(23180),d=a(7141),c=a(16757),o=a(39506),u=a(42427),m=a(2833),h=e([d]);function b({user:e,entries:t,database:a,table:s,setTargetEntry:n,dbSchemaData:h,richTextEditors:b,jsonTextEditors:x,dataTypes:p,title:f,confirmedDelegetedUser:g,query:j,search:N,entriesCount:y}){g?.delegated,g?.priviledges?.match(/Edit Tables/i),g?.priviledges?.match(/Delete Tables/i),g?.priviledges?.match(/Create Tables/i),g?.priviledges?.match(/Edit Entries/i),g?.priviledges?.match(/Delete Entries/i);let{active_clone:w,active_clone_parent_db:v,remote_connected:S}=a;return(0,l.jsx)(r().Fragment,{children:(0,l.jsxs)("section",{className:"paper gray gray-bg",children:[f&&(0,l.jsxs)("div",{className:"justify-between w-full flex-wrap px-4 sm:px-0 pt-4 sm:pt-0",children:[(0,l.jsx)("h2",{className:"text-xl m-0",children:f}),(0,l.jsxs)("div",{children:[(0,l.jsxs)("a",{className:"button flex gap-2 items-center",href:`/admin/${e?.id}/databases/${a.db_slug}/tables/${s.tableName}/entries/add-entry`,children:[(0,l.jsx)("span",{className:"symbol",children:"+"}),(0,l.jsx)("span",{children:"Add New Entry"})]}),(0,l.jsx)(o.A,{database:a,table:s}),(0,l.jsx)(u.A,{database:a,table:s,dbSchemaData:h,query:j})]})]}),N&&(0,l.jsx)(d.A,{}),(0,l.jsxs)("div",{className:"w-full flex-col gap-6",children:[t?.[0]&&t.map(t=>(0,l.jsx)(r().Fragment,{children:(0,l.jsx)(i.A,{user:e,database:a,table:s,dbSchemaData:h,richTextEditors:b,dataTypes:p,entry:t,query:j,confirmedDelegetedUser:g,jsonTextEditors:x})},t.id)),!t&&(0,l.jsx)("div",{className:"w-full h-[300px]",children:(0,l.jsx)(c.A,{position:"relative"})}),t&&!t?.[0]&&(0,l.jsxs)("a",{href:`/admin/${e?.id}/databases/${a.db_slug}/tables/${s.tableName}/entries/add-entry`,className:"border-dotted border-slate-200 border-2 p-4 w-full flex-col rounded flex items-center hover:border-primary/50 gap-2",children:[(0,l.jsx)("span",{className:"text-slate-400 text-center",children:"No Entries Added Yet."}),(0,l.jsx)(m.A,{}),(0,l.jsx)("span",{className:"text-center",children:"Add an Entry to this Table"})]}),y&&y>10?(0,l.jsx)("a",{href:`/admin/${e?.id}/databases/${a.db_slug}/tables/${s.tableName}/entries`,className:"button outlined gray w-full -mb-4",children:(0,l.jsx)("span",{children:"See All Entries"})}):null,t?.[0]&&f&&(0,l.jsxs)("a",{className:"button flex gap-2 items-center w-full justify-center mt-2 more-padding",href:`/admin/${e?.id}/databases/${a.db_slug}/tables/${s.tableName}/entries/add-entry`,style:{borderStyle:"dotted",borderWidth:"2px"},children:[(0,l.jsx)("span",{className:"symbol",children:"+"}),(0,l.jsx)("span",{children:"Add New Entry"})]})]})]})})}d=(h.then?(await h)():h)[0],s()}catch(e){s(e)}})},1346:(e,t,a)=>{a.d(t,{A:()=>l});var s=a(8732);function l({radioValues:e,name:t,onChangeHandler:a,setAlert:l,flexRow:n,labelColor:r,baseText:i,smallText:d,className:c}){try{return(0,s.jsx)("div",{className:"flex items-start gap-4 flex-wrap "+(n?"":" flex-col ")+(c||""),children:e.map((e,n)=>{let{payload:c,title:o,jsx:u}=e,m=!1===c?c:c||o||null;return(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)("input",{className:"m-0"+(i?" w-5 h-5":d?" w-4 h-4":" w-6 h-6"),type:"radio",defaultChecked:!!e.default,name:t,id:t+"_"+m,onChange:t=>{l&&l(null),e.onChangeHandler?e.onChangeHandler(t):a&&a(t)},value:"string"==typeof m?m:void 0}),u||(0,s.jsx)("label",{htmlFor:t+"_"+m,className:"text-lg m-0 "+(r||"text-slate-800")+(i?" text-base":d?" text-sm":" text-lg"),children:o})]},n+1)})})}catch(e){return console.log("ERROR in FormRadio =>",e),(0,s.jsx)("div",{children:"Form Radio Error"})}}a(82015)},51275:(e,t,a)=>{a.d(t,{A:()=>r});var s=a(8732),l=a(82015),n=a.n(l);function r({table:e,database:t,user:a,activeDbClone:l}){let r=e?.childTableDbFullName?e.childTableDbFullName.replace(new RegExp(/datasquirel_user_\d+_/),""):null,i=e.childTableDbFullName===t.db_full_name;return r?(0,s.jsxs)("span",{className:"info small green gap-1"+(t?.active_clone?" -mt-6":""),style:{fontWeight:"500"},children:["This Table is an active clone of"," ",(0,s.jsx)("a",{href:`/admin/${a?.id}/databases/${r}/tables/${e.childTableName}`,target:"_blank",className:"button gray outlined small-text",style:{display:"inline-block",fontSize:"12px",padding:"3px 7px"},children:(0,s.jsx)("b",{children:e.childTableName})})," ","in"," ",i?(0,s.jsxs)("span",{children:["this current database(",(0,s.jsx)("b",{children:t.db_name}),")."]}):(0,s.jsxs)(n().Fragment,{children:[(0,s.jsx)("a",{href:`/admin/${a?.id}/databases/${r}`,target:"_blank",className:"button gray outlined small-text",style:{display:"inline-block",fontSize:"12px",padding:"3px 7px"},children:(0,s.jsx)("b",{children:r})}),(0,s.jsx)("span",{children:"database."})]})," ",t?.active_clone?"":"Only Foreign keys and Entries can be updated."]}):(0,s.jsx)(n().Fragment,{})}},78704:(e,t,a)=>{a.a(e,async(e,s)=>{try{a.r(t),a.d(t,{TableEntriesContext:()=>y,default:()=>j,getServerSideProps:()=>N});var l=a(8732),n=a(82015),r=a.n(n),i=a(29021),d=a.n(i),c=a(92702),o=a(25562),u=a(61925),m=a(55880),h=a(52854),b=a(22873),x=a(77047),p=a(71934),f=a(43363),g=e([u,m]);[u,m]=g.then?(await g)():g;let y=r().createContext({});function j({user:e,database:t,table:a,dbSchemaData:s,entries:n,query:i,confirmedDelegetedUser:d,entriesCount:c}){let h=`${a.tableFullName} Table Entries | Datasquirel`,b=(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("title",{children:h}),(0,l.jsx)("meta",{name:"description",content:"All Entries in table"})]}),[x,p]=r().useState(null),[g,j]=r().useState(n),N=r().useRef("title"),w=r().useRef(null),v=r().useRef([]),S=r().useRef([]);return(0,l.jsx)(o.A,{head:b,user:e,extraHeaderContent:(0,l.jsx)(m.A,{database:t,query:i,confirmedDelegetedUser:d,user:e}),children:(0,l.jsxs)(y.Provider,{value:{user:e,database:t,table:a,dbSchemaData:s,entries:n,targetEntry:x,setTargetEntry:p,richTextEditors:v,jsonTextEditors:S,query:i,confirmedDelegetedUser:d,activeEntries:g,setActiveEntries:j,targetField:N,searchTerm:w,entriesCount:c},children:[(0,l.jsx)(u.A,{}),(0,l.jsx)(f.A,{snug:!0})]})})}async function N({req:e,res:t,query:a}){let s=await (0,c.A)(e,t);if(!s?.logged_in_status)return{redirect:{destination:"/login",permanent:!1}};try{let t=a.single,l=await (0,b.A)({request:e,user:s,databaseSlug:t,query:a});if(!l)throw Error("No Db Object Found!");let{dbUserId:n}=l,r=await (0,p.A)(`SELECT * FROM user_databases WHERE user_id='${n}' AND db_slug='${a.single}'`),i=r[0].db_full_name;if(!r||!r[0])return{redirect:{destination:`/admin/${s?.id}/databases`,permanent:!1}};let c=JSON.parse(d().readFileSync(`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${n}/main.json`,"utf-8")),o=(c.filter(e=>e.dbFullName===r[0].db_full_name)[0]?.tables).filter(e=>e.tableName===a.single_table)[0],u=await (0,h.A)({queryString:`SELECT * FROM \`${r[0].db_full_name}\`.\`${o.tableName}\` ORDER BY id DESC LIMIT 20`,tableSchema:o,database:i});console.log("tableEntries",u);let m=await (0,h.A)({queryString:`SELECT COUNT(id) AS count FROM \`${r[0].db_full_name}\`.\`${o.tableName}\``,tableSchema:o,database:i});return{props:{user:s,database:r[0],table:o,dbSchemaData:c,entries:u,query:a,confirmedDelegetedUser:l,entriesCount:m?.[0]?.count||0}}}catch(e){return(0,x.A)({component:"[single_table]/entries-page-component/getServerSideProps/catch-error",message:e.message,user:s}),{props:{user:s,database:null,table:null,entries:[]}}}}s()}catch(e){s(e)}})}}; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/9901.js b/dsql-app/.local_dist/server/chunks/9901.js index e5855f0..fdb365a 100644 --- a/dsql-app/.local_dist/server/chunks/9901.js +++ b/dsql-app/.local_dist/server/chunks/9901.js @@ -1,4 +1,4 @@ -"use strict";exports.id=9901,exports.ids=[9901],exports.modules={46083:(e,a,t)=>{t.d(a,{A:()=>c});var l=t(8732),s=t(82015),i=t.n(s),n=t(32251),r=t(36138),d=t(27825),o=t.n(d);function c({targetField:e,fieldIndex:a,tableFields:s,setTableFields:d,refreshFieldsListRef:c,setActiveEdit:u,database:m,currentTable:x,user:p}){let h=e?.dataType?e.dataType.replace(/\d|\(|\)/g,""):null,f=e?.dataType?e.dataType.replace(/[^\d]/g,""):"200",g=t(94327),y=i().useRef(o().cloneDeep(e)),v=i().useRef(),[j,N]=i().useState(e),[w,b]=i().useState(e?.fieldName),[T,_]=i().useState(h),[F,S]=i().useState(f),[C,A]=i().useState("Varchar is simply letters and numbers within the range 0 - 255"),[k,D]=i().useState(e?.richText&&!e?.encrypted?"Yes":"No"),V=!!T?.match(/uuid/i);return(0,l.jsx)("div",{className:"w-full -mt-3 bg-white dark:bg-slate-800 flex-wrap",ref:v,children:(0,l.jsxs)("form",{className:"flex flex-col xl:flex-row items-start gap-4 w-full justify-between border border-solid p-4 border-slate-200 dark:border-slate-600 rounded rounded-t-none focus:shadow-lg shadow-slate-700 dark:shadow-black relative flex-wrap",onSubmit:e=>{e.preventDefault(),d(e=>(e[a]=j,e)),c.current(e=>e+1);let t=e.target;t.closest(".table-field-wrapper")?.querySelector(".edit-table-field-section")?.classList.toggle("hidden")},children:[(0,l.jsxs)("div",{className:"gap-4 flex-wrap w-full md:w-auto flex-col xl:flex-row items-stretch",children:[(0,l.jsxs)("div",{className:"flex flex-col items-start gap-0.5",children:[(0,l.jsx)("label",{htmlFor:"new_field_name",children:"Field Name"}),(0,l.jsx)("input",{type:"text",name:"new_field_name",id:"new_field_name",placeholder:"Eg. post_title",onInput:async e=>{let a=e.target;a.value=a.value.toLowerCase().replace(/ /g,"_"),N(e=>(e.fieldName=a.value,e.updatedField=!0,e.originName||(e.originName=w),e))},required:!0,defaultValue:w})]}),(0,l.jsxs)("div",{className:"flex flex-col items-start gap-4 xl:gap-0.5",children:[(0,l.jsxs)("div",{className:"flex-wrap xl:flex-nowrap w-full md:w-auto",children:[(0,l.jsx)("label",{htmlFor:"new_field_data_type",children:"Data Type"}),(0,l.jsxs)("div",{className:"dropdown-wrapper reversed text-sm items-start",children:[(0,l.jsx)("span",{className:"px-2 bg-slate-200 dark:bg-slate-700 rounded-full hover:bg-slate-100 dark:hover:bg-slate-600 hidden xl:flex",children:"Info"}),(0,l.jsx)("div",{className:"dropdown mt-0 xl:-mt-2",children:(0,l.jsx)("span",{children:C})})]})]}),(0,l.jsxs)("div",{className:"w-auto",children:[(0,l.jsx)("select",{name:"new_field_data_type",id:"new_field_data_type",className:"w-full xl-w-auto",onChange:a=>{let t=a.target;_(t.value),t.childNodes.forEach(e=>{e.value===t.value&&e.dataset.desc&&A(e.dataset.desc),e.value===t.value&&e.dataset.literal?(j.defaultValueLiteral=e.dataset.literal,j.nullValue=!1):delete j.defaultValueLiteral}),e.dataType=t.value+(t.value.match(/VARCHAR/)?`(${F||200})`:"")},defaultValue:T||void 0,children:g.map((e,a)=>e.name.match(/VARCHAR/)?(0,l.jsx)("option",{value:e.name,"data-desc":e.description,children:e.title+"("+(F||200)+")"},a+1):(0,l.jsx)("option",{value:e.name,"data-desc":e.description,"data-literal":e.valueLiteral||void 0,children:e.title},a+1))}),T?.match(/VARCHAR/)&&(0,l.jsx)("input",{type:"number",defaultValue:F||200,className:"px-2",style:{maxWidth:"60px"},max:255,min:5,onChange:a=>{S(a.target.value),e.dataType=T+`(${a.target.value})`}})]})]}),T?.match(/text/i)&&(0,l.jsx)(i().Fragment,{children:(0,l.jsx)(r.A,{targetField:e})}),!e.dataType?.match(/text/i)&&!V&&(0,l.jsxs)("div",{className:"flex flex-col items-start gap-0.5",style:{minWidth:"70px"},children:[(0,l.jsx)("label",{htmlFor:"new_field_required",children:"Required?"}),(0,l.jsxs)("select",{name:"new_field_required",id:"new_field_required",className:"px-2",defaultValue:e?.notNullValue?"Yes":"No",onChange:a=>{console.log(e),"Yes"===a.target.value?e.notNullValue=!0:(e.notNullValue=!1,delete e.notNullValue)},children:[(0,l.jsx)("option",{value:"No",children:"No"}),(0,l.jsx)("option",{value:"Yes",children:"Yes"})]})]}),!V&&(0,l.jsxs)("div",{className:"flex flex-col items-start gap-0.5",children:[(0,l.jsx)("label",{htmlFor:"new_field_default_value",children:j?.dataType?.match(/text$/i)?"Can't Set Default for text values":"Default Value (optional)"}),(0,l.jsx)("input",{type:"text",name:"new_field_default_value",id:"new_field_default_value",className:j?.dataType?.match(/text$/i)?"pointer-events-none opacity-50":"",placeholder:"Default Value",defaultValue:j?.defaultValue?j.defaultValue:j?.nullValue?"NULL":"",onInput:e=>{let a=e.target;j.dataType?.match(/text$/i)||N(e=>(a.value.match(/./)?delete e.notNullValue:(delete e.defaultValue,delete e.nullValue),a.value.match(/^null$/i)?(delete e.defaultValue,e.nullValue=!0):a.value.match(/./)&&(delete e.nullValue,e.defaultValue=a.value),e))}})]}),!V&&(0,l.jsx)(n.A,{database:m,setFieldData:N,setTableFields:d,tableFields:s,targetField:e,user:p,currentTable:x,fieldIndex:a})]}),(0,l.jsxs)("div",{className:"secondary mt-auto flex-wrap w-full xl:w-auto",children:[(0,l.jsx)("button",{type:"submit",className:"secondary mt-auto py-3 w-full md:w-auto grow",children:"Save Updates"}),(0,l.jsx)("div",{className:"button outlined gray mt-auto py-2.5 w-full md:w-auto justify-center grow",onClick:t=>{y.current&&(e=o().cloneDeep(y.current)),d(e=>{let t=o().cloneDeep(e);return a&&y.current&&(t[a]=o().cloneDeep(y.current)),t}),u&&u(!1)},children:"Cancel"})]})]})})}},32251:(e,a,t)=>{t.d(a,{A:()=>g});var l=t(8732),s=t(82015),i=t.n(s),n=t(83155),r=t(58150);function d({targetField:e}){if(!e?.richText)return null;let[a,t]=i().useState(e.cssFiles||[]),s=i().useRef(null);return(0,l.jsxs)("div",{className:"flex flex-col items-start gap-2 w-full my-4",style:{minWidth:"70px"},children:[(0,l.jsx)("span",{className:"label text-xs text-slate-500",children:"Add CSS"}),a.map((e,a)=>(0,l.jsxs)("div",{className:"relative border border-solid border-slate-300 text-xs px-2 py-1 rounded-full",children:[(0,l.jsx)("span",{children:e}),(0,l.jsx)(r.A,{size:20,onClick:()=>{t(a=>a.filter(a=>a!==e))},className:"cursor-pointer hover:opacity-60 "})]},a+1)),(0,l.jsxs)("div",{className:"row w-full",children:[(0,l.jsx)(n.A,{name:"css-file",placeholder:"CSS file URL",elementRef:s}),(0,l.jsx)("button",{className:"secondary outlined",onClick:()=>{let e=s.current?.value;e?.match(/./)&&t(a=>[...new Set([...a,e])])},children:"Add"})]}),(0,l.jsx)("span",{className:"text-sm text-slate-600",children:"Add CSS files to your Rich Text field"})]})}function o({targetField:e,setFieldData:a}){return(0,l.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",style:{minWidth:"70px"},children:[(0,l.jsx)("label",{htmlFor:"encryption_field",children:"Encrypt?"}),(0,l.jsxs)("select",{name:"encryption_field",id:"encryption_field",className:"px-2",defaultValue:e?.encrypted?"Yes":"No",onChange:e=>{a&&a(a=>(e.target.value.match(/yes/i)?a.encrypted=!0:(a.encrypted=!1,delete a.encrypted),a))},children:[(0,l.jsx)("option",{value:"No",children:"No"}),(0,l.jsx)("option",{value:"Yes",children:"Yes"})]})]})}var c=t(93763);function u({targetField:e,setFieldData:a}){return null}function m({targetField:e}){return(0,l.jsxs)("div",{className:"flex flex-col items-start gap-2 w-full",style:{minWidth:"70px"},children:[(0,l.jsx)("label",{htmlFor:"encryption_field",children:"Pattern"}),(0,l.jsx)("span",{className:"text-sm text-slate-500",children:'This describes a pattern that must be matched for this field to be valid. If you add a pattern and make a db entry that doesn\'t match, the entry will be "NULL" or an empty string or the default value.'}),(0,l.jsx)("input",{type:"text",placeholder:"Regex Pattern. Eg: '\\\\.[a-z]+'",onInput:a=>{let t=a.target;t?.value?.length>0?e.pattern=t.value:delete e.pattern},defaultValue:e?.pattern}),(0,l.jsx)("input",{type:"text",placeholder:"Regex Pattern Flags. Eg: igm",onInput:a=>{let t=a.target;t?.value?.length>0?e.patternFlags=t.value:delete e.patternFlags},defaultValue:e?.patternFlags})]})}var x=t(27825),p=t.n(x),h=t(84483);function f({targetField:e,setFieldData:a}){return(0,l.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",style:{minWidth:"70px"},children:[(0,l.jsx)("label",{htmlFor:"unique_field",children:"Unique Field?"}),(0,l.jsxs)("select",{name:"unique_field",id:"unique_field",className:"px-2",defaultValue:e?.unique?"Yes":"No",onChange:e=>{a&&a(a=>(e.target.value.match(/yes/i)?a.unique=!0:(a.unique=!1,delete a.unique),a))},children:[(0,l.jsx)("option",{value:"No",children:"No"}),(0,l.jsx)("option",{value:"Yes",children:"Yes"})]})]})}function g({targetField:e,currentTable:a,database:t,tableFields:s,setTableFields:n,setFieldData:r,user:x,fieldIndex:g}){let[y,v]=i().useState(!1),j=i().useRef(p().cloneDeep(e));return(0,l.jsxs)(i().Fragment,{children:[(0,l.jsx)("span",{className:"button outlined gray mt-5 w-full xl:w-auto",onClick:()=>{v(!0)},children:"More"}),(0,l.jsx)(h.A,{open:y,onClose:()=>{j.current&&(e=p().cloneDeep(j.current)),v(!1)},maxWidth:"600px",children:(0,l.jsxs)("div",{className:"m-auto flex flex-col max-w-xl w-full max-h-[90vh] overflow-y-auto",children:[(0,l.jsx)("div",{className:"w-full justify-between",children:(0,l.jsx)("span",{className:"text-xl",children:"More Options"})}),(0,l.jsx)(d,{targetField:e}),(0,l.jsx)(f,{targetField:e,setFieldData:r}),(0,l.jsx)(o,{targetField:e,setFieldData:r}),a&&(0,l.jsx)(c.A,{targetField:e,setFieldData:r,database:t,tableFields:s,setTableFields:n,currentTable:a,user:x}),(0,l.jsx)(u,{targetField:e,setFieldData:r}),(0,l.jsx)(m,{targetField:e}),(0,l.jsx)("button",{className:"w-full outlined more-padding",onClick:()=>{v(!1)},children:"Done"})]})})]})}},471:(e,a,t)=>{t.d(a,{A:()=>F});var l=t(8732),s=t(82015),i=t.n(s);function n({tableFields:e,setTableFields:a,setRefresh:t,setPageRefresh:l,refreshFieldsListRef:s}){let i=e.findIndex(e=>"date_created"===e.fieldName);e.splice(i,0,{newTempField:!0}),a(e),s?.current&&s.current(e=>e+1)}t(80255);var r=t(51339),d=t(16757),o=t(42960),c=t(93763),u=t(46169);function m({field:e,setTargetField:a,fieldIndex:t,tableFields:s,setTableFields:n,refreshFieldsListRef:r,database:d,currentTable:m,user:x,isDelegated:p,setLoading:h}){let[f,g]=i().useState(e),[y,v]=i().useState(!1);return(0,l.jsxs)("div",{className:"flex-col w-full table-field-wrapper"+(y?" shadow-2xl shadow-slate-700/40 relative z-50":""),children:[(0,l.jsxs)("div",{className:"card no-hover items-center w-full py-4"+(y?" rounded-t":" rounded")+(f.fieldName?.match(o.A)?" text-slate-400 pointer-events-none border-slate-200 border":" light-gray"),children:[(0,l.jsx)("span",{className:"font-bold"+(f.fieldName?.match(o.A)?" dark:text-slate-500":" dark:text-white"),children:f.fieldName}),(0,l.jsx)("span",{className:"text-xs py-1 px-2 bg-slate-100 dark:bg-slate-700 dark:text-slate-200 rounded ",children:f.dataType}),f?.foreignKey&&(0,l.jsxs)("div",{className:"text-xs bg-primary text-white px-2 py-0.5 rounded-full",children:[(0,l.jsx)("span",{children:"Foreign Key: "}),(0,l.jsxs)("span",{children:[f.foreignKey.destinationTableName," ("," ",(0,l.jsx)("b",{children:f.foreignKey.destinationTableColumnName})," ",")"]})]}),f.fieldName?.match(o.A)&&(0,l.jsx)("span",{className:"text-slate-300 text-sm font-semibold ml-0 md:ml-auto",children:"Default Field"}),!(!p&&!f.fieldName?.match(o.A)&&f.dataType?.match(/INT/))||f.foreignKey||d?.active_clone?.toString()?.match(/1/)?!p&&!f.fieldName?.match(o.A)&&f.dataType?.match(/INT/)&&!d?.active_clone?.toString()?.match(/1/)?(0,l.jsx)("div",{className:"ml-0 md:ml-auto flex-wrap",children:(0,l.jsx)("div",{className:"button py-1 text-xs light-gray",onClick:a=>{window.confirm("Delete this foreign Key?")&&(delete e.foreignKey,h(!0),(0,u.A)("/api/updateClonedTableForeignKeys",{method:"post",body:{tableData:m,database:d.db_full_name,dbSlug:d.db_slug,delegated:!!window.location?.search?.match(/delegated=true/i)}},!0).then(e=>{e.success?window.location.reload():window.alert("Update Failed, Please Try again.")}))},style:{color:"var(--slate-500)"},children:"Delete Foreign Key"})}):(0,l.jsx)(i().Fragment,{}):(0,l.jsx)("div",{className:"ml-0 md:ml-auto flex-wrap",children:(0,l.jsx)("div",{className:"button outlined py-1 text-xs gray",onClick:e=>{y?v(!1):v(!0)},style:{color:"var(--slate-500)"},children:"Add Foreign Key"})})]}),y&&!p&&(0,l.jsx)("div",{className:"card col w-full -mt-5 pt-0 no-hover",children:(0,l.jsx)(c.A,{targetField:e,setFieldData:g,tableFields:s,setTableFields:n,database:d,currentTable:m,user:x,setActiveEdit:v,activeClonedTable:!0})})]})}var x=t(32251),p=t(36138);function h({fieldIndex:e,setTableFields:a,database:s,user:n,isNewField:r,setLiteralValue:d,tempFieldData:o,setTempFieldData:c,dataTypeValue:u,setDataTypeValue:m,dataType:h,setDataType:f,dataTypeDesc:g,setDataTypeDesc:y}){let v=t(94327);i().useRef();let j=!!h.match(/uuid/i);return(0,l.jsxs)(i().Fragment,{children:[r&&(0,l.jsx)("span",{className:"absolute -top-4 text-sm bg-fuchsia-600 dark:bg-white text-white dark:text-fuchsia-800 px-3 py-1 rounded-full",children:"New Field"}),(0,l.jsxs)("div",{className:"gap-4 flex-wrap xl:flex-nowrap flex-col xl:flex-row items-stretch w-full xl:w-auto",children:[(0,l.jsxs)("div",{className:"flex flex-col items-start gap-0.5",children:[(0,l.jsx)("label",{htmlFor:"new_field_name",children:"Field Name"}),(0,l.jsx)("input",{type:"text",name:"new_field_name",id:"new_field_name",placeholder:"Eg. post_title",onInput:async e=>{let a=e.target,t=a.value.toLowerCase().replace(/ /g,"_");a.value=t},required:!0})]}),(0,l.jsxs)("div",{className:"flex flex-col items-start gap-4 xl:gap-0.5",children:[(0,l.jsxs)("div",{className:"items-start flex-wrap xl:flex-nowrap",children:[(0,l.jsx)("label",{htmlFor:"new_field_data_type",children:"Data Type"}),(0,l.jsxs)("div",{className:"dropdown-wrapper reversed text-sm w-full items-start gap-2",children:[(0,l.jsx)("span",{className:"px-2 bg-slate-200 dark:bg-slate-700 rounded-full hover:bg-slate-100 dark:hover:bg-slate-600 hidden xl:flex",children:"Info"}),(0,l.jsx)("div",{className:"dropdown mt-0 xl:-mt-2",children:(0,l.jsx)("span",{children:g})})]})]}),(0,l.jsxs)("div",{className:"w-full xl:w-auto",children:[(0,l.jsx)("select",{name:"new_field_data_type",id:"new_field_data_type",className:"w-full xl:w-auto",onChange:e=>{let a=e.target;f(a.value),a.childNodes.forEach(e=>{e.value===a.value&&y(e.dataset.desc),e.value===a.value&&e.dataset.literal&&d(e.dataset.literal)})},children:v.map((e,a)=>e.name.match(/VARCHAR/)?(0,l.jsx)("option",{value:e.name,"data-desc":e.description,children:e.title+"("+(u||200)+")"},a+1):(0,l.jsx)("option",{value:e.name,"data-desc":e.description,"data-literal":e.valueLiteral||void 0,children:e.title},a+1))}),h.match(/VARCHAR/)&&(0,l.jsx)("input",{type:"number",defaultValue:u,className:"px-2",style:{maxWidth:"60px"},max:255,min:5,onChange:e=>{m(e.target.value)}})]})]}),h?.match(/text/i)&&(0,l.jsx)(i().Fragment,{children:(0,l.jsx)(p.A,{targetField:o})}),!j&&(0,l.jsxs)("div",{className:"flex flex-col items-start gap-0.5",style:{minWidth:"70px"},children:[(0,l.jsx)("label",{htmlFor:"new_field_required",children:"Required?"}),(0,l.jsxs)("select",{name:"new_field_required",id:"new_field_required",className:"px-2",children:[(0,l.jsx)("option",{value:"No",children:"No"}),(0,l.jsx)("option",{value:"Yes",children:"Yes"})]})]}),!j&&(0,l.jsxs)("div",{className:"flex flex-col items-start gap-0.5",children:[(0,l.jsx)("label",{htmlFor:"new_field_default_value",children:"Default Value (optional)"}),(0,l.jsx)("input",{type:"text",name:"new_field_default_value",id:"new_field_default_value",placeholder:"Default Value"})]}),!j&&(0,l.jsx)(x.A,{database:s,setFieldData:c,targetField:o,user:n,fieldIndex:e})]}),(0,l.jsxs)("div",{className:"secondary mt-auto flex-wrap xl:flex-nowrap w-full xl:w-auto",children:[(0,l.jsx)("button",{type:"submit",className:"secondary mt-auto py-3 w-full sm:w-auto justify-center grow",children:"Add Field"}),(0,l.jsx)("div",{className:"button outlined-gray mt-auto py-2.5 w-full sm:w-auto justify-center grow",onClick:t=>{a(a=>a.filter((a,t)=>t!=e))},children:"Cancel"})]})]})}function f({fieldIndex:e,tableFields:a,setTableFields:s,refreshFieldsListRef:n,database:r,currentTable:d,user:o}){t(94327);let[c,u]=i().useState("VARCHAR"),[m,x]=i().useState("200"),[p,f]=i().useState("Varchar is simply letters and numbers within the range 0 - 255"),[g,y]=i().useState({}),v=i().useRef(),[j,N]=i().useState(""),w=!!c.match(/uuid/i);return(0,l.jsx)("div",{className:"w-full mt-1 flex-wrap relative z-0 hover:z-20",ref:v,children:(0,l.jsx)("form",{className:"flex flex-row items-start gap-4 w-full justify-between border border-solid p-4 pt-6 border-slate-400 rounded focus:shadow-lg shadow-slate-400/40 dark:shadow-black/30 relative flex-wrap xl:flex-nowrap shadow-xl",onSubmit:a=>{a.preventDefault();let t=g.foreignKey;t&&!t.destinationTableName&&delete g.foreignKey;let l=a.target,i=l.new_field_name.value,r=l.new_field_data_type.value,d=l.new_field_required?.value,o=l.new_field_default_value?.value,c=l.encryption_field?.value,u=l.rich_text_option?.value,x=l.foreign_key_field,p=l.foreign_key_destination_table_name,h=l.foreign_key_destination_table_column_name;x?.value;let f={...g,fieldName:i,dataType:g?.dataType&&g?.foreignKey?g.dataType:r?.match(/VARCHAR/)?`${r}(${m})`:r};d?.match(/yes/i)?f.notNullValue=!0:o?.match(/./)||(f.nullValue=!0),o?.match(/./)&&(f.defaultValue=o),c?.match(/yes/i)&&(f.encrypted=!0),h?.value?.match(/./i)&&!h?.value?.match(/^--$/i)&&(f.dataType=h.dataset.dataType,f.foreignKey={foreignKeyName:h.dataset.foreignKeyName,destinationTableName:p.dataset.destinationTableName,destinationTableColumnName:h.dataset.destinationTableColumnName,cascadeDelete:!0}),u?.match(/yes/i)&&(f.richText=!0),w?(f.defaultValueLiteral=j,f.nullValue=!1):delete f.defaultValueLiteral,console.log("newFieldObject",f),function({fieldIndex:e,setTableFields:a,refreshFieldsListRef:t,payload:l}){a(a=>(a.splice(e,1,l),a)),t?.current&&t.current(e=>e+1)}({fieldIndex:e,setTableFields:s,refreshFieldsListRef:n,payload:f})},children:(0,l.jsx)(h,{database:r,fieldIndex:e,isNewField:!0,literalValue:j,refreshFieldsListRef:n,setLiteralValue:N,setTableFields:s,user:o,currentTable:d,tableFields:a,tempFieldData:g,setTempFieldData:y,dataTypeValue:m,setDataTypeValue:x,dataType:c,setDataType:u,dataTypeDesc:p,setDataTypeDesc:f})})})}var g=t(27825),y=t.n(g);function v({tableFields:e,setTableFields:a,refreshFieldsListRef:t,order:l,field:s,e:i}){let n=y().cloneDeep(e),r=n.findIndex(e=>e.fieldName===s.fieldName);if(r<0)return;let d=n[r];if("up"===l&&r&&r<=1){console.log("Min Reached =>",r);return}if("down"===l&&r&&r>=n.length-7){console.log("Max Reached =>",r);return}try{let e;let a=i.target.closest(".table-field-wrapper"),t=a.previousElementSibling,s=a.nextElementSibling,n=window.DSQL.Flip,r=n.getState(a);"up"===l?(e=n.getState(t),a.parentNode?.insertBefore(a,t)):s?.nextElementSibling&&(e=n.getState(s),a.parentNode?.insertBefore(a,s.nextElementSibling)),n.from(r,{duration:.3,ease:"power1.inOut"}),n.from(e,{duration:.3,ease:"power1.inOut"})}catch(e){console.log("Error =>",e.message)}if(!r){console.log("No target Field Index =>",r);return}n.splice(r,1),"up"===l?n.splice(r-1,0,d):n.splice(r+1,0,d),setTimeout(()=>{a([...n]),t.current&&t.current(e=>e+1)},500)}var j=t(46083),N=t(55904),w=t(58526);function b({field:e,setTargetField:a,fieldIndex:t,tableFields:s,setTableFields:n,refreshFieldsListRef:r,database:d,currentTable:c,confirmedDelegetedUser:u,user:m}){let x=u?.delegated,p=u?.priviledges?.match(/Edit Tables/i);u?.priviledges?.match(/Delete Tables/i),u?.priviledges?.match(/Create Tables/i);let{active_clone:h,active_clone_parent_db:f,remote_connected:g}=d,[y,b]=i().useState(e),[T,_]=i().useState(!1);return(0,l.jsxs)("div",{className:"flex-col w-full table-field-wrapper"+(T?" shadow-2xl shadow-slate-300/40 dark:shadow-black/30 relative z-50":""),children:[(0,l.jsxs)("div",{className:"card no-hover items-center w-full py-4"+(T?" rounded-t":" rounded")+(y.fieldName?.match(o.A)?" text-slate-400 pointer-events-none border-slate-200 border":" light-gray"),children:[(0,l.jsx)("span",{className:"font-bold"+(y.fieldName?.match(o.A)?" dark:text-slate-500":" dark:text-white"),children:y.fieldName}),(0,l.jsx)("span",{className:"text-xs py-1 px-2 bg-slate-100 dark:bg-slate-700 dark:text-slate-200 rounded ",children:y.dataType}),y?.foreignKey&&(0,l.jsxs)("div",{className:"text-xs bg-primary text-white px-2 py-0.5 rounded-full",children:[(0,l.jsx)("span",{children:"Foreign Key: "}),(0,l.jsxs)("span",{children:[y.foreignKey.destinationTableName," ("," ",(0,l.jsx)("b",{children:y.foreignKey.destinationTableColumnName})," ",")"]})]}),y.fieldName?.match(o.A)&&(0,l.jsx)("span",{className:"text-slate-300 text-sm font-semibold ml-0 md:ml-auto",children:"Default Field"}),!y.fieldName?.match(o.A)&&!f&&!g&&(0,l.jsx)("div",{className:"ml-0 md:ml-auto flex-wrap",children:(!x||x&&p)&&(0,l.jsxs)(i().Fragment,{children:[(0,l.jsxs)(N.A,{children:[(0,l.jsx)("div",{className:"button outlined py-1 text-xs gray",onClick:e=>{T?_(!1):_(!0)},style:{color:"var(--slate-500)"},children:"Edit"}),!f&&!g&&(0,l.jsx)("div",{className:"button outlined py-1 text-xs gray",onClick:a=>{window.confirm(`Delete "${e.fieldName}"?`)&&n(e=>e.filter((e,a)=>a!=t))},style:{color:"var(--slate-500)"},children:"Delete"})]}),(0,l.jsxs)("div",{children:[(0,l.jsx)("div",{className:"button outlined gray p-2 w-8 h-8 rounded-full rotate-180",onClick:a=>{v({tableFields:s,setTableFields:n,refreshFieldsListRef:r,order:"up",field:e,e:a})},children:(0,l.jsx)(w.A,{size:20})}),(0,l.jsx)("div",{className:"button outlined gray p-2 w-8 h-8 rounded-full",onClick:a=>{v({tableFields:s,setTableFields:n,refreshFieldsListRef:r,order:"down",field:e,e:a})},children:(0,l.jsx)(w.A,{size:20})})]})]})})]}),T&&(0,l.jsx)("div",{className:"w-full",children:(0,l.jsx)(j.A,{fieldIndex:t,tableFields:s,setTableFields:n,refreshFieldsListRef:r,targetField:e,setActiveEdit:_,database:d,currentTable:c,user:m})})]})}var T=t(60424);let _=1;function F({user:e,tableFields:a,setTableFields:t,setTargetField:s,refreshFieldsListRef:o,updateTable:c,updateTableAfterFieldsUpdateFunction:u,collapsed:x,database:p,table:h,confirmedDelegetedUser:g,query:y}){h?.childTable&&h.childTableDbFullName?.replace(new RegExp(/datasquirel_user_\d+_/),"");let v=g?.delegated,j=g?.priviledges?.match(/Edit Tables/i);g?.priviledges?.match(/Delete Tables/i),g?.priviledges?.match(/Create Tables/i);let{active_clone:N,active_clone_parent_db:w,remote_connected:F}=p,[S,C]=i().useState(0);o.current=C;let[A,k]=i().useState(!1),[D,V]=i().useState(x||!1);return v&&!j?(0,l.jsx)(l.Fragment,{}):(0,l.jsxs)("section",{className:"paper green",children:[A&&(0,l.jsx)(d.A,{}),h?.childTable?(0,l.jsxs)(i().Fragment,{children:[(0,l.jsxs)("div",{className:"w-full justify-between flex-wrap",children:[(0,l.jsx)("h2",{className:"text-xl m-0 text-left title",children:"Fields"}),(0,l.jsxs)("div",{children:[(0,l.jsx)("div",{className:"button outlined light-gray",onClick:a=>{let t=(0,T.A)({paradigm:"JavaScript",table:h,query:y,user:e});t&&navigator.clipboard.writeText(t).then(()=>{window.alert("JavaScript Type Definition Copied")})},children:(0,l.jsx)("span",{children:"Copy TypeDef (JS)"})}),(0,l.jsx)("div",{className:"button outlined light-gray",onClick:a=>{let t=(0,T.A)({paradigm:"TypeScript",table:h,query:y,user:e});t&&navigator.clipboard.writeText(t).then(()=>{window.alert("TypeScript Type Definition Copied")})},children:(0,l.jsx)("span",{children:"Copy TypeDef (TS)"})})]})]}),(0,l.jsx)("div",{className:"flex-col w-full",style:D?{maxHeight:"200px"}:{},children:a&&a[0]&&a.map((i,n)=>(_++,(0,l.jsx)(m,{field:i,fieldIndex:n,setTargetField:s,setTableFields:t,refreshFieldsListRef:o,tableFields:a,database:p,setLoading:k,currentTable:h,user:e,isDelegated:v},_)))}),x&&(0,l.jsx)(r.A,{collapse:D||!1,setCollapse:V})]}):(0,l.jsxs)(i().Fragment,{children:[(0,l.jsxs)("div",{className:"w-full justify-between flex-wrap",children:[(0,l.jsx)("h2",{className:"text-xl m-0 text-left title",children:"Fields"}),(0,l.jsxs)("div",{children:[(!v||v&&j)&&!w&&!F&&(0,l.jsxs)("div",{className:"button secondary outlined",onClick:e=>{D&&V(!1),n({setTableFields:t,tableFields:a,setRefresh:C,refreshFieldsListRef:o})},children:[(0,l.jsx)("span",{className:"symbol",children:"+"}),(0,l.jsx)("span",{children:"Add New Field"})]}),(0,l.jsx)("div",{className:"button outlined light-gray",onClick:a=>{if(!h)return;let t=(0,T.A)({paradigm:"JavaScript",table:h,query:y,user:e});t&&navigator.clipboard.writeText(t).then(()=>{window.alert("JavaScript Type Definition Copied")})},children:(0,l.jsx)("span",{children:"Copy TypeDef (JS)"})}),(0,l.jsx)("div",{className:"button outlined light-gray",onClick:a=>{if(!h)return;let t=(0,T.A)({paradigm:"TypeScript",table:h,query:y,user:e});t&&navigator.clipboard.writeText(t).then(()=>{window.alert("TypeScript Type Definition Copied")})},children:(0,l.jsx)("span",{children:"Copy TypeDef (TS)"})})]})]}),(0,l.jsxs)("div",{className:"flex-col w-full",style:D?{maxHeight:"200px"}:{},children:[a&&a[0]&&a.map((i,n)=>(_++,i.newTempField)?(0,l.jsx)(f,{fieldIndex:n,tableFields:a,setTableFields:t,refreshFieldsListRef:o,database:p,currentTable:h,user:e},_):(0,l.jsx)(b,{field:i,fieldIndex:n,setTargetField:s,setTableFields:t,refreshFieldsListRef:o,tableFields:a,database:p,currentTable:h,confirmedDelegetedUser:g,user:e},_)),(!v||v&&j)&&!w&&!F&&(0,l.jsxs)(i().Fragment,{children:[(0,l.jsxs)("div",{className:"button outlined gray w-full more-padding",style:{borderStyle:"dashed"},onClick:e=>{D&&V(!1),n({setTableFields:t,tableFields:a,setRefresh:C,refreshFieldsListRef:o})},children:[(0,l.jsx)("span",{className:"symbol",children:"+"}),(0,l.jsx)("span",{children:"Add New Field"})]}),c&&(0,l.jsx)("button",{className:"secondary w-full py-3",onClick:e=>{window.confirm("Update Table Fields?")&&(k(!0),u&&u(k))},children:"Update Table Fields"})]})]}),x&&(0,l.jsx)(r.A,{collapse:D,setCollapse:V})]})]})}},93763:(e,a,t)=>{t.d(a,{A:()=>o});var l=t(8732),s=t(82015),i=t.n(s),n=t(46169),r=t(16757),d=t(2913);function o({targetField:e,setFieldData:a,tableFields:t,setTableFields:s,database:o,currentTable:c,user:u,setActiveEdit:m,activeClonedTable:x}){let[p,h]=i().useState(!!e?.foreignKey),[f,g]=i().useState(null),[y,v]=i().useState(null),[j,N]=i().useState(null),[w,b]=i().useState(null),[T,_]=i().useState(!1),[F,S]=i().useState("boolean"!=typeof e.foreignKey?.cascadeDelete||e.foreignKey.cascadeDelete),[C,A]=i().useState("boolean"==typeof e.foreignKey?.cascadeUpdate&&e.foreignKey.cascadeUpdate);return(0,l.jsxs)("div",{className:"flex flex-col items-start gap-2 w-full mt-2 relative",style:{minWidth:"70px"},children:[T&&(0,l.jsx)(r.A,{}),(0,l.jsxs)("label",{htmlFor:"foreign_key_field",className:"flex flex-wrap items-center gap-2 mt-2",children:[(0,l.jsx)("span",{children:"Foreign Key?"}),(0,l.jsxs)("div",{className:"dropdown-wrapper reversed text-sm items-start",children:[(0,l.jsx)("span",{className:"px-2 bg-slate-200 rounded-full hover:bg-slate-100 hidden xl:flex text-slate-600",children:"Info"}),(0,l.jsx)("div",{className:"dropdown mt-0 xl:-mt-2",children:(0,l.jsx)("span",{children:"Foriegn key links the current table to another table"})})]})]}),(0,l.jsxs)("select",{name:"foreign_key_field",id:"foreign_key_field",className:"px-2",defaultValue:e?.foreignKey?"Yes":"No",onChange:e=>{e.target.value.match(/yes/i)?(h(!0),a&&a(e=>(e.foreignKey={foreignKeyName:void 0,destinationTableName:void 0,destinationTableColumnName:void 0,cascadeDelete:!0},e))):(h(!1),a&&a(e=>(delete e.foreignKey,e)))},children:[(0,l.jsx)("option",{value:"No",children:"No"}),(0,l.jsx)("option",{value:"Yes",children:"Yes"})]}),p&&f&&(0,l.jsx)(i().Fragment,{children:(0,l.jsxs)("select",{name:"foreign_key_destination_table_name",id:"foreign_key_destination_table_name",className:"px-2",defaultValue:e?.foreignKey?.destinationTableName?e.foreignKey.destinationTableName:void 0,onChange:e=>{let t=e.target;if(e.target.value?.match(/--/)){a?a(e=>{let a=e.foreignKey;return a&&(a.destinationTableName=void 0),e}):t.dataset.destinationTableName=void 0;return}let l=f.filter(a=>a.tableName===e.target.value)[0];v(l),l?.fields&&N(l.fields),a?a(a=>{let t=a.foreignKey;return t&&(t.destinationTableName=e.target.value),a}):e.target.dataset.destinationTableName=e.target.value},children:[(0,l.jsx)("option",{value:"--",children:"--Select Table--"}),f.map((e,a)=>(0,l.jsx)("option",{value:e.tableName,children:e.tableFullName},a+1))]})}),y&&j&&(0,l.jsxs)(i().Fragment,{children:[(0,l.jsxs)("select",{name:"foreign_key_destination_table_column_name",id:"foreign_key_destination_table_column_name",className:"px-2",defaultValue:e?.foreignKey?.destinationTableColumnName?e.foreignKey.destinationTableColumnName:void 0,onChange:e=>{try{let t=j.filter(a=>a.fieldName===e.target.value)[0];if(b(t),e.target.value?.match(/--/)){a&&a(e=>{let a=e.foreignKey;return a&&(a.destinationTableColumnName=void 0),e});return}let l=`dsql_${o.user_id}_${o.db_slug}_${Date.now()}`;a?a(e=>{e.dataType=t.dataType;let a=e.foreignKey;return a&&(a.destinationTableColumnName=t.fieldName,a.destinationTableColumnType=t.dataType,a.foreignKeyName=l),e}):(e.target.dataset.dataType=t.dataType,e.target.dataset.destinationTableColumnName=t.fieldName,e.target.dataset.foreignKeyName=l)}catch(e){(0,n.A)("/api/admin/clientError",{method:"post",body:{component:"ForeignKey/lines-232-264",message:e.message,user:u}})}},children:[(0,l.jsx)("option",{value:"--",children:"--Select Column--"}),j.map((e,a)=>(0,l.jsx)("option",{value:e.fieldName,children:e.fieldName},a+1))]}),x&&w&&(0,l.jsx)("button",{className:"secondary w-full",onClick:e=>{_(!0),(0,n.A)("/api/updateClonedTableForeignKeys",{method:"post",body:{tableData:c,database:o.db_full_name,dbSlug:o.db_slug,delegated:!!window.location?.search?.match(/delegated=true/i)}},!0).then(e=>{e.success?window.alert("Foreign Key Added Successfully!"):window.alert("Update Failed, Please Try again."),setTimeout(()=>{m&&m(!1)},1e3)})},children:"Add Foreign Key"}),(0,l.jsx)(d.A,{checkBoxValues:[{title:"Cascade Delete",default:F,name:"cascade-delete",onChangeHandler:e=>{S(e.target.checked)}},{title:"Cascade Update",name:"cascade-update",default:C,onChangeHandler:e=>{A(e.target.checked)}}],smallText:!0})]}),x&&(0,l.jsx)("button",{className:"light-gray w-full",onClick:a=>{delete e.foreignKey,m&&m(!1)},children:"Cancel"})]})}},36138:(e,a,t)=>{t.d(a,{A:()=>s});var l=t(8732);function s({targetField:e}){return(0,l.jsxs)("div",{className:"flex flex-col items-start gap-0.5",style:{minWidth:"70px"},children:[(0,l.jsx)("label",{htmlFor:"rich_text_option",children:"Text Type"}),(0,l.jsxs)("select",{name:"rich_text_option",id:"rich_text_option",className:"px-2",onChange:a=>{switch(delete e.json,delete e.richText,delete e.yaml,delete e.html,delete e.javascript,delete e.shell,a.target.value){case"plain":break;case"rte":e.richText=!0;break;case"json":e.json=!0;break;case"yaml":e.yaml=!0;break;case"html":e.html=!0;break;case"css":e.css=!0;break;case"javascript":e.javascript=!0;break;case"shell":e.shell=!0}},defaultValue:e.richText?"rte":e.json?"json":e.yaml?"yaml":e.html?"html":e.javascript?"javascript":e.shell?"shell":e.css?"css":"plain",children:[(0,l.jsx)("option",{value:"plain",children:"Plain Text"}),(0,l.jsx)("option",{value:"rte",children:"Rich Text"}),(0,l.jsx)("option",{value:"json",children:"JSON"}),(0,l.jsx)("option",{value:"yaml",children:"YAML"}),(0,l.jsx)("option",{value:"html",children:"HTML"}),(0,l.jsx)("option",{value:"css",children:"CSS"}),(0,l.jsx)("option",{value:"javascript",children:"Javascript"}),(0,l.jsx)("option",{value:"shell",children:"Shell"})]})]})}t(82015)},60424:(e,a,t)=>{t.d(a,{A:()=>s});var l=t(42960);function s({paradigm:e,table:a,query:t,user:s}){let i="";try{let s=`DSQL_${t.single}_${t.single_table}`.toUpperCase(),r=a.fields;function n(e){return e?.match(/int/i)?"number":(e?.match(/text|varchar|timestamp/i),"string")}let d=[],o=[];d.push(`type ${s} = {`),o.push(`/** +"use strict";exports.id=9901,exports.ids=[9901],exports.modules={46083:(e,a,t)=>{t.d(a,{A:()=>c});var l=t(8732),s=t(82015),i=t.n(s),n=t(32251),r=t(36138),d=t(27825),o=t.n(d);function c({targetField:e,fieldIndex:a,tableFields:s,setTableFields:d,refreshFieldsListRef:c,setActiveEdit:u,database:m,currentTable:x,user:p}){let h=e?.dataType?e.dataType.replace(/\d|\(|\)/g,""):null,f=e?.dataType?e.dataType.replace(/[^\d]/g,""):"200",g=t(94327),y=i().useRef(o().cloneDeep(e)),v=i().useRef(),[j,N]=i().useState(e),[w,b]=i().useState(e?.fieldName),[T,_]=i().useState(h),[F,S]=i().useState(f),[C,A]=i().useState("Varchar is simply letters and numbers within the range 0 - 255"),[k,D]=i().useState(e?.richText&&!e?.encrypted?"Yes":"No"),V=!!T?.match(/uuid/i);return(0,l.jsx)("div",{className:"w-full -mt-3 bg-white dark:bg-slate-800 flex-wrap",ref:v,children:(0,l.jsxs)("form",{className:"flex flex-col xl:flex-row items-start gap-4 w-full justify-between border border-solid p-4 border-slate-200 dark:border-slate-600 rounded rounded-t-none focus:shadow-lg shadow-slate-700 dark:shadow-black relative flex-wrap",onSubmit:e=>{e.preventDefault(),d(e=>(e[a]=j,e)),c.current(e=>e+1);let t=e.target;t.closest(".table-field-wrapper")?.querySelector(".edit-table-field-section")?.classList.toggle("hidden")},children:[(0,l.jsxs)("div",{className:"gap-4 flex-wrap w-full md:w-auto flex-col xl:flex-row items-stretch",children:[(0,l.jsxs)("div",{className:"flex flex-col items-start gap-0.5",children:[(0,l.jsx)("label",{htmlFor:"new_field_name",children:"Field Name"}),(0,l.jsx)("input",{type:"text",name:"new_field_name",id:"new_field_name",placeholder:"Eg. post_title",onInput:async e=>{let a=e.target;a.value=a.value.toLowerCase().replace(/ /g,"_"),N(e=>(e.fieldName=a.value,e.updatedField=!0,e.originName||(e.originName=w),e))},required:!0,defaultValue:w})]}),(0,l.jsxs)("div",{className:"flex flex-col items-start gap-4 xl:gap-0.5",children:[(0,l.jsxs)("div",{className:"flex-wrap xl:flex-nowrap w-full md:w-auto",children:[(0,l.jsx)("label",{htmlFor:"new_field_data_type",children:"Data Type"}),(0,l.jsxs)("div",{className:"dropdown-wrapper reversed text-sm items-start",children:[(0,l.jsx)("span",{className:"px-2 bg-slate-200 dark:bg-slate-700 rounded-full hover:bg-slate-100 dark:hover:bg-slate-600 hidden xl:flex",children:"Info"}),(0,l.jsx)("div",{className:"dropdown mt-0 xl:-mt-2",children:(0,l.jsx)("span",{children:C})})]})]}),(0,l.jsxs)("div",{className:"w-auto",children:[(0,l.jsx)("select",{name:"new_field_data_type",id:"new_field_data_type",className:"w-full xl-w-auto",onChange:a=>{let t=a.target;_(t.value),t.childNodes.forEach(e=>{e.value===t.value&&e.dataset.desc&&A(e.dataset.desc),e.value===t.value&&e.dataset.literal?(j.defaultValueLiteral=e.dataset.literal,j.nullValue=!1):delete j.defaultValueLiteral}),e.dataType=t.value+(t.value.match(/VARCHAR/)?`(${F||200})`:"")},defaultValue:T||void 0,children:g.map((e,a)=>e.name.match(/VARCHAR/)?(0,l.jsx)("option",{value:e.name,"data-desc":e.description,children:e.title+"("+(F||200)+")"},a+1):(0,l.jsx)("option",{value:e.name,"data-desc":e.description,"data-literal":e.valueLiteral||void 0,children:e.title},a+1))}),T?.match(/VARCHAR/)&&(0,l.jsx)("input",{type:"number",defaultValue:F||200,className:"px-2",style:{maxWidth:"60px"},max:255,min:5,onChange:a=>{S(a.target.value),e.dataType=T+`(${a.target.value})`}})]})]}),T?.match(/text/i)&&(0,l.jsx)(i().Fragment,{children:(0,l.jsx)(r.A,{targetField:e})}),!e.dataType?.match(/text/i)&&!V&&(0,l.jsxs)("div",{className:"flex flex-col items-start gap-0.5",style:{minWidth:"70px"},children:[(0,l.jsx)("label",{htmlFor:"new_field_required",children:"Required?"}),(0,l.jsxs)("select",{name:"new_field_required",id:"new_field_required",className:"px-2",defaultValue:e?.notNullValue?"Yes":"No",onChange:a=>{console.log(e),"Yes"===a.target.value?e.notNullValue=!0:(e.notNullValue=!1,delete e.notNullValue)},children:[(0,l.jsx)("option",{value:"No",children:"No"}),(0,l.jsx)("option",{value:"Yes",children:"Yes"})]})]}),!V&&(0,l.jsxs)("div",{className:"flex flex-col items-start gap-0.5",children:[(0,l.jsx)("label",{htmlFor:"new_field_default_value",children:j?.dataType?.match(/text$/i)?"Can't Set Default for text values":"Default Value (optional)"}),(0,l.jsx)("input",{type:"text",name:"new_field_default_value",id:"new_field_default_value",className:j?.dataType?.match(/text$/i)?"pointer-events-none opacity-50":"",placeholder:"Default Value",defaultValue:j?.defaultValue?j.defaultValue:j?.nullValue?"NULL":"",onInput:e=>{let a=e.target;j.dataType?.match(/text$/i)||N(e=>(a.value.match(/./)?delete e.notNullValue:(delete e.defaultValue,delete e.nullValue),a.value.match(/^null$/i)?(delete e.defaultValue,e.nullValue=!0):a.value.match(/./)&&(delete e.nullValue,e.defaultValue=a.value),e))}})]}),!V&&(0,l.jsx)(n.A,{database:m,setFieldData:N,setTableFields:d,tableFields:s,targetField:e,user:p,currentTable:x,fieldIndex:a})]}),(0,l.jsxs)("div",{className:"secondary mt-auto flex-wrap w-full xl:w-auto",children:[(0,l.jsx)("button",{type:"submit",className:"secondary mt-auto py-3 w-full md:w-auto grow",children:"Save Updates"}),(0,l.jsx)("div",{className:"button outlined gray mt-auto py-2.5 w-full md:w-auto justify-center grow",onClick:t=>{y.current&&(e=o().cloneDeep(y.current)),d(e=>{let t=o().cloneDeep(e);return a&&y.current&&(t[a]=o().cloneDeep(y.current)),t}),u&&u(!1)},children:"Cancel"})]})]})})}},32251:(e,a,t)=>{t.d(a,{A:()=>g});var l=t(8732),s=t(82015),i=t.n(s),n=t(83155),r=t(58150);function d({targetField:e}){if(!e?.richText)return null;let[a,t]=i().useState(e.cssFiles||[]),s=i().useRef(null);return(0,l.jsxs)("div",{className:"flex flex-col items-start gap-2 w-full my-4",style:{minWidth:"70px"},children:[(0,l.jsx)("span",{className:"label text-xs text-slate-500",children:"Add CSS"}),a.map((e,a)=>(0,l.jsxs)("div",{className:"relative border border-solid border-slate-300 text-xs px-2 py-1 rounded-full",children:[(0,l.jsx)("span",{children:e}),(0,l.jsx)(r.A,{size:20,onClick:()=>{t(a=>a.filter(a=>a!==e))},className:"cursor-pointer hover:opacity-60 "})]},a+1)),(0,l.jsxs)("div",{className:"row w-full",children:[(0,l.jsx)(n.A,{name:"css-file",placeholder:"CSS file URL",elementRef:s}),(0,l.jsx)("button",{className:"secondary outlined",onClick:()=>{let e=s.current?.value;e?.match(/./)&&t(a=>[...new Set([...a,e])])},children:"Add"})]}),(0,l.jsx)("span",{className:"text-sm text-slate-600",children:"Add CSS files to your Rich Text field"})]})}function o({targetField:e,setFieldData:a}){return(0,l.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",style:{minWidth:"70px"},children:[(0,l.jsx)("label",{htmlFor:"encryption_field",children:"Encrypt?"}),(0,l.jsxs)("select",{name:"encryption_field",id:"encryption_field",className:"px-2",defaultValue:e?.encrypted?"Yes":"No",onChange:e=>{a&&a(a=>(e.target.value.match(/yes/i)?a.encrypted=!0:(a.encrypted=!1,delete a.encrypted),a))},children:[(0,l.jsx)("option",{value:"No",children:"No"}),(0,l.jsx)("option",{value:"Yes",children:"Yes"})]})]})}var c=t(93763);function u({targetField:e,setFieldData:a}){return null}function m({targetField:e}){return(0,l.jsxs)("div",{className:"flex flex-col items-start gap-2 w-full",style:{minWidth:"70px"},children:[(0,l.jsx)("label",{htmlFor:"encryption_field",children:"Pattern"}),(0,l.jsx)("span",{className:"text-sm text-slate-500",children:'This describes a pattern that must be matched for this field to be valid. If you add a pattern and make a db entry that doesn\'t match, the entry will be "NULL" or an empty string or the default value.'}),(0,l.jsx)("input",{type:"text",placeholder:"Regex Pattern. Eg: '\\\\.[a-z]+'",onInput:a=>{let t=a.target;t?.value?.length>0?e.pattern=t.value:delete e.pattern},defaultValue:e?.pattern}),(0,l.jsx)("input",{type:"text",placeholder:"Regex Pattern Flags. Eg: igm",onInput:a=>{let t=a.target;t?.value?.length>0?e.patternFlags=t.value:delete e.patternFlags},defaultValue:e?.patternFlags})]})}var x=t(27825),p=t.n(x),h=t(84483);function f({targetField:e,setFieldData:a}){return(0,l.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",style:{minWidth:"70px"},children:[(0,l.jsx)("label",{htmlFor:"unique_field",children:"Unique Field?"}),(0,l.jsxs)("select",{name:"unique_field",id:"unique_field",className:"px-2",defaultValue:e?.unique?"Yes":"No",onChange:e=>{a&&a(a=>(e.target.value.match(/yes/i)?a.unique=!0:(a.unique=!1,delete a.unique),a))},children:[(0,l.jsx)("option",{value:"No",children:"No"}),(0,l.jsx)("option",{value:"Yes",children:"Yes"})]})]})}function g({targetField:e,currentTable:a,database:t,tableFields:s,setTableFields:n,setFieldData:r,user:x,fieldIndex:g}){let[y,v]=i().useState(!1),j=i().useRef(p().cloneDeep(e));return(0,l.jsxs)(i().Fragment,{children:[(0,l.jsx)("span",{className:"button outlined gray mt-5 w-full xl:w-auto",onClick:()=>{v(!0)},children:"More"}),(0,l.jsx)(h.A,{open:y,onClose:()=>{j.current&&(e=p().cloneDeep(j.current)),v(!1)},maxWidth:"600px",children:(0,l.jsxs)("div",{className:"m-auto flex flex-col max-w-xl w-full max-h-[90vh] overflow-y-auto",children:[(0,l.jsx)("div",{className:"w-full justify-between",children:(0,l.jsx)("span",{className:"text-xl",children:"More Options"})}),(0,l.jsx)(d,{targetField:e}),(0,l.jsx)(f,{targetField:e,setFieldData:r}),(0,l.jsx)(o,{targetField:e,setFieldData:r}),a&&(0,l.jsx)(c.A,{targetField:e,setFieldData:r,database:t,tableFields:s,setTableFields:n,currentTable:a,user:x}),(0,l.jsx)(u,{targetField:e,setFieldData:r}),(0,l.jsx)(m,{targetField:e}),(0,l.jsx)("button",{className:"w-full outlined more-padding",onClick:()=>{v(!1)},children:"Done"})]})})]})}},471:(e,a,t)=>{t.d(a,{A:()=>F});var l=t(8732),s=t(82015),i=t.n(s);function n({tableFields:e,setTableFields:a,setRefresh:t,setPageRefresh:l,refreshFieldsListRef:s}){let i=e.findIndex(e=>"date_created"===e.fieldName);e.splice(i,0,{newTempField:!0}),a(e),s?.current&&s.current(e=>e+1)}t(80255);var r=t(51339),d=t(16757),o=t(42960),c=t(93763),u=t(46169);function m({field:e,setTargetField:a,fieldIndex:t,tableFields:s,setTableFields:n,refreshFieldsListRef:r,database:d,currentTable:m,user:x,isDelegated:p,setLoading:h}){let[f,g]=i().useState(e),[y,v]=i().useState(!1);return(0,l.jsxs)("div",{className:"flex-col w-full table-field-wrapper"+(y?" shadow-2xl shadow-slate-700/40 relative z-50":""),children:[(0,l.jsxs)("div",{className:"card no-hover items-center w-full py-4"+(y?" rounded-t":" rounded")+(f.fieldName?.match(o.A)?" text-slate-400 pointer-events-none border-slate-200 border":" light-gray"),children:[(0,l.jsx)("span",{className:"font-bold"+(f.fieldName?.match(o.A)?" dark:text-slate-500":" dark:text-white"),children:f.fieldName}),(0,l.jsx)("span",{className:"text-xs py-1 px-2 bg-slate-100 dark:bg-slate-700 dark:text-slate-200 rounded ",children:f.dataType}),f?.foreignKey&&(0,l.jsxs)("div",{className:"text-xs bg-primary text-white px-2 py-0.5 rounded-full",children:[(0,l.jsx)("span",{children:"Foreign Key: "}),(0,l.jsxs)("span",{children:[f.foreignKey.destinationTableName," ("," ",(0,l.jsx)("b",{children:f.foreignKey.destinationTableColumnName})," ",")"]})]}),f.fieldName?.match(o.A)&&(0,l.jsx)("span",{className:"text-slate-300 text-sm font-semibold ml-0 md:ml-auto",children:"Default Field"}),!(!p&&!f.fieldName?.match(o.A)&&f.dataType?.match(/INT/))||f.foreignKey||d?.active_clone?.toString()?.match(/1/)?!p&&!f.fieldName?.match(o.A)&&f.dataType?.match(/INT/)&&!d?.active_clone?.toString()?.match(/1/)?(0,l.jsx)("div",{className:"ml-0 md:ml-auto flex-wrap",children:(0,l.jsx)("div",{className:"button py-1 text-xs light-gray",onClick:a=>{window.confirm("Delete this foreign Key?")&&(delete e.foreignKey,h(!0),(0,u.A)("/api/updateClonedTableForeignKeys",{method:"post",body:{tableData:m,database:d.db_full_name,dbSlug:d.db_slug,delegated:!!window.location?.search?.match(/delegated=true/i)}},!0).then(e=>{e.success?window.location.reload():window.alert("Update Failed, Please Try again.")}))},style:{color:"var(--slate-500)"},children:"Delete Foreign Key"})}):(0,l.jsx)(i().Fragment,{}):(0,l.jsx)("div",{className:"ml-0 md:ml-auto flex-wrap",children:(0,l.jsx)("div",{className:"button outlined py-1 text-xs gray",onClick:e=>{y?v(!1):v(!0)},style:{color:"var(--slate-500)"},children:"Add Foreign Key"})})]}),y&&!p&&(0,l.jsx)("div",{className:"card col w-full -mt-5 pt-0 no-hover",children:(0,l.jsx)(c.A,{targetField:e,setFieldData:g,tableFields:s,setTableFields:n,database:d,currentTable:m,user:x,setActiveEdit:v,activeClonedTable:!0})})]})}var x=t(32251),p=t(36138);function h({fieldIndex:e,setTableFields:a,database:s,user:n,isNewField:r,setLiteralValue:d,tempFieldData:o,setTempFieldData:c,dataTypeValue:u,setDataTypeValue:m,dataType:h,setDataType:f,dataTypeDesc:g,setDataTypeDesc:y}){let v=t(94327);i().useRef();let j=!!h.match(/uuid/i);return(0,l.jsxs)(i().Fragment,{children:[r&&(0,l.jsx)("span",{className:"absolute -top-4 text-sm bg-fuchsia-600 dark:bg-white text-white dark:text-fuchsia-800 px-3 py-1 rounded-full",children:"New Field"}),(0,l.jsxs)("div",{className:"gap-4 flex-wrap xl:flex-nowrap flex-col xl:flex-row items-stretch w-full xl:w-auto",children:[(0,l.jsxs)("div",{className:"flex flex-col items-start gap-0.5",children:[(0,l.jsx)("label",{htmlFor:"new_field_name",children:"Field Name"}),(0,l.jsx)("input",{type:"text",name:"new_field_name",id:"new_field_name",placeholder:"Eg. post_title",onInput:async e=>{let a=e.target,t=a.value.toLowerCase().replace(/ /g,"_");a.value=t},required:!0})]}),(0,l.jsxs)("div",{className:"flex flex-col items-start gap-4 xl:gap-0.5",children:[(0,l.jsxs)("div",{className:"items-start flex-wrap xl:flex-nowrap",children:[(0,l.jsx)("label",{htmlFor:"new_field_data_type",children:"Data Type"}),(0,l.jsxs)("div",{className:"dropdown-wrapper reversed text-sm w-full items-start gap-2",children:[(0,l.jsx)("span",{className:"px-2 bg-slate-200 dark:bg-slate-700 rounded-full hover:bg-slate-100 dark:hover:bg-slate-600 hidden xl:flex",children:"Info"}),(0,l.jsx)("div",{className:"dropdown mt-0 xl:-mt-2",children:(0,l.jsx)("span",{children:g})})]})]}),(0,l.jsxs)("div",{className:"w-full xl:w-auto",children:[(0,l.jsx)("select",{name:"new_field_data_type",id:"new_field_data_type",className:"w-full xl:w-auto",onChange:e=>{let a=e.target;f(a.value),a.childNodes.forEach(e=>{e.value===a.value&&y(e.dataset.desc),e.value===a.value&&e.dataset.literal&&d(e.dataset.literal)})},children:v.map((e,a)=>e.name.match(/VARCHAR/)?(0,l.jsx)("option",{value:e.name,"data-desc":e.description,children:e.title+"("+(u||200)+")"},a+1):(0,l.jsx)("option",{value:e.name,"data-desc":e.description,"data-literal":e.valueLiteral||void 0,children:e.title},a+1))}),h.match(/VARCHAR/)&&(0,l.jsx)("input",{type:"number",defaultValue:u,className:"px-2",style:{maxWidth:"60px"},max:255,min:5,onChange:e=>{m(e.target.value)}})]})]}),h?.match(/text/i)&&(0,l.jsx)(i().Fragment,{children:(0,l.jsx)(p.A,{targetField:o})}),!j&&(0,l.jsxs)("div",{className:"flex flex-col items-start gap-0.5",style:{minWidth:"70px"},children:[(0,l.jsx)("label",{htmlFor:"new_field_required",children:"Required?"}),(0,l.jsxs)("select",{name:"new_field_required",id:"new_field_required",className:"px-2",children:[(0,l.jsx)("option",{value:"No",children:"No"}),(0,l.jsx)("option",{value:"Yes",children:"Yes"})]})]}),!j&&(0,l.jsxs)("div",{className:"flex flex-col items-start gap-0.5",children:[(0,l.jsx)("label",{htmlFor:"new_field_default_value",children:"Default Value (optional)"}),(0,l.jsx)("input",{type:"text",name:"new_field_default_value",id:"new_field_default_value",placeholder:"Default Value"})]}),!j&&(0,l.jsx)(x.A,{database:s,setFieldData:c,targetField:o,user:n,fieldIndex:e})]}),(0,l.jsxs)("div",{className:"secondary mt-auto flex-wrap xl:flex-nowrap w-full xl:w-auto",children:[(0,l.jsx)("button",{type:"submit",className:"secondary mt-auto py-3 w-full sm:w-auto justify-center grow",children:"Add Field"}),(0,l.jsx)("div",{className:"button outlined-gray mt-auto py-2.5 w-full sm:w-auto justify-center grow",onClick:t=>{a(a=>a.filter((a,t)=>t!=e))},children:"Cancel"})]})]})}function f({fieldIndex:e,tableFields:a,setTableFields:t,refreshFieldsListRef:s,database:n,currentTable:r,user:d}){let[o,c]=i().useState("VARCHAR"),[u,m]=i().useState("200"),[x,p]=i().useState("Varchar is simply letters and numbers within the range 0 - 255"),[f,g]=i().useState({}),y=i().useRef(),[v,j]=i().useState(""),N=!!o.match(/uuid/i);return(0,l.jsx)("div",{className:"w-full mt-1 flex-wrap relative z-0 hover:z-20",ref:y,children:(0,l.jsx)("form",{className:"flex flex-row items-start gap-4 w-full justify-between border border-solid p-4 pt-6 border-slate-400 rounded focus:shadow-lg shadow-slate-400/40 dark:shadow-black/30 relative flex-wrap xl:flex-nowrap shadow-xl",onSubmit:a=>{a.preventDefault();let l=f.foreignKey;l&&!l.destinationTableName&&delete f.foreignKey;let i=a.target,n=i.new_field_name.value,r=i.new_field_data_type.value,d=i.new_field_required?.value,o=i.new_field_default_value?.value,c=i.encryption_field?.value,m=i.rich_text_option?.value,x=i.foreign_key_field,p=i.foreign_key_destination_table_name,h=i.foreign_key_destination_table_column_name;x?.value;let g={...f,fieldName:n,dataType:f?.dataType&&f?.foreignKey?f.dataType:r?.match(/VARCHAR/)?`${r}(${u})`:r};d?.match(/yes/i)?g.notNullValue=!0:o?.match(/./)||(g.nullValue=!0),o?.match(/./)&&(g.defaultValue=o),c?.match(/yes/i)&&(g.encrypted=!0),h?.value?.match(/./i)&&!h?.value?.match(/^--$/i)&&(g.dataType=h.dataset.dataType,g.foreignKey={foreignKeyName:h.dataset.foreignKeyName,destinationTableName:p.dataset.destinationTableName,destinationTableColumnName:h.dataset.destinationTableColumnName,cascadeDelete:!0}),m?.match(/yes/i)&&(g.richText=!0),N?(g.defaultValueLiteral=v,g.nullValue=!1):delete g.defaultValueLiteral,console.log("newFieldObject",g),function({fieldIndex:e,setTableFields:a,refreshFieldsListRef:t,payload:l}){a(a=>(a.splice(e,1,l),a)),t?.current&&t.current(e=>e+1)}({fieldIndex:e,setTableFields:t,refreshFieldsListRef:s,payload:g})},children:(0,l.jsx)(h,{database:n,fieldIndex:e,isNewField:!0,literalValue:v,refreshFieldsListRef:s,setLiteralValue:j,setTableFields:t,user:d,currentTable:r,tableFields:a,tempFieldData:f,setTempFieldData:g,dataTypeValue:u,setDataTypeValue:m,dataType:o,setDataType:c,dataTypeDesc:x,setDataTypeDesc:p})})})}var g=t(27825),y=t.n(g);function v({tableFields:e,setTableFields:a,refreshFieldsListRef:t,order:l,field:s,e:i}){let n=y().cloneDeep(e),r=n.findIndex(e=>e.fieldName===s.fieldName);if(r<0)return;let d=n[r];if("up"===l&&r&&r<=1){console.log("Min Reached =>",r);return}if("down"===l&&r&&r>=n.length-7){console.log("Max Reached =>",r);return}try{let e;let a=i.target.closest(".table-field-wrapper"),t=a.previousElementSibling,s=a.nextElementSibling,n=window.DSQL.Flip,r=n.getState(a);"up"===l?(e=n.getState(t),a.parentNode?.insertBefore(a,t)):s?.nextElementSibling&&(e=n.getState(s),a.parentNode?.insertBefore(a,s.nextElementSibling)),n.from(r,{duration:.3,ease:"power1.inOut"}),n.from(e,{duration:.3,ease:"power1.inOut"})}catch(e){console.log("Error =>",e.message)}if(!r){console.log("No target Field Index =>",r);return}n.splice(r,1),"up"===l?n.splice(r-1,0,d):n.splice(r+1,0,d),setTimeout(()=>{a([...n]),t.current&&t.current(e=>e+1)},500)}var j=t(46083),N=t(55904),w=t(58526);function b({field:e,setTargetField:a,fieldIndex:t,tableFields:s,setTableFields:n,refreshFieldsListRef:r,database:d,currentTable:c,confirmedDelegetedUser:u,user:m}){let x=u?.delegated,p=u?.priviledges?.match(/Edit Tables/i);u?.priviledges?.match(/Delete Tables/i),u?.priviledges?.match(/Create Tables/i);let{active_clone:h,active_clone_parent_db:f,remote_connected:g}=d,[y,b]=i().useState(e),[T,_]=i().useState(!1);return(0,l.jsxs)("div",{className:"flex-col w-full table-field-wrapper"+(T?" shadow-2xl shadow-slate-300/40 dark:shadow-black/30 relative z-50":""),children:[(0,l.jsxs)("div",{className:"card no-hover items-center w-full py-4"+(T?" rounded-t":" rounded")+(y.fieldName?.match(o.A)?" text-slate-400 pointer-events-none border-slate-200 border":" light-gray"),children:[(0,l.jsx)("span",{className:"font-bold"+(y.fieldName?.match(o.A)?" dark:text-slate-500":" dark:text-white"),children:y.fieldName}),(0,l.jsx)("span",{className:"text-xs py-1 px-2 bg-slate-100 dark:bg-slate-700 dark:text-slate-200 rounded ",children:y.dataType}),y?.foreignKey&&(0,l.jsxs)("div",{className:"text-xs bg-primary text-white px-2 py-0.5 rounded-full",children:[(0,l.jsx)("span",{children:"Foreign Key: "}),(0,l.jsxs)("span",{children:[y.foreignKey.destinationTableName," ("," ",(0,l.jsx)("b",{children:y.foreignKey.destinationTableColumnName})," ",")"]})]}),y.fieldName?.match(o.A)&&(0,l.jsx)("span",{className:"text-slate-300 text-sm font-semibold ml-0 md:ml-auto",children:"Default Field"}),!y.fieldName?.match(o.A)&&!f&&!g&&(0,l.jsx)("div",{className:"ml-0 md:ml-auto flex-wrap",children:(!x||x&&p)&&(0,l.jsxs)(i().Fragment,{children:[(0,l.jsxs)(N.A,{children:[(0,l.jsx)("div",{className:"button outlined py-1 text-xs gray",onClick:e=>{T?_(!1):_(!0)},style:{color:"var(--slate-500)"},children:"Edit"}),!f&&!g&&(0,l.jsx)("div",{className:"button outlined py-1 text-xs gray",onClick:a=>{window.confirm(`Delete "${e.fieldName}"?`)&&n(e=>e.filter((e,a)=>a!=t))},style:{color:"var(--slate-500)"},children:"Delete"})]}),(0,l.jsxs)("div",{children:[(0,l.jsx)("div",{className:"button outlined gray p-2 w-8 h-8 rounded-full rotate-180",onClick:a=>{v({tableFields:s,setTableFields:n,refreshFieldsListRef:r,order:"up",field:e,e:a})},children:(0,l.jsx)(w.A,{size:20})}),(0,l.jsx)("div",{className:"button outlined gray p-2 w-8 h-8 rounded-full",onClick:a=>{v({tableFields:s,setTableFields:n,refreshFieldsListRef:r,order:"down",field:e,e:a})},children:(0,l.jsx)(w.A,{size:20})})]})]})})]}),T&&(0,l.jsx)("div",{className:"w-full",children:(0,l.jsx)(j.A,{fieldIndex:t,tableFields:s,setTableFields:n,refreshFieldsListRef:r,targetField:e,setActiveEdit:_,database:d,currentTable:c,user:m})})]})}var T=t(60424);let _=1;function F({user:e,tableFields:a,setTableFields:t,setTargetField:s,refreshFieldsListRef:o,updateTable:c,updateTableAfterFieldsUpdateFunction:u,collapsed:x,database:p,table:h,confirmedDelegetedUser:g,query:y}){h?.childTable&&h.childTableDbFullName?.replace(new RegExp(/datasquirel_user_\d+_/),"");let v=g?.delegated,j=g?.priviledges?.match(/Edit Tables/i);g?.priviledges?.match(/Delete Tables/i),g?.priviledges?.match(/Create Tables/i);let{active_clone:N,active_clone_parent_db:w,remote_connected:F}=p,[S,C]=i().useState(0);o.current=C;let[A,k]=i().useState(!1),[D,V]=i().useState(x||!1);return v&&!j?(0,l.jsx)(l.Fragment,{}):(0,l.jsxs)("section",{className:"paper green",children:[A&&(0,l.jsx)(d.A,{}),h?.childTable?(0,l.jsxs)(i().Fragment,{children:[(0,l.jsxs)("div",{className:"w-full justify-between flex-wrap",children:[(0,l.jsx)("h2",{className:"text-xl m-0 text-left title",children:"Fields"}),(0,l.jsxs)("div",{children:[(0,l.jsx)("div",{className:"button outlined light-gray",onClick:a=>{let t=(0,T.A)({paradigm:"JavaScript",table:h,query:y,user:e});t&&navigator.clipboard.writeText(t).then(()=>{window.alert("JavaScript Type Definition Copied")})},children:(0,l.jsx)("span",{children:"Copy TypeDef (JS)"})}),(0,l.jsx)("div",{className:"button outlined light-gray",onClick:a=>{let t=(0,T.A)({paradigm:"TypeScript",table:h,query:y,user:e});t&&navigator.clipboard.writeText(t).then(()=>{window.alert("TypeScript Type Definition Copied")})},children:(0,l.jsx)("span",{children:"Copy TypeDef (TS)"})})]})]}),(0,l.jsx)("div",{className:"flex-col w-full",style:D?{maxHeight:"200px"}:{},children:a&&a[0]&&a.map((i,n)=>(_++,(0,l.jsx)(m,{field:i,fieldIndex:n,setTargetField:s,setTableFields:t,refreshFieldsListRef:o,tableFields:a,database:p,setLoading:k,currentTable:h,user:e,isDelegated:v},_)))}),x&&(0,l.jsx)(r.A,{collapse:D||!1,setCollapse:V})]}):(0,l.jsxs)(i().Fragment,{children:[(0,l.jsxs)("div",{className:"w-full justify-between flex-wrap",children:[(0,l.jsx)("h2",{className:"text-xl m-0 text-left title",children:"Fields"}),(0,l.jsxs)("div",{children:[(!v||v&&j)&&!w&&!F&&(0,l.jsxs)("div",{className:"button secondary outlined",onClick:e=>{D&&V(!1),n({setTableFields:t,tableFields:a,setRefresh:C,refreshFieldsListRef:o})},children:[(0,l.jsx)("span",{className:"symbol",children:"+"}),(0,l.jsx)("span",{children:"Add New Field"})]}),(0,l.jsx)("div",{className:"button outlined light-gray",onClick:a=>{if(!h)return;let t=(0,T.A)({paradigm:"JavaScript",table:h,query:y,user:e});t&&navigator.clipboard.writeText(t).then(()=>{window.alert("JavaScript Type Definition Copied")})},children:(0,l.jsx)("span",{children:"Copy TypeDef (JS)"})}),(0,l.jsx)("div",{className:"button outlined light-gray",onClick:a=>{if(!h)return;let t=(0,T.A)({paradigm:"TypeScript",table:h,query:y,user:e});t&&navigator.clipboard.writeText(t).then(()=>{window.alert("TypeScript Type Definition Copied")})},children:(0,l.jsx)("span",{children:"Copy TypeDef (TS)"})})]})]}),(0,l.jsxs)("div",{className:"flex-col w-full",style:D?{maxHeight:"200px"}:{},children:[a&&a[0]&&a.map((i,n)=>(_++,i.newTempField)?(0,l.jsx)(f,{fieldIndex:n,tableFields:a,setTableFields:t,refreshFieldsListRef:o,database:p,currentTable:h,user:e},_):(0,l.jsx)(b,{field:i,fieldIndex:n,setTargetField:s,setTableFields:t,refreshFieldsListRef:o,tableFields:a,database:p,currentTable:h,confirmedDelegetedUser:g,user:e},_)),(!v||v&&j)&&!w&&!F&&(0,l.jsxs)(i().Fragment,{children:[(0,l.jsxs)("div",{className:"button outlined gray w-full more-padding",style:{borderStyle:"dashed"},onClick:e=>{D&&V(!1),n({setTableFields:t,tableFields:a,setRefresh:C,refreshFieldsListRef:o})},children:[(0,l.jsx)("span",{className:"symbol",children:"+"}),(0,l.jsx)("span",{children:"Add New Field"})]}),c&&(0,l.jsx)("button",{className:"secondary w-full py-3",onClick:e=>{window.confirm("Update Table Fields?")&&(k(!0),u&&u(k))},children:"Update Table Fields"})]})]}),x&&(0,l.jsx)(r.A,{collapse:D,setCollapse:V})]})]})}},93763:(e,a,t)=>{t.d(a,{A:()=>o});var l=t(8732),s=t(82015),i=t.n(s),n=t(46169),r=t(16757),d=t(2913);function o({targetField:e,setFieldData:a,tableFields:t,setTableFields:s,database:o,currentTable:c,user:u,setActiveEdit:m,activeClonedTable:x}){let[p,h]=i().useState(!!e?.foreignKey),[f,g]=i().useState(null),[y,v]=i().useState(null),[j,N]=i().useState(null),[w,b]=i().useState(null),[T,_]=i().useState(!1),[F,S]=i().useState("boolean"!=typeof e.foreignKey?.cascadeDelete||e.foreignKey.cascadeDelete),[C,A]=i().useState("boolean"==typeof e.foreignKey?.cascadeUpdate&&e.foreignKey.cascadeUpdate);return(0,l.jsxs)("div",{className:"flex flex-col items-start gap-2 w-full mt-2 relative",style:{minWidth:"70px"},children:[T&&(0,l.jsx)(r.A,{}),(0,l.jsxs)("label",{htmlFor:"foreign_key_field",className:"flex flex-wrap items-center gap-2 mt-2",children:[(0,l.jsx)("span",{children:"Foreign Key?"}),(0,l.jsxs)("div",{className:"dropdown-wrapper reversed text-sm items-start",children:[(0,l.jsx)("span",{className:"px-2 bg-slate-200 rounded-full hover:bg-slate-100 hidden xl:flex text-slate-600",children:"Info"}),(0,l.jsx)("div",{className:"dropdown mt-0 xl:-mt-2",children:(0,l.jsx)("span",{children:"Foriegn key links the current table to another table"})})]})]}),(0,l.jsxs)("select",{name:"foreign_key_field",id:"foreign_key_field",className:"px-2",defaultValue:e?.foreignKey?"Yes":"No",onChange:e=>{e.target.value.match(/yes/i)?(h(!0),a&&a(e=>(e.foreignKey={foreignKeyName:void 0,destinationTableName:void 0,destinationTableColumnName:void 0,cascadeDelete:!0},e))):(h(!1),a&&a(e=>(delete e.foreignKey,e)))},children:[(0,l.jsx)("option",{value:"No",children:"No"}),(0,l.jsx)("option",{value:"Yes",children:"Yes"})]}),p&&f&&(0,l.jsx)(i().Fragment,{children:(0,l.jsxs)("select",{name:"foreign_key_destination_table_name",id:"foreign_key_destination_table_name",className:"px-2",defaultValue:e?.foreignKey?.destinationTableName?e.foreignKey.destinationTableName:void 0,onChange:e=>{let t=e.target;if(e.target.value?.match(/--/)){a?a(e=>{let a=e.foreignKey;return a&&(a.destinationTableName=void 0),e}):t.dataset.destinationTableName=void 0;return}let l=f.filter(a=>a.tableName===e.target.value)[0];v(l),l?.fields&&N(l.fields),a?a(a=>{let t=a.foreignKey;return t&&(t.destinationTableName=e.target.value),a}):e.target.dataset.destinationTableName=e.target.value},children:[(0,l.jsx)("option",{value:"--",children:"--Select Table--"}),f.map((e,a)=>(0,l.jsx)("option",{value:e.tableName,children:e.tableFullName},a+1))]})}),y&&j&&(0,l.jsxs)(i().Fragment,{children:[(0,l.jsxs)("select",{name:"foreign_key_destination_table_column_name",id:"foreign_key_destination_table_column_name",className:"px-2",defaultValue:e?.foreignKey?.destinationTableColumnName?e.foreignKey.destinationTableColumnName:void 0,onChange:e=>{try{let t=j.filter(a=>a.fieldName===e.target.value)[0];if(b(t),e.target.value?.match(/--/)){a&&a(e=>{let a=e.foreignKey;return a&&(a.destinationTableColumnName=void 0),e});return}let l=`dsql_${o.user_id}_${o.db_slug}_${Date.now()}`;a?a(e=>{e.dataType=t.dataType;let a=e.foreignKey;return a&&(a.destinationTableColumnName=t.fieldName,a.destinationTableColumnType=t.dataType,a.foreignKeyName=l),e}):(e.target.dataset.dataType=t.dataType,e.target.dataset.destinationTableColumnName=t.fieldName,e.target.dataset.foreignKeyName=l)}catch(e){(0,n.A)("/api/admin/clientError",{method:"post",body:{component:"ForeignKey/lines-232-264",message:e.message,user:u}})}},children:[(0,l.jsx)("option",{value:"--",children:"--Select Column--"}),j.map((e,a)=>(0,l.jsx)("option",{value:e.fieldName,children:e.fieldName},a+1))]}),x&&w&&(0,l.jsx)("button",{className:"secondary w-full",onClick:e=>{_(!0),(0,n.A)("/api/updateClonedTableForeignKeys",{method:"post",body:{tableData:c,database:o.db_full_name,dbSlug:o.db_slug,delegated:!!window.location?.search?.match(/delegated=true/i)}},!0).then(e=>{e.success?window.alert("Foreign Key Added Successfully!"):window.alert("Update Failed, Please Try again."),setTimeout(()=>{m&&m(!1)},1e3)})},children:"Add Foreign Key"}),(0,l.jsx)(d.A,{checkBoxValues:[{title:"Cascade Delete",default:F,name:"cascade-delete",onChangeHandler:e=>{S(e.target.checked)}},{title:"Cascade Update",name:"cascade-update",default:C,onChangeHandler:e=>{A(e.target.checked)}}],smallText:!0})]}),x&&(0,l.jsx)("button",{className:"light-gray w-full",onClick:a=>{delete e.foreignKey,m&&m(!1)},children:"Cancel"})]})}},36138:(e,a,t)=>{t.d(a,{A:()=>s});var l=t(8732);function s({targetField:e}){return(0,l.jsxs)("div",{className:"flex flex-col items-start gap-0.5",style:{minWidth:"70px"},children:[(0,l.jsx)("label",{htmlFor:"rich_text_option",children:"Text Type"}),(0,l.jsxs)("select",{name:"rich_text_option",id:"rich_text_option",className:"px-2",onChange:a=>{switch(delete e.json,delete e.richText,delete e.yaml,delete e.html,delete e.javascript,delete e.shell,a.target.value){case"plain":break;case"rte":e.richText=!0;break;case"json":e.json=!0;break;case"yaml":e.yaml=!0;break;case"html":e.html=!0;break;case"css":e.css=!0;break;case"javascript":e.javascript=!0;break;case"shell":e.shell=!0}},defaultValue:e.richText?"rte":e.json?"json":e.yaml?"yaml":e.html?"html":e.javascript?"javascript":e.shell?"shell":e.css?"css":"plain",children:[(0,l.jsx)("option",{value:"plain",children:"Plain Text"}),(0,l.jsx)("option",{value:"rte",children:"Rich Text"}),(0,l.jsx)("option",{value:"json",children:"JSON"}),(0,l.jsx)("option",{value:"yaml",children:"YAML"}),(0,l.jsx)("option",{value:"html",children:"HTML"}),(0,l.jsx)("option",{value:"css",children:"CSS"}),(0,l.jsx)("option",{value:"javascript",children:"Javascript"}),(0,l.jsx)("option",{value:"shell",children:"Shell"})]})]})}t(82015)},60424:(e,a,t)=>{t.d(a,{A:()=>s});var l=t(42960);function s({paradigm:e,table:a,query:t,user:s}){let i="";try{let s=`DSQL_${t.single}_${t.single_table}`.toUpperCase(),r=a.fields;function n(e){return e?.match(/int/i)?"number":(e?.match(/text|varchar|timestamp/i),"string")}let d=[],o=[];d.push(`type ${s} = {`),o.push(`/** * @typedef {object} ${s}`),r.forEach(e=>{let a=e.nullValue?"?":e.fieldName?.match(l.A)?"?":"";d.push(` ${e.fieldName}${a}: ${n(e.dataType||"")};`),o.push(` * @property {${n(e.dataType||"")}${a}} ${e.fieldName}`)}),d.push("}"),o.push(" */"),e?.match(/javascript/i)&&(i=o.join("\n")),e?.match(/typescript/i)&&(i=d.join("\n"))}catch(e){console.log(e.message),i=null}return i}},2913:(e,a,t)=>{t.d(a,{A:()=>s});var l=t(8732);function s({name:e,checkBoxValues:a,setAlert:t,labelColor:s,flexRow:i,baseText:n,smallText:r,className:d}){return(0,l.jsx)("div",{className:"flex items-start gap-x-4"+(i?" flex-row flex-wrap gap-y-2 ":" flex-col gap-y-4 ")+(d||""),children:a.map((a,i)=>{let{payload:d,title:o,onChangeHandler:c,fixed:u,jsx:m}=a,x=a.name?`${e}-${a.name}`:d?e+"-"+d:e;return(0,l.jsxs)("div",{className:"flex items-center"+(a.default&&u?" pointer-events-none":"")+(r?" gap-1 ":" gap-2 ")+(a?.className?a.className:""),children:[(0,l.jsx)("input",{className:"m-0"+(r?" w-4 h-4":" w-5 h-5"),type:"checkbox",defaultChecked:!!a.default,name:x,id:x,onChange:e=>{t&&t(null),c&&c(e,a)},value:d,style:{minWidth:"20px"},...a.props}),m||(0,l.jsx)("label",{htmlFor:x,className:"m-0 "+(s||"text-slate-800 dark:text-white/80")+(n||r?" text-base":" text-lg"),children:o})]},i+1)})})}t(82015)},51339:(e,a,t)=>{t.d(a,{A:()=>s});var l=t(8732);function s({collapse:e,setCollapse:a}){return(0,l.jsxs)("div",{className:"collapse-block"+(e?" -mt-16 -mb-6 pt-10":" mt-0 mb-0 p-0"),onClick:t=>{e?a(!1):a(!0)},children:[(0,l.jsx)("span",{children:e?"Expand":"Collapse"}),(0,l.jsx)("img",{src:"/images/down-arrow-dark.svg",alt:"Down Arrow",width:16,className:"dark:hidden opacity-30 "+(e?"":"rotate-180")}),(0,l.jsx)("img",{src:"/images/down-arrow-white.svg",alt:"Down Arrow",width:16,className:"opacity-30 hidden dark:flex "+(e?"":"rotate-180")})]})}t(82015)},84483:(e,a,t)=>{t.d(a,{A:()=>s});var l=t(8732);function s({children:e,open:a,setOpen:t,onClose:s,maxWidth:i}){return(0,l.jsx)(l.Fragment,{})}t(82015),t(1976),t(58150)},42960:(e,a,t)=>{t.d(a,{A:()=>l});let l=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/},72272:(e,a,t)=>{t.d(a,{A:()=>d});var l=t(77047),s=t(29021),i=t.n(s),n=t(33873),r=t.n(n);function d({userId:e}){try{let a=r().resolve(process.cwd(),`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${e}/main.json`);return JSON.parse(i().readFileSync(a,"utf-8"))}catch(e){return(0,l.A)({component:"grabUserSchemaData",message:e.message}),null}}},77047:(e,a,t)=>{t.d(a,{A:()=>i});var l=t(29021),s=t.n(l);async function i({user:e,message:a,component:t,noMail:l,req:i}){let n=new Date,r=(()=>{if(!i)return null;try{let e=i.headers["x-forwarded-for"],a=i.headers["x-real-ip"],t=i.headers["cf-connecting-ip"],l=Array.isArray(e)?e[0]:e?.split(",")[0],s=t||l||a||i.socket.remoteAddress;if(!s)return null;return String(s)}catch(e){return null}})();try{let l=`🚀 SERVER ERROR =========================== Error Message: ${a} Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(l+=` diff --git a/dsql-app/.local_dist/server/middleware-build-manifest.js b/dsql-app/.local_dist/server/middleware-build-manifest.js index 4b40577..7e9cf83 100644 --- a/dsql-app/.local_dist/server/middleware-build-manifest.js +++ b/dsql-app/.local_dist/server/middleware-build-manifest.js @@ -1 +1 @@ -self.__BUILD_MANIFEST={polyfillFiles:["static/chunks/polyfills-42372ed130431b0a.js"],devFiles:[],ampDevFiles:[],lowPriorityFiles:[],rootMainFiles:[],rootMainFilesTree:{},pages:{"/":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/3298-73758aefe44233a6.js","static/css/60c48dd4b3301227.css","static/chunks/pages/index-d8f75819eb449ffc.js"],"/404":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/pages/404-386ef30594132ecb.js"],"/500":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/pages/500-81f6b715960091f2.js"],"/_app":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/css/40a7197d287e4ac0.css","static/chunks/pages/_app-f20525907c2f070a.js"],"/_error":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/pages/_error-133b121cd6670ef3.js"],"/about":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/3298-73758aefe44233a6.js","static/chunks/pages/about-69331c972566352a.js"],"/admin":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/7391-b72414be460cf0f0.js","static/chunks/9950-e6be92fc61deb6e3.js","static/chunks/pages/admin-eaa52fa698c19034.js"],"/admin/[user_id]":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/7391-b72414be460cf0f0.js","static/chunks/9950-e6be92fc61deb6e3.js","static/chunks/pages/admin/[user_id]-61bef31d3a4e9e7a.js"],"/admin/[user_id]/api-keys":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/7391-b72414be460cf0f0.js","static/chunks/pages/admin/[user_id]/api-keys-2c8109e5388827d9.js"],"/admin/[user_id]/connect":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/7391-b72414be460cf0f0.js","static/chunks/pages/admin/[user_id]/connect-40047d3fd5229513.js"],"/admin/[user_id]/databases":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/7391-b72414be460cf0f0.js","static/chunks/9950-e6be92fc61deb6e3.js","static/chunks/pages/admin/[user_id]/databases-23779acb61fbe51a.js"],"/admin/[user_id]/databases/[single]":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/6428-c106bf6efb539d8c.js","static/chunks/7391-b72414be460cf0f0.js","static/chunks/8076-c34ce8d8512255e7.js","static/chunks/2438-aa7e9f2130cd81f0.js","static/chunks/pages/admin/[user_id]/databases/[single]-05dbbed42a310967.js"],"/admin/[user_id]/databases/[single]/connect":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/6428-c106bf6efb539d8c.js","static/chunks/7391-b72414be460cf0f0.js","static/chunks/8076-c34ce8d8512255e7.js","static/chunks/9268-6ca91a807cecf2b4.js","static/chunks/pages/admin/[user_id]/databases/[single]/connect-3a065ea39acafd03.js"],"/admin/[user_id]/databases/[single]/edit-database":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/6428-c106bf6efb539d8c.js","static/chunks/8261-3c3582fc434ee275.js","static/chunks/7391-b72414be460cf0f0.js","static/chunks/8076-c34ce8d8512255e7.js","static/chunks/3867-6732c13e333b30b2.js","static/chunks/pages/admin/[user_id]/databases/[single]/edit-database-1f2bf0df5f51fa43.js"],"/admin/[user_id]/databases/[single]/schema":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/6428-c106bf6efb539d8c.js","static/chunks/7391-b72414be460cf0f0.js","static/chunks/8076-c34ce8d8512255e7.js","static/chunks/2438-aa7e9f2130cd81f0.js","static/chunks/pages/admin/[user_id]/databases/[single]/schema-8b9d66b8d3cb2a1a.js"],"/admin/[user_id]/databases/[single]/shell":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/6428-c106bf6efb539d8c.js","static/chunks/7391-b72414be460cf0f0.js","static/chunks/8076-c34ce8d8512255e7.js","static/chunks/pages/admin/[user_id]/databases/[single]/shell-dff01c9e4cff1d7e.js"],"/admin/[user_id]/databases/[single]/tables":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/6428-c106bf6efb539d8c.js","static/chunks/7391-b72414be460cf0f0.js","static/chunks/8076-c34ce8d8512255e7.js","static/chunks/2438-aa7e9f2130cd81f0.js","static/chunks/pages/admin/[user_id]/databases/[single]/tables-48fec207563f61d7.js"],"/admin/[user_id]/databases/[single]/tables/[single_table]":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/94726e6d-33de6887e71ace1a.js","static/chunks/6428-c106bf6efb539d8c.js","static/chunks/9660-628b42bc1127aefa.js","static/chunks/6460-ab4ab8caec784ffc.js","static/chunks/2829-608af754738e12fc.js","static/chunks/7391-b72414be460cf0f0.js","static/chunks/8076-c34ce8d8512255e7.js","static/chunks/9268-6ca91a807cecf2b4.js","static/chunks/2438-aa7e9f2130cd81f0.js","static/chunks/8311-ae577d4bb030d416.js","static/chunks/1580-68f706d212c5eb63.js","static/chunks/6830-80ccce098977dfd6.js","static/chunks/4403-fc19b6af6ca4b3fe.js","static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]-f34ee3fd9517cd2c.js"],"/admin/[user_id]/databases/[single]/tables/[single_table]/edit-table":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/94726e6d-33de6887e71ace1a.js","static/chunks/6428-c106bf6efb539d8c.js","static/chunks/6460-ab4ab8caec784ffc.js","static/chunks/7391-b72414be460cf0f0.js","static/chunks/8076-c34ce8d8512255e7.js","static/chunks/9268-6ca91a807cecf2b4.js","static/chunks/2438-aa7e9f2130cd81f0.js","static/chunks/8311-ae577d4bb030d416.js","static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]/edit-table-38aa98661e043781.js"],"/admin/[user_id]/databases/[single]/tables/[single_table]/entries":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/6428-c106bf6efb539d8c.js","static/chunks/9660-628b42bc1127aefa.js","static/chunks/2829-608af754738e12fc.js","static/chunks/7391-b72414be460cf0f0.js","static/chunks/8076-c34ce8d8512255e7.js","static/chunks/9268-6ca91a807cecf2b4.js","static/chunks/2438-aa7e9f2130cd81f0.js","static/chunks/1580-68f706d212c5eb63.js","static/chunks/6830-80ccce098977dfd6.js","static/chunks/4403-fc19b6af6ca4b3fe.js","static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries-e611979837269e2d.js"],"/admin/[user_id]/databases/[single]/tables/[single_table]/entries/[single_entry]":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/6428-c106bf6efb539d8c.js","static/chunks/9660-628b42bc1127aefa.js","static/chunks/2829-608af754738e12fc.js","static/chunks/7391-b72414be460cf0f0.js","static/chunks/8076-c34ce8d8512255e7.js","static/chunks/1580-68f706d212c5eb63.js","static/chunks/6830-80ccce098977dfd6.js","static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/[single_entry]-7bbd383a24ee015d.js"],"/admin/[user_id]/databases/[single]/tables/[single_table]/entries/add-entry":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/6428-c106bf6efb539d8c.js","static/chunks/9660-628b42bc1127aefa.js","static/chunks/7287-dadce6acb3d43d67.js","static/chunks/7391-b72414be460cf0f0.js","static/chunks/8076-c34ce8d8512255e7.js","static/chunks/2438-aa7e9f2130cd81f0.js","static/chunks/1580-68f706d212c5eb63.js","static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/add-entry-e609e60d52830241.js"],"/admin/[user_id]/databases/[single]/tables/[single_table]/fields":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/94726e6d-33de6887e71ace1a.js","static/chunks/6428-c106bf6efb539d8c.js","static/chunks/6460-ab4ab8caec784ffc.js","static/chunks/7391-b72414be460cf0f0.js","static/chunks/8076-c34ce8d8512255e7.js","static/chunks/9268-6ca91a807cecf2b4.js","static/chunks/2438-aa7e9f2130cd81f0.js","static/chunks/8311-ae577d4bb030d416.js","static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]/fields-ab177e1e5adacaef.js"],"/admin/[user_id]/databases/[single]/tables/add-table":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/94726e6d-33de6887e71ace1a.js","static/chunks/6428-c106bf6efb539d8c.js","static/chunks/6460-ab4ab8caec784ffc.js","static/chunks/7391-b72414be460cf0f0.js","static/chunks/8076-c34ce8d8512255e7.js","static/chunks/9268-6ca91a807cecf2b4.js","static/chunks/8311-ae577d4bb030d416.js","static/chunks/pages/admin/[user_id]/databases/[single]/tables/add-table-e39fba476a9e1ad8.js"],"/admin/[user_id]/databases/[single]/users":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/6428-c106bf6efb539d8c.js","static/chunks/7391-b72414be460cf0f0.js","static/chunks/8076-c34ce8d8512255e7.js","static/chunks/2438-aa7e9f2130cd81f0.js","static/chunks/6383-02bec644b1a9f0a8.js","static/chunks/pages/admin/[user_id]/databases/[single]/users-5b8dd72d94432cb8.js"],"/admin/[user_id]/databases/[single]/users/[user]":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/6428-c106bf6efb539d8c.js","static/chunks/8261-3c3582fc434ee275.js","static/chunks/7391-b72414be460cf0f0.js","static/chunks/8076-c34ce8d8512255e7.js","static/chunks/pages/admin/[user_id]/databases/[single]/users/[user]-f062b4d0b80557a7.js"],"/admin/[user_id]/databases/[single]/users/[user]/change-password":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/6428-c106bf6efb539d8c.js","static/chunks/7391-b72414be460cf0f0.js","static/chunks/8076-c34ce8d8512255e7.js","static/chunks/pages/admin/[user_id]/databases/[single]/users/[user]/change-password-5c6ae113aee79d1d.js"],"/admin/[user_id]/databases/[single]/users/add-social-logins":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/6428-c106bf6efb539d8c.js","static/chunks/7391-b72414be460cf0f0.js","static/chunks/8076-c34ce8d8512255e7.js","static/chunks/pages/admin/[user_id]/databases/[single]/users/add-social-logins-dcc54bfad6c4818a.js"],"/admin/[user_id]/databases/[single]/users/add-user":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/6428-c106bf6efb539d8c.js","static/chunks/8261-3c3582fc434ee275.js","static/chunks/7391-b72414be460cf0f0.js","static/chunks/8076-c34ce8d8512255e7.js","static/chunks/9268-6ca91a807cecf2b4.js","static/chunks/pages/admin/[user_id]/databases/[single]/users/add-user-6d9f5bb6c681b082.js"],"/admin/[user_id]/databases/add-database":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/8261-3c3582fc434ee275.js","static/chunks/7391-b72414be460cf0f0.js","static/chunks/3867-6732c13e333b30b2.js","static/chunks/pages/admin/[user_id]/databases/add-database-276c7177adf6be55.js"],"/admin/[user_id]/media":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/8261-3c3582fc434ee275.js","static/chunks/7391-b72414be460cf0f0.js","static/chunks/2480-c3f2e7fac796ce00.js","static/chunks/pages/admin/[user_id]/media-29e4886d0c31d5c3.js"],"/admin/[user_id]/media/[...folder]":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/8261-3c3582fc434ee275.js","static/chunks/7391-b72414be460cf0f0.js","static/chunks/2480-c3f2e7fac796ce00.js","static/chunks/pages/admin/[user_id]/media/[...folder]-c8df7e4d1118eb40.js"],"/admin/[user_id]/schema":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/6428-c106bf6efb539d8c.js","static/chunks/7391-b72414be460cf0f0.js","static/chunks/pages/admin/[user_id]/schema-2ab99d8d3c163b57.js"],"/admin/[user_id]/settings":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/8261-3c3582fc434ee275.js","static/chunks/7391-b72414be460cf0f0.js","static/chunks/6999-765fb1dc8daf2756.js","static/chunks/4060-34ac8bf5371932b9.js","static/chunks/pages/admin/[user_id]/settings-203cb6b64dc51850.js"],"/admin/[user_id]/users":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/7391-b72414be460cf0f0.js","static/chunks/6383-02bec644b1a9f0a8.js","static/chunks/pages/admin/[user_id]/users-52b7048018746ac0.js"],"/admin/[user_id]/users/add-user":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/7391-b72414be460cf0f0.js","static/chunks/pages/admin/[user_id]/users/add-user-2423cd3e4b75b0ee.js"],"/admin/[user_id]/users/databases":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/7391-b72414be460cf0f0.js","static/chunks/6383-02bec644b1a9f0a8.js","static/chunks/pages/admin/[user_id]/users/databases-ef511feca7c10b56.js"],"/admin/[user_id]/users/databases/[database]":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/7391-b72414be460cf0f0.js","static/chunks/6383-02bec644b1a9f0a8.js","static/chunks/pages/admin/[user_id]/users/databases/[database]-76e13995132a5d19.js"],"/admin/[user_id]/users/databases/[database]/[user]":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/8261-3c3582fc434ee275.js","static/chunks/7391-b72414be460cf0f0.js","static/chunks/pages/admin/[user_id]/users/databases/[database]/[user]-096740ae36fd55b2.js"],"/blog":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/pages/blog-8c70d46c8352664e.js"],"/contact":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/pages/contact-f2a4f3c2e97b25fb.js"],"/create-account":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/6999-765fb1dc8daf2756.js","static/chunks/4060-34ac8bf5371932b9.js","static/chunks/pages/create-account-59f89a25241640f4.js"],"/docs":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/pages/docs-354599f34e0b3ced.js"],"/docs/[page]":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/pages/docs/[page]-2cdf66e0a0a6fd83.js"],"/docs/[page]/[sub-page]":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/pages/docs/[page]/[sub-page]-380f5cc7ef3513d4.js"],"/email-verification":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/pages/email-verification-fec9fecfdcb56e8d.js"],"/login":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/6999-765fb1dc8daf2756.js","static/chunks/pages/login-f10f3645e54e61fd.js"],"/logout":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/pages/logout-455304f72b658ce6.js"],"/privacy":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/pages/privacy-3a1d5e267140271e.js"],"/redirect":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/pages/redirect-28627072d73850c2.js"],"/reset-password":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/pages/reset-password-404836a50d6e9e32.js"],"/send-password-reset-link":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/pages/send-password-reset-link-01b2509dfe7be8b2.js"],"/su":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/5810-7c3a3c4731750dc7.js","static/chunks/pages/su-56e8a64a3be59f73.js"],"/su/backups":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/5810-7c3a3c4731750dc7.js","static/chunks/pages/su/backups-033362c47c6541f4.js"],"/su/console":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/ed150ef9-468dbc55986083e4.js","static/chunks/2793-d85659f470ce8842.js","static/chunks/5810-7c3a3c4731750dc7.js","static/css/85fa6dafca566008.css","static/chunks/pages/su/console-c8b9bd49e5191033.js"],"/su/docs":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/5810-7c3a3c4731750dc7.js","static/chunks/6099-150cc189810f2bfd.js","static/chunks/pages/su/docs-49dc94fa2828f090.js"],"/su/docs/create-page":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/9660-628b42bc1127aefa.js","static/chunks/5810-7c3a3c4731750dc7.js","static/chunks/9268-6ca91a807cecf2b4.js","static/chunks/4261-1181ad7559234ce0.js","static/chunks/pages/su/docs/create-page-3b58b3bb388f340b.js"],"/su/docs/edit-page":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/9660-628b42bc1127aefa.js","static/chunks/5810-7c3a3c4731750dc7.js","static/chunks/9268-6ca91a807cecf2b4.js","static/chunks/4261-1181ad7559234ce0.js","static/chunks/pages/su/docs/edit-page-85a0ca0be5537063.js"],"/su/docs/pages":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/5810-7c3a3c4731750dc7.js","static/chunks/6099-150cc189810f2bfd.js","static/chunks/pages/su/docs/pages-2a88e2094d85ce52.js"],"/su/docs/pages/[id]":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/9660-628b42bc1127aefa.js","static/chunks/5810-7c3a3c4731750dc7.js","static/chunks/9268-6ca91a807cecf2b4.js","static/chunks/4261-1181ad7559234ce0.js","static/chunks/pages/su/docs/pages/[id]-4d39f3debc44f352.js"],"/su/envar":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/5810-7c3a3c4731750dc7.js","static/chunks/pages/su/envar-8c4d450d1932f9d6.js"],"/su/error-logs":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/5810-7c3a3c4731750dc7.js","static/chunks/pages/su/error-logs-d4ffbb81ddac6cec.js"],"/su/load-balancing":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/6428-c106bf6efb539d8c.js","static/chunks/5810-7c3a3c4731750dc7.js","static/chunks/pages/su/load-balancing-d0b790d61a50a4ef.js"],"/su/login":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/pages/su/login-218c9150552b8800.js"],"/su/servers":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/6428-c106bf6efb539d8c.js","static/chunks/5810-7c3a3c4731750dc7.js","static/chunks/pages/su/servers-d48477ad4489744d.js"],"/su/users":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/5810-7c3a3c4731750dc7.js","static/chunks/pages/su/users-519384d02df33446.js"],"/su/users/[single]":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/6428-c106bf6efb539d8c.js","static/chunks/5810-7c3a3c4731750dc7.js","static/chunks/pages/su/users/[single]-a95d897a2dad7f62.js"],"/su/users/new":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/5810-7c3a3c4731750dc7.js","static/chunks/pages/su/users/new-8a739402db28044b.js"],"/terms":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/pages/terms-37fb4519d728aa13.js"],"/unsubscribe":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/pages/unsubscribe-e6a608d5b8cea536.js"]},ampFirstPages:[]},self.__BUILD_MANIFEST.lowPriorityFiles=["/static/"+process.env.__NEXT_BUILD_ID+"/_buildManifest.js",,"/static/"+process.env.__NEXT_BUILD_ID+"/_ssgManifest.js"]; \ No newline at end of file +self.__BUILD_MANIFEST={polyfillFiles:["static/chunks/polyfills-42372ed130431b0a.js"],devFiles:[],ampDevFiles:[],lowPriorityFiles:[],rootMainFiles:[],rootMainFilesTree:{},pages:{"/":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/3298-73758aefe44233a6.js","static/css/60c48dd4b3301227.css","static/chunks/pages/index-d8f75819eb449ffc.js"],"/404":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/pages/404-386ef30594132ecb.js"],"/500":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/pages/500-81f6b715960091f2.js"],"/_app":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/css/40a7197d287e4ac0.css","static/chunks/pages/_app-f20525907c2f070a.js"],"/_error":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/pages/_error-133b121cd6670ef3.js"],"/about":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/3298-73758aefe44233a6.js","static/chunks/pages/about-69331c972566352a.js"],"/admin":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/7391-b72414be460cf0f0.js","static/chunks/9950-e6be92fc61deb6e3.js","static/chunks/pages/admin-eaa52fa698c19034.js"],"/admin/[user_id]":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/7391-b72414be460cf0f0.js","static/chunks/9950-e6be92fc61deb6e3.js","static/chunks/pages/admin/[user_id]-61bef31d3a4e9e7a.js"],"/admin/[user_id]/api-keys":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/7391-b72414be460cf0f0.js","static/chunks/pages/admin/[user_id]/api-keys-2c8109e5388827d9.js"],"/admin/[user_id]/connect":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/7391-b72414be460cf0f0.js","static/chunks/pages/admin/[user_id]/connect-40047d3fd5229513.js"],"/admin/[user_id]/databases":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/7391-b72414be460cf0f0.js","static/chunks/9950-e6be92fc61deb6e3.js","static/chunks/pages/admin/[user_id]/databases-23779acb61fbe51a.js"],"/admin/[user_id]/databases/[single]":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/6428-c106bf6efb539d8c.js","static/chunks/7391-b72414be460cf0f0.js","static/chunks/8076-c34ce8d8512255e7.js","static/chunks/2438-aa7e9f2130cd81f0.js","static/chunks/pages/admin/[user_id]/databases/[single]-05dbbed42a310967.js"],"/admin/[user_id]/databases/[single]/connect":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/6428-c106bf6efb539d8c.js","static/chunks/7391-b72414be460cf0f0.js","static/chunks/8076-c34ce8d8512255e7.js","static/chunks/9268-6ca91a807cecf2b4.js","static/chunks/pages/admin/[user_id]/databases/[single]/connect-3a065ea39acafd03.js"],"/admin/[user_id]/databases/[single]/edit-database":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/6428-c106bf6efb539d8c.js","static/chunks/8261-3c3582fc434ee275.js","static/chunks/7391-b72414be460cf0f0.js","static/chunks/8076-c34ce8d8512255e7.js","static/chunks/3867-14d00e04cb2d431b.js","static/chunks/pages/admin/[user_id]/databases/[single]/edit-database-1f2bf0df5f51fa43.js"],"/admin/[user_id]/databases/[single]/schema":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/6428-c106bf6efb539d8c.js","static/chunks/7391-b72414be460cf0f0.js","static/chunks/8076-c34ce8d8512255e7.js","static/chunks/2438-aa7e9f2130cd81f0.js","static/chunks/pages/admin/[user_id]/databases/[single]/schema-8b9d66b8d3cb2a1a.js"],"/admin/[user_id]/databases/[single]/shell":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/6428-c106bf6efb539d8c.js","static/chunks/7391-b72414be460cf0f0.js","static/chunks/8076-c34ce8d8512255e7.js","static/chunks/pages/admin/[user_id]/databases/[single]/shell-dff01c9e4cff1d7e.js"],"/admin/[user_id]/databases/[single]/tables":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/6428-c106bf6efb539d8c.js","static/chunks/7391-b72414be460cf0f0.js","static/chunks/8076-c34ce8d8512255e7.js","static/chunks/2438-aa7e9f2130cd81f0.js","static/chunks/pages/admin/[user_id]/databases/[single]/tables-48fec207563f61d7.js"],"/admin/[user_id]/databases/[single]/tables/[single_table]":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/94726e6d-33de6887e71ace1a.js","static/chunks/6428-c106bf6efb539d8c.js","static/chunks/9660-628b42bc1127aefa.js","static/chunks/6460-ab4ab8caec784ffc.js","static/chunks/2829-608af754738e12fc.js","static/chunks/7391-b72414be460cf0f0.js","static/chunks/8076-c34ce8d8512255e7.js","static/chunks/9268-6ca91a807cecf2b4.js","static/chunks/2438-aa7e9f2130cd81f0.js","static/chunks/8311-87e8d6ec01c2e05f.js","static/chunks/1580-68f706d212c5eb63.js","static/chunks/6830-80ccce098977dfd6.js","static/chunks/4403-dd72a46996d6c5f9.js","static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]-f34ee3fd9517cd2c.js"],"/admin/[user_id]/databases/[single]/tables/[single_table]/edit-table":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/94726e6d-33de6887e71ace1a.js","static/chunks/6428-c106bf6efb539d8c.js","static/chunks/6460-ab4ab8caec784ffc.js","static/chunks/7391-b72414be460cf0f0.js","static/chunks/8076-c34ce8d8512255e7.js","static/chunks/9268-6ca91a807cecf2b4.js","static/chunks/2438-aa7e9f2130cd81f0.js","static/chunks/8311-87e8d6ec01c2e05f.js","static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]/edit-table-38aa98661e043781.js"],"/admin/[user_id]/databases/[single]/tables/[single_table]/entries":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/6428-c106bf6efb539d8c.js","static/chunks/9660-628b42bc1127aefa.js","static/chunks/2829-608af754738e12fc.js","static/chunks/7391-b72414be460cf0f0.js","static/chunks/8076-c34ce8d8512255e7.js","static/chunks/9268-6ca91a807cecf2b4.js","static/chunks/2438-aa7e9f2130cd81f0.js","static/chunks/1580-68f706d212c5eb63.js","static/chunks/6830-80ccce098977dfd6.js","static/chunks/4403-dd72a46996d6c5f9.js","static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries-e611979837269e2d.js"],"/admin/[user_id]/databases/[single]/tables/[single_table]/entries/[single_entry]":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/6428-c106bf6efb539d8c.js","static/chunks/9660-628b42bc1127aefa.js","static/chunks/2829-608af754738e12fc.js","static/chunks/7391-b72414be460cf0f0.js","static/chunks/8076-c34ce8d8512255e7.js","static/chunks/1580-68f706d212c5eb63.js","static/chunks/6830-80ccce098977dfd6.js","static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/[single_entry]-7bbd383a24ee015d.js"],"/admin/[user_id]/databases/[single]/tables/[single_table]/entries/add-entry":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/6428-c106bf6efb539d8c.js","static/chunks/9660-628b42bc1127aefa.js","static/chunks/7287-dadce6acb3d43d67.js","static/chunks/7391-b72414be460cf0f0.js","static/chunks/8076-c34ce8d8512255e7.js","static/chunks/2438-aa7e9f2130cd81f0.js","static/chunks/1580-68f706d212c5eb63.js","static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/add-entry-e609e60d52830241.js"],"/admin/[user_id]/databases/[single]/tables/[single_table]/fields":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/94726e6d-33de6887e71ace1a.js","static/chunks/6428-c106bf6efb539d8c.js","static/chunks/6460-ab4ab8caec784ffc.js","static/chunks/7391-b72414be460cf0f0.js","static/chunks/8076-c34ce8d8512255e7.js","static/chunks/9268-6ca91a807cecf2b4.js","static/chunks/2438-aa7e9f2130cd81f0.js","static/chunks/8311-87e8d6ec01c2e05f.js","static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]/fields-ab177e1e5adacaef.js"],"/admin/[user_id]/databases/[single]/tables/add-table":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/94726e6d-33de6887e71ace1a.js","static/chunks/6428-c106bf6efb539d8c.js","static/chunks/6460-ab4ab8caec784ffc.js","static/chunks/7391-b72414be460cf0f0.js","static/chunks/8076-c34ce8d8512255e7.js","static/chunks/9268-6ca91a807cecf2b4.js","static/chunks/8311-87e8d6ec01c2e05f.js","static/chunks/pages/admin/[user_id]/databases/[single]/tables/add-table-e39fba476a9e1ad8.js"],"/admin/[user_id]/databases/[single]/users":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/6428-c106bf6efb539d8c.js","static/chunks/7391-b72414be460cf0f0.js","static/chunks/8076-c34ce8d8512255e7.js","static/chunks/2438-aa7e9f2130cd81f0.js","static/chunks/6383-02bec644b1a9f0a8.js","static/chunks/pages/admin/[user_id]/databases/[single]/users-5b8dd72d94432cb8.js"],"/admin/[user_id]/databases/[single]/users/[user]":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/6428-c106bf6efb539d8c.js","static/chunks/8261-3c3582fc434ee275.js","static/chunks/7391-b72414be460cf0f0.js","static/chunks/8076-c34ce8d8512255e7.js","static/chunks/pages/admin/[user_id]/databases/[single]/users/[user]-f062b4d0b80557a7.js"],"/admin/[user_id]/databases/[single]/users/[user]/change-password":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/6428-c106bf6efb539d8c.js","static/chunks/7391-b72414be460cf0f0.js","static/chunks/8076-c34ce8d8512255e7.js","static/chunks/pages/admin/[user_id]/databases/[single]/users/[user]/change-password-5c6ae113aee79d1d.js"],"/admin/[user_id]/databases/[single]/users/add-social-logins":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/6428-c106bf6efb539d8c.js","static/chunks/7391-b72414be460cf0f0.js","static/chunks/8076-c34ce8d8512255e7.js","static/chunks/pages/admin/[user_id]/databases/[single]/users/add-social-logins-dcc54bfad6c4818a.js"],"/admin/[user_id]/databases/[single]/users/add-user":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/6428-c106bf6efb539d8c.js","static/chunks/8261-3c3582fc434ee275.js","static/chunks/7391-b72414be460cf0f0.js","static/chunks/8076-c34ce8d8512255e7.js","static/chunks/9268-6ca91a807cecf2b4.js","static/chunks/pages/admin/[user_id]/databases/[single]/users/add-user-4954d7d1ed514dc9.js"],"/admin/[user_id]/databases/add-database":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/8261-3c3582fc434ee275.js","static/chunks/7391-b72414be460cf0f0.js","static/chunks/3867-14d00e04cb2d431b.js","static/chunks/pages/admin/[user_id]/databases/add-database-276c7177adf6be55.js"],"/admin/[user_id]/media":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/8261-3c3582fc434ee275.js","static/chunks/7391-b72414be460cf0f0.js","static/chunks/2480-c3f2e7fac796ce00.js","static/chunks/pages/admin/[user_id]/media-29e4886d0c31d5c3.js"],"/admin/[user_id]/media/[...folder]":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/8261-3c3582fc434ee275.js","static/chunks/7391-b72414be460cf0f0.js","static/chunks/2480-c3f2e7fac796ce00.js","static/chunks/pages/admin/[user_id]/media/[...folder]-c8df7e4d1118eb40.js"],"/admin/[user_id]/schema":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/6428-c106bf6efb539d8c.js","static/chunks/7391-b72414be460cf0f0.js","static/chunks/pages/admin/[user_id]/schema-2ab99d8d3c163b57.js"],"/admin/[user_id]/settings":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/8261-3c3582fc434ee275.js","static/chunks/7391-b72414be460cf0f0.js","static/chunks/6999-765fb1dc8daf2756.js","static/chunks/4060-34ac8bf5371932b9.js","static/chunks/pages/admin/[user_id]/settings-203cb6b64dc51850.js"],"/admin/[user_id]/users":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/7391-b72414be460cf0f0.js","static/chunks/6383-02bec644b1a9f0a8.js","static/chunks/pages/admin/[user_id]/users-52b7048018746ac0.js"],"/admin/[user_id]/users/add-user":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/7391-b72414be460cf0f0.js","static/chunks/pages/admin/[user_id]/users/add-user-2423cd3e4b75b0ee.js"],"/admin/[user_id]/users/databases":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/7391-b72414be460cf0f0.js","static/chunks/6383-02bec644b1a9f0a8.js","static/chunks/pages/admin/[user_id]/users/databases-ef511feca7c10b56.js"],"/admin/[user_id]/users/databases/[database]":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/7391-b72414be460cf0f0.js","static/chunks/6383-02bec644b1a9f0a8.js","static/chunks/pages/admin/[user_id]/users/databases/[database]-76e13995132a5d19.js"],"/admin/[user_id]/users/databases/[database]/[user]":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/8261-3c3582fc434ee275.js","static/chunks/7391-b72414be460cf0f0.js","static/chunks/pages/admin/[user_id]/users/databases/[database]/[user]-096740ae36fd55b2.js"],"/blog":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/pages/blog-8c70d46c8352664e.js"],"/contact":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/pages/contact-f2a4f3c2e97b25fb.js"],"/create-account":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/6999-765fb1dc8daf2756.js","static/chunks/4060-34ac8bf5371932b9.js","static/chunks/pages/create-account-59f89a25241640f4.js"],"/docs":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/pages/docs-354599f34e0b3ced.js"],"/docs/[page]":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/pages/docs/[page]-2cdf66e0a0a6fd83.js"],"/docs/[page]/[sub-page]":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/pages/docs/[page]/[sub-page]-380f5cc7ef3513d4.js"],"/email-verification":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/pages/email-verification-fec9fecfdcb56e8d.js"],"/login":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/6999-765fb1dc8daf2756.js","static/chunks/pages/login-f10f3645e54e61fd.js"],"/logout":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/pages/logout-455304f72b658ce6.js"],"/privacy":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/pages/privacy-3a1d5e267140271e.js"],"/redirect":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/pages/redirect-28627072d73850c2.js"],"/reset-password":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/pages/reset-password-404836a50d6e9e32.js"],"/send-password-reset-link":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/pages/send-password-reset-link-01b2509dfe7be8b2.js"],"/su":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/5810-7c3a3c4731750dc7.js","static/chunks/pages/su-56e8a64a3be59f73.js"],"/su/backups":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/5810-7c3a3c4731750dc7.js","static/chunks/pages/su/backups-033362c47c6541f4.js"],"/su/console":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/ed150ef9-468dbc55986083e4.js","static/chunks/2793-d85659f470ce8842.js","static/chunks/5810-7c3a3c4731750dc7.js","static/css/85fa6dafca566008.css","static/chunks/pages/su/console-c8b9bd49e5191033.js"],"/su/docs":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/5810-7c3a3c4731750dc7.js","static/chunks/6099-150cc189810f2bfd.js","static/chunks/pages/su/docs-49dc94fa2828f090.js"],"/su/docs/create-page":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/9660-628b42bc1127aefa.js","static/chunks/5810-7c3a3c4731750dc7.js","static/chunks/9268-6ca91a807cecf2b4.js","static/chunks/4261-1181ad7559234ce0.js","static/chunks/pages/su/docs/create-page-3b58b3bb388f340b.js"],"/su/docs/edit-page":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/9660-628b42bc1127aefa.js","static/chunks/5810-7c3a3c4731750dc7.js","static/chunks/9268-6ca91a807cecf2b4.js","static/chunks/4261-1181ad7559234ce0.js","static/chunks/pages/su/docs/edit-page-85a0ca0be5537063.js"],"/su/docs/pages":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/5810-7c3a3c4731750dc7.js","static/chunks/6099-150cc189810f2bfd.js","static/chunks/pages/su/docs/pages-2a88e2094d85ce52.js"],"/su/docs/pages/[id]":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/9660-628b42bc1127aefa.js","static/chunks/5810-7c3a3c4731750dc7.js","static/chunks/9268-6ca91a807cecf2b4.js","static/chunks/4261-1181ad7559234ce0.js","static/chunks/pages/su/docs/pages/[id]-4d39f3debc44f352.js"],"/su/envar":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/5810-7c3a3c4731750dc7.js","static/chunks/pages/su/envar-8c4d450d1932f9d6.js"],"/su/error-logs":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/5810-7c3a3c4731750dc7.js","static/chunks/pages/su/error-logs-d4ffbb81ddac6cec.js"],"/su/load-balancing":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/6428-c106bf6efb539d8c.js","static/chunks/5810-7c3a3c4731750dc7.js","static/chunks/pages/su/load-balancing-d0b790d61a50a4ef.js"],"/su/login":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/pages/su/login-218c9150552b8800.js"],"/su/servers":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/6428-c106bf6efb539d8c.js","static/chunks/5810-7c3a3c4731750dc7.js","static/chunks/pages/su/servers-d48477ad4489744d.js"],"/su/users":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/5810-7c3a3c4731750dc7.js","static/chunks/pages/su/users-519384d02df33446.js"],"/su/users/[single]":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/6428-c106bf6efb539d8c.js","static/chunks/5810-7c3a3c4731750dc7.js","static/chunks/pages/su/users/[single]-a95d897a2dad7f62.js"],"/su/users/new":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/5810-7c3a3c4731750dc7.js","static/chunks/pages/su/users/new-8a739402db28044b.js"],"/terms":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/pages/terms-37fb4519d728aa13.js"],"/unsubscribe":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/pages/unsubscribe-e6a608d5b8cea536.js"]},ampFirstPages:[]},self.__BUILD_MANIFEST.lowPriorityFiles=["/static/"+process.env.__NEXT_BUILD_ID+"/_buildManifest.js",,"/static/"+process.env.__NEXT_BUILD_ID+"/_ssgManifest.js"]; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages-manifest.json b/dsql-app/.local_dist/server/pages-manifest.json index e61b25c..7b5a8ee 100644 --- a/dsql-app/.local_dist/server/pages-manifest.json +++ b/dsql-app/.local_dist/server/pages-manifest.json @@ -1 +1 @@ -{"/_error":"pages/_error.js","/404":"pages/404.html","/_document":"pages/_document.js","/500":"pages/500.html","/api/acceptUserInvitation":"pages/api/acceptUserInvitation.js","/api/addAdminUserUser":"pages/api/addAdminUserUser.js","/api/addApiKey":"pages/api/addApiKey.js","/api/addDbUser":"pages/api/addDbUser.js","/api/addNewMediaFolder":"pages/api/addNewMediaFolder.js","/api/addSocialLogin":"pages/api/addSocialLogin.js","/api/addTableEntry":"pages/api/addTableEntry.js","/api/addUserTable":"pages/api/addUserTable.js","/api/addUserUser":"pages/api/addUserUser.js","/api/addUsersTableToDatabase":"pages/api/addUsersTableToDatabase.js","/api/admin/clearErrorLogs":"pages/api/admin/clearErrorLogs.js","/api/admin/addUserBackup":"pages/api/admin/addUserBackup.js","/api/admin/createNewBackup":"pages/api/admin/createNewBackup.js","/api/admin/clientError":"pages/api/admin/clientError.js","/api/admin/docs/[action]":"pages/api/admin/docs/[action].js","/api/admin/getTablesForUserDatabase":"pages/api/admin/getTablesForUserDatabase.js","/api/admin/getUserBackups":"pages/api/admin/getUserBackups.js","/api/admin/getUserData":"pages/api/admin/getUserData.js","/api/admin/grabBackups":"pages/api/admin/grabBackups.js","/api/admin/grabErrorLogs":"pages/api/admin/grabErrorLogs.js","/api/admin/grabFile":"pages/api/admin/grabFile.js","/api/admin/loginSuUser":"pages/api/admin/loginSuUser.js","/api/admin/runUserDbQuery":"pages/api/admin/runUserDbQuery.js","/api/admin/updateEnv":"pages/api/admin/updateEnv.js","/api/checkDuplicateData":"pages/api/checkDuplicateData.js","/api/changeDbUserPassword":"pages/api/changeDbUserPassword.js","/api/checkExistingFolder":"pages/api/checkExistingFolder.js","/api/clientSideAuth":"pages/api/clientSideAuth.js","/api/connect/disconnect":"pages/api/connect/disconnect.js","/api/connect/handshake":"pages/api/connect/handshake.js","/api/connect":"pages/api/connect.js","/api/connect/verify":"pages/api/connect/verify.js","/api/contact":"pages/api/contact.js","/api/deleteDbUser":"pages/api/deleteDbUser.js","/api/deleteApiKey":"pages/api/deleteApiKey.js","/api/createUserDatabase":"pages/api/createUserDatabase.js","/api/deleteInvitation":"pages/api/deleteInvitation.js","/api/deleteMediaFolder":"pages/api/deleteMediaFolder.js","/api/deleteTableEntry":"pages/api/deleteTableEntry.js","/api/deleteUser":"pages/api/deleteUser.js","/api/deleteUserDatabase":"pages/api/deleteUserDatabase.js","/api/deleteUserMedia":"pages/api/deleteUserMedia.js","/api/deleteUserTable":"pages/api/deleteUserTable.js","/api/downloadDatabaseSchema":"pages/api/downloadDatabaseSchema.js","/api/deleteUserUser":"pages/api/deleteUserUser.js","/api/exportDatabase":"pages/api/exportDatabase.js","/api/fetch-entries-basic":"pages/api/fetch-entries-basic.js","/api/get-authorized-databases":"pages/api/get-authorized-databases.js","/api/getDatabaseTables":"pages/api/getDatabaseTables.js","/api/getDelegatedDatabaseToken":"pages/api/getDelegatedDatabaseToken.js","/api/getDelegatedDatabases":"pages/api/getDelegatedDatabases.js","/api/getDiskUsage":"pages/api/getDiskUsage.js","/api/getUserDatabaseTables":"pages/api/getUserDatabaseTables.js","/api/getUserDatabases":"pages/api/getUserDatabases.js","/api/getUserMedia":"pages/api/getUserMedia.js","/api/getUserSchemaData":"pages/api/getUserSchemaData.js","/api/healthcheck":"pages/api/healthcheck.js","/api/importDatabase":"pages/api/importDatabase.js","/api/importDatabaseSchema":"pages/api/importDatabaseSchema.js","/api/infiniteScroll":"pages/api/infiniteScroll.js","/api/loginUser":"pages/api/loginUser.js","/api/logoutUser":"pages/api/logoutUser.js","/api/media/addPrivateMedia":"pages/api/media/addPrivateMedia.js","/api/media/getPrivateMedia":"pages/api/media/getPrivateMedia.js","/api/purgeDb":"pages/api/purgeDb.js","/api/query/[user_id]/get":"pages/api/query/[user_id]/get.js","/api/query/[user_id]/get-schema":"pages/api/query/[user_id]/get-schema.js","/api/query/[user_id]/update-schema-from-single-database":"pages/api/query/[user_id]/update-schema-from-single-database.js","/api/queryEntriesSearchTerm":"pages/api/queryEntriesSearchTerm.js","/api/reAuthenticateUser":"pages/api/reAuthenticateUser.js","/api/refreshEntry":"pages/api/refreshEntry.js","/api/renameMedia":"pages/api/renameMedia.js","/api/registerUser":"pages/api/registerUser.js","/api/resetDelegatedDatabaseToken":"pages/api/resetDelegatedDatabaseToken.js","/api/resetPassword":"pages/api/resetPassword.js","/api/runUserDbQuery":"pages/api/runUserDbQuery.js","/api/sendEmailVerificationLink":"pages/api/sendEmailVerificationLink.js","/api/sendPasswordResetLink":"pages/api/sendPasswordResetLink.js","/api/social-login/facebook-auth":"pages/api/social-login/facebook-auth.js","/api/social-login/github-auth":"pages/api/social-login/github-auth.js","/api/social-login/google-auth":"pages/api/social-login/google-auth.js","/api/social-login/utils/checkEmail":"pages/api/social-login/utils/checkEmail.js","/api/social-login/utils/checkSocialId":"pages/api/social-login/utils/checkSocialId.js","/api/social-login/utils/getEmailFromSocialId":"pages/api/social-login/utils/getEmailFromSocialId.js","/api/sql-users/create":"pages/api/sql-users/create.js","/api/sql-users/delete":"pages/api/sql-users/delete.js","/api/sql-users/update":"pages/api/sql-users/update.js","/api/stream/[path]":"pages/api/stream/[path].js","/api/sync-table-data":"pages/api/sync-table-data.js","/api/test/cors":"pages/api/test/cors.js","/api/test/mail":"pages/api/test/mail.js","/api/unsubscribe":"pages/api/unsubscribe.js","/api/updateAdminUserAccess":"pages/api/updateAdminUserAccess.js","/api/updateClonedTableForeignKeys":"pages/api/updateClonedTableForeignKeys.js","/api/updateDbSchemaDataForUser":"pages/api/updateDbSchemaDataForUser.js","/api/updateDbUser":"pages/api/updateDbUser.js","/api/updateTableEntry":"pages/api/updateTableEntry.js","/api/updateUserDatabase":"pages/api/updateUserDatabase.js","/api/updateUser":"pages/api/updateUser.js","/api/updateUserTable":"pages/api/updateUserTable.js","/api/updateUserUser":"pages/api/updateUserUser.js","/api/user-schema/replace-database-schema":"pages/api/user-schema/replace-database-schema.js","/api/user/[user_id]/add-user":"pages/api/user/[user_id]/add-user.js","/api/user/[user_id]/delete-user":"pages/api/user/[user_id]/delete-user.js","/api/user/[user_id]/get-user":"pages/api/user/[user_id]/get-user.js","/api/user/[user_id]/github-login":"pages/api/user/[user_id]/github-login.js","/api/user/[user_id]/google-login":"pages/api/user/[user_id]/google-login.js","/api/user/[user_id]/grab-google-user-from-token":"pages/api/user/[user_id]/grab-google-user-from-token.js","/api/user/[user_id]/login-user":"pages/api/user/[user_id]/login-user.js","/api/user/[user_id]/reauth-user":"pages/api/user/[user_id]/reauth-user.js","/api/user/[user_id]/send-email-code":"pages/api/user/[user_id]/send-email-code.js","/api/user/[user_id]/update-user":"pages/api/user/[user_id]/update-user.js","/api/webhooks/github-push":"pages/api/webhooks/github-push.js","/_app":"pages/_app.js","/about":"pages/about.html","/admin/[user_id]/api-keys":"pages/admin/[user_id]/api-keys.js","/admin/[user_id]/databases/[single]/edit-database":"pages/admin/[user_id]/databases/[single]/edit-database.js","/admin/[user_id]/connect":"pages/admin/[user_id]/connect.js","/admin/[user_id]/databases/[single]/connect":"pages/admin/[user_id]/databases/[single]/connect.js","/admin/[user_id]/databases/[single]/schema":"pages/admin/[user_id]/databases/[single]/schema.js","/admin/[user_id]/databases/[single]":"pages/admin/[user_id]/databases/[single].js","/admin/[user_id]/databases/[single]/tables/[single_table]/edit-table":"pages/admin/[user_id]/databases/[single]/tables/[single_table]/edit-table.js","/admin/[user_id]/databases/[single]/shell":"pages/admin/[user_id]/databases/[single]/shell.js","/admin/[user_id]/databases/[single]/tables/[single_table]/entries/add-entry":"pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/add-entry.js","/admin/[user_id]/databases/[single]/tables/[single_table]/entries":"pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries.js","/admin/[user_id]/databases/[single]/tables/[single_table]/entries/[single_entry]":"pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/[single_entry].js","/admin/[user_id]/databases/[single]/tables/[single_table]/fields":"pages/admin/[user_id]/databases/[single]/tables/[single_table]/fields.js","/admin/[user_id]/databases/[single]/users/[user]/change-password":"pages/admin/[user_id]/databases/[single]/users/[user]/change-password.js","/admin/[user_id]/databases/[single]/tables/add-table":"pages/admin/[user_id]/databases/[single]/tables/add-table.js","/admin/[user_id]/databases/[single]/tables/[single_table]":"pages/admin/[user_id]/databases/[single]/tables/[single_table].js","/admin/[user_id]/databases/[single]/tables":"pages/admin/[user_id]/databases/[single]/tables.js","/admin/[user_id]/databases/[single]/users/[user]":"pages/admin/[user_id]/databases/[single]/users/[user].js","/admin/[user_id]/databases/[single]/users/add-social-logins":"pages/admin/[user_id]/databases/[single]/users/add-social-logins.js","/admin/[user_id]/databases/add-database":"pages/admin/[user_id]/databases/add-database.js","/admin/[user_id]/databases/[single]/users":"pages/admin/[user_id]/databases/[single]/users.js","/admin/[user_id]/databases":"pages/admin/[user_id]/databases.js","/admin/[user_id]":"pages/admin/[user_id].js","/admin/[user_id]/databases/[single]/users/add-user":"pages/admin/[user_id]/databases/[single]/users/add-user.js","/admin/[user_id]/media/[...folder]":"pages/admin/[user_id]/media/[...folder].js","/admin/[user_id]/schema":"pages/admin/[user_id]/schema.js","/admin/[user_id]/media":"pages/admin/[user_id]/media.js","/admin/[user_id]/settings":"pages/admin/[user_id]/settings.js","/admin/[user_id]/users/add-user":"pages/admin/[user_id]/users/add-user.js","/admin/[user_id]/users/databases/[database]/[user]":"pages/admin/[user_id]/users/databases/[database]/[user].js","/admin/[user_id]/users/databases/[database]":"pages/admin/[user_id]/users/databases/[database].js","/admin/[user_id]/users/databases":"pages/admin/[user_id]/users/databases.js","/admin/[user_id]/users":"pages/admin/[user_id]/users.js","/admin":"pages/admin.js","/api/addUserMedia":"pages/api/addUserMedia.js","/api/exportTableData":"pages/api/exportTableData.js","/api/fetch-media":"pages/api/fetch-media.js","/api/query/[user_id]/add-file":"pages/api/query/[user_id]/add-file.js","/api/query/[user_id]/add-image":"pages/api/query/[user_id]/add-image.js","/api/query/[user_id]/get-private-file":"pages/api/query/[user_id]/get-private-file.js","/api/query/[user_id]/delete-file":"pages/api/query/[user_id]/delete-file.js","/api/query/[user_id]/post":"pages/api/query/[user_id]/post.js","/blog":"pages/blog.html","/contact":"pages/contact.html","/create-account":"pages/create-account.js","/docs/[page]/[sub-page]":"pages/docs/[page]/[sub-page].js","/docs":"pages/docs.js","/docs/[page]":"pages/docs/[page].js","/":"pages/index.html","/email-verification":"pages/email-verification.js","/login":"pages/login.js","/privacy":"pages/privacy.html","/redirect":"pages/redirect.html","/logout":"pages/logout.js","/su/backups":"pages/su/backups.js","/reset-password":"pages/reset-password.js","/send-password-reset-link":"pages/send-password-reset-link.js","/su/console":"pages/su/console.js","/su/docs/create-page":"pages/su/docs/create-page.js","/su/docs/edit-page":"pages/su/docs/edit-page.js","/su/docs":"pages/su/docs.js","/su/docs/pages/[id]":"pages/su/docs/pages/[id].js","/su/docs/pages":"pages/su/docs/pages.js","/su/envar":"pages/su/envar.js","/su/error-logs":"pages/su/error-logs.js","/su":"pages/su.js","/su/load-balancing":"pages/su/load-balancing.js","/su/login":"pages/su/login.js","/su/servers":"pages/su/servers.js","/su/users/[single]":"pages/su/users/[single].js","/su/users":"pages/su/users.js","/su/users/new":"pages/su/users/new.js","/terms":"pages/terms.html","/unsubscribe":"pages/unsubscribe.js"} \ No newline at end of file +{"/_error":"pages/_error.js","/404":"pages/404.html","/_document":"pages/_document.js","/500":"pages/500.html","/api/acceptUserInvitation":"pages/api/acceptUserInvitation.js","/api/addAdminUserUser":"pages/api/addAdminUserUser.js","/api/addApiKey":"pages/api/addApiKey.js","/api/addDbUser":"pages/api/addDbUser.js","/api/addNewMediaFolder":"pages/api/addNewMediaFolder.js","/api/addSocialLogin":"pages/api/addSocialLogin.js","/api/addTableEntry":"pages/api/addTableEntry.js","/api/addUsersTableToDatabase":"pages/api/addUsersTableToDatabase.js","/api/addUserUser":"pages/api/addUserUser.js","/api/addUserTable":"pages/api/addUserTable.js","/api/admin/addUserBackup":"pages/api/admin/addUserBackup.js","/api/admin/clearErrorLogs":"pages/api/admin/clearErrorLogs.js","/api/admin/clientError":"pages/api/admin/clientError.js","/api/admin/createNewBackup":"pages/api/admin/createNewBackup.js","/api/admin/docs/[action]":"pages/api/admin/docs/[action].js","/api/admin/getTablesForUserDatabase":"pages/api/admin/getTablesForUserDatabase.js","/api/admin/getUserBackups":"pages/api/admin/getUserBackups.js","/api/admin/getUserData":"pages/api/admin/getUserData.js","/api/admin/grabBackups":"pages/api/admin/grabBackups.js","/api/admin/grabErrorLogs":"pages/api/admin/grabErrorLogs.js","/api/admin/grabFile":"pages/api/admin/grabFile.js","/api/admin/loginSuUser":"pages/api/admin/loginSuUser.js","/api/admin/runUserDbQuery":"pages/api/admin/runUserDbQuery.js","/api/admin/updateEnv":"pages/api/admin/updateEnv.js","/api/changeDbUserPassword":"pages/api/changeDbUserPassword.js","/api/checkDuplicateData":"pages/api/checkDuplicateData.js","/api/checkExistingFolder":"pages/api/checkExistingFolder.js","/api/clientSideAuth":"pages/api/clientSideAuth.js","/api/connect/disconnect":"pages/api/connect/disconnect.js","/api/connect/handshake":"pages/api/connect/handshake.js","/api/connect":"pages/api/connect.js","/api/connect/verify":"pages/api/connect/verify.js","/api/contact":"pages/api/contact.js","/api/deleteApiKey":"pages/api/deleteApiKey.js","/api/createUserDatabase":"pages/api/createUserDatabase.js","/api/deleteDbUser":"pages/api/deleteDbUser.js","/api/deleteInvitation":"pages/api/deleteInvitation.js","/api/deleteMediaFolder":"pages/api/deleteMediaFolder.js","/api/deleteTableEntry":"pages/api/deleteTableEntry.js","/api/deleteUser":"pages/api/deleteUser.js","/api/deleteUserDatabase":"pages/api/deleteUserDatabase.js","/api/deleteUserMedia":"pages/api/deleteUserMedia.js","/api/deleteUserTable":"pages/api/deleteUserTable.js","/api/deleteUserUser":"pages/api/deleteUserUser.js","/api/downloadDatabaseSchema":"pages/api/downloadDatabaseSchema.js","/api/exportDatabase":"pages/api/exportDatabase.js","/api/fetch-entries-basic":"pages/api/fetch-entries-basic.js","/api/getDatabaseTables":"pages/api/getDatabaseTables.js","/api/get-authorized-databases":"pages/api/get-authorized-databases.js","/api/getDelegatedDatabaseToken":"pages/api/getDelegatedDatabaseToken.js","/api/getDelegatedDatabases":"pages/api/getDelegatedDatabases.js","/api/getDiskUsage":"pages/api/getDiskUsage.js","/api/getUserDatabaseTables":"pages/api/getUserDatabaseTables.js","/api/getUserDatabases":"pages/api/getUserDatabases.js","/api/getUserMedia":"pages/api/getUserMedia.js","/api/getUserSchemaData":"pages/api/getUserSchemaData.js","/api/healthcheck":"pages/api/healthcheck.js","/api/importDatabase":"pages/api/importDatabase.js","/api/importDatabaseSchema":"pages/api/importDatabaseSchema.js","/api/infiniteScroll":"pages/api/infiniteScroll.js","/api/logoutUser":"pages/api/logoutUser.js","/api/loginUser":"pages/api/loginUser.js","/api/media/addPrivateMedia":"pages/api/media/addPrivateMedia.js","/api/media/getPrivateMedia":"pages/api/media/getPrivateMedia.js","/api/purgeDb":"pages/api/purgeDb.js","/api/query/[user_id]/get-schema":"pages/api/query/[user_id]/get-schema.js","/api/query/[user_id]/get":"pages/api/query/[user_id]/get.js","/api/query/[user_id]/update-schema-from-single-database":"pages/api/query/[user_id]/update-schema-from-single-database.js","/api/queryEntriesSearchTerm":"pages/api/queryEntriesSearchTerm.js","/api/reAuthenticateUser":"pages/api/reAuthenticateUser.js","/api/refreshEntry":"pages/api/refreshEntry.js","/api/registerUser":"pages/api/registerUser.js","/api/renameMedia":"pages/api/renameMedia.js","/api/resetDelegatedDatabaseToken":"pages/api/resetDelegatedDatabaseToken.js","/api/resetPassword":"pages/api/resetPassword.js","/api/runUserDbQuery":"pages/api/runUserDbQuery.js","/api/sendEmailVerificationLink":"pages/api/sendEmailVerificationLink.js","/api/sendPasswordResetLink":"pages/api/sendPasswordResetLink.js","/api/social-login/facebook-auth":"pages/api/social-login/facebook-auth.js","/api/social-login/github-auth":"pages/api/social-login/github-auth.js","/api/social-login/google-auth":"pages/api/social-login/google-auth.js","/api/social-login/utils/checkEmail":"pages/api/social-login/utils/checkEmail.js","/api/social-login/utils/checkSocialId":"pages/api/social-login/utils/checkSocialId.js","/api/social-login/utils/getEmailFromSocialId":"pages/api/social-login/utils/getEmailFromSocialId.js","/api/sql-users/create":"pages/api/sql-users/create.js","/api/sql-users/delete":"pages/api/sql-users/delete.js","/api/sql-users/update":"pages/api/sql-users/update.js","/api/stream/[path]":"pages/api/stream/[path].js","/api/sync-table-data":"pages/api/sync-table-data.js","/api/test/cors":"pages/api/test/cors.js","/api/test/mail":"pages/api/test/mail.js","/api/unsubscribe":"pages/api/unsubscribe.js","/api/updateAdminUserAccess":"pages/api/updateAdminUserAccess.js","/api/updateClonedTableForeignKeys":"pages/api/updateClonedTableForeignKeys.js","/api/updateDbSchemaDataForUser":"pages/api/updateDbSchemaDataForUser.js","/api/updateDbUser":"pages/api/updateDbUser.js","/api/updateTableEntry":"pages/api/updateTableEntry.js","/api/updateUser":"pages/api/updateUser.js","/api/updateUserDatabase":"pages/api/updateUserDatabase.js","/api/updateUserUser":"pages/api/updateUserUser.js","/api/user/[user_id]/add-user":"pages/api/user/[user_id]/add-user.js","/api/user-schema/replace-database-schema":"pages/api/user-schema/replace-database-schema.js","/api/user/[user_id]/delete-user":"pages/api/user/[user_id]/delete-user.js","/api/user/[user_id]/get-user":"pages/api/user/[user_id]/get-user.js","/api/updateUserTable":"pages/api/updateUserTable.js","/api/user/[user_id]/github-login":"pages/api/user/[user_id]/github-login.js","/api/user/[user_id]/google-login":"pages/api/user/[user_id]/google-login.js","/api/user/[user_id]/grab-google-user-from-token":"pages/api/user/[user_id]/grab-google-user-from-token.js","/api/user/[user_id]/login-user":"pages/api/user/[user_id]/login-user.js","/api/user/[user_id]/reauth-user":"pages/api/user/[user_id]/reauth-user.js","/api/user/[user_id]/send-email-code":"pages/api/user/[user_id]/send-email-code.js","/api/user/[user_id]/update-user":"pages/api/user/[user_id]/update-user.js","/api/webhooks/github-push":"pages/api/webhooks/github-push.js","/_app":"pages/_app.js","/about":"pages/about.html","/admin/[user_id]/api-keys":"pages/admin/[user_id]/api-keys.js","/admin/[user_id]/connect":"pages/admin/[user_id]/connect.js","/admin/[user_id]/databases/[single]/edit-database":"pages/admin/[user_id]/databases/[single]/edit-database.js","/admin/[user_id]/databases/[single]/connect":"pages/admin/[user_id]/databases/[single]/connect.js","/admin/[user_id]/databases/[single]/schema":"pages/admin/[user_id]/databases/[single]/schema.js","/admin/[user_id]/databases/[single]":"pages/admin/[user_id]/databases/[single].js","/admin/[user_id]/databases/[single]/shell":"pages/admin/[user_id]/databases/[single]/shell.js","/admin/[user_id]/databases/[single]/tables/[single_table]/edit-table":"pages/admin/[user_id]/databases/[single]/tables/[single_table]/edit-table.js","/admin/[user_id]/databases/[single]/tables/[single_table]/entries/[single_entry]":"pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/[single_entry].js","/admin/[user_id]/databases/[single]/tables/[single_table]/entries/add-entry":"pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/add-entry.js","/admin/[user_id]/databases/[single]/tables/[single_table]/fields":"pages/admin/[user_id]/databases/[single]/tables/[single_table]/fields.js","/admin/[user_id]/databases/[single]/tables/[single_table]/entries":"pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries.js","/admin/[user_id]/databases/[single]/tables/[single_table]":"pages/admin/[user_id]/databases/[single]/tables/[single_table].js","/admin/[user_id]/databases/[single]/tables/add-table":"pages/admin/[user_id]/databases/[single]/tables/add-table.js","/admin/[user_id]/databases/[single]/users/[user]/change-password":"pages/admin/[user_id]/databases/[single]/users/[user]/change-password.js","/admin/[user_id]/databases/[single]/tables":"pages/admin/[user_id]/databases/[single]/tables.js","/admin/[user_id]/databases/[single]/users/add-social-logins":"pages/admin/[user_id]/databases/[single]/users/add-social-logins.js","/admin/[user_id]/databases/[single]/users/[user]":"pages/admin/[user_id]/databases/[single]/users/[user].js","/admin/[user_id]/databases/[single]/users":"pages/admin/[user_id]/databases/[single]/users.js","/admin/[user_id]/databases/[single]/users/add-user":"pages/admin/[user_id]/databases/[single]/users/add-user.js","/admin/[user_id]/databases/add-database":"pages/admin/[user_id]/databases/add-database.js","/admin/[user_id]/databases":"pages/admin/[user_id]/databases.js","/admin/[user_id]":"pages/admin/[user_id].js","/admin/[user_id]/media/[...folder]":"pages/admin/[user_id]/media/[...folder].js","/admin/[user_id]/media":"pages/admin/[user_id]/media.js","/admin/[user_id]/schema":"pages/admin/[user_id]/schema.js","/admin/[user_id]/settings":"pages/admin/[user_id]/settings.js","/admin/[user_id]/users/databases/[database]/[user]":"pages/admin/[user_id]/users/databases/[database]/[user].js","/admin/[user_id]/users/add-user":"pages/admin/[user_id]/users/add-user.js","/admin/[user_id]/users/databases/[database]":"pages/admin/[user_id]/users/databases/[database].js","/admin/[user_id]/users/databases":"pages/admin/[user_id]/users/databases.js","/admin/[user_id]/users":"pages/admin/[user_id]/users.js","/admin":"pages/admin.js","/api/addUserMedia":"pages/api/addUserMedia.js","/api/exportTableData":"pages/api/exportTableData.js","/api/fetch-media":"pages/api/fetch-media.js","/api/query/[user_id]/add-file":"pages/api/query/[user_id]/add-file.js","/api/query/[user_id]/add-image":"pages/api/query/[user_id]/add-image.js","/api/query/[user_id]/get-private-file":"pages/api/query/[user_id]/get-private-file.js","/api/query/[user_id]/delete-file":"pages/api/query/[user_id]/delete-file.js","/api/query/[user_id]/post":"pages/api/query/[user_id]/post.js","/blog":"pages/blog.html","/contact":"pages/contact.html","/create-account":"pages/create-account.js","/docs/[page]/[sub-page]":"pages/docs/[page]/[sub-page].js","/docs":"pages/docs.js","/docs/[page]":"pages/docs/[page].js","/":"pages/index.html","/email-verification":"pages/email-verification.js","/logout":"pages/logout.js","/login":"pages/login.js","/privacy":"pages/privacy.html","/redirect":"pages/redirect.html","/send-password-reset-link":"pages/send-password-reset-link.js","/su/console":"pages/su/console.js","/reset-password":"pages/reset-password.js","/su/backups":"pages/su/backups.js","/su/docs/create-page":"pages/su/docs/create-page.js","/su/docs/edit-page":"pages/su/docs/edit-page.js","/su/docs/pages/[id]":"pages/su/docs/pages/[id].js","/su/docs":"pages/su/docs.js","/su/envar":"pages/su/envar.js","/su/docs/pages":"pages/su/docs/pages.js","/su/error-logs":"pages/su/error-logs.js","/su":"pages/su.js","/su/load-balancing":"pages/su/load-balancing.js","/su/servers":"pages/su/servers.js","/su/login":"pages/su/login.js","/su/users/[single]":"pages/su/users/[single].js","/su/users":"pages/su/users.js","/su/users/new":"pages/su/users/new.js","/terms":"pages/terms.html","/unsubscribe":"pages/unsubscribe.js"} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/404.html b/dsql-app/.local_dist/server/pages/404.html index 31632dc..72fc552 100644 --- a/dsql-app/.local_dist/server/pages/404.html +++ b/dsql-app/.local_dist/server/pages/404.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/500.html b/dsql-app/.local_dist/server/pages/500.html index d11cb7d..514c51d 100644 --- a/dsql-app/.local_dist/server/pages/500.html +++ b/dsql-app/.local_dist/server/pages/500.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/about.html b/dsql-app/.local_dist/server/pages/about.html index 16f13fa..43d22b3 100644 --- a/dsql-app/.local_dist/server/pages/about.html +++ b/dsql-app/.local_dist/server/pages/about.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/[single_entry].js b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/[single_entry].js index d3c44f8..885a06d 100644 --- a/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/[single_entry].js +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/[single_entry].js @@ -14,4 +14,4 @@ Date: ${i.toDateString()} -${d}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},51325:(e,t,a)=>{a.a(e,async(e,r)=>{try{a.r(t),a.d(t,{SingleEntryContext:()=>f,default:()=>g,getServerSideProps:()=>b});var s=a(8732),l=a(82015),i=a.n(l),n=a(92702),d=a(25562),c=a(55880),o=a(52854),u=a(15),p=a(22873),m=a(77047),h=a(71934),y=a(43363),x=e([c,u]);[c,u]=x.then?(await x)():x;let A=a(29021),f=i().createContext({});function g({user:e,database:t,table:a,dbSchemaData:r,entry:l,query:n,confirmedDelegetedUser:o,prevEntry:p,nextEntry:m}){let h=`${a.tableFullName} Table | Datasquirel`,x=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("title",{children:h}),(0,s.jsx)("meta",{name:"description",content:"Single Table"})]}),[g,b]=i().useState(l),A=i().useRef([]),v=i().useRef([]);return(0,s.jsx)(d.A,{head:x,user:e,extraHeaderContent:(0,s.jsx)(c.A,{database:t,query:n,confirmedDelegetedUser:o,user:e}),aceEditor:!0,children:(0,s.jsxs)(f.Provider,{value:{user:e,database:t,table:a,dbSchemaData:r,entry:l,richTextEditors:A,jsonTextEditors:v,targetEntry:g,setTargetEntry:b,query:n,confirmedDelegetedUser:o,prevEntry:p,nextEntry:m},children:[(0,s.jsx)(u.A,{}),(0,s.jsx)(y.A,{snug:!0})]})})}async function b({req:e,res:t,query:a}){let r=await (0,n.A)(e,t);if(!r?.logged_in_status)return{redirect:{destination:"/login",permanent:!1}};try{let t=a.single,s=await (0,p.A)({request:e,user:r,databaseSlug:t,query:a});if(!s)throw Error("No Db Object Found!");let{dbUserId:l,rootUserId:i}=s,n=await (0,h.A)(`SELECT * FROM user_databases WHERE user_id='${l}' AND db_slug='${a.single}'`);if(!n||!n[0])return{redirect:{destination:`/admin/${r?.id}/databases`,permanent:!1}};let d=n[0].db_full_name,c=JSON.parse(A.readFileSync(`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${l}/main.json`,"utf-8")),u=(c.filter(e=>e.dbFullName===n[0].db_full_name)[0]?.tables).filter(e=>e.tableName===a.single_table)[0],m=await (0,o.A)({database:d,queryString:`SELECT * FROM ${d}.${u.tableName} WHERE id='${a.single_entry}'`,tableSchema:u});if(!m?.[0])return{redirect:{destination:`/admin/${r?.id}/databases/${n[0].db_slug}/tables/${u.tableName}/entries`,permanent:!1}};let y=m[0],x=await (0,o.A)({database:d,queryString:`SELECT id FROM ${d}.${u.tableName} WHERE id > '${a.single_entry}' LIMIT 1`,tableSchema:u}),g=await (0,o.A)({database:d,queryString:`SELECT id FROM ${d}.${u.tableName} WHERE id < '${a.single_entry}' ORDER BY id DESC LIMIT 1`,tableSchema:u});return{props:{user:r,database:n[0],table:u,dbSchemaData:c,entry:y,query:a,confirmedDelegetedUser:s,nextEntry:x?.[0]||null,prevEntry:g?.[0]||null}}}catch(e){return(0,m.A)({component:"[single_entry]-page-component/getServerSideProps/catch-error",message:e.message,user:r}),{props:{user:r,database:null,table:null,entry:null}}}}r()}catch(e){r(e)}})},9455:(e,t)=>{Object.defineProperty(t,"A",{enumerable:!0,get:function(){return a}});var a=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},13893:e=>{e.exports=require("@moduletrace/datasquirel/dist/client/fetch")},40373:e=>{e.exports=require("@tinymce/tinymce-react")},90317:e=>{e.exports=require("html-prettify")},27825:e=>{e.exports=require("lodash")},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{e.exports=require("next/head")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},1976:e=>{e.exports=require("react-dom/client")},41836:e=>{e.exports=require("react-tiny-popover")},8732:e=>{e.exports=require("react/jsx-runtime")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},75979:e=>{e.exports=import("tailwind-merge")},94327:e=>{e.exports=JSON.parse('[{"title":"VARCHAR","name":"VARCHAR","value":"0-255","argument":true,"description":"Varchar is simply letters and numbers within the range 0 - 255","maxValue":255},{"title":"TINYINT","name":"TINYINT","value":"0-100","description":"TINYINT means Integers: 0 to 100","maxValue":127},{"title":"SMALLINT","name":"SMALLINT","value":"0-255","description":"SMALLINT means Integers: 0 to 240933","maxValue":32767},{"title":"MEDIUMINT","name":"MEDIUMINT","value":"0-255","description":"MEDIUMINT means Integers: 0 to 1245568545560","maxValue":8388607},{"title":"INT","name":"INT","value":"0-255","description":"INT means Integers: 0 to 12560","maxValue":2147483647},{"title":"BIGINT","name":"BIGINT","value":"0-255","description":"BIGINT means Integers: 0 to 1245569056767568545560","maxValue":2e+63},{"title":"TINYTEXT","name":"TINYTEXT","value":"0-255","description":"Text with 255 max characters","maxValue":127},{"title":"TEXT","name":"TEXT","value":"0-100","description":"MEDIUMTEXT is just text with max length 16,777,215","maxValue":127},{"title":"MEDIUMTEXT","name":"MEDIUMTEXT","value":"0-255","description":"MEDIUMTEXT is just text with max length 16,777,215","maxValue":127},{"title":"LONGTEXT","name":"LONGTEXT","value":"0-255","description":"LONGTEXT is just text with max length 4,294,967,295","maxValue":127},{"title":"UUID","name":"UUID","valueLiteral":"UUID()","description":"A Unique ID"}]')}};var t=require("../../../../../../../../webpack-runtime.js");t.C(e);var a=e=>t(t.s=e),r=t.X(0,[883,9821,9796,5392,3634,725,4627],()=>a(7213));module.exports=r})(); \ No newline at end of file +${d}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},51325:(e,t,a)=>{a.a(e,async(e,r)=>{try{a.r(t),a.d(t,{SingleEntryContext:()=>v,default:()=>A,getServerSideProps:()=>f});var s=a(8732),l=a(82015),i=a.n(l),n=a(29021),d=a.n(n),c=a(92702),o=a(25562),u=a(55880),p=a(52854),m=a(15),h=a(22873),y=a(77047),x=a(71934),g=a(43363),b=e([u,m]);[u,m]=b.then?(await b)():b;let v=i().createContext({});function A({user:e,database:t,table:a,dbSchemaData:r,entry:l,query:n,confirmedDelegetedUser:d,prevEntry:c,nextEntry:p}){let h=`${a.tableFullName} Table | Datasquirel`,y=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("title",{children:h}),(0,s.jsx)("meta",{name:"description",content:"Single Table"})]}),[x,b]=i().useState(l),A=i().useRef([]),f=i().useRef([]);return(0,s.jsx)(o.A,{head:y,user:e,extraHeaderContent:(0,s.jsx)(u.A,{database:t,query:n,confirmedDelegetedUser:d,user:e}),aceEditor:!0,children:(0,s.jsxs)(v.Provider,{value:{user:e,database:t,table:a,dbSchemaData:r,entry:l,richTextEditors:A,jsonTextEditors:f,targetEntry:x,setTargetEntry:b,query:n,confirmedDelegetedUser:d,prevEntry:c,nextEntry:p},children:[(0,s.jsx)(m.A,{}),(0,s.jsx)(g.A,{snug:!0})]})})}async function f({req:e,res:t,query:a}){let r=await (0,c.A)(e,t);if(!r?.logged_in_status)return{redirect:{destination:"/login",permanent:!1}};try{let t=a.single,s=await (0,h.A)({request:e,user:r,databaseSlug:t,query:a});if(!s)throw Error("No Db Object Found!");let{dbUserId:l,rootUserId:i}=s,n=await (0,x.A)(`SELECT * FROM user_databases WHERE user_id='${l}' AND db_slug='${a.single}'`);if(!n||!n[0])return{redirect:{destination:`/admin/${r?.id}/databases`,permanent:!1}};let c=n[0].db_full_name,o=JSON.parse(d().readFileSync(`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${l}/main.json`,"utf-8")),u=(o.filter(e=>e.dbFullName===n[0].db_full_name)[0]?.tables).filter(e=>e.tableName===a.single_table)[0],m=await (0,p.A)({database:c,queryString:`SELECT * FROM ${c}.${u.tableName} WHERE id='${a.single_entry}'`,tableSchema:u});if(!m?.[0])return{redirect:{destination:`/admin/${r?.id}/databases/${n[0].db_slug}/tables/${u.tableName}/entries`,permanent:!1}};let y=m[0],g=await (0,p.A)({database:c,queryString:`SELECT id FROM ${c}.${u.tableName} WHERE id > '${a.single_entry}' LIMIT 1`,tableSchema:u}),b=await (0,p.A)({database:c,queryString:`SELECT id FROM ${c}.${u.tableName} WHERE id < '${a.single_entry}' ORDER BY id DESC LIMIT 1`,tableSchema:u});return{props:{user:r,database:n[0],table:u,dbSchemaData:o,entry:y,query:a,confirmedDelegetedUser:s,nextEntry:g?.[0]||null,prevEntry:b?.[0]||null}}}catch(e){return(0,y.A)({component:"[single_entry]-page-component/getServerSideProps/catch-error",message:e.message,user:r}),{props:{user:r,database:null,table:null,entry:null}}}}r()}catch(e){r(e)}})},9455:(e,t)=>{Object.defineProperty(t,"A",{enumerable:!0,get:function(){return a}});var a=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},13893:e=>{e.exports=require("@moduletrace/datasquirel/dist/client/fetch")},40373:e=>{e.exports=require("@tinymce/tinymce-react")},90317:e=>{e.exports=require("html-prettify")},27825:e=>{e.exports=require("lodash")},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{e.exports=require("next/head")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},1976:e=>{e.exports=require("react-dom/client")},41836:e=>{e.exports=require("react-tiny-popover")},8732:e=>{e.exports=require("react/jsx-runtime")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},75979:e=>{e.exports=import("tailwind-merge")},94327:e=>{e.exports=JSON.parse('[{"title":"VARCHAR","name":"VARCHAR","value":"0-255","argument":true,"description":"Varchar is simply letters and numbers within the range 0 - 255","maxValue":255},{"title":"TINYINT","name":"TINYINT","value":"0-100","description":"TINYINT means Integers: 0 to 100","maxValue":127},{"title":"SMALLINT","name":"SMALLINT","value":"0-255","description":"SMALLINT means Integers: 0 to 240933","maxValue":32767},{"title":"MEDIUMINT","name":"MEDIUMINT","value":"0-255","description":"MEDIUMINT means Integers: 0 to 1245568545560","maxValue":8388607},{"title":"INT","name":"INT","value":"0-255","description":"INT means Integers: 0 to 12560","maxValue":2147483647},{"title":"BIGINT","name":"BIGINT","value":"0-255","description":"BIGINT means Integers: 0 to 1245569056767568545560","maxValue":2e+63},{"title":"TINYTEXT","name":"TINYTEXT","value":"0-255","description":"Text with 255 max characters","maxValue":127},{"title":"TEXT","name":"TEXT","value":"0-100","description":"MEDIUMTEXT is just text with max length 16,777,215","maxValue":127},{"title":"MEDIUMTEXT","name":"MEDIUMTEXT","value":"0-255","description":"MEDIUMTEXT is just text with max length 16,777,215","maxValue":127},{"title":"LONGTEXT","name":"LONGTEXT","value":"0-255","description":"LONGTEXT is just text with max length 4,294,967,295","maxValue":127},{"title":"UUID","name":"UUID","valueLiteral":"UUID()","description":"A Unique ID"}]')}};var t=require("../../../../../../../../webpack-runtime.js");t.C(e);var a=e=>t(t.s=e),r=t.X(0,[883,9821,9796,5392,3634,725,4627],()=>a(7213));module.exports=r})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/users/add-social-logins.js b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/users/add-social-logins.js index b9e63cc..869cee5 100644 --- a/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/users/add-social-logins.js +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/users/add-social-logins.js @@ -1 +1 @@ -"use strict";(()=>{var e={};e.id=201,e.ids=[201],e.modules={30671:(e,t)=>{Object.defineProperty(t,"M",{enumerable:!0,get:function(){return function e(t,a){return a in t?t[a]:"then"in t&&"function"==typeof t.then?t.then(t=>e(t,a)):"function"==typeof t&&"default"===a?t:void 0}}})},20291:(e,t,a)=>{a.a(e,async(e,l)=>{try{a.r(t),a.d(t,{config:()=>x,default:()=>p,getServerSideProps:()=>h,getStaticPaths:()=>m,getStaticProps:()=>u,reportWebVitals:()=>y,routeModule:()=>k,unstable_getServerProps:()=>A,unstable_getServerSideProps:()=>w,unstable_getStaticParams:()=>v,unstable_getStaticPaths:()=>g,unstable_getStaticProps:()=>f});var r=a(63865),s=a(9455),i=a(30671),n=a(5583),o=a(19796),d=a(80390),c=e([d]);d=(c.then?(await c)():c)[0];let p=(0,i.M)(d,"default"),u=(0,i.M)(d,"getStaticProps"),m=(0,i.M)(d,"getStaticPaths"),h=(0,i.M)(d,"getServerSideProps"),x=(0,i.M)(d,"config"),y=(0,i.M)(d,"reportWebVitals"),f=(0,i.M)(d,"unstable_getStaticProps"),g=(0,i.M)(d,"unstable_getStaticPaths"),v=(0,i.M)(d,"unstable_getStaticParams"),A=(0,i.M)(d,"unstable_getServerProps"),w=(0,i.M)(d,"unstable_getServerSideProps"),k=new r.PagesRouteModule({definition:{kind:s.A.PAGES,page:"/admin/[user_id]/databases/[single]/users/add-social-logins",pathname:"/admin/[user_id]/databases/[single]/users/add-social-logins",bundlePath:"",filename:""},components:{App:o.default,Document:n.default},userland:d});l()}catch(e){l(e)}})},95598:(e,t,a)=>{a.a(e,async(e,l)=>{try{a.d(t,{A:()=>x});var r=a(8732),s=a(82015),i=a.n(s),n=a(53926),o=a(59023),d=a(46169),c=a(16757),p=a(80390),u=a(1346),m=a(2913),h=e([p]);function x(){let{user:e,database:t,socialLogins:a}=i().useContext(p.AddSocialLoginsContext),[l,s]=i().useState(!1),[h,x]=i().useState(a&&a[0]?.paradigm?.match(/personal/i)?"personal":"datasquirel"),[y,f]=i().useState(a&&a[0]?a:[]),g=h?.match(/datasquirel/i)?(0,r.jsxs)("span",{children:["All social media logins on your site will be done using datasquirel credentials. Please note that you ",(0,r.jsx)("b",{children:"MUST"})," ","add your domain for this to work."]}):h?.match(/personal/i)?(0,r.jsx)("span",{children:"You need to setup your credentials in respective providers and put those credentials in the appropriate fields provided."}):"";return(0,r.jsxs)(i().Fragment,{children:[(0,r.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,r.jsx)("div",{className:"w-full justify-between flex-wrap",children:(0,r.jsxs)("div",{children:[(0,r.jsx)(o.A,{}),(0,r.jsxs)("h1",{className:"text-3xl m-0",children:["Add Social Logins to ",t?.db_name]})]})}),(0,r.jsx)(n.A,{user:e})]}),(0,r.jsxs)("section",{className:"paper",children:[l&&(0,r.jsx)(c.A,{screen:!0}),(0,r.jsx)(u.A,{radioValues:[{title:"Use Datasquirel Credentials",payload:"datasquirel",default:!!h?.match(/datasquirel/i)},{title:"Use Your Own Credentials",payload:"personal",default:!!h?.match(/personal/i)}],flexRow:!0,name:"select-paradigm",onChangeHandler:e=>{x(null),setTimeout(()=>{x(e.target.value)},500)}}),(0,r.jsxs)("div",{className:"max-w-2xl w-full flex-col items-start",children:[(0,r.jsx)("div",{className:"info gray font-normal mb-4",children:g}),h?(0,r.jsx)(m.A,{checkBoxValues:["Github","Google"].map((e,t)=>{let l=a?.filter(t=>t.platform===e.toLocaleLowerCase()),s=l&&l[0]?l[0]:null;return{title:e,payload:e.toLowerCase(),className:"w-full",jsx:(0,r.jsxs)("div",{className:"card grow",children:[(0,r.jsx)("img",{src:`/images/${e.toLowerCase()}.png`,alt:`${e} icon`,className:"avatar small"}),(0,r.jsxs)("div",{className:"content",children:[(0,r.jsx)("span",{className:"title",children:e}),h?.match(/personal/)?(0,r.jsxs)("div",{className:"flex-col items-start",children:[(0,r.jsx)("input",{type:"text",name:`${e.toLowerCase()}-client-id`,id:`${e.toLowerCase()}-client-id`,placeholder:"Client Id",onInput:t=>{let a=t.target,l=y.filter(t=>t.platform===e.toLocaleLowerCase());l&&l[0]&&(l[0].clientId=a.value)},defaultValue:s?.clientId?s.clientId:void 0}),(0,r.jsx)("input",{type:"text",name:`${e.toLowerCase()}-client-secret`,id:`${e.toLowerCase()}-client-secret`,placeholder:"Client Secret",onInput:t=>{let a=t.target,l=y.filter(t=>t.platform===e.toLocaleLowerCase());l&&l[0]&&(l[0].clientSecret=a.value)},defaultValue:s?.clientSecret?s.clientSecret:void 0}),(0,r.jsx)("input",{type:"text",name:`${e.toLowerCase()}-callback-url`,id:`${e.toLowerCase()}-callback-url`,placeholder:"Callback URL",onInput:t=>{let a=t.target,l=y.filter(t=>t.platform===e.toLocaleLowerCase());l&&l[0]&&(l[0].callbackUrl=a.value)},defaultValue:s?.callbackUrl?s.callbackUrl:void 0})]}):(0,r.jsxs)("div",{className:"flex-col items-start",children:[(0,r.jsx)("input",{type:"text",name:`${e.toLowerCase()}-domain-1`,id:`${e.toLowerCase()}-domain-1`,placeholder:"Domain 1",onInput:t=>{let a=t.target,l=y.filter(t=>t.platform===e.toLocaleLowerCase());l&&l[0]&&(l[0].domain1=a.value)},defaultValue:s?.domain1?s.domain1:void 0}),(0,r.jsx)("input",{type:"text",name:`${e.toLowerCase()}-domain-2`,id:`${e.toLowerCase()}-domain-2`,placeholder:"Domain 2",onInput:t=>{let a=t.target,l=y.filter(t=>t.platform===e.toLocaleLowerCase());l&&l[0]&&(l[0].domain2=a.value)},defaultValue:s?.domain2?s.domain2:void 0})]})]})]}),onChangeHandler:t=>{let a=t.target.parentNode?.querySelector(`input[name='${e.toLowerCase()}-client-id']`),l=a?.value,r=t.target.parentNode?.querySelector(`input[name='${e.toLowerCase()}-client-secret']`)?.value,s=t.target.parentNode?.querySelector(`input[name='${e.toLowerCase()}-callback-url']`)?.value,i=t.target.parentNode?.querySelector(`input[name='${e.toLowerCase()}-domain-1']`)?.value,n=t.target.parentNode?.querySelector(`input[name='${e.toLowerCase()}-domain2']`)?.value,o={platform:e.toLowerCase(),clientId:l,clientSecret:r,callbackUrl:s,domain1:i,domain2:n};t.target.checked?f(e=>[...e,o]):f(e=>e.filter(e=>e.platform!==o.platform))},default:!!s}}),name:"social-platforms",className:"w-full"}):(0,r.jsx)("div",{className:"w-full p-10",children:(0,r.jsx)(c.A,{position:"relative",width:"20px"})}),y&&y[0]&&(0,r.jsx)("button",{className:"w-full more-padding",onClick:e=>{s(!0);let a={dbFullName:t?.db_full_name,dbSlug:t?.db_slug,paradigm:h,platforms:y};(0,d.A)("/api/addSocialLogin",{method:"post",body:a},!0).then(e=>{e?.success?window.location.reload():window.alert(e.msg),setTimeout(()=>{s(!1)},1e3)})},children:"Add Social Logins"})]})]})]})}p=(h.then?(await h)():h)[0],l()}catch(e){l(e)}})},2913:(e,t,a)=>{a.d(t,{A:()=>r});var l=a(8732);function r({name:e,checkBoxValues:t,setAlert:a,labelColor:r,flexRow:s,baseText:i,smallText:n,className:o}){return(0,l.jsx)("div",{className:"flex items-start gap-x-4"+(s?" flex-row flex-wrap gap-y-2 ":" flex-col gap-y-4 ")+(o||""),children:t.map((t,s)=>{let{payload:o,title:d,onChangeHandler:c,fixed:p,jsx:u}=t,m=t.name?`${e}-${t.name}`:o?e+"-"+o:e;return(0,l.jsxs)("div",{className:"flex items-center"+(t.default&&p?" pointer-events-none":"")+(n?" gap-1 ":" gap-2 ")+(t?.className?t.className:""),children:[(0,l.jsx)("input",{className:"m-0"+(n?" w-4 h-4":" w-5 h-5"),type:"checkbox",defaultChecked:!!t.default,name:m,id:m,onChange:e=>{a&&a(null),c&&c(e,t)},value:o,style:{minWidth:"20px"},...t.props}),u||(0,l.jsx)("label",{htmlFor:m,className:"m-0 "+(r||"text-slate-800 dark:text-white/80")+(i||n?" text-base":" text-lg"),children:d})]},s+1)})})}a(82015)},1346:(e,t,a)=>{a.d(t,{A:()=>r});var l=a(8732);function r({radioValues:e,name:t,onChangeHandler:a,setAlert:r,flexRow:s,labelColor:i,baseText:n,smallText:o,className:d}){try{return(0,l.jsx)("div",{className:"flex items-start gap-4 flex-wrap "+(s?"":" flex-col ")+(d||""),children:e.map((e,s)=>{let{payload:d,title:c,jsx:p}=e,u=!1===d?d:d||c||null;return(0,l.jsxs)("div",{className:"flex items-center gap-2",children:[(0,l.jsx)("input",{className:"m-0"+(n?" w-5 h-5":o?" w-4 h-4":" w-6 h-6"),type:"radio",defaultChecked:!!e.default,name:t,id:t+"_"+u,onChange:t=>{r&&r(null),e.onChangeHandler?e.onChangeHandler(t):a&&a(t)},value:"string"==typeof u?u:void 0}),p||(0,l.jsx)("label",{htmlFor:t+"_"+u,className:"text-lg m-0 "+(i||"text-slate-800")+(n?" text-base":o?" text-sm":" text-lg"),children:c})]},s+1)})})}catch(e){return console.log("ERROR in FormRadio =>",e),(0,l.jsx)("div",{children:"Form Radio Error"})}}a(82015)},23293:(e,t,a)=>{a.d(t,{A:()=>l});let l=(0,a(82544).A)("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]])},92441:(e,t,a)=>{a.d(t,{A:()=>l});let l=(0,a(82544).A)("BookText",[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1 0-5H20",key:"t4utmx"}],["path",{d:"M8 7h6",key:"1f0q6e"}],["path",{d:"M8 11h8",key:"vwpz6n"}]])},96089:(e,t,a)=>{a.d(t,{A:()=>l});let l=(0,a(82544).A)("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},34637:(e,t,a)=>{a.d(t,{A:()=>l});let l=(0,a(82544).A)("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]])},25088:(e,t,a)=>{a.d(t,{A:()=>l});let l=(0,a(82544).A)("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]])},72935:(e,t,a)=>{a.d(t,{A:()=>l});let l=(0,a(82544).A)("FileInput",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4",key:"1pf5j1"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M2 15h10",key:"jfw4w8"}],["path",{d:"m9 18 3-3-3-3",key:"112psh"}]])},29743:(e,t,a)=>{a.d(t,{A:()=>l});let l=(0,a(82544).A)("FileKey2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v6",key:"rc0qvx"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["circle",{cx:"4",cy:"16",r:"2",key:"1ehqvc"}],["path",{d:"m10 10-4.5 4.5",key:"7fwrp6"}],["path",{d:"m9 11 1 1",key:"wa6s5q"}]])},71296:(e,t,a)=>{a.d(t,{A:()=>l});let l=(0,a(82544).A)("FolderOutput",[["path",{d:"M2 7.5V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-1.5",key:"1yk7aj"}],["path",{d:"M2 13h10",key:"pgb2dq"}],["path",{d:"m5 10-3 3 3 3",key:"1r8ie0"}]])},10643:(e,t,a)=>{a.d(t,{A:()=>l});let l=(0,a(82544).A)("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]])},66916:(e,t,a)=>{a.d(t,{A:()=>l});let l=(0,a(82544).A)("HardDrive",[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]])},83158:(e,t,a)=>{a.d(t,{A:()=>l});let l=(0,a(82544).A)("Images",[["path",{d:"M18 22H4a2 2 0 0 1-2-2V6",key:"pblm9e"}],["path",{d:"m22 13-1.296-1.296a2.41 2.41 0 0 0-3.408 0L11 18",key:"nf6bnh"}],["circle",{cx:"12",cy:"8",r:"2",key:"1822b1"}],["rect",{width:"16",height:"16",x:"6",y:"2",rx:"2",key:"12espp"}]])},66918:(e,t,a)=>{a.d(t,{A:()=>l});let l=(0,a(82544).A)("RotateCw",[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]])},10321:(e,t,a)=>{a.d(t,{A:()=>l});let l=(0,a(82544).A)("ShieldEllipsis",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M8 12h.01",key:"czm47f"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M16 12h.01",key:"1l6xoz"}]])},98136:(e,t,a)=>{a.d(t,{A:()=>l});let l=(0,a(82544).A)("SquareTerminal",[["path",{d:"m7 11 2-2-2-2",key:"1lz0vl"}],["path",{d:"M11 13h4",key:"1p7l4v"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}]])},25294:(e,t,a)=>{a.d(t,{A:()=>l});let l=(0,a(82544).A)("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]])},80390:(e,t,a)=>{a.a(e,async(e,l)=>{try{a.r(t),a.d(t,{AddSocialLoginsContext:()=>y,default:()=>m,getServerSideProps:()=>h});var r=a(8732),s=a(82015),i=a.n(s),n=a(25562),o=a(92702),d=a(55880),c=a(95598),p=a(71934),u=e([d,c]);[d,c]=u.then?(await u)():u;let x=a(29021),y=i().createContext({});function m({user:e,database:t,query:a,socialLogins:l}){let s=(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("title",{children:"Social Logins | Datasquirel"}),(0,r.jsx)("meta",{name:"description",content:"Welcome to your data app"})]});return(0,r.jsx)(n.A,{head:s,user:e,extraHeaderContent:(0,r.jsx)(d.A,{database:t,query:a,user:e}),children:(0,r.jsx)(y.Provider,{value:{user:e,database:t,query:a,socialLogins:l},children:(0,r.jsx)(c.A,{})})})}async function h({req:e,res:t,query:a}){let l=await (0,o.A)(e,t);if(!l?.logged_in_status)return{redirect:{destination:"/logout",permanent:!1}};try{let e=await (0,p.A)(`SELECT * FROM user_databases WHERE user_id='${l.id}' AND db_slug='${a.single}'`);if(!e||!e[0])return{redirect:{destination:`/admin/${l?.id}/databases`,permanent:!1}};JSON.parse(x.readFileSync(`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${l.id}/main.json`,"utf-8"));let t=`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${l.id}/env.json`;x.existsSync(t)||x.writeFileSync(t,"{}","utf-8");let r=JSON.parse(x.readFileSync(t,"utf-8"))[e[0].db_full_name]?.social;return{props:{user:l,database:e[0],socialLogins:r||[],query:a}}}catch(e){return console.log("Error in 'add-social-logins; page component =>",e.message),{redirect:{destination:"/admin",permanent:!1}}}}l()}catch(e){l(e)}})},9455:(e,t)=>{Object.defineProperty(t,"A",{enumerable:!0,get:function(){return a}});var a=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},13893:e=>{e.exports=require("@moduletrace/datasquirel/dist/client/fetch")},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{e.exports=require("next/head")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},8732:e=>{e.exports=require("react/jsx-runtime")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},75979:e=>{e.exports=import("tailwind-merge")}};var t=require("../../../../../../webpack-runtime.js");t.C(e);var a=e=>t(t.s=e),l=t.X(0,[883,9821,9796,5392,3634],()=>a(20291));module.exports=l})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=201,e.ids=[201],e.modules={30671:(e,t)=>{Object.defineProperty(t,"M",{enumerable:!0,get:function(){return function e(t,a){return a in t?t[a]:"then"in t&&"function"==typeof t.then?t.then(t=>e(t,a)):"function"==typeof t&&"default"===a?t:void 0}}})},20291:(e,t,a)=>{a.a(e,async(e,l)=>{try{a.r(t),a.d(t,{config:()=>x,default:()=>p,getServerSideProps:()=>h,getStaticPaths:()=>m,getStaticProps:()=>u,reportWebVitals:()=>y,routeModule:()=>k,unstable_getServerProps:()=>A,unstable_getServerSideProps:()=>w,unstable_getStaticParams:()=>v,unstable_getStaticPaths:()=>g,unstable_getStaticProps:()=>f});var r=a(63865),s=a(9455),i=a(30671),n=a(5583),o=a(19796),d=a(80390),c=e([d]);d=(c.then?(await c)():c)[0];let p=(0,i.M)(d,"default"),u=(0,i.M)(d,"getStaticProps"),m=(0,i.M)(d,"getStaticPaths"),h=(0,i.M)(d,"getServerSideProps"),x=(0,i.M)(d,"config"),y=(0,i.M)(d,"reportWebVitals"),f=(0,i.M)(d,"unstable_getStaticProps"),g=(0,i.M)(d,"unstable_getStaticPaths"),v=(0,i.M)(d,"unstable_getStaticParams"),A=(0,i.M)(d,"unstable_getServerProps"),w=(0,i.M)(d,"unstable_getServerSideProps"),k=new r.PagesRouteModule({definition:{kind:s.A.PAGES,page:"/admin/[user_id]/databases/[single]/users/add-social-logins",pathname:"/admin/[user_id]/databases/[single]/users/add-social-logins",bundlePath:"",filename:""},components:{App:o.default,Document:n.default},userland:d});l()}catch(e){l(e)}})},95598:(e,t,a)=>{a.a(e,async(e,l)=>{try{a.d(t,{A:()=>x});var r=a(8732),s=a(82015),i=a.n(s),n=a(53926),o=a(59023),d=a(46169),c=a(16757),p=a(80390),u=a(1346),m=a(2913),h=e([p]);function x(){let{user:e,database:t,socialLogins:a}=i().useContext(p.AddSocialLoginsContext),[l,s]=i().useState(!1),[h,x]=i().useState(a&&a[0]?.paradigm?.match(/personal/i)?"personal":"datasquirel"),[y,f]=i().useState(a&&a[0]?a:[]),g=h?.match(/datasquirel/i)?(0,r.jsxs)("span",{children:["All social media logins on your site will be done using datasquirel credentials. Please note that you ",(0,r.jsx)("b",{children:"MUST"})," ","add your domain for this to work."]}):h?.match(/personal/i)?(0,r.jsx)("span",{children:"You need to setup your credentials in respective providers and put those credentials in the appropriate fields provided."}):"";return(0,r.jsxs)(i().Fragment,{children:[(0,r.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,r.jsx)("div",{className:"w-full justify-between flex-wrap",children:(0,r.jsxs)("div",{children:[(0,r.jsx)(o.A,{}),(0,r.jsxs)("h1",{className:"text-3xl m-0",children:["Add Social Logins to ",t?.db_name]})]})}),(0,r.jsx)(n.A,{user:e})]}),(0,r.jsxs)("section",{className:"paper",children:[l&&(0,r.jsx)(c.A,{screen:!0}),(0,r.jsx)(u.A,{radioValues:[{title:"Use Datasquirel Credentials",payload:"datasquirel",default:!!h?.match(/datasquirel/i)},{title:"Use Your Own Credentials",payload:"personal",default:!!h?.match(/personal/i)}],flexRow:!0,name:"select-paradigm",onChangeHandler:e=>{x(null),setTimeout(()=>{x(e.target.value)},500)}}),(0,r.jsxs)("div",{className:"max-w-2xl w-full flex-col items-start",children:[(0,r.jsx)("div",{className:"info gray font-normal mb-4",children:g}),h?(0,r.jsx)(m.A,{checkBoxValues:["Github","Google"].map((e,t)=>{let l=a?.filter(t=>t.platform===e.toLocaleLowerCase()),s=l&&l[0]?l[0]:null;return{title:e,payload:e.toLowerCase(),className:"w-full",jsx:(0,r.jsxs)("div",{className:"card grow",children:[(0,r.jsx)("img",{src:`/images/${e.toLowerCase()}.png`,alt:`${e} icon`,className:"avatar small"}),(0,r.jsxs)("div",{className:"content",children:[(0,r.jsx)("span",{className:"title",children:e}),h?.match(/personal/)?(0,r.jsxs)("div",{className:"flex-col items-start",children:[(0,r.jsx)("input",{type:"text",name:`${e.toLowerCase()}-client-id`,id:`${e.toLowerCase()}-client-id`,placeholder:"Client Id",onInput:t=>{let a=t.target,l=y.filter(t=>t.platform===e.toLocaleLowerCase());l&&l[0]&&(l[0].clientId=a.value)},defaultValue:s?.clientId?s.clientId:void 0}),(0,r.jsx)("input",{type:"text",name:`${e.toLowerCase()}-client-secret`,id:`${e.toLowerCase()}-client-secret`,placeholder:"Client Secret",onInput:t=>{let a=t.target,l=y.filter(t=>t.platform===e.toLocaleLowerCase());l&&l[0]&&(l[0].clientSecret=a.value)},defaultValue:s?.clientSecret?s.clientSecret:void 0}),(0,r.jsx)("input",{type:"text",name:`${e.toLowerCase()}-callback-url`,id:`${e.toLowerCase()}-callback-url`,placeholder:"Callback URL",onInput:t=>{let a=t.target,l=y.filter(t=>t.platform===e.toLocaleLowerCase());l&&l[0]&&(l[0].callbackUrl=a.value)},defaultValue:s?.callbackUrl?s.callbackUrl:void 0})]}):(0,r.jsxs)("div",{className:"flex-col items-start",children:[(0,r.jsx)("input",{type:"text",name:`${e.toLowerCase()}-domain-1`,id:`${e.toLowerCase()}-domain-1`,placeholder:"Domain 1",onInput:t=>{let a=t.target,l=y.filter(t=>t.platform===e.toLocaleLowerCase());l&&l[0]&&(l[0].domain1=a.value)},defaultValue:s?.domain1?s.domain1:void 0}),(0,r.jsx)("input",{type:"text",name:`${e.toLowerCase()}-domain-2`,id:`${e.toLowerCase()}-domain-2`,placeholder:"Domain 2",onInput:t=>{let a=t.target,l=y.filter(t=>t.platform===e.toLocaleLowerCase());l&&l[0]&&(l[0].domain2=a.value)},defaultValue:s?.domain2?s.domain2:void 0})]})]})]}),onChangeHandler:t=>{let a=t.target.parentNode?.querySelector(`input[name='${e.toLowerCase()}-client-id']`),l=a?.value,r=t.target.parentNode?.querySelector(`input[name='${e.toLowerCase()}-client-secret']`)?.value,s=t.target.parentNode?.querySelector(`input[name='${e.toLowerCase()}-callback-url']`)?.value,i=t.target.parentNode?.querySelector(`input[name='${e.toLowerCase()}-domain-1']`)?.value,n=t.target.parentNode?.querySelector(`input[name='${e.toLowerCase()}-domain2']`)?.value,o={platform:e.toLowerCase(),clientId:l,clientSecret:r,callbackUrl:s,domain1:i,domain2:n};t.target.checked?f(e=>[...e,o]):f(e=>e.filter(e=>e.platform!==o.platform))},default:!!s}}),name:"social-platforms",className:"w-full"}):(0,r.jsx)("div",{className:"w-full p-10",children:(0,r.jsx)(c.A,{position:"relative",width:"20px"})}),y&&y[0]&&(0,r.jsx)("button",{className:"w-full more-padding",onClick:e=>{s(!0);let a={dbFullName:t?.db_full_name,dbSlug:t?.db_slug,paradigm:h,platforms:y};(0,d.A)("/api/addSocialLogin",{method:"post",body:a},!0).then(e=>{e?.success?window.location.reload():window.alert(e.msg),setTimeout(()=>{s(!1)},1e3)})},children:"Add Social Logins"})]})]})]})}p=(h.then?(await h)():h)[0],l()}catch(e){l(e)}})},2913:(e,t,a)=>{a.d(t,{A:()=>r});var l=a(8732);function r({name:e,checkBoxValues:t,setAlert:a,labelColor:r,flexRow:s,baseText:i,smallText:n,className:o}){return(0,l.jsx)("div",{className:"flex items-start gap-x-4"+(s?" flex-row flex-wrap gap-y-2 ":" flex-col gap-y-4 ")+(o||""),children:t.map((t,s)=>{let{payload:o,title:d,onChangeHandler:c,fixed:p,jsx:u}=t,m=t.name?`${e}-${t.name}`:o?e+"-"+o:e;return(0,l.jsxs)("div",{className:"flex items-center"+(t.default&&p?" pointer-events-none":"")+(n?" gap-1 ":" gap-2 ")+(t?.className?t.className:""),children:[(0,l.jsx)("input",{className:"m-0"+(n?" w-4 h-4":" w-5 h-5"),type:"checkbox",defaultChecked:!!t.default,name:m,id:m,onChange:e=>{a&&a(null),c&&c(e,t)},value:o,style:{minWidth:"20px"},...t.props}),u||(0,l.jsx)("label",{htmlFor:m,className:"m-0 "+(r||"text-slate-800 dark:text-white/80")+(i||n?" text-base":" text-lg"),children:d})]},s+1)})})}a(82015)},1346:(e,t,a)=>{a.d(t,{A:()=>r});var l=a(8732);function r({radioValues:e,name:t,onChangeHandler:a,setAlert:r,flexRow:s,labelColor:i,baseText:n,smallText:o,className:d}){try{return(0,l.jsx)("div",{className:"flex items-start gap-4 flex-wrap "+(s?"":" flex-col ")+(d||""),children:e.map((e,s)=>{let{payload:d,title:c,jsx:p}=e,u=!1===d?d:d||c||null;return(0,l.jsxs)("div",{className:"flex items-center gap-2",children:[(0,l.jsx)("input",{className:"m-0"+(n?" w-5 h-5":o?" w-4 h-4":" w-6 h-6"),type:"radio",defaultChecked:!!e.default,name:t,id:t+"_"+u,onChange:t=>{r&&r(null),e.onChangeHandler?e.onChangeHandler(t):a&&a(t)},value:"string"==typeof u?u:void 0}),p||(0,l.jsx)("label",{htmlFor:t+"_"+u,className:"text-lg m-0 "+(i||"text-slate-800")+(n?" text-base":o?" text-sm":" text-lg"),children:c})]},s+1)})})}catch(e){return console.log("ERROR in FormRadio =>",e),(0,l.jsx)("div",{children:"Form Radio Error"})}}a(82015)},23293:(e,t,a)=>{a.d(t,{A:()=>l});let l=(0,a(82544).A)("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]])},92441:(e,t,a)=>{a.d(t,{A:()=>l});let l=(0,a(82544).A)("BookText",[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1 0-5H20",key:"t4utmx"}],["path",{d:"M8 7h6",key:"1f0q6e"}],["path",{d:"M8 11h8",key:"vwpz6n"}]])},96089:(e,t,a)=>{a.d(t,{A:()=>l});let l=(0,a(82544).A)("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},34637:(e,t,a)=>{a.d(t,{A:()=>l});let l=(0,a(82544).A)("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]])},25088:(e,t,a)=>{a.d(t,{A:()=>l});let l=(0,a(82544).A)("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]])},72935:(e,t,a)=>{a.d(t,{A:()=>l});let l=(0,a(82544).A)("FileInput",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4",key:"1pf5j1"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M2 15h10",key:"jfw4w8"}],["path",{d:"m9 18 3-3-3-3",key:"112psh"}]])},29743:(e,t,a)=>{a.d(t,{A:()=>l});let l=(0,a(82544).A)("FileKey2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v6",key:"rc0qvx"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["circle",{cx:"4",cy:"16",r:"2",key:"1ehqvc"}],["path",{d:"m10 10-4.5 4.5",key:"7fwrp6"}],["path",{d:"m9 11 1 1",key:"wa6s5q"}]])},71296:(e,t,a)=>{a.d(t,{A:()=>l});let l=(0,a(82544).A)("FolderOutput",[["path",{d:"M2 7.5V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-1.5",key:"1yk7aj"}],["path",{d:"M2 13h10",key:"pgb2dq"}],["path",{d:"m5 10-3 3 3 3",key:"1r8ie0"}]])},10643:(e,t,a)=>{a.d(t,{A:()=>l});let l=(0,a(82544).A)("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]])},66916:(e,t,a)=>{a.d(t,{A:()=>l});let l=(0,a(82544).A)("HardDrive",[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]])},83158:(e,t,a)=>{a.d(t,{A:()=>l});let l=(0,a(82544).A)("Images",[["path",{d:"M18 22H4a2 2 0 0 1-2-2V6",key:"pblm9e"}],["path",{d:"m22 13-1.296-1.296a2.41 2.41 0 0 0-3.408 0L11 18",key:"nf6bnh"}],["circle",{cx:"12",cy:"8",r:"2",key:"1822b1"}],["rect",{width:"16",height:"16",x:"6",y:"2",rx:"2",key:"12espp"}]])},66918:(e,t,a)=>{a.d(t,{A:()=>l});let l=(0,a(82544).A)("RotateCw",[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]])},10321:(e,t,a)=>{a.d(t,{A:()=>l});let l=(0,a(82544).A)("ShieldEllipsis",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M8 12h.01",key:"czm47f"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M16 12h.01",key:"1l6xoz"}]])},98136:(e,t,a)=>{a.d(t,{A:()=>l});let l=(0,a(82544).A)("SquareTerminal",[["path",{d:"m7 11 2-2-2-2",key:"1lz0vl"}],["path",{d:"M11 13h4",key:"1p7l4v"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}]])},25294:(e,t,a)=>{a.d(t,{A:()=>l});let l=(0,a(82544).A)("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]])},80390:(e,t,a)=>{a.a(e,async(e,l)=>{try{a.r(t),a.d(t,{AddSocialLoginsContext:()=>f,default:()=>x,getServerSideProps:()=>y});var r=a(8732),s=a(29021),i=a.n(s),n=a(82015),o=a.n(n),d=a(25562),c=a(92702),p=a(55880),u=a(95598),m=a(71934),h=e([p,u]);[p,u]=h.then?(await h)():h;let f=o().createContext({});function x({user:e,database:t,query:a,socialLogins:l}){let s=(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("title",{children:"Social Logins | Datasquirel"}),(0,r.jsx)("meta",{name:"description",content:"Welcome to your data app"})]});return(0,r.jsx)(d.A,{head:s,user:e,extraHeaderContent:(0,r.jsx)(p.A,{database:t,query:a,user:e}),children:(0,r.jsx)(f.Provider,{value:{user:e,database:t,query:a,socialLogins:l},children:(0,r.jsx)(u.A,{})})})}async function y({req:e,res:t,query:a}){let l=await (0,c.A)(e,t);if(!l?.logged_in_status)return{redirect:{destination:"/logout",permanent:!1}};try{let e=await (0,m.A)(`SELECT * FROM user_databases WHERE user_id='${l.id}' AND db_slug='${a.single}'`);if(!e||!e[0])return{redirect:{destination:`/admin/${l?.id}/databases`,permanent:!1}};JSON.parse(i().readFileSync(`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${l.id}/main.json`,"utf-8"));let t=`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${l.id}/env.json`;i().existsSync(t)||i().writeFileSync(t,"{}","utf-8");let r=JSON.parse(i().readFileSync(t,"utf-8"))[e[0].db_full_name]?.social;return{props:{user:l,database:e[0],socialLogins:r||[],query:a}}}catch(e){return console.log("Error in 'add-social-logins; page component =>",e.message),{redirect:{destination:"/admin",permanent:!1}}}}l()}catch(e){l(e)}})},9455:(e,t)=>{Object.defineProperty(t,"A",{enumerable:!0,get:function(){return a}});var a=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},13893:e=>{e.exports=require("@moduletrace/datasquirel/dist/client/fetch")},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{e.exports=require("next/head")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},8732:e=>{e.exports=require("react/jsx-runtime")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},75979:e=>{e.exports=import("tailwind-merge")}};var t=require("../../../../../../webpack-runtime.js");t.C(e);var a=e=>t(t.s=e),l=t.X(0,[883,9821,9796,5392,3634],()=>a(20291));module.exports=l})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/users/add-user.js b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/users/add-user.js index f1bfac3..1670917 100644 --- a/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/users/add-user.js +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/users/add-user.js @@ -1,4 +1,4 @@ -"use strict";(()=>{var e={};e.id=9582,e.ids=[9582],e.modules={30671:(e,t)=>{Object.defineProperty(t,"M",{enumerable:!0,get:function(){return function e(t,a){return a in t?t[a]:"then"in t&&"function"==typeof t.then?t.then(t=>e(t,a)):"function"==typeof t&&"default"===a?t:void 0}}})},5621:(e,t,a)=>{a.a(e,async(e,r)=>{try{a.r(t),a.d(t,{config:()=>g,default:()=>u,getServerSideProps:()=>h,getStaticPaths:()=>p,getStaticProps:()=>m,reportWebVitals:()=>y,routeModule:()=>w,unstable_getServerProps:()=>A,unstable_getServerSideProps:()=>v,unstable_getStaticParams:()=>b,unstable_getStaticPaths:()=>x,unstable_getStaticProps:()=>f});var s=a(63865),l=a(9455),n=a(30671),i=a(5583),d=a(19796),o=a(70193),c=e([o]);o=(c.then?(await c)():c)[0];let u=(0,n.M)(o,"default"),m=(0,n.M)(o,"getStaticProps"),p=(0,n.M)(o,"getStaticPaths"),h=(0,n.M)(o,"getServerSideProps"),g=(0,n.M)(o,"config"),y=(0,n.M)(o,"reportWebVitals"),f=(0,n.M)(o,"unstable_getStaticProps"),x=(0,n.M)(o,"unstable_getStaticPaths"),b=(0,n.M)(o,"unstable_getStaticParams"),A=(0,n.M)(o,"unstable_getServerProps"),v=(0,n.M)(o,"unstable_getServerSideProps"),w=new s.PagesRouteModule({definition:{kind:l.A.PAGES,page:"/admin/[user_id]/databases/[single]/users/add-user",pathname:"/admin/[user_id]/databases/[single]/users/add-user",bundlePath:"",filename:""},components:{App:d.default,Document:i.default},userland:o});r()}catch(e){r(e)}})},30565:(e,t,a)=>{a.a(e,async(e,r)=>{try{a.d(t,{A:()=>h});var s=a(8732),l=a(82015),n=a.n(l),i=a(53926),d=a(59023),o=a(46169),c=a(16757),u=a(49585),m=a(70193),p=e([m]);function h(){let{user:e,database:t,table:r,query:l,confirmedDelegetedUser:p}=n().useContext(m.AddNewDbUserContext);a(49436);let[h,g]=n().useState("invitation"),[y,f]=n().useState(!1),[x,b]=n().useState(!1),[A,v]=n().useState(["Edit"]),[w,_]=n().useState(t.db_slug),[S,j]=n().useState(null),[D,k]=n().useState(null),[N,E]=n().useState([]),[M,P]=n().useState([]);return(0,s.jsxs)(n().Fragment,{children:[(0,s.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,s.jsx)("div",{className:"w-full justify-between flex-wrap",children:(0,s.jsxs)("div",{children:[(0,s.jsx)(d.A,{}),(0,s.jsxs)("h1",{className:"text-3xl m-0",children:["Add A New User to ",t.db_name]})]})}),(0,s.jsx)(i.A,{user:e})]}),(0,s.jsxs)("section",{className:"paper",children:[y&&(0,s.jsx)(c.A,{}),(0,s.jsxs)("form",{onSubmit:a=>{a.preventDefault(),f(!0);let r=a.target,s=Array.from(r),l={};s.forEach(e=>{!e.nodeName?.match(/button/i)&&e.name&&e.value?.match(/./)&&(l[e.name]=e.value)});let n={payload:l,dbFullName:t.db_full_name,dbId:t.id};(0,o.A)("/api/addDbUser",{method:"post",body:n},!0).then(a=>{a.success?D?(D.imageName=`${w}-user-${a.newUserId}`,D.mimeType="jpeg",delete D.imageBase64Full,(0,o.A)("/api/addUserMedia",{method:"post",body:{media:[D],folder:w.replace(/_/g,"-"),type:"image"}},!0).then(r=>{(0,o.A)("/api/updateDbUser",{method:"post",body:{dbFullName:t.db_full_name,payload:{id:a.newUserId,image:r.mediaData[0].media_url,image_thumbnail:r.mediaData[0].media_thumbnail_url}}},!0).then(a=>{a.success&&(window.location.pathname=`/admin/${e?.id}/databases/${t.db_slug}/users`),setTimeout(()=>{f(!1)},500)})})):window.location.pathname=`/admin/${e?.id}/databases/${t.db_slug}/users`:setTimeout(()=>{f(!1)},500)})},className:"w-full flex flex-col items-stretch gap-4",children:[(0,s.jsx)(u.A,{user:e,targetDb:t.db_full_name,database:t,userImage:D,setUserImage:k}),(0,s.jsx)("button",{children:"Add User"})]})]})]})}m=(p.then?(await p)():p)[0],r()}catch(e){r(e)}})},49585:(e,t,a)=>{let r;a.d(t,{A:()=>m});var s=a(8732),l=a(82015),n=a.n(l),i=a(46169),d=a(10621),o=a(16757),c=a(83155),u=a(20136);function m({targetDb:e,database:t,user:a,userImage:l,setUserImage:m}){let[p,h]=n().useState(null),[g,y]=n().useState(!1);return(0,s.jsxs)(n().Fragment,{children:[g&&(0,s.jsx)(o.A,{}),p&&(0,s.jsx)(d.A,{message:p}),(0,s.jsx)("h3",{className:"m-0 text-lg font-semibold mb-1 text-slate-600 mt-4",children:"User information"}),(0,s.jsx)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:(0,s.jsx)(c.A,{title:"First Name",inputType:"text",name:"first_name",autoComplete:"given-name",onInputHandler:e=>{let t=e.target;t.value.match(/./)?(t.classList.remove("warning"),h(null)):t.classList.add("warning")},required:!0})}),(0,s.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:[(0,s.jsx)("label",{htmlFor:"last_name",children:"Last Name"}),(0,s.jsx)("input",{type:"text",name:"last_name",id:"last_name",placeholder:"Last Name",autoComplete:"family-name",onInput:e=>{let t=e.target;t.value.match(/./)?(t.classList.remove("warning"),h(null)):t.classList.add("warning")},required:!0})]}),(0,s.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:[(0,s.jsx)("label",{htmlFor:"username",children:"Username"}),(0,s.jsx)("input",{type:"text",name:"username",id:"username",placeholder:"Username",autoComplete:"username",onInput:t=>{let a=t.target;a.value.match(/./)?(a.classList.remove("warning"),h(null)):a.classList.add("warning"),window.clearTimeout(r),r=setTimeout(()=>{(0,i.A)(`/api/checkDuplicateData?type=username&value=${a.value}&tableName=users&dbFullName=${e}`).then(e=>{e?.result?(h("Username Already Exists"),a.classList.add("warning")):(h(null),a.classList.remove("warning"))})},300)}})]}),(0,s.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:[(0,s.jsx)("label",{htmlFor:"email_address",children:"Email Address"}),(0,s.jsx)("input",{type:"email",name:"email_address",id:"email_address",placeholder:"Email Address",autoComplete:"email",onInput:t=>{window.clearTimeout(r);let a=t.target;r=setTimeout(()=>{(0,i.A)(`/api/checkDuplicateData?type=email&value=${a.value}&tableName=users&dbFullName=${e}`).then(e=>{e?.result?(h("Email Already Exists"),a.classList.add("warning")):(h(null),a.classList.remove("warning"))})},300)},required:!0})]}),(0,s.jsx)(c.A,{title:"Phone Number",inputType:"text",name:"phone",autoComplete:"tel"}),(0,s.jsx)(c.A,{title:"Address",name:"address",autoComplete:"address"}),(0,s.jsxs)("div",{className:"flex-wrap xl:flex-nowrap",children:[(0,s.jsx)(c.A,{title:"City",name:"city",autoComplete:"city"}),(0,s.jsx)(c.A,{title:"State",name:"state",autoComplete:"state"}),(0,s.jsx)(c.A,{title:"Country",name:"country",autoComplete:"country"}),(0,s.jsx)(c.A,{title:"Zip Code",name:"zip_code",autoComplete:"zip_code"})]}),(0,s.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:[(0,s.jsx)("label",{htmlFor:"password",children:"Password"}),(0,s.jsx)("input",{type:"password",name:"password",id:"password",placeholder:"Password",required:!0})]}),(0,s.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:[(0,s.jsx)("label",{htmlFor:"confirm_password",children:"Confirm Password"}),(0,s.jsx)("input",{type:"password",name:"confirm_password",id:"confirm_password",placeholder:"Confirm Password",onInput:e=>{let t=e.target;t.closest("form")?.password.value===t.value?t.classList.remove("warning"):t.classList.add("warning")},required:!0})]}),(0,s.jsxs)("div",{className:"paper",children:[(0,s.jsx)("h3",{className:"m-0 text-lg font-semibold mb-1 text-slate-600",children:"User Image"}),(0,s.jsx)(u.A,{userImage:l,setUserImage:m})]})]})}},20136:(e,t,a)=>{a.d(t,{A:()=>i});var r=a(8732),s=a(82015),l=a.n(s),n=a(65842);function i({user:e,userImage:t,setUserImage:a,database:s,className:i}){let d=l().useRef();return(0,r.jsxs)("div",{className:"card no-hover col"+(i?" "+i:""),children:[(0,r.jsx)("div",{className:"bg-white rounded-full overflow-hidden w-24 h-24",children:(0,r.jsx)("img",{src:t?"string"==typeof t?t:t.imageBase64Full:"/images/user-preset.png",alt:"Database Image",width:100,className:"w-full h-full object-cover",ref:d,"data-imagepreview":"image"})}),(0,r.jsxs)("div",{className:"w-full flex-col image-selector-wrapper",children:[(0,r.jsx)("div",{className:"button outlined secondary w-full whitespace-normal",onClick:e=>{e.target.closest(".image-selector-wrapper").querySelector("input").click()},children:"Upload Image"}),(0,r.jsx)("input",{type:"file",accept:".png,.jpg,.jpeg,.webp",placeholder:"Choose Database Image",className:"hidden",onChange:async e=>{let t=e.target.files?.[0];if(t){let e=await (0,n.A)({imageInputFile:t,maxWidth:400});a?.(e)}else window.alert("No File Provided!")}})]})]})}},10621:(e,t,a)=>{a.d(t,{A:()=>s});var r=a(8732);function s({message:e}){return(0,r.jsxs)("div",{className:"p-2 bg-orange-50 w-full justify-center rounded text-sm text-orange-700 border border-orange-400 border-solid",children:[(0,r.jsx)("img",{src:"/images/warning.png",alt:"Warning Image Icon",width:22,className:"-my-2"}),(0,r.jsx)("span",{children:e})]})}a(82015)},22873:(e,t,a)=>{a.d(t,{A:()=>s});var r=a(71205);async function s({request:e,databaseSlug:t,user:a,query:s}){try{let l=a.id,n=null;if(!s?.delegated)return{dbUserId:l};let i=s.dbUserId,d=`${process.env.DSQL_USER_DB_PREFIX}${i}_${t}`,o=`${process.env.DSQL_USER_DELEGATED_DB_COOKIE_PREFIX}${d}`;try{if(!e.cookies?.[o])throw Error("Cookie not present");let a=(0,r.A)({encryptedString:e.cookies[o]});if(!a)throw Error("Invalid Token");if((n=JSON.parse(a)).databaseSlug===t)return{dbUserId:l=n.rootUserId,rootUserId:n.rootUserId,rootUserName:n.rootUserName,rootUserEmail:n.rootUserEmail,rootUserImage:n.rootUserImage,databaseFullName:n.databaseFullName,databaseSlug:n.databaseSlug,allowedTables:n.allowedTables,priviledges:n.priviledges,database:n.databaseSlug,delegated:!0}}catch(e){}return{dbUserId:l}}catch(e){return null}}},65842:(e,t,a)=>{a.d(t,{A:()=>s});var r=a(76102);let s=a.n(r)().media.imageInputFileToBase64},23293:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(82544).A)("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]])},92441:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(82544).A)("BookText",[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1 0-5H20",key:"t4utmx"}],["path",{d:"M8 7h6",key:"1f0q6e"}],["path",{d:"M8 11h8",key:"vwpz6n"}]])},96089:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(82544).A)("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},34637:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(82544).A)("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]])},25088:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(82544).A)("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]])},72935:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(82544).A)("FileInput",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4",key:"1pf5j1"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M2 15h10",key:"jfw4w8"}],["path",{d:"m9 18 3-3-3-3",key:"112psh"}]])},29743:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(82544).A)("FileKey2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v6",key:"rc0qvx"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["circle",{cx:"4",cy:"16",r:"2",key:"1ehqvc"}],["path",{d:"m10 10-4.5 4.5",key:"7fwrp6"}],["path",{d:"m9 11 1 1",key:"wa6s5q"}]])},71296:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(82544).A)("FolderOutput",[["path",{d:"M2 7.5V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-1.5",key:"1yk7aj"}],["path",{d:"M2 13h10",key:"pgb2dq"}],["path",{d:"m5 10-3 3 3 3",key:"1r8ie0"}]])},10643:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(82544).A)("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]])},66916:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(82544).A)("HardDrive",[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]])},83158:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(82544).A)("Images",[["path",{d:"M18 22H4a2 2 0 0 1-2-2V6",key:"pblm9e"}],["path",{d:"m22 13-1.296-1.296a2.41 2.41 0 0 0-3.408 0L11 18",key:"nf6bnh"}],["circle",{cx:"12",cy:"8",r:"2",key:"1822b1"}],["rect",{width:"16",height:"16",x:"6",y:"2",rx:"2",key:"12espp"}]])},66918:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(82544).A)("RotateCw",[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]])},10321:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(82544).A)("ShieldEllipsis",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M8 12h.01",key:"czm47f"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M16 12h.01",key:"1l6xoz"}]])},98136:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(82544).A)("SquareTerminal",[["path",{d:"m7 11 2-2-2-2",key:"1lz0vl"}],["path",{d:"M11 13h4",key:"1p7l4v"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}]])},25294:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(82544).A)("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]])},77047:(e,t,a)=>{a.d(t,{A:()=>l});var r=a(29021),s=a.n(r);async function l({user:e,message:t,component:a,noMail:r,req:l}){let n=new Date,i=(()=>{if(!l)return null;try{let e=l.headers["x-forwarded-for"],t=l.headers["x-real-ip"],a=l.headers["cf-connecting-ip"],r=Array.isArray(e)?e[0]:e?.split(",")[0],s=a||r||t||l.socket.remoteAddress;if(!s)return null;return String(s)}catch(e){return null}})();try{let r=`🚀 SERVER ERROR =========================== +"use strict";(()=>{var e={};e.id=9582,e.ids=[9582],e.modules={30671:(e,t)=>{Object.defineProperty(t,"M",{enumerable:!0,get:function(){return function e(t,a){return a in t?t[a]:"then"in t&&"function"==typeof t.then?t.then(t=>e(t,a)):"function"==typeof t&&"default"===a?t:void 0}}})},5621:(e,t,a)=>{a.a(e,async(e,r)=>{try{a.r(t),a.d(t,{config:()=>g,default:()=>u,getServerSideProps:()=>h,getStaticPaths:()=>p,getStaticProps:()=>m,reportWebVitals:()=>y,routeModule:()=>w,unstable_getServerProps:()=>A,unstable_getServerSideProps:()=>v,unstable_getStaticParams:()=>b,unstable_getStaticPaths:()=>x,unstable_getStaticProps:()=>f});var s=a(63865),l=a(9455),n=a(30671),i=a(5583),d=a(19796),o=a(70193),c=e([o]);o=(c.then?(await c)():c)[0];let u=(0,n.M)(o,"default"),m=(0,n.M)(o,"getStaticProps"),p=(0,n.M)(o,"getStaticPaths"),h=(0,n.M)(o,"getServerSideProps"),g=(0,n.M)(o,"config"),y=(0,n.M)(o,"reportWebVitals"),f=(0,n.M)(o,"unstable_getStaticProps"),x=(0,n.M)(o,"unstable_getStaticPaths"),b=(0,n.M)(o,"unstable_getStaticParams"),A=(0,n.M)(o,"unstable_getServerProps"),v=(0,n.M)(o,"unstable_getServerSideProps"),w=new s.PagesRouteModule({definition:{kind:l.A.PAGES,page:"/admin/[user_id]/databases/[single]/users/add-user",pathname:"/admin/[user_id]/databases/[single]/users/add-user",bundlePath:"",filename:""},components:{App:d.default,Document:i.default},userland:o});r()}catch(e){r(e)}})},30565:(e,t,a)=>{a.a(e,async(e,r)=>{try{a.d(t,{A:()=>h});var s=a(8732),l=a(82015),n=a.n(l),i=a(53926),d=a(59023),o=a(46169),c=a(16757),u=a(49585),m=a(70193),p=e([m]);function h(){let{user:e,database:t,table:a,query:r,confirmedDelegetedUser:l}=n().useContext(m.AddNewDbUserContext),[p,h]=n().useState("invitation"),[g,y]=n().useState(!1),[f,x]=n().useState(!1),[b,A]=n().useState(["Edit"]),[v,w]=n().useState(t.db_slug),[_,S]=n().useState(null),[j,k]=n().useState(null),[D,N]=n().useState([]),[E,M]=n().useState([]);return(0,s.jsxs)(n().Fragment,{children:[(0,s.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,s.jsx)("div",{className:"w-full justify-between flex-wrap",children:(0,s.jsxs)("div",{children:[(0,s.jsx)(d.A,{}),(0,s.jsxs)("h1",{className:"text-3xl m-0",children:["Add A New User to ",t.db_name]})]})}),(0,s.jsx)(i.A,{user:e})]}),(0,s.jsxs)("section",{className:"paper",children:[g&&(0,s.jsx)(c.A,{}),(0,s.jsxs)("form",{onSubmit:a=>{a.preventDefault(),y(!0);let r=a.target,s=Array.from(r),l={};s.forEach(e=>{!e.nodeName?.match(/button/i)&&e.name&&e.value?.match(/./)&&(l[e.name]=e.value)});let n={payload:l,dbFullName:t.db_full_name,dbId:t.id};(0,o.A)("/api/addDbUser",{method:"post",body:n},!0).then(a=>{a.success?j?(j.imageName=`${v}-user-${a.newUserId}`,j.mimeType="jpeg",delete j.imageBase64Full,(0,o.A)("/api/addUserMedia",{method:"post",body:{media:[j],folder:v.replace(/_/g,"-"),type:"image"}},!0).then(r=>{(0,o.A)("/api/updateDbUser",{method:"post",body:{dbFullName:t.db_full_name,payload:{id:a.newUserId,image:r.mediaData[0].media_url,image_thumbnail:r.mediaData[0].media_thumbnail_url}}},!0).then(a=>{a.success&&(window.location.pathname=`/admin/${e?.id}/databases/${t.db_slug}/users`),setTimeout(()=>{y(!1)},500)})})):window.location.pathname=`/admin/${e?.id}/databases/${t.db_slug}/users`:setTimeout(()=>{y(!1)},500)})},className:"w-full flex flex-col items-stretch gap-4",children:[(0,s.jsx)(u.A,{user:e,targetDb:t.db_full_name,database:t,userImage:j,setUserImage:k}),(0,s.jsx)("button",{children:"Add User"})]})]})]})}m=(p.then?(await p)():p)[0],r()}catch(e){r(e)}})},49585:(e,t,a)=>{let r;a.d(t,{A:()=>m});var s=a(8732),l=a(82015),n=a.n(l),i=a(46169),d=a(10621),o=a(16757),c=a(83155),u=a(20136);function m({targetDb:e,database:t,user:a,userImage:l,setUserImage:m}){let[p,h]=n().useState(null),[g,y]=n().useState(!1);return(0,s.jsxs)(n().Fragment,{children:[g&&(0,s.jsx)(o.A,{}),p&&(0,s.jsx)(d.A,{message:p}),(0,s.jsx)("h3",{className:"m-0 text-lg font-semibold mb-1 text-slate-600 mt-4",children:"User information"}),(0,s.jsx)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:(0,s.jsx)(c.A,{title:"First Name",inputType:"text",name:"first_name",autoComplete:"given-name",onInputHandler:e=>{let t=e.target;t.value.match(/./)?(t.classList.remove("warning"),h(null)):t.classList.add("warning")},required:!0})}),(0,s.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:[(0,s.jsx)("label",{htmlFor:"last_name",children:"Last Name"}),(0,s.jsx)("input",{type:"text",name:"last_name",id:"last_name",placeholder:"Last Name",autoComplete:"family-name",onInput:e=>{let t=e.target;t.value.match(/./)?(t.classList.remove("warning"),h(null)):t.classList.add("warning")},required:!0})]}),(0,s.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:[(0,s.jsx)("label",{htmlFor:"username",children:"Username"}),(0,s.jsx)("input",{type:"text",name:"username",id:"username",placeholder:"Username",autoComplete:"username",onInput:t=>{let a=t.target;a.value.match(/./)?(a.classList.remove("warning"),h(null)):a.classList.add("warning"),window.clearTimeout(r),r=setTimeout(()=>{(0,i.A)(`/api/checkDuplicateData?type=username&value=${a.value}&tableName=users&dbFullName=${e}`).then(e=>{e?.result?(h("Username Already Exists"),a.classList.add("warning")):(h(null),a.classList.remove("warning"))})},300)}})]}),(0,s.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:[(0,s.jsx)("label",{htmlFor:"email_address",children:"Email Address"}),(0,s.jsx)("input",{type:"email",name:"email_address",id:"email_address",placeholder:"Email Address",autoComplete:"email",onInput:t=>{window.clearTimeout(r);let a=t.target;r=setTimeout(()=>{(0,i.A)(`/api/checkDuplicateData?type=email&value=${a.value}&tableName=users&dbFullName=${e}`).then(e=>{e?.result?(h("Email Already Exists"),a.classList.add("warning")):(h(null),a.classList.remove("warning"))})},300)},required:!0})]}),(0,s.jsx)(c.A,{title:"Phone Number",inputType:"text",name:"phone",autoComplete:"tel"}),(0,s.jsx)(c.A,{title:"Address",name:"address",autoComplete:"address"}),(0,s.jsxs)("div",{className:"flex-wrap xl:flex-nowrap",children:[(0,s.jsx)(c.A,{title:"City",name:"city",autoComplete:"city"}),(0,s.jsx)(c.A,{title:"State",name:"state",autoComplete:"state"}),(0,s.jsx)(c.A,{title:"Country",name:"country",autoComplete:"country"}),(0,s.jsx)(c.A,{title:"Zip Code",name:"zip_code",autoComplete:"zip_code"})]}),(0,s.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:[(0,s.jsx)("label",{htmlFor:"password",children:"Password"}),(0,s.jsx)("input",{type:"password",name:"password",id:"password",placeholder:"Password",required:!0})]}),(0,s.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:[(0,s.jsx)("label",{htmlFor:"confirm_password",children:"Confirm Password"}),(0,s.jsx)("input",{type:"password",name:"confirm_password",id:"confirm_password",placeholder:"Confirm Password",onInput:e=>{let t=e.target;t.closest("form")?.password.value===t.value?t.classList.remove("warning"):t.classList.add("warning")},required:!0})]}),(0,s.jsxs)("div",{className:"paper",children:[(0,s.jsx)("h3",{className:"m-0 text-lg font-semibold mb-1 text-slate-600",children:"User Image"}),(0,s.jsx)(u.A,{userImage:l,setUserImage:m})]})]})}},20136:(e,t,a)=>{a.d(t,{A:()=>i});var r=a(8732),s=a(82015),l=a.n(s),n=a(65842);function i({user:e,userImage:t,setUserImage:a,database:s,className:i}){let d=l().useRef();return(0,r.jsxs)("div",{className:"card no-hover col"+(i?" "+i:""),children:[(0,r.jsx)("div",{className:"bg-white rounded-full overflow-hidden w-24 h-24",children:(0,r.jsx)("img",{src:t?"string"==typeof t?t:t.imageBase64Full:"/images/user-preset.png",alt:"Database Image",width:100,className:"w-full h-full object-cover",ref:d,"data-imagepreview":"image"})}),(0,r.jsxs)("div",{className:"w-full flex-col image-selector-wrapper",children:[(0,r.jsx)("div",{className:"button outlined secondary w-full whitespace-normal",onClick:e=>{e.target.closest(".image-selector-wrapper").querySelector("input").click()},children:"Upload Image"}),(0,r.jsx)("input",{type:"file",accept:".png,.jpg,.jpeg,.webp",placeholder:"Choose Database Image",className:"hidden",onChange:async e=>{let t=e.target.files?.[0];if(t){let e=await (0,n.A)({imageInputFile:t,maxWidth:400});a?.(e)}else window.alert("No File Provided!")}})]})]})}},10621:(e,t,a)=>{a.d(t,{A:()=>s});var r=a(8732);function s({message:e}){return(0,r.jsxs)("div",{className:"p-2 bg-orange-50 w-full justify-center rounded text-sm text-orange-700 border border-orange-400 border-solid",children:[(0,r.jsx)("img",{src:"/images/warning.png",alt:"Warning Image Icon",width:22,className:"-my-2"}),(0,r.jsx)("span",{children:e})]})}a(82015)},22873:(e,t,a)=>{a.d(t,{A:()=>s});var r=a(71205);async function s({request:e,databaseSlug:t,user:a,query:s}){try{let l=a.id,n=null;if(!s?.delegated)return{dbUserId:l};let i=s.dbUserId,d=`${process.env.DSQL_USER_DB_PREFIX}${i}_${t}`,o=`${process.env.DSQL_USER_DELEGATED_DB_COOKIE_PREFIX}${d}`;try{if(!e.cookies?.[o])throw Error("Cookie not present");let a=(0,r.A)({encryptedString:e.cookies[o]});if(!a)throw Error("Invalid Token");if((n=JSON.parse(a)).databaseSlug===t)return{dbUserId:l=n.rootUserId,rootUserId:n.rootUserId,rootUserName:n.rootUserName,rootUserEmail:n.rootUserEmail,rootUserImage:n.rootUserImage,databaseFullName:n.databaseFullName,databaseSlug:n.databaseSlug,allowedTables:n.allowedTables,priviledges:n.priviledges,database:n.databaseSlug,delegated:!0}}catch(e){}return{dbUserId:l}}catch(e){return null}}},65842:(e,t,a)=>{a.d(t,{A:()=>s});var r=a(76102);let s=a.n(r)().media.imageInputFileToBase64},23293:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(82544).A)("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]])},92441:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(82544).A)("BookText",[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1 0-5H20",key:"t4utmx"}],["path",{d:"M8 7h6",key:"1f0q6e"}],["path",{d:"M8 11h8",key:"vwpz6n"}]])},96089:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(82544).A)("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},34637:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(82544).A)("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]])},25088:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(82544).A)("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]])},72935:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(82544).A)("FileInput",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4",key:"1pf5j1"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M2 15h10",key:"jfw4w8"}],["path",{d:"m9 18 3-3-3-3",key:"112psh"}]])},29743:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(82544).A)("FileKey2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v6",key:"rc0qvx"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["circle",{cx:"4",cy:"16",r:"2",key:"1ehqvc"}],["path",{d:"m10 10-4.5 4.5",key:"7fwrp6"}],["path",{d:"m9 11 1 1",key:"wa6s5q"}]])},71296:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(82544).A)("FolderOutput",[["path",{d:"M2 7.5V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-1.5",key:"1yk7aj"}],["path",{d:"M2 13h10",key:"pgb2dq"}],["path",{d:"m5 10-3 3 3 3",key:"1r8ie0"}]])},10643:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(82544).A)("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]])},66916:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(82544).A)("HardDrive",[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]])},83158:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(82544).A)("Images",[["path",{d:"M18 22H4a2 2 0 0 1-2-2V6",key:"pblm9e"}],["path",{d:"m22 13-1.296-1.296a2.41 2.41 0 0 0-3.408 0L11 18",key:"nf6bnh"}],["circle",{cx:"12",cy:"8",r:"2",key:"1822b1"}],["rect",{width:"16",height:"16",x:"6",y:"2",rx:"2",key:"12espp"}]])},66918:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(82544).A)("RotateCw",[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]])},10321:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(82544).A)("ShieldEllipsis",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M8 12h.01",key:"czm47f"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M16 12h.01",key:"1l6xoz"}]])},98136:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(82544).A)("SquareTerminal",[["path",{d:"m7 11 2-2-2-2",key:"1lz0vl"}],["path",{d:"M11 13h4",key:"1p7l4v"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}]])},25294:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(82544).A)("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]])},77047:(e,t,a)=>{a.d(t,{A:()=>l});var r=a(29021),s=a.n(r);async function l({user:e,message:t,component:a,noMail:r,req:l}){let n=new Date,i=(()=>{if(!l)return null;try{let e=l.headers["x-forwarded-for"],t=l.headers["x-real-ip"],a=l.headers["cf-connecting-ip"],r=Array.isArray(e)?e[0]:e?.split(",")[0],s=a||r||t||l.socket.remoteAddress;if(!s)return null;return String(s)}catch(e){return null}})();try{let r=`🚀 SERVER ERROR =========================== Error Message: ${t} Component: ${a}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(r+=` User Id: ${e?.id} @@ -13,4 +13,4 @@ Date: ${n.toDateString()} -${d}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},52854:(e,t,a)=>{a.d(t,{A:()=>c});var r=a(71205);let s=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/;async function l({unparsedResults:e,tableSchema:t}){let a=[];try{for(let l=0;l",t.message),e}}var n=a(77047),i=a(71934),d=a(43651),o=a(16175);async function c({queryString:e,queryValuesArray:t,database:a,tableSchema:r,useLocal:s}){let c;let u=!!s||!!a?.match(/^datasquirel$/),m=s?o.A:u?i.A:d.A;try{c=e&&t&&Array.isArray(t)&&t[0]?u?await m(e,t):await m({paradigm:"Full Access",queryString:e,queryValues:t}):u?await m(e):await m({paradigm:"Full Access",queryString:e})}catch(e){console.log(`varDatabaseDbHandler Error: ${e.message}`),(0,n.A)({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(c&&r)try{let e=c;return await l({unparsedResults:e,tableSchema:r})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",a,e),(0,n.A)({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(c)return c;else return null}},43651:(e,t,a)=>{async function r(e,t,a){try{if("string"==typeof t){let r=await e.query(s(t),a);return JSON.parse(JSON.stringify(r))}if("object"!=typeof t)return null;{let a=[];for(let r=0;rl})},16175:(e,t,a)=>{a.d(t,{A:()=>i});var r=a(9973),s=a.n(r),l=a(29021),n=a.n(l);async function i(...e){let t=s()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let t=`${e}/ca-cert.pem`;if(!n().existsSync(t)){console.log(`${t} does not exist`);return}return{ca:n().readFileSync(`${e}/ca-cert.pem`),rejectUnauthorized:!1}}()},onConnect:()=>{console.log("Connection Successful!")},onConnectError:e=>{console.log("Connection Error",e.message)},onError:e=>{console.log("Client Error",e.message)}});console.log("Querying ...");try{let a=await t.query(...e);return await t.end(),JSON.parse(JSON.stringify(a))}catch(e){return console.log("DB Error =>",e.message),{success:!1,error:e.message}}}},70193:(e,t,a)=>{a.a(e,async(e,r)=>{try{a.r(t),a.d(t,{AddNewDbUserContext:()=>x,default:()=>g,getServerSideProps:()=>y});var s=a(8732),l=a(82015),n=a.n(l),i=a(25562),d=a(92702),o=a(30565),c=a(52854),u=a(55880),m=a(22873),p=a(71934),h=e([o,u]);[o,u]=h.then?(await h)():h;let f=a(29021),x=n().createContext({});function g({user:e,database:t,table:a,query:r,confirmedDelegetedUser:l}){let n=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("title",{children:"Users | Datasquirel"}),(0,s.jsx)("meta",{name:"description",content:"Welcome to your data app"})]});return(0,s.jsx)(i.A,{head:n,user:e,extraHeaderContent:(0,s.jsx)(u.A,{database:t,query:r,confirmedDelegetedUser:l,user:e}),children:(0,s.jsx)(x.Provider,{value:{user:e,database:t,table:a,query:r,confirmedDelegetedUser:l},children:(0,s.jsx)(o.A,{})})})}async function y({req:e,res:t,query:a}){let r=await (0,d.A)(e,t);if(!r?.logged_in_status)return{redirect:{destination:"/logout",permanent:!1}};let s=await (0,m.A)({request:e,user:r,databaseSlug:a.single,query:a});if(!s)return{redirect:{destination:"/admin",permanent:!1}};let{dbUserId:l,rootUserId:n}=s,i=await (0,p.A)(`SELECT * FROM user_databases WHERE user_id='${l}' AND db_slug='${a.single}'`);if(!i||!i[0])return{redirect:{destination:`/admin/${r?.id}/databases`,permanent:!1}};let o=JSON.parse(f.readFileSync(`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${l}/main.json`,"utf-8")),u=(o.filter(e=>e.dbFullName===i[0].db_full_name)[0]?.tables).filter(e=>"users"===e.tableName)[0];return await (0,c.A)({database:i[0].db_full_name,queryString:`SELECT * ${i[0].db_full_name}.FROM users LIMIT 20`,tableSchema:u}),{props:{user:r,database:i[0],table:u||{},query:a,confirmedDelegetedUser:s}}}r()}catch(e){r(e)}})},9455:(e,t)=>{Object.defineProperty(t,"A",{enumerable:!0,get:function(){return a}});var a=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},76102:e=>{e.exports=require("@moduletrace/datasquirel/dist/client")},13893:e=>{e.exports=require("@moduletrace/datasquirel/dist/client/fetch")},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{e.exports=require("next/head")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},8732:e=>{e.exports=require("react/jsx-runtime")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},75979:e=>{e.exports=import("tailwind-merge")},49436:e=>{e.exports=JSON.parse('["Edit Tables","Update Entries","Create Table","Delete Entries","Delete Tables"]')}};var t=require("../../../../../../webpack-runtime.js");t.C(e);var a=e=>t(t.s=e),r=t.X(0,[883,9821,9796,5392,3634,3155],()=>a(5621));module.exports=r})(); \ No newline at end of file +${d}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},52854:(e,t,a)=>{a.d(t,{A:()=>c});var r=a(71205);let s=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/;async function l({unparsedResults:e,tableSchema:t}){let a=[];try{for(let l=0;l",t.message),e}}var n=a(77047),i=a(71934),d=a(43651),o=a(16175);async function c({queryString:e,queryValuesArray:t,database:a,tableSchema:r,useLocal:s}){let c;let u=!!s||!!a?.match(/^datasquirel$/),m=s?o.A:u?i.A:d.A;try{c=e&&t&&Array.isArray(t)&&t[0]?u?await m(e,t):await m({paradigm:"Full Access",queryString:e,queryValues:t}):u?await m(e):await m({paradigm:"Full Access",queryString:e})}catch(e){console.log(`varDatabaseDbHandler Error: ${e.message}`),(0,n.A)({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(c&&r)try{let e=c;return await l({unparsedResults:e,tableSchema:r})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",a,e),(0,n.A)({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(c)return c;else return null}},43651:(e,t,a)=>{async function r(e,t,a){try{if("string"==typeof t){let r=await e.query(s(t),a);return JSON.parse(JSON.stringify(r))}if("object"!=typeof t)return null;{let a=[];for(let r=0;rl})},16175:(e,t,a)=>{a.d(t,{A:()=>i});var r=a(9973),s=a.n(r),l=a(29021),n=a.n(l);async function i(...e){let t=s()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let t=`${e}/ca-cert.pem`;if(!n().existsSync(t)){console.log(`${t} does not exist`);return}return{ca:n().readFileSync(`${e}/ca-cert.pem`),rejectUnauthorized:!1}}()},onConnect:()=>{console.log("Connection Successful!")},onConnectError:e=>{console.log("Connection Error",e.message)},onError:e=>{console.log("Client Error",e.message)}});console.log("Querying ...");try{let a=await t.query(...e);return await t.end(),JSON.parse(JSON.stringify(a))}catch(e){return console.log("DB Error =>",e.message),{success:!1,error:e.message}}}},70193:(e,t,a)=>{a.a(e,async(e,r)=>{try{a.r(t),a.d(t,{AddNewDbUserContext:()=>b,default:()=>f,getServerSideProps:()=>x});var s=a(8732),l=a(29021),n=a.n(l),i=a(82015),d=a.n(i),o=a(25562),c=a(92702),u=a(30565),m=a(52854),p=a(55880),h=a(22873),g=a(71934),y=e([u,p]);[u,p]=y.then?(await y)():y;let b=d().createContext({});function f({user:e,database:t,table:a,query:r,confirmedDelegetedUser:l}){let n=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("title",{children:"Users | Datasquirel"}),(0,s.jsx)("meta",{name:"description",content:"Welcome to your data app"})]});return(0,s.jsx)(o.A,{head:n,user:e,extraHeaderContent:(0,s.jsx)(p.A,{database:t,query:r,confirmedDelegetedUser:l,user:e}),children:(0,s.jsx)(b.Provider,{value:{user:e,database:t,table:a,query:r,confirmedDelegetedUser:l},children:(0,s.jsx)(u.A,{})})})}async function x({req:e,res:t,query:a}){let r=await (0,c.A)(e,t);if(!r?.logged_in_status)return{redirect:{destination:"/logout",permanent:!1}};let s=await (0,h.A)({request:e,user:r,databaseSlug:a.single,query:a});if(!s)return{redirect:{destination:"/admin",permanent:!1}};let{dbUserId:l,rootUserId:i}=s,d=await (0,g.A)(`SELECT * FROM user_databases WHERE user_id='${l}' AND db_slug='${a.single}'`);if(!d||!d[0])return{redirect:{destination:`/admin/${r?.id}/databases`,permanent:!1}};let o=JSON.parse(n().readFileSync(`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${l}/main.json`,"utf-8")),u=(o.filter(e=>e.dbFullName===d[0].db_full_name)[0]?.tables).filter(e=>"users"===e.tableName)[0];return await (0,m.A)({database:d[0].db_full_name,queryString:`SELECT * ${d[0].db_full_name}.FROM users LIMIT 20`,tableSchema:u}),{props:{user:r,database:d[0],table:u||{},query:a,confirmedDelegetedUser:s}}}r()}catch(e){r(e)}})},9455:(e,t)=>{Object.defineProperty(t,"A",{enumerable:!0,get:function(){return a}});var a=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},76102:e=>{e.exports=require("@moduletrace/datasquirel/dist/client")},13893:e=>{e.exports=require("@moduletrace/datasquirel/dist/client/fetch")},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{e.exports=require("next/head")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},8732:e=>{e.exports=require("react/jsx-runtime")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},75979:e=>{e.exports=import("tailwind-merge")}};var t=require("../../../../../../webpack-runtime.js");t.C(e);var a=e=>t(t.s=e),r=t.X(0,[883,9821,9796,5392,3634,3155],()=>a(5621));module.exports=r})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/users/add-user.js.nft.json b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/users/add-user.js.nft.json index b3bfa6d..b4b1506 100644 --- a/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/users/add-user.js.nft.json +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/users/add-user.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../../../../../jsonData/userPriviledges.json","../../../../../../../../node_modules/@moduletrace/datasquirel/dist/client/auth/github/getAccessToken.js","../../../../../../../../node_modules/@moduletrace/datasquirel/dist/client/auth/google/getAccessToken.js","../../../../../../../../node_modules/@moduletrace/datasquirel/dist/client/auth/logout.js","../../../../../../../../node_modules/@moduletrace/datasquirel/dist/client/fetch/index.js","../../../../../../../../node_modules/@moduletrace/datasquirel/dist/client/index.js","../../../../../../../../node_modules/@moduletrace/datasquirel/dist/client/media/imageInputFileToBase64.js","../../../../../../../../node_modules/@moduletrace/datasquirel/dist/client/media/imageInputToBase64.js","../../../../../../../../node_modules/@moduletrace/datasquirel/dist/client/media/inputFileToBase64.js","../../../../../../../../node_modules/@moduletrace/datasquirel/dist/client/utils/parseClientCookies.js","../../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/ejson.js","../../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/numberfy.js","../../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/serialize-cookies.js","../../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/serialize-query.js","../../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/slugify.js","../../../../../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../../../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../../../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../../../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../../../../../../node_modules/@swc/helpers/package.json","../../../../../../../../node_modules/bignumber.js/bignumber.js","../../../../../../../../node_modules/bignumber.js/package.json","../../../../../../../../node_modules/client-only/index.js","../../../../../../../../node_modules/client-only/package.json","../../../../../../../../node_modules/core-util-is/lib/util.js","../../../../../../../../node_modules/core-util-is/package.json","../../../../../../../../node_modules/inherits/inherits.js","../../../../../../../../node_modules/inherits/inherits_browser.js","../../../../../../../../node_modules/inherits/package.json","../../../../../../../../node_modules/isarray/index.js","../../../../../../../../node_modules/isarray/package.json","../../../../../../../../node_modules/lodash/lodash.js","../../../../../../../../node_modules/lodash/package.json","../../../../../../../../node_modules/mysql/index.js","../../../../../../../../node_modules/mysql/lib/Connection.js","../../../../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../../../../node_modules/mysql/lib/Pool.js","../../../../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../../../../node_modules/mysql/package.json","../../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../../../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../../../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../../../../../../node_modules/next/dist/shared/lib/head.js","../../../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../../../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../../../../../../node_modules/next/head.js","../../../../../../../../node_modules/next/package.json","../../../../../../../../node_modules/process-nextick-args/index.js","../../../../../../../../node_modules/process-nextick-args/package.json","../../../../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../../../../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../../../../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../../../../../../node_modules/react-dom/cjs/react-dom.development.js","../../../../../../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../../../../../../node_modules/react-dom/index.js","../../../../../../../../node_modules/react-dom/package.json","../../../../../../../../node_modules/react-dom/server.browser.js","../../../../../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../../../../../node_modules/react/cjs/react.development.js","../../../../../../../../node_modules/react/cjs/react.production.min.js","../../../../../../../../node_modules/react/index.js","../../../../../../../../node_modules/react/jsx-runtime.js","../../../../../../../../node_modules/react/package.json","../../../../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../../../../node_modules/readable-stream/package.json","../../../../../../../../node_modules/readable-stream/readable.js","../../../../../../../../node_modules/safe-buffer/index.js","../../../../../../../../node_modules/safe-buffer/package.json","../../../../../../../../node_modules/scheduler/cjs/scheduler.development.js","../../../../../../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../../../../../../node_modules/scheduler/index.js","../../../../../../../../node_modules/scheduler/package.json","../../../../../../../../node_modules/serverless-mysql/index.js","../../../../../../../../node_modules/serverless-mysql/package.json","../../../../../../../../node_modules/sqlstring/index.js","../../../../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../../../../node_modules/sqlstring/package.json","../../../../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../../../../node_modules/string_decoder/package.json","../../../../../../../../node_modules/styled-jsx/dist/index/index.js","../../../../../../../../node_modules/styled-jsx/index.js","../../../../../../../../node_modules/styled-jsx/package.json","../../../../../../../../node_modules/tailwind-merge/dist/bundle-cjs.js","../../../../../../../../node_modules/tailwind-merge/dist/bundle-mjs.mjs","../../../../../../../../node_modules/tailwind-merge/package.json","../../../../../../../../node_modules/util-deprecate/node.js","../../../../../../../../node_modules/util-deprecate/package.json","../../../../../../../../package.json","../../../../../../../package.json","../../../../../../chunks/1251.js","../../../../../../chunks/1579.js","../../../../../../chunks/194.js","../../../../../../chunks/2282.js","../../../../../../chunks/3155.js","../../../../../../chunks/3474.js","../../../../../../chunks/3496.js","../../../../../../chunks/3634.js","../../../../../../chunks/3704.js","../../../../../../chunks/3791.js","../../../../../../chunks/4627.js","../../../../../../chunks/5392.js","../../../../../../chunks/5839.js","../../../../../../chunks/5954.js","../../../../../../chunks/6160.js","../../../../../../chunks/6202.js","../../../../../../chunks/6521.js","../../../../../../chunks/6622.js","../../../../../../chunks/6903.js","../../../../../../chunks/725.js","../../../../../../chunks/8704.js","../../../../../../chunks/8760.js","../../../../../../chunks/883.js","../../../../../../chunks/9796.js","../../../../../../chunks/9821.js","../../../../../../chunks/9901.js","../../../../../../webpack-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../../../../../node_modules/@moduletrace/datasquirel/dist/client/auth/github/getAccessToken.js","../../../../../../../../node_modules/@moduletrace/datasquirel/dist/client/auth/google/getAccessToken.js","../../../../../../../../node_modules/@moduletrace/datasquirel/dist/client/auth/logout.js","../../../../../../../../node_modules/@moduletrace/datasquirel/dist/client/fetch/index.js","../../../../../../../../node_modules/@moduletrace/datasquirel/dist/client/index.js","../../../../../../../../node_modules/@moduletrace/datasquirel/dist/client/media/imageInputFileToBase64.js","../../../../../../../../node_modules/@moduletrace/datasquirel/dist/client/media/imageInputToBase64.js","../../../../../../../../node_modules/@moduletrace/datasquirel/dist/client/media/inputFileToBase64.js","../../../../../../../../node_modules/@moduletrace/datasquirel/dist/client/utils/parseClientCookies.js","../../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/ejson.js","../../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/numberfy.js","../../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/serialize-cookies.js","../../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/serialize-query.js","../../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/slugify.js","../../../../../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../../../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../../../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../../../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../../../../../../node_modules/@swc/helpers/package.json","../../../../../../../../node_modules/bignumber.js/bignumber.js","../../../../../../../../node_modules/bignumber.js/package.json","../../../../../../../../node_modules/client-only/index.js","../../../../../../../../node_modules/client-only/package.json","../../../../../../../../node_modules/core-util-is/lib/util.js","../../../../../../../../node_modules/core-util-is/package.json","../../../../../../../../node_modules/inherits/inherits.js","../../../../../../../../node_modules/inherits/inherits_browser.js","../../../../../../../../node_modules/inherits/package.json","../../../../../../../../node_modules/isarray/index.js","../../../../../../../../node_modules/isarray/package.json","../../../../../../../../node_modules/lodash/lodash.js","../../../../../../../../node_modules/lodash/package.json","../../../../../../../../node_modules/mysql/index.js","../../../../../../../../node_modules/mysql/lib/Connection.js","../../../../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../../../../node_modules/mysql/lib/Pool.js","../../../../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../../../../node_modules/mysql/package.json","../../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../../../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../../../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../../../../../../node_modules/next/dist/shared/lib/head.js","../../../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../../../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../../../../../../node_modules/next/head.js","../../../../../../../../node_modules/next/package.json","../../../../../../../../node_modules/process-nextick-args/index.js","../../../../../../../../node_modules/process-nextick-args/package.json","../../../../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../../../../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../../../../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../../../../../../node_modules/react-dom/cjs/react-dom.development.js","../../../../../../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../../../../../../node_modules/react-dom/index.js","../../../../../../../../node_modules/react-dom/package.json","../../../../../../../../node_modules/react-dom/server.browser.js","../../../../../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../../../../../node_modules/react/cjs/react.development.js","../../../../../../../../node_modules/react/cjs/react.production.min.js","../../../../../../../../node_modules/react/index.js","../../../../../../../../node_modules/react/jsx-runtime.js","../../../../../../../../node_modules/react/package.json","../../../../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../../../../node_modules/readable-stream/package.json","../../../../../../../../node_modules/readable-stream/readable.js","../../../../../../../../node_modules/safe-buffer/index.js","../../../../../../../../node_modules/safe-buffer/package.json","../../../../../../../../node_modules/scheduler/cjs/scheduler.development.js","../../../../../../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../../../../../../node_modules/scheduler/index.js","../../../../../../../../node_modules/scheduler/package.json","../../../../../../../../node_modules/serverless-mysql/index.js","../../../../../../../../node_modules/serverless-mysql/package.json","../../../../../../../../node_modules/sqlstring/index.js","../../../../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../../../../node_modules/sqlstring/package.json","../../../../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../../../../node_modules/string_decoder/package.json","../../../../../../../../node_modules/styled-jsx/dist/index/index.js","../../../../../../../../node_modules/styled-jsx/index.js","../../../../../../../../node_modules/styled-jsx/package.json","../../../../../../../../node_modules/tailwind-merge/dist/bundle-cjs.js","../../../../../../../../node_modules/tailwind-merge/dist/bundle-mjs.mjs","../../../../../../../../node_modules/tailwind-merge/package.json","../../../../../../../../node_modules/util-deprecate/node.js","../../../../../../../../node_modules/util-deprecate/package.json","../../../../../../../../package.json","../../../../../../../package.json","../../../../../../chunks/1251.js","../../../../../../chunks/1579.js","../../../../../../chunks/194.js","../../../../../../chunks/2282.js","../../../../../../chunks/3155.js","../../../../../../chunks/3474.js","../../../../../../chunks/3496.js","../../../../../../chunks/3634.js","../../../../../../chunks/3704.js","../../../../../../chunks/3791.js","../../../../../../chunks/4627.js","../../../../../../chunks/5392.js","../../../../../../chunks/5839.js","../../../../../../chunks/5954.js","../../../../../../chunks/6160.js","../../../../../../chunks/6202.js","../../../../../../chunks/6521.js","../../../../../../chunks/6622.js","../../../../../../chunks/6903.js","../../../../../../chunks/725.js","../../../../../../chunks/8704.js","../../../../../../chunks/8760.js","../../../../../../chunks/883.js","../../../../../../chunks/9796.js","../../../../../../chunks/9821.js","../../../../../../chunks/9901.js","../../../../../../webpack-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/admin/[user_id]/schema.js b/dsql-app/.local_dist/server/pages/admin/[user_id]/schema.js index 04cb6ab..b637be8 100644 --- a/dsql-app/.local_dist/server/pages/admin/[user_id]/schema.js +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/schema.js @@ -1 +1 @@ -"use strict";(()=>{var e={};e.id=8591,e.ids=[8591],e.modules={30671:(e,t)=>{Object.defineProperty(t,"M",{enumerable:!0,get:function(){return function e(t,a){return a in t?t[a]:"then"in t&&"function"==typeof t.then?t.then(t=>e(t,a)):"function"==typeof t&&"default"===a?t:void 0}}})},25355:(e,t,a)=>{a.a(e,async(e,r)=>{try{a.r(t),a.d(t,{config:()=>f,default:()=>u,getServerSideProps:()=>m,getStaticPaths:()=>p,getStaticProps:()=>h,reportWebVitals:()=>x,routeModule:()=>j,unstable_getServerProps:()=>A,unstable_getServerSideProps:()=>b,unstable_getStaticParams:()=>g,unstable_getStaticPaths:()=>v,unstable_getStaticProps:()=>y});var s=a(63865),n=a(9455),l=a(30671),i=a(5583),c=a(19796),d=a(2207),o=e([d]);d=(o.then?(await o)():o)[0];let u=(0,l.M)(d,"default"),h=(0,l.M)(d,"getStaticProps"),p=(0,l.M)(d,"getStaticPaths"),m=(0,l.M)(d,"getServerSideProps"),f=(0,l.M)(d,"config"),x=(0,l.M)(d,"reportWebVitals"),y=(0,l.M)(d,"unstable_getStaticProps"),v=(0,l.M)(d,"unstable_getStaticPaths"),g=(0,l.M)(d,"unstable_getStaticParams"),A=(0,l.M)(d,"unstable_getServerProps"),b=(0,l.M)(d,"unstable_getServerSideProps"),j=new s.PagesRouteModule({definition:{kind:n.A.PAGES,page:"/admin/[user_id]/schema",pathname:"/admin/[user_id]/schema",bundlePath:"",filename:""},components:{App:c.default,Document:i.default},userland:d});r()}catch(e){r(e)}})},61637:(e,t,a)=>{a.a(e,async(e,r)=>{try{a.d(t,{A:()=>p});var s=a(8732),n=a(82015),l=a.n(n),i=a(53926),c=a(80830),d=a(2207);a(46169);var o=a(84894),u=a(60374),h=e([d,o]);function p(){let{dbSchemaData:e,user:t}=l().useContext(d.UserSchemaContext),[a,r]=l().useState(e),[n,h]=l().useState(null),[p,m]=l().useState(null),[f,x]=l().useState(null);return(0,s.jsxs)(l().Fragment,{children:[(0,s.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,s.jsx)("div",{className:"",children:(0,s.jsx)("h1",{className:"text-3xl m-0",children:"User Schema"})}),(0,s.jsx)(i.A,{user:t})]}),(0,s.jsx)("section",{className:"paper",children:(0,s.jsxs)("div",{className:"flex-col items-start w-full",children:[(0,s.jsxs)("div",{className:"w-full justify-between",children:[(0,s.jsx)("h2",{className:"text-xl m-0",children:"Database SCHEMA JSON"}),(0,s.jsxs)("div",{children:[(0,s.jsx)(c.A,{required:!0,selectOptions:[{title:"All Databases",payload:"none"},...e.map((e,t)=>({title:e.dbName,payload:e.dbFullName,name:e.dbFullName}))],name:"databases",onChangeHandler:e=>{e.target.value?.match(/^none$/)?h(null):h(e.target.value)}}),p&&p[0]&&(0,s.jsx)(c.A,{required:!0,selectOptions:[{title:"All Tables",payload:"none"},...p.map((e,t)=>({title:e.tableFullName,payload:e.tableName,name:e.tableName}))],name:"database_tables",onChangeHandler:e=>{e.target.value?.match(/^none$/)?x(null):x(e.target.value)}})]})]}),(0,s.jsx)(o.A,{content:u.A.stringify(a,null,4),readOnly:!0,options:{wrap:!0},wrapperProps:{className:"h-[60vh]"}})]})})]})}[d,o]=h.then?(await h)():h,r()}catch(e){r(e)}})},6789:(e,t,a)=>{a.d(t,{A:()=>r});function r({editorHTMLElementRef:e,fieldObject:t,setRefresh:a,language:r="javascript",entry:s,jsonTextEditors:n,editorRef:l,readOnly:i,initialContent:c,options:d}){try{if(!ace?.edit||!e.current){console.log("Ace Editor not found!"),setTimeout(()=>{a?.(e=>e+1)},1e3);return}let o=ace.edit(e.current);o.setOptions({mode:"ace/mode/"+r,value:c||(t?.defaultValue?t.defaultValue:t?.fieldName&&s?.[t.fieldName]?(()=>{if("json"!==r)return s[t.fieldName];try{return JSON.stringify(JSON.parse(s[t.fieldName]),null,4)}catch(e){return s[t.fieldName]}})():""),placeholder:"json"==r?"{}":"",enableBasicAutocompletion:!0,enableLiveAutocompletion:!0,readOnly:i,...d}),l&&t?.fieldName&&(n?.current.push({fieldName:t.fieldName,ref:l}),l.current=o);try{ace.require("ace/ext/beautify").beautify(o.session)}catch(e){}}catch(e){console.log("JSON Editor ERROR =>",e.message)}}},80830:(e,t,a)=>{a.d(t,{A:()=>n});var r=a(8732),s=a(58526);function n({selectOptions:e,name:t,onChangeHandler:a,required:n,setAlert:l,title:i,defaultValue:c,info:d,id:o}){try{function u(e){if(e.type.match(/enter/i)&&window.innerWidth<1200)return;let t=e.target.closest(".info-wrapper"),a=t.querySelector(".info-dropdown");if(e.type.match(/leave/i)&&!a.classList.contains("hidden")){a.classList.add("hidden");return}if(!(e.type.match(/leave/i)&&a.classList.contains("hidden"))){if(!t){a.classList.add("hidden");return}if(a.classList.contains("hidden")){a.classList.remove("hidden");return}a.classList.add("hidden")}}return(0,r.jsxs)("div",{className:"form-select-block flex items-start flex-col gap-0.5 w-full relative"+(d?" pr-8":""),children:[i&&(0,r.jsxs)("label",{htmlFor:t,children:[i,n?"":" (optional)"]}),(0,r.jsxs)("div",{className:"flex items-center w-full relative",children:[(0,r.jsx)("select",{name:t,id:o||t,className:"w-full bg-white",required:n,onChange:e=>{l&&l(null),e.target.classList.remove("warning"),a&&a(e)},defaultValue:c||void 0,children:e.map((e,t)=>{let{payload:a,title:s}=e;return(0,r.jsx)("option",{value:a,selected:!!e.default,children:s},t+1)})}),(0,r.jsx)(s.A,{className:"absolute right-2 text-base text-slate-500 pointer-events-none",size:20}),d&&(0,r.jsxs)("div",{className:"info-wrapper absolute -right-10 w-8 h-8 rounded-full bg-white flex items-center justify-center z-10",style:{top:"50%",transform:"translate(0,-50%)"},onMouseEnter:u,onMouseLeave:u,onClick:u,children:[(0,r.jsx)("img",{src:"/images/info-outlined-black.png",alt:"",className:"w-6 h-6 object-contain opacity-60 pointer-events-none"}),(0,r.jsx)("div",{className:"info-dropdown absolute top-9 right-0 bg-white w-52 md:w-96 p-2 sm:p-6 shadow-xl rounded hidden text-center border border-slate-300 border-solid",children:(0,r.jsx)("span",{children:d})}),(0,r.jsx)("div",{className:"absolute -top-2 w-12",style:{height:"45px"}})]})]})]})}catch(e){return console.log("ERROR in FormSelect =>",e),(0,r.jsx)("div",{children:"Form Select Error"})}}a(82015)},84894:(e,t,a)=>{a.a(e,async(e,r)=>{try{a.d(t,{A:()=>d});var s=a(8732);a(46169);var n=a(82015),l=a.n(n);a(6789);var i=a(75979),c=e([i]);function d({editorRef:e,content:t,readOnly:a,language:r="javascript",options:n,wrapperProps:c}){try{let e=l().useRef(),[t,a]=l().useState(0);return(0,s.jsx)("div",{...c,ref:e,className:(0,i.twMerge)("ace-editor-wrapper w-full h-full minimal-scrollbars all-children",c?.className)})}catch(e){return(0,s.jsx)(l().Fragment,{children:(0,s.jsx)("h2",{className:"text-xl m-0",children:"Editor Error"})})}}i=(c.then?(await c)():c)[0],r()}catch(e){r(e)}})},66485:(e,t,a)=>{a.d(t,{A:()=>s});var r=a(8732);function s(){return(0,r.jsxs)("a",{href:"/email-verification",className:"card w-full items-center justify-center py-4 gap-2",children:[(0,r.jsx)("img",{src:"/images/warning.png",alt:"Down Arrow",width:25,className:""}),(0,r.jsx)("span",{children:"Your Account is not verified. Please verify your account."})]})}a(82015)},23293:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(82544).A)("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]])},92441:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(82544).A)("BookText",[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1 0-5H20",key:"t4utmx"}],["path",{d:"M8 7h6",key:"1f0q6e"}],["path",{d:"M8 11h8",key:"vwpz6n"}]])},34637:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(82544).A)("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]])},29743:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(82544).A)("FileKey2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v6",key:"rc0qvx"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["circle",{cx:"4",cy:"16",r:"2",key:"1ehqvc"}],["path",{d:"m10 10-4.5 4.5",key:"7fwrp6"}],["path",{d:"m9 11 1 1",key:"wa6s5q"}]])},10643:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(82544).A)("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]])},66916:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(82544).A)("HardDrive",[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]])},83158:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(82544).A)("Images",[["path",{d:"M18 22H4a2 2 0 0 1-2-2V6",key:"pblm9e"}],["path",{d:"m22 13-1.296-1.296a2.41 2.41 0 0 0-3.408 0L11 18",key:"nf6bnh"}],["circle",{cx:"12",cy:"8",r:"2",key:"1822b1"}],["rect",{width:"16",height:"16",x:"6",y:"2",rx:"2",key:"12espp"}]])},66918:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(82544).A)("RotateCw",[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]])},10321:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(82544).A)("ShieldEllipsis",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M8 12h.01",key:"czm47f"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M16 12h.01",key:"1l6xoz"}]])},25294:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(82544).A)("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]])},60374:(e,t,a)=>{a.d(t,{A:()=>r});let r={parse:function(e,t){if(e){if("object"==typeof e)return e;if("string"==typeof e)try{return JSON.parse(e,t)}catch(e){return}}},stringify:function(e,t,a){try{return JSON.stringify(e,t||void 0,a)}catch(e){return}}}},2207:(e,t,a)=>{a.a(e,async(e,r)=>{try{a.r(t),a.d(t,{UserSchemaContext:()=>x,default:()=>p,getServerSideProps:()=>m});var s=a(8732),n=a(82015),l=a.n(n),i=a(25562),c=a(92702),d=a(61637),o=a(66485),u=a(53926),h=e([d]);d=(h.then?(await h)():h)[0];let f=a(29021),x=l().createContext({});function p({user:e,query:t,dbSchemaData:a}){let r=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("title",{children:"Add Database | Datasquirel"}),(0,s.jsx)("meta",{name:"description",content:"Add a database"})]});return(0,s.jsx)(i.A,{head:r,user:e,aceEditor:!0,children:(0,s.jsx)(x.Provider,{value:{user:e,dbSchemaData:a},children:e?.verification_status?.toString().match(/1/)?(0,s.jsx)(l().Fragment,{children:(0,s.jsx)(d.A,{})}):(0,s.jsxs)(l().Fragment,{children:[(0,s.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,s.jsx)("div",{className:"",children:(0,s.jsx)("h1",{className:"text-3xl m-0",children:"User Schema"})}),(0,s.jsx)(u.A,{user:e})]}),(0,s.jsx)(o.A,{})]})})})}async function m({req:e,res:t,query:a}){let r=await (0,c.A)(e,t);if(!r?.logged_in_status)return{redirect:{destination:"/login",permanent:!1}};let s=`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${r.id}/main.json`;if(!f.existsSync(s))return{redirect:{destination:"/admin",permanent:!1}};let n=JSON.parse(f.readFileSync(s,"utf-8"));return{props:{user:r,query:a,dbSchemaData:n||[]}}}r()}catch(e){r(e)}})},9455:(e,t)=>{Object.defineProperty(t,"A",{enumerable:!0,get:function(){return a}});var a=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},13893:e=>{e.exports=require("@moduletrace/datasquirel/dist/client/fetch")},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{e.exports=require("next/head")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},8732:e=>{e.exports=require("react/jsx-runtime")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},75979:e=>{e.exports=import("tailwind-merge")}};var t=require("../../../webpack-runtime.js");t.C(e);var a=e=>t(t.s=e),r=t.X(0,[883,9821,9796,5392],()=>a(25355));module.exports=r})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=8591,e.ids=[8591],e.modules={30671:(e,t)=>{Object.defineProperty(t,"M",{enumerable:!0,get:function(){return function e(t,a){return a in t?t[a]:"then"in t&&"function"==typeof t.then?t.then(t=>e(t,a)):"function"==typeof t&&"default"===a?t:void 0}}})},25355:(e,t,a)=>{a.a(e,async(e,r)=>{try{a.r(t),a.d(t,{config:()=>f,default:()=>u,getServerSideProps:()=>m,getStaticPaths:()=>p,getStaticProps:()=>h,reportWebVitals:()=>x,routeModule:()=>j,unstable_getServerProps:()=>A,unstable_getServerSideProps:()=>b,unstable_getStaticParams:()=>g,unstable_getStaticPaths:()=>v,unstable_getStaticProps:()=>y});var s=a(63865),n=a(9455),l=a(30671),i=a(5583),c=a(19796),d=a(2207),o=e([d]);d=(o.then?(await o)():o)[0];let u=(0,l.M)(d,"default"),h=(0,l.M)(d,"getStaticProps"),p=(0,l.M)(d,"getStaticPaths"),m=(0,l.M)(d,"getServerSideProps"),f=(0,l.M)(d,"config"),x=(0,l.M)(d,"reportWebVitals"),y=(0,l.M)(d,"unstable_getStaticProps"),v=(0,l.M)(d,"unstable_getStaticPaths"),g=(0,l.M)(d,"unstable_getStaticParams"),A=(0,l.M)(d,"unstable_getServerProps"),b=(0,l.M)(d,"unstable_getServerSideProps"),j=new s.PagesRouteModule({definition:{kind:n.A.PAGES,page:"/admin/[user_id]/schema",pathname:"/admin/[user_id]/schema",bundlePath:"",filename:""},components:{App:c.default,Document:i.default},userland:d});r()}catch(e){r(e)}})},61637:(e,t,a)=>{a.a(e,async(e,r)=>{try{a.d(t,{A:()=>p});var s=a(8732),n=a(82015),l=a.n(n),i=a(53926),c=a(80830),d=a(2207);a(46169);var o=a(84894),u=a(60374),h=e([d,o]);function p(){let{dbSchemaData:e,user:t}=l().useContext(d.UserSchemaContext),[a,r]=l().useState(e),[n,h]=l().useState(null),[p,m]=l().useState(null),[f,x]=l().useState(null);return(0,s.jsxs)(l().Fragment,{children:[(0,s.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,s.jsx)("div",{className:"",children:(0,s.jsx)("h1",{className:"text-3xl m-0",children:"User Schema"})}),(0,s.jsx)(i.A,{user:t})]}),(0,s.jsx)("section",{className:"paper",children:(0,s.jsxs)("div",{className:"flex-col items-start w-full",children:[(0,s.jsxs)("div",{className:"w-full justify-between",children:[(0,s.jsx)("h2",{className:"text-xl m-0",children:"Database SCHEMA JSON"}),(0,s.jsxs)("div",{children:[(0,s.jsx)(c.A,{required:!0,selectOptions:[{title:"All Databases",payload:"none"},...e.map((e,t)=>({title:e.dbName,payload:e.dbFullName,name:e.dbFullName}))],name:"databases",onChangeHandler:e=>{e.target.value?.match(/^none$/)?h(null):h(e.target.value)}}),p&&p[0]&&(0,s.jsx)(c.A,{required:!0,selectOptions:[{title:"All Tables",payload:"none"},...p.map((e,t)=>({title:e.tableFullName,payload:e.tableName,name:e.tableName}))],name:"database_tables",onChangeHandler:e=>{e.target.value?.match(/^none$/)?x(null):x(e.target.value)}})]})]}),(0,s.jsx)(o.A,{content:u.A.stringify(a,null,4),readOnly:!0,options:{wrap:!0},wrapperProps:{className:"h-[60vh]"}})]})})]})}[d,o]=h.then?(await h)():h,r()}catch(e){r(e)}})},6789:(e,t,a)=>{a.d(t,{A:()=>r});function r({editorHTMLElementRef:e,fieldObject:t,setRefresh:a,language:r="javascript",entry:s,jsonTextEditors:n,editorRef:l,readOnly:i,initialContent:c,options:d}){try{if(!ace?.edit||!e.current){console.log("Ace Editor not found!"),setTimeout(()=>{a?.(e=>e+1)},1e3);return}let o=ace.edit(e.current);o.setOptions({mode:"ace/mode/"+r,value:c||(t?.defaultValue?t.defaultValue:t?.fieldName&&s?.[t.fieldName]?(()=>{if("json"!==r)return s[t.fieldName];try{return JSON.stringify(JSON.parse(s[t.fieldName]),null,4)}catch(e){return s[t.fieldName]}})():""),placeholder:"json"==r?"{}":"",enableBasicAutocompletion:!0,enableLiveAutocompletion:!0,readOnly:i,...d}),l&&t?.fieldName&&(n?.current.push({fieldName:t.fieldName,ref:l}),l.current=o);try{ace.require("ace/ext/beautify").beautify(o.session)}catch(e){}}catch(e){console.log("JSON Editor ERROR =>",e.message)}}},80830:(e,t,a)=>{a.d(t,{A:()=>n});var r=a(8732),s=a(58526);function n({selectOptions:e,name:t,onChangeHandler:a,required:n,setAlert:l,title:i,defaultValue:c,info:d,id:o}){try{function u(e){if(e.type.match(/enter/i)&&window.innerWidth<1200)return;let t=e.target.closest(".info-wrapper"),a=t.querySelector(".info-dropdown");if(e.type.match(/leave/i)&&!a.classList.contains("hidden")){a.classList.add("hidden");return}if(!(e.type.match(/leave/i)&&a.classList.contains("hidden"))){if(!t){a.classList.add("hidden");return}if(a.classList.contains("hidden")){a.classList.remove("hidden");return}a.classList.add("hidden")}}return(0,r.jsxs)("div",{className:"form-select-block flex items-start flex-col gap-0.5 w-full relative"+(d?" pr-8":""),children:[i&&(0,r.jsxs)("label",{htmlFor:t,children:[i,n?"":" (optional)"]}),(0,r.jsxs)("div",{className:"flex items-center w-full relative",children:[(0,r.jsx)("select",{name:t,id:o||t,className:"w-full bg-white",required:n,onChange:e=>{l&&l(null),e.target.classList.remove("warning"),a&&a(e)},defaultValue:c||void 0,children:e.map((e,t)=>{let{payload:a,title:s}=e;return(0,r.jsx)("option",{value:a,selected:!!e.default,children:s},t+1)})}),(0,r.jsx)(s.A,{className:"absolute right-2 text-base text-slate-500 pointer-events-none",size:20}),d&&(0,r.jsxs)("div",{className:"info-wrapper absolute -right-10 w-8 h-8 rounded-full bg-white flex items-center justify-center z-10",style:{top:"50%",transform:"translate(0,-50%)"},onMouseEnter:u,onMouseLeave:u,onClick:u,children:[(0,r.jsx)("img",{src:"/images/info-outlined-black.png",alt:"",className:"w-6 h-6 object-contain opacity-60 pointer-events-none"}),(0,r.jsx)("div",{className:"info-dropdown absolute top-9 right-0 bg-white w-52 md:w-96 p-2 sm:p-6 shadow-xl rounded hidden text-center border border-slate-300 border-solid",children:(0,r.jsx)("span",{children:d})}),(0,r.jsx)("div",{className:"absolute -top-2 w-12",style:{height:"45px"}})]})]})]})}catch(e){return console.log("ERROR in FormSelect =>",e),(0,r.jsx)("div",{children:"Form Select Error"})}}a(82015)},84894:(e,t,a)=>{a.a(e,async(e,r)=>{try{a.d(t,{A:()=>d});var s=a(8732);a(46169);var n=a(82015),l=a.n(n);a(6789);var i=a(75979),c=e([i]);function d({editorRef:e,content:t,readOnly:a,language:r="javascript",options:n,wrapperProps:c}){try{let e=l().useRef(),[t,a]=l().useState(0);return(0,s.jsx)("div",{...c,ref:e,className:(0,i.twMerge)("ace-editor-wrapper w-full h-full minimal-scrollbars all-children",c?.className)})}catch(e){return(0,s.jsx)(l().Fragment,{children:(0,s.jsx)("h2",{className:"text-xl m-0",children:"Editor Error"})})}}i=(c.then?(await c)():c)[0],r()}catch(e){r(e)}})},66485:(e,t,a)=>{a.d(t,{A:()=>s});var r=a(8732);function s(){return(0,r.jsxs)("a",{href:"/email-verification",className:"card w-full items-center justify-center py-4 gap-2",children:[(0,r.jsx)("img",{src:"/images/warning.png",alt:"Down Arrow",width:25,className:""}),(0,r.jsx)("span",{children:"Your Account is not verified. Please verify your account."})]})}a(82015)},23293:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(82544).A)("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]])},92441:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(82544).A)("BookText",[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1 0-5H20",key:"t4utmx"}],["path",{d:"M8 7h6",key:"1f0q6e"}],["path",{d:"M8 11h8",key:"vwpz6n"}]])},34637:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(82544).A)("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]])},29743:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(82544).A)("FileKey2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v6",key:"rc0qvx"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["circle",{cx:"4",cy:"16",r:"2",key:"1ehqvc"}],["path",{d:"m10 10-4.5 4.5",key:"7fwrp6"}],["path",{d:"m9 11 1 1",key:"wa6s5q"}]])},10643:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(82544).A)("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]])},66916:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(82544).A)("HardDrive",[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]])},83158:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(82544).A)("Images",[["path",{d:"M18 22H4a2 2 0 0 1-2-2V6",key:"pblm9e"}],["path",{d:"m22 13-1.296-1.296a2.41 2.41 0 0 0-3.408 0L11 18",key:"nf6bnh"}],["circle",{cx:"12",cy:"8",r:"2",key:"1822b1"}],["rect",{width:"16",height:"16",x:"6",y:"2",rx:"2",key:"12espp"}]])},66918:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(82544).A)("RotateCw",[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]])},10321:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(82544).A)("ShieldEllipsis",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M8 12h.01",key:"czm47f"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M16 12h.01",key:"1l6xoz"}]])},25294:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(82544).A)("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]])},60374:(e,t,a)=>{a.d(t,{A:()=>r});let r={parse:function(e,t){if(e){if("object"==typeof e)return e;if("string"==typeof e)try{return JSON.parse(e,t)}catch(e){return}}},stringify:function(e,t,a){try{return JSON.stringify(e,t||void 0,a)}catch(e){return}}}},2207:(e,t,a)=>{a.a(e,async(e,r)=>{try{a.r(t),a.d(t,{UserSchemaContext:()=>y,default:()=>f,getServerSideProps:()=>x});var s=a(8732),n=a(29021),l=a.n(n),i=a(82015),c=a.n(i),d=a(25562),o=a(92702),u=a(61637),h=a(66485),p=a(53926),m=e([u]);u=(m.then?(await m)():m)[0];let y=c().createContext({});function f({user:e,query:t,dbSchemaData:a}){let r=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("title",{children:"Add Database | Datasquirel"}),(0,s.jsx)("meta",{name:"description",content:"Add a database"})]});return(0,s.jsx)(d.A,{head:r,user:e,aceEditor:!0,children:(0,s.jsx)(y.Provider,{value:{user:e,dbSchemaData:a},children:e?.verification_status?.toString().match(/1/)?(0,s.jsx)(c().Fragment,{children:(0,s.jsx)(u.A,{})}):(0,s.jsxs)(c().Fragment,{children:[(0,s.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,s.jsx)("div",{className:"",children:(0,s.jsx)("h1",{className:"text-3xl m-0",children:"User Schema"})}),(0,s.jsx)(p.A,{user:e})]}),(0,s.jsx)(h.A,{})]})})})}async function x({req:e,res:t,query:a}){let r=await (0,o.A)(e,t);if(!r?.logged_in_status)return{redirect:{destination:"/login",permanent:!1}};let s=`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${r.id}/main.json`;if(!l().existsSync(s))return{redirect:{destination:"/admin",permanent:!1}};let n=JSON.parse(l().readFileSync(s,"utf-8"));return{props:{user:r,query:a,dbSchemaData:n||[]}}}r()}catch(e){r(e)}})},9455:(e,t)=>{Object.defineProperty(t,"A",{enumerable:!0,get:function(){return a}});var a=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},13893:e=>{e.exports=require("@moduletrace/datasquirel/dist/client/fetch")},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{e.exports=require("next/head")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},8732:e=>{e.exports=require("react/jsx-runtime")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},75979:e=>{e.exports=import("tailwind-merge")}};var t=require("../../../webpack-runtime.js");t.C(e);var a=e=>t(t.s=e),r=t.X(0,[883,9821,9796,5392],()=>a(25355));module.exports=r})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/acceptUserInvitation.js b/dsql-app/.local_dist/server/pages/api/acceptUserInvitation.js index 800ab9f..ef05c56 100644 --- a/dsql-app/.local_dist/server/pages/api/acceptUserInvitation.js +++ b/dsql-app/.local_dist/server/pages/api/acceptUserInvitation.js @@ -1,4 +1,4 @@ -"use strict";(()=>{var e={};e.id=8935,e.ids=[8935],e.modules={27825:e=>{e.exports=require("lodash")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},72583:e=>{e.exports=require("sanitize-html")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},34042:(e,r,t)=>{t.r(r),t.d(r,{config:()=>f,default:()=>m,routeModule:()=>E});var s={};t.r(s),t.d(s,{default:()=>p});var i=t(89947),a=t(2706),n=t(96762),o=t(69842),l=t(67619),d=t(27825),u=t.n(d),c=t(48786),_=t(98e3);async function p(e,r){if("POST"!==e.method)return r.json({user:null,msg:"Registration Failed!"});let t=await (0,o.A)(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let s=u().cloneDeep(e.body),i=s.inviting_user_id,a=s.invited_user_email,n=s.database_access,d=s.priviledge;try{let e=await (0,c.A)("SELECT email FROM user_users WHERE user_id=? AND invited_user_id=? AND user_type='admin' AND email=?",[i,t.id,t.email]);if(e&&e[0])return r.json({success:!1});let s=await (0,_.A)({dbFullName:"datasquirel",tableName:"user_users",data:{user_id:i,invited_user_id:t.id,database_access:n,user_priviledge:d,user_type:"admin",first_name:t.first_name,last_name:t.last_name,email:t.email,username:t.first_name,image:t.image,image_thumbnail:t.image_thumbnail}});await (0,c.A)("UPDATE invitations SET invitation_status='Accepted' WHERE inviting_user_id=? AND invited_user_email=?",[i,a]);let o=await (0,c.A)("SELECT db_tables_data FROM invitations WHERE inviting_user_id=?",[i]);if(await (0,c.A)(`DELETE FROM delegated_user_tables WHERE root_user_id='${i}' AND delegated_user_id='${t.id}'`),o&&o[0]){let e=o[0].db_tables_data.split("|");for(let r=0;r{t.d(r,{A:()=>l});var s=t(48786),i=t(95969),a=t(29021),n=t.n(a),o=t(89159);async function l(e,r,t){try{let{keyCookieName:a,csrfCookieName:l}=(0,o.A)();if(!e.cookies?.[a]?.match(/./))throw Error("Request Cookies not Found!");let d=(0,i.A)({encryptedString:e.cookies[a]});if(!d)throw Error("Couldn't decrypt auth cookie!");let u=JSON.parse(d);if(!u.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(u.csrf_k)))throw Error("Deep Auth Failed. `csrf` key not found in request headers!");let c=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!c)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!n().existsSync(`${c}/${u.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==u.verification_status&&!t){let e=await (0,s.A)(`SELECT verification_status FROM users WHERE id='${u.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(u?.date&&Date.now()-u.date>6048e5)throw Error("Key expired!");return u}catch(e){return console.log(`userAuth Error: ${e.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>s});function s(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",i=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",a=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),n=r;e?.userId&&(n+=`user_${e.userId}_`),a&&(n+=`${a}_`),n+=t;let o=r;e?.userId&&(o+=`user_${e.userId}_`),a&&(o+=`${a}_`),o+=s;let l=r;return e?.userId&&(l+=`user_${e.userId}_`),a&&(l+=`${a}_`),{keyCookieName:n,csrfCookieName:o,oneTimeCodeName:l+=i}}},67619:(e,r,t)=>{t.r(r),t.d(r,{default:()=>a});var s=t(29021),i=t.n(s);async function a({user:e,message:r,component:t,noMail:s,req:a}){let n=new Date,o=(()=>{if(!a)return null;try{let e=a.headers["x-forwarded-for"],r=a.headers["x-real-ip"],t=a.headers["cf-connecting-ip"],s=Array.isArray(e)?e[0]:e?.split(",")[0],i=t||s||r||a.socket.remoteAddress;if(!i)return null;return String(i)}catch(e){return null}})();try{let s=`🚀 SERVER ERROR =========================== +"use strict";(()=>{var e={};e.id=8935,e.ids=[8935],e.modules={27825:e=>{e.exports=require("lodash")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},72583:e=>{e.exports=require("sanitize-html")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},34042:(e,r,t)=>{t.r(r),t.d(r,{config:()=>E,default:()=>m,routeModule:()=>f});var s={};t.r(s),t.d(s,{default:()=>p});var i=t(89947),a=t(2706),n=t(96762),o=t(69842),l=t(67619),d=t(27825),u=t.n(d),c=t(48786),_=t(98e3);async function p(e,r){if("POST"!==e.method)return r.json({user:null,msg:"Registration Failed!"});let t=await (0,o.A)(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let s=u().cloneDeep(e.body),i=s.inviting_user_id,a=s.invited_user_email,n=s.database_access,d=s.priviledge;try{let e=await (0,c.A)("SELECT email FROM user_users WHERE user_id=? AND invited_user_id=? AND user_type='admin' AND email=?",[i,t.id,t.email]);if(e&&e[0])return r.json({success:!1});let s=await (0,_.A)({dbFullName:"datasquirel",tableName:"user_users",data:{user_id:i,invited_user_id:t.id,database_access:n,user_priviledge:d,user_type:"admin",first_name:t.first_name,last_name:t.last_name,email:t.email,username:t.first_name,image:t.image,image_thumbnail:t.image_thumbnail}});await (0,c.A)("UPDATE invitations SET invitation_status='Accepted' WHERE inviting_user_id=? AND invited_user_email=?",[i,a]);let o=await (0,c.A)("SELECT db_tables_data FROM invitations WHERE inviting_user_id=?",[i]);if(await (0,c.A)(`DELETE FROM delegated_user_tables WHERE root_user_id='${i}' AND delegated_user_id='${t.id}'`),o&&o[0]){let e=o[0].db_tables_data.split("|");for(let r=0;r{t.d(r,{A:()=>l});var s=t(48786),i=t(95969),a=t(29021),n=t.n(a),o=t(89159);async function l(e,r,t){try{let{keyCookieName:a,csrfCookieName:l}=(0,o.A)();if(!e.cookies?.[a]?.match(/./))throw Error("Request Cookies not Found!");let d=(0,i.A)({encryptedString:e.cookies[a]});if(!d)throw Error("Couldn't decrypt auth cookie!");let u=JSON.parse(d);if(!u.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(u.csrf_k)))throw console.log("req.headers",e.headers),console.log("userObject",u),Error("Deep Auth Failed. `csrf` key not found in request headers!");let c=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!c)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!n().existsSync(`${c}/${u.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==u.verification_status&&!t){let e=await (0,s.A)(`SELECT verification_status FROM users WHERE id='${u.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(u?.date&&Date.now()-u.date>6048e5)throw Error("Key expired!");return u}catch(e){return console.log(`userAuth Error: ${e.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>s});function s(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",i=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",a=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),n=r;e?.userId&&(n+=`user_${e.userId}_`),a&&(n+=`${a}_`),n+=t;let o=r;e?.userId&&(o+=`user_${e.userId}_`),a&&(o+=`${a}_`),o+=s;let l=r;return e?.userId&&(l+=`user_${e.userId}_`),a&&(l+=`${a}_`),{keyCookieName:n,csrfCookieName:o,oneTimeCodeName:l+=i}}},67619:(e,r,t)=>{t.d(r,{A:()=>a});var s=t(29021),i=t.n(s);async function a({user:e,message:r,component:t,noMail:s,req:a}){let n=new Date,o=(()=>{if(!a)return null;try{let e=a.headers["x-forwarded-for"],r=a.headers["x-real-ip"],t=a.headers["cf-connecting-ip"],s=Array.isArray(e)?e[0]:e?.split(",")[0],i=t||s||r||a.socket.remoteAddress;if(!i)return null;return String(i)}catch(e){return null}})();try{let s=`🚀 SERVER ERROR =========================== Error Message: ${r} Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(s+=` User Id: ${e?.id} diff --git a/dsql-app/.local_dist/server/pages/api/addAdminUserUser.js b/dsql-app/.local_dist/server/pages/api/addAdminUserUser.js index 8cd6cee..321fe2a 100644 --- a/dsql-app/.local_dist/server/pages/api/addAdminUserUser.js +++ b/dsql-app/.local_dist/server/pages/api/addAdminUserUser.js @@ -1,16 +1,16 @@ -"use strict";(()=>{var e={};e.id=9785,e.ids=[9785],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},72583:e=>{e.exports=require("sanitize-html")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},92145:(e,r,t)=>{t.r(r),t.d(r,{config:()=>_,default:()=>u,routeModule:()=>c});var i={};t.r(i),t.d(i,{default:()=>l});var s=t(89947),a=t(2706),n=t(96762),o=t(69842),d=t(49941);async function l(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await (0,o.A)(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});console.log("Invitation Received by current logged in user, Loggin in VIA API ...");let i=await (0,d.A)({query:e.body.query,user:t});r.json({success:!0,result:i})}let u=(0,n.M)(i,"default"),_=(0,n.M)(i,"config"),c=new s.PagesAPIRouteModule({definition:{kind:a.A.PAGES_API,page:"/api/addAdminUserUser",pathname:"/api/addAdminUserUser",bundlePath:"",filename:""},userland:i})},69842:(e,r,t)=>{t.d(r,{A:()=>d});var i=t(48786),s=t(95969),a=t(29021),n=t.n(a),o=t(89159);async function d(e,r,t){try{let{keyCookieName:a,csrfCookieName:d}=(0,o.A)();if(!e.cookies?.[a]?.match(/./))throw Error("Request Cookies not Found!");let l=(0,s.A)({encryptedString:e.cookies[a]});if(!l)throw Error("Couldn't decrypt auth cookie!");let u=JSON.parse(l);if(!u.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(u.csrf_k)))throw Error("Deep Auth Failed. `csrf` key not found in request headers!");let _=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!_)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!n().existsSync(`${_}/${u.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==u.verification_status&&!t){let e=await (0,i.A)(`SELECT verification_status FROM users WHERE id='${u.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(u?.date&&Date.now()-u.date>6048e5)throw Error("Key expired!");return u}catch(e){return console.log(`userAuth Error: ${e.message}`),null}}},49941:(e,r,t)=>{t.d(r,{A:()=>o});var i=t(67619),s=t(48786),a=t(98e3),n=t(7971);async function o({query:e,user:r,useLocal:t}){try{let i=t?n.A:s.A,{invite:o,database_access:d,priviledge:l,email:u}=e,_=[o,u],c=await i("SELECT date_created_code FROM invitations WHERE inviting_user_id=? AND invited_user_email=?",_);if(!c||!c[0])throw Error("No Invitation Found");let E=[o],m=await i("SELECT first_name,last_name,email FROM users WHERE id=?",E);if(m?.[0]){let e=await i("SELECT email FROM user_users WHERE user_id=? AND invited_user_id=? AND user_type='admin' AND email=?",[o,r.id,u]);if(e?.[0])console.log("User already added");else{(0,a.A)({dbFullName:"datasquirel",tableName:"user_users",data:{user_id:o,invited_user_id:r.id,database_access:d,first_name:r.first_name,last_name:r.last_name,phone:r.phone,email:r.email,username:r.username,user_type:"admin",user_priviledge:l,image:r.image,image_thumbnail:r.image_thumbnail},useLocal:t});let e=await i("SELECT db_tables_data FROM invitations WHERE inviting_user_id=? AND invited_user_email=?",[o,u]);if(await i("DELETE FROM delegated_user_tables WHERE root_user_id=? AND delegated_user_id=?",[o,r.id]),e&&e[0]){let i=e[0].db_tables_data.split("|");for(let e=0;e{t.d(r,{A:()=>i});function i(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",i=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",s=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",a=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),n=r;e?.userId&&(n+=`user_${e.userId}_`),a&&(n+=`${a}_`),n+=t;let o=r;e?.userId&&(o+=`user_${e.userId}_`),a&&(o+=`${a}_`),o+=i;let d=r;return e?.userId&&(d+=`user_${e.userId}_`),a&&(d+=`${a}_`),{keyCookieName:n,csrfCookieName:o,oneTimeCodeName:d+=s}}},67619:(e,r,t)=>{t.r(r),t.d(r,{default:()=>a});var i=t(29021),s=t.n(i);async function a({user:e,message:r,component:t,noMail:i,req:a}){let n=new Date,o=(()=>{if(!a)return null;try{let e=a.headers["x-forwarded-for"],r=a.headers["x-real-ip"],t=a.headers["cf-connecting-ip"],i=Array.isArray(e)?e[0]:e?.split(",")[0],s=t||i||r||a.socket.remoteAddress;if(!s)return null;return String(s)}catch(e){return null}})();try{let i=`🚀 SERVER ERROR =========================== +"use strict";(()=>{var e={};e.id=9785,e.ids=[9785],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},72583:e=>{e.exports=require("sanitize-html")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},92145:(e,r,t)=>{t.r(r),t.d(r,{config:()=>_,default:()=>u,routeModule:()=>c});var s={};t.r(s),t.d(s,{default:()=>l});var i=t(89947),a=t(2706),n=t(96762),o=t(69842),d=t(49941);async function l(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await (0,o.A)(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});console.log("Invitation Received by current logged in user, Loggin in VIA API ...");let s=await (0,d.A)({query:e.body.query,user:t});r.json({success:!0,result:s})}let u=(0,n.M)(s,"default"),_=(0,n.M)(s,"config"),c=new i.PagesAPIRouteModule({definition:{kind:a.A.PAGES_API,page:"/api/addAdminUserUser",pathname:"/api/addAdminUserUser",bundlePath:"",filename:""},userland:s})},69842:(e,r,t)=>{t.d(r,{A:()=>d});var s=t(48786),i=t(95969),a=t(29021),n=t.n(a),o=t(89159);async function d(e,r,t){try{let{keyCookieName:a,csrfCookieName:d}=(0,o.A)();if(!e.cookies?.[a]?.match(/./))throw Error("Request Cookies not Found!");let l=(0,i.A)({encryptedString:e.cookies[a]});if(!l)throw Error("Couldn't decrypt auth cookie!");let u=JSON.parse(l);if(!u.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(u.csrf_k)))throw console.log("req.headers",e.headers),console.log("userObject",u),Error("Deep Auth Failed. `csrf` key not found in request headers!");let _=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!_)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!n().existsSync(`${_}/${u.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==u.verification_status&&!t){let e=await (0,s.A)(`SELECT verification_status FROM users WHERE id='${u.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(u?.date&&Date.now()-u.date>6048e5)throw Error("Key expired!");return u}catch(e){return console.log(`userAuth Error: ${e.message}`),null}}},49941:(e,r,t)=>{t.d(r,{A:()=>o});var s=t(67619),i=t(48786),a=t(98e3),n=t(7971);async function o({query:e,user:r,useLocal:t}){try{let s=t?n.A:i.A,{invite:o,database_access:d,priviledge:l,email:u}=e,_=[o,u],c=await s("SELECT date_created_code FROM invitations WHERE inviting_user_id=? AND invited_user_email=?",_);if(!c||!c[0])throw Error("No Invitation Found");let E=[o],m=await s("SELECT first_name,last_name,email FROM users WHERE id=?",E);if(m?.[0]){let e=await s("SELECT email FROM user_users WHERE user_id=? AND invited_user_id=? AND user_type='admin' AND email=?",[o,r.id,u]);if(e?.[0])console.log("User already added");else{(0,a.A)({dbFullName:"datasquirel",tableName:"user_users",data:{user_id:o,invited_user_id:r.id,database_access:d,first_name:r.first_name,last_name:r.last_name,phone:r.phone,email:r.email,username:r.username,user_type:"admin",user_priviledge:l,image:r.image,image_thumbnail:r.image_thumbnail},useLocal:t});let e=await s("SELECT db_tables_data FROM invitations WHERE inviting_user_id=? AND invited_user_email=?",[o,u]);if(await s("DELETE FROM delegated_user_tables WHERE root_user_id=? AND delegated_user_id=?",[o,r.id]),e&&e[0]){let s=e[0].db_tables_data.split("|");for(let e=0;e{t.d(r,{A:()=>s});function s(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",i=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",a=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),n=r;e?.userId&&(n+=`user_${e.userId}_`),a&&(n+=`${a}_`),n+=t;let o=r;e?.userId&&(o+=`user_${e.userId}_`),a&&(o+=`${a}_`),o+=s;let d=r;return e?.userId&&(d+=`user_${e.userId}_`),a&&(d+=`${a}_`),{keyCookieName:n,csrfCookieName:o,oneTimeCodeName:d+=i}}},67619:(e,r,t)=>{t.d(r,{A:()=>a});var s=t(29021),i=t.n(s);async function a({user:e,message:r,component:t,noMail:s,req:a}){let n=new Date,o=(()=>{if(!a)return null;try{let e=a.headers["x-forwarded-for"],r=a.headers["x-real-ip"],t=a.headers["cf-connecting-ip"],s=Array.isArray(e)?e[0]:e?.split(",")[0],i=t||s||r||a.socket.remoteAddress;if(!i)return null;return String(i)}catch(e){return null}})();try{let s=`🚀 SERVER ERROR =========================== Error Message: ${r} -Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(i+=` +Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(s+=` User Id: ${e?.id} User Name: ${e?.first_name} ${e?.last_name} -User Email: ${e?.email}`),a?.url&&(i+=` -URL: ${a.url}`),a?.body&&(i+=` -Request Body: ${JSON.stringify(a.body,null,4)}`),o&&(i+=` -IP: ${o}`),i+=` +User Email: ${e?.email}`),a?.url&&(s+=` +URL: ${a.url}`),a?.body&&(s+=` +Request Body: ${JSON.stringify(a.body,null,4)}`),o&&(s+=` +IP: ${o}`),s+=` Date: ${n.toDateString()} -========================================`,s().existsSync("./.tmp/error.log")||s().writeFileSync("./.tmp/error.log","","utf-8");let d=s().readFileSync("./.tmp/error.log","utf-8");s().writeFileSync("./.tmp/error.log",i),s().appendFileSync("./.tmp/error.log",` +========================================`,i().existsSync("./.tmp/error.log")||i().writeFileSync("./.tmp/error.log","","utf-8");let d=i().readFileSync("./.tmp/error.log","utf-8");i().writeFileSync("./.tmp/error.log",s),i().appendFileSync("./.tmp/error.log",` -${d}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},95969:(e,r,t)=>{t.d(r,{A:()=>a});var i=t(55511),s=t(79428);function a({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let a=r||process.env.DSQL_ENCRYPTION_PASSWORD,n=t||process.env.DSQL_ENCRYPTION_SALT,o=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!a?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!n?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let d=(0,i.scryptSync)(a,n,o),l=s.Buffer.alloc(16,0),u=(0,i.createDecipheriv)("aes-192-cbc",d,l);try{let r=u.update(e,"hex","utf8");return r+=u.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=e=>r(r.s=e),i=r.X(0,[1251],()=>t(92145));module.exports=i})(); \ No newline at end of file +${d}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},95969:(e,r,t)=>{t.d(r,{A:()=>a});var s=t(55511),i=t(79428);function a({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let a=r||process.env.DSQL_ENCRYPTION_PASSWORD,n=t||process.env.DSQL_ENCRYPTION_SALT,o=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!a?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!n?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let d=(0,s.scryptSync)(a,n,o),l=i.Buffer.alloc(16,0),u=(0,s.createDecipheriv)("aes-192-cbc",d,l);try{let r=u.update(e,"hex","utf8");return r+=u.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=e=>r(r.s=e),s=r.X(0,[1251],()=>t(92145));module.exports=s})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/addApiKey.js b/dsql-app/.local_dist/server/pages/api/addApiKey.js index f468e59..da2b277 100644 --- a/dsql-app/.local_dist/server/pages/api/addApiKey.js +++ b/dsql-app/.local_dist/server/pages/api/addApiKey.js @@ -1,16 +1,16 @@ -"use strict";(()=>{var e={};e.id=1385,e.ids=[1385],e.modules={47795:e=>{e.exports=require("generate-password")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},72583:e=>{e.exports=require("sanitize-html")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},15420:(e,r,t)=>{t.r(r),t.d(r,{config:()=>y,default:()=>E,routeModule:()=>S});var s={};t.r(s),t.d(s,{default:()=>m});var o=t(89947),n=t(2706),a=t(96762),i=t(29021),l=t.n(i),c=t(47795),u=t.n(c),d=t(68829),_=t(67619),f=t(69842),p=t(98e3);async function m(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await (0,f.A)(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let{api_key_name:s,api_key_slug:o,api_key_scope:n,target_database:a,target_table:i}=e.body;if(!s?.match(/./)||!o?.match(/./)||!n?.match(/./))return r.json({success:!1,msg:"Wrong Input"});try{let e=process.env.DSQL_API_KEYS_PATH;if(!e)throw Error("process.env.DSQL_API_KEYS_PATH variable not found");l().existsSync(e)||l().mkdirSync(e,{recursive:!0});let c=u().generate({length:24,numbers:!0,uppercase:!0,lowercase:!0,symbols:"-"})+"-"+Date.now(),_={user_id:t.id,date_code:Date.now(),sign:c,target_database:a,target_table:i};"fullAccess"==n&&(_={..._,full_access:!0});let f=(0,d.default)({data:JSON.stringify(_)});if(!f)return r.json({success:!1,msg:"Couldn't encrypt API key"});let m=(0,d.default)({data:f}),E={dbFullName:"datasquirel",tableName:"api_keys",data:{user_id:t.id,name:s,slug:o,key:m,scope:n}};c&&(E.data.csrf=c);let y=await (0,p.A)(E);if(!y.insertId)throw Error(y?.error||"Api Key Couldn't be added");l().writeFileSync(`${e}/${c}`,JSON.stringify(_),"utf-8"),r.json({success:!0})}catch(e){(0,_.default)({component:"/api/addApiKey/catch-error",message:e.message,user:t}),r.json({success:!1,msg:"Database Files could not be written!"})}}let E=(0,a.M)(s,"default"),y=(0,a.M)(s,"config"),S=new o.PagesAPIRouteModule({definition:{kind:n.A.PAGES_API,page:"/api/addApiKey",pathname:"/api/addApiKey",bundlePath:"",filename:""},userland:s})},69842:(e,r,t)=>{t.d(r,{A:()=>l});var s=t(48786),o=t(95969),n=t(29021),a=t.n(n),i=t(89159);async function l(e,r,t){try{let{keyCookieName:n,csrfCookieName:l}=(0,i.A)();if(!e.cookies?.[n]?.match(/./))throw Error("Request Cookies not Found!");let c=(0,o.A)({encryptedString:e.cookies[n]});if(!c)throw Error("Couldn't decrypt auth cookie!");let u=JSON.parse(c);if(!u.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(u.csrf_k)))throw Error("Deep Auth Failed. `csrf` key not found in request headers!");let d=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!d)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!a().existsSync(`${d}/${u.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==u.verification_status&&!t){let e=await (0,s.A)(`SELECT verification_status FROM users WHERE id='${u.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(u?.date&&Date.now()-u.date>6048e5)throw Error("Key expired!");return u}catch(e){return console.log(`userAuth Error: ${e.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>s});function s(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",o=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",n=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),a=r;e?.userId&&(a+=`user_${e.userId}_`),n&&(a+=`${n}_`),a+=t;let i=r;e?.userId&&(i+=`user_${e.userId}_`),n&&(i+=`${n}_`),i+=s;let l=r;return e?.userId&&(l+=`user_${e.userId}_`),n&&(l+=`${n}_`),{keyCookieName:a,csrfCookieName:i,oneTimeCodeName:l+=o}}},67619:(e,r,t)=>{t.r(r),t.d(r,{default:()=>n});var s=t(29021),o=t.n(s);async function n({user:e,message:r,component:t,noMail:s,req:n}){let a=new Date,i=(()=>{if(!n)return null;try{let e=n.headers["x-forwarded-for"],r=n.headers["x-real-ip"],t=n.headers["cf-connecting-ip"],s=Array.isArray(e)?e[0]:e?.split(",")[0],o=t||s||r||n.socket.remoteAddress;if(!o)return null;return String(o)}catch(e){return null}})();try{let s=`🚀 SERVER ERROR =========================== +"use strict";(()=>{var e={};e.id=1385,e.ids=[1385],e.modules={47795:e=>{e.exports=require("generate-password")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},72583:e=>{e.exports=require("sanitize-html")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},15420:(e,r,t)=>{t.r(r),t.d(r,{config:()=>y,default:()=>E,routeModule:()=>S});var s={};t.r(s),t.d(s,{default:()=>m});var o=t(89947),n=t(2706),i=t(96762),a=t(29021),c=t.n(a),l=t(47795),u=t.n(l),d=t(68829),_=t(67619),p=t(69842),f=t(98e3);async function m(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await (0,p.A)(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let{api_key_name:s,api_key_slug:o,api_key_scope:n,target_database:i,target_table:a}=e.body;if(!s?.match(/./)||!o?.match(/./)||!n?.match(/./))return r.json({success:!1,msg:"Wrong Input"});try{let e=process.env.DSQL_API_KEYS_PATH;if(!e)throw Error("process.env.DSQL_API_KEYS_PATH variable not found");c().existsSync(e)||c().mkdirSync(e,{recursive:!0});let l=u().generate({length:24,numbers:!0,uppercase:!0,lowercase:!0,symbols:"-"})+"-"+Date.now(),_={user_id:t.id,date_code:Date.now(),sign:l,target_database:i,target_table:a};"fullAccess"==n&&(_={..._,full_access:!0});let p=(0,d.A)({data:JSON.stringify(_)});if(!p)return r.json({success:!1,msg:"Couldn't encrypt API key"});let m=(0,d.A)({data:p}),E={dbFullName:"datasquirel",tableName:"api_keys",data:{user_id:t.id,name:s,slug:o,key:m,scope:n}};l&&(E.data.csrf=l);let y=await (0,f.A)(E);if(!y.insertId)throw Error(y?.error||"Api Key Couldn't be added");c().writeFileSync(`${e}/${l}`,JSON.stringify(_),"utf-8"),r.json({success:!0})}catch(e){(0,_.A)({component:"/api/addApiKey/catch-error",message:e.message,user:t}),r.json({success:!1,msg:"Database Files could not be written!"})}}let E=(0,i.M)(s,"default"),y=(0,i.M)(s,"config"),S=new o.PagesAPIRouteModule({definition:{kind:n.A.PAGES_API,page:"/api/addApiKey",pathname:"/api/addApiKey",bundlePath:"",filename:""},userland:s})},69842:(e,r,t)=>{t.d(r,{A:()=>c});var s=t(48786),o=t(95969),n=t(29021),i=t.n(n),a=t(89159);async function c(e,r,t){try{let{keyCookieName:n,csrfCookieName:c}=(0,a.A)();if(!e.cookies?.[n]?.match(/./))throw Error("Request Cookies not Found!");let l=(0,o.A)({encryptedString:e.cookies[n]});if(!l)throw Error("Couldn't decrypt auth cookie!");let u=JSON.parse(l);if(!u.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(u.csrf_k)))throw console.log("req.headers",e.headers),console.log("userObject",u),Error("Deep Auth Failed. `csrf` key not found in request headers!");let d=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!d)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!i().existsSync(`${d}/${u.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==u.verification_status&&!t){let e=await (0,s.A)(`SELECT verification_status FROM users WHERE id='${u.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(u?.date&&Date.now()-u.date>6048e5)throw Error("Key expired!");return u}catch(e){return console.log(`userAuth Error: ${e.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>s});function s(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",o=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",n=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),i=r;e?.userId&&(i+=`user_${e.userId}_`),n&&(i+=`${n}_`),i+=t;let a=r;e?.userId&&(a+=`user_${e.userId}_`),n&&(a+=`${n}_`),a+=s;let c=r;return e?.userId&&(c+=`user_${e.userId}_`),n&&(c+=`${n}_`),{keyCookieName:i,csrfCookieName:a,oneTimeCodeName:c+=o}}},67619:(e,r,t)=>{t.d(r,{A:()=>n});var s=t(29021),o=t.n(s);async function n({user:e,message:r,component:t,noMail:s,req:n}){let i=new Date,a=(()=>{if(!n)return null;try{let e=n.headers["x-forwarded-for"],r=n.headers["x-real-ip"],t=n.headers["cf-connecting-ip"],s=Array.isArray(e)?e[0]:e?.split(",")[0],o=t||s||r||n.socket.remoteAddress;if(!o)return null;return String(o)}catch(e){return null}})();try{let s=`🚀 SERVER ERROR =========================== Error Message: ${r} Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(s+=` User Id: ${e?.id} User Name: ${e?.first_name} ${e?.last_name} User Email: ${e?.email}`),n?.url&&(s+=` URL: ${n.url}`),n?.body&&(s+=` -Request Body: ${JSON.stringify(n.body,null,4)}`),i&&(s+=` -IP: ${i}`),s+=` -Date: ${a.toDateString()} -========================================`,o().existsSync("./.tmp/error.log")||o().writeFileSync("./.tmp/error.log","","utf-8");let l=o().readFileSync("./.tmp/error.log","utf-8");o().writeFileSync("./.tmp/error.log",s),o().appendFileSync("./.tmp/error.log",` +Request Body: ${JSON.stringify(n.body,null,4)}`),a&&(s+=` +IP: ${a}`),s+=` +Date: ${i.toDateString()} +========================================`,o().existsSync("./.tmp/error.log")||o().writeFileSync("./.tmp/error.log","","utf-8");let c=o().readFileSync("./.tmp/error.log","utf-8");o().writeFileSync("./.tmp/error.log",s),o().appendFileSync("./.tmp/error.log",` -${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},95969:(e,r,t)=>{t.d(r,{A:()=>n});var s=t(55511),o=t(79428);function n({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let n=r||process.env.DSQL_ENCRYPTION_PASSWORD,a=t||process.env.DSQL_ENCRYPTION_SALT,i=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!n?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!a?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let l=(0,s.scryptSync)(n,a,i),c=o.Buffer.alloc(16,0),u=(0,s.createDecipheriv)("aes-192-cbc",l,c);try{let r=u.update(e,"hex","utf8");return r+=u.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=e=>r(r.s=e),s=r.X(0,[1251],()=>t(15420));module.exports=s})(); \ No newline at end of file +${c}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},95969:(e,r,t)=>{t.d(r,{A:()=>n});var s=t(55511),o=t(79428);function n({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let n=r||process.env.DSQL_ENCRYPTION_PASSWORD,i=t||process.env.DSQL_ENCRYPTION_SALT,a=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!n?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let c=(0,s.scryptSync)(n,i,a),l=o.Buffer.alloc(16,0),u=(0,s.createDecipheriv)("aes-192-cbc",c,l);try{let r=u.update(e,"hex","utf8");return r+=u.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=e=>r(r.s=e),s=r.X(0,[1251],()=>t(15420));module.exports=s})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/addDbUser.js b/dsql-app/.local_dist/server/pages/api/addDbUser.js index c47b92e..ae40722 100644 --- a/dsql-app/.local_dist/server/pages/api/addDbUser.js +++ b/dsql-app/.local_dist/server/pages/api/addDbUser.js @@ -1 +1 @@ -"use strict";(()=>{var e={};e.id=9187,e.ids=[9187],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},72583:e=>{e.exports=require("sanitize-html")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},3931:(e,r,s)=>{s.r(r),s.d(r,{config:()=>_,default:()=>l,routeModule:()=>p});var t={};s.r(t),s.d(t,{default:()=>c});var a=s(89947),i=s(2706),o=s(96762),n=s(83919),d=s(69842),u=s(98e3);async function c(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});if(!await (0,d.A)(e,r,!0))return r.json({success:!1,msg:"Unauthorized"});let{payload:s,dbFullName:t,dbId:a}=e.body,i=await (0,u.A)({dbContext:"Dsql User",paradigm:"Full Access",dbFullName:t,tableName:"users",data:(()=>{let e=Object.keys(s),r={};return e.forEach(e=>{e?.match(/paradigm|priviledge|database_access|databases|confirm/)||(r[e]=s[e])}),r.password=(0,n.A)({encryptionKey:process.env.DSQL_ENCRYPTION_PASSWORD||"",password:s.password}),r.email=s.email_address,r.image="/images/user-preset.png",r.image_thumbnail="/images/user-preset-thumbnail.png",delete r.email_address,r})()});r.json({success:!!i?.insertId,msg:"New User User Added",newUserId:i.insertId})}let l=(0,o.M)(t,"default"),_=(0,o.M)(t,"config"),p=new a.PagesAPIRouteModule({definition:{kind:i.A.PAGES_API,page:"/api/addDbUser",pathname:"/api/addDbUser",bundlePath:"",filename:""},userland:t})},69842:(e,r,s)=>{s.d(r,{A:()=>d});var t=s(48786),a=s(95969),i=s(29021),o=s.n(i),n=s(89159);async function d(e,r,s){try{let{keyCookieName:i,csrfCookieName:d}=(0,n.A)();if(!e.cookies?.[i]?.match(/./))throw Error("Request Cookies not Found!");let u=(0,a.A)({encryptedString:e.cookies[i]});if(!u)throw Error("Couldn't decrypt auth cookie!");let c=JSON.parse(u);if(!c.csrf_k)throw Error("No `csrf_k` present in user Object!");if(s&&!Object.keys(e.headers).find(e=>e.includes(c.csrf_k)))throw Error("Deep Auth Failed. `csrf` key not found in request headers!");let l=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!l)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(s&&!o().existsSync(`${l}/${c.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==c.verification_status&&!s){let e=await (0,t.A)(`SELECT verification_status FROM users WHERE id='${c.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(c?.date&&Date.now()-c.date>6048e5)throw Error("Key expired!");return c}catch(e){return console.log(`userAuth Error: ${e.message}`),null}}},89159:(e,r,s)=>{s.d(r,{A:()=>t});function t(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",s=process.env.DSQL_COOKIES_KEY_NAME||"key",t=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",a=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",i=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),o=r;e?.userId&&(o+=`user_${e.userId}_`),i&&(o+=`${i}_`),o+=s;let n=r;e?.userId&&(n+=`user_${e.userId}_`),i&&(n+=`${i}_`),n+=t;let d=r;return e?.userId&&(d+=`user_${e.userId}_`),i&&(d+=`${i}_`),{keyCookieName:o,csrfCookieName:n,oneTimeCodeName:d+=a}}},95969:(e,r,s)=>{s.d(r,{A:()=>i});var t=s(55511),a=s(79428);function i({encryptedString:e,encryptionKey:r,encryptionSalt:s}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let i=r||process.env.DSQL_ENCRYPTION_PASSWORD,o=s||process.env.DSQL_ENCRYPTION_SALT,n=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!i?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!o?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let d=(0,t.scryptSync)(i,o,n),u=a.Buffer.alloc(16,0),c=(0,t.createDecipheriv)("aes-192-cbc",d,u);try{let r=c.update(e,"hex","utf8");return r+=c.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},83919:(e,r,s)=>{s.d(r,{A:()=>a});var t=s(55511);function a({password:e,encryptionKey:r}){let s=r||process.env.DSQL_ENCRYPTION_PASSWORD;if(!s?.match(/.{8,}/))throw Error("Encryption key is invalid");let a=(0,t.createHmac)("sha512",s);return a.update(e),a.digest("base64")}}};var r=require("../../webpack-api-runtime.js");r.C(e);var s=e=>r(r.s=e),t=r.X(0,[1251],()=>s(3931));module.exports=t})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=9187,e.ids=[9187],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},72583:e=>{e.exports=require("sanitize-html")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},3931:(e,r,s)=>{s.r(r),s.d(r,{config:()=>_,default:()=>l,routeModule:()=>p});var t={};s.r(t),s.d(t,{default:()=>u});var a=s(89947),i=s(2706),o=s(96762),n=s(83919),d=s(69842),c=s(98e3);async function u(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});if(!await (0,d.A)(e,r,!0))return r.json({success:!1,msg:"Unauthorized"});let{payload:s,dbFullName:t,dbId:a}=e.body,i=await (0,c.A)({dbContext:"Dsql User",paradigm:"Full Access",dbFullName:t,tableName:"users",data:(()=>{let e=Object.keys(s),r={};return e.forEach(e=>{e?.match(/paradigm|priviledge|database_access|databases|confirm/)||(r[e]=s[e])}),r.password=(0,n.A)({encryptionKey:process.env.DSQL_ENCRYPTION_PASSWORD||"",password:s.password}),r.email=s.email_address,r.image="/images/user-preset.png",r.image_thumbnail="/images/user-preset-thumbnail.png",delete r.email_address,r})()});r.json({success:!!i?.insertId,msg:"New User User Added",newUserId:i.insertId})}let l=(0,o.M)(t,"default"),_=(0,o.M)(t,"config"),p=new a.PagesAPIRouteModule({definition:{kind:i.A.PAGES_API,page:"/api/addDbUser",pathname:"/api/addDbUser",bundlePath:"",filename:""},userland:t})},69842:(e,r,s)=>{s.d(r,{A:()=>d});var t=s(48786),a=s(95969),i=s(29021),o=s.n(i),n=s(89159);async function d(e,r,s){try{let{keyCookieName:i,csrfCookieName:d}=(0,n.A)();if(!e.cookies?.[i]?.match(/./))throw Error("Request Cookies not Found!");let c=(0,a.A)({encryptedString:e.cookies[i]});if(!c)throw Error("Couldn't decrypt auth cookie!");let u=JSON.parse(c);if(!u.csrf_k)throw Error("No `csrf_k` present in user Object!");if(s&&!Object.keys(e.headers).find(e=>e.includes(u.csrf_k)))throw console.log("req.headers",e.headers),console.log("userObject",u),Error("Deep Auth Failed. `csrf` key not found in request headers!");let l=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!l)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(s&&!o().existsSync(`${l}/${u.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==u.verification_status&&!s){let e=await (0,t.A)(`SELECT verification_status FROM users WHERE id='${u.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(u?.date&&Date.now()-u.date>6048e5)throw Error("Key expired!");return u}catch(e){return console.log(`userAuth Error: ${e.message}`),null}}},89159:(e,r,s)=>{s.d(r,{A:()=>t});function t(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",s=process.env.DSQL_COOKIES_KEY_NAME||"key",t=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",a=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",i=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),o=r;e?.userId&&(o+=`user_${e.userId}_`),i&&(o+=`${i}_`),o+=s;let n=r;e?.userId&&(n+=`user_${e.userId}_`),i&&(n+=`${i}_`),n+=t;let d=r;return e?.userId&&(d+=`user_${e.userId}_`),i&&(d+=`${i}_`),{keyCookieName:o,csrfCookieName:n,oneTimeCodeName:d+=a}}},95969:(e,r,s)=>{s.d(r,{A:()=>i});var t=s(55511),a=s(79428);function i({encryptedString:e,encryptionKey:r,encryptionSalt:s}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let i=r||process.env.DSQL_ENCRYPTION_PASSWORD,o=s||process.env.DSQL_ENCRYPTION_SALT,n=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!i?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!o?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let d=(0,t.scryptSync)(i,o,n),c=a.Buffer.alloc(16,0),u=(0,t.createDecipheriv)("aes-192-cbc",d,c);try{let r=u.update(e,"hex","utf8");return r+=u.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},83919:(e,r,s)=>{s.d(r,{A:()=>a});var t=s(55511);function a({password:e,encryptionKey:r}){let s=r||process.env.DSQL_ENCRYPTION_PASSWORD;if(!s?.match(/.{8,}/))throw Error("Encryption key is invalid");let a=(0,t.createHmac)("sha512",s);return a.update(e),a.digest("base64")}}};var r=require("../../webpack-api-runtime.js");r.C(e);var s=e=>r(r.s=e),t=r.X(0,[1251],()=>s(3931));module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/addNewMediaFolder.js b/dsql-app/.local_dist/server/pages/api/addNewMediaFolder.js index 997d5a6..e5d3880 100644 --- a/dsql-app/.local_dist/server/pages/api/addNewMediaFolder.js +++ b/dsql-app/.local_dist/server/pages/api/addNewMediaFolder.js @@ -1 +1 @@ -"use strict";(()=>{var e={};e.id=6534,e.ids=[6534],e.modules={27825:e=>{e.exports=require("lodash")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},24709:(e,r,t)=>{t.r(r),t.d(r,{config:()=>S,default:()=>y,routeModule:()=>g});var n={};t.r(n),t.d(n,{default:()=>A});var o=t(89947),s=t(2706),i=t(96762),a=t(33873),c=t.n(a),u=t(69842),l=t(27825),f=t.n(l);function d(e,r,t){if(!e)return"";if("number"==typeof e||"boolean"==typeof e)return e;if("string"==typeof e&&!e?.toString()?.match(/./))return"";if("object"==typeof e&&!Array.isArray(e))return p(e,r);if("object"==typeof e&&Array.isArray(e))return _(e,r);let n=e;return t&&(n=e.toString().replace(t,"")),r||(n=e.toString().replace(/\n|\r|\n\r|\r\n/g,"").replace(/ /g,"")),n=n.replace(/(?{let n=t[e];if(!n){delete t[e];return}"string"==typeof n||"number"==typeof n?t[e]=d(n,r):"object"!=typeof n||Array.isArray(n)?"object"==typeof n&&Array.isArray(n)&&(t[e]=_(n,r)):t[e]=p(n,r)}),t}function _(e,r){let t=f().cloneDeep(e);return t.forEach((e,n)=>{if(!e){t.splice(n,1);return}"string"==typeof e||"number"==typeof e?t[n]=d(e,r):"object"!=typeof e||Array.isArray(e)?"object"==typeof e&&Array.isArray(e)&&(t[n]=_(e,r)):t[n]=p(e,r)}),t}let E=t(29021);async function A(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await (0,u.A)(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let{name:n}=d(e.body),o=process.env.DSQL_STATIC_SERVER_DIR;if(!o)return console.log("Static File ENV not Found!"),r.json({success:!1,msg:"No Static File Path"});let s=c().join(o,`images/user-images/user-${t.id}/`)+n;if(E.existsSync(s))return r.json({success:!1});E.mkdirSync(s),r.json({success:!0})}let y=(0,i.M)(n,"default"),S=(0,i.M)(n,"config"),g=new o.PagesAPIRouteModule({definition:{kind:s.A.PAGES_API,page:"/api/addNewMediaFolder",pathname:"/api/addNewMediaFolder",bundlePath:"",filename:""},userland:n})},69842:(e,r,t)=>{t.d(r,{A:()=>c});var n=t(48786),o=t(95969),s=t(29021),i=t.n(s),a=t(89159);async function c(e,r,t){try{let{keyCookieName:s,csrfCookieName:c}=(0,a.A)();if(!e.cookies?.[s]?.match(/./))throw Error("Request Cookies not Found!");let u=(0,o.A)({encryptedString:e.cookies[s]});if(!u)throw Error("Couldn't decrypt auth cookie!");let l=JSON.parse(u);if(!l.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(l.csrf_k)))throw Error("Deep Auth Failed. `csrf` key not found in request headers!");let f=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!f)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!i().existsSync(`${f}/${l.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==l.verification_status&&!t){let e=await (0,n.A)(`SELECT verification_status FROM users WHERE id='${l.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(l?.date&&Date.now()-l.date>6048e5)throw Error("Key expired!");return l}catch(e){return console.log(`userAuth Error: ${e.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>n});function n(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",n=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",o=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",s=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),i=r;e?.userId&&(i+=`user_${e.userId}_`),s&&(i+=`${s}_`),i+=t;let a=r;e?.userId&&(a+=`user_${e.userId}_`),s&&(a+=`${s}_`),a+=n;let c=r;return e?.userId&&(c+=`user_${e.userId}_`),s&&(c+=`${s}_`),{keyCookieName:i,csrfCookieName:a,oneTimeCodeName:c+=o}}},95969:(e,r,t)=>{t.d(r,{A:()=>s});var n=t(55511),o=t(79428);function s({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let s=r||process.env.DSQL_ENCRYPTION_PASSWORD,i=t||process.env.DSQL_ENCRYPTION_SALT,a=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!s?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let c=(0,n.scryptSync)(s,i,a),u=o.Buffer.alloc(16,0),l=(0,n.createDecipheriv)("aes-192-cbc",c,u);try{let r=l.update(e,"hex","utf8");return r+=l.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>n});async function n(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=24709);module.exports=t})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=6534,e.ids=[6534],e.modules={27825:e=>{e.exports=require("lodash")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},24709:(e,r,t)=>{t.r(r),t.d(r,{config:()=>g,default:()=>S,routeModule:()=>h});var o={};t.r(o),t.d(o,{default:()=>y});var n=t(89947),s=t(2706),i=t(96762),a=t(29021),c=t.n(a),u=t(33873),l=t.n(u),d=t(69842),f=t(27825),p=t.n(f);function _(e,r,t){if(!e)return"";if("number"==typeof e||"boolean"==typeof e)return e;if("string"==typeof e&&!e?.toString()?.match(/./))return"";if("object"==typeof e&&!Array.isArray(e))return E(e,r);if("object"==typeof e&&Array.isArray(e))return A(e,r);let o=e;return t&&(o=e.toString().replace(t,"")),r||(o=e.toString().replace(/\n|\r|\n\r|\r\n/g,"").replace(/ /g,"")),o=o.replace(/(?{let o=t[e];if(!o){delete t[e];return}"string"==typeof o||"number"==typeof o?t[e]=_(o,r):"object"!=typeof o||Array.isArray(o)?"object"==typeof o&&Array.isArray(o)&&(t[e]=A(o,r)):t[e]=E(o,r)}),t}function A(e,r){let t=p().cloneDeep(e);return t.forEach((e,o)=>{if(!e){t.splice(o,1);return}"string"==typeof e||"number"==typeof e?t[o]=_(e,r):"object"!=typeof e||Array.isArray(e)?"object"==typeof e&&Array.isArray(e)&&(t[o]=A(e,r)):t[o]=E(e,r)}),t}async function y(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await (0,d.A)(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let{name:o}=_(e.body),n=process.env.DSQL_STATIC_SERVER_DIR;if(!n)return console.log("Static File ENV not Found!"),r.json({success:!1,msg:"No Static File Path"});let s=l().join(n,`images/user-images/user-${t.id}/`)+o;if(c().existsSync(s))return r.json({success:!1});c().mkdirSync(s),r.json({success:!0})}let S=(0,i.M)(o,"default"),g=(0,i.M)(o,"config"),h=new n.PagesAPIRouteModule({definition:{kind:s.A.PAGES_API,page:"/api/addNewMediaFolder",pathname:"/api/addNewMediaFolder",bundlePath:"",filename:""},userland:o})},69842:(e,r,t)=>{t.d(r,{A:()=>c});var o=t(48786),n=t(95969),s=t(29021),i=t.n(s),a=t(89159);async function c(e,r,t){try{let{keyCookieName:s,csrfCookieName:c}=(0,a.A)();if(!e.cookies?.[s]?.match(/./))throw Error("Request Cookies not Found!");let u=(0,n.A)({encryptedString:e.cookies[s]});if(!u)throw Error("Couldn't decrypt auth cookie!");let l=JSON.parse(u);if(!l.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(l.csrf_k)))throw console.log("req.headers",e.headers),console.log("userObject",l),Error("Deep Auth Failed. `csrf` key not found in request headers!");let d=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!d)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!i().existsSync(`${d}/${l.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==l.verification_status&&!t){let e=await (0,o.A)(`SELECT verification_status FROM users WHERE id='${l.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(l?.date&&Date.now()-l.date>6048e5)throw Error("Key expired!");return l}catch(e){return console.log(`userAuth Error: ${e.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>o});function o(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",o=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",n=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",s=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),i=r;e?.userId&&(i+=`user_${e.userId}_`),s&&(i+=`${s}_`),i+=t;let a=r;e?.userId&&(a+=`user_${e.userId}_`),s&&(a+=`${s}_`),a+=o;let c=r;return e?.userId&&(c+=`user_${e.userId}_`),s&&(c+=`${s}_`),{keyCookieName:i,csrfCookieName:a,oneTimeCodeName:c+=n}}},95969:(e,r,t)=>{t.d(r,{A:()=>s});var o=t(55511),n=t(79428);function s({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let s=r||process.env.DSQL_ENCRYPTION_PASSWORD,i=t||process.env.DSQL_ENCRYPTION_SALT,a=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!s?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let c=(0,o.scryptSync)(s,i,a),u=n.Buffer.alloc(16,0),l=(0,o.createDecipheriv)("aes-192-cbc",c,u);try{let r=l.update(e,"hex","utf8");return r+=l.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>o});async function o(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=24709);module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/addSocialLogin.js b/dsql-app/.local_dist/server/pages/api/addSocialLogin.js index f3733e5..76fdd65 100644 --- a/dsql-app/.local_dist/server/pages/api/addSocialLogin.js +++ b/dsql-app/.local_dist/server/pages/api/addSocialLogin.js @@ -1,4 +1,4 @@ -"use strict";(()=>{var e={};e.id=3292,e.ids=[3292],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},79428:e=>{e.exports=require("buffer")},79646:e=>{e.exports=require("child_process")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},10353:(e,r,t)=>{t.r(r),t.d(r,{config:()=>p,default:()=>f,routeModule:()=>_});var s={};t.r(s),t.d(s,{default:()=>d});var o=t(89947),n=t(2706),i=t(96762),a=t(67619),l=t(69842);let c=t(29021);t(33873);let{execSync:u}=t(79646);async function d(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await (0,l.A)(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let{dbFullName:s,dbSlug:o,paradigm:n,platforms:i}=e.body;try{let e=`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${t.id}/env.json`;c.existsSync(e)||c.writeFileSync(e,"{}","utf8");let o=JSON.parse(c.readFileSync(e,"utf8")),a=o[s];a||(a={social:[]},o[s]=a);let l=a.social;l=[];for(let e=0;e{t.d(r,{A:()=>l});var s=t(48786),o=t(95969),n=t(29021),i=t.n(n),a=t(89159);async function l(e,r,t){try{let{keyCookieName:n,csrfCookieName:l}=(0,a.A)();if(!e.cookies?.[n]?.match(/./))throw Error("Request Cookies not Found!");let c=(0,o.A)({encryptedString:e.cookies[n]});if(!c)throw Error("Couldn't decrypt auth cookie!");let u=JSON.parse(c);if(!u.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(u.csrf_k)))throw Error("Deep Auth Failed. `csrf` key not found in request headers!");let d=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!d)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!i().existsSync(`${d}/${u.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==u.verification_status&&!t){let e=await (0,s.A)(`SELECT verification_status FROM users WHERE id='${u.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(u?.date&&Date.now()-u.date>6048e5)throw Error("Key expired!");return u}catch(e){return console.log(`userAuth Error: ${e.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>s});function s(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",o=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",n=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),i=r;e?.userId&&(i+=`user_${e.userId}_`),n&&(i+=`${n}_`),i+=t;let a=r;e?.userId&&(a+=`user_${e.userId}_`),n&&(a+=`${n}_`),a+=s;let l=r;return e?.userId&&(l+=`user_${e.userId}_`),n&&(l+=`${n}_`),{keyCookieName:i,csrfCookieName:a,oneTimeCodeName:l+=o}}},67619:(e,r,t)=>{t.r(r),t.d(r,{default:()=>n});var s=t(29021),o=t.n(s);async function n({user:e,message:r,component:t,noMail:s,req:n}){let i=new Date,a=(()=>{if(!n)return null;try{let e=n.headers["x-forwarded-for"],r=n.headers["x-real-ip"],t=n.headers["cf-connecting-ip"],s=Array.isArray(e)?e[0]:e?.split(",")[0],o=t||s||r||n.socket.remoteAddress;if(!o)return null;return String(o)}catch(e){return null}})();try{let s=`🚀 SERVER ERROR =========================== +"use strict";(()=>{var e={};e.id=3292,e.ids=[3292],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},10353:(e,r,t)=>{t.r(r),t.d(r,{config:()=>p,default:()=>f,routeModule:()=>_});var s={};t.r(s),t.d(s,{default:()=>d});var o=t(89947),n=t(2706),i=t(96762),a=t(29021),c=t.n(a),l=t(67619),u=t(69842);async function d(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await (0,u.A)(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let{dbFullName:s,dbSlug:o,paradigm:n,platforms:i}=e.body;try{let e=`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${t.id}/env.json`;c().existsSync(e)||c().writeFileSync(e,"{}","utf8");let o=JSON.parse(c().readFileSync(e,"utf8")),a=o[s];a||(a={social:[]},o[s]=a);let l=a.social;l=[];for(let e=0;e{t.d(r,{A:()=>c});var s=t(48786),o=t(95969),n=t(29021),i=t.n(n),a=t(89159);async function c(e,r,t){try{let{keyCookieName:n,csrfCookieName:c}=(0,a.A)();if(!e.cookies?.[n]?.match(/./))throw Error("Request Cookies not Found!");let l=(0,o.A)({encryptedString:e.cookies[n]});if(!l)throw Error("Couldn't decrypt auth cookie!");let u=JSON.parse(l);if(!u.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(u.csrf_k)))throw console.log("req.headers",e.headers),console.log("userObject",u),Error("Deep Auth Failed. `csrf` key not found in request headers!");let d=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!d)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!i().existsSync(`${d}/${u.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==u.verification_status&&!t){let e=await (0,s.A)(`SELECT verification_status FROM users WHERE id='${u.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(u?.date&&Date.now()-u.date>6048e5)throw Error("Key expired!");return u}catch(e){return console.log(`userAuth Error: ${e.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>s});function s(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",o=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",n=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),i=r;e?.userId&&(i+=`user_${e.userId}_`),n&&(i+=`${n}_`),i+=t;let a=r;e?.userId&&(a+=`user_${e.userId}_`),n&&(a+=`${n}_`),a+=s;let c=r;return e?.userId&&(c+=`user_${e.userId}_`),n&&(c+=`${n}_`),{keyCookieName:i,csrfCookieName:a,oneTimeCodeName:c+=o}}},67619:(e,r,t)=>{t.d(r,{A:()=>n});var s=t(29021),o=t.n(s);async function n({user:e,message:r,component:t,noMail:s,req:n}){let i=new Date,a=(()=>{if(!n)return null;try{let e=n.headers["x-forwarded-for"],r=n.headers["x-real-ip"],t=n.headers["cf-connecting-ip"],s=Array.isArray(e)?e[0]:e?.split(",")[0],o=t||s||r||n.socket.remoteAddress;if(!o)return null;return String(o)}catch(e){return null}})();try{let s=`🚀 SERVER ERROR =========================== Error Message: ${r} Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(s+=` User Id: ${e?.id} @@ -8,9 +8,9 @@ URL: ${n.url}`),n?.body&&(s+=` Request Body: ${JSON.stringify(n.body,null,4)}`),a&&(s+=` IP: ${a}`),s+=` Date: ${i.toDateString()} -========================================`,o().existsSync("./.tmp/error.log")||o().writeFileSync("./.tmp/error.log","","utf-8");let l=o().readFileSync("./.tmp/error.log","utf-8");o().writeFileSync("./.tmp/error.log",s),o().appendFileSync("./.tmp/error.log",` +========================================`,o().existsSync("./.tmp/error.log")||o().writeFileSync("./.tmp/error.log","","utf-8");let c=o().readFileSync("./.tmp/error.log","utf-8");o().writeFileSync("./.tmp/error.log",s),o().appendFileSync("./.tmp/error.log",` -${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},95969:(e,r,t)=>{t.d(r,{A:()=>n});var s=t(55511),o=t(79428);function n({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let n=r||process.env.DSQL_ENCRYPTION_PASSWORD,i=t||process.env.DSQL_ENCRYPTION_SALT,a=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!n?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let l=(0,s.scryptSync)(n,i,a),c=o.Buffer.alloc(16,0),u=(0,s.createDecipheriv)("aes-192-cbc",l,c);try{let r=u.update(e,"hex","utf8");return r+=u.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>s});async function s(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=10353);module.exports=t})(); \ No newline at end of file +${c}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},95969:(e,r,t)=>{t.d(r,{A:()=>n});var s=t(55511),o=t(79428);function n({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let n=r||process.env.DSQL_ENCRYPTION_PASSWORD,i=t||process.env.DSQL_ENCRYPTION_SALT,a=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!n?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let c=(0,s.scryptSync)(n,i,a),l=o.Buffer.alloc(16,0),u=(0,s.createDecipheriv)("aes-192-cbc",c,l);try{let r=u.update(e,"hex","utf8");return r+=u.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>s});async function s(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=10353);module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/addTableEntry.js b/dsql-app/.local_dist/server/pages/api/addTableEntry.js index d1e4eff..bf2e172 100644 --- a/dsql-app/.local_dist/server/pages/api/addTableEntry.js +++ b/dsql-app/.local_dist/server/pages/api/addTableEntry.js @@ -1,4 +1,4 @@ -"use strict";(()=>{var e={};e.id=460,e.ids=[460],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},72583:e=>{e.exports=require("sanitize-html")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},66912:(e,r,t)=>{t.r(r),t.d(r,{config:()=>p,default:()=>f,routeModule:()=>g});var s={};t.r(s),t.d(s,{default:()=>E});var a=t(89947),o=t(2706),i=t(96762),n=t(77377),d=t(98e3),l=t(31495),u=t(60125),c=t(67619),_=t(69842);async function E(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await (0,_.A)(e,r,!0);if(!t)return r.json({success:!1,msg:"User Auth Failed"});let{tableName:s,payload:a,tableSchema:o,dbSlug:i,dbId:E,delegated:f}=e.body;try{let c=await (0,u.A)({databaseSlug:i,request:e,user:t,query:e.query});if(!await (0,l.A)({user:t,confirmedDelegetedUser:c,database:i,table:s,dbId:E,priviledgeRegex:/Update Entries/i}))return r.json({success:!1,msg:"Unauthorized"});let _=c?.rootUserId?`datasquirel_user_${c.rootUserId}_${i}`:`datasquirel_user_${t.id}_${i}`,f=await (0,d.A)({dbContext:"Dsql User",paradigm:"Full Access",dbFullName:_,tableName:s,data:a,tableSchema:o});if(!f.insertId)throw console.log("Table Insertion Failed =>",f),Error(f?.error||"Table Insertion Failed");await (0,n.A)({dbName:_,entryId:f.insertId,entryOrder:a.order,tableName:s,tableSchema:o}),r.json({success:!0})}catch(e){(0,c.default)({component:"/api/addTableEntry/catch-error",message:e.message,user:t}),r.json({success:!1,msg:"Database Files could not be written!",err:e.message})}}let f=(0,i.M)(s,"default"),p=(0,i.M)(s,"config"),g=new a.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/addTableEntry",pathname:"/api/addTableEntry",bundlePath:"",filename:""},userland:s})},31495:(e,r,t)=>{t.d(r,{A:()=>o});var s=t(48786),a=t(67619);async function o({user:e,confirmedDelegetedUser:r,database:t,table:o,priviledgeRegex:i,dbId:n}){let d,l;try{r?.delegated?(d=await (0,s.A)("SELECT priviledge FROM delegated_user_tables WHERE root_user_id=? AND delegated_user_id=? AND `database`=? AND `table`=?",[r.rootUserId,e.id,t,o]),l=d[0]?.priviledge?.match(i)):(d=await (0,s.A)("SELECT table_slug FROM user_database_tables WHERE user_id=? AND table_slug=? AND db_id=?",[e.id,o,n]),l=!0)}catch(r){(0,a.default)({component:"checkUserRights",message:r.message,user:e})}return!!d&&!!d[0]&&!!l}},60125:(e,r,t)=>{t.d(r,{A:()=>a});var s=t(95969);async function a({request:e,databaseSlug:r,user:t,query:a}){try{let o=t.id,i=null;if(!a?.delegated)return{dbUserId:o};let n=a.dbUserId,d=`${process.env.DSQL_USER_DB_PREFIX}${n}_${r}`,l=`${process.env.DSQL_USER_DELEGATED_DB_COOKIE_PREFIX}${d}`;try{if(!e.cookies?.[l])throw Error("Cookie not present");let t=(0,s.A)({encryptedString:e.cookies[l]});if(!t)throw Error("Invalid Token");if((i=JSON.parse(t)).databaseSlug===r)return{dbUserId:o=i.rootUserId,rootUserId:i.rootUserId,rootUserName:i.rootUserName,rootUserEmail:i.rootUserEmail,rootUserImage:i.rootUserImage,databaseFullName:i.databaseFullName,databaseSlug:i.databaseSlug,allowedTables:i.allowedTables,priviledges:i.priviledges,database:i.databaseSlug,delegated:!0}}catch(e){}return{dbUserId:o}}catch(e){return null}}},77377:(e,r,t)=>{t.d(r,{A:()=>a});let s=t(37275);async function a({dbName:e,entryId:r,entryOrder:t,tableName:a,tableSchema:o}){try{if(o.fields.find(e=>!!e.fieldName?.match(/^order$/i))&&t){let o=await s({database:e,paradigm:"Full Access",queryString:`SELECT * FROM ${a} WHERE \`order\` = '${t}' AND id != ?`,queryValues:[String(r)]});if(!o?.[0])throw Error("No Existing Order");await s({database:e,paradigm:"Full Access",queryString:`UPDATE ${a} SET \`order\` = \`order\` + 1 WHERE \`order\` >= ${t} AND id != ?`,queryValues:[String(r)]})}return!0}catch(e){return!1}}},69842:(e,r,t)=>{t.d(r,{A:()=>d});var s=t(48786),a=t(95969),o=t(29021),i=t.n(o),n=t(89159);async function d(e,r,t){try{let{keyCookieName:o,csrfCookieName:d}=(0,n.A)();if(!e.cookies?.[o]?.match(/./))throw Error("Request Cookies not Found!");let l=(0,a.A)({encryptedString:e.cookies[o]});if(!l)throw Error("Couldn't decrypt auth cookie!");let u=JSON.parse(l);if(!u.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(u.csrf_k)))throw Error("Deep Auth Failed. `csrf` key not found in request headers!");let c=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!c)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!i().existsSync(`${c}/${u.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==u.verification_status&&!t){let e=await (0,s.A)(`SELECT verification_status FROM users WHERE id='${u.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(u?.date&&Date.now()-u.date>6048e5)throw Error("Key expired!");return u}catch(e){return console.log(`userAuth Error: ${e.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>s});function s(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",a=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",o=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),i=r;e?.userId&&(i+=`user_${e.userId}_`),o&&(i+=`${o}_`),i+=t;let n=r;e?.userId&&(n+=`user_${e.userId}_`),o&&(n+=`${o}_`),n+=s;let d=r;return e?.userId&&(d+=`user_${e.userId}_`),o&&(d+=`${o}_`),{keyCookieName:i,csrfCookieName:n,oneTimeCodeName:d+=a}}},67619:(e,r,t)=>{t.r(r),t.d(r,{default:()=>o});var s=t(29021),a=t.n(s);async function o({user:e,message:r,component:t,noMail:s,req:o}){let i=new Date,n=(()=>{if(!o)return null;try{let e=o.headers["x-forwarded-for"],r=o.headers["x-real-ip"],t=o.headers["cf-connecting-ip"],s=Array.isArray(e)?e[0]:e?.split(",")[0],a=t||s||r||o.socket.remoteAddress;if(!a)return null;return String(a)}catch(e){return null}})();try{let s=`🚀 SERVER ERROR =========================== +"use strict";(()=>{var e={};e.id=460,e.ids=[460],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},72583:e=>{e.exports=require("sanitize-html")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},66912:(e,r,t)=>{t.r(r),t.d(r,{config:()=>p,default:()=>f,routeModule:()=>g});var s={};t.r(s),t.d(s,{default:()=>E});var a=t(89947),o=t(2706),i=t(96762),n=t(77377),l=t(98e3),d=t(31495),u=t(60125),c=t(67619),_=t(69842);async function E(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await (0,_.A)(e,r,!0);if(!t)return r.json({success:!1,msg:"User Auth Failed"});let{tableName:s,payload:a,tableSchema:o,dbSlug:i,dbId:E,delegated:f}=e.body;try{let c=await (0,u.A)({databaseSlug:i,request:e,user:t,query:e.query});if(!await (0,d.A)({user:t,confirmedDelegetedUser:c,database:i,table:s,dbId:E,priviledgeRegex:/Update Entries/i}))return r.json({success:!1,msg:"Unauthorized"});let _=c?.rootUserId?`datasquirel_user_${c.rootUserId}_${i}`:`datasquirel_user_${t.id}_${i}`,f=await (0,l.A)({dbContext:"Dsql User",paradigm:"Full Access",dbFullName:_,tableName:s,data:a,tableSchema:o});if(!f.insertId)throw console.log("Table Insertion Failed =>",f),Error(f?.error||"Table Insertion Failed");await (0,n.A)({dbName:_,entryId:f.insertId,entryOrder:a.order,tableName:s,tableSchema:o}),r.json({success:!0})}catch(e){(0,c.A)({component:"/api/addTableEntry/catch-error",message:e.message,user:t}),r.json({success:!1,msg:"Database Files could not be written!",err:e.message})}}let f=(0,i.M)(s,"default"),p=(0,i.M)(s,"config"),g=new a.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/addTableEntry",pathname:"/api/addTableEntry",bundlePath:"",filename:""},userland:s})},31495:(e,r,t)=>{t.d(r,{A:()=>o});var s=t(48786),a=t(67619);async function o({user:e,confirmedDelegetedUser:r,database:t,table:o,priviledgeRegex:i,dbId:n}){let l,d;try{r?.delegated?(l=await (0,s.A)("SELECT priviledge FROM delegated_user_tables WHERE root_user_id=? AND delegated_user_id=? AND `database`=? AND `table`=?",[r.rootUserId,e.id,t,o]),d=l[0]?.priviledge?.match(i)):(l=await (0,s.A)("SELECT table_slug FROM user_database_tables WHERE user_id=? AND table_slug=? AND db_id=?",[e.id,o,n]),d=!0)}catch(r){(0,a.A)({component:"checkUserRights",message:r.message,user:e})}return!!l&&!!l[0]&&!!d}},60125:(e,r,t)=>{t.d(r,{A:()=>a});var s=t(95969);async function a({request:e,databaseSlug:r,user:t,query:a}){try{let o=t.id,i=null;if(!a?.delegated)return{dbUserId:o};let n=a.dbUserId,l=`${process.env.DSQL_USER_DB_PREFIX}${n}_${r}`,d=`${process.env.DSQL_USER_DELEGATED_DB_COOKIE_PREFIX}${l}`;try{if(!e.cookies?.[d])throw Error("Cookie not present");let t=(0,s.A)({encryptedString:e.cookies[d]});if(!t)throw Error("Invalid Token");if((i=JSON.parse(t)).databaseSlug===r)return{dbUserId:o=i.rootUserId,rootUserId:i.rootUserId,rootUserName:i.rootUserName,rootUserEmail:i.rootUserEmail,rootUserImage:i.rootUserImage,databaseFullName:i.databaseFullName,databaseSlug:i.databaseSlug,allowedTables:i.allowedTables,priviledges:i.priviledges,database:i.databaseSlug,delegated:!0}}catch(e){}return{dbUserId:o}}catch(e){return null}}},77377:(e,r,t)=>{t.d(r,{A:()=>a});var s=t(37275);async function a({dbName:e,entryId:r,entryOrder:t,tableName:a,tableSchema:o}){try{if(o.fields.find(e=>!!e.fieldName?.match(/^order$/i))&&t){let e=await (0,s.A)({paradigm:"Full Access",queryString:`SELECT * FROM ${a} WHERE \`order\` = '${t}' AND id != ?`,queryValues:[String(r)]});if(!e?.[0])throw Error("No Existing Order");await (0,s.A)({paradigm:"Full Access",queryString:`UPDATE ${a} SET \`order\` = \`order\` + 1 WHERE \`order\` >= ${t} AND id != ?`,queryValues:[String(r)]})}return!0}catch(e){return!1}}},69842:(e,r,t)=>{t.d(r,{A:()=>l});var s=t(48786),a=t(95969),o=t(29021),i=t.n(o),n=t(89159);async function l(e,r,t){try{let{keyCookieName:o,csrfCookieName:l}=(0,n.A)();if(!e.cookies?.[o]?.match(/./))throw Error("Request Cookies not Found!");let d=(0,a.A)({encryptedString:e.cookies[o]});if(!d)throw Error("Couldn't decrypt auth cookie!");let u=JSON.parse(d);if(!u.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(u.csrf_k)))throw console.log("req.headers",e.headers),console.log("userObject",u),Error("Deep Auth Failed. `csrf` key not found in request headers!");let c=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!c)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!i().existsSync(`${c}/${u.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==u.verification_status&&!t){let e=await (0,s.A)(`SELECT verification_status FROM users WHERE id='${u.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(u?.date&&Date.now()-u.date>6048e5)throw Error("Key expired!");return u}catch(e){return console.log(`userAuth Error: ${e.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>s});function s(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",a=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",o=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),i=r;e?.userId&&(i+=`user_${e.userId}_`),o&&(i+=`${o}_`),i+=t;let n=r;e?.userId&&(n+=`user_${e.userId}_`),o&&(n+=`${o}_`),n+=s;let l=r;return e?.userId&&(l+=`user_${e.userId}_`),o&&(l+=`${o}_`),{keyCookieName:i,csrfCookieName:n,oneTimeCodeName:l+=a}}},67619:(e,r,t)=>{t.d(r,{A:()=>o});var s=t(29021),a=t.n(s);async function o({user:e,message:r,component:t,noMail:s,req:o}){let i=new Date,n=(()=>{if(!o)return null;try{let e=o.headers["x-forwarded-for"],r=o.headers["x-real-ip"],t=o.headers["cf-connecting-ip"],s=Array.isArray(e)?e[0]:e?.split(",")[0],a=t||s||r||o.socket.remoteAddress;if(!a)return null;return String(a)}catch(e){return null}})();try{let s=`🚀 SERVER ERROR =========================== Error Message: ${r} Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(s+=` User Id: ${e?.id} @@ -8,9 +8,9 @@ URL: ${o.url}`),o?.body&&(s+=` Request Body: ${JSON.stringify(o.body,null,4)}`),n&&(s+=` IP: ${n}`),s+=` Date: ${i.toDateString()} -========================================`,a().existsSync("./.tmp/error.log")||a().writeFileSync("./.tmp/error.log","","utf-8");let d=a().readFileSync("./.tmp/error.log","utf-8");a().writeFileSync("./.tmp/error.log",s),a().appendFileSync("./.tmp/error.log",` +========================================`,a().existsSync("./.tmp/error.log")||a().writeFileSync("./.tmp/error.log","","utf-8");let l=a().readFileSync("./.tmp/error.log","utf-8");a().writeFileSync("./.tmp/error.log",s),a().appendFileSync("./.tmp/error.log",` -${d}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},95969:(e,r,t)=>{t.d(r,{A:()=>o});var s=t(55511),a=t(79428);function o({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let o=r||process.env.DSQL_ENCRYPTION_PASSWORD,i=t||process.env.DSQL_ENCRYPTION_SALT,n=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!o?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let d=(0,s.scryptSync)(o,i,n),l=a.Buffer.alloc(16,0),u=(0,s.createDecipheriv)("aes-192-cbc",d,l);try{let r=u.update(e,"hex","utf8");return r+=u.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=e=>r(r.s=e),s=r.X(0,[1251],()=>t(66912));module.exports=s})(); \ No newline at end of file +${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},95969:(e,r,t)=>{t.d(r,{A:()=>o});var s=t(55511),a=t(79428);function o({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let o=r||process.env.DSQL_ENCRYPTION_PASSWORD,i=t||process.env.DSQL_ENCRYPTION_SALT,n=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!o?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let l=(0,s.scryptSync)(o,i,n),d=a.Buffer.alloc(16,0),u=(0,s.createDecipheriv)("aes-192-cbc",l,d);try{let r=u.update(e,"hex","utf8");return r+=u.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=e=>r(r.s=e),s=r.X(0,[1251],()=>t(66912));module.exports=s})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/addUserMedia.js b/dsql-app/.local_dist/server/pages/api/addUserMedia.js index e04716a..5189145 100644 --- a/dsql-app/.local_dist/server/pages/api/addUserMedia.js +++ b/dsql-app/.local_dist/server/pages/api/addUserMedia.js @@ -1,16 +1,16 @@ -"use strict";(()=>{var e={};e.id=979,e.ids=[979],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},72583:e=>{e.exports=require("sanitize-html")},9973:e=>{e.exports=require("serverless-mysql")},9288:e=>{e.exports=require("sharp")},79428:e=>{e.exports=require("buffer")},79646:e=>{e.exports=require("child_process")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},27973:(e,r,t)=>{t.r(r),t.d(r,{config:()=>v,default:()=>S,routeModule:()=>g});var a={};t.r(a),t.d(a,{config:()=>f,default:()=>h});var i=t(89947),s=t(2706),l=t(96762),o=t(98e3),n=t(96551),u=t(45185),d=t(67619),c=t(69842);let m=t(29021),_=t(33873),{execSync:p}=t(79646),f={api:{responseLimit:"1mb",bodyParser:{sizeLimit:"200mb"}}};async function h(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await (0,c.A)(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let a=e.body,{media:i}=a,s=a.folder,l=a.type;"production".match(/production/);let p=process.env.DSQL_STATIC_SERVER_DIR;if(!p)return console.log("Static File ENV not Found!"),r.json({success:!1,msg:"No Static File Path"});if(s){let e=_.join(p,`images/user-images/user-${t.id}/${s}`);m.existsSync(e)||m.mkdirSync(e,{recursive:!0});let r=`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${t.id}/media/${s}`;m.existsSync(r)||m.mkdirSync(r,{recursive:!0})}try{let e=[];for(let r=0;r{t.d(r,{A:()=>o});var a=t(9288),i=t.n(a),s=t(67619),l=t(45185);async function o({imageSourceBase64:e,imageName:r,userId:t,mimeType:a,thumbnailSize:o,folder:n,isPrivate:u}){try{let s=Buffer.from(e,"base64"),d=o?parseInt(o.toString()):400,c=i()(s),m=i()(s),_=(0,l.A)({isPrivate:u,userId:t,folder:n});if(!_)return null;let{fileRootPath:p,urlRootPath:f,relativePath:h}=_,{width:S,height:v,format:g}=await c.metadata(),E=a||g;S&&v&&S>1800&&c.resize(1800,Math.round(1800/S*v),{fit:"cover"}),c.toFormat(E,{quality:80}),await c.metadata();let y=`${r}.${E}`;if(await c.toFile(p+y),S&&v&&S>d){let e=d/S;m.resize(d,Math.round(v*e),{fit:"cover"})}else S&&v&&m.resize(150,Math.round(150/S*v),{fit:"cover"});m.toFormat(E,{quality:80});let $=`${r}_thumbnail.${E}`;return await m.toFile(p+$),{urlPath:f+y,urlThumbnailPath:f+$,urlRelativePath:h+y,urlThumbnailRelativePath:h+$}}catch(e){return console.log("Write Image to Disk error =>",e.message),(0,s.default)({component:"functions/backend/fsWriteImageToDiskFromBase64",message:e.message}),null}}},45185:(e,r,t)=>{t.d(r,{A:()=>o});var a=t(29021),i=t.n(a),s=t(33873),l=t.n(s);function o({isPrivate:e,userId:r,folder:t,video:a,pathOnly:s}){"production".match(/production/);let o=process.env.DSQL_STATIC_SERVER_DIR;if(!o)return console.log("Static File ENV not Found!"),null;let n=e?`@/${a?"videos":"media"}/${t?t+"/":""}`:a?`/videos/user-videos/user-${r}/${t?t+"/":""}`:`/images/user-images/user-${r}/${t?t+"/":""}`,u=e?`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${r}/media/${t?t+"/":""}`:l().join(o,n);return i().existsSync(u)||s||i().mkdirSync(u,{recursive:!0}),{fileRootPath:u,urlRootPath:e?`@/media/${t?t+"/":""}`:`${process.env.DSQL_STATIC_HOST}${n}`,relativePath:n}}},69842:(e,r,t)=>{t.d(r,{A:()=>n});var a=t(48786),i=t(95969),s=t(29021),l=t.n(s),o=t(89159);async function n(e,r,t){try{let{keyCookieName:s,csrfCookieName:n}=(0,o.A)();if(!e.cookies?.[s]?.match(/./))throw Error("Request Cookies not Found!");let u=(0,i.A)({encryptedString:e.cookies[s]});if(!u)throw Error("Couldn't decrypt auth cookie!");let d=JSON.parse(u);if(!d.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(d.csrf_k)))throw Error("Deep Auth Failed. `csrf` key not found in request headers!");let c=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!c)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!l().existsSync(`${c}/${d.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==d.verification_status&&!t){let e=await (0,a.A)(`SELECT verification_status FROM users WHERE id='${d.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(d?.date&&Date.now()-d.date>6048e5)throw Error("Key expired!");return d}catch(e){return console.log(`userAuth Error: ${e.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>a});function a(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",a=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",i=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",s=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),l=r;e?.userId&&(l+=`user_${e.userId}_`),s&&(l+=`${s}_`),l+=t;let o=r;e?.userId&&(o+=`user_${e.userId}_`),s&&(o+=`${s}_`),o+=a;let n=r;return e?.userId&&(n+=`user_${e.userId}_`),s&&(n+=`${s}_`),{keyCookieName:l,csrfCookieName:o,oneTimeCodeName:n+=i}}},67619:(e,r,t)=>{t.r(r),t.d(r,{default:()=>s});var a=t(29021),i=t.n(a);async function s({user:e,message:r,component:t,noMail:a,req:s}){let l=new Date,o=(()=>{if(!s)return null;try{let e=s.headers["x-forwarded-for"],r=s.headers["x-real-ip"],t=s.headers["cf-connecting-ip"],a=Array.isArray(e)?e[0]:e?.split(",")[0],i=t||a||r||s.socket.remoteAddress;if(!i)return null;return String(i)}catch(e){return null}})();try{let a=`🚀 SERVER ERROR =========================== +"use strict";(()=>{var e={};e.id=979,e.ids=[979],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},72583:e=>{e.exports=require("sanitize-html")},9973:e=>{e.exports=require("serverless-mysql")},9288:e=>{e.exports=require("sharp")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},27973:(e,r,t)=>{t.r(r),t.d(r,{config:()=>v,default:()=>g,routeModule:()=>E});var a={};t.r(a),t.d(a,{config:()=>h,default:()=>S});var i=t(89947),s=t(2706),o=t(96762),l=t(29021),n=t.n(l),u=t(33873),d=t.n(u),c=t(98e3),m=t(96551),_=t(45185),p=t(67619),f=t(69842);let h={api:{responseLimit:"1mb",bodyParser:{sizeLimit:"200mb"}}};async function S(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await (0,f.A)(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let a=e.body,{media:i}=a,s=a.folder,o=a.type;"production".match(/production/);let l=process.env.DSQL_STATIC_SERVER_DIR;if(!l)return console.log("Static File ENV not Found!"),r.json({success:!1,msg:"No Static File Path"});if(s){let e=d().join(l,`images/user-images/user-${t.id}/${s}`);n().existsSync(e)||n().mkdirSync(e,{recursive:!0});let r=`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${t.id}/media/${s}`;n().existsSync(r)||n().mkdirSync(r,{recursive:!0})}try{let e=[];for(let r=0;r{t.d(r,{A:()=>l});var a=t(9288),i=t.n(a),s=t(67619),o=t(45185);async function l({imageSourceBase64:e,imageName:r,userId:t,mimeType:a,thumbnailSize:l,folder:n,isPrivate:u}){try{let s=Buffer.from(e,"base64"),d=l?parseInt(l.toString()):400,c=i()(s),m=i()(s),_=(0,o.A)({isPrivate:u,userId:t,folder:n});if(!_)return null;let{fileRootPath:p,urlRootPath:f,relativePath:h}=_,{width:S,height:g,format:v}=await c.metadata(),E=a||v;S&&g&&S>1800&&c.resize(1800,Math.round(1800/S*g),{fit:"cover"}),c.toFormat(E,{quality:80}),await c.metadata();let y=`${r}.${E}`;if(await c.toFile(p+y),S&&g&&S>d){let e=d/S;m.resize(d,Math.round(g*e),{fit:"cover"})}else S&&g&&m.resize(150,Math.round(150/S*g),{fit:"cover"});m.toFormat(E,{quality:80});let A=`${r}_thumbnail.${E}`;return await m.toFile(p+A),{urlPath:f+y,urlThumbnailPath:f+A,urlRelativePath:h+y,urlThumbnailRelativePath:h+A}}catch(e){return console.log("Write Image to Disk error =>",e.message),(0,s.A)({component:"functions/backend/fsWriteImageToDiskFromBase64",message:e.message}),null}}},45185:(e,r,t)=>{t.d(r,{A:()=>l});var a=t(29021),i=t.n(a),s=t(33873),o=t.n(s);function l({isPrivate:e,userId:r,folder:t,video:a,pathOnly:s}){"production".match(/production/);let l=process.env.DSQL_STATIC_SERVER_DIR;if(!l)return console.log("Static File ENV not Found!"),null;let n=e?`@/${a?"videos":"media"}/${t?t+"/":""}`:a?`/videos/user-videos/user-${r}/${t?t+"/":""}`:`/images/user-images/user-${r}/${t?t+"/":""}`,u=e?`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${r}/media/${t?t+"/":""}`:o().join(l,n);return i().existsSync(u)||s||i().mkdirSync(u,{recursive:!0}),{fileRootPath:u,urlRootPath:e?`@/media/${t?t+"/":""}`:`${process.env.DSQL_STATIC_HOST}${n}`,relativePath:n}}},69842:(e,r,t)=>{t.d(r,{A:()=>n});var a=t(48786),i=t(95969),s=t(29021),o=t.n(s),l=t(89159);async function n(e,r,t){try{let{keyCookieName:s,csrfCookieName:n}=(0,l.A)();if(!e.cookies?.[s]?.match(/./))throw Error("Request Cookies not Found!");let u=(0,i.A)({encryptedString:e.cookies[s]});if(!u)throw Error("Couldn't decrypt auth cookie!");let d=JSON.parse(u);if(!d.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(d.csrf_k)))throw console.log("req.headers",e.headers),console.log("userObject",d),Error("Deep Auth Failed. `csrf` key not found in request headers!");let c=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!c)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!o().existsSync(`${c}/${d.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==d.verification_status&&!t){let e=await (0,a.A)(`SELECT verification_status FROM users WHERE id='${d.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(d?.date&&Date.now()-d.date>6048e5)throw Error("Key expired!");return d}catch(e){return console.log(`userAuth Error: ${e.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>a});function a(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",a=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",i=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",s=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),o=r;e?.userId&&(o+=`user_${e.userId}_`),s&&(o+=`${s}_`),o+=t;let l=r;e?.userId&&(l+=`user_${e.userId}_`),s&&(l+=`${s}_`),l+=a;let n=r;return e?.userId&&(n+=`user_${e.userId}_`),s&&(n+=`${s}_`),{keyCookieName:o,csrfCookieName:l,oneTimeCodeName:n+=i}}},67619:(e,r,t)=>{t.d(r,{A:()=>s});var a=t(29021),i=t.n(a);async function s({user:e,message:r,component:t,noMail:a,req:s}){let o=new Date,l=(()=>{if(!s)return null;try{let e=s.headers["x-forwarded-for"],r=s.headers["x-real-ip"],t=s.headers["cf-connecting-ip"],a=Array.isArray(e)?e[0]:e?.split(",")[0],i=t||a||r||s.socket.remoteAddress;if(!i)return null;return String(i)}catch(e){return null}})();try{let a=`🚀 SERVER ERROR =========================== Error Message: ${r} Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(a+=` User Id: ${e?.id} User Name: ${e?.first_name} ${e?.last_name} User Email: ${e?.email}`),s?.url&&(a+=` URL: ${s.url}`),s?.body&&(a+=` -Request Body: ${JSON.stringify(s.body,null,4)}`),o&&(a+=` -IP: ${o}`),a+=` -Date: ${l.toDateString()} +Request Body: ${JSON.stringify(s.body,null,4)}`),l&&(a+=` +IP: ${l}`),a+=` +Date: ${o.toDateString()} ========================================`,i().existsSync("./.tmp/error.log")||i().writeFileSync("./.tmp/error.log","","utf-8");let n=i().readFileSync("./.tmp/error.log","utf-8");i().writeFileSync("./.tmp/error.log",a),i().appendFileSync("./.tmp/error.log",` -${n}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},95969:(e,r,t)=>{t.d(r,{A:()=>s});var a=t(55511),i=t(79428);function s({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let s=r||process.env.DSQL_ENCRYPTION_PASSWORD,l=t||process.env.DSQL_ENCRYPTION_SALT,o=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!s?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!l?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let n=(0,a.scryptSync)(s,l,o),u=i.Buffer.alloc(16,0),d=(0,a.createDecipheriv)("aes-192-cbc",n,u);try{let r=d.update(e,"hex","utf8");return r+=d.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=e=>r(r.s=e),a=r.X(0,[1251],()=>t(27973));module.exports=a})(); \ No newline at end of file +${n}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},95969:(e,r,t)=>{t.d(r,{A:()=>s});var a=t(55511),i=t(79428);function s({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let s=r||process.env.DSQL_ENCRYPTION_PASSWORD,o=t||process.env.DSQL_ENCRYPTION_SALT,l=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!s?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!o?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let n=(0,a.scryptSync)(s,o,l),u=i.Buffer.alloc(16,0),d=(0,a.createDecipheriv)("aes-192-cbc",n,u);try{let r=d.update(e,"hex","utf8");return r+=d.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=e=>r(r.s=e),a=r.X(0,[1251],()=>t(27973));module.exports=a})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/addUserTable.js b/dsql-app/.local_dist/server/pages/api/addUserTable.js index 30d2fa5..080adf6 100644 --- a/dsql-app/.local_dist/server/pages/api/addUserTable.js +++ b/dsql-app/.local_dist/server/pages/api/addUserTable.js @@ -1 +1 @@ -"use strict";(()=>{var e={};e.id=8275,e.ids=[8275],e.modules={27825:e=>{e.exports=require("lodash")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},72583:e=>{e.exports=require("sanitize-html")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},79646:e=>{e.exports=require("child_process")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},47122:(e,a,r)=>{r.r(a),r.d(a,{config:()=>N,default:()=>E,routeModule:()=>S});var t={};r.r(t),r.d(t,{default:()=>h});var s=r(89947),l=r(2706),d=r(96762),i=r(67619),n=r(69842),o=r(4820),u=r(27825),c=r.n(u),b=r(21724),_=r(48786),m=r(98e3),f=r(76856);r(29021),r(33873);let{execSync:p}=r(79646);async function h(e,a){if("POST"!==e.method)return a.json({msg:"Failed!"});let r=await (0,n.A)(e,a,!0);if(!r)return console.log("No User"),a.json({success:!1,msg:"Unauthorized"});let{payload:t}=e.body,s=e.body.dbFullName.replace(/[^a-z\_0-9]/g,""),l=e.body.dbSlug,d=e.body.dbId,u=e.body.parentDatabase,p=e.body.parentTable;try{let e=(0,o.A)({userId:r.id});if(!e)throw Error("No User Schema found!");let n=e.findIndex(e=>e.dbFullName===s),h=e[n];if(!h)throw Error("No Target Database Found!");let E=h.tables.findIndex(e=>e.tableName===t.tableName);if(E>=0?e[n].tables[E]=t:e[n].tables.push(t),t?.childTable){let a=e.find(e=>e.dbFullName===u),r=a?.tables.find(e=>{if(e.tableName===p)return!0});if(!r)throw Error("Child Table Parent Doesn't Exist!");r.childrenTables?.[0]?r.childrenTables.push({dbNameFull:s,tableName:t.tableName,tableNameFull:t.tableNameFull}):r.childrenTables=[{dbNameFull:s,tableName:t.tableName,tableNameFull:t.tableFullName}]}if(h.childrenDatabases)for(let a=0;ae.dbFullName===s.dbFullName);e[a]&&(e[a].tables=c().cloneDeep(h.tables));let l=await (0,_.A)("SELECT * FROM user_databases WHERE user_id = ? AND db_full_name = ?",[r.id,s.dbFullName]),d=await (0,_.A)("SELECT * FROM user_database_tables WHERE db_id=? AND user_id=? AND table_slug=?",[l[0].id,r.id,t.tableName]);if(d?.[0])continue;await (0,m.A)({dbFullName:"datasquirel",tableName:"user_database_tables",data:{user_id:r.id,db_id:l[0].id,db_slug:l[0].db_slug,table_name:t.tableFullName,table_slug:t.tableName}})}catch(e){(0,i.default)({component:"/api/addUserTable/lines-124-140",message:e.message,user:r})}}(0,b.A)({userId:r.id,schemaData:e});let N={user_id:r.id,db_id:d,db_slug:l,table_name:t.tableFullName,table_slug:t.tableName};t?.childTable&&(N.child_table="1",N.child_table_parent_database=u,N.child_table_parent_table=p),await (0,m.A)({dbFullName:"datasquirel",tableName:"user_database_tables",data:N}),await (0,f.A)({userId:r.id,targetDatabase:s}),a.json({success:!0})}catch(e){console.log(e.message),(0,i.default)({component:"/api/addUserTable/main-catch-error",message:e.message,user:r}),a.json({success:!1,msg:"Database Files could not be written!"})}}let E=(0,d.M)(t,"default"),N=(0,d.M)(t,"config"),S=new s.PagesAPIRouteModule({definition:{kind:l.A.PAGES_API,page:"/api/addUserTable",pathname:"/api/addUserTable",bundlePath:"",filename:""},userland:t})},69842:(e,a,r)=>{r.d(a,{A:()=>n});var t=r(48786),s=r(95969),l=r(29021),d=r.n(l),i=r(89159);async function n(e,a,r){try{let{keyCookieName:l,csrfCookieName:n}=(0,i.A)();if(!e.cookies?.[l]?.match(/./))throw Error("Request Cookies not Found!");let o=(0,s.A)({encryptedString:e.cookies[l]});if(!o)throw Error("Couldn't decrypt auth cookie!");let u=JSON.parse(o);if(!u.csrf_k)throw Error("No `csrf_k` present in user Object!");if(r&&!Object.keys(e.headers).find(e=>e.includes(u.csrf_k)))throw Error("Deep Auth Failed. `csrf` key not found in request headers!");let c=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!c)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(r&&!d().existsSync(`${c}/${u.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==u.verification_status&&!r){let e=await (0,t.A)(`SELECT verification_status FROM users WHERE id='${u.id}'`);e&&e[0]&&1==e[0].verification_status&&a.setHeader("Set-Cookie",["user_refresh=1"])}if(u?.date&&Date.now()-u.date>6048e5)throw Error("Key expired!");return u}catch(e){return console.log(`userAuth Error: ${e.message}`),null}}},89159:(e,a,r)=>{r.d(a,{A:()=>t});function t(e){let a=process.env.DSQL_COOKIES_PREFIX||"dsql_",r=process.env.DSQL_COOKIES_KEY_NAME||"key",t=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",s=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",l=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),d=a;e?.userId&&(d+=`user_${e.userId}_`),l&&(d+=`${l}_`),d+=r;let i=a;e?.userId&&(i+=`user_${e.userId}_`),l&&(i+=`${l}_`),i+=t;let n=a;return e?.userId&&(n+=`user_${e.userId}_`),l&&(n+=`${l}_`),{keyCookieName:d,csrfCookieName:i,oneTimeCodeName:n+=s}}},4820:(e,a,r)=>{r.d(a,{A:()=>n});var t=r(67619),s=r(29021),l=r.n(s),d=r(33873),i=r.n(d);function n({userId:e}){try{let a=i().resolve(process.cwd(),`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${e}/main.json`);return JSON.parse(l().readFileSync(a,"utf-8"))}catch(e){return(0,t.default)({component:"grabUserSchemaData",message:e.message}),null}}},21724:(e,a,r)=>{r.d(a,{A:()=>n});var t=r(67619),s=r(29021),l=r.n(s),d=r(33873),i=r.n(d);function n({userId:e,schemaData:a}){try{let r=i().resolve(process.cwd(),`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${e}/main.json`);return l().writeFileSync(r,JSON.stringify(a),"utf8"),!0}catch(e){return(0,t.default)({component:"/functions/backend/setUserSchemaData",message:e.message}),!1}}}};var a=require("../../webpack-api-runtime.js");a.C(e);var r=e=>a(a.s=e),t=a.X(0,[1251,2282],()=>r(47122));module.exports=t})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=8275,e.ids=[8275],e.modules={27825:e=>{e.exports=require("lodash")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},72583:e=>{e.exports=require("sanitize-html")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},47122:(e,a,r)=>{r.r(a),r.d(a,{config:()=>E,default:()=>h,routeModule:()=>N});var s={};r.r(s),r.d(s,{default:()=>p});var t=r(89947),l=r(2706),d=r(96762),i=r(67619),n=r(69842),o=r(4820),u=r(27825),c=r.n(u),b=r(21724),_=r(48786),m=r(98e3),f=r(76856);async function p(e,a){if("POST"!==e.method)return a.json({msg:"Failed!"});let r=await (0,n.A)(e,a,!0);if(!r)return console.log("No User"),a.json({success:!1,msg:"Unauthorized"});let{payload:s}=e.body,t=e.body.dbFullName.replace(/[^a-z\_0-9]/g,""),l=e.body.dbSlug,d=e.body.dbId,u=e.body.parentDatabase,p=e.body.parentTable;try{let e=(0,o.A)({userId:r.id});if(!e)throw Error("No User Schema found!");let n=e.findIndex(e=>e.dbFullName===t),h=e[n];if(!h)throw Error("No Target Database Found!");let E=h.tables.findIndex(e=>e.tableName===s.tableName);if(E>=0?e[n].tables[E]=s:e[n].tables.push(s),s?.childTable){let a=e.find(e=>e.dbFullName===u),r=a?.tables.find(e=>{if(e.tableName===p)return!0});if(!r)throw Error("Child Table Parent Doesn't Exist!");r.childrenTables?.[0]?r.childrenTables.push({dbNameFull:t,tableName:s.tableName,tableNameFull:s.tableNameFull}):r.childrenTables=[{dbNameFull:t,tableName:s.tableName,tableNameFull:s.tableFullName}]}if(h.childrenDatabases)for(let a=0;ae.dbFullName===t.dbFullName);e[a]&&(e[a].tables=c().cloneDeep(h.tables));let l=await (0,_.A)("SELECT * FROM user_databases WHERE user_id = ? AND db_full_name = ?",[r.id,t.dbFullName]),d=await (0,_.A)("SELECT * FROM user_database_tables WHERE db_id=? AND user_id=? AND table_slug=?",[l[0].id,r.id,s.tableName]);if(d?.[0])continue;await (0,m.A)({dbFullName:"datasquirel",tableName:"user_database_tables",data:{user_id:r.id,db_id:l[0].id,db_slug:l[0].db_slug,table_name:s.tableFullName,table_slug:s.tableName}})}catch(e){(0,i.A)({component:"/api/addUserTable/lines-124-140",message:e.message,user:r})}}(0,b.A)({userId:r.id,schemaData:e});let N={user_id:r.id,db_id:d,db_slug:l,table_name:s.tableFullName,table_slug:s.tableName};s?.childTable&&(N.child_table="1",N.child_table_parent_database=u,N.child_table_parent_table=p),await (0,m.A)({dbFullName:"datasquirel",tableName:"user_database_tables",data:N}),await (0,f.A)({userId:r.id,targetDatabase:t}),a.json({success:!0})}catch(e){console.log(e.message),(0,i.A)({component:"/api/addUserTable/main-catch-error",message:e.message,user:r}),a.json({success:!1,msg:"Database Files could not be written!"})}}let h=(0,d.M)(s,"default"),E=(0,d.M)(s,"config"),N=new t.PagesAPIRouteModule({definition:{kind:l.A.PAGES_API,page:"/api/addUserTable",pathname:"/api/addUserTable",bundlePath:"",filename:""},userland:s})},69842:(e,a,r)=>{r.d(a,{A:()=>n});var s=r(48786),t=r(95969),l=r(29021),d=r.n(l),i=r(89159);async function n(e,a,r){try{let{keyCookieName:l,csrfCookieName:n}=(0,i.A)();if(!e.cookies?.[l]?.match(/./))throw Error("Request Cookies not Found!");let o=(0,t.A)({encryptedString:e.cookies[l]});if(!o)throw Error("Couldn't decrypt auth cookie!");let u=JSON.parse(o);if(!u.csrf_k)throw Error("No `csrf_k` present in user Object!");if(r&&!Object.keys(e.headers).find(e=>e.includes(u.csrf_k)))throw console.log("req.headers",e.headers),console.log("userObject",u),Error("Deep Auth Failed. `csrf` key not found in request headers!");let c=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!c)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(r&&!d().existsSync(`${c}/${u.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==u.verification_status&&!r){let e=await (0,s.A)(`SELECT verification_status FROM users WHERE id='${u.id}'`);e&&e[0]&&1==e[0].verification_status&&a.setHeader("Set-Cookie",["user_refresh=1"])}if(u?.date&&Date.now()-u.date>6048e5)throw Error("Key expired!");return u}catch(e){return console.log(`userAuth Error: ${e.message}`),null}}},89159:(e,a,r)=>{r.d(a,{A:()=>s});function s(e){let a=process.env.DSQL_COOKIES_PREFIX||"dsql_",r=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",t=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",l=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),d=a;e?.userId&&(d+=`user_${e.userId}_`),l&&(d+=`${l}_`),d+=r;let i=a;e?.userId&&(i+=`user_${e.userId}_`),l&&(i+=`${l}_`),i+=s;let n=a;return e?.userId&&(n+=`user_${e.userId}_`),l&&(n+=`${l}_`),{keyCookieName:d,csrfCookieName:i,oneTimeCodeName:n+=t}}},4820:(e,a,r)=>{r.d(a,{A:()=>n});var s=r(67619),t=r(29021),l=r.n(t),d=r(33873),i=r.n(d);function n({userId:e}){try{let a=i().resolve(process.cwd(),`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${e}/main.json`);return JSON.parse(l().readFileSync(a,"utf-8"))}catch(e){return(0,s.A)({component:"grabUserSchemaData",message:e.message}),null}}},21724:(e,a,r)=>{r.d(a,{A:()=>n});var s=r(67619),t=r(29021),l=r.n(t),d=r(33873),i=r.n(d);function n({userId:e,schemaData:a}){try{let r=i().resolve(process.cwd(),`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${e}/main.json`);return l().writeFileSync(r,JSON.stringify(a),"utf8"),!0}catch(e){return(0,s.A)({component:"/functions/backend/setUserSchemaData",message:e.message}),!1}}}};var a=require("../../webpack-api-runtime.js");a.C(e);var r=e=>a(a.s=e),s=a.X(0,[1251,2282],()=>r(47122));module.exports=s})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/addUserUser.js b/dsql-app/.local_dist/server/pages/api/addUserUser.js index af7290d..fa3639e 100644 --- a/dsql-app/.local_dist/server/pages/api/addUserUser.js +++ b/dsql-app/.local_dist/server/pages/api/addUserUser.js @@ -1,4 +1,4 @@ -"use strict";(()=>{var e={};e.id=3812,e.ids=[3812],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},21572:e=>{e.exports=require("nodemailer")},72583:e=>{e.exports=require("sanitize-html")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},70955:(e,s,r)=>{r.r(s),r.d(s,{config:()=>m,default:()=>p,routeModule:()=>f});var t={};r.r(t),r.d(t,{default:()=>_});var a=r(89947),i=r(2706),n=r(96762),o=r(96052),d=r(69842),c=r(98e3),l=r(48786),u=r(83919);async function _(e,s){if("POST"!==e.method)return s.json({msg:"Failed!"});let r=await (0,d.A)(e,s,!0);if(!r)return s.json({success:!1,msg:"Unauthorized"});let t=e.body,a=t.paradigm;if(a?.match(/database/)){let e=await (0,c.A)({dbFullName:"datasquirel",tableName:"user_users",data:(()=>{let e=Object.keys(t),s={};return e.forEach(e=>{e?.match(/paradigm|priviledge|database_access|databases|confirm/)||(s[e]=t[e])}),s.user_id=r.id,s.password=(0,u.A)({encryptionKey:process.env.DSQL_ENCRYPTION_PASSWORD||"",password:t.password}),s.user_type="database",s.email=t.email_address,s.image="/images/user-preset.png",s.image_thumbnail="/images/user-preset-thumbnail.png",delete s.email_address,s})()});s.json({success:!!e?.insertId,msg:"New User User Added",newUserId:e.insertId})}else{if(r?.email===t.email_address)return s.json({success:!1,msg:"Can't Invite yourself"});let e=await (0,l.A)("SELECT * FROM invitations WHERE invited_user_email=? AND inviting_user_id=?",[t.email_address,r.id]);if(e&&e[0])return s.json({success:!1,msg:"User Already Invited"});await (0,c.A)({dbFullName:"datasquirel",tableName:"invitations",data:{inviting_user_id:r.id,invited_user_email:t.email_address,database_access:t.database_access,priviledge:t.priviledge,db_tables_data:t.db_tables}});let a=await (0,o.default)({to:t.email_address,subject:`${r.first_name} ${r.last_name} Invited you`,text:`${r.first_name} ${r.last_name} has invited you to manage a datasquirel account`,html:` +"use strict";(()=>{var e={};e.id=3812,e.ids=[3812],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},21572:e=>{e.exports=require("nodemailer")},72583:e=>{e.exports=require("sanitize-html")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},70955:(e,s,r)=>{r.r(s),r.d(s,{config:()=>m,default:()=>p,routeModule:()=>f});var t={};r.r(t),r.d(t,{default:()=>_});var a=r(89947),i=r(2706),n=r(96762),o=r(96052),d=r(69842),c=r(98e3),l=r(48786),u=r(83919);async function _(e,s){if("POST"!==e.method)return s.json({msg:"Failed!"});let r=await (0,d.A)(e,s,!0);if(!r)return s.json({success:!1,msg:"Unauthorized"});let t=e.body,a=t.paradigm;if(a?.match(/database/)){let e=await (0,c.A)({dbFullName:"datasquirel",tableName:"user_users",data:(()=>{let e=Object.keys(t),s={};return e.forEach(e=>{e?.match(/paradigm|priviledge|database_access|databases|confirm/)||(s[e]=t[e])}),s.user_id=r.id,s.password=(0,u.A)({encryptionKey:process.env.DSQL_ENCRYPTION_PASSWORD||"",password:t.password}),s.user_type="database",s.email=t.email_address,s.image="/images/user-preset.png",s.image_thumbnail="/images/user-preset-thumbnail.png",delete s.email_address,s})()});s.json({success:!!e?.insertId,msg:"New User User Added",newUserId:e.insertId})}else{if(r?.email===t.email_address)return s.json({success:!1,msg:"Can't Invite yourself"});let e=await (0,l.A)("SELECT * FROM invitations WHERE invited_user_email=? AND inviting_user_id=?",[t.email_address,r.id]);if(e&&e[0])return s.json({success:!1,msg:"User Already Invited"});await (0,c.A)({dbFullName:"datasquirel",tableName:"invitations",data:{inviting_user_id:r.id,invited_user_email:t.email_address,database_access:t.database_access,priviledge:t.priviledge,db_tables_data:t.db_tables}});let a=await (0,o.A)({to:t.email_address,subject:`${r.first_name} ${r.last_name} Invited you`,text:`${r.first_name} ${r.last_name} has invited you to manage a datasquirel account`,html:`

${r.first_name} ${r.last_name} has invited you to manage a datasquirel account.

Accept Invitation - `});s.json({success:!!a?.accepted,msg:"This is an invitation request"})}}let p=(0,n.M)(t,"default"),m=(0,n.M)(t,"config"),f=new a.PagesAPIRouteModule({definition:{kind:i.A.PAGES_API,page:"/api/addUserUser",pathname:"/api/addUserUser",bundlePath:"",filename:""},userland:t})},69842:(e,s,r)=>{r.d(s,{A:()=>d});var t=r(48786),a=r(95969),i=r(29021),n=r.n(i),o=r(89159);async function d(e,s,r){try{let{keyCookieName:i,csrfCookieName:d}=(0,o.A)();if(!e.cookies?.[i]?.match(/./))throw Error("Request Cookies not Found!");let c=(0,a.A)({encryptedString:e.cookies[i]});if(!c)throw Error("Couldn't decrypt auth cookie!");let l=JSON.parse(c);if(!l.csrf_k)throw Error("No `csrf_k` present in user Object!");if(r&&!Object.keys(e.headers).find(e=>e.includes(l.csrf_k)))throw Error("Deep Auth Failed. `csrf` key not found in request headers!");let u=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!u)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(r&&!n().existsSync(`${u}/${l.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==l.verification_status&&!r){let e=await (0,t.A)(`SELECT verification_status FROM users WHERE id='${l.id}'`);e&&e[0]&&1==e[0].verification_status&&s.setHeader("Set-Cookie",["user_refresh=1"])}if(l?.date&&Date.now()-l.date>6048e5)throw Error("Key expired!");return l}catch(e){return console.log(`userAuth Error: ${e.message}`),null}}},89159:(e,s,r)=>{r.d(s,{A:()=>t});function t(e){let s=process.env.DSQL_COOKIES_PREFIX||"dsql_",r=process.env.DSQL_COOKIES_KEY_NAME||"key",t=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",a=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",i=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),n=s;e?.userId&&(n+=`user_${e.userId}_`),i&&(n+=`${i}_`),n+=r;let o=s;e?.userId&&(o+=`user_${e.userId}_`),i&&(o+=`${i}_`),o+=t;let d=s;return e?.userId&&(d+=`user_${e.userId}_`),i&&(d+=`${i}_`),{keyCookieName:n,csrfCookieName:o,oneTimeCodeName:d+=a}}},96052:(e,s,r)=>{r.r(s),r.d(s,{default:()=>o});var t=r(29021),a=r.n(t),i=r(21572);let n=r.n(i)().createTransport({host:process.env.DSQL_MAIL_HOST,port:465,secure:!0,auth:{user:process.env.DSQL_MAIL_EMAIL,pass:process.env.DSQL_MAIL_PASSWORD}});async function o({to:e,subject:s,text:r,html:t,alias:i,senderName:o}){let d;if(!process.env.DSQL_MAIL_HOST||!process.env.DSQL_MAIL_EMAIL||!process.env.DSQL_MAIL_PASSWORD)return null;let c=(i?.match(/support/i),process.env.DSQL_MAIL_EMAIL);if(!a().existsSync("./email/index.html"))return;let l=a().readFileSync("./email/index.html","utf8").replace(/{{email_body}}/,t||"").replace(/{{issue_date}}/,Date().substring(0,24));try{let t={};t.from=`"${o||"Datasquirel"}" <${c}>`,t.sender=c,i&&(t.replyTo=c),t.to=e,t.subject=s,t.text=r,t.html=l,d=await n.sendMail(t)}catch(e){console.log("ERROR in handleNodemailer Function =>",e.message)}return d}},95969:(e,s,r)=>{r.d(s,{A:()=>i});var t=r(55511),a=r(79428);function i({encryptedString:e,encryptionKey:s,encryptionSalt:r}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let i=s||process.env.DSQL_ENCRYPTION_PASSWORD,n=r||process.env.DSQL_ENCRYPTION_SALT,o=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!i?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!n?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let d=(0,t.scryptSync)(i,n,o),c=a.Buffer.alloc(16,0),l=(0,t.createDecipheriv)("aes-192-cbc",d,c);try{let s=l.update(e,"hex","utf8");return s+=l.final("utf8")}catch(s){return console.log("Error in decrypting =>",s.message),e}}},83919:(e,s,r)=>{r.d(s,{A:()=>a});var t=r(55511);function a({password:e,encryptionKey:s}){let r=s||process.env.DSQL_ENCRYPTION_PASSWORD;if(!r?.match(/.{8,}/))throw Error("Encryption key is invalid");let a=(0,t.createHmac)("sha512",r);return a.update(e),a.digest("base64")}}};var s=require("../../webpack-api-runtime.js");s.C(e);var r=e=>s(s.s=e),t=s.X(0,[1251],()=>r(70955));module.exports=t})(); \ No newline at end of file + `});s.json({success:!!a?.accepted,msg:"This is an invitation request"})}}let p=(0,n.M)(t,"default"),m=(0,n.M)(t,"config"),f=new a.PagesAPIRouteModule({definition:{kind:i.A.PAGES_API,page:"/api/addUserUser",pathname:"/api/addUserUser",bundlePath:"",filename:""},userland:t})},69842:(e,s,r)=>{r.d(s,{A:()=>d});var t=r(48786),a=r(95969),i=r(29021),n=r.n(i),o=r(89159);async function d(e,s,r){try{let{keyCookieName:i,csrfCookieName:d}=(0,o.A)();if(!e.cookies?.[i]?.match(/./))throw Error("Request Cookies not Found!");let c=(0,a.A)({encryptedString:e.cookies[i]});if(!c)throw Error("Couldn't decrypt auth cookie!");let l=JSON.parse(c);if(!l.csrf_k)throw Error("No `csrf_k` present in user Object!");if(r&&!Object.keys(e.headers).find(e=>e.includes(l.csrf_k)))throw console.log("req.headers",e.headers),console.log("userObject",l),Error("Deep Auth Failed. `csrf` key not found in request headers!");let u=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!u)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(r&&!n().existsSync(`${u}/${l.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==l.verification_status&&!r){let e=await (0,t.A)(`SELECT verification_status FROM users WHERE id='${l.id}'`);e&&e[0]&&1==e[0].verification_status&&s.setHeader("Set-Cookie",["user_refresh=1"])}if(l?.date&&Date.now()-l.date>6048e5)throw Error("Key expired!");return l}catch(e){return console.log(`userAuth Error: ${e.message}`),null}}},89159:(e,s,r)=>{r.d(s,{A:()=>t});function t(e){let s=process.env.DSQL_COOKIES_PREFIX||"dsql_",r=process.env.DSQL_COOKIES_KEY_NAME||"key",t=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",a=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",i=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),n=s;e?.userId&&(n+=`user_${e.userId}_`),i&&(n+=`${i}_`),n+=r;let o=s;e?.userId&&(o+=`user_${e.userId}_`),i&&(o+=`${i}_`),o+=t;let d=s;return e?.userId&&(d+=`user_${e.userId}_`),i&&(d+=`${i}_`),{keyCookieName:n,csrfCookieName:o,oneTimeCodeName:d+=a}}},96052:(e,s,r)=>{r.d(s,{A:()=>o});var t=r(29021),a=r.n(t),i=r(21572);let n=r.n(i)().createTransport({host:process.env.DSQL_MAIL_HOST,port:465,secure:!0,auth:{user:process.env.DSQL_MAIL_EMAIL,pass:process.env.DSQL_MAIL_PASSWORD}});async function o({to:e,subject:s,text:r,html:t,alias:i,senderName:o}){let d;if(!process.env.DSQL_MAIL_HOST||!process.env.DSQL_MAIL_EMAIL||!process.env.DSQL_MAIL_PASSWORD)return null;let c=(i?.match(/support/i),process.env.DSQL_MAIL_EMAIL);if(!a().existsSync("./email/index.html"))return;let l=a().readFileSync("./email/index.html","utf8").replace(/{{email_body}}/,t||"").replace(/{{issue_date}}/,Date().substring(0,24));try{let t={};t.from=`"${o||"Datasquirel"}" <${c}>`,t.sender=c,i&&(t.replyTo=c),t.to=e,t.subject=s,t.text=r,t.html=l,d=await n.sendMail(t)}catch(e){console.log("ERROR in handleNodemailer Function =>",e.message)}return d}},95969:(e,s,r)=>{r.d(s,{A:()=>i});var t=r(55511),a=r(79428);function i({encryptedString:e,encryptionKey:s,encryptionSalt:r}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let i=s||process.env.DSQL_ENCRYPTION_PASSWORD,n=r||process.env.DSQL_ENCRYPTION_SALT,o=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!i?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!n?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let d=(0,t.scryptSync)(i,n,o),c=a.Buffer.alloc(16,0),l=(0,t.createDecipheriv)("aes-192-cbc",d,c);try{let s=l.update(e,"hex","utf8");return s+=l.final("utf8")}catch(s){return console.log("Error in decrypting =>",s.message),e}}},83919:(e,s,r)=>{r.d(s,{A:()=>a});var t=r(55511);function a({password:e,encryptionKey:s}){let r=s||process.env.DSQL_ENCRYPTION_PASSWORD;if(!r?.match(/.{8,}/))throw Error("Encryption key is invalid");let a=(0,t.createHmac)("sha512",r);return a.update(e),a.digest("base64")}}};var s=require("../../webpack-api-runtime.js");s.C(e);var r=e=>s(s.s=e),t=s.X(0,[1251],()=>r(70955));module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/addUsersTableToDatabase.js b/dsql-app/.local_dist/server/pages/api/addUsersTableToDatabase.js index f824eb5..57d4f31 100644 --- a/dsql-app/.local_dist/server/pages/api/addUsersTableToDatabase.js +++ b/dsql-app/.local_dist/server/pages/api/addUsersTableToDatabase.js @@ -1 +1 @@ -"use strict";(()=>{var e={};e.id=4436,e.ids=[4436],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},72583:e=>{e.exports=require("sanitize-html")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},79646:e=>{e.exports=require("child_process")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},32551:(e,a,t)=>{t.r(a),t.d(a,{config:()=>A,default:()=>m,routeModule:()=>b});var s={};t.r(s),t.d(s,{default:()=>p});var r=t(89947),l=t(2706),d=t(96762),i=t(48786),u=t(67619),o=t(69842),n=t(98e3),_=t(76856);let f=t(29021);t(33873);let{execSync:c}=t(79646);async function p(e,a){if("POST"!==e.method)return a.json({msg:"Failed!"});let s=await (0,o.A)(e,a,!0);if(!s)return a.json({success:!1,msg:"Unauthorized"});let{dbFullName:r,dbSlug:l,dbId:d}=e.body,c=t(8693),p=t(95610),m=[...p.slice(0,2),...c.fields,...p.slice(2)];c.fields=[...m];try{let e;let t=`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${s.id}/main.json`,o=JSON.parse(f.readFileSync(t,"utf8")),p=o.filter(e=>e.dbFullName===r)[0],m=p.tables.filter((a,t)=>{if("users"===a.tableName)return e=t,!0});if(m?.[0]&&"number"==typeof e?p.tables[e]=c:p.tables.push(c),p.childrenDatabases)for(let e=0;ee.dbFullName===a.dbFullName)[0].tables=p.tables;let e=await (0,i.A)("SELECT * FROM user_databases WHERE user_id = ? AND db_full_name = ?",[s.id,a.dbFullName]);await (0,n.A)({dbFullName:"datasquirel",tableName:"user_database_tables",data:{user_id:s.id,db_id:e[0].id,db_slug:e[0].db_slug,table_name:"Users",table_slug:"users"}})}catch(e){(0,u.default)({component:"/api/addUsersTableToDatabase/lines-100-115",message:e.message,user:s})}}f.writeFileSync(`${t}`,JSON.stringify(o),"utf8"),await (0,n.A)({dbFullName:"datasquirel",tableName:"user_database_tables",data:{user_id:s.id,db_id:d,db_slug:l,table_name:"Users",table_slug:"users"}});let A=r.replace(/[^a-z\_0-9]/g,"");await (0,_.A)({userId:s.id,targetDatabase:A}),a.json({success:!0})}catch(e){(0,u.default)({component:"/api/addUsersTableToDatabase/main-catch-error",message:e.message,user:s}),a.json({success:!1,msg:"Database Files could not be written!"})}}let m=(0,d.M)(s,"default"),A=(0,d.M)(s,"config"),b=new r.PagesAPIRouteModule({definition:{kind:l.A.PAGES_API,page:"/api/addUsersTableToDatabase",pathname:"/api/addUsersTableToDatabase",bundlePath:"",filename:""},userland:s})},69842:(e,a,t)=>{t.d(a,{A:()=>u});var s=t(48786),r=t(95969),l=t(29021),d=t.n(l),i=t(89159);async function u(e,a,t){try{let{keyCookieName:l,csrfCookieName:u}=(0,i.A)();if(!e.cookies?.[l]?.match(/./))throw Error("Request Cookies not Found!");let o=(0,r.A)({encryptedString:e.cookies[l]});if(!o)throw Error("Couldn't decrypt auth cookie!");let n=JSON.parse(o);if(!n.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(n.csrf_k)))throw Error("Deep Auth Failed. `csrf` key not found in request headers!");let _=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!_)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!d().existsSync(`${_}/${n.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==n.verification_status&&!t){let e=await (0,s.A)(`SELECT verification_status FROM users WHERE id='${n.id}'`);e&&e[0]&&1==e[0].verification_status&&a.setHeader("Set-Cookie",["user_refresh=1"])}if(n?.date&&Date.now()-n.date>6048e5)throw Error("Key expired!");return n}catch(e){return console.log(`userAuth Error: ${e.message}`),null}}},89159:(e,a,t)=>{t.d(a,{A:()=>s});function s(e){let a=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",r=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",l=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),d=a;e?.userId&&(d+=`user_${e.userId}_`),l&&(d+=`${l}_`),d+=t;let i=a;e?.userId&&(i+=`user_${e.userId}_`),l&&(i+=`${l}_`),i+=s;let u=a;return e?.userId&&(u+=`user_${e.userId}_`),l&&(u+=`${l}_`),{keyCookieName:d,csrfCookieName:i,oneTimeCodeName:u+=r}}},8693:e=>{e.exports=JSON.parse('{"tableName":"users","tableFullName":"Users","fields":[{"fieldName":"first_name","dataType":"VARCHAR(100)","notNullValue":true},{"fieldName":"last_name","dataType":"VARCHAR(100)","notNullValue":true},{"fieldName":"email","dataType":"VARCHAR(200)","notNullValue":true},{"fieldName":"phone","dataType":"VARCHAR(50)"},{"fieldName":"user_type","dataType":"VARCHAR(20)","defaultValue":"default"},{"fieldName":"username","dataType":"VARCHAR(100)","nullValue":true},{"fieldName":"password","dataType":"TEXT"},{"fieldName":"image","dataType":"VARCHAR(250)"},{"fieldName":"image_thumbnail","dataType":"VARCHAR(250)"},{"fieldName":"address","dataType":"VARCHAR(255)"},{"fieldName":"city","dataType":"VARCHAR(50)"},{"fieldName":"state","dataType":"VARCHAR(50)"},{"fieldName":"country","dataType":"VARCHAR(50)"},{"fieldName":"zip_code","dataType":"VARCHAR(50)"},{"fieldName":"social_login","dataType":"TINYINT","defaultValue":"0"},{"fieldName":"social_platform","dataType":"VARCHAR(50)","nullValue":true},{"fieldName":"social_id","dataType":"VARCHAR(250)","nullValue":true},{"fieldName":"more_user_data","dataType":"BIGINT","defaultValue":"0"},{"fieldName":"verification_status","dataType":"TINYINT","defaultValue":"0"},{"fieldName":"temp_login_code","dataType":"VARCHAR(50)","nullValue":true}]}')}};var a=require("../../webpack-api-runtime.js");a.C(e);var t=e=>a(a.s=e),s=a.X(0,[1251,2282],()=>t(32551));module.exports=s})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=4436,e.ids=[4436],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},72583:e=>{e.exports=require("sanitize-html")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},32551:(e,a,s)=>{s.r(a),s.d(a,{config:()=>A,default:()=>p,routeModule:()=>b});var t={};s.r(t),s.d(t,{default:()=>m});var r=s(89947),l=s(2706),d=s(96762),i=s(29021),u=s.n(i),o=s(48786),n=s(67619),_=s(69842),f=s(98e3),c=s(76856);async function m(e,a){if("POST"!==e.method)return a.json({msg:"Failed!"});let t=await (0,_.A)(e,a,!0);if(!t)return a.json({success:!1,msg:"Unauthorized"});let{dbFullName:r,dbSlug:l,dbId:d}=e.body,i=s(8693),m=s(95610),p=[...m.slice(0,2),...i.fields,...m.slice(2)];i.fields=[...p];try{let e;let s=`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${t.id}/main.json`,_=JSON.parse(u().readFileSync(s,"utf8")),m=_.filter(e=>e.dbFullName===r)[0],p=m.tables.filter((a,s)=>{if("users"===a.tableName)return e=s,!0});if(p?.[0]&&"number"==typeof e?m.tables[e]=i:m.tables.push(i),m.childrenDatabases)for(let e=0;ee.dbFullName===a.dbFullName)[0].tables=m.tables;let e=await (0,o.A)("SELECT * FROM user_databases WHERE user_id = ? AND db_full_name = ?",[t.id,a.dbFullName]);await (0,f.A)({dbFullName:"datasquirel",tableName:"user_database_tables",data:{user_id:t.id,db_id:e[0].id,db_slug:e[0].db_slug,table_name:"Users",table_slug:"users"}})}catch(e){(0,n.A)({component:"/api/addUsersTableToDatabase/lines-100-115",message:e.message,user:t})}}u().writeFileSync(`${s}`,JSON.stringify(_),"utf8"),await (0,f.A)({dbFullName:"datasquirel",tableName:"user_database_tables",data:{user_id:t.id,db_id:d,db_slug:l,table_name:"Users",table_slug:"users"}});let A=r.replace(/[^a-z\_0-9]/g,"");await (0,c.A)({userId:t.id,targetDatabase:A}),a.json({success:!0})}catch(e){(0,n.A)({component:"/api/addUsersTableToDatabase/main-catch-error",message:e.message,user:t}),a.json({success:!1,msg:"Database Files could not be written!"})}}let p=(0,d.M)(t,"default"),A=(0,d.M)(t,"config"),b=new r.PagesAPIRouteModule({definition:{kind:l.A.PAGES_API,page:"/api/addUsersTableToDatabase",pathname:"/api/addUsersTableToDatabase",bundlePath:"",filename:""},userland:t})},69842:(e,a,s)=>{s.d(a,{A:()=>u});var t=s(48786),r=s(95969),l=s(29021),d=s.n(l),i=s(89159);async function u(e,a,s){try{let{keyCookieName:l,csrfCookieName:u}=(0,i.A)();if(!e.cookies?.[l]?.match(/./))throw Error("Request Cookies not Found!");let o=(0,r.A)({encryptedString:e.cookies[l]});if(!o)throw Error("Couldn't decrypt auth cookie!");let n=JSON.parse(o);if(!n.csrf_k)throw Error("No `csrf_k` present in user Object!");if(s&&!Object.keys(e.headers).find(e=>e.includes(n.csrf_k)))throw console.log("req.headers",e.headers),console.log("userObject",n),Error("Deep Auth Failed. `csrf` key not found in request headers!");let _=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!_)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(s&&!d().existsSync(`${_}/${n.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==n.verification_status&&!s){let e=await (0,t.A)(`SELECT verification_status FROM users WHERE id='${n.id}'`);e&&e[0]&&1==e[0].verification_status&&a.setHeader("Set-Cookie",["user_refresh=1"])}if(n?.date&&Date.now()-n.date>6048e5)throw Error("Key expired!");return n}catch(e){return console.log(`userAuth Error: ${e.message}`),null}}},89159:(e,a,s)=>{s.d(a,{A:()=>t});function t(e){let a=process.env.DSQL_COOKIES_PREFIX||"dsql_",s=process.env.DSQL_COOKIES_KEY_NAME||"key",t=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",r=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",l=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),d=a;e?.userId&&(d+=`user_${e.userId}_`),l&&(d+=`${l}_`),d+=s;let i=a;e?.userId&&(i+=`user_${e.userId}_`),l&&(i+=`${l}_`),i+=t;let u=a;return e?.userId&&(u+=`user_${e.userId}_`),l&&(u+=`${l}_`),{keyCookieName:d,csrfCookieName:i,oneTimeCodeName:u+=r}}},8693:e=>{e.exports=JSON.parse('{"tableName":"users","tableFullName":"Users","fields":[{"fieldName":"first_name","dataType":"VARCHAR(100)","notNullValue":true},{"fieldName":"last_name","dataType":"VARCHAR(100)","notNullValue":true},{"fieldName":"email","dataType":"VARCHAR(200)","notNullValue":true},{"fieldName":"phone","dataType":"VARCHAR(50)"},{"fieldName":"user_type","dataType":"VARCHAR(20)","defaultValue":"default"},{"fieldName":"username","dataType":"VARCHAR(100)","nullValue":true},{"fieldName":"password","dataType":"TEXT"},{"fieldName":"image","dataType":"VARCHAR(250)"},{"fieldName":"image_thumbnail","dataType":"VARCHAR(250)"},{"fieldName":"address","dataType":"VARCHAR(255)"},{"fieldName":"city","dataType":"VARCHAR(50)"},{"fieldName":"state","dataType":"VARCHAR(50)"},{"fieldName":"country","dataType":"VARCHAR(50)"},{"fieldName":"zip_code","dataType":"VARCHAR(50)"},{"fieldName":"social_login","dataType":"TINYINT","defaultValue":"0"},{"fieldName":"social_platform","dataType":"VARCHAR(50)","nullValue":true},{"fieldName":"social_id","dataType":"VARCHAR(250)","nullValue":true},{"fieldName":"more_user_data","dataType":"BIGINT","defaultValue":"0"},{"fieldName":"verification_status","dataType":"TINYINT","defaultValue":"0"},{"fieldName":"temp_login_code","dataType":"VARCHAR(50)","nullValue":true}]}')}};var a=require("../../webpack-api-runtime.js");a.C(e);var s=e=>a(a.s=e),t=a.X(0,[1251,2282],()=>s(32551));module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/admin/addUserBackup.js b/dsql-app/.local_dist/server/pages/api/admin/addUserBackup.js index 8570976..614236a 100644 --- a/dsql-app/.local_dist/server/pages/api/admin/addUserBackup.js +++ b/dsql-app/.local_dist/server/pages/api/admin/addUserBackup.js @@ -1 +1 @@ -"use strict";(()=>{var e={};e.id=9171,e.ids=[9171],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},79428:e=>{e.exports=require("buffer")},79646:e=>{e.exports=require("child_process")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},21820:e=>{e.exports=require("os")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,s){return s in r?r[s]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,s)):"function"==typeof r&&"default"===s?r:void 0}}})},99323:(e,r,s)=>{s.r(r),s.d(r,{config:()=>E,default:()=>S,routeModule:()=>f});var n={};s.r(n),s.d(n,{default:()=>p});var o=s(89947),t=s(2706),c=s(96762),a=s(48786),i=s(87369);let u=s(29021),l=s(21820),{execSync:_,spawnSync:d}=s(79646);async function p(e,r){if("POST"!==e.method)return r.json({success:!1,msg:"Wrong Method"});let s=await (0,i.A)(e);if(!s?.logged_in_status)return r.json({success:!1,log:"Unauthorized"});try{let s=e.body.user.id.toString().replace(/[^0-9]/g,"").replace(/\//g,""),n=`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${s}/backups`;u.existsSync(n)||u.mkdirSync(n);let o=Date.now().toString();u.mkdirSync(`${n}/${o}`);let t=await (0,a.A)("SHOW databases LIKE ?",[`datasquirel_user_${s}_%`]);for(let e=0;e ${i}`;console.log(`addUserBackup.ts exe => ${u}`),d(c,["-u",process.env.DSQL_DB_USERNAME,"-h",process.env.DSQL_DB_HOST,`-p${process.env.DSQL_DB_PASSWORD}`,s,">",i],a)}u.copyFileSync(`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${s}/main.json`,`${n}/${o}/main.json`),r.json({success:!0})}catch(e){console.log(e.message),r.json({success:!1})}}let S=(0,c.M)(n,"default"),E=(0,c.M)(n,"config"),f=new o.PagesAPIRouteModule({definition:{kind:t.A.PAGES_API,page:"/api/admin/addUserBackup",pathname:"/api/admin/addUserBackup",bundlePath:"",filename:""},userland:n})},87369:(e,r,s)=>{s.d(r,{A:()=>t});var n=s(95969),o=s(89159);async function t(e){let{keyCookieName:r,csrfCookieName:s}=(0,o.A)(),t=`${r}_su`;if(!e.cookies?.[t])return console.log("No auth key cookie found"),null;let c=(0,n.A)({encryptedString:e.cookies[t]});if(!c)return console.log("No user payload found"),null;let a=JSON.parse(c);return a.password!==process.env.DSQL_USER_KEY?(console.log("Invalid password"),null):a.authKey!==process.env.DSQL_SPECIAL_KEY?(console.log("Invalid auth key"),null):a}},89159:(e,r,s)=>{s.d(r,{A:()=>n});function n(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",s=process.env.DSQL_COOKIES_KEY_NAME||"key",n=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",o=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",t=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),c=r;e?.userId&&(c+=`user_${e.userId}_`),t&&(c+=`${t}_`),c+=s;let a=r;e?.userId&&(a+=`user_${e.userId}_`),t&&(a+=`${t}_`),a+=n;let i=r;return e?.userId&&(i+=`user_${e.userId}_`),t&&(i+=`${t}_`),{keyCookieName:c,csrfCookieName:a,oneTimeCodeName:i+=o}}},95969:(e,r,s)=>{s.d(r,{A:()=>t});var n=s(55511),o=s(79428);function t({encryptedString:e,encryptionKey:r,encryptionSalt:s}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let t=r||process.env.DSQL_ENCRYPTION_PASSWORD,c=s||process.env.DSQL_ENCRYPTION_SALT,a=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!t?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!c?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let i=(0,n.scryptSync)(t,c,a),u=o.Buffer.alloc(16,0),l=(0,n.createDecipheriv)("aes-192-cbc",i,u);try{let r=l.update(e,"hex","utf8");return r+=l.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},48786:(e,r,s)=>{s.d(r,{A:()=>n});async function n(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let s=await r.query(...e);return JSON.parse(JSON.stringify(s))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return s}});var s=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,s)=>{e.exports=s(75600)}};var r=require("../../../webpack-api-runtime.js");r.C(e);var s=r(r.s=99323);module.exports=s})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=9171,e.ids=[9171],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},79428:e=>{e.exports=require("buffer")},79646:e=>{e.exports=require("child_process")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},21820:e=>{e.exports=require("os")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,s){return s in r?r[s]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,s)):"function"==typeof r&&"default"===s?r:void 0}}})},99323:(e,r,s)=>{s.r(r),s.d(r,{config:()=>f,default:()=>E,routeModule:()=>A});var n={};s.r(n),s.d(n,{default:()=>S});var o=s(89947),t=s(2706),c=s(96762),a=s(29021),i=s.n(a),u=s(21820),l=s.n(u),_=s(79646),d=s(48786),p=s(87369);async function S(e,r){if("POST"!==e.method)return r.json({success:!1,msg:"Wrong Method"});let s=await (0,p.A)(e);if(!s?.logged_in_status)return r.json({success:!1,log:"Unauthorized"});try{let s=e.body.user.id.toString().replace(/[^0-9]/g,"").replace(/\//g,""),n=`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${s}/backups`;i().existsSync(n)||i().mkdirSync(n);let o=Date.now().toString();i().mkdirSync(`${n}/${o}`);let t=await (0,d.A)("SHOW databases LIKE ?",[`datasquirel_user_${s}_%`]);for(let e=0;e ${i}`;console.log(`addUserBackup.ts exe => ${u}`),(0,_.spawnSync)(c,["-u",process.env.DSQL_DB_USERNAME||"","-h",process.env.DSQL_DB_HOST||"",`-p${process.env.DSQL_DB_PASSWORD}`,s,">",i],a)}i().copyFileSync(`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${s}/main.json`,`${n}/${o}/main.json`),r.json({success:!0})}catch(e){console.log(e.message),r.json({success:!1})}}let E=(0,c.M)(n,"default"),f=(0,c.M)(n,"config"),A=new o.PagesAPIRouteModule({definition:{kind:t.A.PAGES_API,page:"/api/admin/addUserBackup",pathname:"/api/admin/addUserBackup",bundlePath:"",filename:""},userland:n})},87369:(e,r,s)=>{s.d(r,{A:()=>t});var n=s(95969),o=s(89159);async function t(e){let{keyCookieName:r,csrfCookieName:s}=(0,o.A)(),t=`${r}_su`;if(!e.cookies?.[t])return console.log("No auth key cookie found"),null;let c=(0,n.A)({encryptedString:e.cookies[t]});if(!c)return console.log("No user payload found"),null;let a=JSON.parse(c);return a.password!==process.env.DSQL_USER_KEY?(console.log("Invalid password"),null):a.authKey!==process.env.DSQL_SPECIAL_KEY?(console.log("Invalid auth key"),null):a}},89159:(e,r,s)=>{s.d(r,{A:()=>n});function n(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",s=process.env.DSQL_COOKIES_KEY_NAME||"key",n=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",o=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",t=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),c=r;e?.userId&&(c+=`user_${e.userId}_`),t&&(c+=`${t}_`),c+=s;let a=r;e?.userId&&(a+=`user_${e.userId}_`),t&&(a+=`${t}_`),a+=n;let i=r;return e?.userId&&(i+=`user_${e.userId}_`),t&&(i+=`${t}_`),{keyCookieName:c,csrfCookieName:a,oneTimeCodeName:i+=o}}},95969:(e,r,s)=>{s.d(r,{A:()=>t});var n=s(55511),o=s(79428);function t({encryptedString:e,encryptionKey:r,encryptionSalt:s}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let t=r||process.env.DSQL_ENCRYPTION_PASSWORD,c=s||process.env.DSQL_ENCRYPTION_SALT,a=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!t?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!c?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let i=(0,n.scryptSync)(t,c,a),u=o.Buffer.alloc(16,0),l=(0,n.createDecipheriv)("aes-192-cbc",i,u);try{let r=l.update(e,"hex","utf8");return r+=l.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},48786:(e,r,s)=>{s.d(r,{A:()=>n});async function n(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let s=await r.query(...e);return JSON.parse(JSON.stringify(s))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return s}});var s=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,s)=>{e.exports=s(75600)}};var r=require("../../../webpack-api-runtime.js");r.C(e);var s=r(r.s=99323);module.exports=s})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/admin/clearErrorLogs.js b/dsql-app/.local_dist/server/pages/api/admin/clearErrorLogs.js index 580d397..920efa8 100644 --- a/dsql-app/.local_dist/server/pages/api/admin/clearErrorLogs.js +++ b/dsql-app/.local_dist/server/pages/api/admin/clearErrorLogs.js @@ -1 +1 @@ -"use strict";(()=>{var e={};e.id=4785,e.ids=[4785],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},79428:e=>{e.exports=require("buffer")},79646:e=>{e.exports=require("child_process")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,n){return n in r?r[n]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,n)):"function"==typeof r&&"default"===n?r:void 0}}})},91963:(e,r,n)=>{n.r(r),n.d(r,{config:()=>_,default:()=>d,routeModule:()=>p});var o={};n.r(o),n.d(o,{default:()=>a});var s=n(89947),t=n(2706),u=n(96762),i=n(87369);let{execSync:c}=n(79646),l=n(29021);async function a(e,r){if("POST"!==e.method)return r.json({success:!1,msg:"Wrong Method"});let n=await (0,i.A)(e);if(!n?.logged_in_status)return r.json({success:!1,log:"No Logs"});l.writeFileSync("./.tmp/error.log","","utf-8"),r.json({success:!0})}let d=(0,u.M)(o,"default"),_=(0,u.M)(o,"config"),p=new s.PagesAPIRouteModule({definition:{kind:t.A.PAGES_API,page:"/api/admin/clearErrorLogs",pathname:"/api/admin/clearErrorLogs",bundlePath:"",filename:""},userland:o})},87369:(e,r,n)=>{n.d(r,{A:()=>t});var o=n(95969),s=n(89159);async function t(e){let{keyCookieName:r,csrfCookieName:n}=(0,s.A)(),t=`${r}_su`;if(!e.cookies?.[t])return console.log("No auth key cookie found"),null;let u=(0,o.A)({encryptedString:e.cookies[t]});if(!u)return console.log("No user payload found"),null;let i=JSON.parse(u);return i.password!==process.env.DSQL_USER_KEY?(console.log("Invalid password"),null):i.authKey!==process.env.DSQL_SPECIAL_KEY?(console.log("Invalid auth key"),null):i}},89159:(e,r,n)=>{n.d(r,{A:()=>o});function o(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",n=process.env.DSQL_COOKIES_KEY_NAME||"key",o=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",s=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",t=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),u=r;e?.userId&&(u+=`user_${e.userId}_`),t&&(u+=`${t}_`),u+=n;let i=r;e?.userId&&(i+=`user_${e.userId}_`),t&&(i+=`${t}_`),i+=o;let c=r;return e?.userId&&(c+=`user_${e.userId}_`),t&&(c+=`${t}_`),{keyCookieName:u,csrfCookieName:i,oneTimeCodeName:c+=s}}},95969:(e,r,n)=>{n.d(r,{A:()=>t});var o=n(55511),s=n(79428);function t({encryptedString:e,encryptionKey:r,encryptionSalt:n}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let t=r||process.env.DSQL_ENCRYPTION_PASSWORD,u=n||process.env.DSQL_ENCRYPTION_SALT,i=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!t?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!u?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let c=(0,o.scryptSync)(t,u,i),l=s.Buffer.alloc(16,0),a=(0,o.createDecipheriv)("aes-192-cbc",c,l);try{let r=a.update(e,"hex","utf8");return r+=a.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return n}});var n=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,n)=>{e.exports=n(75600)}};var r=require("../../../webpack-api-runtime.js");r.C(e);var n=r(r.s=91963);module.exports=n})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=4785,e.ids=[4785],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,n){return n in r?r[n]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,n)):"function"==typeof r&&"default"===n?r:void 0}}})},91963:(e,r,n)=>{n.r(r),n.d(r,{config:()=>_,default:()=>d,routeModule:()=>p});var o={};n.r(o),n.d(o,{default:()=>l});var s=n(89947),t=n(2706),u=n(96762),i=n(29021),c=n.n(i),a=n(87369);async function l(e,r){if("POST"!==e.method)return r.json({success:!1,msg:"Wrong Method"});let n=await (0,a.A)(e);if(!n?.logged_in_status)return r.json({success:!1,log:"No Logs"});c().writeFileSync("./.tmp/error.log","","utf-8"),r.json({success:!0})}let d=(0,u.M)(o,"default"),_=(0,u.M)(o,"config"),p=new s.PagesAPIRouteModule({definition:{kind:t.A.PAGES_API,page:"/api/admin/clearErrorLogs",pathname:"/api/admin/clearErrorLogs",bundlePath:"",filename:""},userland:o})},87369:(e,r,n)=>{n.d(r,{A:()=>t});var o=n(95969),s=n(89159);async function t(e){let{keyCookieName:r,csrfCookieName:n}=(0,s.A)(),t=`${r}_su`;if(!e.cookies?.[t])return console.log("No auth key cookie found"),null;let u=(0,o.A)({encryptedString:e.cookies[t]});if(!u)return console.log("No user payload found"),null;let i=JSON.parse(u);return i.password!==process.env.DSQL_USER_KEY?(console.log("Invalid password"),null):i.authKey!==process.env.DSQL_SPECIAL_KEY?(console.log("Invalid auth key"),null):i}},89159:(e,r,n)=>{n.d(r,{A:()=>o});function o(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",n=process.env.DSQL_COOKIES_KEY_NAME||"key",o=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",s=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",t=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),u=r;e?.userId&&(u+=`user_${e.userId}_`),t&&(u+=`${t}_`),u+=n;let i=r;e?.userId&&(i+=`user_${e.userId}_`),t&&(i+=`${t}_`),i+=o;let c=r;return e?.userId&&(c+=`user_${e.userId}_`),t&&(c+=`${t}_`),{keyCookieName:u,csrfCookieName:i,oneTimeCodeName:c+=s}}},95969:(e,r,n)=>{n.d(r,{A:()=>t});var o=n(55511),s=n(79428);function t({encryptedString:e,encryptionKey:r,encryptionSalt:n}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let t=r||process.env.DSQL_ENCRYPTION_PASSWORD,u=n||process.env.DSQL_ENCRYPTION_SALT,i=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!t?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!u?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let c=(0,o.scryptSync)(t,u,i),a=s.Buffer.alloc(16,0),l=(0,o.createDecipheriv)("aes-192-cbc",c,a);try{let r=l.update(e,"hex","utf8");return r+=l.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return n}});var n=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,n)=>{e.exports=n(75600)}};var r=require("../../../webpack-api-runtime.js");r.C(e);var n=r(r.s=91963);module.exports=n})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/admin/clientError.js b/dsql-app/.local_dist/server/pages/api/admin/clientError.js index efb2d44..25697b5 100644 --- a/dsql-app/.local_dist/server/pages/api/admin/clientError.js +++ b/dsql-app/.local_dist/server/pages/api/admin/clientError.js @@ -1,13 +1,13 @@ -"use strict";(()=>{var e={};e.id=4396,e.ids=[4396],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},80371:(e,r,t)=>{t.r(r),t.d(r,{config:()=>l,default:()=>d,routeModule:()=>p});var n={};t.r(n),t.d(n,{default:()=>s});var i=t(89947),o=t(2706),a=t(96762);let u=t(29021);async function s(e,r){if("POST"!==e.method)return r.json({user:null,msg:"Failed"});let{component:t,message:n,user:i}=e.body,o=`💻 CLIENT ERROR =========================== +"use strict";(()=>{var e={};e.id=4396,e.ids=[4396],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,n){return n in r?r[n]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,n)):"function"==typeof r&&"default"===n?r:void 0}}})},80371:(e,r,n)=>{n.r(r),n.d(r,{config:()=>p,default:()=>l,routeModule:()=>P});var t={};n.r(t),n.d(t,{default:()=>d});var i=n(89947),o=n(2706),a=n(96762),u=n(29021),s=n.n(u);async function d(e,r){if("POST"!==e.method)return r.json({user:null,msg:"Failed"});let{component:n,message:t,user:i}=e.body,o=`💻 CLIENT ERROR =========================== User Id: ${i?.id} User Name: ${i?.first_name} ${i?.last_name} User Email: ${i?.email} -Error Message: ${n} -Component: ${t} +Error Message: ${t} +Component: ${n} Date: ${Date()} -========================================`,a=u.readFileSync("./.tmp/error.log","utf-8");u.writeFileSync("./.tmp/error.log",o),u.appendFileSync("./.tmp/error.log",` +========================================`,a=s().readFileSync("./.tmp/error.log","utf-8");s().writeFileSync("./.tmp/error.log",o),s().appendFileSync("./.tmp/error.log",` -${a}`),r.json({success:!0})}let d=(0,a.M)(n,"default"),l=(0,a.M)(n,"config"),p=new i.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/admin/clientError",pathname:"/api/admin/clientError",bundlePath:"",filename:""},userland:n})},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../../webpack-api-runtime.js");r.C(e);var t=r(r.s=80371);module.exports=t})(); \ No newline at end of file +${a}`),r.json({success:!0})}let l=(0,a.M)(t,"default"),p=(0,a.M)(t,"config"),P=new i.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/admin/clientError",pathname:"/api/admin/clientError",bundlePath:"",filename:""},userland:t})},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return n}});var n=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,n)=>{e.exports=n(75600)}};var r=require("../../../webpack-api-runtime.js");r.C(e);var n=r(r.s=80371);module.exports=n})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/admin/createNewBackup.js b/dsql-app/.local_dist/server/pages/api/admin/createNewBackup.js index f5bce38..74c0a0c 100644 --- a/dsql-app/.local_dist/server/pages/api/admin/createNewBackup.js +++ b/dsql-app/.local_dist/server/pages/api/admin/createNewBackup.js @@ -1,4 +1,4 @@ -"use strict";(()=>{var e={};e.id=9885,e.ids=[9885],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},79428:e=>{e.exports=require("buffer")},79646:e=>{e.exports=require("child_process")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},21820:e=>{e.exports=require("os")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},57856:(e,r,t)=>{t.r(r),t.d(r,{config:()=>f,default:()=>m,routeModule:()=>y});var n={};t.r(n),t.d(n,{default:()=>S});var s=t(89947),o=t(2706),a=t(96762),c=t(29021),i=t.n(c),l=t(21820),u=t.n(l),d=t(79646),p=t(67619),_=t(87369);async function S(e,r){if("GET"!==e.method)return r.json({success:!1,msg:"Failed"});let t=await (0,_.A)(e);if(!t?.logged_in_status)return r.json({success:!1,log:"No Logs"});let n="./.tmp/backups";i().existsSync(n)||i().mkdirSync("./.tmp/backups");let s=Date.now().toString();i().mkdirSync(`${n}/${s}`);let o=u().platform().match(/win/i)?"'C:\\Program Files\\MySQL\\MySQL Server 8.0\\bin\\mysqldump.exe'":"mysqldump";try{let e={cwd:process.cwd()},t=`${n}/${s}/datasquirel.sql`;u().platform().match(/win/i)&&(e.shell="bash.exe");let a=`${o} -u ${process.env.DSQL_DB_USERNAME} -h ${process.env.DSQL_DB_HOST} -p${process.env.DSQL_DB_PASSWORD} datasquirel > ${t}`;console.log(`createNewBackup.ts exe => ${a}`),(0,d.execSync)(a,e),i().copyFileSync("./jsonData/dbSchemas/main.json",`${n}/${s}/datasquirelSchema.json`),function({rootFolderPath:e,destinationFolderPath:r}){try{i().mkdirSync(r),function e(r,t){let n=i().readdirSync(r);for(let s=0;s{t.d(r,{A:()=>o});var n=t(95969),s=t(89159);async function o(e){let{keyCookieName:r,csrfCookieName:t}=(0,s.A)(),o=`${r}_su`;if(!e.cookies?.[o])return console.log("No auth key cookie found"),null;let a=(0,n.A)({encryptedString:e.cookies[o]});if(!a)return console.log("No user payload found"),null;let c=JSON.parse(a);return c.password!==process.env.DSQL_USER_KEY?(console.log("Invalid password"),null):c.authKey!==process.env.DSQL_SPECIAL_KEY?(console.log("Invalid auth key"),null):c}},89159:(e,r,t)=>{t.d(r,{A:()=>n});function n(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",n=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",s=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",o=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),a=r;e?.userId&&(a+=`user_${e.userId}_`),o&&(a+=`${o}_`),a+=t;let c=r;e?.userId&&(c+=`user_${e.userId}_`),o&&(c+=`${o}_`),c+=n;let i=r;return e?.userId&&(i+=`user_${e.userId}_`),o&&(i+=`${o}_`),{keyCookieName:a,csrfCookieName:c,oneTimeCodeName:i+=s}}},67619:(e,r,t)=>{t.r(r),t.d(r,{default:()=>o});var n=t(29021),s=t.n(n);async function o({user:e,message:r,component:t,noMail:n,req:o}){let a=new Date,c=(()=>{if(!o)return null;try{let e=o.headers["x-forwarded-for"],r=o.headers["x-real-ip"],t=o.headers["cf-connecting-ip"],n=Array.isArray(e)?e[0]:e?.split(",")[0],s=t||n||r||o.socket.remoteAddress;if(!s)return null;return String(s)}catch(e){return null}})();try{let n=`🚀 SERVER ERROR =========================== +"use strict";(()=>{var e={};e.id=9885,e.ids=[9885],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},79428:e=>{e.exports=require("buffer")},79646:e=>{e.exports=require("child_process")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},21820:e=>{e.exports=require("os")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},57856:(e,r,t)=>{t.r(r),t.d(r,{config:()=>f,default:()=>m,routeModule:()=>y});var n={};t.r(n),t.d(n,{default:()=>S});var s=t(89947),o=t(2706),a=t(96762),c=t(29021),i=t.n(c),l=t(21820),u=t.n(l),d=t(79646),p=t(67619),_=t(87369);async function S(e,r){if("GET"!==e.method)return r.json({success:!1,msg:"Failed"});let t=await (0,_.A)(e);if(!t?.logged_in_status)return r.json({success:!1,log:"No Logs"});let n="./.tmp/backups";i().existsSync(n)||i().mkdirSync("./.tmp/backups");let s=Date.now().toString();i().mkdirSync(`${n}/${s}`);let o=u().platform().match(/win/i)?"'C:\\Program Files\\MySQL\\MySQL Server 8.0\\bin\\mysqldump.exe'":"mysqldump";try{let e={cwd:process.cwd()},t=`${n}/${s}/datasquirel.sql`;u().platform().match(/win/i)&&(e.shell="bash.exe");let a=`${o} -u ${process.env.DSQL_DB_USERNAME} -h ${process.env.DSQL_DB_HOST} -p${process.env.DSQL_DB_PASSWORD} datasquirel > ${t}`;console.log(`createNewBackup.ts exe => ${a}`),(0,d.execSync)(a,e),i().copyFileSync("./jsonData/dbSchemas/main.json",`${n}/${s}/datasquirelSchema.json`),function({rootFolderPath:e,destinationFolderPath:r}){try{i().mkdirSync(r),function e(r,t){let n=i().readdirSync(r);for(let s=0;s{t.d(r,{A:()=>o});var n=t(95969),s=t(89159);async function o(e){let{keyCookieName:r,csrfCookieName:t}=(0,s.A)(),o=`${r}_su`;if(!e.cookies?.[o])return console.log("No auth key cookie found"),null;let a=(0,n.A)({encryptedString:e.cookies[o]});if(!a)return console.log("No user payload found"),null;let c=JSON.parse(a);return c.password!==process.env.DSQL_USER_KEY?(console.log("Invalid password"),null):c.authKey!==process.env.DSQL_SPECIAL_KEY?(console.log("Invalid auth key"),null):c}},89159:(e,r,t)=>{t.d(r,{A:()=>n});function n(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",n=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",s=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",o=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),a=r;e?.userId&&(a+=`user_${e.userId}_`),o&&(a+=`${o}_`),a+=t;let c=r;e?.userId&&(c+=`user_${e.userId}_`),o&&(c+=`${o}_`),c+=n;let i=r;return e?.userId&&(i+=`user_${e.userId}_`),o&&(i+=`${o}_`),{keyCookieName:a,csrfCookieName:c,oneTimeCodeName:i+=s}}},67619:(e,r,t)=>{t.d(r,{A:()=>o});var n=t(29021),s=t.n(n);async function o({user:e,message:r,component:t,noMail:n,req:o}){let a=new Date,c=(()=>{if(!o)return null;try{let e=o.headers["x-forwarded-for"],r=o.headers["x-real-ip"],t=o.headers["cf-connecting-ip"],n=Array.isArray(e)?e[0]:e?.split(",")[0],s=t||n||r||o.socket.remoteAddress;if(!s)return null;return String(s)}catch(e){return null}})();try{let n=`🚀 SERVER ERROR =========================== Error Message: ${r} Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(n+=` User Id: ${e?.id} diff --git a/dsql-app/.local_dist/server/pages/api/admin/getTablesForUserDatabase.js b/dsql-app/.local_dist/server/pages/api/admin/getTablesForUserDatabase.js index 8fee69f..c53810c 100644 --- a/dsql-app/.local_dist/server/pages/api/admin/getTablesForUserDatabase.js +++ b/dsql-app/.local_dist/server/pages/api/admin/getTablesForUserDatabase.js @@ -1,4 +1,4 @@ -"use strict";(()=>{var e={};e.id=5905,e.ids=[5905],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},10291:(e,r,t)=>{t.r(r),t.d(r,{config:()=>d,default:()=>i,routeModule:()=>p});var n={};t.r(n),t.d(n,{default:()=>u});var s=t(89947),a=t(2706),o=t(96762),l=t(30944),c=t(87369);async function u(e,r){if("GET"!==e.method)return r.json({success:!1,msg:"Wrong Method"});let t=await (0,c.A)(e);if(!t?.logged_in_status)return r.json({success:!1,log:"No Logs"});let{database:n}=e.query;try{let e=await (0,l.A)({database:"string"==typeof n?n:"",queryString:`SHOW TABLES FROM ${n}`});if(!e)return r.json({success:!1,msg:"Query Failed!"});r.json({success:!0,tables:e.map(e=>Object.values(e)[0])})}catch(e){console.log(e.message),r.json({success:!1})}}let i=(0,o.M)(n,"default"),d=(0,o.M)(n,"config"),p=new s.PagesAPIRouteModule({definition:{kind:a.A.PAGES_API,page:"/api/admin/getTablesForUserDatabase",pathname:"/api/admin/getTablesForUserDatabase",bundlePath:"",filename:""},userland:n})},87369:(e,r,t)=>{t.d(r,{A:()=>a});var n=t(95969),s=t(89159);async function a(e){let{keyCookieName:r,csrfCookieName:t}=(0,s.A)(),a=`${r}_su`;if(!e.cookies?.[a])return console.log("No auth key cookie found"),null;let o=(0,n.A)({encryptedString:e.cookies[a]});if(!o)return console.log("No user payload found"),null;let l=JSON.parse(o);return l.password!==process.env.DSQL_USER_KEY?(console.log("Invalid password"),null):l.authKey!==process.env.DSQL_SPECIAL_KEY?(console.log("Invalid auth key"),null):l}},89159:(e,r,t)=>{t.d(r,{A:()=>n});function n(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",n=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",s=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",a=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),o=r;e?.userId&&(o+=`user_${e.userId}_`),a&&(o+=`${a}_`),o+=t;let l=r;e?.userId&&(l+=`user_${e.userId}_`),a&&(l+=`${a}_`),l+=n;let c=r;return e?.userId&&(c+=`user_${e.userId}_`),a&&(c+=`${a}_`),{keyCookieName:o,csrfCookieName:l,oneTimeCodeName:c+=s}}},43775:(e,r,t)=>{t.d(r,{A:()=>a});var n=t(95969);let s=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/;async function a({unparsedResults:e,tableSchema:r}){let t=[];try{for(let a=0;a",r.message),e}}},67619:(e,r,t)=>{t.r(r),t.d(r,{default:()=>a});var n=t(29021),s=t.n(n);async function a({user:e,message:r,component:t,noMail:n,req:a}){let o=new Date,l=(()=>{if(!a)return null;try{let e=a.headers["x-forwarded-for"],r=a.headers["x-real-ip"],t=a.headers["cf-connecting-ip"],n=Array.isArray(e)?e[0]:e?.split(",")[0],s=t||n||r||a.socket.remoteAddress;if(!s)return null;return String(s)}catch(e){return null}})();try{let n=`🚀 SERVER ERROR =========================== +"use strict";(()=>{var e={};e.id=5905,e.ids=[5905],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},10291:(e,r,t)=>{t.r(r),t.d(r,{config:()=>d,default:()=>u,routeModule:()=>p});var n={};t.r(n),t.d(n,{default:()=>i});var s=t(89947),a=t(2706),o=t(96762),l=t(30944),c=t(87369);async function i(e,r){if("GET"!==e.method)return r.json({success:!1,msg:"Wrong Method"});let t=await (0,c.A)(e);if(!t?.logged_in_status)return r.json({success:!1,log:"No Logs"});let{database:n}=e.query;try{let e=await (0,l.A)({database:"string"==typeof n?n:"",queryString:`SHOW TABLES FROM ${n}`});if(!e)return r.json({success:!1,msg:"Query Failed!"});r.json({success:!0,tables:e.map(e=>Object.values(e)[0])})}catch(e){console.log(e.message),r.json({success:!1})}}let u=(0,o.M)(n,"default"),d=(0,o.M)(n,"config"),p=new s.PagesAPIRouteModule({definition:{kind:a.A.PAGES_API,page:"/api/admin/getTablesForUserDatabase",pathname:"/api/admin/getTablesForUserDatabase",bundlePath:"",filename:""},userland:n})},87369:(e,r,t)=>{t.d(r,{A:()=>a});var n=t(95969),s=t(89159);async function a(e){let{keyCookieName:r,csrfCookieName:t}=(0,s.A)(),a=`${r}_su`;if(!e.cookies?.[a])return console.log("No auth key cookie found"),null;let o=(0,n.A)({encryptedString:e.cookies[a]});if(!o)return console.log("No user payload found"),null;let l=JSON.parse(o);return l.password!==process.env.DSQL_USER_KEY?(console.log("Invalid password"),null):l.authKey!==process.env.DSQL_SPECIAL_KEY?(console.log("Invalid auth key"),null):l}},89159:(e,r,t)=>{t.d(r,{A:()=>n});function n(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",n=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",s=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",a=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),o=r;e?.userId&&(o+=`user_${e.userId}_`),a&&(o+=`${a}_`),o+=t;let l=r;e?.userId&&(l+=`user_${e.userId}_`),a&&(l+=`${a}_`),l+=n;let c=r;return e?.userId&&(c+=`user_${e.userId}_`),a&&(c+=`${a}_`),{keyCookieName:o,csrfCookieName:l,oneTimeCodeName:c+=s}}},43775:(e,r,t)=>{t.d(r,{A:()=>a});var n=t(95969);let s=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/;async function a({unparsedResults:e,tableSchema:r}){let t=[];try{for(let a=0;a",r.message),e}}},67619:(e,r,t)=>{t.d(r,{A:()=>a});var n=t(29021),s=t.n(n);async function a({user:e,message:r,component:t,noMail:n,req:a}){let o=new Date,l=(()=>{if(!a)return null;try{let e=a.headers["x-forwarded-for"],r=a.headers["x-real-ip"],t=a.headers["cf-connecting-ip"],n=Array.isArray(e)?e[0]:e?.split(",")[0],s=t||n||r||a.socket.remoteAddress;if(!s)return null;return String(s)}catch(e){return null}})();try{let n=`🚀 SERVER ERROR =========================== Error Message: ${r} Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(n+=` User Id: ${e?.id} @@ -13,4 +13,4 @@ Date: ${o.toDateString()} -${c}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},30944:(e,r,t)=>{t.d(r,{A:()=>c});var n=t(43775),s=t(67619),a=t(48786),o=t(37275),l=t(7971);async function c({queryString:e,queryValuesArray:r,database:t,tableSchema:c,useLocal:u}){let i;let d=!!u||!!t?.match(/^datasquirel$/),p=u?l.A:d?a.A:o.default;try{i=e&&r&&Array.isArray(r)&&r[0]?d?await p(e,r):await p({paradigm:"Full Access",queryString:e,queryValues:r}):d?await p(e):await p({paradigm:"Full Access",queryString:e})}catch(e){console.log(`varDatabaseDbHandler Error: ${e.message}`),(0,s.default)({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(i&&c)try{let e=i;return await (0,n.A)({unparsedResults:e,tableSchema:c})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",t,e),(0,s.default)({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(i)return i;else return null}},95969:(e,r,t)=>{t.d(r,{A:()=>a});var n=t(55511),s=t(79428);function a({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let a=r||process.env.DSQL_ENCRYPTION_PASSWORD,o=t||process.env.DSQL_ENCRYPTION_SALT,l=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!a?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!o?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let c=(0,n.scryptSync)(a,o,l),u=s.Buffer.alloc(16,0),i=(0,n.createDecipheriv)("aes-192-cbc",c,u);try{let r=i.update(e,"hex","utf8");return r+=i.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>n});async function n(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},37275:(e,r,t)=>{async function n(e,r,t){try{if("string"==typeof r){let n=await e.query(s(r),t);return JSON.parse(JSON.stringify(n))}if("object"!=typeof r)return null;{let t=[];for(let n=0;na})},7971:(e,r,t)=>{t.d(r,{A:()=>l});var n=t(9973),s=t.n(n),a=t(29021),o=t.n(a);async function l(...e){let r=s()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!o().existsSync(r)){console.log(`${r} does not exist`);return}return{ca:o().readFileSync(`${e}/ca-cert.pem`),rejectUnauthorized:!1}}()},onConnect:()=>{console.log("Connection Successful!")},onConnectError:e=>{console.log("Connection Error",e.message)},onError:e=>{console.log("Client Error",e.message)}});console.log("Querying ...");try{let t=await r.query(...e);return await r.end(),JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e.message),{success:!1,error:e.message}}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../../webpack-api-runtime.js");r.C(e);var t=r(r.s=10291);module.exports=t})(); \ No newline at end of file +${c}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},30944:(e,r,t)=>{t.d(r,{A:()=>c});var n=t(43775),s=t(67619),a=t(48786),o=t(37275),l=t(7971);async function c({queryString:e,queryValuesArray:r,database:t,tableSchema:c,useLocal:i}){let u;let d=!!i||!!t?.match(/^datasquirel$/),p=i?l.A:d?a.A:o.A;try{u=e&&r&&Array.isArray(r)&&r[0]?d?await p(e,r):await p({paradigm:"Full Access",queryString:e,queryValues:r}):d?await p(e):await p({paradigm:"Full Access",queryString:e})}catch(e){console.log(`varDatabaseDbHandler Error: ${e.message}`),(0,s.A)({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(u&&c)try{let e=u;return await (0,n.A)({unparsedResults:e,tableSchema:c})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",t,e),(0,s.A)({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(u)return u;else return null}},95969:(e,r,t)=>{t.d(r,{A:()=>a});var n=t(55511),s=t(79428);function a({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let a=r||process.env.DSQL_ENCRYPTION_PASSWORD,o=t||process.env.DSQL_ENCRYPTION_SALT,l=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!a?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!o?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let c=(0,n.scryptSync)(a,o,l),i=s.Buffer.alloc(16,0),u=(0,n.createDecipheriv)("aes-192-cbc",c,i);try{let r=u.update(e,"hex","utf8");return r+=u.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>n});async function n(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},37275:(e,r,t)=>{async function n(e,r,t){try{if("string"==typeof r){let n=await e.query(s(r),t);return JSON.parse(JSON.stringify(n))}if("object"!=typeof r)return null;{let t=[];for(let n=0;na})},7971:(e,r,t)=>{t.d(r,{A:()=>l});var n=t(9973),s=t.n(n),a=t(29021),o=t.n(a);async function l(...e){let r=s()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!o().existsSync(r)){console.log(`${r} does not exist`);return}return{ca:o().readFileSync(`${e}/ca-cert.pem`),rejectUnauthorized:!1}}()},onConnect:()=>{console.log("Connection Successful!")},onConnectError:e=>{console.log("Connection Error",e.message)},onError:e=>{console.log("Client Error",e.message)}});console.log("Querying ...");try{let t=await r.query(...e);return await r.end(),JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e.message),{success:!1,error:e.message}}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../../webpack-api-runtime.js");r.C(e);var t=r(r.s=10291);module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/admin/getUserBackups.js b/dsql-app/.local_dist/server/pages/api/admin/getUserBackups.js index 2082bc9..445092a 100644 --- a/dsql-app/.local_dist/server/pages/api/admin/getUserBackups.js +++ b/dsql-app/.local_dist/server/pages/api/admin/getUserBackups.js @@ -1 +1 @@ -"use strict";(()=>{var e={};e.id=525,e.ids=[525],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,n){return n in r?r[n]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,n)):"function"==typeof r&&"default"===n?r:void 0}}})},52159:(e,r,n)=>{n.r(r),n.d(r,{config:()=>d,default:()=>l,routeModule:()=>_});var s={};n.r(s),n.d(s,{default:()=>a});var t=n(89947),o=n(2706),u=n(96762),i=n(87369);let c=n(29021);async function a(e,r){if("POST"!==e.method)return r.json({success:!1,msg:"Wrong Method"});let n=await (0,i.A)(e);if(!n?.logged_in_status)return r.json({success:!1,log:"No Logs"});let s=e.body.user.id.toString().replace(/[^0-9]/g,"").replace(/\//g,""),t=`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${s}/backups`;c.existsSync(t)||c.mkdirSync(t);let o=c.readdirSync(t);r.json({success:!0,backups:o})}let l=(0,u.M)(s,"default"),d=(0,u.M)(s,"config"),_=new t.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/admin/getUserBackups",pathname:"/api/admin/getUserBackups",bundlePath:"",filename:""},userland:s})},87369:(e,r,n)=>{n.d(r,{A:()=>o});var s=n(95969),t=n(89159);async function o(e){let{keyCookieName:r,csrfCookieName:n}=(0,t.A)(),o=`${r}_su`;if(!e.cookies?.[o])return console.log("No auth key cookie found"),null;let u=(0,s.A)({encryptedString:e.cookies[o]});if(!u)return console.log("No user payload found"),null;let i=JSON.parse(u);return i.password!==process.env.DSQL_USER_KEY?(console.log("Invalid password"),null):i.authKey!==process.env.DSQL_SPECIAL_KEY?(console.log("Invalid auth key"),null):i}},89159:(e,r,n)=>{n.d(r,{A:()=>s});function s(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",n=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",t=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",o=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),u=r;e?.userId&&(u+=`user_${e.userId}_`),o&&(u+=`${o}_`),u+=n;let i=r;e?.userId&&(i+=`user_${e.userId}_`),o&&(i+=`${o}_`),i+=s;let c=r;return e?.userId&&(c+=`user_${e.userId}_`),o&&(c+=`${o}_`),{keyCookieName:u,csrfCookieName:i,oneTimeCodeName:c+=t}}},95969:(e,r,n)=>{n.d(r,{A:()=>o});var s=n(55511),t=n(79428);function o({encryptedString:e,encryptionKey:r,encryptionSalt:n}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let o=r||process.env.DSQL_ENCRYPTION_PASSWORD,u=n||process.env.DSQL_ENCRYPTION_SALT,i=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!o?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!u?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let c=(0,s.scryptSync)(o,u,i),a=t.Buffer.alloc(16,0),l=(0,s.createDecipheriv)("aes-192-cbc",c,a);try{let r=l.update(e,"hex","utf8");return r+=l.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return n}});var n=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,n)=>{e.exports=n(75600)}};var r=require("../../../webpack-api-runtime.js");r.C(e);var n=r(r.s=52159);module.exports=n})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=525,e.ids=[525],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,n){return n in r?r[n]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,n)):"function"==typeof r&&"default"===n?r:void 0}}})},52159:(e,r,n)=>{n.r(r),n.d(r,{config:()=>_,default:()=>d,routeModule:()=>p});var s={};n.r(s),n.d(s,{default:()=>l});var t=n(89947),o=n(2706),u=n(96762),i=n(87369),c=n(29021),a=n.n(c);async function l(e,r){if("POST"!==e.method)return r.json({success:!1,msg:"Wrong Method"});let n=await (0,i.A)(e);if(!n?.logged_in_status)return r.json({success:!1,log:"No Logs"});let s=e.body.user.id.toString().replace(/[^0-9]/g,"").replace(/\//g,""),t=`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${s}/backups`;a().existsSync(t)||a().mkdirSync(t);let o=a().readdirSync(t);r.json({success:!0,backups:o})}let d=(0,u.M)(s,"default"),_=(0,u.M)(s,"config"),p=new t.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/admin/getUserBackups",pathname:"/api/admin/getUserBackups",bundlePath:"",filename:""},userland:s})},87369:(e,r,n)=>{n.d(r,{A:()=>o});var s=n(95969),t=n(89159);async function o(e){let{keyCookieName:r,csrfCookieName:n}=(0,t.A)(),o=`${r}_su`;if(!e.cookies?.[o])return console.log("No auth key cookie found"),null;let u=(0,s.A)({encryptedString:e.cookies[o]});if(!u)return console.log("No user payload found"),null;let i=JSON.parse(u);return i.password!==process.env.DSQL_USER_KEY?(console.log("Invalid password"),null):i.authKey!==process.env.DSQL_SPECIAL_KEY?(console.log("Invalid auth key"),null):i}},89159:(e,r,n)=>{n.d(r,{A:()=>s});function s(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",n=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",t=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",o=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),u=r;e?.userId&&(u+=`user_${e.userId}_`),o&&(u+=`${o}_`),u+=n;let i=r;e?.userId&&(i+=`user_${e.userId}_`),o&&(i+=`${o}_`),i+=s;let c=r;return e?.userId&&(c+=`user_${e.userId}_`),o&&(c+=`${o}_`),{keyCookieName:u,csrfCookieName:i,oneTimeCodeName:c+=t}}},95969:(e,r,n)=>{n.d(r,{A:()=>o});var s=n(55511),t=n(79428);function o({encryptedString:e,encryptionKey:r,encryptionSalt:n}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let o=r||process.env.DSQL_ENCRYPTION_PASSWORD,u=n||process.env.DSQL_ENCRYPTION_SALT,i=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!o?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!u?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let c=(0,s.scryptSync)(o,u,i),a=t.Buffer.alloc(16,0),l=(0,s.createDecipheriv)("aes-192-cbc",c,a);try{let r=l.update(e,"hex","utf8");return r+=l.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return n}});var n=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,n)=>{e.exports=n(75600)}};var r=require("../../../webpack-api-runtime.js");r.C(e);var n=r(r.s=52159);module.exports=n})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/admin/getUserData.js b/dsql-app/.local_dist/server/pages/api/admin/getUserData.js index 0553573..67500a3 100644 --- a/dsql-app/.local_dist/server/pages/api/admin/getUserData.js +++ b/dsql-app/.local_dist/server/pages/api/admin/getUserData.js @@ -1 +1 @@ -"use strict";(()=>{var e={};e.id=9664,e.ids=[9664],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},75461:(e,r,t)=>{t.r(r),t.d(r,{config:()=>_,default:()=>d,routeModule:()=>p});var n={};t.r(n),t.d(n,{default:()=>c});var o=t(89947),s=t(2706),a=t(96762),i=t(48786),u=t(87369);let l=t(29021);async function c(e,r){if("POST"!==e.method)return r.json({success:!1,msg:"Wrong Method"});let t=await (0,u.A)(e);if(!t?.logged_in_status)return r.json({success:!1,log:"No Logs"});let n=e.body.user,o=n?.id.toString().replace(/[^0-9]/g,"").replace(/\//g,""),s=`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${o}`,a=[];!function e({originArray:r,rootPath:t}){let n=l.readdirSync(t);for(let o=0;oObject.values(e)[0])})}let d=(0,a.M)(n,"default"),_=(0,a.M)(n,"config"),p=new o.PagesAPIRouteModule({definition:{kind:s.A.PAGES_API,page:"/api/admin/getUserData",pathname:"/api/admin/getUserData",bundlePath:"",filename:""},userland:n})},87369:(e,r,t)=>{t.d(r,{A:()=>s});var n=t(95969),o=t(89159);async function s(e){let{keyCookieName:r,csrfCookieName:t}=(0,o.A)(),s=`${r}_su`;if(!e.cookies?.[s])return console.log("No auth key cookie found"),null;let a=(0,n.A)({encryptedString:e.cookies[s]});if(!a)return console.log("No user payload found"),null;let i=JSON.parse(a);return i.password!==process.env.DSQL_USER_KEY?(console.log("Invalid password"),null):i.authKey!==process.env.DSQL_SPECIAL_KEY?(console.log("Invalid auth key"),null):i}},89159:(e,r,t)=>{t.d(r,{A:()=>n});function n(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",n=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",o=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",s=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),a=r;e?.userId&&(a+=`user_${e.userId}_`),s&&(a+=`${s}_`),a+=t;let i=r;e?.userId&&(i+=`user_${e.userId}_`),s&&(i+=`${s}_`),i+=n;let u=r;return e?.userId&&(u+=`user_${e.userId}_`),s&&(u+=`${s}_`),{keyCookieName:a,csrfCookieName:i,oneTimeCodeName:u+=o}}},95969:(e,r,t)=>{t.d(r,{A:()=>s});var n=t(55511),o=t(79428);function s({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let s=r||process.env.DSQL_ENCRYPTION_PASSWORD,a=t||process.env.DSQL_ENCRYPTION_SALT,i=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!s?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!a?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let u=(0,n.scryptSync)(s,a,i),l=o.Buffer.alloc(16,0),c=(0,n.createDecipheriv)("aes-192-cbc",u,l);try{let r=c.update(e,"hex","utf8");return r+=c.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>n});async function n(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../../webpack-api-runtime.js");r.C(e);var t=r(r.s=75461);module.exports=t})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=9664,e.ids=[9664],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},75461:(e,r,t)=>{t.r(r),t.d(r,{config:()=>p,default:()=>_,routeModule:()=>f});var n={};t.r(n),t.d(n,{default:()=>d});var o=t(89947),s=t(2706),a=t(96762),i=t(48786),u=t(87369),l=t(29021),c=t.n(l);async function d(e,r){if("POST"!==e.method)return r.json({success:!1,msg:"Wrong Method"});let t=await (0,u.A)(e);if(!t?.logged_in_status)return r.json({success:!1,log:"No Logs"});let n=e.body.user,o=n?.id.toString().replace(/[^0-9]/g,"").replace(/\//g,""),s=`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${o}`,a=[];!function e({originArray:r,rootPath:t}){let n=c().readdirSync(t);for(let o=0;oObject.values(e)[0])})}let _=(0,a.M)(n,"default"),p=(0,a.M)(n,"config"),f=new o.PagesAPIRouteModule({definition:{kind:s.A.PAGES_API,page:"/api/admin/getUserData",pathname:"/api/admin/getUserData",bundlePath:"",filename:""},userland:n})},87369:(e,r,t)=>{t.d(r,{A:()=>s});var n=t(95969),o=t(89159);async function s(e){let{keyCookieName:r,csrfCookieName:t}=(0,o.A)(),s=`${r}_su`;if(!e.cookies?.[s])return console.log("No auth key cookie found"),null;let a=(0,n.A)({encryptedString:e.cookies[s]});if(!a)return console.log("No user payload found"),null;let i=JSON.parse(a);return i.password!==process.env.DSQL_USER_KEY?(console.log("Invalid password"),null):i.authKey!==process.env.DSQL_SPECIAL_KEY?(console.log("Invalid auth key"),null):i}},89159:(e,r,t)=>{t.d(r,{A:()=>n});function n(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",n=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",o=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",s=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),a=r;e?.userId&&(a+=`user_${e.userId}_`),s&&(a+=`${s}_`),a+=t;let i=r;e?.userId&&(i+=`user_${e.userId}_`),s&&(i+=`${s}_`),i+=n;let u=r;return e?.userId&&(u+=`user_${e.userId}_`),s&&(u+=`${s}_`),{keyCookieName:a,csrfCookieName:i,oneTimeCodeName:u+=o}}},95969:(e,r,t)=>{t.d(r,{A:()=>s});var n=t(55511),o=t(79428);function s({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let s=r||process.env.DSQL_ENCRYPTION_PASSWORD,a=t||process.env.DSQL_ENCRYPTION_SALT,i=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!s?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!a?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let u=(0,n.scryptSync)(s,a,i),l=o.Buffer.alloc(16,0),c=(0,n.createDecipheriv)("aes-192-cbc",u,l);try{let r=c.update(e,"hex","utf8");return r+=c.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>n});async function n(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../../webpack-api-runtime.js");r.C(e);var t=r(r.s=75461);module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/admin/grabBackups.js b/dsql-app/.local_dist/server/pages/api/admin/grabBackups.js index df19173..3ffca3c 100644 --- a/dsql-app/.local_dist/server/pages/api/admin/grabBackups.js +++ b/dsql-app/.local_dist/server/pages/api/admin/grabBackups.js @@ -1 +1 @@ -"use strict";(()=>{var e={};e.id=2266,e.ids=[2266],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,n){return n in r?r[n]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,n)):"function"==typeof r&&"default"===n?r:void 0}}})},90137:(e,r,n)=>{n.r(r),n.d(r,{config:()=>d,default:()=>l,routeModule:()=>_});var s={};n.r(s),n.d(s,{default:()=>c});var t=n(89947),o=n(2706),u=n(96762),i=n(87369);let a=n(29021);async function c(e,r){if("GET"!==e.method)return r.json({success:!1,msg:"Failed"});let n=await (0,i.A)(e);if(!n?.logged_in_status)return r.json({success:!1,log:"No Logs"});let s="./.tmp/backups";a.existsSync(s)||a.mkdirSync(s);let t=a.readdirSync(s);r.json({success:!0,backups:t})}let l=(0,u.M)(s,"default"),d=(0,u.M)(s,"config"),_=new t.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/admin/grabBackups",pathname:"/api/admin/grabBackups",bundlePath:"",filename:""},userland:s})},87369:(e,r,n)=>{n.d(r,{A:()=>o});var s=n(95969),t=n(89159);async function o(e){let{keyCookieName:r,csrfCookieName:n}=(0,t.A)(),o=`${r}_su`;if(!e.cookies?.[o])return console.log("No auth key cookie found"),null;let u=(0,s.A)({encryptedString:e.cookies[o]});if(!u)return console.log("No user payload found"),null;let i=JSON.parse(u);return i.password!==process.env.DSQL_USER_KEY?(console.log("Invalid password"),null):i.authKey!==process.env.DSQL_SPECIAL_KEY?(console.log("Invalid auth key"),null):i}},89159:(e,r,n)=>{n.d(r,{A:()=>s});function s(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",n=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",t=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",o=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),u=r;e?.userId&&(u+=`user_${e.userId}_`),o&&(u+=`${o}_`),u+=n;let i=r;e?.userId&&(i+=`user_${e.userId}_`),o&&(i+=`${o}_`),i+=s;let a=r;return e?.userId&&(a+=`user_${e.userId}_`),o&&(a+=`${o}_`),{keyCookieName:u,csrfCookieName:i,oneTimeCodeName:a+=t}}},95969:(e,r,n)=>{n.d(r,{A:()=>o});var s=n(55511),t=n(79428);function o({encryptedString:e,encryptionKey:r,encryptionSalt:n}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let o=r||process.env.DSQL_ENCRYPTION_PASSWORD,u=n||process.env.DSQL_ENCRYPTION_SALT,i=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!o?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!u?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let a=(0,s.scryptSync)(o,u,i),c=t.Buffer.alloc(16,0),l=(0,s.createDecipheriv)("aes-192-cbc",a,c);try{let r=l.update(e,"hex","utf8");return r+=l.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return n}});var n=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,n)=>{e.exports=n(75600)}};var r=require("../../../webpack-api-runtime.js");r.C(e);var n=r(r.s=90137);module.exports=n})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=2266,e.ids=[2266],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,n){return n in r?r[n]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,n)):"function"==typeof r&&"default"===n?r:void 0}}})},90137:(e,r,n)=>{n.r(r),n.d(r,{config:()=>_,default:()=>d,routeModule:()=>p});var s={};n.r(s),n.d(s,{default:()=>l});var t=n(89947),o=n(2706),u=n(96762),i=n(87369),a=n(29021),c=n.n(a);async function l(e,r){if("GET"!==e.method)return r.json({success:!1,msg:"Failed"});let n=await (0,i.A)(e);if(!n?.logged_in_status)return r.json({success:!1,log:"No Logs"});let s="./.tmp/backups";c().existsSync(s)||c().mkdirSync(s);let t=c().readdirSync(s);r.json({success:!0,backups:t})}let d=(0,u.M)(s,"default"),_=(0,u.M)(s,"config"),p=new t.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/admin/grabBackups",pathname:"/api/admin/grabBackups",bundlePath:"",filename:""},userland:s})},87369:(e,r,n)=>{n.d(r,{A:()=>o});var s=n(95969),t=n(89159);async function o(e){let{keyCookieName:r,csrfCookieName:n}=(0,t.A)(),o=`${r}_su`;if(!e.cookies?.[o])return console.log("No auth key cookie found"),null;let u=(0,s.A)({encryptedString:e.cookies[o]});if(!u)return console.log("No user payload found"),null;let i=JSON.parse(u);return i.password!==process.env.DSQL_USER_KEY?(console.log("Invalid password"),null):i.authKey!==process.env.DSQL_SPECIAL_KEY?(console.log("Invalid auth key"),null):i}},89159:(e,r,n)=>{n.d(r,{A:()=>s});function s(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",n=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",t=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",o=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),u=r;e?.userId&&(u+=`user_${e.userId}_`),o&&(u+=`${o}_`),u+=n;let i=r;e?.userId&&(i+=`user_${e.userId}_`),o&&(i+=`${o}_`),i+=s;let a=r;return e?.userId&&(a+=`user_${e.userId}_`),o&&(a+=`${o}_`),{keyCookieName:u,csrfCookieName:i,oneTimeCodeName:a+=t}}},95969:(e,r,n)=>{n.d(r,{A:()=>o});var s=n(55511),t=n(79428);function o({encryptedString:e,encryptionKey:r,encryptionSalt:n}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let o=r||process.env.DSQL_ENCRYPTION_PASSWORD,u=n||process.env.DSQL_ENCRYPTION_SALT,i=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!o?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!u?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let a=(0,s.scryptSync)(o,u,i),c=t.Buffer.alloc(16,0),l=(0,s.createDecipheriv)("aes-192-cbc",a,c);try{let r=l.update(e,"hex","utf8");return r+=l.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return n}});var n=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,n)=>{e.exports=n(75600)}};var r=require("../../../webpack-api-runtime.js");r.C(e);var n=r(r.s=90137);module.exports=n})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/admin/grabErrorLogs.js b/dsql-app/.local_dist/server/pages/api/admin/grabErrorLogs.js index 8d334e9..eaba575 100644 --- a/dsql-app/.local_dist/server/pages/api/admin/grabErrorLogs.js +++ b/dsql-app/.local_dist/server/pages/api/admin/grabErrorLogs.js @@ -1 +1 @@ -"use strict";(()=>{var e={};e.id=5120,e.ids=[5120],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,n){return n in r?r[n]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,n)):"function"==typeof r&&"default"===n?r:void 0}}})},66604:(e,r,n)=>{n.r(r),n.d(r,{config:()=>d,default:()=>a,routeModule:()=>_});var o={};n.r(o),n.d(o,{default:()=>c});var s=n(89947),t=n(2706),u=n(96762),i=n(87369);let l=n(29021);async function c(e,r){if("GET"!==e.method)return r.json({success:!1,msg:"Failed"});let n=await (0,i.A)(e);if(!n?.logged_in_status)return r.json({success:!1,log:"No Logs"});if(!l.existsSync("./.tmp/error.log"))return r.json({success:!0,log:"No Logs Yet."});let o=l.readFileSync("./.tmp/error.log","utf-8");r.json({success:!0,log:o})}let a=(0,u.M)(o,"default"),d=(0,u.M)(o,"config"),_=new s.PagesAPIRouteModule({definition:{kind:t.A.PAGES_API,page:"/api/admin/grabErrorLogs",pathname:"/api/admin/grabErrorLogs",bundlePath:"",filename:""},userland:o})},87369:(e,r,n)=>{n.d(r,{A:()=>t});var o=n(95969),s=n(89159);async function t(e){let{keyCookieName:r,csrfCookieName:n}=(0,s.A)(),t=`${r}_su`;if(!e.cookies?.[t])return console.log("No auth key cookie found"),null;let u=(0,o.A)({encryptedString:e.cookies[t]});if(!u)return console.log("No user payload found"),null;let i=JSON.parse(u);return i.password!==process.env.DSQL_USER_KEY?(console.log("Invalid password"),null):i.authKey!==process.env.DSQL_SPECIAL_KEY?(console.log("Invalid auth key"),null):i}},89159:(e,r,n)=>{n.d(r,{A:()=>o});function o(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",n=process.env.DSQL_COOKIES_KEY_NAME||"key",o=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",s=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",t=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),u=r;e?.userId&&(u+=`user_${e.userId}_`),t&&(u+=`${t}_`),u+=n;let i=r;e?.userId&&(i+=`user_${e.userId}_`),t&&(i+=`${t}_`),i+=o;let l=r;return e?.userId&&(l+=`user_${e.userId}_`),t&&(l+=`${t}_`),{keyCookieName:u,csrfCookieName:i,oneTimeCodeName:l+=s}}},95969:(e,r,n)=>{n.d(r,{A:()=>t});var o=n(55511),s=n(79428);function t({encryptedString:e,encryptionKey:r,encryptionSalt:n}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let t=r||process.env.DSQL_ENCRYPTION_PASSWORD,u=n||process.env.DSQL_ENCRYPTION_SALT,i=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!t?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!u?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let l=(0,o.scryptSync)(t,u,i),c=s.Buffer.alloc(16,0),a=(0,o.createDecipheriv)("aes-192-cbc",l,c);try{let r=a.update(e,"hex","utf8");return r+=a.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return n}});var n=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,n)=>{e.exports=n(75600)}};var r=require("../../../webpack-api-runtime.js");r.C(e);var n=r(r.s=66604);module.exports=n})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=5120,e.ids=[5120],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,n){return n in r?r[n]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,n)):"function"==typeof r&&"default"===n?r:void 0}}})},66604:(e,r,n)=>{n.r(r),n.d(r,{config:()=>_,default:()=>d,routeModule:()=>p});var o={};n.r(o),n.d(o,{default:()=>a});var s=n(89947),t=n(2706),u=n(96762),i=n(87369),c=n(29021),l=n.n(c);async function a(e,r){if("GET"!==e.method)return r.json({success:!1,msg:"Failed"});let n=await (0,i.A)(e);if(!n?.logged_in_status)return r.json({success:!1,log:"No Logs"});if(!l().existsSync("./.tmp/error.log"))return r.json({success:!0,log:"No Logs Yet."});let o=l().readFileSync("./.tmp/error.log","utf-8");r.json({success:!0,log:o})}let d=(0,u.M)(o,"default"),_=(0,u.M)(o,"config"),p=new s.PagesAPIRouteModule({definition:{kind:t.A.PAGES_API,page:"/api/admin/grabErrorLogs",pathname:"/api/admin/grabErrorLogs",bundlePath:"",filename:""},userland:o})},87369:(e,r,n)=>{n.d(r,{A:()=>t});var o=n(95969),s=n(89159);async function t(e){let{keyCookieName:r,csrfCookieName:n}=(0,s.A)(),t=`${r}_su`;if(!e.cookies?.[t])return console.log("No auth key cookie found"),null;let u=(0,o.A)({encryptedString:e.cookies[t]});if(!u)return console.log("No user payload found"),null;let i=JSON.parse(u);return i.password!==process.env.DSQL_USER_KEY?(console.log("Invalid password"),null):i.authKey!==process.env.DSQL_SPECIAL_KEY?(console.log("Invalid auth key"),null):i}},89159:(e,r,n)=>{n.d(r,{A:()=>o});function o(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",n=process.env.DSQL_COOKIES_KEY_NAME||"key",o=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",s=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",t=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),u=r;e?.userId&&(u+=`user_${e.userId}_`),t&&(u+=`${t}_`),u+=n;let i=r;e?.userId&&(i+=`user_${e.userId}_`),t&&(i+=`${t}_`),i+=o;let c=r;return e?.userId&&(c+=`user_${e.userId}_`),t&&(c+=`${t}_`),{keyCookieName:u,csrfCookieName:i,oneTimeCodeName:c+=s}}},95969:(e,r,n)=>{n.d(r,{A:()=>t});var o=n(55511),s=n(79428);function t({encryptedString:e,encryptionKey:r,encryptionSalt:n}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let t=r||process.env.DSQL_ENCRYPTION_PASSWORD,u=n||process.env.DSQL_ENCRYPTION_SALT,i=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!t?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!u?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let c=(0,o.scryptSync)(t,u,i),l=s.Buffer.alloc(16,0),a=(0,o.createDecipheriv)("aes-192-cbc",c,l);try{let r=a.update(e,"hex","utf8");return r+=a.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return n}});var n=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,n)=>{e.exports=n(75600)}};var r=require("../../../webpack-api-runtime.js");r.C(e);var n=r(r.s=66604);module.exports=n})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/admin/grabFile.js b/dsql-app/.local_dist/server/pages/api/admin/grabFile.js index 9c2a2ed..d1408da 100644 --- a/dsql-app/.local_dist/server/pages/api/admin/grabFile.js +++ b/dsql-app/.local_dist/server/pages/api/admin/grabFile.js @@ -1 +1 @@ -"use strict";(()=>{var e={};e.id=7375,e.ids=[7375],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,n){return n in r?r[n]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,n)):"function"==typeof r&&"default"===n?r:void 0}}})},53865:(e,r,n)=>{n.r(r),n.d(r,{config:()=>d,default:()=>l,routeModule:()=>_});var s={};n.r(s),n.d(s,{default:()=>c});var t=n(89947),o=n(2706),u=n(96762),i=n(87369);let a=n(29021);async function c(e,r){if("POST"!==e.method)return r.json({success:!1,msg:"Wrong Method"});let n=await (0,i.A)(e);if(!n?.logged_in_status)return r.json({success:!1,log:"No Logs"});let{type:s,path:t}=e.body;if(e.body.user,!t?.match(/^\.\/jsonData\/dbSchemas\/users/))return r.json({success:!1,msg:"Invalid Path"});let o=t.replace(/\//g,"\\\\"),u=a.readFileSync(o,"utf-8");r.json({success:!0,data:u})}let l=(0,u.M)(s,"default"),d=(0,u.M)(s,"config"),_=new t.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/admin/grabFile",pathname:"/api/admin/grabFile",bundlePath:"",filename:""},userland:s})},87369:(e,r,n)=>{n.d(r,{A:()=>o});var s=n(95969),t=n(89159);async function o(e){let{keyCookieName:r,csrfCookieName:n}=(0,t.A)(),o=`${r}_su`;if(!e.cookies?.[o])return console.log("No auth key cookie found"),null;let u=(0,s.A)({encryptedString:e.cookies[o]});if(!u)return console.log("No user payload found"),null;let i=JSON.parse(u);return i.password!==process.env.DSQL_USER_KEY?(console.log("Invalid password"),null):i.authKey!==process.env.DSQL_SPECIAL_KEY?(console.log("Invalid auth key"),null):i}},89159:(e,r,n)=>{n.d(r,{A:()=>s});function s(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",n=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",t=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",o=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),u=r;e?.userId&&(u+=`user_${e.userId}_`),o&&(u+=`${o}_`),u+=n;let i=r;e?.userId&&(i+=`user_${e.userId}_`),o&&(i+=`${o}_`),i+=s;let a=r;return e?.userId&&(a+=`user_${e.userId}_`),o&&(a+=`${o}_`),{keyCookieName:u,csrfCookieName:i,oneTimeCodeName:a+=t}}},95969:(e,r,n)=>{n.d(r,{A:()=>o});var s=n(55511),t=n(79428);function o({encryptedString:e,encryptionKey:r,encryptionSalt:n}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let o=r||process.env.DSQL_ENCRYPTION_PASSWORD,u=n||process.env.DSQL_ENCRYPTION_SALT,i=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!o?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!u?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let a=(0,s.scryptSync)(o,u,i),c=t.Buffer.alloc(16,0),l=(0,s.createDecipheriv)("aes-192-cbc",a,c);try{let r=l.update(e,"hex","utf8");return r+=l.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return n}});var n=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,n)=>{e.exports=n(75600)}};var r=require("../../../webpack-api-runtime.js");r.C(e);var n=r(r.s=53865);module.exports=n})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=7375,e.ids=[7375],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,n){return n in r?r[n]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,n)):"function"==typeof r&&"default"===n?r:void 0}}})},53865:(e,r,n)=>{n.r(r),n.d(r,{config:()=>_,default:()=>d,routeModule:()=>p});var s={};n.r(s),n.d(s,{default:()=>l});var t=n(89947),o=n(2706),u=n(96762),i=n(87369),a=n(29021),c=n.n(a);async function l(e,r){if("POST"!==e.method)return r.json({success:!1,msg:"Wrong Method"});let n=await (0,i.A)(e);if(!n?.logged_in_status)return r.json({success:!1,log:"No Logs"});let{type:s,path:t}=e.body;if(e.body.user,!t?.match(/^\.\/jsonData\/dbSchemas\/users/))return r.json({success:!1,msg:"Invalid Path"});let o=t.replace(/\//g,"\\\\"),u=c().readFileSync(o,"utf-8");r.json({success:!0,data:u})}let d=(0,u.M)(s,"default"),_=(0,u.M)(s,"config"),p=new t.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/admin/grabFile",pathname:"/api/admin/grabFile",bundlePath:"",filename:""},userland:s})},87369:(e,r,n)=>{n.d(r,{A:()=>o});var s=n(95969),t=n(89159);async function o(e){let{keyCookieName:r,csrfCookieName:n}=(0,t.A)(),o=`${r}_su`;if(!e.cookies?.[o])return console.log("No auth key cookie found"),null;let u=(0,s.A)({encryptedString:e.cookies[o]});if(!u)return console.log("No user payload found"),null;let i=JSON.parse(u);return i.password!==process.env.DSQL_USER_KEY?(console.log("Invalid password"),null):i.authKey!==process.env.DSQL_SPECIAL_KEY?(console.log("Invalid auth key"),null):i}},89159:(e,r,n)=>{n.d(r,{A:()=>s});function s(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",n=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",t=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",o=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),u=r;e?.userId&&(u+=`user_${e.userId}_`),o&&(u+=`${o}_`),u+=n;let i=r;e?.userId&&(i+=`user_${e.userId}_`),o&&(i+=`${o}_`),i+=s;let a=r;return e?.userId&&(a+=`user_${e.userId}_`),o&&(a+=`${o}_`),{keyCookieName:u,csrfCookieName:i,oneTimeCodeName:a+=t}}},95969:(e,r,n)=>{n.d(r,{A:()=>o});var s=n(55511),t=n(79428);function o({encryptedString:e,encryptionKey:r,encryptionSalt:n}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let o=r||process.env.DSQL_ENCRYPTION_PASSWORD,u=n||process.env.DSQL_ENCRYPTION_SALT,i=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!o?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!u?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let a=(0,s.scryptSync)(o,u,i),c=t.Buffer.alloc(16,0),l=(0,s.createDecipheriv)("aes-192-cbc",a,c);try{let r=l.update(e,"hex","utf8");return r+=l.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return n}});var n=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,n)=>{e.exports=n(75600)}};var r=require("../../../webpack-api-runtime.js");r.C(e);var n=r(r.s=53865);module.exports=n})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/admin/loginSuUser.js b/dsql-app/.local_dist/server/pages/api/admin/loginSuUser.js index f473bce..2251fb1 100644 --- a/dsql-app/.local_dist/server/pages/api/admin/loginSuUser.js +++ b/dsql-app/.local_dist/server/pages/api/admin/loginSuUser.js @@ -1 +1 @@ -"use strict";(()=>{var e={};e.id=5467,e.ids=[5467],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},29756:(e,r,t)=>{t.r(r),t.d(r,{config:()=>d,default:()=>_,routeModule:()=>l});var n={};t.r(n),t.d(n,{default:()=>c});var s=t(89947),o=t(2706),i=t(96762),u=t(89159),a=t(68829);async function c(e,r){if("POST"!==e.method)return r.json({user:null,msg:"Failed"});let{email:t,password:n,authKey:s}=e.body;if(n!==process.env.DSQL_USER_KEY||s!==process.env.DSQL_SPECIAL_KEY)return r.json({success:!1});let o=(0,a.default)({data:JSON.stringify({email:t,password:process.env.DSQL_USER_KEY,authKey:process.env.DSQL_SPECIAL_KEY,logged_in_status:!0,date:Date.now()})}),{keyCookieName:i,csrfCookieName:c}=(0,u.A)();r.setHeader("Set-Cookie",[`${i}_su=${o};samesite=strict;path=/;HttpOnly=true;Secure=true`]),r.json({success:!0})}let _=(0,i.M)(n,"default"),d=(0,i.M)(n,"config"),l=new s.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/admin/loginSuUser",pathname:"/api/admin/loginSuUser",bundlePath:"",filename:""},userland:n})},89159:(e,r,t)=>{t.d(r,{A:()=>n});function n(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",n=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",s=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",o=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),i=r;e?.userId&&(i+=`user_${e.userId}_`),o&&(i+=`${o}_`),i+=t;let u=r;e?.userId&&(u+=`user_${e.userId}_`),o&&(u+=`${o}_`),u+=n;let a=r;return e?.userId&&(a+=`user_${e.userId}_`),o&&(a+=`${o}_`),{keyCookieName:i,csrfCookieName:u,oneTimeCodeName:a+=s}}},68829:(e,r,t)=>{t.r(r),t.d(r,{default:()=>o});var n=t(55511),s=t(79428);function o({data:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encryption string is invalid"),e;let o=r||process.env.DSQL_ENCRYPTION_PASSWORD,i=t||process.env.DSQL_ENCRYPTION_SALT,u=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!o?.match(/.{8,}/))return console.log("Encryption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Encryption salt is invalid"),e;let a=(0,n.scryptSync)(o,i,u),c=s.Buffer.alloc(16,0),_=(0,n.createCipheriv)("aes-192-cbc",a,c);try{let r=_.update(e,"utf8","hex");return r+=_.final("hex")}catch(r){return console.log("Error in encrypting =>",r.message),e}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../../webpack-api-runtime.js");r.C(e);var t=r(r.s=29756);module.exports=t})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=5467,e.ids=[5467],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,n){return n in r?r[n]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,n)):"function"==typeof r&&"default"===n?r:void 0}}})},29756:(e,r,n)=>{n.r(r),n.d(r,{config:()=>d,default:()=>_,routeModule:()=>l});var t={};n.r(t),n.d(t,{default:()=>c});var s=n(89947),o=n(2706),i=n(96762),u=n(89159),a=n(68829);async function c(e,r){if("POST"!==e.method)return r.json({user:null,msg:"Failed"});let{email:n,password:t,authKey:s}=e.body;if(t!==process.env.DSQL_USER_KEY||s!==process.env.DSQL_SPECIAL_KEY)return r.json({success:!1});let o=(0,a.A)({data:JSON.stringify({email:n,password:process.env.DSQL_USER_KEY,authKey:process.env.DSQL_SPECIAL_KEY,logged_in_status:!0,date:Date.now()})}),{keyCookieName:i,csrfCookieName:c}=(0,u.A)();r.setHeader("Set-Cookie",[`${i}_su=${o};samesite=strict;path=/;HttpOnly=true;Secure=true`]),r.json({success:!0})}let _=(0,i.M)(t,"default"),d=(0,i.M)(t,"config"),l=new s.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/admin/loginSuUser",pathname:"/api/admin/loginSuUser",bundlePath:"",filename:""},userland:t})},89159:(e,r,n)=>{n.d(r,{A:()=>t});function t(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",n=process.env.DSQL_COOKIES_KEY_NAME||"key",t=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",s=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",o=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),i=r;e?.userId&&(i+=`user_${e.userId}_`),o&&(i+=`${o}_`),i+=n;let u=r;e?.userId&&(u+=`user_${e.userId}_`),o&&(u+=`${o}_`),u+=t;let a=r;return e?.userId&&(a+=`user_${e.userId}_`),o&&(a+=`${o}_`),{keyCookieName:i,csrfCookieName:u,oneTimeCodeName:a+=s}}},68829:(e,r,n)=>{n.d(r,{A:()=>o});var t=n(55511),s=n(79428);function o({data:e,encryptionKey:r,encryptionSalt:n}){if(!e?.match(/./))return console.log("Encryption string is invalid"),e;let o=r||process.env.DSQL_ENCRYPTION_PASSWORD,i=n||process.env.DSQL_ENCRYPTION_SALT,u=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!o?.match(/.{8,}/))return console.log("Encryption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Encryption salt is invalid"),e;let a=(0,t.scryptSync)(o,i,u),c=s.Buffer.alloc(16,0),_=(0,t.createCipheriv)("aes-192-cbc",a,c);try{let r=_.update(e,"utf8","hex");return r+=_.final("hex")}catch(r){return console.log("Error in encrypting =>",r.message),e}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return n}});var n=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,n)=>{e.exports=n(75600)}};var r=require("../../../webpack-api-runtime.js");r.C(e);var n=r(r.s=29756);module.exports=n})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/admin/runUserDbQuery.js b/dsql-app/.local_dist/server/pages/api/admin/runUserDbQuery.js index 21ecb10..dcc52da 100644 --- a/dsql-app/.local_dist/server/pages/api/admin/runUserDbQuery.js +++ b/dsql-app/.local_dist/server/pages/api/admin/runUserDbQuery.js @@ -1,4 +1,4 @@ -"use strict";(()=>{var e={};e.id=6799,e.ids=[6799],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},74336:(e,r,t)=>{t.r(r),t.d(r,{config:()=>p,default:()=>d,routeModule:()=>_});var n={};t.r(n),t.d(n,{default:()=>i});var s=t(89947),a=t(2706),o=t(96762),l=t(30944),c=t(67619),u=t(87369);async function i(e,r){if("POST"!==e.method)return r.json({success:!1,msg:"Wrong Method"});let t=await (0,u.A)(e);if(!t?.logged_in_status)return r.json({success:!1,log:"No Logs"});let{database:n,query:s}=e.body;e.body.user;try{let e=await (0,l.A)({database:n,queryString:s});if(!e)return r.json({success:!1,msg:"Query Failed!"});r.json({success:!0,result:e})}catch(e){console.log(e.message),(0,c.default)({component:"/api/runUserDbQuery/main-catch-error",message:e.message}),r.json({success:!1})}}t(29021);let d=(0,o.M)(n,"default"),p=(0,o.M)(n,"config"),_=new s.PagesAPIRouteModule({definition:{kind:a.A.PAGES_API,page:"/api/admin/runUserDbQuery",pathname:"/api/admin/runUserDbQuery",bundlePath:"",filename:""},userland:n})},87369:(e,r,t)=>{t.d(r,{A:()=>a});var n=t(95969),s=t(89159);async function a(e){let{keyCookieName:r,csrfCookieName:t}=(0,s.A)(),a=`${r}_su`;if(!e.cookies?.[a])return console.log("No auth key cookie found"),null;let o=(0,n.A)({encryptedString:e.cookies[a]});if(!o)return console.log("No user payload found"),null;let l=JSON.parse(o);return l.password!==process.env.DSQL_USER_KEY?(console.log("Invalid password"),null):l.authKey!==process.env.DSQL_SPECIAL_KEY?(console.log("Invalid auth key"),null):l}},89159:(e,r,t)=>{t.d(r,{A:()=>n});function n(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",n=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",s=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",a=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),o=r;e?.userId&&(o+=`user_${e.userId}_`),a&&(o+=`${a}_`),o+=t;let l=r;e?.userId&&(l+=`user_${e.userId}_`),a&&(l+=`${a}_`),l+=n;let c=r;return e?.userId&&(c+=`user_${e.userId}_`),a&&(c+=`${a}_`),{keyCookieName:o,csrfCookieName:l,oneTimeCodeName:c+=s}}},43775:(e,r,t)=>{t.d(r,{A:()=>a});var n=t(95969);let s=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/;async function a({unparsedResults:e,tableSchema:r}){let t=[];try{for(let a=0;a",r.message),e}}},67619:(e,r,t)=>{t.r(r),t.d(r,{default:()=>a});var n=t(29021),s=t.n(n);async function a({user:e,message:r,component:t,noMail:n,req:a}){let o=new Date,l=(()=>{if(!a)return null;try{let e=a.headers["x-forwarded-for"],r=a.headers["x-real-ip"],t=a.headers["cf-connecting-ip"],n=Array.isArray(e)?e[0]:e?.split(",")[0],s=t||n||r||a.socket.remoteAddress;if(!s)return null;return String(s)}catch(e){return null}})();try{let n=`🚀 SERVER ERROR =========================== +"use strict";(()=>{var e={};e.id=6799,e.ids=[6799],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},74336:(e,r,t)=>{t.r(r),t.d(r,{config:()=>p,default:()=>d,routeModule:()=>_});var n={};t.r(n),t.d(n,{default:()=>i});var s=t(89947),a=t(2706),o=t(96762),l=t(30944),c=t(67619),u=t(87369);async function i(e,r){if("POST"!==e.method)return r.json({success:!1,msg:"Wrong Method"});let t=await (0,u.A)(e);if(!t?.logged_in_status)return r.json({success:!1,log:"No Logs"});let{database:n,query:s}=e.body;e.body.user;try{let e=await (0,l.A)({database:n,queryString:s});if(!e)return r.json({success:!1,msg:"Query Failed!"});r.json({success:!0,result:e})}catch(e){console.log(e.message),(0,c.A)({component:"/api/runUserDbQuery/main-catch-error",message:e.message}),r.json({success:!1})}}let d=(0,o.M)(n,"default"),p=(0,o.M)(n,"config"),_=new s.PagesAPIRouteModule({definition:{kind:a.A.PAGES_API,page:"/api/admin/runUserDbQuery",pathname:"/api/admin/runUserDbQuery",bundlePath:"",filename:""},userland:n})},87369:(e,r,t)=>{t.d(r,{A:()=>a});var n=t(95969),s=t(89159);async function a(e){let{keyCookieName:r,csrfCookieName:t}=(0,s.A)(),a=`${r}_su`;if(!e.cookies?.[a])return console.log("No auth key cookie found"),null;let o=(0,n.A)({encryptedString:e.cookies[a]});if(!o)return console.log("No user payload found"),null;let l=JSON.parse(o);return l.password!==process.env.DSQL_USER_KEY?(console.log("Invalid password"),null):l.authKey!==process.env.DSQL_SPECIAL_KEY?(console.log("Invalid auth key"),null):l}},89159:(e,r,t)=>{t.d(r,{A:()=>n});function n(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",n=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",s=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",a=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),o=r;e?.userId&&(o+=`user_${e.userId}_`),a&&(o+=`${a}_`),o+=t;let l=r;e?.userId&&(l+=`user_${e.userId}_`),a&&(l+=`${a}_`),l+=n;let c=r;return e?.userId&&(c+=`user_${e.userId}_`),a&&(c+=`${a}_`),{keyCookieName:o,csrfCookieName:l,oneTimeCodeName:c+=s}}},43775:(e,r,t)=>{t.d(r,{A:()=>a});var n=t(95969);let s=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/;async function a({unparsedResults:e,tableSchema:r}){let t=[];try{for(let a=0;a",r.message),e}}},67619:(e,r,t)=>{t.d(r,{A:()=>a});var n=t(29021),s=t.n(n);async function a({user:e,message:r,component:t,noMail:n,req:a}){let o=new Date,l=(()=>{if(!a)return null;try{let e=a.headers["x-forwarded-for"],r=a.headers["x-real-ip"],t=a.headers["cf-connecting-ip"],n=Array.isArray(e)?e[0]:e?.split(",")[0],s=t||n||r||a.socket.remoteAddress;if(!s)return null;return String(s)}catch(e){return null}})();try{let n=`🚀 SERVER ERROR =========================== Error Message: ${r} Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(n+=` User Id: ${e?.id} @@ -13,4 +13,4 @@ Date: ${o.toDateString()} -${c}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},30944:(e,r,t)=>{t.d(r,{A:()=>c});var n=t(43775),s=t(67619),a=t(48786),o=t(37275),l=t(7971);async function c({queryString:e,queryValuesArray:r,database:t,tableSchema:c,useLocal:u}){let i;let d=!!u||!!t?.match(/^datasquirel$/),p=u?l.A:d?a.A:o.default;try{i=e&&r&&Array.isArray(r)&&r[0]?d?await p(e,r):await p({paradigm:"Full Access",queryString:e,queryValues:r}):d?await p(e):await p({paradigm:"Full Access",queryString:e})}catch(e){console.log(`varDatabaseDbHandler Error: ${e.message}`),(0,s.default)({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(i&&c)try{let e=i;return await (0,n.A)({unparsedResults:e,tableSchema:c})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",t,e),(0,s.default)({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(i)return i;else return null}},95969:(e,r,t)=>{t.d(r,{A:()=>a});var n=t(55511),s=t(79428);function a({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let a=r||process.env.DSQL_ENCRYPTION_PASSWORD,o=t||process.env.DSQL_ENCRYPTION_SALT,l=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!a?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!o?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let c=(0,n.scryptSync)(a,o,l),u=s.Buffer.alloc(16,0),i=(0,n.createDecipheriv)("aes-192-cbc",c,u);try{let r=i.update(e,"hex","utf8");return r+=i.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>n});async function n(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},37275:(e,r,t)=>{async function n(e,r,t){try{if("string"==typeof r){let n=await e.query(s(r),t);return JSON.parse(JSON.stringify(n))}if("object"!=typeof r)return null;{let t=[];for(let n=0;na})},7971:(e,r,t)=>{t.d(r,{A:()=>l});var n=t(9973),s=t.n(n),a=t(29021),o=t.n(a);async function l(...e){let r=s()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!o().existsSync(r)){console.log(`${r} does not exist`);return}return{ca:o().readFileSync(`${e}/ca-cert.pem`),rejectUnauthorized:!1}}()},onConnect:()=>{console.log("Connection Successful!")},onConnectError:e=>{console.log("Connection Error",e.message)},onError:e=>{console.log("Client Error",e.message)}});console.log("Querying ...");try{let t=await r.query(...e);return await r.end(),JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e.message),{success:!1,error:e.message}}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../../webpack-api-runtime.js");r.C(e);var t=r(r.s=74336);module.exports=t})(); \ No newline at end of file +${c}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},30944:(e,r,t)=>{t.d(r,{A:()=>c});var n=t(43775),s=t(67619),a=t(48786),o=t(37275),l=t(7971);async function c({queryString:e,queryValuesArray:r,database:t,tableSchema:c,useLocal:u}){let i;let d=!!u||!!t?.match(/^datasquirel$/),p=u?l.A:d?a.A:o.A;try{i=e&&r&&Array.isArray(r)&&r[0]?d?await p(e,r):await p({paradigm:"Full Access",queryString:e,queryValues:r}):d?await p(e):await p({paradigm:"Full Access",queryString:e})}catch(e){console.log(`varDatabaseDbHandler Error: ${e.message}`),(0,s.A)({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(i&&c)try{let e=i;return await (0,n.A)({unparsedResults:e,tableSchema:c})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",t,e),(0,s.A)({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(i)return i;else return null}},95969:(e,r,t)=>{t.d(r,{A:()=>a});var n=t(55511),s=t(79428);function a({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let a=r||process.env.DSQL_ENCRYPTION_PASSWORD,o=t||process.env.DSQL_ENCRYPTION_SALT,l=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!a?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!o?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let c=(0,n.scryptSync)(a,o,l),u=s.Buffer.alloc(16,0),i=(0,n.createDecipheriv)("aes-192-cbc",c,u);try{let r=i.update(e,"hex","utf8");return r+=i.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>n});async function n(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},37275:(e,r,t)=>{async function n(e,r,t){try{if("string"==typeof r){let n=await e.query(s(r),t);return JSON.parse(JSON.stringify(n))}if("object"!=typeof r)return null;{let t=[];for(let n=0;na})},7971:(e,r,t)=>{t.d(r,{A:()=>l});var n=t(9973),s=t.n(n),a=t(29021),o=t.n(a);async function l(...e){let r=s()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!o().existsSync(r)){console.log(`${r} does not exist`);return}return{ca:o().readFileSync(`${e}/ca-cert.pem`),rejectUnauthorized:!1}}()},onConnect:()=>{console.log("Connection Successful!")},onConnectError:e=>{console.log("Connection Error",e.message)},onError:e=>{console.log("Client Error",e.message)}});console.log("Querying ...");try{let t=await r.query(...e);return await r.end(),JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e.message),{success:!1,error:e.message}}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../../webpack-api-runtime.js");r.C(e);var t=r(r.s=74336);module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/admin/updateEnv.js b/dsql-app/.local_dist/server/pages/api/admin/updateEnv.js index 687435b..f6a1a66 100644 --- a/dsql-app/.local_dist/server/pages/api/admin/updateEnv.js +++ b/dsql-app/.local_dist/server/pages/api/admin/updateEnv.js @@ -1 +1 @@ -"use strict";(()=>{var e={};e.id=5989,e.ids=[5989],e.modules={27825:e=>{e.exports=require("lodash")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},79428:e=>{e.exports=require("buffer")},79646:e=>{e.exports=require("child_process")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,n){return n in r?r[n]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,n)):"function"==typeof r&&"default"===n?r:void 0}}})},86181:(e,r,n)=>{n.r(r),n.d(r,{config:()=>v,default:()=>f,routeModule:()=>A});var s={};n.r(s),n.d(s,{default:()=>E});var t=n(89947),o=n(2706),u=n(96762),i=n(33873),c=n.n(i),a=n(87369),l=n(27825),d=n.n(l);let{execSync:p}=n(79646),_=n(29021);async function E(e,r){if("POST"!==e.method)return r.json({success:!1,msg:"Wrong Method"});let n=await (0,a.A)(e);if(!n?.logged_in_status)return r.json({success:!1,log:"No Logs"});try{let n=c().join(process.cwd(),".env"),s=_.readFileSync(n,"utf-8"),t=RegExp(`${d().escapeRegExp(e.body.key)}=.*`);s.match(t);let o=s.replace(t,`${e.body.key}=${e.body.value}`);_.writeFileSync(n,o,"utf-8"),r.json({success:!0})}catch(e){console.log("updating Env error =>",e.message),r.json({success:!1,error:e.message})}}let f=(0,u.M)(s,"default"),v=(0,u.M)(s,"config"),A=new t.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/admin/updateEnv",pathname:"/api/admin/updateEnv",bundlePath:"",filename:""},userland:s})},87369:(e,r,n)=>{n.d(r,{A:()=>o});var s=n(95969),t=n(89159);async function o(e){let{keyCookieName:r,csrfCookieName:n}=(0,t.A)(),o=`${r}_su`;if(!e.cookies?.[o])return console.log("No auth key cookie found"),null;let u=(0,s.A)({encryptedString:e.cookies[o]});if(!u)return console.log("No user payload found"),null;let i=JSON.parse(u);return i.password!==process.env.DSQL_USER_KEY?(console.log("Invalid password"),null):i.authKey!==process.env.DSQL_SPECIAL_KEY?(console.log("Invalid auth key"),null):i}},89159:(e,r,n)=>{n.d(r,{A:()=>s});function s(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",n=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",t=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",o=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),u=r;e?.userId&&(u+=`user_${e.userId}_`),o&&(u+=`${o}_`),u+=n;let i=r;e?.userId&&(i+=`user_${e.userId}_`),o&&(i+=`${o}_`),i+=s;let c=r;return e?.userId&&(c+=`user_${e.userId}_`),o&&(c+=`${o}_`),{keyCookieName:u,csrfCookieName:i,oneTimeCodeName:c+=t}}},95969:(e,r,n)=>{n.d(r,{A:()=>o});var s=n(55511),t=n(79428);function o({encryptedString:e,encryptionKey:r,encryptionSalt:n}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let o=r||process.env.DSQL_ENCRYPTION_PASSWORD,u=n||process.env.DSQL_ENCRYPTION_SALT,i=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!o?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!u?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let c=(0,s.scryptSync)(o,u,i),a=t.Buffer.alloc(16,0),l=(0,s.createDecipheriv)("aes-192-cbc",c,a);try{let r=l.update(e,"hex","utf8");return r+=l.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return n}});var n=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,n)=>{e.exports=n(75600)}};var r=require("../../../webpack-api-runtime.js");r.C(e);var n=r(r.s=86181);module.exports=n})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=5989,e.ids=[5989],e.modules={27825:e=>{e.exports=require("lodash")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,n){return n in r?r[n]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,n)):"function"==typeof r&&"default"===n?r:void 0}}})},86181:(e,r,n)=>{n.r(r),n.d(r,{config:()=>v,default:()=>f,routeModule:()=>A});var s={};n.r(s),n.d(s,{default:()=>E});var t=n(89947),o=n(2706),u=n(96762),i=n(29021),a=n.n(i),c=n(33873),l=n.n(c),d=n(87369),p=n(27825),_=n.n(p);async function E(e,r){if("POST"!==e.method)return r.json({success:!1,msg:"Wrong Method"});let n=await (0,d.A)(e);if(!n?.logged_in_status)return r.json({success:!1,log:"No Logs"});try{let n=l().join(process.cwd(),".env"),s=a().readFileSync(n,"utf-8"),t=RegExp(`${_().escapeRegExp(e.body.key)}=.*`);s.match(t);let o=s.replace(t,`${e.body.key}=${e.body.value}`);a().writeFileSync(n,o,"utf-8"),r.json({success:!0})}catch(e){console.log("updating Env error =>",e.message),r.json({success:!1,error:e.message})}}let f=(0,u.M)(s,"default"),v=(0,u.M)(s,"config"),A=new t.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/admin/updateEnv",pathname:"/api/admin/updateEnv",bundlePath:"",filename:""},userland:s})},87369:(e,r,n)=>{n.d(r,{A:()=>o});var s=n(95969),t=n(89159);async function o(e){let{keyCookieName:r,csrfCookieName:n}=(0,t.A)(),o=`${r}_su`;if(!e.cookies?.[o])return console.log("No auth key cookie found"),null;let u=(0,s.A)({encryptedString:e.cookies[o]});if(!u)return console.log("No user payload found"),null;let i=JSON.parse(u);return i.password!==process.env.DSQL_USER_KEY?(console.log("Invalid password"),null):i.authKey!==process.env.DSQL_SPECIAL_KEY?(console.log("Invalid auth key"),null):i}},89159:(e,r,n)=>{n.d(r,{A:()=>s});function s(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",n=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",t=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",o=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),u=r;e?.userId&&(u+=`user_${e.userId}_`),o&&(u+=`${o}_`),u+=n;let i=r;e?.userId&&(i+=`user_${e.userId}_`),o&&(i+=`${o}_`),i+=s;let a=r;return e?.userId&&(a+=`user_${e.userId}_`),o&&(a+=`${o}_`),{keyCookieName:u,csrfCookieName:i,oneTimeCodeName:a+=t}}},95969:(e,r,n)=>{n.d(r,{A:()=>o});var s=n(55511),t=n(79428);function o({encryptedString:e,encryptionKey:r,encryptionSalt:n}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let o=r||process.env.DSQL_ENCRYPTION_PASSWORD,u=n||process.env.DSQL_ENCRYPTION_SALT,i=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!o?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!u?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let a=(0,s.scryptSync)(o,u,i),c=t.Buffer.alloc(16,0),l=(0,s.createDecipheriv)("aes-192-cbc",a,c);try{let r=l.update(e,"hex","utf8");return r+=l.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return n}});var n=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,n)=>{e.exports=n(75600)}};var r=require("../../../webpack-api-runtime.js");r.C(e);var n=r(r.s=86181);module.exports=n})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/changeDbUserPassword.js b/dsql-app/.local_dist/server/pages/api/changeDbUserPassword.js index 0eb8b54..3c7315a 100644 --- a/dsql-app/.local_dist/server/pages/api/changeDbUserPassword.js +++ b/dsql-app/.local_dist/server/pages/api/changeDbUserPassword.js @@ -1 +1 @@ -"use strict";(()=>{var e={};e.id=7963,e.ids=[7963],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},94649:(e,r,t)=>{t.r(r),t.d(r,{config:()=>_,default:()=>l,routeModule:()=>f});var s={};t.r(s),t.d(s,{default:()=>d});var n=t(89947),o=t(2706),i=t(96762),a=t(48786),c=t(69842),u=t(83919);async function d(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});if(!await (0,c.A)(e,r,!0))return r.json({success:!1,msg:"Unauthorized"});let{userId:t,password:s,dbId:n}=e.body;try{let e=!!String(n).match(/^\d+$/),o=!!String(t).match(/^\d+$/),i=!!String(s).match(/ /);if(!e||!o)throw Error("Invalud Parameters!");if(i)throw Error("Invalid Password!");let c=await (0,a.A)("SELECT * FROM user_databases WHERE id = ?",[n]),d=c?.[0]?.db_full_name,l=(0,u.A)({encryptionKey:process.env.DSQL_ENCRYPTION_PASSWORD||"",password:s});await (0,a.A)(`UPDATE \`${d}\`.\`users\` SET password = ? WHERE id = ?`,[l,t]),r.json({success:!0,msg:"DB user Password Changed!"})}catch(e){r.json({success:!1,msg:e.message})}}let l=(0,i.M)(s,"default"),_=(0,i.M)(s,"config"),f=new n.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/changeDbUserPassword",pathname:"/api/changeDbUserPassword",bundlePath:"",filename:""},userland:s})},69842:(e,r,t)=>{t.d(r,{A:()=>c});var s=t(48786),n=t(95969),o=t(29021),i=t.n(o),a=t(89159);async function c(e,r,t){try{let{keyCookieName:o,csrfCookieName:c}=(0,a.A)();if(!e.cookies?.[o]?.match(/./))throw Error("Request Cookies not Found!");let u=(0,n.A)({encryptedString:e.cookies[o]});if(!u)throw Error("Couldn't decrypt auth cookie!");let d=JSON.parse(u);if(!d.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(d.csrf_k)))throw Error("Deep Auth Failed. `csrf` key not found in request headers!");let l=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!l)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!i().existsSync(`${l}/${d.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==d.verification_status&&!t){let e=await (0,s.A)(`SELECT verification_status FROM users WHERE id='${d.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(d?.date&&Date.now()-d.date>6048e5)throw Error("Key expired!");return d}catch(e){return console.log(`userAuth Error: ${e.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>s});function s(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",n=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",o=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),i=r;e?.userId&&(i+=`user_${e.userId}_`),o&&(i+=`${o}_`),i+=t;let a=r;e?.userId&&(a+=`user_${e.userId}_`),o&&(a+=`${o}_`),a+=s;let c=r;return e?.userId&&(c+=`user_${e.userId}_`),o&&(c+=`${o}_`),{keyCookieName:i,csrfCookieName:a,oneTimeCodeName:c+=n}}},95969:(e,r,t)=>{t.d(r,{A:()=>o});var s=t(55511),n=t(79428);function o({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let o=r||process.env.DSQL_ENCRYPTION_PASSWORD,i=t||process.env.DSQL_ENCRYPTION_SALT,a=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!o?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let c=(0,s.scryptSync)(o,i,a),u=n.Buffer.alloc(16,0),d=(0,s.createDecipheriv)("aes-192-cbc",c,u);try{let r=d.update(e,"hex","utf8");return r+=d.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},83919:(e,r,t)=>{t.d(r,{A:()=>n});var s=t(55511);function n({password:e,encryptionKey:r}){let t=r||process.env.DSQL_ENCRYPTION_PASSWORD;if(!t?.match(/.{8,}/))throw Error("Encryption key is invalid");let n=(0,s.createHmac)("sha512",t);return n.update(e),n.digest("base64")}},48786:(e,r,t)=>{t.d(r,{A:()=>s});async function s(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=94649);module.exports=t})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=7963,e.ids=[7963],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},94649:(e,r,t)=>{t.r(r),t.d(r,{config:()=>_,default:()=>l,routeModule:()=>f});var s={};t.r(s),t.d(s,{default:()=>d});var n=t(89947),o=t(2706),i=t(96762),a=t(48786),c=t(69842),u=t(83919);async function d(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});if(!await (0,c.A)(e,r,!0))return r.json({success:!1,msg:"Unauthorized"});let{userId:t,password:s,dbId:n}=e.body;try{let e=!!String(n).match(/^\d+$/),o=!!String(t).match(/^\d+$/),i=!!String(s).match(/ /);if(!e||!o)throw Error("Invalud Parameters!");if(i)throw Error("Invalid Password!");let c=await (0,a.A)("SELECT * FROM user_databases WHERE id = ?",[n]),d=c?.[0]?.db_full_name,l=(0,u.A)({encryptionKey:process.env.DSQL_ENCRYPTION_PASSWORD||"",password:s});await (0,a.A)(`UPDATE \`${d}\`.\`users\` SET password = ? WHERE id = ?`,[l,t]),r.json({success:!0,msg:"DB user Password Changed!"})}catch(e){r.json({success:!1,msg:e.message})}}let l=(0,i.M)(s,"default"),_=(0,i.M)(s,"config"),f=new n.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/changeDbUserPassword",pathname:"/api/changeDbUserPassword",bundlePath:"",filename:""},userland:s})},69842:(e,r,t)=>{t.d(r,{A:()=>c});var s=t(48786),n=t(95969),o=t(29021),i=t.n(o),a=t(89159);async function c(e,r,t){try{let{keyCookieName:o,csrfCookieName:c}=(0,a.A)();if(!e.cookies?.[o]?.match(/./))throw Error("Request Cookies not Found!");let u=(0,n.A)({encryptedString:e.cookies[o]});if(!u)throw Error("Couldn't decrypt auth cookie!");let d=JSON.parse(u);if(!d.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(d.csrf_k)))throw console.log("req.headers",e.headers),console.log("userObject",d),Error("Deep Auth Failed. `csrf` key not found in request headers!");let l=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!l)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!i().existsSync(`${l}/${d.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==d.verification_status&&!t){let e=await (0,s.A)(`SELECT verification_status FROM users WHERE id='${d.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(d?.date&&Date.now()-d.date>6048e5)throw Error("Key expired!");return d}catch(e){return console.log(`userAuth Error: ${e.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>s});function s(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",n=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",o=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),i=r;e?.userId&&(i+=`user_${e.userId}_`),o&&(i+=`${o}_`),i+=t;let a=r;e?.userId&&(a+=`user_${e.userId}_`),o&&(a+=`${o}_`),a+=s;let c=r;return e?.userId&&(c+=`user_${e.userId}_`),o&&(c+=`${o}_`),{keyCookieName:i,csrfCookieName:a,oneTimeCodeName:c+=n}}},95969:(e,r,t)=>{t.d(r,{A:()=>o});var s=t(55511),n=t(79428);function o({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let o=r||process.env.DSQL_ENCRYPTION_PASSWORD,i=t||process.env.DSQL_ENCRYPTION_SALT,a=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!o?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let c=(0,s.scryptSync)(o,i,a),u=n.Buffer.alloc(16,0),d=(0,s.createDecipheriv)("aes-192-cbc",c,u);try{let r=d.update(e,"hex","utf8");return r+=d.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},83919:(e,r,t)=>{t.d(r,{A:()=>n});var s=t(55511);function n({password:e,encryptionKey:r}){let t=r||process.env.DSQL_ENCRYPTION_PASSWORD;if(!t?.match(/.{8,}/))throw Error("Encryption key is invalid");let n=(0,s.createHmac)("sha512",t);return n.update(e),n.digest("base64")}},48786:(e,r,t)=>{t.d(r,{A:()=>s});async function s(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=94649);module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/checkDuplicateData.js b/dsql-app/.local_dist/server/pages/api/checkDuplicateData.js index 630d861..8615471 100644 --- a/dsql-app/.local_dist/server/pages/api/checkDuplicateData.js +++ b/dsql-app/.local_dist/server/pages/api/checkDuplicateData.js @@ -1,4 +1,4 @@ -"use strict";(()=>{var e={};e.id=6856,e.ids=[6856],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},88525:(e,r,t)=>{t.r(r),t.d(r,{config:()=>u,default:()=>i,routeModule:()=>d});var n={};t.r(n),t.d(n,{default:()=>c});var a=t(89947),s=t(2706),o=t(96762),l=t(30944);async function c(e,r){if("GET"!==e.method)return r.json({success:!1,msg:"Failed!"});let{type:t,value:n,tableName:a,dbFullName:s,userId:o,dbId:c,userType:i,database:u}=e.query,d=s&&"string"==typeof s?s.replace(/[^a-z0-9_]/g,""):"datasquirel",p=`SELECT \`${t}\` FROM ${d}.\`${a}\` WHERE \`${t}\`=?`,f=[n];o&&(p+=" AND user_id=?",f.push(o)),c&&(p+=" AND db_id=?",f.push(c)),i&&(p+=" AND user_type=?",f.push(i)),u&&(p+=" AND `database`=?",f.push(u));let g=await (0,l.A)({queryString:p,queryValuesArray:f,database:d});r.json({result:!!g&&!!g[0]})}let i=(0,o.M)(n,"default"),u=(0,o.M)(n,"config"),d=new a.PagesAPIRouteModule({definition:{kind:s.A.PAGES_API,page:"/api/checkDuplicateData",pathname:"/api/checkDuplicateData",bundlePath:"",filename:""},userland:n})},43775:(e,r,t)=>{t.d(r,{A:()=>s});var n=t(95969);let a=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/;async function s({unparsedResults:e,tableSchema:r}){let t=[];try{for(let s=0;s",r.message),e}}},67619:(e,r,t)=>{t.r(r),t.d(r,{default:()=>s});var n=t(29021),a=t.n(n);async function s({user:e,message:r,component:t,noMail:n,req:s}){let o=new Date,l=(()=>{if(!s)return null;try{let e=s.headers["x-forwarded-for"],r=s.headers["x-real-ip"],t=s.headers["cf-connecting-ip"],n=Array.isArray(e)?e[0]:e?.split(",")[0],a=t||n||r||s.socket.remoteAddress;if(!a)return null;return String(a)}catch(e){return null}})();try{let n=`🚀 SERVER ERROR =========================== +"use strict";(()=>{var e={};e.id=6856,e.ids=[6856],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},88525:(e,r,t)=>{t.r(r),t.d(r,{config:()=>u,default:()=>i,routeModule:()=>d});var n={};t.r(n),t.d(n,{default:()=>c});var a=t(89947),s=t(2706),o=t(96762),l=t(30944);async function c(e,r){if("GET"!==e.method)return r.json({success:!1,msg:"Failed!"});let{type:t,value:n,tableName:a,dbFullName:s,userId:o,dbId:c,userType:i,database:u}=e.query,d=s&&"string"==typeof s?s.replace(/[^a-z0-9_]/g,""):"datasquirel",p=`SELECT \`${t}\` FROM ${d}.\`${a}\` WHERE \`${t}\`=?`,f=[n];o&&(p+=" AND user_id=?",f.push(o)),c&&(p+=" AND db_id=?",f.push(c)),i&&(p+=" AND user_type=?",f.push(i)),u&&(p+=" AND `database`=?",f.push(u));let g=await (0,l.A)({queryString:p,queryValuesArray:f,database:d});r.json({result:!!g&&!!g[0]})}let i=(0,o.M)(n,"default"),u=(0,o.M)(n,"config"),d=new a.PagesAPIRouteModule({definition:{kind:s.A.PAGES_API,page:"/api/checkDuplicateData",pathname:"/api/checkDuplicateData",bundlePath:"",filename:""},userland:n})},43775:(e,r,t)=>{t.d(r,{A:()=>s});var n=t(95969);let a=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/;async function s({unparsedResults:e,tableSchema:r}){let t=[];try{for(let s=0;s",r.message),e}}},67619:(e,r,t)=>{t.d(r,{A:()=>s});var n=t(29021),a=t.n(n);async function s({user:e,message:r,component:t,noMail:n,req:s}){let o=new Date,l=(()=>{if(!s)return null;try{let e=s.headers["x-forwarded-for"],r=s.headers["x-real-ip"],t=s.headers["cf-connecting-ip"],n=Array.isArray(e)?e[0]:e?.split(",")[0],a=t||n||r||s.socket.remoteAddress;if(!a)return null;return String(a)}catch(e){return null}})();try{let n=`🚀 SERVER ERROR =========================== Error Message: ${r} Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(n+=` User Id: ${e?.id} @@ -13,4 +13,4 @@ Date: ${o.toDateString()} -${c}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},30944:(e,r,t)=>{t.d(r,{A:()=>c});var n=t(43775),a=t(67619),s=t(48786),o=t(37275),l=t(7971);async function c({queryString:e,queryValuesArray:r,database:t,tableSchema:c,useLocal:i}){let u;let d=!!i||!!t?.match(/^datasquirel$/),p=i?l.A:d?s.A:o.default;try{u=e&&r&&Array.isArray(r)&&r[0]?d?await p(e,r):await p({paradigm:"Full Access",queryString:e,queryValues:r}):d?await p(e):await p({paradigm:"Full Access",queryString:e})}catch(e){console.log(`varDatabaseDbHandler Error: ${e.message}`),(0,a.default)({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(u&&c)try{let e=u;return await (0,n.A)({unparsedResults:e,tableSchema:c})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",t,e),(0,a.default)({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(u)return u;else return null}},95969:(e,r,t)=>{t.d(r,{A:()=>s});var n=t(55511),a=t(79428);function s({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let s=r||process.env.DSQL_ENCRYPTION_PASSWORD,o=t||process.env.DSQL_ENCRYPTION_SALT,l=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!s?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!o?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let c=(0,n.scryptSync)(s,o,l),i=a.Buffer.alloc(16,0),u=(0,n.createDecipheriv)("aes-192-cbc",c,i);try{let r=u.update(e,"hex","utf8");return r+=u.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>n});async function n(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},37275:(e,r,t)=>{async function n(e,r,t){try{if("string"==typeof r){let n=await e.query(a(r),t);return JSON.parse(JSON.stringify(n))}if("object"!=typeof r)return null;{let t=[];for(let n=0;ns})},7971:(e,r,t)=>{t.d(r,{A:()=>l});var n=t(9973),a=t.n(n),s=t(29021),o=t.n(s);async function l(...e){let r=a()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!o().existsSync(r)){console.log(`${r} does not exist`);return}return{ca:o().readFileSync(`${e}/ca-cert.pem`),rejectUnauthorized:!1}}()},onConnect:()=>{console.log("Connection Successful!")},onConnectError:e=>{console.log("Connection Error",e.message)},onError:e=>{console.log("Client Error",e.message)}});console.log("Querying ...");try{let t=await r.query(...e);return await r.end(),JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e.message),{success:!1,error:e.message}}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=88525);module.exports=t})(); \ No newline at end of file +${c}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},30944:(e,r,t)=>{t.d(r,{A:()=>c});var n=t(43775),a=t(67619),s=t(48786),o=t(37275),l=t(7971);async function c({queryString:e,queryValuesArray:r,database:t,tableSchema:c,useLocal:i}){let u;let d=!!i||!!t?.match(/^datasquirel$/),p=i?l.A:d?s.A:o.A;try{u=e&&r&&Array.isArray(r)&&r[0]?d?await p(e,r):await p({paradigm:"Full Access",queryString:e,queryValues:r}):d?await p(e):await p({paradigm:"Full Access",queryString:e})}catch(e){console.log(`varDatabaseDbHandler Error: ${e.message}`),(0,a.A)({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(u&&c)try{let e=u;return await (0,n.A)({unparsedResults:e,tableSchema:c})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",t,e),(0,a.A)({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(u)return u;else return null}},95969:(e,r,t)=>{t.d(r,{A:()=>s});var n=t(55511),a=t(79428);function s({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let s=r||process.env.DSQL_ENCRYPTION_PASSWORD,o=t||process.env.DSQL_ENCRYPTION_SALT,l=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!s?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!o?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let c=(0,n.scryptSync)(s,o,l),i=a.Buffer.alloc(16,0),u=(0,n.createDecipheriv)("aes-192-cbc",c,i);try{let r=u.update(e,"hex","utf8");return r+=u.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>n});async function n(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},37275:(e,r,t)=>{async function n(e,r,t){try{if("string"==typeof r){let n=await e.query(a(r),t);return JSON.parse(JSON.stringify(n))}if("object"!=typeof r)return null;{let t=[];for(let n=0;ns})},7971:(e,r,t)=>{t.d(r,{A:()=>l});var n=t(9973),a=t.n(n),s=t(29021),o=t.n(s);async function l(...e){let r=a()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!o().existsSync(r)){console.log(`${r} does not exist`);return}return{ca:o().readFileSync(`${e}/ca-cert.pem`),rejectUnauthorized:!1}}()},onConnect:()=>{console.log("Connection Successful!")},onConnectError:e=>{console.log("Connection Error",e.message)},onError:e=>{console.log("Client Error",e.message)}});console.log("Querying ...");try{let t=await r.query(...e);return await r.end(),JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e.message),{success:!1,error:e.message}}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=88525);module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/checkExistingFolder.js b/dsql-app/.local_dist/server/pages/api/checkExistingFolder.js index c3398f3..797ab9a 100644 --- a/dsql-app/.local_dist/server/pages/api/checkExistingFolder.js +++ b/dsql-app/.local_dist/server/pages/api/checkExistingFolder.js @@ -1 +1 @@ -"use strict";(()=>{var e={};e.id=6422,e.ids=[6422],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},49860:(e,r,t)=>{t.r(r),t.d(r,{config:()=>f,default:()=>_,routeModule:()=>E});var s={};t.r(s),t.d(s,{default:()=>l});var n=t(89947),o=t(2706),i=t(96762),u=t(33873),c=t.n(u),a=t(69842);let d=t(29021);async function l(e,r){if("GET"!==e.method)return r.json({msg:"Failed!"});let t=await (0,a.A)(e,r);if(!t)return r.json({success:!1,msg:"Unauthorized"});let{name:s,folder:n}=e.query,o=process.env.DSQL_STATIC_SERVER_DIR;if(!o)return console.log("Static File ENV not Found!"),r.json({success:!1,msg:"No Static Path!"});let i=c().join(o,`images/user-images/user-${t.id}/${n?n+"/":""}`),u=d.existsSync(i+s);r.json({success:u})}let _=(0,i.M)(s,"default"),f=(0,i.M)(s,"config"),E=new n.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/checkExistingFolder",pathname:"/api/checkExistingFolder",bundlePath:"",filename:""},userland:s})},69842:(e,r,t)=>{t.d(r,{A:()=>c});var s=t(48786),n=t(95969),o=t(29021),i=t.n(o),u=t(89159);async function c(e,r,t){try{let{keyCookieName:o,csrfCookieName:c}=(0,u.A)();if(!e.cookies?.[o]?.match(/./))throw Error("Request Cookies not Found!");let a=(0,n.A)({encryptedString:e.cookies[o]});if(!a)throw Error("Couldn't decrypt auth cookie!");let d=JSON.parse(a);if(!d.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(d.csrf_k)))throw Error("Deep Auth Failed. `csrf` key not found in request headers!");let l=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!l)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!i().existsSync(`${l}/${d.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==d.verification_status&&!t){let e=await (0,s.A)(`SELECT verification_status FROM users WHERE id='${d.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(d?.date&&Date.now()-d.date>6048e5)throw Error("Key expired!");return d}catch(e){return console.log(`userAuth Error: ${e.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>s});function s(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",n=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",o=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),i=r;e?.userId&&(i+=`user_${e.userId}_`),o&&(i+=`${o}_`),i+=t;let u=r;e?.userId&&(u+=`user_${e.userId}_`),o&&(u+=`${o}_`),u+=s;let c=r;return e?.userId&&(c+=`user_${e.userId}_`),o&&(c+=`${o}_`),{keyCookieName:i,csrfCookieName:u,oneTimeCodeName:c+=n}}},95969:(e,r,t)=>{t.d(r,{A:()=>o});var s=t(55511),n=t(79428);function o({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let o=r||process.env.DSQL_ENCRYPTION_PASSWORD,i=t||process.env.DSQL_ENCRYPTION_SALT,u=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!o?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let c=(0,s.scryptSync)(o,i,u),a=n.Buffer.alloc(16,0),d=(0,s.createDecipheriv)("aes-192-cbc",c,a);try{let r=d.update(e,"hex","utf8");return r+=d.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>s});async function s(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=49860);module.exports=t})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=6422,e.ids=[6422],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},49860:(e,r,t)=>{t.r(r),t.d(r,{config:()=>E,default:()=>f,routeModule:()=>p});var s={};t.r(s),t.d(s,{default:()=>_});var n=t(89947),o=t(2706),i=t(96762),c=t(29021),u=t.n(c),a=t(33873),l=t.n(a),d=t(69842);async function _(e,r){if("GET"!==e.method)return r.json({msg:"Failed!"});let t=await (0,d.A)(e,r);if(!t)return r.json({success:!1,msg:"Unauthorized"});let{name:s,folder:n}=e.query,o=process.env.DSQL_STATIC_SERVER_DIR;if(!o)return console.log("Static File ENV not Found!"),r.json({success:!1,msg:"No Static Path!"});let i=l().join(o,`images/user-images/user-${t.id}/${n?n+"/":""}`),c=u().existsSync(i+s);r.json({success:c})}let f=(0,i.M)(s,"default"),E=(0,i.M)(s,"config"),p=new n.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/checkExistingFolder",pathname:"/api/checkExistingFolder",bundlePath:"",filename:""},userland:s})},69842:(e,r,t)=>{t.d(r,{A:()=>u});var s=t(48786),n=t(95969),o=t(29021),i=t.n(o),c=t(89159);async function u(e,r,t){try{let{keyCookieName:o,csrfCookieName:u}=(0,c.A)();if(!e.cookies?.[o]?.match(/./))throw Error("Request Cookies not Found!");let a=(0,n.A)({encryptedString:e.cookies[o]});if(!a)throw Error("Couldn't decrypt auth cookie!");let l=JSON.parse(a);if(!l.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(l.csrf_k)))throw console.log("req.headers",e.headers),console.log("userObject",l),Error("Deep Auth Failed. `csrf` key not found in request headers!");let d=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!d)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!i().existsSync(`${d}/${l.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==l.verification_status&&!t){let e=await (0,s.A)(`SELECT verification_status FROM users WHERE id='${l.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(l?.date&&Date.now()-l.date>6048e5)throw Error("Key expired!");return l}catch(e){return console.log(`userAuth Error: ${e.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>s});function s(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",n=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",o=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),i=r;e?.userId&&(i+=`user_${e.userId}_`),o&&(i+=`${o}_`),i+=t;let c=r;e?.userId&&(c+=`user_${e.userId}_`),o&&(c+=`${o}_`),c+=s;let u=r;return e?.userId&&(u+=`user_${e.userId}_`),o&&(u+=`${o}_`),{keyCookieName:i,csrfCookieName:c,oneTimeCodeName:u+=n}}},95969:(e,r,t)=>{t.d(r,{A:()=>o});var s=t(55511),n=t(79428);function o({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let o=r||process.env.DSQL_ENCRYPTION_PASSWORD,i=t||process.env.DSQL_ENCRYPTION_SALT,c=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!o?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let u=(0,s.scryptSync)(o,i,c),a=n.Buffer.alloc(16,0),l=(0,s.createDecipheriv)("aes-192-cbc",u,a);try{let r=l.update(e,"hex","utf8");return r+=l.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>s});async function s(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=49860);module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/clientSideAuth.js b/dsql-app/.local_dist/server/pages/api/clientSideAuth.js index ec9ffe4..60fb327 100644 --- a/dsql-app/.local_dist/server/pages/api/clientSideAuth.js +++ b/dsql-app/.local_dist/server/pages/api/clientSideAuth.js @@ -1 +1 @@ -"use strict";(()=>{var e={};e.id=6237,e.ids=[6237],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},27215:(e,r,t)=>{t.r(r),t.d(r,{config:()=>d,default:()=>c,routeModule:()=>l});var n={};t.r(n),t.d(n,{default:()=>a});var o=t(89947),s=t(2706),i=t(96762),u=t(69842);async function a(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await (0,u.A)(e,r,!0);r.json({user:t})}let c=(0,i.M)(n,"default"),d=(0,i.M)(n,"config"),l=new o.PagesAPIRouteModule({definition:{kind:s.A.PAGES_API,page:"/api/clientSideAuth",pathname:"/api/clientSideAuth",bundlePath:"",filename:""},userland:n})},69842:(e,r,t)=>{t.d(r,{A:()=>a});var n=t(48786),o=t(95969),s=t(29021),i=t.n(s),u=t(89159);async function a(e,r,t){try{let{keyCookieName:s,csrfCookieName:a}=(0,u.A)();if(!e.cookies?.[s]?.match(/./))throw Error("Request Cookies not Found!");let c=(0,o.A)({encryptedString:e.cookies[s]});if(!c)throw Error("Couldn't decrypt auth cookie!");let d=JSON.parse(c);if(!d.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(d.csrf_k)))throw Error("Deep Auth Failed. `csrf` key not found in request headers!");let l=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!l)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!i().existsSync(`${l}/${d.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==d.verification_status&&!t){let e=await (0,n.A)(`SELECT verification_status FROM users WHERE id='${d.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(d?.date&&Date.now()-d.date>6048e5)throw Error("Key expired!");return d}catch(e){return console.log(`userAuth Error: ${e.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>n});function n(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",n=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",o=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",s=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),i=r;e?.userId&&(i+=`user_${e.userId}_`),s&&(i+=`${s}_`),i+=t;let u=r;e?.userId&&(u+=`user_${e.userId}_`),s&&(u+=`${s}_`),u+=n;let a=r;return e?.userId&&(a+=`user_${e.userId}_`),s&&(a+=`${s}_`),{keyCookieName:i,csrfCookieName:u,oneTimeCodeName:a+=o}}},95969:(e,r,t)=>{t.d(r,{A:()=>s});var n=t(55511),o=t(79428);function s({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let s=r||process.env.DSQL_ENCRYPTION_PASSWORD,i=t||process.env.DSQL_ENCRYPTION_SALT,u=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!s?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let a=(0,n.scryptSync)(s,i,u),c=o.Buffer.alloc(16,0),d=(0,n.createDecipheriv)("aes-192-cbc",a,c);try{let r=d.update(e,"hex","utf8");return r+=d.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>n});async function n(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=27215);module.exports=t})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=6237,e.ids=[6237],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},27215:(e,r,t)=>{t.r(r),t.d(r,{config:()=>d,default:()=>c,routeModule:()=>l});var n={};t.r(n),t.d(n,{default:()=>u});var o=t(89947),s=t(2706),i=t(96762),a=t(69842);async function u(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await (0,a.A)(e,r,!0);r.json({user:t})}let c=(0,i.M)(n,"default"),d=(0,i.M)(n,"config"),l=new o.PagesAPIRouteModule({definition:{kind:s.A.PAGES_API,page:"/api/clientSideAuth",pathname:"/api/clientSideAuth",bundlePath:"",filename:""},userland:n})},69842:(e,r,t)=>{t.d(r,{A:()=>u});var n=t(48786),o=t(95969),s=t(29021),i=t.n(s),a=t(89159);async function u(e,r,t){try{let{keyCookieName:s,csrfCookieName:u}=(0,a.A)();if(!e.cookies?.[s]?.match(/./))throw Error("Request Cookies not Found!");let c=(0,o.A)({encryptedString:e.cookies[s]});if(!c)throw Error("Couldn't decrypt auth cookie!");let d=JSON.parse(c);if(!d.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(d.csrf_k)))throw console.log("req.headers",e.headers),console.log("userObject",d),Error("Deep Auth Failed. `csrf` key not found in request headers!");let l=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!l)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!i().existsSync(`${l}/${d.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==d.verification_status&&!t){let e=await (0,n.A)(`SELECT verification_status FROM users WHERE id='${d.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(d?.date&&Date.now()-d.date>6048e5)throw Error("Key expired!");return d}catch(e){return console.log(`userAuth Error: ${e.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>n});function n(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",n=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",o=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",s=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),i=r;e?.userId&&(i+=`user_${e.userId}_`),s&&(i+=`${s}_`),i+=t;let a=r;e?.userId&&(a+=`user_${e.userId}_`),s&&(a+=`${s}_`),a+=n;let u=r;return e?.userId&&(u+=`user_${e.userId}_`),s&&(u+=`${s}_`),{keyCookieName:i,csrfCookieName:a,oneTimeCodeName:u+=o}}},95969:(e,r,t)=>{t.d(r,{A:()=>s});var n=t(55511),o=t(79428);function s({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let s=r||process.env.DSQL_ENCRYPTION_PASSWORD,i=t||process.env.DSQL_ENCRYPTION_SALT,a=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!s?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let u=(0,n.scryptSync)(s,i,a),c=o.Buffer.alloc(16,0),d=(0,n.createDecipheriv)("aes-192-cbc",u,c);try{let r=d.update(e,"hex","utf8");return r+=d.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>n});async function n(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=27215);module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/connect.js b/dsql-app/.local_dist/server/pages/api/connect.js index 4b48d60..d79842f 100644 --- a/dsql-app/.local_dist/server/pages/api/connect.js +++ b/dsql-app/.local_dist/server/pages/api/connect.js @@ -1,4 +1,4 @@ -"use strict";(()=>{var e={};e.id=7539,e.ids=[7539],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},68084:(e,r,t)=>{t.r(r),t.d(r,{config:()=>S,default:()=>g,routeModule:()=>m});var n={};t.r(n),t.d(n,{default:()=>f});var i=t(89947),s=t(2706),a=t(96762),o=t(67619),l=t(56081),c=t(95969),u=t(33873),d=t.n(u);let p=t(29021);async function f(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=e.body,{url:n,key:i,database:s,dbSchema:a,type:u}=t;try{let e=(0,l.A)({key:i,database:s?.db_slug,user_id:t.user_id});if(!e?.user_id)throw Error("Api Credentials invalid!");let n=(0,c.A)({encryptedString:i}),{user_id:a,full_access:o,csrf:u}=n?JSON.parse(n):null;if(!o||!u)return r.json({success:!1,msg:"Unauthorized"});let f=d().resolve(String(process.env.DSQL_USER_DB_SCHEMA_PATH),`user-${a}`,"main.json");if(!p.existsSync(f))throw Error("User Shcema data file doesn't exist!");let g=JSON.parse(p.readFileSync(f,"utf-8"));r.json({success:!0,payload:g})}catch(e){console.log("Connect Verification Error, =>",e.message),(0,o.default)({component:"/api/connect/main-catch-error",message:e.message}),r.json({success:!1,msg:"Connect Verification Operation Failed!"})}}let g=(0,a.M)(n,"default"),S=(0,a.M)(n,"config"),m=new i.PagesAPIRouteModule({definition:{kind:s.A.PAGES_API,page:"/api/connect",pathname:"/api/connect",bundlePath:"",filename:""},userland:n})},56081:(e,r,t)=>{t.d(r,{A:()=>a});var n=t(29021),i=t.n(n),s=t(95969);let a=({key:e,database:r,table:t,user_id:n,media:a})=>{if(!e||!n)return null;try{let o=process.env.DSQL_API_KEYS_PATH;if(!o)throw Error("process.env.DSQL_API_KEYS_PATH variable not found");let l=(0,s.A)({encryptedString:e}),c=JSON.parse(l||""),u=i().existsSync(`${o}/${c.sign}`);if(String(c.user_id)!==String(n)||!u)return null;if(!c.target_database||a)return c;if(!r&&c.target_database)return null;let d=c.target_database?.split(",").includes(String(r));if(d&&!c.target_table)return c;if(d&&!t&&c.target_table)return null;if(c.target_table?.split(",").includes(String(t)))return c;return null}catch(e){return console.log(`api-cred ERROR: ${e.message}`),{error:`api-cred ERROR: ${e.message}`}}}},67619:(e,r,t)=>{t.r(r),t.d(r,{default:()=>s});var n=t(29021),i=t.n(n);async function s({user:e,message:r,component:t,noMail:n,req:s}){let a=new Date,o=(()=>{if(!s)return null;try{let e=s.headers["x-forwarded-for"],r=s.headers["x-real-ip"],t=s.headers["cf-connecting-ip"],n=Array.isArray(e)?e[0]:e?.split(",")[0],i=t||n||r||s.socket.remoteAddress;if(!i)return null;return String(i)}catch(e){return null}})();try{let n=`🚀 SERVER ERROR =========================== +"use strict";(()=>{var e={};e.id=7539,e.ids=[7539],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},68084:(e,r,t)=>{t.r(r),t.d(r,{config:()=>m,default:()=>S,routeModule:()=>_});var n={};t.r(n),t.d(n,{default:()=>g});var i=t(89947),s=t(2706),a=t(96762),o=t(29021),l=t.n(o),c=t(67619),u=t(56081),d=t(95969),p=t(33873),f=t.n(p);async function g(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=e.body,{url:n,key:i,database:s,dbSchema:a,type:o}=t;try{let e=(0,u.A)({key:i,database:s?.db_slug,user_id:t.user_id});if(!e?.user_id)throw Error("Api Credentials invalid!");let n=(0,d.A)({encryptedString:i}),{user_id:a,full_access:o,csrf:c}=n?JSON.parse(n):null;if(!o||!c)return r.json({success:!1,msg:"Unauthorized"});let p=f().resolve(String(process.env.DSQL_USER_DB_SCHEMA_PATH),`user-${a}`,"main.json");if(!l().existsSync(p))throw Error("User Shcema data file doesn't exist!");let g=JSON.parse(l().readFileSync(p,"utf-8"));r.json({success:!0,payload:g})}catch(e){console.log("Connect Verification Error, =>",e.message),(0,c.A)({component:"/api/connect/main-catch-error",message:e.message}),r.json({success:!1,msg:"Connect Verification Operation Failed!"})}}let S=(0,a.M)(n,"default"),m=(0,a.M)(n,"config"),_=new i.PagesAPIRouteModule({definition:{kind:s.A.PAGES_API,page:"/api/connect",pathname:"/api/connect",bundlePath:"",filename:""},userland:n})},56081:(e,r,t)=>{t.d(r,{A:()=>a});var n=t(29021),i=t.n(n),s=t(95969);let a=({key:e,database:r,table:t,user_id:n,media:a})=>{if(!e||!n)return null;try{let o=process.env.DSQL_API_KEYS_PATH;if(!o)throw Error("process.env.DSQL_API_KEYS_PATH variable not found");let l=(0,s.A)({encryptedString:e}),c=JSON.parse(l||""),u=i().existsSync(`${o}/${c.sign}`);if(String(c.user_id)!==String(n)||!u)return null;if(!c.target_database||a)return c;if(!r&&c.target_database)return null;let d=c.target_database?.split(",").includes(String(r));if(d&&!c.target_table)return c;if(d&&!t&&c.target_table)return null;if(c.target_table?.split(",").includes(String(t)))return c;return null}catch(e){return console.log(`api-cred ERROR: ${e.message}`),{error:`api-cred ERROR: ${e.message}`}}}},67619:(e,r,t)=>{t.d(r,{A:()=>s});var n=t(29021),i=t.n(n);async function s({user:e,message:r,component:t,noMail:n,req:s}){let a=new Date,o=(()=>{if(!s)return null;try{let e=s.headers["x-forwarded-for"],r=s.headers["x-real-ip"],t=s.headers["cf-connecting-ip"],n=Array.isArray(e)?e[0]:e?.split(",")[0],i=t||n||r||s.socket.remoteAddress;if(!i)return null;return String(i)}catch(e){return null}})();try{let n=`🚀 SERVER ERROR =========================== Error Message: ${r} Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(n+=` User Id: ${e?.id} diff --git a/dsql-app/.local_dist/server/pages/api/connect/disconnect.js b/dsql-app/.local_dist/server/pages/api/connect/disconnect.js index 183d190..ac81f37 100644 --- a/dsql-app/.local_dist/server/pages/api/connect/disconnect.js +++ b/dsql-app/.local_dist/server/pages/api/connect/disconnect.js @@ -1,4 +1,4 @@ -"use strict";(()=>{var e={};e.id=964,e.ids=[964],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},72583:e=>{e.exports=require("sanitize-html")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},79551:e=>{e.exports=require("url")},28354:e=>{e.exports=require("util")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},48171:(e,r,t)=>{t.r(r),t.d(r,{config:()=>p,default:()=>f,routeModule:()=>_});var n={};t.r(n),t.d(n,{default:()=>d});var o=t(89947),s=t(2706),i=t(96762),a=t(67619),c=t(69842),l=t(30802);t(29021),t(28354);let{URL:u}=t(79551);async function d(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await (0,c.A)(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let{dbId:n}=e.body;try{if(!n)throw Error("No Target Database ID provided");await (0,l.A)({tableName:"user_databases",data:{remote_connected:0,remote_connection_host:"",remote_connection_key:"",remote_connection_type:"",remote_db_full_name:""},identifierColumnName:"id",identifierValue:n}),r.json({success:!0})}catch(e){console.log("Disconnect Error, =>",e.message),(0,a.default)({component:"/api/connect/verify/main-catch-error",message:e.message,user:t}),r.json({success:!1,msg:"Operation Failed!"})}}let f=(0,i.M)(n,"default"),p=(0,i.M)(n,"config"),_=new o.PagesAPIRouteModule({definition:{kind:s.A.PAGES_API,page:"/api/connect/disconnect",pathname:"/api/connect/disconnect",bundlePath:"",filename:""},userland:n})},69842:(e,r,t)=>{t.d(r,{A:()=>c});var n=t(48786),o=t(95969),s=t(29021),i=t.n(s),a=t(89159);async function c(e,r,t){try{let{keyCookieName:s,csrfCookieName:c}=(0,a.A)();if(!e.cookies?.[s]?.match(/./))throw Error("Request Cookies not Found!");let l=(0,o.A)({encryptedString:e.cookies[s]});if(!l)throw Error("Couldn't decrypt auth cookie!");let u=JSON.parse(l);if(!u.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(u.csrf_k)))throw Error("Deep Auth Failed. `csrf` key not found in request headers!");let d=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!d)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!i().existsSync(`${d}/${u.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==u.verification_status&&!t){let e=await (0,n.A)(`SELECT verification_status FROM users WHERE id='${u.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(u?.date&&Date.now()-u.date>6048e5)throw Error("Key expired!");return u}catch(e){return console.log(`userAuth Error: ${e.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>n});function n(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",n=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",o=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",s=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),i=r;e?.userId&&(i+=`user_${e.userId}_`),s&&(i+=`${s}_`),i+=t;let a=r;e?.userId&&(a+=`user_${e.userId}_`),s&&(a+=`${s}_`),a+=n;let c=r;return e?.userId&&(c+=`user_${e.userId}_`),s&&(c+=`${s}_`),{keyCookieName:i,csrfCookieName:a,oneTimeCodeName:c+=o}}},30802:(e,r,t)=>{t.d(r,{A:()=>u});var n=t(72583),o=t.n(n),s=t(92652),i=t(48786),a=t(37275),c=t(68829),l=t(7971);async function u({dbContext:e,paradigm:r,dbFullName:t,tableName:n,data:u,tableSchema:d,identifierColumnName:f,identifierValue:p,encryptionKey:_,encryptionSalt:S,useLocal:g}){if(!u||!Object.keys(u).length)return null;let E=!!g||!e?.match(/dsql.user/i)&&(!t||!!t.match(/^datasquirel$/)),y=g?l.A:E?i.A:a.default,h=Object.keys(u),m=[],D=[];for(let e=0;ee.fieldName===r):null,i=n&&n[0]?n[0]:null;if(null==t||void 0==t)continue;let a=/<[^>]+>/g;(i?.richText||String(t).match(a))&&(t=o()(t,s.A)),i?.encrypted&&(t=(0,c.default)({data:t,encryptionKey:_,encryptionSalt:S})),"object"==typeof t&&(t=JSON.stringify(t)),i?.pattern&&!new RegExp(i.pattern,i.patternFlags||"").test(t)&&(console.log("DSQL: Pattern not matched =>",t),t=""),"string"==typeof t&&t.match(/^null$/i)&&(t={toSqlString:function(){return"NULL"}}),"string"!=typeof t||t.match(/./i)||(t={toSqlString:function(){return"NULL"}}),m.push(`\`${r}\`=?`),"number"==typeof t?D.push(String(t)):D.push(t)}catch(e){console.log("DSQL: Error in parsing data keys in update function =>",e.message);continue}m.push(`date_updated='${Date()}'`),m.push(`date_updated_code='${Date.now()}'`);let N=`UPDATE \`${t}\`.\`${n}\` SET ${m.join(",")} WHERE \`${f}\`=?`;return D.push(p),E?await y(N,D):await y({paradigm:r,queryString:N,queryValues:D})}},92652:(e,r,t)=>{t.d(r,{A:()=>n});let n={allowedTags:["b","i","em","strong","a","p","span","ul","ol","li","h1","h2","h3","h4","h5","h6","img","div","button","pre","code","br"],allowedAttributes:{a:["href"],img:["src","alt","width","height","class","style"],"*":["style","class"]}}},67619:(e,r,t)=>{t.r(r),t.d(r,{default:()=>s});var n=t(29021),o=t.n(n);async function s({user:e,message:r,component:t,noMail:n,req:s}){let i=new Date,a=(()=>{if(!s)return null;try{let e=s.headers["x-forwarded-for"],r=s.headers["x-real-ip"],t=s.headers["cf-connecting-ip"],n=Array.isArray(e)?e[0]:e?.split(",")[0],o=t||n||r||s.socket.remoteAddress;if(!o)return null;return String(o)}catch(e){return null}})();try{let n=`🚀 SERVER ERROR =========================== +"use strict";(()=>{var e={};e.id=964,e.ids=[964],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},72583:e=>{e.exports=require("sanitize-html")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},48171:(e,r,t)=>{t.r(r),t.d(r,{config:()=>f,default:()=>d,routeModule:()=>p});var n={};t.r(n),t.d(n,{default:()=>u});var o=t(89947),s=t(2706),i=t(96762),a=t(67619),c=t(69842),l=t(30802);async function u(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await (0,c.A)(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let{dbId:n}=e.body;try{if(!n)throw Error("No Target Database ID provided");await (0,l.A)({tableName:"user_databases",data:{remote_connected:0,remote_connection_host:"",remote_connection_key:"",remote_connection_type:"",remote_db_full_name:""},identifierColumnName:"id",identifierValue:n}),r.json({success:!0})}catch(e){console.log("Disconnect Error, =>",e.message),(0,a.A)({component:"/api/connect/verify/main-catch-error",message:e.message,user:t}),r.json({success:!1,msg:"Operation Failed!"})}}let d=(0,i.M)(n,"default"),f=(0,i.M)(n,"config"),p=new o.PagesAPIRouteModule({definition:{kind:s.A.PAGES_API,page:"/api/connect/disconnect",pathname:"/api/connect/disconnect",bundlePath:"",filename:""},userland:n})},69842:(e,r,t)=>{t.d(r,{A:()=>c});var n=t(48786),o=t(95969),s=t(29021),i=t.n(s),a=t(89159);async function c(e,r,t){try{let{keyCookieName:s,csrfCookieName:c}=(0,a.A)();if(!e.cookies?.[s]?.match(/./))throw Error("Request Cookies not Found!");let l=(0,o.A)({encryptedString:e.cookies[s]});if(!l)throw Error("Couldn't decrypt auth cookie!");let u=JSON.parse(l);if(!u.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(u.csrf_k)))throw console.log("req.headers",e.headers),console.log("userObject",u),Error("Deep Auth Failed. `csrf` key not found in request headers!");let d=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!d)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!i().existsSync(`${d}/${u.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==u.verification_status&&!t){let e=await (0,n.A)(`SELECT verification_status FROM users WHERE id='${u.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(u?.date&&Date.now()-u.date>6048e5)throw Error("Key expired!");return u}catch(e){return console.log(`userAuth Error: ${e.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>n});function n(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",n=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",o=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",s=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),i=r;e?.userId&&(i+=`user_${e.userId}_`),s&&(i+=`${s}_`),i+=t;let a=r;e?.userId&&(a+=`user_${e.userId}_`),s&&(a+=`${s}_`),a+=n;let c=r;return e?.userId&&(c+=`user_${e.userId}_`),s&&(c+=`${s}_`),{keyCookieName:i,csrfCookieName:a,oneTimeCodeName:c+=o}}},30802:(e,r,t)=>{t.d(r,{A:()=>u});var n=t(72583),o=t.n(n),s=t(92652),i=t(48786),a=t(37275),c=t(68829),l=t(7971);async function u({dbContext:e,paradigm:r,dbFullName:t,tableName:n,data:u,tableSchema:d,identifierColumnName:f,identifierValue:p,encryptionKey:_,encryptionSalt:g,useLocal:S}){if(!u||!Object.keys(u).length)return null;let E=!!S||!e?.match(/dsql.user/i)&&(!t||!!t.match(/^datasquirel$/)),y=S?l.A:E?i.A:a.A,h=Object.keys(u),m=[],A=[];for(let e=0;ee.fieldName===r):null,i=n&&n[0]?n[0]:null;if(null==t||void 0==t)continue;let a=/<[^>]+>/g;(i?.richText||String(t).match(a))&&(t=o()(t,s.A)),i?.encrypted&&(t=(0,c.A)({data:t,encryptionKey:_,encryptionSalt:g})),"object"==typeof t&&(t=JSON.stringify(t)),i?.pattern&&!new RegExp(i.pattern,i.patternFlags||"").test(t)&&(console.log("DSQL: Pattern not matched =>",t),t=""),"string"==typeof t&&t.match(/^null$/i)&&(t={toSqlString:function(){return"NULL"}}),"string"!=typeof t||t.match(/./i)||(t={toSqlString:function(){return"NULL"}}),m.push(`\`${r}\`=?`),"number"==typeof t?A.push(String(t)):A.push(t)}catch(e){console.log("DSQL: Error in parsing data keys in update function =>",e.message);continue}m.push(`date_updated='${Date()}'`),m.push(`date_updated_code='${Date.now()}'`);let D=`UPDATE \`${t}\`.\`${n}\` SET ${m.join(",")} WHERE \`${f}\`=?`;return A.push(p),E?await y(D,A):await y({paradigm:r,queryString:D,queryValues:A})}},92652:(e,r,t)=>{t.d(r,{A:()=>n});let n={allowedTags:["b","i","em","strong","a","p","span","ul","ol","li","h1","h2","h3","h4","h5","h6","img","div","button","pre","code","br"],allowedAttributes:{a:["href"],img:["src","alt","width","height","class","style"],"*":["style","class"]}}},67619:(e,r,t)=>{t.d(r,{A:()=>s});var n=t(29021),o=t.n(n);async function s({user:e,message:r,component:t,noMail:n,req:s}){let i=new Date,a=(()=>{if(!s)return null;try{let e=s.headers["x-forwarded-for"],r=s.headers["x-real-ip"],t=s.headers["cf-connecting-ip"],n=Array.isArray(e)?e[0]:e?.split(",")[0],o=t||n||r||s.socket.remoteAddress;if(!o)return null;return String(o)}catch(e){return null}})();try{let n=`🚀 SERVER ERROR =========================== Error Message: ${r} Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(n+=` User Id: ${e?.id} @@ -13,4 +13,4 @@ Date: ${i.toDateString()} -${c}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},95969:(e,r,t)=>{t.d(r,{A:()=>s});var n=t(55511),o=t(79428);function s({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let s=r||process.env.DSQL_ENCRYPTION_PASSWORD,i=t||process.env.DSQL_ENCRYPTION_SALT,a=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!s?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let c=(0,n.scryptSync)(s,i,a),l=o.Buffer.alloc(16,0),u=(0,n.createDecipheriv)("aes-192-cbc",c,l);try{let r=u.update(e,"hex","utf8");return r+=u.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},68829:(e,r,t)=>{t.r(r),t.d(r,{default:()=>s});var n=t(55511),o=t(79428);function s({data:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encryption string is invalid"),e;let s=r||process.env.DSQL_ENCRYPTION_PASSWORD,i=t||process.env.DSQL_ENCRYPTION_SALT,a=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!s?.match(/.{8,}/))return console.log("Encryption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Encryption salt is invalid"),e;let c=(0,n.scryptSync)(s,i,a),l=o.Buffer.alloc(16,0),u=(0,n.createCipheriv)("aes-192-cbc",c,l);try{let r=u.update(e,"utf8","hex");return r+=u.final("hex")}catch(r){return console.log("Error in encrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>n});async function n(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},37275:(e,r,t)=>{async function n(e,r,t){try{if("string"==typeof r){let n=await e.query(o(r),t);return JSON.parse(JSON.stringify(n))}if("object"!=typeof r)return null;{let t=[];for(let n=0;ns})},7971:(e,r,t)=>{t.d(r,{A:()=>a});var n=t(9973),o=t.n(n),s=t(29021),i=t.n(s);async function a(...e){let r=o()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!i().existsSync(r)){console.log(`${r} does not exist`);return}return{ca:i().readFileSync(`${e}/ca-cert.pem`),rejectUnauthorized:!1}}()},onConnect:()=>{console.log("Connection Successful!")},onConnectError:e=>{console.log("Connection Error",e.message)},onError:e=>{console.log("Client Error",e.message)}});console.log("Querying ...");try{let t=await r.query(...e);return await r.end(),JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e.message),{success:!1,error:e.message}}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../../webpack-api-runtime.js");r.C(e);var t=r(r.s=48171);module.exports=t})(); \ No newline at end of file +${c}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},95969:(e,r,t)=>{t.d(r,{A:()=>s});var n=t(55511),o=t(79428);function s({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let s=r||process.env.DSQL_ENCRYPTION_PASSWORD,i=t||process.env.DSQL_ENCRYPTION_SALT,a=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!s?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let c=(0,n.scryptSync)(s,i,a),l=o.Buffer.alloc(16,0),u=(0,n.createDecipheriv)("aes-192-cbc",c,l);try{let r=u.update(e,"hex","utf8");return r+=u.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},68829:(e,r,t)=>{t.d(r,{A:()=>s});var n=t(55511),o=t(79428);function s({data:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encryption string is invalid"),e;let s=r||process.env.DSQL_ENCRYPTION_PASSWORD,i=t||process.env.DSQL_ENCRYPTION_SALT,a=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!s?.match(/.{8,}/))return console.log("Encryption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Encryption salt is invalid"),e;let c=(0,n.scryptSync)(s,i,a),l=o.Buffer.alloc(16,0),u=(0,n.createCipheriv)("aes-192-cbc",c,l);try{let r=u.update(e,"utf8","hex");return r+=u.final("hex")}catch(r){return console.log("Error in encrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>n});async function n(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},37275:(e,r,t)=>{async function n(e,r,t){try{if("string"==typeof r){let n=await e.query(o(r),t);return JSON.parse(JSON.stringify(n))}if("object"!=typeof r)return null;{let t=[];for(let n=0;ns})},7971:(e,r,t)=>{t.d(r,{A:()=>a});var n=t(9973),o=t.n(n),s=t(29021),i=t.n(s);async function a(...e){let r=o()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!i().existsSync(r)){console.log(`${r} does not exist`);return}return{ca:i().readFileSync(`${e}/ca-cert.pem`),rejectUnauthorized:!1}}()},onConnect:()=>{console.log("Connection Successful!")},onConnectError:e=>{console.log("Connection Error",e.message)},onError:e=>{console.log("Client Error",e.message)}});console.log("Querying ...");try{let t=await r.query(...e);return await r.end(),JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e.message),{success:!1,error:e.message}}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../../webpack-api-runtime.js");r.C(e);var t=r(r.s=48171);module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/connect/handshake.js b/dsql-app/.local_dist/server/pages/api/connect/handshake.js index 8da789e..52f9be3 100644 --- a/dsql-app/.local_dist/server/pages/api/connect/handshake.js +++ b/dsql-app/.local_dist/server/pages/api/connect/handshake.js @@ -1 +1 @@ -"use strict";(()=>{var e={};e.id=4065,e.ids=[4065],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},72583:e=>{e.exports=require("sanitize-html")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},79551:e=>{e.exports=require("url")},28354:e=>{e.exports=require("util")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},63177:(e,r,t)=>{t.r(r),t.d(r,{config:()=>y,default:()=>E,routeModule:()=>A});var n={};t.r(n),t.d(n,{default:()=>m});var s=t(89947),a=t(2706),o=t(96762),i=t(76856),l=t(29021),c=t.n(l),u=t(33873),d=t.n(u);let _=async({userId:e,dbSchema:r,targetDb:t})=>(await (0,i.A)({userId:e,targetDatabase:t}),`User ${e} Db Schema Updated`),f=async({userId:e,dbSchema:r,database:t})=>{let n=d().resolve(String(process.env.DSQL_USER_DB_SCHEMA_PATH),`user-${e}`,"main.json"),s=JSON.parse(c().readFileSync(n,"utf-8")),a=s.findIndex(e=>e.dbFullName==t.db_full_name);if(a<0)throw Error("Target Database not found in user schema data");let o={...s[a]};return s[a]=r,s[a].dbName=o.dbName,s[a].dbFullName=o.dbFullName,s[a].dbSlug=o.dbSlug,s[a].dbImage=o.dbImage,await _({dbSchema:s,userId:e,targetDb:t.db_full_name})};var p=t(67619),S=t(69842),h=t(30802);t(29021),t(28354);let{URL:g}=t(79551);async function m(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await (0,S.A)(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let{url:n,key:s,database:a,dbSchema:o,type:i,remoteDbs:l,targetDb:c}=e.body;try{if(!c?.tables)throw Error("No Target Database");await (0,h.A)({tableName:"user_databases",data:{remote_connected:1,remote_connection_host:n,remote_connection_key:s,remote_connection_type:i,remote_db_full_name:c.dbFullName},identifierColumnName:"db_full_name",identifierValue:a.db_full_name}),await f({dbSchema:c,database:a,userId:t.id}),r.json({success:!0})}catch(e){console.log("Connect Handshake Error, =>",e.message),(0,p.default)({component:"/api/connect/verify/main-catch-error",message:e.message,user:t}),r.json({success:!1,msg:"Operation Failed!"})}}let E=(0,o.M)(n,"default"),y=(0,o.M)(n,"config"),A=new s.PagesAPIRouteModule({definition:{kind:a.A.PAGES_API,page:"/api/connect/handshake",pathname:"/api/connect/handshake",bundlePath:"",filename:""},userland:n})},69842:(e,r,t)=>{t.d(r,{A:()=>l});var n=t(48786),s=t(95969),a=t(29021),o=t.n(a),i=t(89159);async function l(e,r,t){try{let{keyCookieName:a,csrfCookieName:l}=(0,i.A)();if(!e.cookies?.[a]?.match(/./))throw Error("Request Cookies not Found!");let c=(0,s.A)({encryptedString:e.cookies[a]});if(!c)throw Error("Couldn't decrypt auth cookie!");let u=JSON.parse(c);if(!u.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(u.csrf_k)))throw Error("Deep Auth Failed. `csrf` key not found in request headers!");let d=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!d)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!o().existsSync(`${d}/${u.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==u.verification_status&&!t){let e=await (0,n.A)(`SELECT verification_status FROM users WHERE id='${u.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(u?.date&&Date.now()-u.date>6048e5)throw Error("Key expired!");return u}catch(e){return console.log(`userAuth Error: ${e.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>n});function n(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",n=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",s=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",a=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),o=r;e?.userId&&(o+=`user_${e.userId}_`),a&&(o+=`${a}_`),o+=t;let i=r;e?.userId&&(i+=`user_${e.userId}_`),a&&(i+=`${a}_`),i+=n;let l=r;return e?.userId&&(l+=`user_${e.userId}_`),a&&(l+=`${a}_`),{keyCookieName:o,csrfCookieName:i,oneTimeCodeName:l+=s}}},30802:(e,r,t)=>{t.d(r,{A:()=>u});var n=t(72583),s=t.n(n),a=t(92652),o=t(48786),i=t(37275),l=t(68829),c=t(7971);async function u({dbContext:e,paradigm:r,dbFullName:t,tableName:n,data:u,tableSchema:d,identifierColumnName:_,identifierValue:f,encryptionKey:p,encryptionSalt:S,useLocal:h}){if(!u||!Object.keys(u).length)return null;let g=!!h||!e?.match(/dsql.user/i)&&(!t||!!t.match(/^datasquirel$/)),m=h?c.A:g?o.A:i.default,E=Object.keys(u),y=[],A=[];for(let e=0;ee.fieldName===r):null,o=n&&n[0]?n[0]:null;if(null==t||void 0==t)continue;let i=/<[^>]+>/g;(o?.richText||String(t).match(i))&&(t=s()(t,a.A)),o?.encrypted&&(t=(0,l.default)({data:t,encryptionKey:p,encryptionSalt:S})),"object"==typeof t&&(t=JSON.stringify(t)),o?.pattern&&!new RegExp(o.pattern,o.patternFlags||"").test(t)&&(console.log("DSQL: Pattern not matched =>",t),t=""),"string"==typeof t&&t.match(/^null$/i)&&(t={toSqlString:function(){return"NULL"}}),"string"!=typeof t||t.match(/./i)||(t={toSqlString:function(){return"NULL"}}),y.push(`\`${r}\`=?`),"number"==typeof t?A.push(String(t)):A.push(t)}catch(e){console.log("DSQL: Error in parsing data keys in update function =>",e.message);continue}y.push(`date_updated='${Date()}'`),y.push(`date_updated_code='${Date.now()}'`);let D=`UPDATE \`${t}\`.\`${n}\` SET ${y.join(",")} WHERE \`${_}\`=?`;return A.push(f),g?await m(D,A):await m({paradigm:r,queryString:D,queryValues:A})}},92652:(e,r,t)=>{t.d(r,{A:()=>n});let n={allowedTags:["b","i","em","strong","a","p","span","ul","ol","li","h1","h2","h3","h4","h5","h6","img","div","button","pre","code","br"],allowedAttributes:{a:["href"],img:["src","alt","width","height","class","style"],"*":["style","class"]}}},68829:(e,r,t)=>{t.r(r),t.d(r,{default:()=>a});var n=t(55511),s=t(79428);function a({data:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encryption string is invalid"),e;let a=r||process.env.DSQL_ENCRYPTION_PASSWORD,o=t||process.env.DSQL_ENCRYPTION_SALT,i=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!a?.match(/.{8,}/))return console.log("Encryption key is invalid"),e;if(!o?.match(/.{8,}/))return console.log("Encryption salt is invalid"),e;let l=(0,n.scryptSync)(a,o,i),c=s.Buffer.alloc(16,0),u=(0,n.createCipheriv)("aes-192-cbc",l,c);try{let r=u.update(e,"utf8","hex");return r+=u.final("hex")}catch(r){return console.log("Error in encrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>n});async function n(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},37275:(e,r,t)=>{async function n(e,r,t){try{if("string"==typeof r){let n=await e.query(s(r),t);return JSON.parse(JSON.stringify(n))}if("object"!=typeof r)return null;{let t=[];for(let n=0;na})},7971:(e,r,t)=>{t.d(r,{A:()=>i});var n=t(9973),s=t.n(n),a=t(29021),o=t.n(a);async function i(...e){let r=s()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!o().existsSync(r)){console.log(`${r} does not exist`);return}return{ca:o().readFileSync(`${e}/ca-cert.pem`),rejectUnauthorized:!1}}()},onConnect:()=>{console.log("Connection Successful!")},onConnectError:e=>{console.log("Connection Error",e.message)},onError:e=>{console.log("Client Error",e.message)}});console.log("Querying ...");try{let t=await r.query(...e);return await r.end(),JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e.message),{success:!1,error:e.message}}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../../webpack-api-runtime.js");r.C(e);var t=e=>r(r.s=e),n=r.X(0,[2282],()=>t(63177));module.exports=n})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=4065,e.ids=[4065],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},72583:e=>{e.exports=require("sanitize-html")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},63177:(e,r,t)=>{t.r(r),t.d(r,{config:()=>E,default:()=>m,routeModule:()=>y});var n={};t.r(n),t.d(n,{default:()=>g});var s=t(89947),o=t(2706),a=t(96762),i=t(76856),c=t(29021),l=t.n(c),u=t(33873),d=t.n(u);let _=async({userId:e,dbSchema:r,targetDb:t})=>(await (0,i.A)({userId:e,targetDatabase:t}),`User ${e} Db Schema Updated`),f=async({userId:e,dbSchema:r,database:t})=>{let n=d().resolve(String(process.env.DSQL_USER_DB_SCHEMA_PATH),`user-${e}`,"main.json"),s=JSON.parse(l().readFileSync(n,"utf-8")),o=s.findIndex(e=>e.dbFullName==t.db_full_name);if(o<0)throw Error("Target Database not found in user schema data");let a={...s[o]};return s[o]=r,s[o].dbName=a.dbName,s[o].dbFullName=a.dbFullName,s[o].dbSlug=a.dbSlug,s[o].dbImage=a.dbImage,await _({dbSchema:s,userId:e,targetDb:t.db_full_name})};var p=t(67619),h=t(69842),S=t(30802);async function g(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await (0,h.A)(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let{url:n,key:s,database:o,dbSchema:a,type:i,remoteDbs:c,targetDb:l}=e.body;try{if(!l?.tables)throw Error("No Target Database");await (0,S.A)({tableName:"user_databases",data:{remote_connected:1,remote_connection_host:n,remote_connection_key:s,remote_connection_type:i,remote_db_full_name:l.dbFullName},identifierColumnName:"db_full_name",identifierValue:o.db_full_name}),await f({dbSchema:l,database:o,userId:t.id}),r.json({success:!0})}catch(e){console.log("Connect Handshake Error, =>",e.message),(0,p.A)({component:"/api/connect/verify/main-catch-error",message:e.message,user:t}),r.json({success:!1,msg:"Operation Failed!"})}}let m=(0,a.M)(n,"default"),E=(0,a.M)(n,"config"),y=new s.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/connect/handshake",pathname:"/api/connect/handshake",bundlePath:"",filename:""},userland:n})},69842:(e,r,t)=>{t.d(r,{A:()=>c});var n=t(48786),s=t(95969),o=t(29021),a=t.n(o),i=t(89159);async function c(e,r,t){try{let{keyCookieName:o,csrfCookieName:c}=(0,i.A)();if(!e.cookies?.[o]?.match(/./))throw Error("Request Cookies not Found!");let l=(0,s.A)({encryptedString:e.cookies[o]});if(!l)throw Error("Couldn't decrypt auth cookie!");let u=JSON.parse(l);if(!u.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(u.csrf_k)))throw console.log("req.headers",e.headers),console.log("userObject",u),Error("Deep Auth Failed. `csrf` key not found in request headers!");let d=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!d)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!a().existsSync(`${d}/${u.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==u.verification_status&&!t){let e=await (0,n.A)(`SELECT verification_status FROM users WHERE id='${u.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(u?.date&&Date.now()-u.date>6048e5)throw Error("Key expired!");return u}catch(e){return console.log(`userAuth Error: ${e.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>n});function n(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",n=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",s=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",o=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),a=r;e?.userId&&(a+=`user_${e.userId}_`),o&&(a+=`${o}_`),a+=t;let i=r;e?.userId&&(i+=`user_${e.userId}_`),o&&(i+=`${o}_`),i+=n;let c=r;return e?.userId&&(c+=`user_${e.userId}_`),o&&(c+=`${o}_`),{keyCookieName:a,csrfCookieName:i,oneTimeCodeName:c+=s}}},30802:(e,r,t)=>{t.d(r,{A:()=>u});var n=t(72583),s=t.n(n),o=t(92652),a=t(48786),i=t(37275),c=t(68829),l=t(7971);async function u({dbContext:e,paradigm:r,dbFullName:t,tableName:n,data:u,tableSchema:d,identifierColumnName:_,identifierValue:f,encryptionKey:p,encryptionSalt:h,useLocal:S}){if(!u||!Object.keys(u).length)return null;let g=!!S||!e?.match(/dsql.user/i)&&(!t||!!t.match(/^datasquirel$/)),m=S?l.A:g?a.A:i.A,E=Object.keys(u),y=[],A=[];for(let e=0;ee.fieldName===r):null,a=n&&n[0]?n[0]:null;if(null==t||void 0==t)continue;let i=/<[^>]+>/g;(a?.richText||String(t).match(i))&&(t=s()(t,o.A)),a?.encrypted&&(t=(0,c.A)({data:t,encryptionKey:p,encryptionSalt:h})),"object"==typeof t&&(t=JSON.stringify(t)),a?.pattern&&!new RegExp(a.pattern,a.patternFlags||"").test(t)&&(console.log("DSQL: Pattern not matched =>",t),t=""),"string"==typeof t&&t.match(/^null$/i)&&(t={toSqlString:function(){return"NULL"}}),"string"!=typeof t||t.match(/./i)||(t={toSqlString:function(){return"NULL"}}),y.push(`\`${r}\`=?`),"number"==typeof t?A.push(String(t)):A.push(t)}catch(e){console.log("DSQL: Error in parsing data keys in update function =>",e.message);continue}y.push(`date_updated='${Date()}'`),y.push(`date_updated_code='${Date.now()}'`);let b=`UPDATE \`${t}\`.\`${n}\` SET ${y.join(",")} WHERE \`${_}\`=?`;return A.push(f),g?await m(b,A):await m({paradigm:r,queryString:b,queryValues:A})}},92652:(e,r,t)=>{t.d(r,{A:()=>n});let n={allowedTags:["b","i","em","strong","a","p","span","ul","ol","li","h1","h2","h3","h4","h5","h6","img","div","button","pre","code","br"],allowedAttributes:{a:["href"],img:["src","alt","width","height","class","style"],"*":["style","class"]}}},68829:(e,r,t)=>{t.d(r,{A:()=>o});var n=t(55511),s=t(79428);function o({data:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encryption string is invalid"),e;let o=r||process.env.DSQL_ENCRYPTION_PASSWORD,a=t||process.env.DSQL_ENCRYPTION_SALT,i=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!o?.match(/.{8,}/))return console.log("Encryption key is invalid"),e;if(!a?.match(/.{8,}/))return console.log("Encryption salt is invalid"),e;let c=(0,n.scryptSync)(o,a,i),l=s.Buffer.alloc(16,0),u=(0,n.createCipheriv)("aes-192-cbc",c,l);try{let r=u.update(e,"utf8","hex");return r+=u.final("hex")}catch(r){return console.log("Error in encrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>n});async function n(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},37275:(e,r,t)=>{async function n(e,r,t){try{if("string"==typeof r){let n=await e.query(s(r),t);return JSON.parse(JSON.stringify(n))}if("object"!=typeof r)return null;{let t=[];for(let n=0;no})},7971:(e,r,t)=>{t.d(r,{A:()=>i});var n=t(9973),s=t.n(n),o=t(29021),a=t.n(o);async function i(...e){let r=s()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!a().existsSync(r)){console.log(`${r} does not exist`);return}return{ca:a().readFileSync(`${e}/ca-cert.pem`),rejectUnauthorized:!1}}()},onConnect:()=>{console.log("Connection Successful!")},onConnectError:e=>{console.log("Connection Error",e.message)},onError:e=>{console.log("Client Error",e.message)}});console.log("Querying ...");try{let t=await r.query(...e);return await r.end(),JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e.message),{success:!1,error:e.message}}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../../webpack-api-runtime.js");r.C(e);var t=e=>r(r.s=e),n=r.X(0,[2282],()=>t(63177));module.exports=n})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/connect/verify.js b/dsql-app/.local_dist/server/pages/api/connect/verify.js index c08ee06..f21e6c7 100644 --- a/dsql-app/.local_dist/server/pages/api/connect/verify.js +++ b/dsql-app/.local_dist/server/pages/api/connect/verify.js @@ -1,4 +1,4 @@ -"use strict";(()=>{var e={};e.id=3033,e.ids=[3033],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},55591:e=>{e.exports=require("https")},79551:e=>{e.exports=require("url")},28354:e=>{e.exports=require("util")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},77666:(e,r,t)=>{t.r(r),t.d(r,{config:()=>f,default:()=>p,routeModule:()=>_});var o={};t.r(o),t.d(o,{default:()=>d});var n=t(89947),s=t(2706),i=t(96762),a=t(61556),c=t(67619),u=t(69842);t(29021),t(28354);let{URL:l}=t(79551);async function d(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await (0,u.A)(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let{url:o,key:n,database:s,dbSchema:i,type:d}=e.body;try{let{hostname:e,port:t,protocol:s}=new l(o),i=await (0,a.A)({scheme:s,headers:{Authorization:n},hostname:e,port:t,path:"/api/connect",method:"POST",body:{url:o,key:n}}),c=JSON.parse(i);if(!c?.success)throw Error(c.msg||"Remote request failed");r.json({success:!0,payload:c.payload})}catch(e){console.log("Connect Verification Initialtor Error, =>",e.message),(0,c.default)({component:"/api/connect/verify/main-catch-error",message:e.message,user:t}),r.json({success:!1,msg:"Operation Failed!"})}}let p=(0,i.M)(o,"default"),f=(0,i.M)(o,"config"),_=new n.PagesAPIRouteModule({definition:{kind:s.A.PAGES_API,page:"/api/connect/verify",pathname:"/api/connect/verify",bundlePath:"",filename:""},userland:o})},69842:(e,r,t)=>{t.d(r,{A:()=>c});var o=t(48786),n=t(95969),s=t(29021),i=t.n(s),a=t(89159);async function c(e,r,t){try{let{keyCookieName:s,csrfCookieName:c}=(0,a.A)();if(!e.cookies?.[s]?.match(/./))throw Error("Request Cookies not Found!");let u=(0,n.A)({encryptedString:e.cookies[s]});if(!u)throw Error("Couldn't decrypt auth cookie!");let l=JSON.parse(u);if(!l.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(l.csrf_k)))throw Error("Deep Auth Failed. `csrf` key not found in request headers!");let d=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!d)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!i().existsSync(`${d}/${l.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==l.verification_status&&!t){let e=await (0,o.A)(`SELECT verification_status FROM users WHERE id='${l.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(l?.date&&Date.now()-l.date>6048e5)throw Error("Key expired!");return l}catch(e){return console.log(`userAuth Error: ${e.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>o});function o(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",o=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",n=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",s=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),i=r;e?.userId&&(i+=`user_${e.userId}_`),s&&(i+=`${s}_`),i+=t;let a=r;e?.userId&&(a+=`user_${e.userId}_`),s&&(a+=`${s}_`),a+=o;let c=r;return e?.userId&&(c+=`user_${e.userId}_`),s&&(c+=`${s}_`),{keyCookieName:i,csrfCookieName:a,oneTimeCodeName:c+=n}}},61556:(e,r,t)=>{t.d(r,{A:()=>c});var o=t(55591),n=t.n(o),s=t(81630),i=t.n(s),a=t(79551);function c({url:e,method:r,hostname:t,path:o,headers:s,body:c,port:u,scheme:l}){let d=c?JSON.stringify(c):null,p=e?new a.URL(e):null,f={method:r||"GET",hostname:p?p.hostname:t,port:l?.match(/https/i)?443:p?p.protocol?.match(/https/i)?443:p.port:u?Number(u):80,headers:{}};return o&&(f.path=o),s&&(f.headers=s),c&&(f.headers["Content-Type"]="application/json",f.headers["Content-Length"]=d?Buffer.from(d).length:void 0),new Promise((e,r)=>{let t=(l?.match(/https/i)?n():p?.protocol?.match(/https/i)?n():i()).request(f,t=>{var o="";t.on("data",function(e){o+=e}),t.on("end",function(){e(o)}),t.on("error",e=>{console.log("HTTP response error =>",e.message),r(`HTTP response error =>, ${e.message}`)}),t.on("close",()=>{console.log("HTTP(S) Response Closed Successfully")})});c&&t.write(d),t.on("error",e=>{console.log("HTTPS request ERROR =>",e.message),r(`HTTP request error =>, ${e.message}`)}),t.end()})}},67619:(e,r,t)=>{t.r(r),t.d(r,{default:()=>s});var o=t(29021),n=t.n(o);async function s({user:e,message:r,component:t,noMail:o,req:s}){let i=new Date,a=(()=>{if(!s)return null;try{let e=s.headers["x-forwarded-for"],r=s.headers["x-real-ip"],t=s.headers["cf-connecting-ip"],o=Array.isArray(e)?e[0]:e?.split(",")[0],n=t||o||r||s.socket.remoteAddress;if(!n)return null;return String(n)}catch(e){return null}})();try{let o=`🚀 SERVER ERROR =========================== +"use strict";(()=>{var e={};e.id=3033,e.ids=[3033],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},55591:e=>{e.exports=require("https")},79551:e=>{e.exports=require("url")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},77666:(e,r,t)=>{t.r(r),t.d(r,{config:()=>f,default:()=>p,routeModule:()=>_});var o={};t.r(o),t.d(o,{default:()=>d});var n=t(89947),s=t(2706),i=t(96762),a=t(79551),c=t(64166),l=t(67619),u=t(69842);async function d(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await (0,u.A)(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let{url:o,key:n,database:s,dbSchema:i,type:d}=e.body;try{let{hostname:e,port:t,protocol:s}=new a.URL(o),i=await (0,c.A)({scheme:s,headers:{Authorization:n},hostname:e,port:t,path:"/api/connect",method:"POST",body:{url:o,key:n}}),l=JSON.parse(i);if(!l?.success)throw Error(l.msg||"Remote request failed");r.json({success:!0,payload:l.payload})}catch(e){console.log("Connect Verification Initialtor Error, =>",e.message),(0,l.A)({component:"/api/connect/verify/main-catch-error",message:e.message,user:t}),r.json({success:!1,msg:"Operation Failed!"})}}let p=(0,i.M)(o,"default"),f=(0,i.M)(o,"config"),_=new n.PagesAPIRouteModule({definition:{kind:s.A.PAGES_API,page:"/api/connect/verify",pathname:"/api/connect/verify",bundlePath:"",filename:""},userland:o})},69842:(e,r,t)=>{t.d(r,{A:()=>c});var o=t(48786),n=t(95969),s=t(29021),i=t.n(s),a=t(89159);async function c(e,r,t){try{let{keyCookieName:s,csrfCookieName:c}=(0,a.A)();if(!e.cookies?.[s]?.match(/./))throw Error("Request Cookies not Found!");let l=(0,n.A)({encryptedString:e.cookies[s]});if(!l)throw Error("Couldn't decrypt auth cookie!");let u=JSON.parse(l);if(!u.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(u.csrf_k)))throw console.log("req.headers",e.headers),console.log("userObject",u),Error("Deep Auth Failed. `csrf` key not found in request headers!");let d=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!d)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!i().existsSync(`${d}/${u.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==u.verification_status&&!t){let e=await (0,o.A)(`SELECT verification_status FROM users WHERE id='${u.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(u?.date&&Date.now()-u.date>6048e5)throw Error("Key expired!");return u}catch(e){return console.log(`userAuth Error: ${e.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>o});function o(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",o=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",n=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",s=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),i=r;e?.userId&&(i+=`user_${e.userId}_`),s&&(i+=`${s}_`),i+=t;let a=r;e?.userId&&(a+=`user_${e.userId}_`),s&&(a+=`${s}_`),a+=o;let c=r;return e?.userId&&(c+=`user_${e.userId}_`),s&&(c+=`${s}_`),{keyCookieName:i,csrfCookieName:a,oneTimeCodeName:c+=n}}},64166:(e,r,t)=>{t.d(r,{A:()=>c});var o=t(55591),n=t.n(o);let s=require("http");var i=t.n(s),a=t(79551);function c({url:e,method:r,hostname:t,path:o,headers:s,body:c,port:l,scheme:u}){let d=c?JSON.stringify(c):null,p=e?new a.URL(e):null,f={method:r||"GET",hostname:p?p.hostname:t,port:u?.match(/https/i)?443:p?p.protocol?.match(/https/i)?443:p.port:l?Number(l):80,headers:{}};return o&&(f.path=o),s&&(f.headers=s),c&&(f.headers["Content-Type"]="application/json",f.headers["Content-Length"]=d?Buffer.from(d).length:void 0),new Promise((e,r)=>{let t=(u?.match(/https/i)?n():p?.protocol?.match(/https/i)?n():i()).request(f,t=>{var o="";t.on("data",function(e){o+=e}),t.on("end",function(){e(o)}),t.on("error",e=>{console.log("HTTP response error =>",e.message),r(`HTTP response error =>, ${e.message}`)}),t.on("close",()=>{console.log("HTTP(S) Response Closed Successfully")})});c&&t.write(d),t.on("error",e=>{console.log("HTTPS request ERROR =>",e.message),r(`HTTP request error =>, ${e.message}`)}),t.end()})}},67619:(e,r,t)=>{t.d(r,{A:()=>s});var o=t(29021),n=t.n(o);async function s({user:e,message:r,component:t,noMail:o,req:s}){let i=new Date,a=(()=>{if(!s)return null;try{let e=s.headers["x-forwarded-for"],r=s.headers["x-real-ip"],t=s.headers["cf-connecting-ip"],o=Array.isArray(e)?e[0]:e?.split(",")[0],n=t||o||r||s.socket.remoteAddress;if(!n)return null;return String(n)}catch(e){return null}})();try{let o=`🚀 SERVER ERROR =========================== Error Message: ${r} Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(o+=` User Id: ${e?.id} @@ -13,4 +13,4 @@ Date: ${i.toDateString()} -${c}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},95969:(e,r,t)=>{t.d(r,{A:()=>s});var o=t(55511),n=t(79428);function s({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let s=r||process.env.DSQL_ENCRYPTION_PASSWORD,i=t||process.env.DSQL_ENCRYPTION_SALT,a=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!s?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let c=(0,o.scryptSync)(s,i,a),u=n.Buffer.alloc(16,0),l=(0,o.createDecipheriv)("aes-192-cbc",c,u);try{let r=l.update(e,"hex","utf8");return r+=l.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>o});async function o(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../../webpack-api-runtime.js");r.C(e);var t=r(r.s=77666);module.exports=t})(); \ No newline at end of file +${c}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},95969:(e,r,t)=>{t.d(r,{A:()=>s});var o=t(55511),n=t(79428);function s({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let s=r||process.env.DSQL_ENCRYPTION_PASSWORD,i=t||process.env.DSQL_ENCRYPTION_SALT,a=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!s?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let c=(0,o.scryptSync)(s,i,a),l=n.Buffer.alloc(16,0),u=(0,o.createDecipheriv)("aes-192-cbc",c,l);try{let r=u.update(e,"hex","utf8");return r+=u.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>o});async function o(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../../webpack-api-runtime.js");r.C(e);var t=r(r.s=77666);module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/contact.js b/dsql-app/.local_dist/server/pages/api/contact.js index abd2eac..b16b04c 100644 --- a/dsql-app/.local_dist/server/pages/api/contact.js +++ b/dsql-app/.local_dist/server/pages/api/contact.js @@ -1,7 +1,7 @@ -"use strict";(()=>{var e={};e.id=3409,e.ids=[3409],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},21572:e=>{e.exports=require("nodemailer")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},63133:(e,r,t)=>{t.r(r),t.d(r,{config:()=>d,default:()=>u,routeModule:()=>m});var n={};t.r(n),t.d(n,{default:()=>c});var s=t(89947),a=t(2706),o=t(96762),i=t(96052),l=t(67619);async function c(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let{name:t,email:n,message:s}=e.body;if(!n.match(/.*@.*\..*/))return r.json({success:!1,msg:"Invalid Email"});if(!t.match(/./)||!s.match(/./))return r.json({success:!1,msg:"Please Fill in all Fields"});try{(await (0,i.default)({to:process.env.DSQL_CONTACT_EMAIL,html:` +"use strict";(()=>{var e={};e.id=3409,e.ids=[3409],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},21572:e=>{e.exports=require("nodemailer")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},63133:(e,r,t)=>{t.r(r),t.d(r,{config:()=>d,default:()=>u,routeModule:()=>m});var n={};t.r(n),t.d(n,{default:()=>c});var s=t(89947),a=t(2706),o=t(96762),i=t(96052),l=t(67619);async function c(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let{name:t,email:n,message:s}=e.body;if(!n.match(/.*@.*\..*/))return r.json({success:!1,msg:"Invalid Email"});if(!t.match(/./)||!s.match(/./))return r.json({success:!1,msg:"Please Fill in all Fields"});try{(await (0,i.A)({to:process.env.DSQL_CONTACT_EMAIL,html:`

Message From ${t}, ${n}

${s}

- `,subject:"Contact Form Submission",text:`Message from ${t}, ${n}`})).messageId?r.json({success:!0}):r.json({success:!1,msg:"Message Sending Failed"})}catch(e){(0,l.default)({component:"/api/contact/main-catch-error",message:e.message}),r.json({success:!1,msg:"Database Files could not be written!"})}}let u=(0,o.M)(n,"default"),d=(0,o.M)(n,"config"),m=new s.PagesAPIRouteModule({definition:{kind:a.A.PAGES_API,page:"/api/contact",pathname:"/api/contact",bundlePath:"",filename:""},userland:n})},96052:(e,r,t)=>{t.r(r),t.d(r,{default:()=>i});var n=t(29021),s=t.n(n),a=t(21572);let o=t.n(a)().createTransport({host:process.env.DSQL_MAIL_HOST,port:465,secure:!0,auth:{user:process.env.DSQL_MAIL_EMAIL,pass:process.env.DSQL_MAIL_PASSWORD}});async function i({to:e,subject:r,text:t,html:n,alias:a,senderName:i}){let l;if(!process.env.DSQL_MAIL_HOST||!process.env.DSQL_MAIL_EMAIL||!process.env.DSQL_MAIL_PASSWORD)return null;let c=(a?.match(/support/i),process.env.DSQL_MAIL_EMAIL);if(!s().existsSync("./email/index.html"))return;let u=s().readFileSync("./email/index.html","utf8").replace(/{{email_body}}/,n||"").replace(/{{issue_date}}/,Date().substring(0,24));try{let n={};n.from=`"${i||"Datasquirel"}" <${c}>`,n.sender=c,a&&(n.replyTo=c),n.to=e,n.subject=r,n.text=t,n.html=u,l=await o.sendMail(n)}catch(e){console.log("ERROR in handleNodemailer Function =>",e.message)}return l}},67619:(e,r,t)=>{t.r(r),t.d(r,{default:()=>a});var n=t(29021),s=t.n(n);async function a({user:e,message:r,component:t,noMail:n,req:a}){let o=new Date,i=(()=>{if(!a)return null;try{let e=a.headers["x-forwarded-for"],r=a.headers["x-real-ip"],t=a.headers["cf-connecting-ip"],n=Array.isArray(e)?e[0]:e?.split(",")[0],s=t||n||r||a.socket.remoteAddress;if(!s)return null;return String(s)}catch(e){return null}})();try{let n=`🚀 SERVER ERROR =========================== + `,subject:"Contact Form Submission",text:`Message from ${t}, ${n}`})).messageId?r.json({success:!0}):r.json({success:!1,msg:"Message Sending Failed"})}catch(e){(0,l.A)({component:"/api/contact/main-catch-error",message:e.message}),r.json({success:!1,msg:"Database Files could not be written!"})}}let u=(0,o.M)(n,"default"),d=(0,o.M)(n,"config"),m=new s.PagesAPIRouteModule({definition:{kind:a.A.PAGES_API,page:"/api/contact",pathname:"/api/contact",bundlePath:"",filename:""},userland:n})},96052:(e,r,t)=>{t.d(r,{A:()=>i});var n=t(29021),s=t.n(n),a=t(21572);let o=t.n(a)().createTransport({host:process.env.DSQL_MAIL_HOST,port:465,secure:!0,auth:{user:process.env.DSQL_MAIL_EMAIL,pass:process.env.DSQL_MAIL_PASSWORD}});async function i({to:e,subject:r,text:t,html:n,alias:a,senderName:i}){let l;if(!process.env.DSQL_MAIL_HOST||!process.env.DSQL_MAIL_EMAIL||!process.env.DSQL_MAIL_PASSWORD)return null;let c=(a?.match(/support/i),process.env.DSQL_MAIL_EMAIL);if(!s().existsSync("./email/index.html"))return;let u=s().readFileSync("./email/index.html","utf8").replace(/{{email_body}}/,n||"").replace(/{{issue_date}}/,Date().substring(0,24));try{let n={};n.from=`"${i||"Datasquirel"}" <${c}>`,n.sender=c,a&&(n.replyTo=c),n.to=e,n.subject=r,n.text=t,n.html=u,l=await o.sendMail(n)}catch(e){console.log("ERROR in handleNodemailer Function =>",e.message)}return l}},67619:(e,r,t)=>{t.d(r,{A:()=>a});var n=t(29021),s=t.n(n);async function a({user:e,message:r,component:t,noMail:n,req:a}){let o=new Date,i=(()=>{if(!a)return null;try{let e=a.headers["x-forwarded-for"],r=a.headers["x-real-ip"],t=a.headers["cf-connecting-ip"],n=Array.isArray(e)?e[0]:e?.split(",")[0],s=t||n||r||a.socket.remoteAddress;if(!s)return null;return String(s)}catch(e){return null}})();try{let n=`🚀 SERVER ERROR =========================== Error Message: ${r} Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(n+=` User Id: ${e?.id} diff --git a/dsql-app/.local_dist/server/pages/api/createUserDatabase.js b/dsql-app/.local_dist/server/pages/api/createUserDatabase.js index 9dfef59..aac8ffc 100644 --- a/dsql-app/.local_dist/server/pages/api/createUserDatabase.js +++ b/dsql-app/.local_dist/server/pages/api/createUserDatabase.js @@ -1 +1 @@ -"use strict";(()=>{var e={};e.id=8893,e.ids=[8893],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},72583:e=>{e.exports=require("sanitize-html")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},79646:e=>{e.exports=require("child_process")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},8325:(e,r,a)=>{a.r(r),a.d(r,{config:()=>p,default:()=>m,routeModule:()=>S});var s={};a.r(s),a.d(s,{default:()=>f});var t=a(89947),i=a(2706),o=a(96762),n=a(48786),u=a(67619),l=a(69842),d=a(98e3),c=a(14160),_=a(76856);let E=a(29021);a(33873);let{execSync:b}=a(79646);async function f(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let a=await (0,l.A)(e,r,!0);if(!a)return r.json({success:!1,msg:"Unauthorized"});let s=await (0,n.A)("SELECT * FROM users WHERE id = ?",[a.id]),t=s?.[0],{db_name:i,db_slug:o,db_description:b,db_image:f,duplicate:m,keepUpdated:p,keepDataUpdated:S}=e.body;if(o.match(/[^a-zA-Z0-9-_]/))return r.json({success:!1,msg:"Input Error"});let A=`datasquirel_user_${a.id}_${o}`,D=await (0,c.A)(`CREATE DATABASE IF NOT EXISTS \`${A}\` CHARACTER SET utf8mb4 COLLATE utf8mb4_bin`);if(!D?.affectedRows)return r.json({success:!1,msg:"Database Could Not be created!"});let h={user_id:a.id,db_name:i,db_slug:o,db_full_name:A,db_description:b,db_image:f};m&&p&&(h.active_clone="1",h.active_clone_parent_db=m),m&&S&&(h.active_data="1");let N=await (0,d.A)({dbFullName:"datasquirel",tableName:"user_databases",data:h});if(N.insertId)try{let e=`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${a.id}/main.json`,s=JSON.parse(E.readFileSync(e,"utf8")),n={dbName:i,dbSlug:o,dbFullName:A,dbDescription:b,dbImage:f,tables:[]};if(m)try{let e=s.filter(e=>e.dbFullName===m)[0];n.tables=e.tables,p&&(n.childDatabase=!0,n.childDatabaseDbFullName=m,S&&(n.updateData=!0),e.childrenDatabases?e.childrenDatabases.push({dbFullName:A}):e.childrenDatabases=[{dbFullName:A}]);for(let e=0;e{a.d(r,{A:()=>u});var s=a(48786),t=a(95969),i=a(29021),o=a.n(i),n=a(89159);async function u(e,r,a){try{let{keyCookieName:i,csrfCookieName:u}=(0,n.A)();if(!e.cookies?.[i]?.match(/./))throw Error("Request Cookies not Found!");let l=(0,t.A)({encryptedString:e.cookies[i]});if(!l)throw Error("Couldn't decrypt auth cookie!");let d=JSON.parse(l);if(!d.csrf_k)throw Error("No `csrf_k` present in user Object!");if(a&&!Object.keys(e.headers).find(e=>e.includes(d.csrf_k)))throw Error("Deep Auth Failed. `csrf` key not found in request headers!");let c=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!c)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(a&&!o().existsSync(`${c}/${d.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==d.verification_status&&!a){let e=await (0,s.A)(`SELECT verification_status FROM users WHERE id='${d.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(d?.date&&Date.now()-d.date>6048e5)throw Error("Key expired!");return d}catch(e){return console.log(`userAuth Error: ${e.message}`),null}}},89159:(e,r,a)=>{a.d(r,{A:()=>s});function s(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",a=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",t=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",i=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),o=r;e?.userId&&(o+=`user_${e.userId}_`),i&&(o+=`${i}_`),o+=a;let n=r;e?.userId&&(n+=`user_${e.userId}_`),i&&(n+=`${i}_`),n+=s;let u=r;return e?.userId&&(u+=`user_${e.userId}_`),i&&(u+=`${i}_`),{keyCookieName:o,csrfCookieName:n,oneTimeCodeName:u+=t}}},14160:(e,r,a)=>{a.d(r,{A:()=>n});var s=a(29021),t=a.n(s),i=a(67619),o=a(47546);async function n(e){let r;"production".match(/dev/)&&t().appendFileSync("./.tmp/sqlQuery.sql",e+"\n"+Date()+"\n\n\n","utf8");try{r=await (0,o.A)(e)}catch(e){(0,i.default)({component:"noDatabaseDbHandler",message:e.message}),console.log("ERROR in noDatabaseDbHandler =>",e.message)}return r||null}},47546:(e,r,a)=>{a.d(r,{A:()=>s});function s(...e){let r=global.DSQL_DB_CONN;try{return new Promise((a,s)=>{r.query(...e).then(e=>{r.end(),a(JSON.parse(JSON.stringify(e)))}).catch(e=>{r.end(),a({error:e.message,sql:e.sql})})})}catch(e){return{success:!1,error:e.message}}}}};var r=require("../../webpack-api-runtime.js");r.C(e);var a=e=>r(r.s=e),s=r.X(0,[1251,2282],()=>a(8325));module.exports=s})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=8893,e.ids=[8893],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},72583:e=>{e.exports=require("sanitize-html")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},8325:(e,r,s)=>{s.r(r),s.d(r,{config:()=>p,default:()=>A,routeModule:()=>S});var a={};s.r(a),s.d(a,{default:()=>m});var t=s(89947),i=s(2706),o=s(96762),n=s(29021),u=s.n(n),l=s(48786),d=s(67619),c=s(69842),_=s(98e3),b=s(14160),E=s(76856);async function m(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let s=await (0,c.A)(e,r,!0);if(!s)return r.json({success:!1,msg:"Unauthorized"});let a=await (0,l.A)("SELECT * FROM users WHERE id = ?",[s.id]),t=a?.[0],{db_name:i,db_slug:o,db_description:n,db_image:m,duplicate:A,keepUpdated:p,keepDataUpdated:S}=e.body;if(o.match(/[^a-zA-Z0-9-_]/))return r.json({success:!1,msg:"Input Error"});let f=`datasquirel_user_${s.id}_${o}`,D=await (0,b.A)(`CREATE DATABASE IF NOT EXISTS \`${f}\` CHARACTER SET utf8mb4 COLLATE utf8mb4_bin`);if(!D?.affectedRows)return r.json({success:!1,msg:"Database Could Not be created!"});let h={user_id:s.id,db_name:i,db_slug:o,db_full_name:f,db_description:n,db_image:m};A&&p&&(h.active_clone="1",h.active_clone_parent_db=A),A&&S&&(h.active_data="1");let N=await (0,_.A)({dbFullName:"datasquirel",tableName:"user_databases",data:h});if(N.insertId)try{let e=`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${s.id}/main.json`,a=JSON.parse(u().readFileSync(e,"utf8")),l={dbName:i,dbSlug:o,dbFullName:f,dbDescription:n,dbImage:m,tables:[]};if(A)try{let e=a.filter(e=>e.dbFullName===A)[0];l.tables=e.tables,p&&(l.childDatabase=!0,l.childDatabaseDbFullName=A,S&&(l.updateData=!0),e.childrenDatabases?e.childrenDatabases.push({dbFullName:f}):e.childrenDatabases=[{dbFullName:f}]);for(let e=0;e{s.d(r,{A:()=>u});var a=s(48786),t=s(95969),i=s(29021),o=s.n(i),n=s(89159);async function u(e,r,s){try{let{keyCookieName:i,csrfCookieName:u}=(0,n.A)();if(!e.cookies?.[i]?.match(/./))throw Error("Request Cookies not Found!");let l=(0,t.A)({encryptedString:e.cookies[i]});if(!l)throw Error("Couldn't decrypt auth cookie!");let d=JSON.parse(l);if(!d.csrf_k)throw Error("No `csrf_k` present in user Object!");if(s&&!Object.keys(e.headers).find(e=>e.includes(d.csrf_k)))throw console.log("req.headers",e.headers),console.log("userObject",d),Error("Deep Auth Failed. `csrf` key not found in request headers!");let c=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!c)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(s&&!o().existsSync(`${c}/${d.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==d.verification_status&&!s){let e=await (0,a.A)(`SELECT verification_status FROM users WHERE id='${d.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(d?.date&&Date.now()-d.date>6048e5)throw Error("Key expired!");return d}catch(e){return console.log(`userAuth Error: ${e.message}`),null}}},89159:(e,r,s)=>{s.d(r,{A:()=>a});function a(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",s=process.env.DSQL_COOKIES_KEY_NAME||"key",a=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",t=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",i=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),o=r;e?.userId&&(o+=`user_${e.userId}_`),i&&(o+=`${i}_`),o+=s;let n=r;e?.userId&&(n+=`user_${e.userId}_`),i&&(n+=`${i}_`),n+=a;let u=r;return e?.userId&&(u+=`user_${e.userId}_`),i&&(u+=`${i}_`),{keyCookieName:o,csrfCookieName:n,oneTimeCodeName:u+=t}}},14160:(e,r,s)=>{s.d(r,{A:()=>n});var a=s(29021),t=s.n(a),i=s(67619),o=s(47546);async function n(e){let r;"production".match(/dev/)&&t().appendFileSync("./.tmp/sqlQuery.sql",e+"\n"+Date()+"\n\n\n","utf8");try{r=await (0,o.A)(e)}catch(e){(0,i.A)({component:"noDatabaseDbHandler",message:e.message}),console.log("ERROR in noDatabaseDbHandler =>",e.message)}return r||null}},47546:(e,r,s)=>{s.d(r,{A:()=>a});function a(...e){let r=global.DSQL_DB_CONN;try{return new Promise((s,a)=>{r.query(...e).then(e=>{r.end(),s(JSON.parse(JSON.stringify(e)))}).catch(e=>{r.end(),s({error:e.message,sql:e.sql})})})}catch(e){return{success:!1,error:e.message}}}}};var r=require("../../webpack-api-runtime.js");r.C(e);var s=e=>r(r.s=e),a=r.X(0,[1251,2282],()=>s(8325));module.exports=a})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/deleteApiKey.js b/dsql-app/.local_dist/server/pages/api/deleteApiKey.js index 95ed2ef..5a08913 100644 --- a/dsql-app/.local_dist/server/pages/api/deleteApiKey.js +++ b/dsql-app/.local_dist/server/pages/api/deleteApiKey.js @@ -1,4 +1,4 @@ -"use strict";(()=>{var e={};e.id=7015,e.ids=[7015],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},33336:(e,r,t)=>{t.r(r),t.d(r,{config:()=>S,default:()=>p,routeModule:()=>E});var n={};t.r(n),t.d(n,{default:()=>f});var s=t(89947),o=t(2706),i=t(96762),a=t(95969),l=t(67619),c=t(69842),u=t(61932),d=t(56081);let _=t(29021);async function f(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await (0,c.A)(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let{id:n,key:s,user_id:o}=e.body;try{let e=process.env.DSQL_API_KEYS_PATH;if(!e)throw Error("process.env.DSQL_API_KEYS_PATH variable not found");let o=(0,d.A)({key:String((0,a.A)({encryptedString:s})),user_id:t.id});if(!o?.sign)throw await (0,u.A)({dbFullName:"datasquirel",tableName:"api_keys",identifierColumnName:"id",identifierValue:n}),Error("API KEY is Invalid");try{let r=`${e}/${o?.sign}`;_.unlinkSync(r)}catch(e){console.log("Error Deleting API key",e.message)}await (0,u.A)({dbFullName:"datasquirel",tableName:"api_keys",identifierColumnName:"id",identifierValue:n}),r.json({success:!0})}catch(e){console.log(`ERROR Deleting API Key => ${e.message}`),(0,l.default)({component:"/api/deleteApiKey/main-catch-error",message:e.message,user:t}),r.json({success:!1,msg:"Deletion Failed!"})}}let p=(0,i.M)(n,"default"),S=(0,i.M)(n,"config"),E=new s.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/deleteApiKey",pathname:"/api/deleteApiKey",bundlePath:"",filename:""},userland:n})},69842:(e,r,t)=>{t.d(r,{A:()=>l});var n=t(48786),s=t(95969),o=t(29021),i=t.n(o),a=t(89159);async function l(e,r,t){try{let{keyCookieName:o,csrfCookieName:l}=(0,a.A)();if(!e.cookies?.[o]?.match(/./))throw Error("Request Cookies not Found!");let c=(0,s.A)({encryptedString:e.cookies[o]});if(!c)throw Error("Couldn't decrypt auth cookie!");let u=JSON.parse(c);if(!u.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(u.csrf_k)))throw Error("Deep Auth Failed. `csrf` key not found in request headers!");let d=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!d)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!i().existsSync(`${d}/${u.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==u.verification_status&&!t){let e=await (0,n.A)(`SELECT verification_status FROM users WHERE id='${u.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(u?.date&&Date.now()-u.date>6048e5)throw Error("Key expired!");return u}catch(e){return console.log(`userAuth Error: ${e.message}`),null}}},56081:(e,r,t)=>{t.d(r,{A:()=>i});var n=t(29021),s=t.n(n),o=t(95969);let i=({key:e,database:r,table:t,user_id:n,media:i})=>{if(!e||!n)return null;try{let a=process.env.DSQL_API_KEYS_PATH;if(!a)throw Error("process.env.DSQL_API_KEYS_PATH variable not found");let l=(0,o.A)({encryptedString:e}),c=JSON.parse(l||""),u=s().existsSync(`${a}/${c.sign}`);if(String(c.user_id)!==String(n)||!u)return null;if(!c.target_database||i)return c;if(!r&&c.target_database)return null;let d=c.target_database?.split(",").includes(String(r));if(d&&!c.target_table)return c;if(d&&!t&&c.target_table)return null;if(c.target_table?.split(",").includes(String(t)))return c;return null}catch(e){return console.log(`api-cred ERROR: ${e.message}`),{error:`api-cred ERROR: ${e.message}`}}}},89159:(e,r,t)=>{t.d(r,{A:()=>n});function n(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",n=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",s=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",o=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),i=r;e?.userId&&(i+=`user_${e.userId}_`),o&&(i+=`${o}_`),i+=t;let a=r;e?.userId&&(a+=`user_${e.userId}_`),o&&(a+=`${o}_`),a+=n;let l=r;return e?.userId&&(l+=`user_${e.userId}_`),o&&(l+=`${o}_`),{keyCookieName:i,csrfCookieName:a,oneTimeCodeName:l+=s}}},61932:(e,r,t)=>{t.d(r,{A:()=>i});var n=t(48786),s=t(37275),o=t(7971);async function i({dbContext:e,paradigm:r,dbFullName:t,tableName:i,identifierColumnName:a,identifierValue:l,useLocal:c}){try{let u=!!c||!e?.match(/dsql.user/i)&&(!t||!!t.match(/^datasquirel$/)),d=c?o.A:u?n.A:s.default,_=`DELETE FROM \`${t}\`.\`${i}\` WHERE \`${a}\`=?`;return u?await d(_,[l]):await d({paradigm:r,queryString:_,queryValues:[l]})}catch(e){return null}}},67619:(e,r,t)=>{t.r(r),t.d(r,{default:()=>o});var n=t(29021),s=t.n(n);async function o({user:e,message:r,component:t,noMail:n,req:o}){let i=new Date,a=(()=>{if(!o)return null;try{let e=o.headers["x-forwarded-for"],r=o.headers["x-real-ip"],t=o.headers["cf-connecting-ip"],n=Array.isArray(e)?e[0]:e?.split(",")[0],s=t||n||r||o.socket.remoteAddress;if(!s)return null;return String(s)}catch(e){return null}})();try{let n=`🚀 SERVER ERROR =========================== +"use strict";(()=>{var e={};e.id=7015,e.ids=[7015],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},33336:(e,r,t)=>{t.r(r),t.d(r,{config:()=>g,default:()=>S,routeModule:()=>E});var n={};t.r(n),t.d(n,{default:()=>p});var s=t(89947),o=t(2706),i=t(96762),a=t(29021),l=t.n(a),c=t(95969),u=t(67619),d=t(69842),_=t(61932),f=t(56081);async function p(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await (0,d.A)(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let{id:n,key:s,user_id:o}=e.body;try{let e=process.env.DSQL_API_KEYS_PATH;if(!e)throw Error("process.env.DSQL_API_KEYS_PATH variable not found");let o=(0,f.A)({key:String((0,c.A)({encryptedString:s})),user_id:t.id});if(!o?.sign)throw await (0,_.A)({dbFullName:"datasquirel",tableName:"api_keys",identifierColumnName:"id",identifierValue:n}),Error("API KEY is Invalid");try{let r=`${e}/${o?.sign}`;l().unlinkSync(r)}catch(e){console.log("Error Deleting API key",e.message)}await (0,_.A)({dbFullName:"datasquirel",tableName:"api_keys",identifierColumnName:"id",identifierValue:n}),r.json({success:!0})}catch(e){console.log(`ERROR Deleting API Key => ${e.message}`),(0,u.A)({component:"/api/deleteApiKey/main-catch-error",message:e.message,user:t}),r.json({success:!1,msg:"Deletion Failed!"})}}let S=(0,i.M)(n,"default"),g=(0,i.M)(n,"config"),E=new s.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/deleteApiKey",pathname:"/api/deleteApiKey",bundlePath:"",filename:""},userland:n})},69842:(e,r,t)=>{t.d(r,{A:()=>l});var n=t(48786),s=t(95969),o=t(29021),i=t.n(o),a=t(89159);async function l(e,r,t){try{let{keyCookieName:o,csrfCookieName:l}=(0,a.A)();if(!e.cookies?.[o]?.match(/./))throw Error("Request Cookies not Found!");let c=(0,s.A)({encryptedString:e.cookies[o]});if(!c)throw Error("Couldn't decrypt auth cookie!");let u=JSON.parse(c);if(!u.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(u.csrf_k)))throw console.log("req.headers",e.headers),console.log("userObject",u),Error("Deep Auth Failed. `csrf` key not found in request headers!");let d=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!d)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!i().existsSync(`${d}/${u.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==u.verification_status&&!t){let e=await (0,n.A)(`SELECT verification_status FROM users WHERE id='${u.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(u?.date&&Date.now()-u.date>6048e5)throw Error("Key expired!");return u}catch(e){return console.log(`userAuth Error: ${e.message}`),null}}},56081:(e,r,t)=>{t.d(r,{A:()=>i});var n=t(29021),s=t.n(n),o=t(95969);let i=({key:e,database:r,table:t,user_id:n,media:i})=>{if(!e||!n)return null;try{let a=process.env.DSQL_API_KEYS_PATH;if(!a)throw Error("process.env.DSQL_API_KEYS_PATH variable not found");let l=(0,o.A)({encryptedString:e}),c=JSON.parse(l||""),u=s().existsSync(`${a}/${c.sign}`);if(String(c.user_id)!==String(n)||!u)return null;if(!c.target_database||i)return c;if(!r&&c.target_database)return null;let d=c.target_database?.split(",").includes(String(r));if(d&&!c.target_table)return c;if(d&&!t&&c.target_table)return null;if(c.target_table?.split(",").includes(String(t)))return c;return null}catch(e){return console.log(`api-cred ERROR: ${e.message}`),{error:`api-cred ERROR: ${e.message}`}}}},89159:(e,r,t)=>{t.d(r,{A:()=>n});function n(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",n=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",s=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",o=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),i=r;e?.userId&&(i+=`user_${e.userId}_`),o&&(i+=`${o}_`),i+=t;let a=r;e?.userId&&(a+=`user_${e.userId}_`),o&&(a+=`${o}_`),a+=n;let l=r;return e?.userId&&(l+=`user_${e.userId}_`),o&&(l+=`${o}_`),{keyCookieName:i,csrfCookieName:a,oneTimeCodeName:l+=s}}},61932:(e,r,t)=>{t.d(r,{A:()=>i});var n=t(48786),s=t(37275),o=t(7971);async function i({dbContext:e,paradigm:r,dbFullName:t,tableName:i,identifierColumnName:a,identifierValue:l,useLocal:c}){try{let u=!!c||!e?.match(/dsql.user/i)&&(!t||!!t.match(/^datasquirel$/)),d=c?o.A:u?n.A:s.A,_=`DELETE FROM \`${t}\`.\`${i}\` WHERE \`${a}\`=?`;return u?await d(_,[l]):await d({paradigm:r,queryString:_,queryValues:[l]})}catch(e){return null}}},67619:(e,r,t)=>{t.d(r,{A:()=>o});var n=t(29021),s=t.n(n);async function o({user:e,message:r,component:t,noMail:n,req:o}){let i=new Date,a=(()=>{if(!o)return null;try{let e=o.headers["x-forwarded-for"],r=o.headers["x-real-ip"],t=o.headers["cf-connecting-ip"],n=Array.isArray(e)?e[0]:e?.split(",")[0],s=t||n||r||o.socket.remoteAddress;if(!s)return null;return String(s)}catch(e){return null}})();try{let n=`🚀 SERVER ERROR =========================== Error Message: ${r} Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(n+=` User Id: ${e?.id} @@ -13,4 +13,4 @@ Date: ${i.toDateString()} -${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},95969:(e,r,t)=>{t.d(r,{A:()=>o});var n=t(55511),s=t(79428);function o({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let o=r||process.env.DSQL_ENCRYPTION_PASSWORD,i=t||process.env.DSQL_ENCRYPTION_SALT,a=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!o?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let l=(0,n.scryptSync)(o,i,a),c=s.Buffer.alloc(16,0),u=(0,n.createDecipheriv)("aes-192-cbc",l,c);try{let r=u.update(e,"hex","utf8");return r+=u.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>n});async function n(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},37275:(e,r,t)=>{async function n(e,r,t){try{if("string"==typeof r){let n=await e.query(s(r),t);return JSON.parse(JSON.stringify(n))}if("object"!=typeof r)return null;{let t=[];for(let n=0;no})},7971:(e,r,t)=>{t.d(r,{A:()=>a});var n=t(9973),s=t.n(n),o=t(29021),i=t.n(o);async function a(...e){let r=s()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!i().existsSync(r)){console.log(`${r} does not exist`);return}return{ca:i().readFileSync(`${e}/ca-cert.pem`),rejectUnauthorized:!1}}()},onConnect:()=>{console.log("Connection Successful!")},onConnectError:e=>{console.log("Connection Error",e.message)},onError:e=>{console.log("Client Error",e.message)}});console.log("Querying ...");try{let t=await r.query(...e);return await r.end(),JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e.message),{success:!1,error:e.message}}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=33336);module.exports=t})(); \ No newline at end of file +${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},95969:(e,r,t)=>{t.d(r,{A:()=>o});var n=t(55511),s=t(79428);function o({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let o=r||process.env.DSQL_ENCRYPTION_PASSWORD,i=t||process.env.DSQL_ENCRYPTION_SALT,a=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!o?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let l=(0,n.scryptSync)(o,i,a),c=s.Buffer.alloc(16,0),u=(0,n.createDecipheriv)("aes-192-cbc",l,c);try{let r=u.update(e,"hex","utf8");return r+=u.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>n});async function n(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},37275:(e,r,t)=>{async function n(e,r,t){try{if("string"==typeof r){let n=await e.query(s(r),t);return JSON.parse(JSON.stringify(n))}if("object"!=typeof r)return null;{let t=[];for(let n=0;no})},7971:(e,r,t)=>{t.d(r,{A:()=>a});var n=t(9973),s=t.n(n),o=t(29021),i=t.n(o);async function a(...e){let r=s()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!i().existsSync(r)){console.log(`${r} does not exist`);return}return{ca:i().readFileSync(`${e}/ca-cert.pem`),rejectUnauthorized:!1}}()},onConnect:()=>{console.log("Connection Successful!")},onConnectError:e=>{console.log("Connection Error",e.message)},onError:e=>{console.log("Client Error",e.message)}});console.log("Querying ...");try{let t=await r.query(...e);return await r.end(),JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e.message),{success:!1,error:e.message}}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=33336);module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/deleteDbUser.js b/dsql-app/.local_dist/server/pages/api/deleteDbUser.js index 6b4b38e..1dc09c4 100644 --- a/dsql-app/.local_dist/server/pages/api/deleteDbUser.js +++ b/dsql-app/.local_dist/server/pages/api/deleteDbUser.js @@ -1,4 +1,4 @@ -"use strict";(()=>{var e={};e.id=7081,e.ids=[7081],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},67859:(e,r,t)=>{t.r(r),t.d(r,{config:()=>d,default:()=>u,routeModule:()=>f});var n={};t.r(n),t.d(n,{default:()=>c});var s=t(89947),a=t(2706),o=t(96762),i=t(30944),l=t(69842);async function c(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});if(!await (0,l.A)(e,r,!0))return r.json({success:!1,msg:"Unauthorized"});let{dbFullName:t,userId:n}=e.body;await (0,i.A)({database:t,queryString:`DELETE FROM ${t}.users WHERE id = ?`,queryValuesArray:[n]}),r.json({success:!0,msg:"User Deleted!"})}t(29021);let u=(0,o.M)(n,"default"),d=(0,o.M)(n,"config"),f=new s.PagesAPIRouteModule({definition:{kind:a.A.PAGES_API,page:"/api/deleteDbUser",pathname:"/api/deleteDbUser",bundlePath:"",filename:""},userland:n})},69842:(e,r,t)=>{t.d(r,{A:()=>l});var n=t(48786),s=t(95969),a=t(29021),o=t.n(a),i=t(89159);async function l(e,r,t){try{let{keyCookieName:a,csrfCookieName:l}=(0,i.A)();if(!e.cookies?.[a]?.match(/./))throw Error("Request Cookies not Found!");let c=(0,s.A)({encryptedString:e.cookies[a]});if(!c)throw Error("Couldn't decrypt auth cookie!");let u=JSON.parse(c);if(!u.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(u.csrf_k)))throw Error("Deep Auth Failed. `csrf` key not found in request headers!");let d=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!d)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!o().existsSync(`${d}/${u.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==u.verification_status&&!t){let e=await (0,n.A)(`SELECT verification_status FROM users WHERE id='${u.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(u?.date&&Date.now()-u.date>6048e5)throw Error("Key expired!");return u}catch(e){return console.log(`userAuth Error: ${e.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>n});function n(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",n=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",s=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",a=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),o=r;e?.userId&&(o+=`user_${e.userId}_`),a&&(o+=`${a}_`),o+=t;let i=r;e?.userId&&(i+=`user_${e.userId}_`),a&&(i+=`${a}_`),i+=n;let l=r;return e?.userId&&(l+=`user_${e.userId}_`),a&&(l+=`${a}_`),{keyCookieName:o,csrfCookieName:i,oneTimeCodeName:l+=s}}},43775:(e,r,t)=>{t.d(r,{A:()=>a});var n=t(95969);let s=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/;async function a({unparsedResults:e,tableSchema:r}){let t=[];try{for(let a=0;a",r.message),e}}},67619:(e,r,t)=>{t.r(r),t.d(r,{default:()=>a});var n=t(29021),s=t.n(n);async function a({user:e,message:r,component:t,noMail:n,req:a}){let o=new Date,i=(()=>{if(!a)return null;try{let e=a.headers["x-forwarded-for"],r=a.headers["x-real-ip"],t=a.headers["cf-connecting-ip"],n=Array.isArray(e)?e[0]:e?.split(",")[0],s=t||n||r||a.socket.remoteAddress;if(!s)return null;return String(s)}catch(e){return null}})();try{let n=`🚀 SERVER ERROR =========================== +"use strict";(()=>{var e={};e.id=7081,e.ids=[7081],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},67859:(e,r,t)=>{t.r(r),t.d(r,{config:()=>d,default:()=>u,routeModule:()=>_});var n={};t.r(n),t.d(n,{default:()=>c});var s=t(89947),a=t(2706),o=t(96762),i=t(30944),l=t(69842);async function c(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});if(!await (0,l.A)(e,r,!0))return r.json({success:!1,msg:"Unauthorized"});let{dbFullName:t,userId:n}=e.body;await (0,i.A)({database:t,queryString:`DELETE FROM ${t}.users WHERE id = ?`,queryValuesArray:[n]}),r.json({success:!0,msg:"User Deleted!"})}let u=(0,o.M)(n,"default"),d=(0,o.M)(n,"config"),_=new s.PagesAPIRouteModule({definition:{kind:a.A.PAGES_API,page:"/api/deleteDbUser",pathname:"/api/deleteDbUser",bundlePath:"",filename:""},userland:n})},69842:(e,r,t)=>{t.d(r,{A:()=>l});var n=t(48786),s=t(95969),a=t(29021),o=t.n(a),i=t(89159);async function l(e,r,t){try{let{keyCookieName:a,csrfCookieName:l}=(0,i.A)();if(!e.cookies?.[a]?.match(/./))throw Error("Request Cookies not Found!");let c=(0,s.A)({encryptedString:e.cookies[a]});if(!c)throw Error("Couldn't decrypt auth cookie!");let u=JSON.parse(c);if(!u.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(u.csrf_k)))throw console.log("req.headers",e.headers),console.log("userObject",u),Error("Deep Auth Failed. `csrf` key not found in request headers!");let d=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!d)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!o().existsSync(`${d}/${u.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==u.verification_status&&!t){let e=await (0,n.A)(`SELECT verification_status FROM users WHERE id='${u.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(u?.date&&Date.now()-u.date>6048e5)throw Error("Key expired!");return u}catch(e){return console.log(`userAuth Error: ${e.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>n});function n(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",n=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",s=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",a=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),o=r;e?.userId&&(o+=`user_${e.userId}_`),a&&(o+=`${a}_`),o+=t;let i=r;e?.userId&&(i+=`user_${e.userId}_`),a&&(i+=`${a}_`),i+=n;let l=r;return e?.userId&&(l+=`user_${e.userId}_`),a&&(l+=`${a}_`),{keyCookieName:o,csrfCookieName:i,oneTimeCodeName:l+=s}}},43775:(e,r,t)=>{t.d(r,{A:()=>a});var n=t(95969);let s=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/;async function a({unparsedResults:e,tableSchema:r}){let t=[];try{for(let a=0;a",r.message),e}}},67619:(e,r,t)=>{t.d(r,{A:()=>a});var n=t(29021),s=t.n(n);async function a({user:e,message:r,component:t,noMail:n,req:a}){let o=new Date,i=(()=>{if(!a)return null;try{let e=a.headers["x-forwarded-for"],r=a.headers["x-real-ip"],t=a.headers["cf-connecting-ip"],n=Array.isArray(e)?e[0]:e?.split(",")[0],s=t||n||r||a.socket.remoteAddress;if(!s)return null;return String(s)}catch(e){return null}})();try{let n=`🚀 SERVER ERROR =========================== Error Message: ${r} Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(n+=` User Id: ${e?.id} @@ -13,4 +13,4 @@ Date: ${o.toDateString()} -${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},30944:(e,r,t)=>{t.d(r,{A:()=>l});var n=t(43775),s=t(67619),a=t(48786),o=t(37275),i=t(7971);async function l({queryString:e,queryValuesArray:r,database:t,tableSchema:l,useLocal:c}){let u;let d=!!c||!!t?.match(/^datasquirel$/),f=c?i.A:d?a.A:o.default;try{u=e&&r&&Array.isArray(r)&&r[0]?d?await f(e,r):await f({paradigm:"Full Access",queryString:e,queryValues:r}):d?await f(e):await f({paradigm:"Full Access",queryString:e})}catch(e){console.log(`varDatabaseDbHandler Error: ${e.message}`),(0,s.default)({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(u&&l)try{let e=u;return await (0,n.A)({unparsedResults:e,tableSchema:l})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",t,e),(0,s.default)({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(u)return u;else return null}},95969:(e,r,t)=>{t.d(r,{A:()=>a});var n=t(55511),s=t(79428);function a({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let a=r||process.env.DSQL_ENCRYPTION_PASSWORD,o=t||process.env.DSQL_ENCRYPTION_SALT,i=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!a?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!o?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let l=(0,n.scryptSync)(a,o,i),c=s.Buffer.alloc(16,0),u=(0,n.createDecipheriv)("aes-192-cbc",l,c);try{let r=u.update(e,"hex","utf8");return r+=u.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>n});async function n(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},37275:(e,r,t)=>{async function n(e,r,t){try{if("string"==typeof r){let n=await e.query(s(r),t);return JSON.parse(JSON.stringify(n))}if("object"!=typeof r)return null;{let t=[];for(let n=0;na})},7971:(e,r,t)=>{t.d(r,{A:()=>i});var n=t(9973),s=t.n(n),a=t(29021),o=t.n(a);async function i(...e){let r=s()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!o().existsSync(r)){console.log(`${r} does not exist`);return}return{ca:o().readFileSync(`${e}/ca-cert.pem`),rejectUnauthorized:!1}}()},onConnect:()=>{console.log("Connection Successful!")},onConnectError:e=>{console.log("Connection Error",e.message)},onError:e=>{console.log("Client Error",e.message)}});console.log("Querying ...");try{let t=await r.query(...e);return await r.end(),JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e.message),{success:!1,error:e.message}}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=67859);module.exports=t})(); \ No newline at end of file +${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},30944:(e,r,t)=>{t.d(r,{A:()=>l});var n=t(43775),s=t(67619),a=t(48786),o=t(37275),i=t(7971);async function l({queryString:e,queryValuesArray:r,database:t,tableSchema:l,useLocal:c}){let u;let d=!!c||!!t?.match(/^datasquirel$/),_=c?i.A:d?a.A:o.A;try{u=e&&r&&Array.isArray(r)&&r[0]?d?await _(e,r):await _({paradigm:"Full Access",queryString:e,queryValues:r}):d?await _(e):await _({paradigm:"Full Access",queryString:e})}catch(e){console.log(`varDatabaseDbHandler Error: ${e.message}`),(0,s.A)({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(u&&l)try{let e=u;return await (0,n.A)({unparsedResults:e,tableSchema:l})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",t,e),(0,s.A)({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(u)return u;else return null}},95969:(e,r,t)=>{t.d(r,{A:()=>a});var n=t(55511),s=t(79428);function a({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let a=r||process.env.DSQL_ENCRYPTION_PASSWORD,o=t||process.env.DSQL_ENCRYPTION_SALT,i=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!a?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!o?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let l=(0,n.scryptSync)(a,o,i),c=s.Buffer.alloc(16,0),u=(0,n.createDecipheriv)("aes-192-cbc",l,c);try{let r=u.update(e,"hex","utf8");return r+=u.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>n});async function n(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},37275:(e,r,t)=>{async function n(e,r,t){try{if("string"==typeof r){let n=await e.query(s(r),t);return JSON.parse(JSON.stringify(n))}if("object"!=typeof r)return null;{let t=[];for(let n=0;na})},7971:(e,r,t)=>{t.d(r,{A:()=>i});var n=t(9973),s=t.n(n),a=t(29021),o=t.n(a);async function i(...e){let r=s()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!o().existsSync(r)){console.log(`${r} does not exist`);return}return{ca:o().readFileSync(`${e}/ca-cert.pem`),rejectUnauthorized:!1}}()},onConnect:()=>{console.log("Connection Successful!")},onConnectError:e=>{console.log("Connection Error",e.message)},onError:e=>{console.log("Client Error",e.message)}});console.log("Querying ...");try{let t=await r.query(...e);return await r.end(),JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e.message),{success:!1,error:e.message}}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=67859);module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/deleteInvitation.js b/dsql-app/.local_dist/server/pages/api/deleteInvitation.js index 2f36103..e16301b 100644 --- a/dsql-app/.local_dist/server/pages/api/deleteInvitation.js +++ b/dsql-app/.local_dist/server/pages/api/deleteInvitation.js @@ -1 +1 @@ -"use strict";(()=>{var e={};e.id=291,e.ids=[291],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},7808:(e,r,t)=>{t.r(r),t.d(r,{config:()=>l,default:()=>d,routeModule:()=>_});var n={};t.r(n),t.d(n,{default:()=>c});var o=t(89947),s=t(2706),i=t(96762),a=t(48786),u=t(69842);async function c(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await (0,u.A)(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});await (0,a.A)("DELETE FROM invitations WHERE id = ? AND inviting_user_id = ?",[e.body.id,t.id]),r.json({success:!0})}let d=(0,i.M)(n,"default"),l=(0,i.M)(n,"config"),_=new o.PagesAPIRouteModule({definition:{kind:s.A.PAGES_API,page:"/api/deleteInvitation",pathname:"/api/deleteInvitation",bundlePath:"",filename:""},userland:n})},69842:(e,r,t)=>{t.d(r,{A:()=>u});var n=t(48786),o=t(95969),s=t(29021),i=t.n(s),a=t(89159);async function u(e,r,t){try{let{keyCookieName:s,csrfCookieName:u}=(0,a.A)();if(!e.cookies?.[s]?.match(/./))throw Error("Request Cookies not Found!");let c=(0,o.A)({encryptedString:e.cookies[s]});if(!c)throw Error("Couldn't decrypt auth cookie!");let d=JSON.parse(c);if(!d.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(d.csrf_k)))throw Error("Deep Auth Failed. `csrf` key not found in request headers!");let l=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!l)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!i().existsSync(`${l}/${d.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==d.verification_status&&!t){let e=await (0,n.A)(`SELECT verification_status FROM users WHERE id='${d.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(d?.date&&Date.now()-d.date>6048e5)throw Error("Key expired!");return d}catch(e){return console.log(`userAuth Error: ${e.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>n});function n(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",n=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",o=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",s=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),i=r;e?.userId&&(i+=`user_${e.userId}_`),s&&(i+=`${s}_`),i+=t;let a=r;e?.userId&&(a+=`user_${e.userId}_`),s&&(a+=`${s}_`),a+=n;let u=r;return e?.userId&&(u+=`user_${e.userId}_`),s&&(u+=`${s}_`),{keyCookieName:i,csrfCookieName:a,oneTimeCodeName:u+=o}}},95969:(e,r,t)=>{t.d(r,{A:()=>s});var n=t(55511),o=t(79428);function s({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let s=r||process.env.DSQL_ENCRYPTION_PASSWORD,i=t||process.env.DSQL_ENCRYPTION_SALT,a=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!s?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let u=(0,n.scryptSync)(s,i,a),c=o.Buffer.alloc(16,0),d=(0,n.createDecipheriv)("aes-192-cbc",u,c);try{let r=d.update(e,"hex","utf8");return r+=d.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>n});async function n(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=7808);module.exports=t})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=291,e.ids=[291],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},7808:(e,r,t)=>{t.r(r),t.d(r,{config:()=>l,default:()=>d,routeModule:()=>_});var n={};t.r(n),t.d(n,{default:()=>c});var o=t(89947),s=t(2706),i=t(96762),a=t(48786),u=t(69842);async function c(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await (0,u.A)(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});await (0,a.A)("DELETE FROM invitations WHERE id = ? AND inviting_user_id = ?",[e.body.id,t.id]),r.json({success:!0})}let d=(0,i.M)(n,"default"),l=(0,i.M)(n,"config"),_=new o.PagesAPIRouteModule({definition:{kind:s.A.PAGES_API,page:"/api/deleteInvitation",pathname:"/api/deleteInvitation",bundlePath:"",filename:""},userland:n})},69842:(e,r,t)=>{t.d(r,{A:()=>u});var n=t(48786),o=t(95969),s=t(29021),i=t.n(s),a=t(89159);async function u(e,r,t){try{let{keyCookieName:s,csrfCookieName:u}=(0,a.A)();if(!e.cookies?.[s]?.match(/./))throw Error("Request Cookies not Found!");let c=(0,o.A)({encryptedString:e.cookies[s]});if(!c)throw Error("Couldn't decrypt auth cookie!");let d=JSON.parse(c);if(!d.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(d.csrf_k)))throw console.log("req.headers",e.headers),console.log("userObject",d),Error("Deep Auth Failed. `csrf` key not found in request headers!");let l=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!l)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!i().existsSync(`${l}/${d.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==d.verification_status&&!t){let e=await (0,n.A)(`SELECT verification_status FROM users WHERE id='${d.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(d?.date&&Date.now()-d.date>6048e5)throw Error("Key expired!");return d}catch(e){return console.log(`userAuth Error: ${e.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>n});function n(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",n=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",o=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",s=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),i=r;e?.userId&&(i+=`user_${e.userId}_`),s&&(i+=`${s}_`),i+=t;let a=r;e?.userId&&(a+=`user_${e.userId}_`),s&&(a+=`${s}_`),a+=n;let u=r;return e?.userId&&(u+=`user_${e.userId}_`),s&&(u+=`${s}_`),{keyCookieName:i,csrfCookieName:a,oneTimeCodeName:u+=o}}},95969:(e,r,t)=>{t.d(r,{A:()=>s});var n=t(55511),o=t(79428);function s({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let s=r||process.env.DSQL_ENCRYPTION_PASSWORD,i=t||process.env.DSQL_ENCRYPTION_SALT,a=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!s?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let u=(0,n.scryptSync)(s,i,a),c=o.Buffer.alloc(16,0),d=(0,n.createDecipheriv)("aes-192-cbc",u,c);try{let r=d.update(e,"hex","utf8");return r+=d.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>n});async function n(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=7808);module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/deleteMediaFolder.js b/dsql-app/.local_dist/server/pages/api/deleteMediaFolder.js index 2404b5b..1f63cd2 100644 --- a/dsql-app/.local_dist/server/pages/api/deleteMediaFolder.js +++ b/dsql-app/.local_dist/server/pages/api/deleteMediaFolder.js @@ -1,4 +1,4 @@ -"use strict";(()=>{var e={};e.id=9918,e.ids=[9918],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},32306:(e,r,t)=>{t.r(r),t.d(r,{config:()=>p,default:()=>E,routeModule:()=>S});var n={};t.r(n),t.d(n,{default:()=>f});var s=t(89947),o=t(2706),i=t(96762),a=t(48786),c=t(67619),l=t(69842),u=t(33873),d=t.n(u);let _=t(29021);async function f(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await (0,l.A)(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let{folder:n}=e.body;try{async function s({path:e}){try{let r=_.readdirSync(e);for(let t=0;t",e.message)}}let e=process.env.DSQL_STATIC_SERVER_DIR;if(!e)throw console.log("Static File ENV not Found!"),Error("No Static Path!");let o=d().join(e,`images/user-images/user-${t.id}/`),i=`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${t.id}/media/`,c=o+(n?n.replace(/\.| /g,"")+"/":""),l=i+(n?n.replace(/\.| /g,"")+"/":"");await s({path:c}),await s({path:l}),r.json({success:!0})}catch(e){(0,c.default)({component:"/api/deleteMediaFolder/main-catch-error",message:e.message,user:t}),r.json({success:!1})}}let E=(0,i.M)(n,"default"),p=(0,i.M)(n,"config"),S=new s.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/deleteMediaFolder",pathname:"/api/deleteMediaFolder",bundlePath:"",filename:""},userland:n})},69842:(e,r,t)=>{t.d(r,{A:()=>c});var n=t(48786),s=t(95969),o=t(29021),i=t.n(o),a=t(89159);async function c(e,r,t){try{let{keyCookieName:o,csrfCookieName:c}=(0,a.A)();if(!e.cookies?.[o]?.match(/./))throw Error("Request Cookies not Found!");let l=(0,s.A)({encryptedString:e.cookies[o]});if(!l)throw Error("Couldn't decrypt auth cookie!");let u=JSON.parse(l);if(!u.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(u.csrf_k)))throw Error("Deep Auth Failed. `csrf` key not found in request headers!");let d=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!d)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!i().existsSync(`${d}/${u.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==u.verification_status&&!t){let e=await (0,n.A)(`SELECT verification_status FROM users WHERE id='${u.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(u?.date&&Date.now()-u.date>6048e5)throw Error("Key expired!");return u}catch(e){return console.log(`userAuth Error: ${e.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>n});function n(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",n=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",s=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",o=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),i=r;e?.userId&&(i+=`user_${e.userId}_`),o&&(i+=`${o}_`),i+=t;let a=r;e?.userId&&(a+=`user_${e.userId}_`),o&&(a+=`${o}_`),a+=n;let c=r;return e?.userId&&(c+=`user_${e.userId}_`),o&&(c+=`${o}_`),{keyCookieName:i,csrfCookieName:a,oneTimeCodeName:c+=s}}},67619:(e,r,t)=>{t.r(r),t.d(r,{default:()=>o});var n=t(29021),s=t.n(n);async function o({user:e,message:r,component:t,noMail:n,req:o}){let i=new Date,a=(()=>{if(!o)return null;try{let e=o.headers["x-forwarded-for"],r=o.headers["x-real-ip"],t=o.headers["cf-connecting-ip"],n=Array.isArray(e)?e[0]:e?.split(",")[0],s=t||n||r||o.socket.remoteAddress;if(!s)return null;return String(s)}catch(e){return null}})();try{let n=`🚀 SERVER ERROR =========================== +"use strict";(()=>{var e={};e.id=9918,e.ids=[9918],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},32306:(e,r,t)=>{t.r(r),t.d(r,{config:()=>S,default:()=>p,routeModule:()=>m});var n={};t.r(n),t.d(n,{default:()=>E});var s=t(89947),o=t(2706),i=t(96762),a=t(29021),c=t.n(a),l=t(48786),u=t(67619),d=t(69842),_=t(33873),f=t.n(_);async function E(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await (0,d.A)(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let{folder:n}=e.body;try{async function s({path:e}){try{let r=c().readdirSync(e);for(let t=0;t",e.message)}}let e=process.env.DSQL_STATIC_SERVER_DIR;if(!e)throw console.log("Static File ENV not Found!"),Error("No Static Path!");let o=f().join(e,`images/user-images/user-${t.id}/`),i=`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${t.id}/media/`,a=o+(n?n.replace(/\.| /g,"")+"/":""),u=i+(n?n.replace(/\.| /g,"")+"/":"");await s({path:a}),await s({path:u}),r.json({success:!0})}catch(e){(0,u.A)({component:"/api/deleteMediaFolder/main-catch-error",message:e.message,user:t}),r.json({success:!1})}}let p=(0,i.M)(n,"default"),S=(0,i.M)(n,"config"),m=new s.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/deleteMediaFolder",pathname:"/api/deleteMediaFolder",bundlePath:"",filename:""},userland:n})},69842:(e,r,t)=>{t.d(r,{A:()=>c});var n=t(48786),s=t(95969),o=t(29021),i=t.n(o),a=t(89159);async function c(e,r,t){try{let{keyCookieName:o,csrfCookieName:c}=(0,a.A)();if(!e.cookies?.[o]?.match(/./))throw Error("Request Cookies not Found!");let l=(0,s.A)({encryptedString:e.cookies[o]});if(!l)throw Error("Couldn't decrypt auth cookie!");let u=JSON.parse(l);if(!u.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(u.csrf_k)))throw console.log("req.headers",e.headers),console.log("userObject",u),Error("Deep Auth Failed. `csrf` key not found in request headers!");let d=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!d)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!i().existsSync(`${d}/${u.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==u.verification_status&&!t){let e=await (0,n.A)(`SELECT verification_status FROM users WHERE id='${u.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(u?.date&&Date.now()-u.date>6048e5)throw Error("Key expired!");return u}catch(e){return console.log(`userAuth Error: ${e.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>n});function n(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",n=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",s=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",o=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),i=r;e?.userId&&(i+=`user_${e.userId}_`),o&&(i+=`${o}_`),i+=t;let a=r;e?.userId&&(a+=`user_${e.userId}_`),o&&(a+=`${o}_`),a+=n;let c=r;return e?.userId&&(c+=`user_${e.userId}_`),o&&(c+=`${o}_`),{keyCookieName:i,csrfCookieName:a,oneTimeCodeName:c+=s}}},67619:(e,r,t)=>{t.d(r,{A:()=>o});var n=t(29021),s=t.n(n);async function o({user:e,message:r,component:t,noMail:n,req:o}){let i=new Date,a=(()=>{if(!o)return null;try{let e=o.headers["x-forwarded-for"],r=o.headers["x-real-ip"],t=o.headers["cf-connecting-ip"],n=Array.isArray(e)?e[0]:e?.split(",")[0],s=t||n||r||o.socket.remoteAddress;if(!s)return null;return String(s)}catch(e){return null}})();try{let n=`🚀 SERVER ERROR =========================== Error Message: ${r} Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(n+=` User Id: ${e?.id} diff --git a/dsql-app/.local_dist/server/pages/api/deleteTableEntry.js b/dsql-app/.local_dist/server/pages/api/deleteTableEntry.js index a235808..9d5b575 100644 --- a/dsql-app/.local_dist/server/pages/api/deleteTableEntry.js +++ b/dsql-app/.local_dist/server/pages/api/deleteTableEntry.js @@ -1,4 +1,4 @@ -"use strict";(()=>{var e={};e.id=1658,e.ids=[1658],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},17675:(e,r,t)=>{t.r(r),t.d(r,{config:()=>E,default:()=>f,routeModule:()=>p});var s={};t.r(s),t.d(s,{default:()=>_});var n=t(89947),a=t(2706),o=t(96762),i=t(61932),l=t(31495),u=t(60125),c=t(67619),d=t(69842);async function _(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await (0,d.A)(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let{dbFullName:s,tableName:n,entryId:a,dbSlug:o,dbId:_,delegated:f}=e.body;try{let c=await (0,u.A)({databaseSlug:o,request:e,user:t,query:e.query});if(!await (0,l.A)({user:t,confirmedDelegetedUser:c,database:o,table:n,dbId:_,priviledgeRegex:/Delete Entries/i}))return r.json({success:!1,msg:"Unauthorized"});await (0,i.A)({dbContext:"Dsql User",paradigm:"Full Access",dbFullName:s,tableName:n,identifierColumnName:"id",identifierValue:a}),r.json({success:!0})}catch(e){(0,c.default)({component:"/api/deleteTableEntry/main-catch-error",message:e.message,user:t}),r.json({success:!1,msg:"Deletion Failed!"})}}let f=(0,o.M)(s,"default"),E=(0,o.M)(s,"config"),p=new n.PagesAPIRouteModule({definition:{kind:a.A.PAGES_API,page:"/api/deleteTableEntry",pathname:"/api/deleteTableEntry",bundlePath:"",filename:""},userland:s})},31495:(e,r,t)=>{t.d(r,{A:()=>a});var s=t(48786),n=t(67619);async function a({user:e,confirmedDelegetedUser:r,database:t,table:a,priviledgeRegex:o,dbId:i}){let l,u;try{r?.delegated?(l=await (0,s.A)("SELECT priviledge FROM delegated_user_tables WHERE root_user_id=? AND delegated_user_id=? AND `database`=? AND `table`=?",[r.rootUserId,e.id,t,a]),u=l[0]?.priviledge?.match(o)):(l=await (0,s.A)("SELECT table_slug FROM user_database_tables WHERE user_id=? AND table_slug=? AND db_id=?",[e.id,a,i]),u=!0)}catch(r){(0,n.default)({component:"checkUserRights",message:r.message,user:e})}return!!l&&!!l[0]&&!!u}},60125:(e,r,t)=>{t.d(r,{A:()=>n});var s=t(95969);async function n({request:e,databaseSlug:r,user:t,query:n}){try{let a=t.id,o=null;if(!n?.delegated)return{dbUserId:a};let i=n.dbUserId,l=`${process.env.DSQL_USER_DB_PREFIX}${i}_${r}`,u=`${process.env.DSQL_USER_DELEGATED_DB_COOKIE_PREFIX}${l}`;try{if(!e.cookies?.[u])throw Error("Cookie not present");let t=(0,s.A)({encryptedString:e.cookies[u]});if(!t)throw Error("Invalid Token");if((o=JSON.parse(t)).databaseSlug===r)return{dbUserId:a=o.rootUserId,rootUserId:o.rootUserId,rootUserName:o.rootUserName,rootUserEmail:o.rootUserEmail,rootUserImage:o.rootUserImage,databaseFullName:o.databaseFullName,databaseSlug:o.databaseSlug,allowedTables:o.allowedTables,priviledges:o.priviledges,database:o.databaseSlug,delegated:!0}}catch(e){}return{dbUserId:a}}catch(e){return null}}},69842:(e,r,t)=>{t.d(r,{A:()=>l});var s=t(48786),n=t(95969),a=t(29021),o=t.n(a),i=t(89159);async function l(e,r,t){try{let{keyCookieName:a,csrfCookieName:l}=(0,i.A)();if(!e.cookies?.[a]?.match(/./))throw Error("Request Cookies not Found!");let u=(0,n.A)({encryptedString:e.cookies[a]});if(!u)throw Error("Couldn't decrypt auth cookie!");let c=JSON.parse(u);if(!c.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(c.csrf_k)))throw Error("Deep Auth Failed. `csrf` key not found in request headers!");let d=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!d)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!o().existsSync(`${d}/${c.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==c.verification_status&&!t){let e=await (0,s.A)(`SELECT verification_status FROM users WHERE id='${c.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(c?.date&&Date.now()-c.date>6048e5)throw Error("Key expired!");return c}catch(e){return console.log(`userAuth Error: ${e.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>s});function s(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",n=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",a=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),o=r;e?.userId&&(o+=`user_${e.userId}_`),a&&(o+=`${a}_`),o+=t;let i=r;e?.userId&&(i+=`user_${e.userId}_`),a&&(i+=`${a}_`),i+=s;let l=r;return e?.userId&&(l+=`user_${e.userId}_`),a&&(l+=`${a}_`),{keyCookieName:o,csrfCookieName:i,oneTimeCodeName:l+=n}}},61932:(e,r,t)=>{t.d(r,{A:()=>o});var s=t(48786),n=t(37275),a=t(7971);async function o({dbContext:e,paradigm:r,dbFullName:t,tableName:o,identifierColumnName:i,identifierValue:l,useLocal:u}){try{let c=!!u||!e?.match(/dsql.user/i)&&(!t||!!t.match(/^datasquirel$/)),d=u?a.A:c?s.A:n.default,_=`DELETE FROM \`${t}\`.\`${o}\` WHERE \`${i}\`=?`;return c?await d(_,[l]):await d({paradigm:r,queryString:_,queryValues:[l]})}catch(e){return null}}},67619:(e,r,t)=>{t.r(r),t.d(r,{default:()=>a});var s=t(29021),n=t.n(s);async function a({user:e,message:r,component:t,noMail:s,req:a}){let o=new Date,i=(()=>{if(!a)return null;try{let e=a.headers["x-forwarded-for"],r=a.headers["x-real-ip"],t=a.headers["cf-connecting-ip"],s=Array.isArray(e)?e[0]:e?.split(",")[0],n=t||s||r||a.socket.remoteAddress;if(!n)return null;return String(n)}catch(e){return null}})();try{let s=`🚀 SERVER ERROR =========================== +"use strict";(()=>{var e={};e.id=1658,e.ids=[1658],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},17675:(e,r,t)=>{t.r(r),t.d(r,{config:()=>E,default:()=>f,routeModule:()=>p});var s={};t.r(s),t.d(s,{default:()=>_});var n=t(89947),a=t(2706),o=t(96762),i=t(61932),l=t(31495),c=t(60125),u=t(67619),d=t(69842);async function _(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await (0,d.A)(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let{dbFullName:s,tableName:n,entryId:a,dbSlug:o,dbId:_,delegated:f}=e.body;try{let u=await (0,c.A)({databaseSlug:o,request:e,user:t,query:e.query});if(!await (0,l.A)({user:t,confirmedDelegetedUser:u,database:o,table:n,dbId:_,priviledgeRegex:/Delete Entries/i}))return r.json({success:!1,msg:"Unauthorized"});await (0,i.A)({dbContext:"Dsql User",paradigm:"Full Access",dbFullName:s,tableName:n,identifierColumnName:"id",identifierValue:a}),r.json({success:!0})}catch(e){(0,u.A)({component:"/api/deleteTableEntry/main-catch-error",message:e.message,user:t}),r.json({success:!1,msg:"Deletion Failed!"})}}let f=(0,o.M)(s,"default"),E=(0,o.M)(s,"config"),p=new n.PagesAPIRouteModule({definition:{kind:a.A.PAGES_API,page:"/api/deleteTableEntry",pathname:"/api/deleteTableEntry",bundlePath:"",filename:""},userland:s})},31495:(e,r,t)=>{t.d(r,{A:()=>a});var s=t(48786),n=t(67619);async function a({user:e,confirmedDelegetedUser:r,database:t,table:a,priviledgeRegex:o,dbId:i}){let l,c;try{r?.delegated?(l=await (0,s.A)("SELECT priviledge FROM delegated_user_tables WHERE root_user_id=? AND delegated_user_id=? AND `database`=? AND `table`=?",[r.rootUserId,e.id,t,a]),c=l[0]?.priviledge?.match(o)):(l=await (0,s.A)("SELECT table_slug FROM user_database_tables WHERE user_id=? AND table_slug=? AND db_id=?",[e.id,a,i]),c=!0)}catch(r){(0,n.A)({component:"checkUserRights",message:r.message,user:e})}return!!l&&!!l[0]&&!!c}},60125:(e,r,t)=>{t.d(r,{A:()=>n});var s=t(95969);async function n({request:e,databaseSlug:r,user:t,query:n}){try{let a=t.id,o=null;if(!n?.delegated)return{dbUserId:a};let i=n.dbUserId,l=`${process.env.DSQL_USER_DB_PREFIX}${i}_${r}`,c=`${process.env.DSQL_USER_DELEGATED_DB_COOKIE_PREFIX}${l}`;try{if(!e.cookies?.[c])throw Error("Cookie not present");let t=(0,s.A)({encryptedString:e.cookies[c]});if(!t)throw Error("Invalid Token");if((o=JSON.parse(t)).databaseSlug===r)return{dbUserId:a=o.rootUserId,rootUserId:o.rootUserId,rootUserName:o.rootUserName,rootUserEmail:o.rootUserEmail,rootUserImage:o.rootUserImage,databaseFullName:o.databaseFullName,databaseSlug:o.databaseSlug,allowedTables:o.allowedTables,priviledges:o.priviledges,database:o.databaseSlug,delegated:!0}}catch(e){}return{dbUserId:a}}catch(e){return null}}},69842:(e,r,t)=>{t.d(r,{A:()=>l});var s=t(48786),n=t(95969),a=t(29021),o=t.n(a),i=t(89159);async function l(e,r,t){try{let{keyCookieName:a,csrfCookieName:l}=(0,i.A)();if(!e.cookies?.[a]?.match(/./))throw Error("Request Cookies not Found!");let c=(0,n.A)({encryptedString:e.cookies[a]});if(!c)throw Error("Couldn't decrypt auth cookie!");let u=JSON.parse(c);if(!u.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(u.csrf_k)))throw console.log("req.headers",e.headers),console.log("userObject",u),Error("Deep Auth Failed. `csrf` key not found in request headers!");let d=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!d)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!o().existsSync(`${d}/${u.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==u.verification_status&&!t){let e=await (0,s.A)(`SELECT verification_status FROM users WHERE id='${u.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(u?.date&&Date.now()-u.date>6048e5)throw Error("Key expired!");return u}catch(e){return console.log(`userAuth Error: ${e.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>s});function s(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",n=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",a=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),o=r;e?.userId&&(o+=`user_${e.userId}_`),a&&(o+=`${a}_`),o+=t;let i=r;e?.userId&&(i+=`user_${e.userId}_`),a&&(i+=`${a}_`),i+=s;let l=r;return e?.userId&&(l+=`user_${e.userId}_`),a&&(l+=`${a}_`),{keyCookieName:o,csrfCookieName:i,oneTimeCodeName:l+=n}}},61932:(e,r,t)=>{t.d(r,{A:()=>o});var s=t(48786),n=t(37275),a=t(7971);async function o({dbContext:e,paradigm:r,dbFullName:t,tableName:o,identifierColumnName:i,identifierValue:l,useLocal:c}){try{let u=!!c||!e?.match(/dsql.user/i)&&(!t||!!t.match(/^datasquirel$/)),d=c?a.A:u?s.A:n.A,_=`DELETE FROM \`${t}\`.\`${o}\` WHERE \`${i}\`=?`;return u?await d(_,[l]):await d({paradigm:r,queryString:_,queryValues:[l]})}catch(e){return null}}},67619:(e,r,t)=>{t.d(r,{A:()=>a});var s=t(29021),n=t.n(s);async function a({user:e,message:r,component:t,noMail:s,req:a}){let o=new Date,i=(()=>{if(!a)return null;try{let e=a.headers["x-forwarded-for"],r=a.headers["x-real-ip"],t=a.headers["cf-connecting-ip"],s=Array.isArray(e)?e[0]:e?.split(",")[0],n=t||s||r||a.socket.remoteAddress;if(!n)return null;return String(n)}catch(e){return null}})();try{let s=`🚀 SERVER ERROR =========================== Error Message: ${r} Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(s+=` User Id: ${e?.id} @@ -13,4 +13,4 @@ Date: ${o.toDateString()} -${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},95969:(e,r,t)=>{t.d(r,{A:()=>a});var s=t(55511),n=t(79428);function a({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let a=r||process.env.DSQL_ENCRYPTION_PASSWORD,o=t||process.env.DSQL_ENCRYPTION_SALT,i=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!a?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!o?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let l=(0,s.scryptSync)(a,o,i),u=n.Buffer.alloc(16,0),c=(0,s.createDecipheriv)("aes-192-cbc",l,u);try{let r=c.update(e,"hex","utf8");return r+=c.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>s});async function s(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},37275:(e,r,t)=>{async function s(e,r,t){try{if("string"==typeof r){let s=await e.query(n(r),t);return JSON.parse(JSON.stringify(s))}if("object"!=typeof r)return null;{let t=[];for(let s=0;sa})},7971:(e,r,t)=>{t.d(r,{A:()=>i});var s=t(9973),n=t.n(s),a=t(29021),o=t.n(a);async function i(...e){let r=n()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!o().existsSync(r)){console.log(`${r} does not exist`);return}return{ca:o().readFileSync(`${e}/ca-cert.pem`),rejectUnauthorized:!1}}()},onConnect:()=>{console.log("Connection Successful!")},onConnectError:e=>{console.log("Connection Error",e.message)},onError:e=>{console.log("Client Error",e.message)}});console.log("Querying ...");try{let t=await r.query(...e);return await r.end(),JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e.message),{success:!1,error:e.message}}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=17675);module.exports=t})(); \ No newline at end of file +${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},95969:(e,r,t)=>{t.d(r,{A:()=>a});var s=t(55511),n=t(79428);function a({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let a=r||process.env.DSQL_ENCRYPTION_PASSWORD,o=t||process.env.DSQL_ENCRYPTION_SALT,i=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!a?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!o?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let l=(0,s.scryptSync)(a,o,i),c=n.Buffer.alloc(16,0),u=(0,s.createDecipheriv)("aes-192-cbc",l,c);try{let r=u.update(e,"hex","utf8");return r+=u.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>s});async function s(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},37275:(e,r,t)=>{async function s(e,r,t){try{if("string"==typeof r){let s=await e.query(n(r),t);return JSON.parse(JSON.stringify(s))}if("object"!=typeof r)return null;{let t=[];for(let s=0;sa})},7971:(e,r,t)=>{t.d(r,{A:()=>i});var s=t(9973),n=t.n(s),a=t(29021),o=t.n(a);async function i(...e){let r=n()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!o().existsSync(r)){console.log(`${r} does not exist`);return}return{ca:o().readFileSync(`${e}/ca-cert.pem`),rejectUnauthorized:!1}}()},onConnect:()=>{console.log("Connection Successful!")},onConnectError:e=>{console.log("Connection Error",e.message)},onError:e=>{console.log("Client Error",e.message)}});console.log("Querying ...");try{let t=await r.query(...e);return await r.end(),JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e.message),{success:!1,error:e.message}}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=17675);module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/deleteUser.js b/dsql-app/.local_dist/server/pages/api/deleteUser.js index 0205907..c7287f3 100644 --- a/dsql-app/.local_dist/server/pages/api/deleteUser.js +++ b/dsql-app/.local_dist/server/pages/api/deleteUser.js @@ -1,16 +1,16 @@ -"use strict";(()=>{var e={};e.id=2735,e.ids=[2735],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},12057:(e,r,t)=>{t.r(r),t.d(r,{config:()=>p,default:()=>S,routeModule:()=>R});var i={};t.r(i),t.d(i,{default:()=>f});var s=t(89947),n=t(2706),a=t(96762),o=t(48786),u=t(29021),d=t.n(u),c=t(67619),l=t(69842);let E=t(29021),_=t(33873);async function f(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await (0,l.A)(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});"production".match(/prod/i);try{await (0,o.A)(`DELETE FROM users WHERE id='${t.id}'`),await (0,o.A)(`DELETE FROM user_users WHERE invited_user_id='${t.id}' OR user_id='${t.id}'`),await (0,o.A)(`DELETE FROM delegated_user_tables WHERE delegated_user_id='${t.id}' OR root_user_id='${t.id}'`),await (0,o.A)(`DELETE FROM user_databases WHERE user_id='${t.id}'`),await (0,o.A)(`DELETE FROM user_database_tables WHERE user_id='${t.id}'`),await (0,o.A)(`DELETE FROM user_media WHERE user_id='${t.id}'`),await (0,o.A)(`DELETE FROM delegated_users WHERE user_id='${t.id}' OR delegated_user_id='${t.id}'`),await (0,o.A)(`DELETE FROM unsubscribes WHERE user_id='${t.id}'`),await (0,o.A)(`DELETE FROM notifications WHERE user_id='${t.id}'`),await (0,o.A)(`DELETE FROM api_keys WHERE user_id='${t.id}'`),await (0,o.A)(`DELETE FROM invitations WHERE inviting_user_id='${t.id}' OR invited_user_email='${t.email}'`);let e=await (0,o.A)("SELECT * FROM mariadb_users WHERE user_id = ?",[t.id]);for(let r=0;r",e.message),!1}}({rootFolderPath:a}),r.json({success:!0})}catch(e){(0,c.default)({component:"/api/addApiKey/catch-error",message:e.message,user:t}),r.json({success:!1,msg:"User could not be deleted!"})}}let S=(0,a.M)(i,"default"),p=(0,a.M)(i,"config"),R=new s.PagesAPIRouteModule({definition:{kind:n.A.PAGES_API,page:"/api/deleteUser",pathname:"/api/deleteUser",bundlePath:"",filename:""},userland:i})},69842:(e,r,t)=>{t.d(r,{A:()=>u});var i=t(48786),s=t(95969),n=t(29021),a=t.n(n),o=t(89159);async function u(e,r,t){try{let{keyCookieName:n,csrfCookieName:u}=(0,o.A)();if(!e.cookies?.[n]?.match(/./))throw Error("Request Cookies not Found!");let d=(0,s.A)({encryptedString:e.cookies[n]});if(!d)throw Error("Couldn't decrypt auth cookie!");let c=JSON.parse(d);if(!c.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(c.csrf_k)))throw Error("Deep Auth Failed. `csrf` key not found in request headers!");let l=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!l)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!a().existsSync(`${l}/${c.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==c.verification_status&&!t){let e=await (0,i.A)(`SELECT verification_status FROM users WHERE id='${c.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(c?.date&&Date.now()-c.date>6048e5)throw Error("Key expired!");return c}catch(e){return console.log(`userAuth Error: ${e.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>i});function i(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",i=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",s=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",n=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),a=r;e?.userId&&(a+=`user_${e.userId}_`),n&&(a+=`${n}_`),a+=t;let o=r;e?.userId&&(o+=`user_${e.userId}_`),n&&(o+=`${n}_`),o+=i;let u=r;return e?.userId&&(u+=`user_${e.userId}_`),n&&(u+=`${n}_`),{keyCookieName:a,csrfCookieName:o,oneTimeCodeName:u+=s}}},67619:(e,r,t)=>{t.r(r),t.d(r,{default:()=>n});var i=t(29021),s=t.n(i);async function n({user:e,message:r,component:t,noMail:i,req:n}){let a=new Date,o=(()=>{if(!n)return null;try{let e=n.headers["x-forwarded-for"],r=n.headers["x-real-ip"],t=n.headers["cf-connecting-ip"],i=Array.isArray(e)?e[0]:e?.split(",")[0],s=t||i||r||n.socket.remoteAddress;if(!s)return null;return String(s)}catch(e){return null}})();try{let i=`🚀 SERVER ERROR =========================== +"use strict";(()=>{var e={};e.id=2735,e.ids=[2735],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},12057:(e,r,t)=>{t.r(r),t.d(r,{config:()=>p,default:()=>S,routeModule:()=>A});var s={};t.r(s),t.d(s,{default:()=>f});var i=t(89947),n=t(2706),a=t(96762),o=t(29021),u=t.n(o),d=t(33873),c=t.n(d),l=t(48786),E=t(67619),_=t(69842);async function f(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await (0,_.A)(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});"production".match(/prod/i);try{await (0,l.A)(`DELETE FROM users WHERE id='${t.id}'`),await (0,l.A)(`DELETE FROM user_users WHERE invited_user_id='${t.id}' OR user_id='${t.id}'`),await (0,l.A)(`DELETE FROM delegated_user_tables WHERE delegated_user_id='${t.id}' OR root_user_id='${t.id}'`),await (0,l.A)(`DELETE FROM user_databases WHERE user_id='${t.id}'`),await (0,l.A)(`DELETE FROM user_database_tables WHERE user_id='${t.id}'`),await (0,l.A)(`DELETE FROM user_media WHERE user_id='${t.id}'`),await (0,l.A)(`DELETE FROM delegated_users WHERE user_id='${t.id}' OR delegated_user_id='${t.id}'`),await (0,l.A)(`DELETE FROM unsubscribes WHERE user_id='${t.id}'`),await (0,l.A)(`DELETE FROM notifications WHERE user_id='${t.id}'`),await (0,l.A)(`DELETE FROM api_keys WHERE user_id='${t.id}'`),await (0,l.A)(`DELETE FROM invitations WHERE inviting_user_id='${t.id}' OR invited_user_email='${t.email}'`);let e=await (0,l.A)("SELECT * FROM mariadb_users WHERE user_id = ?",[t.id]);for(let r=0;r",e.message),!1}}({rootFolderPath:a}),r.json({success:!0})}catch(e){(0,E.A)({component:"/api/addApiKey/catch-error",message:e.message,user:t}),r.json({success:!1,msg:"User could not be deleted!"})}}let S=(0,a.M)(s,"default"),p=(0,a.M)(s,"config"),A=new i.PagesAPIRouteModule({definition:{kind:n.A.PAGES_API,page:"/api/deleteUser",pathname:"/api/deleteUser",bundlePath:"",filename:""},userland:s})},69842:(e,r,t)=>{t.d(r,{A:()=>u});var s=t(48786),i=t(95969),n=t(29021),a=t.n(n),o=t(89159);async function u(e,r,t){try{let{keyCookieName:n,csrfCookieName:u}=(0,o.A)();if(!e.cookies?.[n]?.match(/./))throw Error("Request Cookies not Found!");let d=(0,i.A)({encryptedString:e.cookies[n]});if(!d)throw Error("Couldn't decrypt auth cookie!");let c=JSON.parse(d);if(!c.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(c.csrf_k)))throw console.log("req.headers",e.headers),console.log("userObject",c),Error("Deep Auth Failed. `csrf` key not found in request headers!");let l=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!l)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!a().existsSync(`${l}/${c.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==c.verification_status&&!t){let e=await (0,s.A)(`SELECT verification_status FROM users WHERE id='${c.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(c?.date&&Date.now()-c.date>6048e5)throw Error("Key expired!");return c}catch(e){return console.log(`userAuth Error: ${e.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>s});function s(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",i=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",n=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),a=r;e?.userId&&(a+=`user_${e.userId}_`),n&&(a+=`${n}_`),a+=t;let o=r;e?.userId&&(o+=`user_${e.userId}_`),n&&(o+=`${n}_`),o+=s;let u=r;return e?.userId&&(u+=`user_${e.userId}_`),n&&(u+=`${n}_`),{keyCookieName:a,csrfCookieName:o,oneTimeCodeName:u+=i}}},67619:(e,r,t)=>{t.d(r,{A:()=>n});var s=t(29021),i=t.n(s);async function n({user:e,message:r,component:t,noMail:s,req:n}){let a=new Date,o=(()=>{if(!n)return null;try{let e=n.headers["x-forwarded-for"],r=n.headers["x-real-ip"],t=n.headers["cf-connecting-ip"],s=Array.isArray(e)?e[0]:e?.split(",")[0],i=t||s||r||n.socket.remoteAddress;if(!i)return null;return String(i)}catch(e){return null}})();try{let s=`🚀 SERVER ERROR =========================== Error Message: ${r} -Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(i+=` +Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(s+=` User Id: ${e?.id} User Name: ${e?.first_name} ${e?.last_name} -User Email: ${e?.email}`),n?.url&&(i+=` -URL: ${n.url}`),n?.body&&(i+=` -Request Body: ${JSON.stringify(n.body,null,4)}`),o&&(i+=` -IP: ${o}`),i+=` +User Email: ${e?.email}`),n?.url&&(s+=` +URL: ${n.url}`),n?.body&&(s+=` +Request Body: ${JSON.stringify(n.body,null,4)}`),o&&(s+=` +IP: ${o}`),s+=` Date: ${a.toDateString()} -========================================`,s().existsSync("./.tmp/error.log")||s().writeFileSync("./.tmp/error.log","","utf-8");let u=s().readFileSync("./.tmp/error.log","utf-8");s().writeFileSync("./.tmp/error.log",i),s().appendFileSync("./.tmp/error.log",` +========================================`,i().existsSync("./.tmp/error.log")||i().writeFileSync("./.tmp/error.log","","utf-8");let u=i().readFileSync("./.tmp/error.log","utf-8");i().writeFileSync("./.tmp/error.log",s),i().appendFileSync("./.tmp/error.log",` -${u}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},95969:(e,r,t)=>{t.d(r,{A:()=>n});var i=t(55511),s=t(79428);function n({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let n=r||process.env.DSQL_ENCRYPTION_PASSWORD,a=t||process.env.DSQL_ENCRYPTION_SALT,o=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!n?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!a?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let u=(0,i.scryptSync)(n,a,o),d=s.Buffer.alloc(16,0),c=(0,i.createDecipheriv)("aes-192-cbc",u,d);try{let r=c.update(e,"hex","utf8");return r+=c.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>i});async function i(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=12057);module.exports=t})(); \ No newline at end of file +${u}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},95969:(e,r,t)=>{t.d(r,{A:()=>n});var s=t(55511),i=t(79428);function n({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let n=r||process.env.DSQL_ENCRYPTION_PASSWORD,a=t||process.env.DSQL_ENCRYPTION_SALT,o=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!n?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!a?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let u=(0,s.scryptSync)(n,a,o),d=i.Buffer.alloc(16,0),c=(0,s.createDecipheriv)("aes-192-cbc",u,d);try{let r=c.update(e,"hex","utf8");return r+=c.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>s});async function s(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=12057);module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/deleteUserDatabase.js b/dsql-app/.local_dist/server/pages/api/deleteUserDatabase.js index 76a65a4..b750644 100644 --- a/dsql-app/.local_dist/server/pages/api/deleteUserDatabase.js +++ b/dsql-app/.local_dist/server/pages/api/deleteUserDatabase.js @@ -1,4 +1,4 @@ -"use strict";(()=>{var e={};e.id=3e3,e.ids=[3e3],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},96257:(e,r,t)=>{t.r(r),t.d(r,{config:()=>p,default:()=>E,routeModule:()=>m});var s={};t.r(s),t.d(s,{default:()=>_});var n=t(89947),a=t(2706),o=t(96762),i=t(29021),l=t.n(i),u=t(48786),c=t(67619),d=t(69842),f=t(14160);async function _(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await (0,d.A)(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let{id:s,db_slug:n,db_full_name:a}=e.body;if(!a.match(`user_${t.id}_`))throw Error("Database doesn't belong to user");await (0,f.A)(`DROP DATABASE \`${a}\``),await (0,u.A)("DELETE FROM user_databases WHERE id = ?",[s]),await (0,u.A)("DELETE FROM user_users WHERE user_id = ? AND `database` = ?",[t.id,n]);try{let e;let s=`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${t.id}/main.json`,n=JSON.parse(l().readFileSync(s,"utf8")),o=n.filter((r,t)=>{if(r.dbFullName===a)return e=t,!0});if(o[0].childDatabase){let e=n.filter(e=>e.dbFullName===o[0].childDatabaseDbFullName)[0],r=e.childrenDatabases?.findIndex(e=>e.dbFullName===o[0].childDatabaseDbFullName);e.childrenDatabases&&"number"==typeof r&&e.childrenDatabases.splice(r,1)}n.splice(e,1),l().writeFileSync(`${s}`,JSON.stringify(n),"utf8"),r.json({success:!0})}catch(e){(0,c.default)({component:"/api/deleteUserDatabase/main-catch-error",message:e.message,user:t}),r.json({success:!1,msg:"File Updates Failed"})}}let E=(0,o.M)(s,"default"),p=(0,o.M)(s,"config"),m=new n.PagesAPIRouteModule({definition:{kind:a.A.PAGES_API,page:"/api/deleteUserDatabase",pathname:"/api/deleteUserDatabase",bundlePath:"",filename:""},userland:s})},69842:(e,r,t)=>{t.d(r,{A:()=>l});var s=t(48786),n=t(95969),a=t(29021),o=t.n(a),i=t(89159);async function l(e,r,t){try{let{keyCookieName:a,csrfCookieName:l}=(0,i.A)();if(!e.cookies?.[a]?.match(/./))throw Error("Request Cookies not Found!");let u=(0,n.A)({encryptedString:e.cookies[a]});if(!u)throw Error("Couldn't decrypt auth cookie!");let c=JSON.parse(u);if(!c.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(c.csrf_k)))throw Error("Deep Auth Failed. `csrf` key not found in request headers!");let d=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!d)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!o().existsSync(`${d}/${c.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==c.verification_status&&!t){let e=await (0,s.A)(`SELECT verification_status FROM users WHERE id='${c.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(c?.date&&Date.now()-c.date>6048e5)throw Error("Key expired!");return c}catch(e){return console.log(`userAuth Error: ${e.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>s});function s(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",n=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",a=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),o=r;e?.userId&&(o+=`user_${e.userId}_`),a&&(o+=`${a}_`),o+=t;let i=r;e?.userId&&(i+=`user_${e.userId}_`),a&&(i+=`${a}_`),i+=s;let l=r;return e?.userId&&(l+=`user_${e.userId}_`),a&&(l+=`${a}_`),{keyCookieName:o,csrfCookieName:i,oneTimeCodeName:l+=n}}},14160:(e,r,t)=>{t.d(r,{A:()=>i});var s=t(29021),n=t.n(s),a=t(67619),o=t(47546);async function i(e){let r;"production".match(/dev/)&&n().appendFileSync("./.tmp/sqlQuery.sql",e+"\n"+Date()+"\n\n\n","utf8");try{r=await (0,o.A)(e)}catch(e){(0,a.default)({component:"noDatabaseDbHandler",message:e.message}),console.log("ERROR in noDatabaseDbHandler =>",e.message)}return r||null}},67619:(e,r,t)=>{t.r(r),t.d(r,{default:()=>a});var s=t(29021),n=t.n(s);async function a({user:e,message:r,component:t,noMail:s,req:a}){let o=new Date,i=(()=>{if(!a)return null;try{let e=a.headers["x-forwarded-for"],r=a.headers["x-real-ip"],t=a.headers["cf-connecting-ip"],s=Array.isArray(e)?e[0]:e?.split(",")[0],n=t||s||r||a.socket.remoteAddress;if(!n)return null;return String(n)}catch(e){return null}})();try{let s=`🚀 SERVER ERROR =========================== +"use strict";(()=>{var e={};e.id=3e3,e.ids=[3e3],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},96257:(e,r,t)=>{t.r(r),t.d(r,{config:()=>p,default:()=>E,routeModule:()=>m});var s={};t.r(s),t.d(s,{default:()=>_});var n=t(89947),a=t(2706),o=t(96762),i=t(29021),l=t.n(i),c=t(48786),u=t(67619),d=t(69842),f=t(14160);async function _(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await (0,d.A)(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let{id:s,db_slug:n,db_full_name:a}=e.body;if(!a.match(`user_${t.id}_`))throw Error("Database doesn't belong to user");await (0,f.A)(`DROP DATABASE \`${a}\``),await (0,c.A)("DELETE FROM user_databases WHERE id = ?",[s]),await (0,c.A)("DELETE FROM user_users WHERE user_id = ? AND `database` = ?",[t.id,n]);try{let e;let s=`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${t.id}/main.json`,n=JSON.parse(l().readFileSync(s,"utf8")),o=n.filter((r,t)=>{if(r.dbFullName===a)return e=t,!0});if(o[0].childDatabase){let e=n.filter(e=>e.dbFullName===o[0].childDatabaseDbFullName)[0],r=e.childrenDatabases?.findIndex(e=>e.dbFullName===o[0].childDatabaseDbFullName);e.childrenDatabases&&"number"==typeof r&&e.childrenDatabases.splice(r,1)}n.splice(e,1),l().writeFileSync(`${s}`,JSON.stringify(n),"utf8"),r.json({success:!0})}catch(e){(0,u.A)({component:"/api/deleteUserDatabase/main-catch-error",message:e.message,user:t}),r.json({success:!1,msg:"File Updates Failed"})}}let E=(0,o.M)(s,"default"),p=(0,o.M)(s,"config"),m=new n.PagesAPIRouteModule({definition:{kind:a.A.PAGES_API,page:"/api/deleteUserDatabase",pathname:"/api/deleteUserDatabase",bundlePath:"",filename:""},userland:s})},69842:(e,r,t)=>{t.d(r,{A:()=>l});var s=t(48786),n=t(95969),a=t(29021),o=t.n(a),i=t(89159);async function l(e,r,t){try{let{keyCookieName:a,csrfCookieName:l}=(0,i.A)();if(!e.cookies?.[a]?.match(/./))throw Error("Request Cookies not Found!");let c=(0,n.A)({encryptedString:e.cookies[a]});if(!c)throw Error("Couldn't decrypt auth cookie!");let u=JSON.parse(c);if(!u.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(u.csrf_k)))throw console.log("req.headers",e.headers),console.log("userObject",u),Error("Deep Auth Failed. `csrf` key not found in request headers!");let d=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!d)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!o().existsSync(`${d}/${u.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==u.verification_status&&!t){let e=await (0,s.A)(`SELECT verification_status FROM users WHERE id='${u.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(u?.date&&Date.now()-u.date>6048e5)throw Error("Key expired!");return u}catch(e){return console.log(`userAuth Error: ${e.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>s});function s(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",n=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",a=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),o=r;e?.userId&&(o+=`user_${e.userId}_`),a&&(o+=`${a}_`),o+=t;let i=r;e?.userId&&(i+=`user_${e.userId}_`),a&&(i+=`${a}_`),i+=s;let l=r;return e?.userId&&(l+=`user_${e.userId}_`),a&&(l+=`${a}_`),{keyCookieName:o,csrfCookieName:i,oneTimeCodeName:l+=n}}},14160:(e,r,t)=>{t.d(r,{A:()=>i});var s=t(29021),n=t.n(s),a=t(67619),o=t(47546);async function i(e){let r;"production".match(/dev/)&&n().appendFileSync("./.tmp/sqlQuery.sql",e+"\n"+Date()+"\n\n\n","utf8");try{r=await (0,o.A)(e)}catch(e){(0,a.A)({component:"noDatabaseDbHandler",message:e.message}),console.log("ERROR in noDatabaseDbHandler =>",e.message)}return r||null}},67619:(e,r,t)=>{t.d(r,{A:()=>a});var s=t(29021),n=t.n(s);async function a({user:e,message:r,component:t,noMail:s,req:a}){let o=new Date,i=(()=>{if(!a)return null;try{let e=a.headers["x-forwarded-for"],r=a.headers["x-real-ip"],t=a.headers["cf-connecting-ip"],s=Array.isArray(e)?e[0]:e?.split(",")[0],n=t||s||r||a.socket.remoteAddress;if(!n)return null;return String(n)}catch(e){return null}})();try{let s=`🚀 SERVER ERROR =========================== Error Message: ${r} Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(s+=` User Id: ${e?.id} @@ -13,4 +13,4 @@ Date: ${o.toDateString()} -${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},95969:(e,r,t)=>{t.d(r,{A:()=>a});var s=t(55511),n=t(79428);function a({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let a=r||process.env.DSQL_ENCRYPTION_PASSWORD,o=t||process.env.DSQL_ENCRYPTION_SALT,i=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!a?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!o?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let l=(0,s.scryptSync)(a,o,i),u=n.Buffer.alloc(16,0),c=(0,s.createDecipheriv)("aes-192-cbc",l,u);try{let r=c.update(e,"hex","utf8");return r+=c.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>s});async function s(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},47546:(e,r,t)=>{t.d(r,{A:()=>s});function s(...e){let r=global.DSQL_DB_CONN;try{return new Promise((t,s)=>{r.query(...e).then(e=>{r.end(),t(JSON.parse(JSON.stringify(e)))}).catch(e=>{r.end(),t({error:e.message,sql:e.sql})})})}catch(e){return{success:!1,error:e.message}}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=96257);module.exports=t})(); \ No newline at end of file +${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},95969:(e,r,t)=>{t.d(r,{A:()=>a});var s=t(55511),n=t(79428);function a({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let a=r||process.env.DSQL_ENCRYPTION_PASSWORD,o=t||process.env.DSQL_ENCRYPTION_SALT,i=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!a?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!o?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let l=(0,s.scryptSync)(a,o,i),c=n.Buffer.alloc(16,0),u=(0,s.createDecipheriv)("aes-192-cbc",l,c);try{let r=u.update(e,"hex","utf8");return r+=u.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>s});async function s(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},47546:(e,r,t)=>{t.d(r,{A:()=>s});function s(...e){let r=global.DSQL_DB_CONN;try{return new Promise((t,s)=>{r.query(...e).then(e=>{r.end(),t(JSON.parse(JSON.stringify(e)))}).catch(e=>{r.end(),t({error:e.message,sql:e.sql})})})}catch(e){return{success:!1,error:e.message}}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=96257);module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/deleteUserMedia.js b/dsql-app/.local_dist/server/pages/api/deleteUserMedia.js index a5e5857..b999703 100644 --- a/dsql-app/.local_dist/server/pages/api/deleteUserMedia.js +++ b/dsql-app/.local_dist/server/pages/api/deleteUserMedia.js @@ -1,4 +1,4 @@ -"use strict";(()=>{var e={};e.id=8105,e.ids=[8105],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},5134:(e,r,t)=>{t.r(r),t.d(r,{config:()=>E,default:()=>S,routeModule:()=>m});var n={};t.r(n),t.d(n,{default:()=>p});var s=t(89947),o=t(2706),i=t(96762),a=t(33873),c=t.n(a),l=t(67619),u=t(69842),d=t(45185),_=t(61932);let f=t(29021);async function p(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await (0,u.A)(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let n=e.body,{media_name:s,media_url:o,media_thumbnail_url:i,media_path:a,media_thumbnail_path:p,folder:S}=n;"production".match(/production/);try{let e=n?.private==1;if(!process.env.DSQL_STATIC_SERVER_DIR)throw console.log("Static File ENV not Found!"),Error("No Static Path!");let s=(0,d.A)({isPrivate:e,userId:t.id,folder:n.folder?n.folder+"/":"",video:!!n.media_type?.match(/video/i)});if(!s)throw Error("Couldn't grab paths!");let{fileRootPath:a,urlRootPath:l,relativePath:u}=s;S?.match(/./);let p=o.match(/[^\/]+$/)[0],E=i.match(/[^\/]+$/)[0],m=c().normalize(a+p),y=c().normalize(a+E);f.unlinkSync(m);try{f.unlinkSync(y)}catch(e){}await (0,_.A)({dbFullName:"datasquirel",tableName:"user_media",identifierColumnName:"id",identifierValue:n.id}),r.json({success:!0})}catch(e){console.log("ERROR in deleting user media =>",e.message),(0,l.default)({component:"/api/deleteUserMedia/main-catch-error",message:e.message,user:t}),r.json({success:!1,msg:"Database Files could not be written!"})}}let S=(0,i.M)(n,"default"),E=(0,i.M)(n,"config"),m=new s.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/deleteUserMedia",pathname:"/api/deleteUserMedia",bundlePath:"",filename:""},userland:n})},45185:(e,r,t)=>{t.d(r,{A:()=>a});var n=t(29021),s=t.n(n),o=t(33873),i=t.n(o);function a({isPrivate:e,userId:r,folder:t,video:n,pathOnly:o}){"production".match(/production/);let a=process.env.DSQL_STATIC_SERVER_DIR;if(!a)return console.log("Static File ENV not Found!"),null;let c=e?`@/${n?"videos":"media"}/${t?t+"/":""}`:n?`/videos/user-videos/user-${r}/${t?t+"/":""}`:`/images/user-images/user-${r}/${t?t+"/":""}`,l=e?`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${r}/media/${t?t+"/":""}`:i().join(a,c);return s().existsSync(l)||o||s().mkdirSync(l,{recursive:!0}),{fileRootPath:l,urlRootPath:e?`@/media/${t?t+"/":""}`:`${process.env.DSQL_STATIC_HOST}${c}`,relativePath:c}}},69842:(e,r,t)=>{t.d(r,{A:()=>c});var n=t(48786),s=t(95969),o=t(29021),i=t.n(o),a=t(89159);async function c(e,r,t){try{let{keyCookieName:o,csrfCookieName:c}=(0,a.A)();if(!e.cookies?.[o]?.match(/./))throw Error("Request Cookies not Found!");let l=(0,s.A)({encryptedString:e.cookies[o]});if(!l)throw Error("Couldn't decrypt auth cookie!");let u=JSON.parse(l);if(!u.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(u.csrf_k)))throw Error("Deep Auth Failed. `csrf` key not found in request headers!");let d=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!d)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!i().existsSync(`${d}/${u.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==u.verification_status&&!t){let e=await (0,n.A)(`SELECT verification_status FROM users WHERE id='${u.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(u?.date&&Date.now()-u.date>6048e5)throw Error("Key expired!");return u}catch(e){return console.log(`userAuth Error: ${e.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>n});function n(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",n=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",s=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",o=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),i=r;e?.userId&&(i+=`user_${e.userId}_`),o&&(i+=`${o}_`),i+=t;let a=r;e?.userId&&(a+=`user_${e.userId}_`),o&&(a+=`${o}_`),a+=n;let c=r;return e?.userId&&(c+=`user_${e.userId}_`),o&&(c+=`${o}_`),{keyCookieName:i,csrfCookieName:a,oneTimeCodeName:c+=s}}},61932:(e,r,t)=>{t.d(r,{A:()=>i});var n=t(48786),s=t(37275),o=t(7971);async function i({dbContext:e,paradigm:r,dbFullName:t,tableName:i,identifierColumnName:a,identifierValue:c,useLocal:l}){try{let u=!!l||!e?.match(/dsql.user/i)&&(!t||!!t.match(/^datasquirel$/)),d=l?o.A:u?n.A:s.default,_=`DELETE FROM \`${t}\`.\`${i}\` WHERE \`${a}\`=?`;return u?await d(_,[c]):await d({paradigm:r,queryString:_,queryValues:[c]})}catch(e){return null}}},67619:(e,r,t)=>{t.r(r),t.d(r,{default:()=>o});var n=t(29021),s=t.n(n);async function o({user:e,message:r,component:t,noMail:n,req:o}){let i=new Date,a=(()=>{if(!o)return null;try{let e=o.headers["x-forwarded-for"],r=o.headers["x-real-ip"],t=o.headers["cf-connecting-ip"],n=Array.isArray(e)?e[0]:e?.split(",")[0],s=t||n||r||o.socket.remoteAddress;if(!s)return null;return String(s)}catch(e){return null}})();try{let n=`🚀 SERVER ERROR =========================== +"use strict";(()=>{var e={};e.id=8105,e.ids=[8105],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},5134:(e,r,t)=>{t.r(r),t.d(r,{config:()=>m,default:()=>E,routeModule:()=>y});var n={};t.r(n),t.d(n,{default:()=>S});var s=t(89947),o=t(2706),i=t(96762),a=t(29021),c=t.n(a),l=t(33873),u=t.n(l),d=t(67619),_=t(69842),f=t(45185),p=t(61932);async function S(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await (0,_.A)(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let n=e.body,{media_name:s,media_url:o,media_thumbnail_url:i,media_path:a,media_thumbnail_path:l,folder:S}=n;"production".match(/production/);try{let e=n?.private==1;if(!process.env.DSQL_STATIC_SERVER_DIR)throw console.log("Static File ENV not Found!"),Error("No Static Path!");let s=(0,f.A)({isPrivate:e,userId:t.id,folder:n.folder?n.folder+"/":"",video:!!n.media_type?.match(/video/i)});if(!s)throw Error("Couldn't grab paths!");let{fileRootPath:a,urlRootPath:l,relativePath:d}=s;S?.match(/./);let _=o.match(/[^\/]+$/)[0],E=i.match(/[^\/]+$/)[0],m=u().normalize(a+_),y=u().normalize(a+E);c().unlinkSync(m);try{c().unlinkSync(y)}catch(e){}await (0,p.A)({dbFullName:"datasquirel",tableName:"user_media",identifierColumnName:"id",identifierValue:n.id}),r.json({success:!0})}catch(e){console.log("ERROR in deleting user media =>",e.message),(0,d.A)({component:"/api/deleteUserMedia/main-catch-error",message:e.message,user:t}),r.json({success:!1,msg:"Database Files could not be written!"})}}let E=(0,i.M)(n,"default"),m=(0,i.M)(n,"config"),y=new s.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/deleteUserMedia",pathname:"/api/deleteUserMedia",bundlePath:"",filename:""},userland:n})},45185:(e,r,t)=>{t.d(r,{A:()=>a});var n=t(29021),s=t.n(n),o=t(33873),i=t.n(o);function a({isPrivate:e,userId:r,folder:t,video:n,pathOnly:o}){"production".match(/production/);let a=process.env.DSQL_STATIC_SERVER_DIR;if(!a)return console.log("Static File ENV not Found!"),null;let c=e?`@/${n?"videos":"media"}/${t?t+"/":""}`:n?`/videos/user-videos/user-${r}/${t?t+"/":""}`:`/images/user-images/user-${r}/${t?t+"/":""}`,l=e?`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${r}/media/${t?t+"/":""}`:i().join(a,c);return s().existsSync(l)||o||s().mkdirSync(l,{recursive:!0}),{fileRootPath:l,urlRootPath:e?`@/media/${t?t+"/":""}`:`${process.env.DSQL_STATIC_HOST}${c}`,relativePath:c}}},69842:(e,r,t)=>{t.d(r,{A:()=>c});var n=t(48786),s=t(95969),o=t(29021),i=t.n(o),a=t(89159);async function c(e,r,t){try{let{keyCookieName:o,csrfCookieName:c}=(0,a.A)();if(!e.cookies?.[o]?.match(/./))throw Error("Request Cookies not Found!");let l=(0,s.A)({encryptedString:e.cookies[o]});if(!l)throw Error("Couldn't decrypt auth cookie!");let u=JSON.parse(l);if(!u.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(u.csrf_k)))throw console.log("req.headers",e.headers),console.log("userObject",u),Error("Deep Auth Failed. `csrf` key not found in request headers!");let d=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!d)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!i().existsSync(`${d}/${u.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==u.verification_status&&!t){let e=await (0,n.A)(`SELECT verification_status FROM users WHERE id='${u.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(u?.date&&Date.now()-u.date>6048e5)throw Error("Key expired!");return u}catch(e){return console.log(`userAuth Error: ${e.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>n});function n(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",n=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",s=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",o=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),i=r;e?.userId&&(i+=`user_${e.userId}_`),o&&(i+=`${o}_`),i+=t;let a=r;e?.userId&&(a+=`user_${e.userId}_`),o&&(a+=`${o}_`),a+=n;let c=r;return e?.userId&&(c+=`user_${e.userId}_`),o&&(c+=`${o}_`),{keyCookieName:i,csrfCookieName:a,oneTimeCodeName:c+=s}}},61932:(e,r,t)=>{t.d(r,{A:()=>i});var n=t(48786),s=t(37275),o=t(7971);async function i({dbContext:e,paradigm:r,dbFullName:t,tableName:i,identifierColumnName:a,identifierValue:c,useLocal:l}){try{let u=!!l||!e?.match(/dsql.user/i)&&(!t||!!t.match(/^datasquirel$/)),d=l?o.A:u?n.A:s.A,_=`DELETE FROM \`${t}\`.\`${i}\` WHERE \`${a}\`=?`;return u?await d(_,[c]):await d({paradigm:r,queryString:_,queryValues:[c]})}catch(e){return null}}},67619:(e,r,t)=>{t.d(r,{A:()=>o});var n=t(29021),s=t.n(n);async function o({user:e,message:r,component:t,noMail:n,req:o}){let i=new Date,a=(()=>{if(!o)return null;try{let e=o.headers["x-forwarded-for"],r=o.headers["x-real-ip"],t=o.headers["cf-connecting-ip"],n=Array.isArray(e)?e[0]:e?.split(",")[0],s=t||n||r||o.socket.remoteAddress;if(!s)return null;return String(s)}catch(e){return null}})();try{let n=`🚀 SERVER ERROR =========================== Error Message: ${r} Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(n+=` User Id: ${e?.id} @@ -13,4 +13,4 @@ Date: ${i.toDateString()} -${c}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},95969:(e,r,t)=>{t.d(r,{A:()=>o});var n=t(55511),s=t(79428);function o({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let o=r||process.env.DSQL_ENCRYPTION_PASSWORD,i=t||process.env.DSQL_ENCRYPTION_SALT,a=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!o?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let c=(0,n.scryptSync)(o,i,a),l=s.Buffer.alloc(16,0),u=(0,n.createDecipheriv)("aes-192-cbc",c,l);try{let r=u.update(e,"hex","utf8");return r+=u.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>n});async function n(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},37275:(e,r,t)=>{async function n(e,r,t){try{if("string"==typeof r){let n=await e.query(s(r),t);return JSON.parse(JSON.stringify(n))}if("object"!=typeof r)return null;{let t=[];for(let n=0;no})},7971:(e,r,t)=>{t.d(r,{A:()=>a});var n=t(9973),s=t.n(n),o=t(29021),i=t.n(o);async function a(...e){let r=s()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!i().existsSync(r)){console.log(`${r} does not exist`);return}return{ca:i().readFileSync(`${e}/ca-cert.pem`),rejectUnauthorized:!1}}()},onConnect:()=>{console.log("Connection Successful!")},onConnectError:e=>{console.log("Connection Error",e.message)},onError:e=>{console.log("Client Error",e.message)}});console.log("Querying ...");try{let t=await r.query(...e);return await r.end(),JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e.message),{success:!1,error:e.message}}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=5134);module.exports=t})(); \ No newline at end of file +${c}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},95969:(e,r,t)=>{t.d(r,{A:()=>o});var n=t(55511),s=t(79428);function o({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let o=r||process.env.DSQL_ENCRYPTION_PASSWORD,i=t||process.env.DSQL_ENCRYPTION_SALT,a=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!o?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let c=(0,n.scryptSync)(o,i,a),l=s.Buffer.alloc(16,0),u=(0,n.createDecipheriv)("aes-192-cbc",c,l);try{let r=u.update(e,"hex","utf8");return r+=u.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>n});async function n(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},37275:(e,r,t)=>{async function n(e,r,t){try{if("string"==typeof r){let n=await e.query(s(r),t);return JSON.parse(JSON.stringify(n))}if("object"!=typeof r)return null;{let t=[];for(let n=0;no})},7971:(e,r,t)=>{t.d(r,{A:()=>a});var n=t(9973),s=t.n(n),o=t(29021),i=t.n(o);async function a(...e){let r=s()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!i().existsSync(r)){console.log(`${r} does not exist`);return}return{ca:i().readFileSync(`${e}/ca-cert.pem`),rejectUnauthorized:!1}}()},onConnect:()=>{console.log("Connection Successful!")},onConnectError:e=>{console.log("Connection Error",e.message)},onError:e=>{console.log("Client Error",e.message)}});console.log("Querying ...");try{let t=await r.query(...e);return await r.end(),JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e.message),{success:!1,error:e.message}}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=5134);module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/deleteUserTable.js b/dsql-app/.local_dist/server/pages/api/deleteUserTable.js index 0626bbe..bd7c152 100644 --- a/dsql-app/.local_dist/server/pages/api/deleteUserTable.js +++ b/dsql-app/.local_dist/server/pages/api/deleteUserTable.js @@ -1,16 +1,16 @@ -"use strict";(()=>{var e={};e.id=5757,e.ids=[5757],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},96332:(e,r,t)=>{t.r(r),t.d(r,{config:()=>p,default:()=>_,routeModule:()=>E});var a={};t.r(a),t.d(a,{default:()=>f});var s=t(89947),n=t(2706),l=t(96762),o=t(30944),i=t(67619),c=t(69842),u=t(48786);let d=t(29021);async function f(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await (0,c.A)(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let a=e.body,{id:s,user_id:n,table_name:l,table_slug:f,table_description:_}=a.table,{db_full_name:p}=a.database;await (0,o.A)({database:p,queryString:`DROP TABLE \`${p}\`.\`${f}\``});let E=s?[s]:[f,t.id,a.database.id];await (0,u.A)(s?"DELETE FROM user_database_tables WHERE id=?":"DELETE FROM user_database_tables WHERE table_slug=? AND user_id=? AND db_id=?",E);try{let e;let a=`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${t.id}/main.json`,s=JSON.parse(d.readFileSync(a,"utf8")),n=s.filter((e,r)=>{if(e.dbFullName===p)return!0}),l=n[0].tables.filter((r,t)=>{if(r?.tableName===f)return e=t,!0});if(l[0].childTable){let e;let r=s.filter(e=>e.dbFullName===l[0].childTableDbFullName)[0].tables.filter(e=>{if(e.tableName===l[0].childTableName)return!0})[0];r.childrenTables?.filter((r,t)=>{r.tableName===f&&(e=t)}),"number"==typeof e&&r.childrenTables?.splice(e,1)}if(n[0].tables.splice(e,1),n[0].childrenDatabases)for(let e=0;ee.dbFullName===r.dbFullName)[0];e.tables=n[0].tables,await (0,u.A)("DELETE FROM user_database_tables WHERE table_slug=? AND user_id=? AND db_slug=?",[f,t.id,e.dbSlug])}catch(e){(0,i.default)({component:"/api/deleteUserTable/lines-125-128",message:e.message,user:t})}}d.writeFileSync(`${a}`,JSON.stringify(s),"utf8"),r.json({success:!0})}catch(e){(0,i.default)({component:"/api/deleteUserTable/main-catch-error",message:e.message,user:t}),r.json({success:!1,msg:"File Updates Failed"})}}let _=(0,l.M)(a,"default"),p=(0,l.M)(a,"config"),E=new s.PagesAPIRouteModule({definition:{kind:n.A.PAGES_API,page:"/api/deleteUserTable",pathname:"/api/deleteUserTable",bundlePath:"",filename:""},userland:a})},69842:(e,r,t)=>{t.d(r,{A:()=>i});var a=t(48786),s=t(95969),n=t(29021),l=t.n(n),o=t(89159);async function i(e,r,t){try{let{keyCookieName:n,csrfCookieName:i}=(0,o.A)();if(!e.cookies?.[n]?.match(/./))throw Error("Request Cookies not Found!");let c=(0,s.A)({encryptedString:e.cookies[n]});if(!c)throw Error("Couldn't decrypt auth cookie!");let u=JSON.parse(c);if(!u.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(u.csrf_k)))throw Error("Deep Auth Failed. `csrf` key not found in request headers!");let d=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!d)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!l().existsSync(`${d}/${u.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==u.verification_status&&!t){let e=await (0,a.A)(`SELECT verification_status FROM users WHERE id='${u.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(u?.date&&Date.now()-u.date>6048e5)throw Error("Key expired!");return u}catch(e){return console.log(`userAuth Error: ${e.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>a});function a(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",a=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",s=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",n=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),l=r;e?.userId&&(l+=`user_${e.userId}_`),n&&(l+=`${n}_`),l+=t;let o=r;e?.userId&&(o+=`user_${e.userId}_`),n&&(o+=`${n}_`),o+=a;let i=r;return e?.userId&&(i+=`user_${e.userId}_`),n&&(i+=`${n}_`),{keyCookieName:l,csrfCookieName:o,oneTimeCodeName:i+=s}}},43775:(e,r,t)=>{t.d(r,{A:()=>n});var a=t(95969);let s=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/;async function n({unparsedResults:e,tableSchema:r}){let t=[];try{for(let n=0;n",r.message),e}}},67619:(e,r,t)=>{t.r(r),t.d(r,{default:()=>n});var a=t(29021),s=t.n(a);async function n({user:e,message:r,component:t,noMail:a,req:n}){let l=new Date,o=(()=>{if(!n)return null;try{let e=n.headers["x-forwarded-for"],r=n.headers["x-real-ip"],t=n.headers["cf-connecting-ip"],a=Array.isArray(e)?e[0]:e?.split(",")[0],s=t||a||r||n.socket.remoteAddress;if(!s)return null;return String(s)}catch(e){return null}})();try{let a=`🚀 SERVER ERROR =========================== +"use strict";(()=>{var e={};e.id=5757,e.ids=[5757],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},96332:(e,r,t)=>{t.r(r),t.d(r,{config:()=>E,default:()=>p,routeModule:()=>m});var s={};t.r(s),t.d(s,{default:()=>f});var a=t(89947),n=t(2706),l=t(96762),o=t(29021),i=t.n(o),c=t(30944),u=t(67619),d=t(69842),_=t(48786);async function f(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await (0,d.A)(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let s=e.body,{id:a,user_id:n,table_name:l,table_slug:o,table_description:f}=s.table,{db_full_name:p}=s.database;await (0,c.A)({database:p,queryString:`DROP TABLE \`${p}\`.\`${o}\``});let E=a?[a]:[o,t.id,s.database.id];await (0,_.A)(a?"DELETE FROM user_database_tables WHERE id=?":"DELETE FROM user_database_tables WHERE table_slug=? AND user_id=? AND db_id=?",E);try{let e;let s=`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${t.id}/main.json`,a=JSON.parse(i().readFileSync(s,"utf8")),n=a.filter((e,r)=>{if(e.dbFullName===p)return!0}),l=n[0].tables.filter((r,t)=>{if(r?.tableName===o)return e=t,!0});if(l[0].childTable){let e;let r=a.filter(e=>e.dbFullName===l[0].childTableDbFullName)[0].tables.filter(e=>{if(e.tableName===l[0].childTableName)return!0})[0];r.childrenTables?.filter((r,t)=>{r.tableName===o&&(e=t)}),"number"==typeof e&&r.childrenTables?.splice(e,1)}if(n[0].tables.splice(e,1),n[0].childrenDatabases)for(let e=0;ee.dbFullName===r.dbFullName)[0];e.tables=n[0].tables,await (0,_.A)("DELETE FROM user_database_tables WHERE table_slug=? AND user_id=? AND db_slug=?",[o,t.id,e.dbSlug])}catch(e){(0,u.A)({component:"/api/deleteUserTable/lines-125-128",message:e.message,user:t})}}i().writeFileSync(`${s}`,JSON.stringify(a),"utf8"),r.json({success:!0})}catch(e){(0,u.A)({component:"/api/deleteUserTable/main-catch-error",message:e.message,user:t}),r.json({success:!1,msg:"File Updates Failed"})}}let p=(0,l.M)(s,"default"),E=(0,l.M)(s,"config"),m=new a.PagesAPIRouteModule({definition:{kind:n.A.PAGES_API,page:"/api/deleteUserTable",pathname:"/api/deleteUserTable",bundlePath:"",filename:""},userland:s})},69842:(e,r,t)=>{t.d(r,{A:()=>i});var s=t(48786),a=t(95969),n=t(29021),l=t.n(n),o=t(89159);async function i(e,r,t){try{let{keyCookieName:n,csrfCookieName:i}=(0,o.A)();if(!e.cookies?.[n]?.match(/./))throw Error("Request Cookies not Found!");let c=(0,a.A)({encryptedString:e.cookies[n]});if(!c)throw Error("Couldn't decrypt auth cookie!");let u=JSON.parse(c);if(!u.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(u.csrf_k)))throw console.log("req.headers",e.headers),console.log("userObject",u),Error("Deep Auth Failed. `csrf` key not found in request headers!");let d=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!d)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!l().existsSync(`${d}/${u.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==u.verification_status&&!t){let e=await (0,s.A)(`SELECT verification_status FROM users WHERE id='${u.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(u?.date&&Date.now()-u.date>6048e5)throw Error("Key expired!");return u}catch(e){return console.log(`userAuth Error: ${e.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>s});function s(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",a=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",n=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),l=r;e?.userId&&(l+=`user_${e.userId}_`),n&&(l+=`${n}_`),l+=t;let o=r;e?.userId&&(o+=`user_${e.userId}_`),n&&(o+=`${n}_`),o+=s;let i=r;return e?.userId&&(i+=`user_${e.userId}_`),n&&(i+=`${n}_`),{keyCookieName:l,csrfCookieName:o,oneTimeCodeName:i+=a}}},43775:(e,r,t)=>{t.d(r,{A:()=>n});var s=t(95969);let a=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/;async function n({unparsedResults:e,tableSchema:r}){let t=[];try{for(let n=0;n",r.message),e}}},67619:(e,r,t)=>{t.d(r,{A:()=>n});var s=t(29021),a=t.n(s);async function n({user:e,message:r,component:t,noMail:s,req:n}){let l=new Date,o=(()=>{if(!n)return null;try{let e=n.headers["x-forwarded-for"],r=n.headers["x-real-ip"],t=n.headers["cf-connecting-ip"],s=Array.isArray(e)?e[0]:e?.split(",")[0],a=t||s||r||n.socket.remoteAddress;if(!a)return null;return String(a)}catch(e){return null}})();try{let s=`🚀 SERVER ERROR =========================== Error Message: ${r} -Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(a+=` +Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(s+=` User Id: ${e?.id} User Name: ${e?.first_name} ${e?.last_name} -User Email: ${e?.email}`),n?.url&&(a+=` -URL: ${n.url}`),n?.body&&(a+=` -Request Body: ${JSON.stringify(n.body,null,4)}`),o&&(a+=` -IP: ${o}`),a+=` +User Email: ${e?.email}`),n?.url&&(s+=` +URL: ${n.url}`),n?.body&&(s+=` +Request Body: ${JSON.stringify(n.body,null,4)}`),o&&(s+=` +IP: ${o}`),s+=` Date: ${l.toDateString()} -========================================`,s().existsSync("./.tmp/error.log")||s().writeFileSync("./.tmp/error.log","","utf-8");let i=s().readFileSync("./.tmp/error.log","utf-8");s().writeFileSync("./.tmp/error.log",a),s().appendFileSync("./.tmp/error.log",` +========================================`,a().existsSync("./.tmp/error.log")||a().writeFileSync("./.tmp/error.log","","utf-8");let i=a().readFileSync("./.tmp/error.log","utf-8");a().writeFileSync("./.tmp/error.log",s),a().appendFileSync("./.tmp/error.log",` -${i}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},30944:(e,r,t)=>{t.d(r,{A:()=>i});var a=t(43775),s=t(67619),n=t(48786),l=t(37275),o=t(7971);async function i({queryString:e,queryValuesArray:r,database:t,tableSchema:i,useLocal:c}){let u;let d=!!c||!!t?.match(/^datasquirel$/),f=c?o.A:d?n.A:l.default;try{u=e&&r&&Array.isArray(r)&&r[0]?d?await f(e,r):await f({paradigm:"Full Access",queryString:e,queryValues:r}):d?await f(e):await f({paradigm:"Full Access",queryString:e})}catch(e){console.log(`varDatabaseDbHandler Error: ${e.message}`),(0,s.default)({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(u&&i)try{let e=u;return await (0,a.A)({unparsedResults:e,tableSchema:i})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",t,e),(0,s.default)({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(u)return u;else return null}},95969:(e,r,t)=>{t.d(r,{A:()=>n});var a=t(55511),s=t(79428);function n({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let n=r||process.env.DSQL_ENCRYPTION_PASSWORD,l=t||process.env.DSQL_ENCRYPTION_SALT,o=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!n?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!l?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let i=(0,a.scryptSync)(n,l,o),c=s.Buffer.alloc(16,0),u=(0,a.createDecipheriv)("aes-192-cbc",i,c);try{let r=u.update(e,"hex","utf8");return r+=u.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>a});async function a(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},37275:(e,r,t)=>{async function a(e,r,t){try{if("string"==typeof r){let a=await e.query(s(r),t);return JSON.parse(JSON.stringify(a))}if("object"!=typeof r)return null;{let t=[];for(let a=0;an})},7971:(e,r,t)=>{t.d(r,{A:()=>o});var a=t(9973),s=t.n(a),n=t(29021),l=t.n(n);async function o(...e){let r=s()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!l().existsSync(r)){console.log(`${r} does not exist`);return}return{ca:l().readFileSync(`${e}/ca-cert.pem`),rejectUnauthorized:!1}}()},onConnect:()=>{console.log("Connection Successful!")},onConnectError:e=>{console.log("Connection Error",e.message)},onError:e=>{console.log("Client Error",e.message)}});console.log("Querying ...");try{let t=await r.query(...e);return await r.end(),JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e.message),{success:!1,error:e.message}}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=96332);module.exports=t})(); \ No newline at end of file +${i}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},30944:(e,r,t)=>{t.d(r,{A:()=>i});var s=t(43775),a=t(67619),n=t(48786),l=t(37275),o=t(7971);async function i({queryString:e,queryValuesArray:r,database:t,tableSchema:i,useLocal:c}){let u;let d=!!c||!!t?.match(/^datasquirel$/),_=c?o.A:d?n.A:l.A;try{u=e&&r&&Array.isArray(r)&&r[0]?d?await _(e,r):await _({paradigm:"Full Access",queryString:e,queryValues:r}):d?await _(e):await _({paradigm:"Full Access",queryString:e})}catch(e){console.log(`varDatabaseDbHandler Error: ${e.message}`),(0,a.A)({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(u&&i)try{let e=u;return await (0,s.A)({unparsedResults:e,tableSchema:i})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",t,e),(0,a.A)({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(u)return u;else return null}},95969:(e,r,t)=>{t.d(r,{A:()=>n});var s=t(55511),a=t(79428);function n({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let n=r||process.env.DSQL_ENCRYPTION_PASSWORD,l=t||process.env.DSQL_ENCRYPTION_SALT,o=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!n?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!l?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let i=(0,s.scryptSync)(n,l,o),c=a.Buffer.alloc(16,0),u=(0,s.createDecipheriv)("aes-192-cbc",i,c);try{let r=u.update(e,"hex","utf8");return r+=u.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>s});async function s(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},37275:(e,r,t)=>{async function s(e,r,t){try{if("string"==typeof r){let s=await e.query(a(r),t);return JSON.parse(JSON.stringify(s))}if("object"!=typeof r)return null;{let t=[];for(let s=0;sn})},7971:(e,r,t)=>{t.d(r,{A:()=>o});var s=t(9973),a=t.n(s),n=t(29021),l=t.n(n);async function o(...e){let r=a()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!l().existsSync(r)){console.log(`${r} does not exist`);return}return{ca:l().readFileSync(`${e}/ca-cert.pem`),rejectUnauthorized:!1}}()},onConnect:()=>{console.log("Connection Successful!")},onConnectError:e=>{console.log("Connection Error",e.message)},onError:e=>{console.log("Client Error",e.message)}});console.log("Querying ...");try{let t=await r.query(...e);return await r.end(),JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e.message),{success:!1,error:e.message}}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=96332);module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/deleteUserUser.js b/dsql-app/.local_dist/server/pages/api/deleteUserUser.js index 744138b..94eaee6 100644 --- a/dsql-app/.local_dist/server/pages/api/deleteUserUser.js +++ b/dsql-app/.local_dist/server/pages/api/deleteUserUser.js @@ -1 +1 @@ -"use strict";(()=>{var e={};e.id=3462,e.ids=[3462],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},22792:(e,r,t)=>{t.r(r),t.d(r,{config:()=>_,default:()=>d,routeModule:()=>l});var s={};t.r(s),t.d(s,{default:()=>c});var n=t(89947),i=t(2706),o=t(96762),a=t(48786),u=t(69842);async function c(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await (0,u.A)(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let s=e.body,{user_type:n,user_id:i,email:o,invited_user_id:c}=s;await (0,a.A)("DELETE FROM user_users WHERE id=?",[s.id]),n?.match(/admin/i)&&(await (0,a.A)("DELETE FROM invitations WHERE inviting_user_id=? AND invited_user_email=?",[t.id,o]),await (0,a.A)("DELETE FROM delegated_user_tables WHERE delegated_user_id=? AND root_user_id=?",[c,t.id])),r.json({success:!0,msg:"User Deleted!"})}t(29021);let d=(0,o.M)(s,"default"),_=(0,o.M)(s,"config"),l=new n.PagesAPIRouteModule({definition:{kind:i.A.PAGES_API,page:"/api/deleteUserUser",pathname:"/api/deleteUserUser",bundlePath:"",filename:""},userland:s})},69842:(e,r,t)=>{t.d(r,{A:()=>u});var s=t(48786),n=t(95969),i=t(29021),o=t.n(i),a=t(89159);async function u(e,r,t){try{let{keyCookieName:i,csrfCookieName:u}=(0,a.A)();if(!e.cookies?.[i]?.match(/./))throw Error("Request Cookies not Found!");let c=(0,n.A)({encryptedString:e.cookies[i]});if(!c)throw Error("Couldn't decrypt auth cookie!");let d=JSON.parse(c);if(!d.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(d.csrf_k)))throw Error("Deep Auth Failed. `csrf` key not found in request headers!");let _=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!_)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!o().existsSync(`${_}/${d.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==d.verification_status&&!t){let e=await (0,s.A)(`SELECT verification_status FROM users WHERE id='${d.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(d?.date&&Date.now()-d.date>6048e5)throw Error("Key expired!");return d}catch(e){return console.log(`userAuth Error: ${e.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>s});function s(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",n=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",i=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),o=r;e?.userId&&(o+=`user_${e.userId}_`),i&&(o+=`${i}_`),o+=t;let a=r;e?.userId&&(a+=`user_${e.userId}_`),i&&(a+=`${i}_`),a+=s;let u=r;return e?.userId&&(u+=`user_${e.userId}_`),i&&(u+=`${i}_`),{keyCookieName:o,csrfCookieName:a,oneTimeCodeName:u+=n}}},95969:(e,r,t)=>{t.d(r,{A:()=>i});var s=t(55511),n=t(79428);function i({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let i=r||process.env.DSQL_ENCRYPTION_PASSWORD,o=t||process.env.DSQL_ENCRYPTION_SALT,a=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!i?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!o?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let u=(0,s.scryptSync)(i,o,a),c=n.Buffer.alloc(16,0),d=(0,s.createDecipheriv)("aes-192-cbc",u,c);try{let r=d.update(e,"hex","utf8");return r+=d.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>s});async function s(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=22792);module.exports=t})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=3462,e.ids=[3462],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},22792:(e,r,t)=>{t.r(r),t.d(r,{config:()=>l,default:()=>d,routeModule:()=>_});var s={};t.r(s),t.d(s,{default:()=>c});var n=t(89947),o=t(2706),i=t(96762),a=t(48786),u=t(69842);async function c(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await (0,u.A)(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let s=e.body,{user_type:n,user_id:o,email:i,invited_user_id:c}=s;await (0,a.A)("DELETE FROM user_users WHERE id=?",[s.id]),n?.match(/admin/i)&&(await (0,a.A)("DELETE FROM invitations WHERE inviting_user_id=? AND invited_user_email=?",[t.id,i]),await (0,a.A)("DELETE FROM delegated_user_tables WHERE delegated_user_id=? AND root_user_id=?",[c,t.id])),r.json({success:!0,msg:"User Deleted!"})}let d=(0,i.M)(s,"default"),l=(0,i.M)(s,"config"),_=new n.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/deleteUserUser",pathname:"/api/deleteUserUser",bundlePath:"",filename:""},userland:s})},69842:(e,r,t)=>{t.d(r,{A:()=>u});var s=t(48786),n=t(95969),o=t(29021),i=t.n(o),a=t(89159);async function u(e,r,t){try{let{keyCookieName:o,csrfCookieName:u}=(0,a.A)();if(!e.cookies?.[o]?.match(/./))throw Error("Request Cookies not Found!");let c=(0,n.A)({encryptedString:e.cookies[o]});if(!c)throw Error("Couldn't decrypt auth cookie!");let d=JSON.parse(c);if(!d.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(d.csrf_k)))throw console.log("req.headers",e.headers),console.log("userObject",d),Error("Deep Auth Failed. `csrf` key not found in request headers!");let l=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!l)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!i().existsSync(`${l}/${d.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==d.verification_status&&!t){let e=await (0,s.A)(`SELECT verification_status FROM users WHERE id='${d.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(d?.date&&Date.now()-d.date>6048e5)throw Error("Key expired!");return d}catch(e){return console.log(`userAuth Error: ${e.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>s});function s(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",n=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",o=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),i=r;e?.userId&&(i+=`user_${e.userId}_`),o&&(i+=`${o}_`),i+=t;let a=r;e?.userId&&(a+=`user_${e.userId}_`),o&&(a+=`${o}_`),a+=s;let u=r;return e?.userId&&(u+=`user_${e.userId}_`),o&&(u+=`${o}_`),{keyCookieName:i,csrfCookieName:a,oneTimeCodeName:u+=n}}},95969:(e,r,t)=>{t.d(r,{A:()=>o});var s=t(55511),n=t(79428);function o({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let o=r||process.env.DSQL_ENCRYPTION_PASSWORD,i=t||process.env.DSQL_ENCRYPTION_SALT,a=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!o?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let u=(0,s.scryptSync)(o,i,a),c=n.Buffer.alloc(16,0),d=(0,s.createDecipheriv)("aes-192-cbc",u,c);try{let r=d.update(e,"hex","utf8");return r+=d.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>s});async function s(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=22792);module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/downloadDatabaseSchema.js b/dsql-app/.local_dist/server/pages/api/downloadDatabaseSchema.js index 815f2b3..23bdf2e 100644 --- a/dsql-app/.local_dist/server/pages/api/downloadDatabaseSchema.js +++ b/dsql-app/.local_dist/server/pages/api/downloadDatabaseSchema.js @@ -1 +1 @@ -"use strict";(()=>{var e={};e.id=7317,e.ids=[7317],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},86254:(e,r,t)=>{t.r(r),t.d(r,{config:()=>_,default:()=>d,routeModule:()=>f});var n={};t.r(n),t.d(n,{default:()=>l});var o=t(89947),s=t(2706),i=t(96762),a=t(69842);let u=t(29021),c=t(33873);async function l(e,r){if("GET"!==e.method)return r.json({msg:"Failed!"});let t=await (0,a.A)(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let{dbName:n}=e.query;try{let e=c.resolve(String(process.env.DSQL_USER_DB_SCHEMA_PATH),`user-${t.id}/main.json`);if(!u.existsSync(e))return r.end();let o=JSON.parse(u.readFileSync(e,"utf-8")).find(e=>e.dbFullName==n);if(!o)throw Error("Database not found!");let s=c.resolve(process.cwd(),"./.tmp/_tmp.json");u.writeFileSync(s,JSON.stringify(o),"utf-8");let i=u.createReadStream(s);i.pipe(r),i.on("close",()=>{u.unlinkSync(s)})}catch(e){return console.log(e),r.end()}}let d=(0,i.M)(n,"default"),_=(0,i.M)(n,"config"),f=new o.PagesAPIRouteModule({definition:{kind:s.A.PAGES_API,page:"/api/downloadDatabaseSchema",pathname:"/api/downloadDatabaseSchema",bundlePath:"",filename:""},userland:n})},69842:(e,r,t)=>{t.d(r,{A:()=>u});var n=t(48786),o=t(95969),s=t(29021),i=t.n(s),a=t(89159);async function u(e,r,t){try{let{keyCookieName:s,csrfCookieName:u}=(0,a.A)();if(!e.cookies?.[s]?.match(/./))throw Error("Request Cookies not Found!");let c=(0,o.A)({encryptedString:e.cookies[s]});if(!c)throw Error("Couldn't decrypt auth cookie!");let l=JSON.parse(c);if(!l.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(l.csrf_k)))throw Error("Deep Auth Failed. `csrf` key not found in request headers!");let d=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!d)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!i().existsSync(`${d}/${l.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==l.verification_status&&!t){let e=await (0,n.A)(`SELECT verification_status FROM users WHERE id='${l.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(l?.date&&Date.now()-l.date>6048e5)throw Error("Key expired!");return l}catch(e){return console.log(`userAuth Error: ${e.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>n});function n(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",n=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",o=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",s=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),i=r;e?.userId&&(i+=`user_${e.userId}_`),s&&(i+=`${s}_`),i+=t;let a=r;e?.userId&&(a+=`user_${e.userId}_`),s&&(a+=`${s}_`),a+=n;let u=r;return e?.userId&&(u+=`user_${e.userId}_`),s&&(u+=`${s}_`),{keyCookieName:i,csrfCookieName:a,oneTimeCodeName:u+=o}}},95969:(e,r,t)=>{t.d(r,{A:()=>s});var n=t(55511),o=t(79428);function s({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let s=r||process.env.DSQL_ENCRYPTION_PASSWORD,i=t||process.env.DSQL_ENCRYPTION_SALT,a=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!s?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let u=(0,n.scryptSync)(s,i,a),c=o.Buffer.alloc(16,0),l=(0,n.createDecipheriv)("aes-192-cbc",u,c);try{let r=l.update(e,"hex","utf8");return r+=l.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>n});async function n(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=86254);module.exports=t})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=7317,e.ids=[7317],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},86254:(e,r,t)=>{t.r(r),t.d(r,{config:()=>p,default:()=>f,routeModule:()=>E});var n={};t.r(n),t.d(n,{default:()=>_});var o=t(89947),s=t(2706),i=t(96762),a=t(29021),u=t.n(a),c=t(33873),l=t.n(c),d=t(69842);async function _(e,r){if("GET"!==e.method)return r.json({msg:"Failed!"});let t=await (0,d.A)(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let{dbName:n}=e.query;try{let e=l().resolve(String(process.env.DSQL_USER_DB_SCHEMA_PATH),`user-${t.id}/main.json`);if(!u().existsSync(e))return r.end();let o=JSON.parse(u().readFileSync(e,"utf-8")).find(e=>e.dbFullName==n);if(!o)throw Error("Database not found!");let s=l().resolve(process.cwd(),"./.tmp/_tmp.json");u().writeFileSync(s,JSON.stringify(o),"utf-8");let i=u().createReadStream(s);i.pipe(r),i.on("close",()=>{u().unlinkSync(s)})}catch(e){return console.log(e),r.end()}}let f=(0,i.M)(n,"default"),p=(0,i.M)(n,"config"),E=new o.PagesAPIRouteModule({definition:{kind:s.A.PAGES_API,page:"/api/downloadDatabaseSchema",pathname:"/api/downloadDatabaseSchema",bundlePath:"",filename:""},userland:n})},69842:(e,r,t)=>{t.d(r,{A:()=>u});var n=t(48786),o=t(95969),s=t(29021),i=t.n(s),a=t(89159);async function u(e,r,t){try{let{keyCookieName:s,csrfCookieName:u}=(0,a.A)();if(!e.cookies?.[s]?.match(/./))throw Error("Request Cookies not Found!");let c=(0,o.A)({encryptedString:e.cookies[s]});if(!c)throw Error("Couldn't decrypt auth cookie!");let l=JSON.parse(c);if(!l.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(l.csrf_k)))throw console.log("req.headers",e.headers),console.log("userObject",l),Error("Deep Auth Failed. `csrf` key not found in request headers!");let d=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!d)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!i().existsSync(`${d}/${l.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==l.verification_status&&!t){let e=await (0,n.A)(`SELECT verification_status FROM users WHERE id='${l.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(l?.date&&Date.now()-l.date>6048e5)throw Error("Key expired!");return l}catch(e){return console.log(`userAuth Error: ${e.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>n});function n(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",n=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",o=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",s=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),i=r;e?.userId&&(i+=`user_${e.userId}_`),s&&(i+=`${s}_`),i+=t;let a=r;e?.userId&&(a+=`user_${e.userId}_`),s&&(a+=`${s}_`),a+=n;let u=r;return e?.userId&&(u+=`user_${e.userId}_`),s&&(u+=`${s}_`),{keyCookieName:i,csrfCookieName:a,oneTimeCodeName:u+=o}}},95969:(e,r,t)=>{t.d(r,{A:()=>s});var n=t(55511),o=t(79428);function s({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let s=r||process.env.DSQL_ENCRYPTION_PASSWORD,i=t||process.env.DSQL_ENCRYPTION_SALT,a=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!s?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let u=(0,n.scryptSync)(s,i,a),c=o.Buffer.alloc(16,0),l=(0,n.createDecipheriv)("aes-192-cbc",u,c);try{let r=l.update(e,"hex","utf8");return r+=l.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>n});async function n(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=86254);module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/exportDatabase.js b/dsql-app/.local_dist/server/pages/api/exportDatabase.js index 7e0ae75..2ca27ea 100644 --- a/dsql-app/.local_dist/server/pages/api/exportDatabase.js +++ b/dsql-app/.local_dist/server/pages/api/exportDatabase.js @@ -1,16 +1,16 @@ -"use strict";(()=>{var e={};e.id=7402,e.ids=[7402],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},79428:e=>{e.exports=require("buffer")},79646:e=>{e.exports=require("child_process")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},21820:e=>{e.exports=require("os")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},87476:(e,r,t)=>{t.r(r),t.d(r,{config:()=>m,default:()=>S,routeModule:()=>y});var n={};t.r(n),t.d(n,{default:()=>E});var s=t(89947),o=t(2706),i=t(96762),a=t(29021),c=t.n(a),l=t(21820),u=t.n(l),d=t(79646),p=t(67619);async function _({dbName:e,user:r,res:t}){let n=u().platform().match(/win/i)?"'C:\\Program Files\\MySQL\\MySQL Server 8.0\\bin\\mysqldump.exe'":"mysqldump";try{let s={cwd:process.cwd()},o=`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${r.id}/export.sql`;u().platform().match(/win/i)&&(s.shell="bash.exe");let i=`${n} -u ${process.env.DSQL_DB_USERNAME} -h ${process.env.DSQL_DB_HOST} -p${process.env.DSQL_DB_PASSWORD} ${e} > ${o}`;console.log(`exportDb.ts exe => ${i}`),(0,d.execSync)(i,s),t.setHeader("Content-Type","application/zip"),t.setHeader("Content-Disposition","attachment; filename=export.sql"),c().createReadStream(o).pipe(t)}catch(e){(0,p.default)({component:"/functions/backend/exportDb/lines-30-46",message:e.message,user:r})}}var f=t(69842);async function E(e,r){if("GET"!==e.method)return r.json({msg:"Failed!"});let t=await (0,f.A)(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let{dbName:n}=e.query;await _({dbName:n?.toString()||"",res:r,user:t})}let S=(0,i.M)(n,"default"),m=(0,i.M)(n,"config"),y=new s.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/exportDatabase",pathname:"/api/exportDatabase",bundlePath:"",filename:""},userland:n})},69842:(e,r,t)=>{t.d(r,{A:()=>c});var n=t(48786),s=t(95969),o=t(29021),i=t.n(o),a=t(89159);async function c(e,r,t){try{let{keyCookieName:o,csrfCookieName:c}=(0,a.A)();if(!e.cookies?.[o]?.match(/./))throw Error("Request Cookies not Found!");let l=(0,s.A)({encryptedString:e.cookies[o]});if(!l)throw Error("Couldn't decrypt auth cookie!");let u=JSON.parse(l);if(!u.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(u.csrf_k)))throw Error("Deep Auth Failed. `csrf` key not found in request headers!");let d=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!d)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!i().existsSync(`${d}/${u.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==u.verification_status&&!t){let e=await (0,n.A)(`SELECT verification_status FROM users WHERE id='${u.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(u?.date&&Date.now()-u.date>6048e5)throw Error("Key expired!");return u}catch(e){return console.log(`userAuth Error: ${e.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>n});function n(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",n=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",s=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",o=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),i=r;e?.userId&&(i+=`user_${e.userId}_`),o&&(i+=`${o}_`),i+=t;let a=r;e?.userId&&(a+=`user_${e.userId}_`),o&&(a+=`${o}_`),a+=n;let c=r;return e?.userId&&(c+=`user_${e.userId}_`),o&&(c+=`${o}_`),{keyCookieName:i,csrfCookieName:a,oneTimeCodeName:c+=s}}},67619:(e,r,t)=>{t.r(r),t.d(r,{default:()=>o});var n=t(29021),s=t.n(n);async function o({user:e,message:r,component:t,noMail:n,req:o}){let i=new Date,a=(()=>{if(!o)return null;try{let e=o.headers["x-forwarded-for"],r=o.headers["x-real-ip"],t=o.headers["cf-connecting-ip"],n=Array.isArray(e)?e[0]:e?.split(",")[0],s=t||n||r||o.socket.remoteAddress;if(!s)return null;return String(s)}catch(e){return null}})();try{let n=`🚀 SERVER ERROR =========================== +"use strict";(()=>{var e={};e.id=7402,e.ids=[7402],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},79428:e=>{e.exports=require("buffer")},79646:e=>{e.exports=require("child_process")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},21820:e=>{e.exports=require("os")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},87476:(e,r,t)=>{t.r(r),t.d(r,{config:()=>m,default:()=>S,routeModule:()=>y});var s={};t.r(s),t.d(s,{default:()=>E});var n=t(89947),o=t(2706),i=t(96762),a=t(29021),c=t.n(a),l=t(21820),u=t.n(l),d=t(79646),p=t(67619);async function _({dbName:e,user:r,res:t}){let s=u().platform().match(/win/i)?"'C:\\Program Files\\MySQL\\MySQL Server 8.0\\bin\\mysqldump.exe'":"mysqldump";try{let n={cwd:process.cwd()},o=`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${r.id}/export.sql`;u().platform().match(/win/i)&&(n.shell="bash.exe");let i=`${s} -u ${process.env.DSQL_DB_USERNAME} -h ${process.env.DSQL_DB_HOST} -p${process.env.DSQL_DB_PASSWORD} ${e} > ${o}`;console.log(`exportDb.ts exe => ${i}`),(0,d.execSync)(i,n),t.setHeader("Content-Type","application/zip"),t.setHeader("Content-Disposition","attachment; filename=export.sql"),c().createReadStream(o).pipe(t)}catch(e){(0,p.A)({component:"/functions/backend/exportDb/lines-30-46",message:e.message,user:r})}}var f=t(69842);async function E(e,r){if("GET"!==e.method)return r.json({msg:"Failed!"});let t=await (0,f.A)(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let{dbName:s}=e.query;await _({dbName:s?.toString()||"",res:r,user:t})}let S=(0,i.M)(s,"default"),m=(0,i.M)(s,"config"),y=new n.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/exportDatabase",pathname:"/api/exportDatabase",bundlePath:"",filename:""},userland:s})},69842:(e,r,t)=>{t.d(r,{A:()=>c});var s=t(48786),n=t(95969),o=t(29021),i=t.n(o),a=t(89159);async function c(e,r,t){try{let{keyCookieName:o,csrfCookieName:c}=(0,a.A)();if(!e.cookies?.[o]?.match(/./))throw Error("Request Cookies not Found!");let l=(0,n.A)({encryptedString:e.cookies[o]});if(!l)throw Error("Couldn't decrypt auth cookie!");let u=JSON.parse(l);if(!u.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(u.csrf_k)))throw console.log("req.headers",e.headers),console.log("userObject",u),Error("Deep Auth Failed. `csrf` key not found in request headers!");let d=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!d)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!i().existsSync(`${d}/${u.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==u.verification_status&&!t){let e=await (0,s.A)(`SELECT verification_status FROM users WHERE id='${u.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(u?.date&&Date.now()-u.date>6048e5)throw Error("Key expired!");return u}catch(e){return console.log(`userAuth Error: ${e.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>s});function s(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",n=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",o=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),i=r;e?.userId&&(i+=`user_${e.userId}_`),o&&(i+=`${o}_`),i+=t;let a=r;e?.userId&&(a+=`user_${e.userId}_`),o&&(a+=`${o}_`),a+=s;let c=r;return e?.userId&&(c+=`user_${e.userId}_`),o&&(c+=`${o}_`),{keyCookieName:i,csrfCookieName:a,oneTimeCodeName:c+=n}}},67619:(e,r,t)=>{t.d(r,{A:()=>o});var s=t(29021),n=t.n(s);async function o({user:e,message:r,component:t,noMail:s,req:o}){let i=new Date,a=(()=>{if(!o)return null;try{let e=o.headers["x-forwarded-for"],r=o.headers["x-real-ip"],t=o.headers["cf-connecting-ip"],s=Array.isArray(e)?e[0]:e?.split(",")[0],n=t||s||r||o.socket.remoteAddress;if(!n)return null;return String(n)}catch(e){return null}})();try{let s=`🚀 SERVER ERROR =========================== Error Message: ${r} -Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(n+=` +Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(s+=` User Id: ${e?.id} User Name: ${e?.first_name} ${e?.last_name} -User Email: ${e?.email}`),o?.url&&(n+=` -URL: ${o.url}`),o?.body&&(n+=` -Request Body: ${JSON.stringify(o.body,null,4)}`),a&&(n+=` -IP: ${a}`),n+=` +User Email: ${e?.email}`),o?.url&&(s+=` +URL: ${o.url}`),o?.body&&(s+=` +Request Body: ${JSON.stringify(o.body,null,4)}`),a&&(s+=` +IP: ${a}`),s+=` Date: ${i.toDateString()} -========================================`,s().existsSync("./.tmp/error.log")||s().writeFileSync("./.tmp/error.log","","utf-8");let c=s().readFileSync("./.tmp/error.log","utf-8");s().writeFileSync("./.tmp/error.log",n),s().appendFileSync("./.tmp/error.log",` +========================================`,n().existsSync("./.tmp/error.log")||n().writeFileSync("./.tmp/error.log","","utf-8");let c=n().readFileSync("./.tmp/error.log","utf-8");n().writeFileSync("./.tmp/error.log",s),n().appendFileSync("./.tmp/error.log",` -${c}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},95969:(e,r,t)=>{t.d(r,{A:()=>o});var n=t(55511),s=t(79428);function o({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let o=r||process.env.DSQL_ENCRYPTION_PASSWORD,i=t||process.env.DSQL_ENCRYPTION_SALT,a=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!o?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let c=(0,n.scryptSync)(o,i,a),l=s.Buffer.alloc(16,0),u=(0,n.createDecipheriv)("aes-192-cbc",c,l);try{let r=u.update(e,"hex","utf8");return r+=u.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>n});async function n(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=87476);module.exports=t})(); \ No newline at end of file +${c}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},95969:(e,r,t)=>{t.d(r,{A:()=>o});var s=t(55511),n=t(79428);function o({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let o=r||process.env.DSQL_ENCRYPTION_PASSWORD,i=t||process.env.DSQL_ENCRYPTION_SALT,a=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!o?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let c=(0,s.scryptSync)(o,i,a),l=n.Buffer.alloc(16,0),u=(0,s.createDecipheriv)("aes-192-cbc",c,l);try{let r=u.update(e,"hex","utf8");return r+=u.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>s});async function s(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=87476);module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/exportTableData.js b/dsql-app/.local_dist/server/pages/api/exportTableData.js index cd2e88d..4ee02ac 100644 --- a/dsql-app/.local_dist/server/pages/api/exportTableData.js +++ b/dsql-app/.local_dist/server/pages/api/exportTableData.js @@ -1,4 +1,4 @@ -"use strict";(()=>{var e={};e.id=4727,e.ids=[4727],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},72583:e=>{e.exports=require("sanitize-html")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},27310:(e,r,t)=>{t.r(r),t.d(r,{config:()=>p,default:()=>d,routeModule:()=>f});var s={};t.r(s),t.d(s,{config:()=>u,default:()=>c});var a=t(89947),o=t(2706),n=t(96762),i=t(69842),l=t(33170);let u={api:{responseLimit:"1mb",bodyParser:{sizeLimit:"200mb"}}};async function c(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await (0,i.A)(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let{paradigm:s,dbName:a,tableName:o,payload:n}=e.body;try{let e=await (0,l.A)({dbName:a,paradigm:s,payload:n,tableName:o,userId:t.id,payloadType:"base64"});if(!e)return r.json({success:!1,msg:"Operation Failed!"});r.json({success:!0,msg:"Success!",data:e?.tableData})}catch(e){r.json({success:!1,msg:e.message})}}let d=(0,n.M)(s,"default"),p=(0,n.M)(s,"config"),f=new a.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/exportTableData",pathname:"/api/exportTableData",bundlePath:"",filename:""},userland:s})},33170:(e,r,t)=>{t.d(r,{A:()=>n});var s=t(98e3),a=t(67619),o=t(48786);async function n({paradigm:e,userId:r,dbName:t,tableName:n,payload:i,payloadType:l}){let u={};try{let a=`${process.env.DSQL_USER_DB_PREFIX}${r}_${t.replace(/ /g,"")}`;switch(e){case"export":let c=await (0,o.A)(`SELECT * FROM \`${a}\`.\`${n}\``);u.tableData=c;break;case"import":let d="base64"==l?Buffer.from(i,"base64").toString():i,p="object"===l?i:JSON.parse(d);for(let e=0;e{t.d(r,{A:()=>l});var s=t(48786),a=t(95969),o=t(29021),n=t.n(o),i=t(89159);async function l(e,r,t){try{let{keyCookieName:o,csrfCookieName:l}=(0,i.A)();if(!e.cookies?.[o]?.match(/./))throw Error("Request Cookies not Found!");let u=(0,a.A)({encryptedString:e.cookies[o]});if(!u)throw Error("Couldn't decrypt auth cookie!");let c=JSON.parse(u);if(!c.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(c.csrf_k)))throw Error("Deep Auth Failed. `csrf` key not found in request headers!");let d=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!d)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!n().existsSync(`${d}/${c.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==c.verification_status&&!t){let e=await (0,s.A)(`SELECT verification_status FROM users WHERE id='${c.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(c?.date&&Date.now()-c.date>6048e5)throw Error("Key expired!");return c}catch(e){return console.log(`userAuth Error: ${e.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>s});function s(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",a=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",o=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),n=r;e?.userId&&(n+=`user_${e.userId}_`),o&&(n+=`${o}_`),n+=t;let i=r;e?.userId&&(i+=`user_${e.userId}_`),o&&(i+=`${o}_`),i+=s;let l=r;return e?.userId&&(l+=`user_${e.userId}_`),o&&(l+=`${o}_`),{keyCookieName:n,csrfCookieName:i,oneTimeCodeName:l+=a}}},67619:(e,r,t)=>{t.r(r),t.d(r,{default:()=>o});var s=t(29021),a=t.n(s);async function o({user:e,message:r,component:t,noMail:s,req:o}){let n=new Date,i=(()=>{if(!o)return null;try{let e=o.headers["x-forwarded-for"],r=o.headers["x-real-ip"],t=o.headers["cf-connecting-ip"],s=Array.isArray(e)?e[0]:e?.split(",")[0],a=t||s||r||o.socket.remoteAddress;if(!a)return null;return String(a)}catch(e){return null}})();try{let s=`🚀 SERVER ERROR =========================== +"use strict";(()=>{var e={};e.id=4727,e.ids=[4727],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},72583:e=>{e.exports=require("sanitize-html")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},27310:(e,r,t)=>{t.r(r),t.d(r,{config:()=>p,default:()=>d,routeModule:()=>f});var s={};t.r(s),t.d(s,{config:()=>c,default:()=>u});var a=t(89947),o=t(2706),n=t(96762),i=t(69842),l=t(33170);let c={api:{responseLimit:"1mb",bodyParser:{sizeLimit:"200mb"}}};async function u(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await (0,i.A)(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let{paradigm:s,dbName:a,tableName:o,payload:n}=e.body;try{let e=await (0,l.A)({dbName:a,paradigm:s,payload:n,tableName:o,userId:t.id,payloadType:"base64"});if(!e)return r.json({success:!1,msg:"Operation Failed!"});r.json({success:!0,msg:"Success!",data:e?.tableData})}catch(e){r.json({success:!1,msg:e.message})}}let d=(0,n.M)(s,"default"),p=(0,n.M)(s,"config"),f=new a.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/exportTableData",pathname:"/api/exportTableData",bundlePath:"",filename:""},userland:s})},33170:(e,r,t)=>{t.d(r,{A:()=>n});var s=t(98e3),a=t(67619),o=t(48786);async function n({paradigm:e,userId:r,dbName:t,tableName:n,payload:i,payloadType:l}){let c={};try{let a=`${process.env.DSQL_USER_DB_PREFIX}${r}_${t.replace(/ /g,"")}`;switch(e){case"export":let u=await (0,o.A)(`SELECT * FROM \`${a}\`.\`${n}\``);c.tableData=u;break;case"import":let d="base64"==l?Buffer.from(i,"base64").toString():i,p="object"===l?i:JSON.parse(d);for(let e=0;e{t.d(r,{A:()=>l});var s=t(48786),a=t(95969),o=t(29021),n=t.n(o),i=t(89159);async function l(e,r,t){try{let{keyCookieName:o,csrfCookieName:l}=(0,i.A)();if(!e.cookies?.[o]?.match(/./))throw Error("Request Cookies not Found!");let c=(0,a.A)({encryptedString:e.cookies[o]});if(!c)throw Error("Couldn't decrypt auth cookie!");let u=JSON.parse(c);if(!u.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(u.csrf_k)))throw console.log("req.headers",e.headers),console.log("userObject",u),Error("Deep Auth Failed. `csrf` key not found in request headers!");let d=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!d)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!n().existsSync(`${d}/${u.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==u.verification_status&&!t){let e=await (0,s.A)(`SELECT verification_status FROM users WHERE id='${u.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(u?.date&&Date.now()-u.date>6048e5)throw Error("Key expired!");return u}catch(e){return console.log(`userAuth Error: ${e.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>s});function s(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",a=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",o=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),n=r;e?.userId&&(n+=`user_${e.userId}_`),o&&(n+=`${o}_`),n+=t;let i=r;e?.userId&&(i+=`user_${e.userId}_`),o&&(i+=`${o}_`),i+=s;let l=r;return e?.userId&&(l+=`user_${e.userId}_`),o&&(l+=`${o}_`),{keyCookieName:n,csrfCookieName:i,oneTimeCodeName:l+=a}}},67619:(e,r,t)=>{t.d(r,{A:()=>o});var s=t(29021),a=t.n(s);async function o({user:e,message:r,component:t,noMail:s,req:o}){let n=new Date,i=(()=>{if(!o)return null;try{let e=o.headers["x-forwarded-for"],r=o.headers["x-real-ip"],t=o.headers["cf-connecting-ip"],s=Array.isArray(e)?e[0]:e?.split(",")[0],a=t||s||r||o.socket.remoteAddress;if(!a)return null;return String(a)}catch(e){return null}})();try{let s=`🚀 SERVER ERROR =========================== Error Message: ${r} Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(s+=` User Id: ${e?.id} @@ -13,4 +13,4 @@ Date: ${n.toDateString()} -${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},95969:(e,r,t)=>{t.d(r,{A:()=>o});var s=t(55511),a=t(79428);function o({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let o=r||process.env.DSQL_ENCRYPTION_PASSWORD,n=t||process.env.DSQL_ENCRYPTION_SALT,i=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!o?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!n?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let l=(0,s.scryptSync)(o,n,i),u=a.Buffer.alloc(16,0),c=(0,s.createDecipheriv)("aes-192-cbc",l,u);try{let r=c.update(e,"hex","utf8");return r+=c.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=e=>r(r.s=e),s=r.X(0,[1251],()=>t(27310));module.exports=s})(); \ No newline at end of file +${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},95969:(e,r,t)=>{t.d(r,{A:()=>o});var s=t(55511),a=t(79428);function o({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let o=r||process.env.DSQL_ENCRYPTION_PASSWORD,n=t||process.env.DSQL_ENCRYPTION_SALT,i=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!o?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!n?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let l=(0,s.scryptSync)(o,n,i),c=a.Buffer.alloc(16,0),u=(0,s.createDecipheriv)("aes-192-cbc",l,c);try{let r=u.update(e,"hex","utf8");return r+=u.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=e=>r(r.s=e),s=r.X(0,[1251],()=>t(27310));module.exports=s})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/fetch-entries-basic.js b/dsql-app/.local_dist/server/pages/api/fetch-entries-basic.js index c0b4381..2368543 100644 --- a/dsql-app/.local_dist/server/pages/api/fetch-entries-basic.js +++ b/dsql-app/.local_dist/server/pages/api/fetch-entries-basic.js @@ -1,4 +1,4 @@ -"use strict";(()=>{var e={};e.id=3319,e.ids=[3319],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},3034:(e,r,t)=>{t.r(r),t.d(r,{config:()=>p,default:()=>f,routeModule:()=>g});var s={};t.r(s),t.d(s,{default:()=>_});var a=t(89947),n=t(2706),o=t(96762),i=t(30944),l=t(31495),c=t(60125),u=t(67619),d=t(69842);async function _(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await (0,d.A)(e,r,!0);if(!t)return r.json({success:!1,msg:"User Auth Failed"});let{tableName:s,dbSlug:a,dbId:n,isTitle:o,isSlug:_,isFullName:f,defaultField:p}=e.body;try{let u=await (0,c.A)({databaseSlug:a,request:e,user:t,query:e.query});if(!await (0,l.A)({user:t,confirmedDelegetedUser:u,database:a,table:s,dbId:n,priviledgeRegex:/Update Entries/i}))return r.json({success:!1,msg:"Unauthorized"});let d=u?.rootUserId?`datasquirel_user_${u.rootUserId}_${a}`:`datasquirel_user_${t.id}_${a}`,g=`SELECT id${o?",title":_?",slug":f?",CONCAT(first_name, ' ', last_name) AS full_name":p?","+p:""} FROM ${d}.${s}`,E=await (0,i.A)({database:d,queryString:g});r.json({success:!0,entries:E})}catch(e){(0,u.default)({component:"/api/addTableEntry/catch-error",message:e.message,user:t}),r.json({success:!1,msg:"Database Files could not be written!",err:e.message})}}let f=(0,o.M)(s,"default"),p=(0,o.M)(s,"config"),g=new a.PagesAPIRouteModule({definition:{kind:n.A.PAGES_API,page:"/api/fetch-entries-basic",pathname:"/api/fetch-entries-basic",bundlePath:"",filename:""},userland:s})},31495:(e,r,t)=>{t.d(r,{A:()=>n});var s=t(48786),a=t(67619);async function n({user:e,confirmedDelegetedUser:r,database:t,table:n,priviledgeRegex:o,dbId:i}){let l,c;try{r?.delegated?(l=await (0,s.A)("SELECT priviledge FROM delegated_user_tables WHERE root_user_id=? AND delegated_user_id=? AND `database`=? AND `table`=?",[r.rootUserId,e.id,t,n]),c=l[0]?.priviledge?.match(o)):(l=await (0,s.A)("SELECT table_slug FROM user_database_tables WHERE user_id=? AND table_slug=? AND db_id=?",[e.id,n,i]),c=!0)}catch(r){(0,a.default)({component:"checkUserRights",message:r.message,user:e})}return!!l&&!!l[0]&&!!c}},60125:(e,r,t)=>{t.d(r,{A:()=>a});var s=t(95969);async function a({request:e,databaseSlug:r,user:t,query:a}){try{let n=t.id,o=null;if(!a?.delegated)return{dbUserId:n};let i=a.dbUserId,l=`${process.env.DSQL_USER_DB_PREFIX}${i}_${r}`,c=`${process.env.DSQL_USER_DELEGATED_DB_COOKIE_PREFIX}${l}`;try{if(!e.cookies?.[c])throw Error("Cookie not present");let t=(0,s.A)({encryptedString:e.cookies[c]});if(!t)throw Error("Invalid Token");if((o=JSON.parse(t)).databaseSlug===r)return{dbUserId:n=o.rootUserId,rootUserId:o.rootUserId,rootUserName:o.rootUserName,rootUserEmail:o.rootUserEmail,rootUserImage:o.rootUserImage,databaseFullName:o.databaseFullName,databaseSlug:o.databaseSlug,allowedTables:o.allowedTables,priviledges:o.priviledges,database:o.databaseSlug,delegated:!0}}catch(e){}return{dbUserId:n}}catch(e){return null}}},69842:(e,r,t)=>{t.d(r,{A:()=>l});var s=t(48786),a=t(95969),n=t(29021),o=t.n(n),i=t(89159);async function l(e,r,t){try{let{keyCookieName:n,csrfCookieName:l}=(0,i.A)();if(!e.cookies?.[n]?.match(/./))throw Error("Request Cookies not Found!");let c=(0,a.A)({encryptedString:e.cookies[n]});if(!c)throw Error("Couldn't decrypt auth cookie!");let u=JSON.parse(c);if(!u.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(u.csrf_k)))throw Error("Deep Auth Failed. `csrf` key not found in request headers!");let d=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!d)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!o().existsSync(`${d}/${u.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==u.verification_status&&!t){let e=await (0,s.A)(`SELECT verification_status FROM users WHERE id='${u.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(u?.date&&Date.now()-u.date>6048e5)throw Error("Key expired!");return u}catch(e){return console.log(`userAuth Error: ${e.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>s});function s(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",a=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",n=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),o=r;e?.userId&&(o+=`user_${e.userId}_`),n&&(o+=`${n}_`),o+=t;let i=r;e?.userId&&(i+=`user_${e.userId}_`),n&&(i+=`${n}_`),i+=s;let l=r;return e?.userId&&(l+=`user_${e.userId}_`),n&&(l+=`${n}_`),{keyCookieName:o,csrfCookieName:i,oneTimeCodeName:l+=a}}},43775:(e,r,t)=>{t.d(r,{A:()=>n});var s=t(95969);let a=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/;async function n({unparsedResults:e,tableSchema:r}){let t=[];try{for(let n=0;n",r.message),e}}},67619:(e,r,t)=>{t.r(r),t.d(r,{default:()=>n});var s=t(29021),a=t.n(s);async function n({user:e,message:r,component:t,noMail:s,req:n}){let o=new Date,i=(()=>{if(!n)return null;try{let e=n.headers["x-forwarded-for"],r=n.headers["x-real-ip"],t=n.headers["cf-connecting-ip"],s=Array.isArray(e)?e[0]:e?.split(",")[0],a=t||s||r||n.socket.remoteAddress;if(!a)return null;return String(a)}catch(e){return null}})();try{let s=`🚀 SERVER ERROR =========================== +"use strict";(()=>{var e={};e.id=3319,e.ids=[3319],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},3034:(e,r,t)=>{t.r(r),t.d(r,{config:()=>p,default:()=>f,routeModule:()=>g});var s={};t.r(s),t.d(s,{default:()=>_});var a=t(89947),n=t(2706),o=t(96762),i=t(30944),l=t(31495),c=t(60125),u=t(67619),d=t(69842);async function _(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await (0,d.A)(e,r,!0);if(!t)return r.json({success:!1,msg:"User Auth Failed"});let{tableName:s,dbSlug:a,dbId:n,isTitle:o,isSlug:_,isFullName:f,defaultField:p}=e.body;try{let u=await (0,c.A)({databaseSlug:a,request:e,user:t,query:e.query});if(!await (0,l.A)({user:t,confirmedDelegetedUser:u,database:a,table:s,dbId:n,priviledgeRegex:/Update Entries/i}))return r.json({success:!1,msg:"Unauthorized"});let d=u?.rootUserId?`datasquirel_user_${u.rootUserId}_${a}`:`datasquirel_user_${t.id}_${a}`,g=`SELECT id${o?",title":_?",slug":f?",CONCAT(first_name, ' ', last_name) AS full_name":p?","+p:""} FROM ${d}.${s}`,E=await (0,i.A)({database:d,queryString:g});r.json({success:!0,entries:E})}catch(e){(0,u.A)({component:"/api/addTableEntry/catch-error",message:e.message,user:t}),r.json({success:!1,msg:"Database Files could not be written!",err:e.message})}}let f=(0,o.M)(s,"default"),p=(0,o.M)(s,"config"),g=new a.PagesAPIRouteModule({definition:{kind:n.A.PAGES_API,page:"/api/fetch-entries-basic",pathname:"/api/fetch-entries-basic",bundlePath:"",filename:""},userland:s})},31495:(e,r,t)=>{t.d(r,{A:()=>n});var s=t(48786),a=t(67619);async function n({user:e,confirmedDelegetedUser:r,database:t,table:n,priviledgeRegex:o,dbId:i}){let l,c;try{r?.delegated?(l=await (0,s.A)("SELECT priviledge FROM delegated_user_tables WHERE root_user_id=? AND delegated_user_id=? AND `database`=? AND `table`=?",[r.rootUserId,e.id,t,n]),c=l[0]?.priviledge?.match(o)):(l=await (0,s.A)("SELECT table_slug FROM user_database_tables WHERE user_id=? AND table_slug=? AND db_id=?",[e.id,n,i]),c=!0)}catch(r){(0,a.A)({component:"checkUserRights",message:r.message,user:e})}return!!l&&!!l[0]&&!!c}},60125:(e,r,t)=>{t.d(r,{A:()=>a});var s=t(95969);async function a({request:e,databaseSlug:r,user:t,query:a}){try{let n=t.id,o=null;if(!a?.delegated)return{dbUserId:n};let i=a.dbUserId,l=`${process.env.DSQL_USER_DB_PREFIX}${i}_${r}`,c=`${process.env.DSQL_USER_DELEGATED_DB_COOKIE_PREFIX}${l}`;try{if(!e.cookies?.[c])throw Error("Cookie not present");let t=(0,s.A)({encryptedString:e.cookies[c]});if(!t)throw Error("Invalid Token");if((o=JSON.parse(t)).databaseSlug===r)return{dbUserId:n=o.rootUserId,rootUserId:o.rootUserId,rootUserName:o.rootUserName,rootUserEmail:o.rootUserEmail,rootUserImage:o.rootUserImage,databaseFullName:o.databaseFullName,databaseSlug:o.databaseSlug,allowedTables:o.allowedTables,priviledges:o.priviledges,database:o.databaseSlug,delegated:!0}}catch(e){}return{dbUserId:n}}catch(e){return null}}},69842:(e,r,t)=>{t.d(r,{A:()=>l});var s=t(48786),a=t(95969),n=t(29021),o=t.n(n),i=t(89159);async function l(e,r,t){try{let{keyCookieName:n,csrfCookieName:l}=(0,i.A)();if(!e.cookies?.[n]?.match(/./))throw Error("Request Cookies not Found!");let c=(0,a.A)({encryptedString:e.cookies[n]});if(!c)throw Error("Couldn't decrypt auth cookie!");let u=JSON.parse(c);if(!u.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(u.csrf_k)))throw console.log("req.headers",e.headers),console.log("userObject",u),Error("Deep Auth Failed. `csrf` key not found in request headers!");let d=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!d)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!o().existsSync(`${d}/${u.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==u.verification_status&&!t){let e=await (0,s.A)(`SELECT verification_status FROM users WHERE id='${u.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(u?.date&&Date.now()-u.date>6048e5)throw Error("Key expired!");return u}catch(e){return console.log(`userAuth Error: ${e.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>s});function s(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",a=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",n=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),o=r;e?.userId&&(o+=`user_${e.userId}_`),n&&(o+=`${n}_`),o+=t;let i=r;e?.userId&&(i+=`user_${e.userId}_`),n&&(i+=`${n}_`),i+=s;let l=r;return e?.userId&&(l+=`user_${e.userId}_`),n&&(l+=`${n}_`),{keyCookieName:o,csrfCookieName:i,oneTimeCodeName:l+=a}}},43775:(e,r,t)=>{t.d(r,{A:()=>n});var s=t(95969);let a=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/;async function n({unparsedResults:e,tableSchema:r}){let t=[];try{for(let n=0;n",r.message),e}}},67619:(e,r,t)=>{t.d(r,{A:()=>n});var s=t(29021),a=t.n(s);async function n({user:e,message:r,component:t,noMail:s,req:n}){let o=new Date,i=(()=>{if(!n)return null;try{let e=n.headers["x-forwarded-for"],r=n.headers["x-real-ip"],t=n.headers["cf-connecting-ip"],s=Array.isArray(e)?e[0]:e?.split(",")[0],a=t||s||r||n.socket.remoteAddress;if(!a)return null;return String(a)}catch(e){return null}})();try{let s=`🚀 SERVER ERROR =========================== Error Message: ${r} Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(s+=` User Id: ${e?.id} @@ -13,4 +13,4 @@ Date: ${o.toDateString()} -${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},30944:(e,r,t)=>{t.d(r,{A:()=>l});var s=t(43775),a=t(67619),n=t(48786),o=t(37275),i=t(7971);async function l({queryString:e,queryValuesArray:r,database:t,tableSchema:l,useLocal:c}){let u;let d=!!c||!!t?.match(/^datasquirel$/),_=c?i.A:d?n.A:o.default;try{u=e&&r&&Array.isArray(r)&&r[0]?d?await _(e,r):await _({paradigm:"Full Access",queryString:e,queryValues:r}):d?await _(e):await _({paradigm:"Full Access",queryString:e})}catch(e){console.log(`varDatabaseDbHandler Error: ${e.message}`),(0,a.default)({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(u&&l)try{let e=u;return await (0,s.A)({unparsedResults:e,tableSchema:l})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",t,e),(0,a.default)({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(u)return u;else return null}},95969:(e,r,t)=>{t.d(r,{A:()=>n});var s=t(55511),a=t(79428);function n({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let n=r||process.env.DSQL_ENCRYPTION_PASSWORD,o=t||process.env.DSQL_ENCRYPTION_SALT,i=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!n?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!o?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let l=(0,s.scryptSync)(n,o,i),c=a.Buffer.alloc(16,0),u=(0,s.createDecipheriv)("aes-192-cbc",l,c);try{let r=u.update(e,"hex","utf8");return r+=u.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>s});async function s(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},37275:(e,r,t)=>{async function s(e,r,t){try{if("string"==typeof r){let s=await e.query(a(r),t);return JSON.parse(JSON.stringify(s))}if("object"!=typeof r)return null;{let t=[];for(let s=0;sn})},7971:(e,r,t)=>{t.d(r,{A:()=>i});var s=t(9973),a=t.n(s),n=t(29021),o=t.n(n);async function i(...e){let r=a()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!o().existsSync(r)){console.log(`${r} does not exist`);return}return{ca:o().readFileSync(`${e}/ca-cert.pem`),rejectUnauthorized:!1}}()},onConnect:()=>{console.log("Connection Successful!")},onConnectError:e=>{console.log("Connection Error",e.message)},onError:e=>{console.log("Client Error",e.message)}});console.log("Querying ...");try{let t=await r.query(...e);return await r.end(),JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e.message),{success:!1,error:e.message}}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=3034);module.exports=t})(); \ No newline at end of file +${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},30944:(e,r,t)=>{t.d(r,{A:()=>l});var s=t(43775),a=t(67619),n=t(48786),o=t(37275),i=t(7971);async function l({queryString:e,queryValuesArray:r,database:t,tableSchema:l,useLocal:c}){let u;let d=!!c||!!t?.match(/^datasquirel$/),_=c?i.A:d?n.A:o.A;try{u=e&&r&&Array.isArray(r)&&r[0]?d?await _(e,r):await _({paradigm:"Full Access",queryString:e,queryValues:r}):d?await _(e):await _({paradigm:"Full Access",queryString:e})}catch(e){console.log(`varDatabaseDbHandler Error: ${e.message}`),(0,a.A)({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(u&&l)try{let e=u;return await (0,s.A)({unparsedResults:e,tableSchema:l})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",t,e),(0,a.A)({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(u)return u;else return null}},95969:(e,r,t)=>{t.d(r,{A:()=>n});var s=t(55511),a=t(79428);function n({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let n=r||process.env.DSQL_ENCRYPTION_PASSWORD,o=t||process.env.DSQL_ENCRYPTION_SALT,i=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!n?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!o?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let l=(0,s.scryptSync)(n,o,i),c=a.Buffer.alloc(16,0),u=(0,s.createDecipheriv)("aes-192-cbc",l,c);try{let r=u.update(e,"hex","utf8");return r+=u.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>s});async function s(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},37275:(e,r,t)=>{async function s(e,r,t){try{if("string"==typeof r){let s=await e.query(a(r),t);return JSON.parse(JSON.stringify(s))}if("object"!=typeof r)return null;{let t=[];for(let s=0;sn})},7971:(e,r,t)=>{t.d(r,{A:()=>i});var s=t(9973),a=t.n(s),n=t(29021),o=t.n(n);async function i(...e){let r=a()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!o().existsSync(r)){console.log(`${r} does not exist`);return}return{ca:o().readFileSync(`${e}/ca-cert.pem`),rejectUnauthorized:!1}}()},onConnect:()=>{console.log("Connection Successful!")},onConnectError:e=>{console.log("Connection Error",e.message)},onError:e=>{console.log("Client Error",e.message)}});console.log("Querying ...");try{let t=await r.query(...e);return await r.end(),JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e.message),{success:!1,error:e.message}}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=3034);module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/get-authorized-databases.js b/dsql-app/.local_dist/server/pages/api/get-authorized-databases.js index 6931daf..2800c7f 100644 --- a/dsql-app/.local_dist/server/pages/api/get-authorized-databases.js +++ b/dsql-app/.local_dist/server/pages/api/get-authorized-databases.js @@ -1,4 +1,4 @@ -"use strict";(()=>{var e={};e.id=3040,e.ids=[3040],e.modules={27825:e=>{e.exports=require("lodash")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},79428:e=>{e.exports=require("buffer")},79646:e=>{e.exports=require("child_process")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},61980:(e,r,t)=>{t.r(r),t.d(r,{config:()=>S,default:()=>E,routeModule:()=>g});var s={};t.r(s),t.d(s,{default:()=>p});var o=t(89947),n=t(2706),a=t(96762),i=t(4820),u=t(67619),l=t(69842),d=t(27825),c=t.n(d),f=t(48786);t(29021),t(33873);let{execSync:_}=t(79646);async function p(e,r){if("GET"!==e.method)return r.json({msg:"Failed!"});let t=await (0,l.A)(e,r);if(!t)return r.json({success:!1,msg:"Unauthorized"});let s=e.query.dbUserId;e.query.delegated;try{if(!s)throw Error("No Root user Id Found!");let e=await (0,f.A)("SELECT * FROM datasquirel.delegated_user_tables WHERE delegated_user_id=? AND root_user_id=?",[String(t.id),String(s)]),o=(0,i.A)({userId:String(s)});if(!o)throw Error("Root user schema not found!");let n=[];e.forEach(e=>{let r=n.findIndex(r=>r.dbSlug===e.database),t=o.find(r=>r.dbSlug===e.database);if(t){let s=n[r]?n[r]:{...t,tables:[]},o=c().cloneDeep(t.tables).find(r=>r.tableName===e.table);o&&n[r]?n[r]={...s,tables:[...n[r].tables,o]}:o&&!n[r]&&n.push({...t,tables:[o]})}}),r.json({success:!0,payload:n})}catch(e){console.log("ERROR:",e.message),(0,u.default)({component:"/api/get-authorized-databases",message:e.message,user:t}),r.json({success:!1,msg:e.message})}}let E=(0,a.M)(s,"default"),S=(0,a.M)(s,"config"),g=new o.PagesAPIRouteModule({definition:{kind:n.A.PAGES_API,page:"/api/get-authorized-databases",pathname:"/api/get-authorized-databases",bundlePath:"",filename:""},userland:s})},69842:(e,r,t)=>{t.d(r,{A:()=>u});var s=t(48786),o=t(95969),n=t(29021),a=t.n(n),i=t(89159);async function u(e,r,t){try{let{keyCookieName:n,csrfCookieName:u}=(0,i.A)();if(!e.cookies?.[n]?.match(/./))throw Error("Request Cookies not Found!");let l=(0,o.A)({encryptedString:e.cookies[n]});if(!l)throw Error("Couldn't decrypt auth cookie!");let d=JSON.parse(l);if(!d.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(d.csrf_k)))throw Error("Deep Auth Failed. `csrf` key not found in request headers!");let c=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!c)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!a().existsSync(`${c}/${d.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==d.verification_status&&!t){let e=await (0,s.A)(`SELECT verification_status FROM users WHERE id='${d.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(d?.date&&Date.now()-d.date>6048e5)throw Error("Key expired!");return d}catch(e){return console.log(`userAuth Error: ${e.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>s});function s(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",o=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",n=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),a=r;e?.userId&&(a+=`user_${e.userId}_`),n&&(a+=`${n}_`),a+=t;let i=r;e?.userId&&(i+=`user_${e.userId}_`),n&&(i+=`${n}_`),i+=s;let u=r;return e?.userId&&(u+=`user_${e.userId}_`),n&&(u+=`${n}_`),{keyCookieName:a,csrfCookieName:i,oneTimeCodeName:u+=o}}},4820:(e,r,t)=>{t.d(r,{A:()=>u});var s=t(67619),o=t(29021),n=t.n(o),a=t(33873),i=t.n(a);function u({userId:e}){try{let r=i().resolve(process.cwd(),`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${e}/main.json`);return JSON.parse(n().readFileSync(r,"utf-8"))}catch(e){return(0,s.default)({component:"grabUserSchemaData",message:e.message}),null}}},67619:(e,r,t)=>{t.r(r),t.d(r,{default:()=>n});var s=t(29021),o=t.n(s);async function n({user:e,message:r,component:t,noMail:s,req:n}){let a=new Date,i=(()=>{if(!n)return null;try{let e=n.headers["x-forwarded-for"],r=n.headers["x-real-ip"],t=n.headers["cf-connecting-ip"],s=Array.isArray(e)?e[0]:e?.split(",")[0],o=t||s||r||n.socket.remoteAddress;if(!o)return null;return String(o)}catch(e){return null}})();try{let s=`🚀 SERVER ERROR =========================== +"use strict";(()=>{var e={};e.id=3040,e.ids=[3040],e.modules={27825:e=>{e.exports=require("lodash")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},61980:(e,r,t)=>{t.r(r),t.d(r,{config:()=>E,default:()=>p,routeModule:()=>S});var s={};t.r(s),t.d(s,{default:()=>_});var o=t(89947),n=t(2706),a=t(96762),i=t(4820),u=t(67619),l=t(69842),c=t(27825),d=t.n(c),f=t(48786);async function _(e,r){if("GET"!==e.method)return r.json({msg:"Failed!"});let t=await (0,l.A)(e,r);if(!t)return r.json({success:!1,msg:"Unauthorized"});let s=e.query.dbUserId;e.query.delegated;try{if(!s)throw Error("No Root user Id Found!");let e=await (0,f.A)("SELECT * FROM datasquirel.delegated_user_tables WHERE delegated_user_id=? AND root_user_id=?",[String(t.id),String(s)]),o=(0,i.A)({userId:String(s)});if(!o)throw Error("Root user schema not found!");let n=[];e.forEach(e=>{let r=n.findIndex(r=>r.dbSlug===e.database),t=o.find(r=>r.dbSlug===e.database);if(t){let s=n[r]?n[r]:{...t,tables:[]},o=d().cloneDeep(t.tables).find(r=>r.tableName===e.table);o&&n[r]?n[r]={...s,tables:[...n[r].tables,o]}:o&&!n[r]&&n.push({...t,tables:[o]})}}),r.json({success:!0,payload:n})}catch(e){console.log("ERROR:",e.message),(0,u.A)({component:"/api/get-authorized-databases",message:e.message,user:t}),r.json({success:!1,msg:e.message})}}let p=(0,a.M)(s,"default"),E=(0,a.M)(s,"config"),S=new o.PagesAPIRouteModule({definition:{kind:n.A.PAGES_API,page:"/api/get-authorized-databases",pathname:"/api/get-authorized-databases",bundlePath:"",filename:""},userland:s})},69842:(e,r,t)=>{t.d(r,{A:()=>u});var s=t(48786),o=t(95969),n=t(29021),a=t.n(n),i=t(89159);async function u(e,r,t){try{let{keyCookieName:n,csrfCookieName:u}=(0,i.A)();if(!e.cookies?.[n]?.match(/./))throw Error("Request Cookies not Found!");let l=(0,o.A)({encryptedString:e.cookies[n]});if(!l)throw Error("Couldn't decrypt auth cookie!");let c=JSON.parse(l);if(!c.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(c.csrf_k)))throw console.log("req.headers",e.headers),console.log("userObject",c),Error("Deep Auth Failed. `csrf` key not found in request headers!");let d=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!d)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!a().existsSync(`${d}/${c.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==c.verification_status&&!t){let e=await (0,s.A)(`SELECT verification_status FROM users WHERE id='${c.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(c?.date&&Date.now()-c.date>6048e5)throw Error("Key expired!");return c}catch(e){return console.log(`userAuth Error: ${e.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>s});function s(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",o=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",n=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),a=r;e?.userId&&(a+=`user_${e.userId}_`),n&&(a+=`${n}_`),a+=t;let i=r;e?.userId&&(i+=`user_${e.userId}_`),n&&(i+=`${n}_`),i+=s;let u=r;return e?.userId&&(u+=`user_${e.userId}_`),n&&(u+=`${n}_`),{keyCookieName:a,csrfCookieName:i,oneTimeCodeName:u+=o}}},4820:(e,r,t)=>{t.d(r,{A:()=>u});var s=t(67619),o=t(29021),n=t.n(o),a=t(33873),i=t.n(a);function u({userId:e}){try{let r=i().resolve(process.cwd(),`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${e}/main.json`);return JSON.parse(n().readFileSync(r,"utf-8"))}catch(e){return(0,s.A)({component:"grabUserSchemaData",message:e.message}),null}}},67619:(e,r,t)=>{t.d(r,{A:()=>n});var s=t(29021),o=t.n(s);async function n({user:e,message:r,component:t,noMail:s,req:n}){let a=new Date,i=(()=>{if(!n)return null;try{let e=n.headers["x-forwarded-for"],r=n.headers["x-real-ip"],t=n.headers["cf-connecting-ip"],s=Array.isArray(e)?e[0]:e?.split(",")[0],o=t||s||r||n.socket.remoteAddress;if(!o)return null;return String(o)}catch(e){return null}})();try{let s=`🚀 SERVER ERROR =========================== Error Message: ${r} Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(s+=` User Id: ${e?.id} @@ -13,4 +13,4 @@ Date: ${a.toDateString()} -${u}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},95969:(e,r,t)=>{t.d(r,{A:()=>n});var s=t(55511),o=t(79428);function n({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let n=r||process.env.DSQL_ENCRYPTION_PASSWORD,a=t||process.env.DSQL_ENCRYPTION_SALT,i=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!n?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!a?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let u=(0,s.scryptSync)(n,a,i),l=o.Buffer.alloc(16,0),d=(0,s.createDecipheriv)("aes-192-cbc",u,l);try{let r=d.update(e,"hex","utf8");return r+=d.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>s});async function s(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=61980);module.exports=t})(); \ No newline at end of file +${u}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},95969:(e,r,t)=>{t.d(r,{A:()=>n});var s=t(55511),o=t(79428);function n({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let n=r||process.env.DSQL_ENCRYPTION_PASSWORD,a=t||process.env.DSQL_ENCRYPTION_SALT,i=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!n?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!a?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let u=(0,s.scryptSync)(n,a,i),l=o.Buffer.alloc(16,0),c=(0,s.createDecipheriv)("aes-192-cbc",u,l);try{let r=c.update(e,"hex","utf8");return r+=c.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>s});async function s(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=61980);module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/getDatabaseTables.js b/dsql-app/.local_dist/server/pages/api/getDatabaseTables.js index 1a5cd8a..a427c6a 100644 --- a/dsql-app/.local_dist/server/pages/api/getDatabaseTables.js +++ b/dsql-app/.local_dist/server/pages/api/getDatabaseTables.js @@ -1,4 +1,4 @@ -"use strict";(()=>{var e={};e.id=245,e.ids=[245],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},37811:(e,r,t)=>{t.r(r),t.d(r,{config:()=>_,default:()=>d,routeModule:()=>f});var s={};t.r(s),t.d(s,{default:()=>c});var n=t(89947),a=t(2706),o=t(96762),i=t(69842),u=t(67619),l=t(48786);async function c(e,r){if("GET"!==e.method)return r.json({user:null,msg:"Registration Failed!"});let t=await (0,i.A)(e,r);if(!t)return r.json({success:!1,msg:"Unauthorized"});let s=e.query.dbSlug,n=e.query.dbOwnerId,a=e.query.delegatedUserId;try{let e=await (0,l.A)("SELECT id FROM user_databases WHERE user_id=? AND db_slug=?",[n,s]);if(!e||!e[0])return r.json({success:!1,msg:"Database not found"});let t=await (0,l.A)("SELECT table_name,table_slug FROM user_database_tables WHERE user_id=? AND db_id=?",[n,e[0].id]),o=await (0,l.A)("SELECT `database`,`table` FROM delegated_user_tables WHERE root_user_id=? AND delegated_user_id=?",[n,a]);r.json({success:!0,tables:t,accessed_tables:o})}catch(e){(0,u.default)({component:"/api/getDatabaseTables/main-catch-error",message:e.message,user:t}),r.json({success:!1})}}t(29021);let d=(0,o.M)(s,"default"),_=(0,o.M)(s,"config"),f=new n.PagesAPIRouteModule({definition:{kind:a.A.PAGES_API,page:"/api/getDatabaseTables",pathname:"/api/getDatabaseTables",bundlePath:"",filename:""},userland:s})},69842:(e,r,t)=>{t.d(r,{A:()=>u});var s=t(48786),n=t(95969),a=t(29021),o=t.n(a),i=t(89159);async function u(e,r,t){try{let{keyCookieName:a,csrfCookieName:u}=(0,i.A)();if(!e.cookies?.[a]?.match(/./))throw Error("Request Cookies not Found!");let l=(0,n.A)({encryptedString:e.cookies[a]});if(!l)throw Error("Couldn't decrypt auth cookie!");let c=JSON.parse(l);if(!c.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(c.csrf_k)))throw Error("Deep Auth Failed. `csrf` key not found in request headers!");let d=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!d)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!o().existsSync(`${d}/${c.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==c.verification_status&&!t){let e=await (0,s.A)(`SELECT verification_status FROM users WHERE id='${c.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(c?.date&&Date.now()-c.date>6048e5)throw Error("Key expired!");return c}catch(e){return console.log(`userAuth Error: ${e.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>s});function s(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",n=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",a=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),o=r;e?.userId&&(o+=`user_${e.userId}_`),a&&(o+=`${a}_`),o+=t;let i=r;e?.userId&&(i+=`user_${e.userId}_`),a&&(i+=`${a}_`),i+=s;let u=r;return e?.userId&&(u+=`user_${e.userId}_`),a&&(u+=`${a}_`),{keyCookieName:o,csrfCookieName:i,oneTimeCodeName:u+=n}}},67619:(e,r,t)=>{t.r(r),t.d(r,{default:()=>a});var s=t(29021),n=t.n(s);async function a({user:e,message:r,component:t,noMail:s,req:a}){let o=new Date,i=(()=>{if(!a)return null;try{let e=a.headers["x-forwarded-for"],r=a.headers["x-real-ip"],t=a.headers["cf-connecting-ip"],s=Array.isArray(e)?e[0]:e?.split(",")[0],n=t||s||r||a.socket.remoteAddress;if(!n)return null;return String(n)}catch(e){return null}})();try{let s=`🚀 SERVER ERROR =========================== +"use strict";(()=>{var e={};e.id=245,e.ids=[245],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},37811:(e,r,t)=>{t.r(r),t.d(r,{config:()=>_,default:()=>d,routeModule:()=>f});var s={};t.r(s),t.d(s,{default:()=>c});var n=t(89947),a=t(2706),o=t(96762),i=t(69842),u=t(67619),l=t(48786);async function c(e,r){if("GET"!==e.method)return r.json({user:null,msg:"Registration Failed!"});let t=await (0,i.A)(e,r);if(!t)return r.json({success:!1,msg:"Unauthorized"});let s=e.query.dbSlug,n=e.query.dbOwnerId,a=e.query.delegatedUserId;try{let e=await (0,l.A)("SELECT id FROM user_databases WHERE user_id=? AND db_slug=?",[n,s]);if(!e||!e[0])return r.json({success:!1,msg:"Database not found"});let t=await (0,l.A)("SELECT table_name,table_slug FROM user_database_tables WHERE user_id=? AND db_id=?",[n,e[0].id]),o=await (0,l.A)("SELECT `database`,`table` FROM delegated_user_tables WHERE root_user_id=? AND delegated_user_id=?",[n,a]);r.json({success:!0,tables:t,accessed_tables:o})}catch(e){(0,u.A)({component:"/api/getDatabaseTables/main-catch-error",message:e.message,user:t}),r.json({success:!1})}}let d=(0,o.M)(s,"default"),_=(0,o.M)(s,"config"),f=new n.PagesAPIRouteModule({definition:{kind:a.A.PAGES_API,page:"/api/getDatabaseTables",pathname:"/api/getDatabaseTables",bundlePath:"",filename:""},userland:s})},69842:(e,r,t)=>{t.d(r,{A:()=>u});var s=t(48786),n=t(95969),a=t(29021),o=t.n(a),i=t(89159);async function u(e,r,t){try{let{keyCookieName:a,csrfCookieName:u}=(0,i.A)();if(!e.cookies?.[a]?.match(/./))throw Error("Request Cookies not Found!");let l=(0,n.A)({encryptedString:e.cookies[a]});if(!l)throw Error("Couldn't decrypt auth cookie!");let c=JSON.parse(l);if(!c.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(c.csrf_k)))throw console.log("req.headers",e.headers),console.log("userObject",c),Error("Deep Auth Failed. `csrf` key not found in request headers!");let d=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!d)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!o().existsSync(`${d}/${c.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==c.verification_status&&!t){let e=await (0,s.A)(`SELECT verification_status FROM users WHERE id='${c.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(c?.date&&Date.now()-c.date>6048e5)throw Error("Key expired!");return c}catch(e){return console.log(`userAuth Error: ${e.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>s});function s(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",n=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",a=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),o=r;e?.userId&&(o+=`user_${e.userId}_`),a&&(o+=`${a}_`),o+=t;let i=r;e?.userId&&(i+=`user_${e.userId}_`),a&&(i+=`${a}_`),i+=s;let u=r;return e?.userId&&(u+=`user_${e.userId}_`),a&&(u+=`${a}_`),{keyCookieName:o,csrfCookieName:i,oneTimeCodeName:u+=n}}},67619:(e,r,t)=>{t.d(r,{A:()=>a});var s=t(29021),n=t.n(s);async function a({user:e,message:r,component:t,noMail:s,req:a}){let o=new Date,i=(()=>{if(!a)return null;try{let e=a.headers["x-forwarded-for"],r=a.headers["x-real-ip"],t=a.headers["cf-connecting-ip"],s=Array.isArray(e)?e[0]:e?.split(",")[0],n=t||s||r||a.socket.remoteAddress;if(!n)return null;return String(n)}catch(e){return null}})();try{let s=`🚀 SERVER ERROR =========================== Error Message: ${r} Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(s+=` User Id: ${e?.id} diff --git a/dsql-app/.local_dist/server/pages/api/getDelegatedDatabaseToken.js b/dsql-app/.local_dist/server/pages/api/getDelegatedDatabaseToken.js index 10eaeb6..40129f6 100644 --- a/dsql-app/.local_dist/server/pages/api/getDelegatedDatabaseToken.js +++ b/dsql-app/.local_dist/server/pages/api/getDelegatedDatabaseToken.js @@ -1,4 +1,4 @@ -"use strict";(()=>{var e={};e.id=8282,e.ids=[8282],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},19991:(e,r,t)=>{t.r(r),t.d(r,{config:()=>E,default:()=>_,routeModule:()=>f});var s={};t.r(s),t.d(s,{default:()=>d});var o=t(89947),n=t(2706),a=t(96762),i=t(48786),l=t(68829),c=t(67619),u=t(69842);async function d(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await (0,u.A)(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let s=e.body.rootUserId,o=e.body.priviledges,n=e.body.database;try{let e=await (0,i.A)("SELECT * FROM user_users WHERE user_id=? AND invited_user_id=? AND MATCH(database_access) AGAINST(?)",[s,t.id,n]);if(!e||!e[0])throw Error(`user with id ${t.id} has no access to ${n} database belonging to user ${s}`);let a=(await (0,i.A)("SELECT * FROM delegated_user_tables WHERE root_user_id=? AND delegated_user_id=? AND `database`=?",[s,t.id,n])).map(e=>e.table),c=await (0,i.A)("SELECT * FROM users WHERE id=?",[s]),u={rootUserId:s,rootUserName:`${c[0].first_name} ${c[0].last_name}`,rootUserEmail:c[0].email,rootUserImage:c[0].image_thumbnail,delegatedUserId:t.id,databaseFullName:`datasquirel_user_${s}_${n}`,databaseSlug:n,allowedTables:a,priviledges:o,dateCreated:Date.now()},d=(0,l.default)({data:JSON.stringify(u)}),_=`${process.env.DSQL_USER_DB_PREFIX}${u.rootUserId}_${n}`,E=`${process.env.DSQL_USER_DELEGATED_DB_COOKIE_PREFIX}${_}`;r.setHeader("Set-Cookie",[`${E}=${d};path=/`]),r.json({success:!0,msg:"Processed Successfully"})}catch(e){return console.log("ERROR:",e.message),(0,c.default)({component:"/api/getDelegatedDatabaseToken/main-catch-error",message:e.message,user:t}),r.json({success:!1,msg:"Unauthorized"})}}let _=(0,a.M)(s,"default"),E=(0,a.M)(s,"config"),f=new o.PagesAPIRouteModule({definition:{kind:n.A.PAGES_API,page:"/api/getDelegatedDatabaseToken",pathname:"/api/getDelegatedDatabaseToken",bundlePath:"",filename:""},userland:s})},69842:(e,r,t)=>{t.d(r,{A:()=>l});var s=t(48786),o=t(95969),n=t(29021),a=t.n(n),i=t(89159);async function l(e,r,t){try{let{keyCookieName:n,csrfCookieName:l}=(0,i.A)();if(!e.cookies?.[n]?.match(/./))throw Error("Request Cookies not Found!");let c=(0,o.A)({encryptedString:e.cookies[n]});if(!c)throw Error("Couldn't decrypt auth cookie!");let u=JSON.parse(c);if(!u.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(u.csrf_k)))throw Error("Deep Auth Failed. `csrf` key not found in request headers!");let d=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!d)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!a().existsSync(`${d}/${u.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==u.verification_status&&!t){let e=await (0,s.A)(`SELECT verification_status FROM users WHERE id='${u.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(u?.date&&Date.now()-u.date>6048e5)throw Error("Key expired!");return u}catch(e){return console.log(`userAuth Error: ${e.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>s});function s(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",o=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",n=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),a=r;e?.userId&&(a+=`user_${e.userId}_`),n&&(a+=`${n}_`),a+=t;let i=r;e?.userId&&(i+=`user_${e.userId}_`),n&&(i+=`${n}_`),i+=s;let l=r;return e?.userId&&(l+=`user_${e.userId}_`),n&&(l+=`${n}_`),{keyCookieName:a,csrfCookieName:i,oneTimeCodeName:l+=o}}},67619:(e,r,t)=>{t.r(r),t.d(r,{default:()=>n});var s=t(29021),o=t.n(s);async function n({user:e,message:r,component:t,noMail:s,req:n}){let a=new Date,i=(()=>{if(!n)return null;try{let e=n.headers["x-forwarded-for"],r=n.headers["x-real-ip"],t=n.headers["cf-connecting-ip"],s=Array.isArray(e)?e[0]:e?.split(",")[0],o=t||s||r||n.socket.remoteAddress;if(!o)return null;return String(o)}catch(e){return null}})();try{let s=`🚀 SERVER ERROR =========================== +"use strict";(()=>{var e={};e.id=8282,e.ids=[8282],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},19991:(e,r,t)=>{t.r(r),t.d(r,{config:()=>E,default:()=>_,routeModule:()=>f});var s={};t.r(s),t.d(s,{default:()=>d});var o=t(89947),n=t(2706),a=t(96762),i=t(48786),l=t(68829),c=t(67619),u=t(69842);async function d(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await (0,u.A)(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let s=e.body.rootUserId,o=e.body.priviledges,n=e.body.database;try{let e=await (0,i.A)("SELECT * FROM user_users WHERE user_id=? AND invited_user_id=? AND MATCH(database_access) AGAINST(?)",[s,t.id,n]);if(!e||!e[0])throw Error(`user with id ${t.id} has no access to ${n} database belonging to user ${s}`);let a=(await (0,i.A)("SELECT * FROM delegated_user_tables WHERE root_user_id=? AND delegated_user_id=? AND `database`=?",[s,t.id,n])).map(e=>e.table),c=await (0,i.A)("SELECT * FROM users WHERE id=?",[s]),u={rootUserId:s,rootUserName:`${c[0].first_name} ${c[0].last_name}`,rootUserEmail:c[0].email,rootUserImage:c[0].image_thumbnail,delegatedUserId:t.id,databaseFullName:`datasquirel_user_${s}_${n}`,databaseSlug:n,allowedTables:a,priviledges:o,dateCreated:Date.now()},d=(0,l.A)({data:JSON.stringify(u)}),_=`${process.env.DSQL_USER_DB_PREFIX}${u.rootUserId}_${n}`,E=`${process.env.DSQL_USER_DELEGATED_DB_COOKIE_PREFIX}${_}`;r.setHeader("Set-Cookie",[`${E}=${d};path=/`]),r.json({success:!0,msg:"Processed Successfully"})}catch(e){return console.log("ERROR:",e.message),(0,c.A)({component:"/api/getDelegatedDatabaseToken/main-catch-error",message:e.message,user:t}),r.json({success:!1,msg:"Unauthorized"})}}let _=(0,a.M)(s,"default"),E=(0,a.M)(s,"config"),f=new o.PagesAPIRouteModule({definition:{kind:n.A.PAGES_API,page:"/api/getDelegatedDatabaseToken",pathname:"/api/getDelegatedDatabaseToken",bundlePath:"",filename:""},userland:s})},69842:(e,r,t)=>{t.d(r,{A:()=>l});var s=t(48786),o=t(95969),n=t(29021),a=t.n(n),i=t(89159);async function l(e,r,t){try{let{keyCookieName:n,csrfCookieName:l}=(0,i.A)();if(!e.cookies?.[n]?.match(/./))throw Error("Request Cookies not Found!");let c=(0,o.A)({encryptedString:e.cookies[n]});if(!c)throw Error("Couldn't decrypt auth cookie!");let u=JSON.parse(c);if(!u.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(u.csrf_k)))throw console.log("req.headers",e.headers),console.log("userObject",u),Error("Deep Auth Failed. `csrf` key not found in request headers!");let d=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!d)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!a().existsSync(`${d}/${u.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==u.verification_status&&!t){let e=await (0,s.A)(`SELECT verification_status FROM users WHERE id='${u.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(u?.date&&Date.now()-u.date>6048e5)throw Error("Key expired!");return u}catch(e){return console.log(`userAuth Error: ${e.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>s});function s(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",o=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",n=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),a=r;e?.userId&&(a+=`user_${e.userId}_`),n&&(a+=`${n}_`),a+=t;let i=r;e?.userId&&(i+=`user_${e.userId}_`),n&&(i+=`${n}_`),i+=s;let l=r;return e?.userId&&(l+=`user_${e.userId}_`),n&&(l+=`${n}_`),{keyCookieName:a,csrfCookieName:i,oneTimeCodeName:l+=o}}},67619:(e,r,t)=>{t.d(r,{A:()=>n});var s=t(29021),o=t.n(s);async function n({user:e,message:r,component:t,noMail:s,req:n}){let a=new Date,i=(()=>{if(!n)return null;try{let e=n.headers["x-forwarded-for"],r=n.headers["x-real-ip"],t=n.headers["cf-connecting-ip"],s=Array.isArray(e)?e[0]:e?.split(",")[0],o=t||s||r||n.socket.remoteAddress;if(!o)return null;return String(o)}catch(e){return null}})();try{let s=`🚀 SERVER ERROR =========================== Error Message: ${r} Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(s+=` User Id: ${e?.id} @@ -13,4 +13,4 @@ Date: ${a.toDateString()} -${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},95969:(e,r,t)=>{t.d(r,{A:()=>n});var s=t(55511),o=t(79428);function n({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let n=r||process.env.DSQL_ENCRYPTION_PASSWORD,a=t||process.env.DSQL_ENCRYPTION_SALT,i=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!n?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!a?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let l=(0,s.scryptSync)(n,a,i),c=o.Buffer.alloc(16,0),u=(0,s.createDecipheriv)("aes-192-cbc",l,c);try{let r=u.update(e,"hex","utf8");return r+=u.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},68829:(e,r,t)=>{t.r(r),t.d(r,{default:()=>n});var s=t(55511),o=t(79428);function n({data:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encryption string is invalid"),e;let n=r||process.env.DSQL_ENCRYPTION_PASSWORD,a=t||process.env.DSQL_ENCRYPTION_SALT,i=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!n?.match(/.{8,}/))return console.log("Encryption key is invalid"),e;if(!a?.match(/.{8,}/))return console.log("Encryption salt is invalid"),e;let l=(0,s.scryptSync)(n,a,i),c=o.Buffer.alloc(16,0),u=(0,s.createCipheriv)("aes-192-cbc",l,c);try{let r=u.update(e,"utf8","hex");return r+=u.final("hex")}catch(r){return console.log("Error in encrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>s});async function s(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=19991);module.exports=t})(); \ No newline at end of file +${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},95969:(e,r,t)=>{t.d(r,{A:()=>n});var s=t(55511),o=t(79428);function n({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let n=r||process.env.DSQL_ENCRYPTION_PASSWORD,a=t||process.env.DSQL_ENCRYPTION_SALT,i=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!n?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!a?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let l=(0,s.scryptSync)(n,a,i),c=o.Buffer.alloc(16,0),u=(0,s.createDecipheriv)("aes-192-cbc",l,c);try{let r=u.update(e,"hex","utf8");return r+=u.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},68829:(e,r,t)=>{t.d(r,{A:()=>n});var s=t(55511),o=t(79428);function n({data:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encryption string is invalid"),e;let n=r||process.env.DSQL_ENCRYPTION_PASSWORD,a=t||process.env.DSQL_ENCRYPTION_SALT,i=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!n?.match(/.{8,}/))return console.log("Encryption key is invalid"),e;if(!a?.match(/.{8,}/))return console.log("Encryption salt is invalid"),e;let l=(0,s.scryptSync)(n,a,i),c=o.Buffer.alloc(16,0),u=(0,s.createCipheriv)("aes-192-cbc",l,c);try{let r=u.update(e,"utf8","hex");return r+=u.final("hex")}catch(r){return console.log("Error in encrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>s});async function s(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=19991);module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/getDelegatedDatabases.js b/dsql-app/.local_dist/server/pages/api/getDelegatedDatabases.js index fe9c839..b64dedc 100644 --- a/dsql-app/.local_dist/server/pages/api/getDelegatedDatabases.js +++ b/dsql-app/.local_dist/server/pages/api/getDelegatedDatabases.js @@ -1,8 +1,8 @@ -"use strict";(()=>{var e={};e.id=7258,e.ids=[7258],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,s){return s in r?r[s]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,s)):"function"==typeof r&&"default"===s?r:void 0}}})},45310:(e,r,s)=>{s.r(r),s.d(r,{config:()=>c,default:()=>d,routeModule:()=>l});var t={};s.r(t),s.d(t,{default:()=>_});var i=s(89947),n=s(2706),a=s(96762),u=s(48786),o=s(69842);async function _(e,r){if("GET"!==e.method)return r.json({msg:"Failed!"});let s=await (0,o.A)(e,r);if(!s)return r.json({success:!1,msg:"Unauthorized"});let t=await (0,u.A)(` +"use strict";(()=>{var e={};e.id=7258,e.ids=[7258],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,s){return s in r?r[s]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,s)):"function"==typeof r&&"default"===s?r:void 0}}})},45310:(e,r,s)=>{s.r(r),s.d(r,{config:()=>l,default:()=>d,routeModule:()=>c});var t={};s.r(t),s.d(t,{default:()=>_});var i=s(89947),n=s(2706),a=s(96762),o=s(48786),u=s(69842);async function _(e,r){if("GET"!==e.method)return r.json({msg:"Failed!"});let s=await (0,u.A)(e,r);if(!s)return r.json({success:!1,msg:"Unauthorized"});let t=await (0,o.A)(` SELECT user_users.user_id,user_users.database_access,user_users.user_id,user_users.user_priviledge,users.first_name,users.last_name,users.email,users.image_thumbnail FROM user_users JOIN users ON user_users.user_id=users.id WHERE user_users.invited_user_id='${s.id}' - `),i=[];if(t&&t[0])for(let e=0;e`db_slug='${e}'`).join(" OR ")}) AND user_id=${n}`);for(let e=0;e{s.d(r,{A:()=>o});var t=s(48786),i=s(95969),n=s(29021),a=s.n(n),u=s(89159);async function o(e,r,s){try{let{keyCookieName:n,csrfCookieName:o}=(0,u.A)();if(!e.cookies?.[n]?.match(/./))throw Error("Request Cookies not Found!");let _=(0,i.A)({encryptedString:e.cookies[n]});if(!_)throw Error("Couldn't decrypt auth cookie!");let d=JSON.parse(_);if(!d.csrf_k)throw Error("No `csrf_k` present in user Object!");if(s&&!Object.keys(e.headers).find(e=>e.includes(d.csrf_k)))throw Error("Deep Auth Failed. `csrf` key not found in request headers!");let c=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!c)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(s&&!a().existsSync(`${c}/${d.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==d.verification_status&&!s){let e=await (0,t.A)(`SELECT verification_status FROM users WHERE id='${d.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(d?.date&&Date.now()-d.date>6048e5)throw Error("Key expired!");return d}catch(e){return console.log(`userAuth Error: ${e.message}`),null}}},89159:(e,r,s)=>{s.d(r,{A:()=>t});function t(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",s=process.env.DSQL_COOKIES_KEY_NAME||"key",t=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",i=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",n=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),a=r;e?.userId&&(a+=`user_${e.userId}_`),n&&(a+=`${n}_`),a+=s;let u=r;e?.userId&&(u+=`user_${e.userId}_`),n&&(u+=`${n}_`),u+=t;let o=r;return e?.userId&&(o+=`user_${e.userId}_`),n&&(o+=`${n}_`),{keyCookieName:a,csrfCookieName:u,oneTimeCodeName:o+=i}}},95969:(e,r,s)=>{s.d(r,{A:()=>n});var t=s(55511),i=s(79428);function n({encryptedString:e,encryptionKey:r,encryptionSalt:s}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let n=r||process.env.DSQL_ENCRYPTION_PASSWORD,a=s||process.env.DSQL_ENCRYPTION_SALT,u=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!n?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!a?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let o=(0,t.scryptSync)(n,a,u),_=i.Buffer.alloc(16,0),d=(0,t.createDecipheriv)("aes-192-cbc",o,_);try{let r=d.update(e,"hex","utf8");return r+=d.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},48786:(e,r,s)=>{s.d(r,{A:()=>t});async function t(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let s=await r.query(...e);return JSON.parse(JSON.stringify(s))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return s}});var s=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,s)=>{e.exports=s(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var s=r(r.s=45310);module.exports=s})(); \ No newline at end of file + `),i=[];if(t&&t[0])for(let e=0;e`db_slug='${e}'`).join(" OR ")}) AND user_id=${n}`);for(let e=0;e{s.d(r,{A:()=>u});var t=s(48786),i=s(95969),n=s(29021),a=s.n(n),o=s(89159);async function u(e,r,s){try{let{keyCookieName:n,csrfCookieName:u}=(0,o.A)();if(!e.cookies?.[n]?.match(/./))throw Error("Request Cookies not Found!");let _=(0,i.A)({encryptedString:e.cookies[n]});if(!_)throw Error("Couldn't decrypt auth cookie!");let d=JSON.parse(_);if(!d.csrf_k)throw Error("No `csrf_k` present in user Object!");if(s&&!Object.keys(e.headers).find(e=>e.includes(d.csrf_k)))throw console.log("req.headers",e.headers),console.log("userObject",d),Error("Deep Auth Failed. `csrf` key not found in request headers!");let l=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!l)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(s&&!a().existsSync(`${l}/${d.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==d.verification_status&&!s){let e=await (0,t.A)(`SELECT verification_status FROM users WHERE id='${d.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(d?.date&&Date.now()-d.date>6048e5)throw Error("Key expired!");return d}catch(e){return console.log(`userAuth Error: ${e.message}`),null}}},89159:(e,r,s)=>{s.d(r,{A:()=>t});function t(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",s=process.env.DSQL_COOKIES_KEY_NAME||"key",t=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",i=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",n=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),a=r;e?.userId&&(a+=`user_${e.userId}_`),n&&(a+=`${n}_`),a+=s;let o=r;e?.userId&&(o+=`user_${e.userId}_`),n&&(o+=`${n}_`),o+=t;let u=r;return e?.userId&&(u+=`user_${e.userId}_`),n&&(u+=`${n}_`),{keyCookieName:a,csrfCookieName:o,oneTimeCodeName:u+=i}}},95969:(e,r,s)=>{s.d(r,{A:()=>n});var t=s(55511),i=s(79428);function n({encryptedString:e,encryptionKey:r,encryptionSalt:s}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let n=r||process.env.DSQL_ENCRYPTION_PASSWORD,a=s||process.env.DSQL_ENCRYPTION_SALT,o=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!n?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!a?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let u=(0,t.scryptSync)(n,a,o),_=i.Buffer.alloc(16,0),d=(0,t.createDecipheriv)("aes-192-cbc",u,_);try{let r=d.update(e,"hex","utf8");return r+=d.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},48786:(e,r,s)=>{s.d(r,{A:()=>t});async function t(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let s=await r.query(...e);return JSON.parse(JSON.stringify(s))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return s}});var s=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,s)=>{e.exports=s(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var s=r(r.s=45310);module.exports=s})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/getDiskUsage.js b/dsql-app/.local_dist/server/pages/api/getDiskUsage.js index 7535ac7..2283a4d 100644 --- a/dsql-app/.local_dist/server/pages/api/getDiskUsage.js +++ b/dsql-app/.local_dist/server/pages/api/getDiskUsage.js @@ -1,10 +1,10 @@ -"use strict";(()=>{var e={};e.id=2139,e.ids=[2139],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},53662:(e,r,t)=>{t.r(r),t.d(r,{config:()=>m,default:()=>p,routeModule:()=>S});var s={};t.r(s),t.d(s,{default:()=>E});var i=t(89947),n=t(2706),o=t(96762),a=t(29021),c=t.n(a),u=t(33873),l=t.n(u),d=t(48786),_=t(67619),f=t(69842);async function E(e,r){if("GET"!==e.method)return r.json({msg:"Failed!"});let t=await (0,f.A)(e,r);if(!t)return r.json({success:!1,msg:"Unauthorized"});try{"production".match(/production/);let e=await (0,d.A)(` +"use strict";(()=>{var e={};e.id=2139,e.ids=[2139],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},53662:(e,r,t)=>{t.r(r),t.d(r,{config:()=>m,default:()=>p,routeModule:()=>S});var s={};t.r(s),t.d(s,{default:()=>E});var o=t(89947),n=t(2706),i=t(96762),a=t(29021),c=t.n(a),l=t(33873),u=t.n(l),d=t(48786),_=t(67619),f=t(69842);async function E(e,r){if("GET"!==e.method)return r.json({msg:"Failed!"});let t=await (0,f.A)(e,r);if(!t)return r.json({success:!1,msg:"Unauthorized"});try{"production".match(/production/);let e=await (0,d.A)(` SELECT table_schema, SUM((data_length+index_length)/1024/1024) AS "mb" from information_schema.tables where table_schema like ? group by table_schema - `,[`datasquirel_user_${t.id}%`]),i=(Array.isArray(e)?e:[]).reduce((e,r,t)=>e?.mb?e.mb+r.mb:e+r.mb,0),n=0,o=process.env.DSQL_STATIC_SERVER_DIR;if(!o)throw console.log("Static File ENV not Found!"),Error("No Static Path!");o||c().existsSync(o)||c().mkdirSync(o,{recursive:!0});let a=l().join(o,`images/user-images/user-${t.id}`);c().existsSync(a)||c().mkdirSync(a,{recursive:!0});let u=l().join(o,`images/user-images/user-${t.id}`),f=l().join(o,`videos/user-videos/user-${t.id}`);async function s(e){try{let r=c().readdirSync(e);for(let t=0;t ${e} DELETED FROM DATABASE`)}}}catch(e){console.log("ERROR in getDiskUsage API route =>",e.message),(0,_.default)({component:"/api/getDiskUsage/lines-93-101",message:e.message})}}c().existsSync(f)||c().mkdirSync(f,{recursive:!0}),await s(u),await s(f);let E=n+i;r.json({success:!0,total:E})}catch(e){(0,_.default)({component:"/api/getDiskUsage/main-catch-error",message:e.message,user:t}),r.json({success:!1,msg:"Disk Usage Calculation Error!"})}}let p=(0,o.M)(s,"default"),m=(0,o.M)(s,"config"),S=new i.PagesAPIRouteModule({definition:{kind:n.A.PAGES_API,page:"/api/getDiskUsage",pathname:"/api/getDiskUsage",bundlePath:"",filename:""},userland:s})},69842:(e,r,t)=>{t.d(r,{A:()=>c});var s=t(48786),i=t(95969),n=t(29021),o=t.n(n),a=t(89159);async function c(e,r,t){try{let{keyCookieName:n,csrfCookieName:c}=(0,a.A)();if(!e.cookies?.[n]?.match(/./))throw Error("Request Cookies not Found!");let u=(0,i.A)({encryptedString:e.cookies[n]});if(!u)throw Error("Couldn't decrypt auth cookie!");let l=JSON.parse(u);if(!l.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(l.csrf_k)))throw Error("Deep Auth Failed. `csrf` key not found in request headers!");let d=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!d)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!o().existsSync(`${d}/${l.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==l.verification_status&&!t){let e=await (0,s.A)(`SELECT verification_status FROM users WHERE id='${l.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(l?.date&&Date.now()-l.date>6048e5)throw Error("Key expired!");return l}catch(e){return console.log(`userAuth Error: ${e.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>s});function s(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",i=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",n=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),o=r;e?.userId&&(o+=`user_${e.userId}_`),n&&(o+=`${n}_`),o+=t;let a=r;e?.userId&&(a+=`user_${e.userId}_`),n&&(a+=`${n}_`),a+=s;let c=r;return e?.userId&&(c+=`user_${e.userId}_`),n&&(c+=`${n}_`),{keyCookieName:o,csrfCookieName:a,oneTimeCodeName:c+=i}}},67619:(e,r,t)=>{t.r(r),t.d(r,{default:()=>n});var s=t(29021),i=t.n(s);async function n({user:e,message:r,component:t,noMail:s,req:n}){let o=new Date,a=(()=>{if(!n)return null;try{let e=n.headers["x-forwarded-for"],r=n.headers["x-real-ip"],t=n.headers["cf-connecting-ip"],s=Array.isArray(e)?e[0]:e?.split(",")[0],i=t||s||r||n.socket.remoteAddress;if(!i)return null;return String(i)}catch(e){return null}})();try{let s=`🚀 SERVER ERROR =========================== + `,[`datasquirel_user_${t.id}%`]),o=(Array.isArray(e)?e:[]).reduce((e,r,t)=>e?.mb?e.mb+r.mb:e+r.mb,0),n=0,i=process.env.DSQL_STATIC_SERVER_DIR;if(!i)throw console.log("Static File ENV not Found!"),Error("No Static Path!");i||c().existsSync(i)||c().mkdirSync(i,{recursive:!0});let a=u().join(i,`images/user-images/user-${t.id}`);c().existsSync(a)||c().mkdirSync(a,{recursive:!0});let l=u().join(i,`images/user-images/user-${t.id}`),f=u().join(i,`videos/user-videos/user-${t.id}`);async function s(e){try{let r=c().readdirSync(e);for(let t=0;t ${e} DELETED FROM DATABASE`)}}}catch(e){console.log("ERROR in getDiskUsage API route =>",e.message),(0,_.A)({component:"/api/getDiskUsage/lines-93-101",message:e.message})}}c().existsSync(f)||c().mkdirSync(f,{recursive:!0}),await s(l),await s(f);let E=n+o;r.json({success:!0,total:E})}catch(e){(0,_.A)({component:"/api/getDiskUsage/main-catch-error",message:e.message,user:t}),r.json({success:!1,msg:"Disk Usage Calculation Error!"})}}let p=(0,i.M)(s,"default"),m=(0,i.M)(s,"config"),S=new o.PagesAPIRouteModule({definition:{kind:n.A.PAGES_API,page:"/api/getDiskUsage",pathname:"/api/getDiskUsage",bundlePath:"",filename:""},userland:s})},69842:(e,r,t)=>{t.d(r,{A:()=>c});var s=t(48786),o=t(95969),n=t(29021),i=t.n(n),a=t(89159);async function c(e,r,t){try{let{keyCookieName:n,csrfCookieName:c}=(0,a.A)();if(!e.cookies?.[n]?.match(/./))throw Error("Request Cookies not Found!");let l=(0,o.A)({encryptedString:e.cookies[n]});if(!l)throw Error("Couldn't decrypt auth cookie!");let u=JSON.parse(l);if(!u.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(u.csrf_k)))throw console.log("req.headers",e.headers),console.log("userObject",u),Error("Deep Auth Failed. `csrf` key not found in request headers!");let d=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!d)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!i().existsSync(`${d}/${u.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==u.verification_status&&!t){let e=await (0,s.A)(`SELECT verification_status FROM users WHERE id='${u.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(u?.date&&Date.now()-u.date>6048e5)throw Error("Key expired!");return u}catch(e){return console.log(`userAuth Error: ${e.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>s});function s(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",o=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",n=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),i=r;e?.userId&&(i+=`user_${e.userId}_`),n&&(i+=`${n}_`),i+=t;let a=r;e?.userId&&(a+=`user_${e.userId}_`),n&&(a+=`${n}_`),a+=s;let c=r;return e?.userId&&(c+=`user_${e.userId}_`),n&&(c+=`${n}_`),{keyCookieName:i,csrfCookieName:a,oneTimeCodeName:c+=o}}},67619:(e,r,t)=>{t.d(r,{A:()=>n});var s=t(29021),o=t.n(s);async function n({user:e,message:r,component:t,noMail:s,req:n}){let i=new Date,a=(()=>{if(!n)return null;try{let e=n.headers["x-forwarded-for"],r=n.headers["x-real-ip"],t=n.headers["cf-connecting-ip"],s=Array.isArray(e)?e[0]:e?.split(",")[0],o=t||s||r||n.socket.remoteAddress;if(!o)return null;return String(o)}catch(e){return null}})();try{let s=`🚀 SERVER ERROR =========================== Error Message: ${r} Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(s+=` User Id: ${e?.id} @@ -13,10 +13,10 @@ User Email: ${e?.email}`),n?.url&&(s+=` URL: ${n.url}`),n?.body&&(s+=` Request Body: ${JSON.stringify(n.body,null,4)}`),a&&(s+=` IP: ${a}`),s+=` -Date: ${o.toDateString()} -========================================`,i().existsSync("./.tmp/error.log")||i().writeFileSync("./.tmp/error.log","","utf-8");let c=i().readFileSync("./.tmp/error.log","utf-8");i().writeFileSync("./.tmp/error.log",s),i().appendFileSync("./.tmp/error.log",` +Date: ${i.toDateString()} +========================================`,o().existsSync("./.tmp/error.log")||o().writeFileSync("./.tmp/error.log","","utf-8");let c=o().readFileSync("./.tmp/error.log","utf-8");o().writeFileSync("./.tmp/error.log",s),o().appendFileSync("./.tmp/error.log",` -${c}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},95969:(e,r,t)=>{t.d(r,{A:()=>n});var s=t(55511),i=t(79428);function n({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let n=r||process.env.DSQL_ENCRYPTION_PASSWORD,o=t||process.env.DSQL_ENCRYPTION_SALT,a=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!n?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!o?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let c=(0,s.scryptSync)(n,o,a),u=i.Buffer.alloc(16,0),l=(0,s.createDecipheriv)("aes-192-cbc",c,u);try{let r=l.update(e,"hex","utf8");return r+=l.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>s});async function s(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=53662);module.exports=t})(); \ No newline at end of file +${c}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},95969:(e,r,t)=>{t.d(r,{A:()=>n});var s=t(55511),o=t(79428);function n({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let n=r||process.env.DSQL_ENCRYPTION_PASSWORD,i=t||process.env.DSQL_ENCRYPTION_SALT,a=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!n?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let c=(0,s.scryptSync)(n,i,a),l=o.Buffer.alloc(16,0),u=(0,s.createDecipheriv)("aes-192-cbc",c,l);try{let r=u.update(e,"hex","utf8");return r+=u.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>s});async function s(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=53662);module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/getUserDatabaseTables.js b/dsql-app/.local_dist/server/pages/api/getUserDatabaseTables.js index f0302fb..ac7b54f 100644 --- a/dsql-app/.local_dist/server/pages/api/getUserDatabaseTables.js +++ b/dsql-app/.local_dist/server/pages/api/getUserDatabaseTables.js @@ -1 +1 @@ -"use strict";(()=>{var e={};e.id=2312,e.ids=[2312],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},79428:e=>{e.exports=require("buffer")},79646:e=>{e.exports=require("child_process")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},37075:(e,r,t)=>{t.r(r),t.d(r,{config:()=>_,default:()=>l,routeModule:()=>f});var s={};t.r(s),t.d(s,{default:()=>d});var n=t(89947),o=t(2706),i=t(96762),a=t(48786),u=t(69842);t(29021),t(33873);let{execSync:c}=t(79646);async function d(e,r){if("GET"!==e.method)return r.json({msg:"Failed!"});let t=await (0,u.A)(e,r);if(!t)return r.json({success:!1,msg:"Unauthorized"});let s=await (0,a.A)(`SELECT id, table_name, table_slug FROM user_database_tables WHERE user_id='${t.id}' AND db_id='${e.query.dbId}'`);r.json({success:!0,tables:s})}let l=(0,i.M)(s,"default"),_=(0,i.M)(s,"config"),f=new n.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/getUserDatabaseTables",pathname:"/api/getUserDatabaseTables",bundlePath:"",filename:""},userland:s})},69842:(e,r,t)=>{t.d(r,{A:()=>u});var s=t(48786),n=t(95969),o=t(29021),i=t.n(o),a=t(89159);async function u(e,r,t){try{let{keyCookieName:o,csrfCookieName:u}=(0,a.A)();if(!e.cookies?.[o]?.match(/./))throw Error("Request Cookies not Found!");let c=(0,n.A)({encryptedString:e.cookies[o]});if(!c)throw Error("Couldn't decrypt auth cookie!");let d=JSON.parse(c);if(!d.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(d.csrf_k)))throw Error("Deep Auth Failed. `csrf` key not found in request headers!");let l=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!l)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!i().existsSync(`${l}/${d.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==d.verification_status&&!t){let e=await (0,s.A)(`SELECT verification_status FROM users WHERE id='${d.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(d?.date&&Date.now()-d.date>6048e5)throw Error("Key expired!");return d}catch(e){return console.log(`userAuth Error: ${e.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>s});function s(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",n=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",o=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),i=r;e?.userId&&(i+=`user_${e.userId}_`),o&&(i+=`${o}_`),i+=t;let a=r;e?.userId&&(a+=`user_${e.userId}_`),o&&(a+=`${o}_`),a+=s;let u=r;return e?.userId&&(u+=`user_${e.userId}_`),o&&(u+=`${o}_`),{keyCookieName:i,csrfCookieName:a,oneTimeCodeName:u+=n}}},95969:(e,r,t)=>{t.d(r,{A:()=>o});var s=t(55511),n=t(79428);function o({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let o=r||process.env.DSQL_ENCRYPTION_PASSWORD,i=t||process.env.DSQL_ENCRYPTION_SALT,a=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!o?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let u=(0,s.scryptSync)(o,i,a),c=n.Buffer.alloc(16,0),d=(0,s.createDecipheriv)("aes-192-cbc",u,c);try{let r=d.update(e,"hex","utf8");return r+=d.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>s});async function s(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=37075);module.exports=t})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=2312,e.ids=[2312],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},37075:(e,r,t)=>{t.r(r),t.d(r,{config:()=>l,default:()=>d,routeModule:()=>_});var s={};t.r(s),t.d(s,{default:()=>c});var n=t(89947),o=t(2706),i=t(96762),a=t(48786),u=t(69842);async function c(e,r){if("GET"!==e.method)return r.json({msg:"Failed!"});let t=await (0,u.A)(e,r);if(!t)return r.json({success:!1,msg:"Unauthorized"});let s=await (0,a.A)(`SELECT id, table_name, table_slug FROM user_database_tables WHERE user_id='${t.id}' AND db_id='${e.query.dbId}'`);r.json({success:!0,tables:s})}let d=(0,i.M)(s,"default"),l=(0,i.M)(s,"config"),_=new n.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/getUserDatabaseTables",pathname:"/api/getUserDatabaseTables",bundlePath:"",filename:""},userland:s})},69842:(e,r,t)=>{t.d(r,{A:()=>u});var s=t(48786),n=t(95969),o=t(29021),i=t.n(o),a=t(89159);async function u(e,r,t){try{let{keyCookieName:o,csrfCookieName:u}=(0,a.A)();if(!e.cookies?.[o]?.match(/./))throw Error("Request Cookies not Found!");let c=(0,n.A)({encryptedString:e.cookies[o]});if(!c)throw Error("Couldn't decrypt auth cookie!");let d=JSON.parse(c);if(!d.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(d.csrf_k)))throw console.log("req.headers",e.headers),console.log("userObject",d),Error("Deep Auth Failed. `csrf` key not found in request headers!");let l=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!l)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!i().existsSync(`${l}/${d.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==d.verification_status&&!t){let e=await (0,s.A)(`SELECT verification_status FROM users WHERE id='${d.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(d?.date&&Date.now()-d.date>6048e5)throw Error("Key expired!");return d}catch(e){return console.log(`userAuth Error: ${e.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>s});function s(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",n=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",o=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),i=r;e?.userId&&(i+=`user_${e.userId}_`),o&&(i+=`${o}_`),i+=t;let a=r;e?.userId&&(a+=`user_${e.userId}_`),o&&(a+=`${o}_`),a+=s;let u=r;return e?.userId&&(u+=`user_${e.userId}_`),o&&(u+=`${o}_`),{keyCookieName:i,csrfCookieName:a,oneTimeCodeName:u+=n}}},95969:(e,r,t)=>{t.d(r,{A:()=>o});var s=t(55511),n=t(79428);function o({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let o=r||process.env.DSQL_ENCRYPTION_PASSWORD,i=t||process.env.DSQL_ENCRYPTION_SALT,a=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!o?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let u=(0,s.scryptSync)(o,i,a),c=n.Buffer.alloc(16,0),d=(0,s.createDecipheriv)("aes-192-cbc",u,c);try{let r=d.update(e,"hex","utf8");return r+=d.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>s});async function s(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=37075);module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/getUserDatabases.js b/dsql-app/.local_dist/server/pages/api/getUserDatabases.js index 620d7fc..05dd3db 100644 --- a/dsql-app/.local_dist/server/pages/api/getUserDatabases.js +++ b/dsql-app/.local_dist/server/pages/api/getUserDatabases.js @@ -1 +1 @@ -"use strict";(()=>{var e={};e.id=2,e.ids=[2],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},79428:e=>{e.exports=require("buffer")},79646:e=>{e.exports=require("child_process")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},36857:(e,r,t)=>{t.r(r),t.d(r,{config:()=>l,default:()=>_,routeModule:()=>f});var s={};t.r(s),t.d(s,{default:()=>d});var n=t(89947),o=t(2706),i=t(96762),a=t(48786),u=t(69842);t(29021),t(33873);let{execSync:c}=t(79646);async function d(e,r){if("GET"!==e.method)return r.json({msg:"Failed!"});let t=await (0,u.A)(e,r);if(!t)return r.json({success:!1,msg:"Unauthorized"});let s=await (0,a.A)(`SELECT id,db_name,db_slug,db_full_name FROM user_databases WHERE user_id='${t.id}'`);r.json({success:!0,databases:s})}let _=(0,i.M)(s,"default"),l=(0,i.M)(s,"config"),f=new n.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/getUserDatabases",pathname:"/api/getUserDatabases",bundlePath:"",filename:""},userland:s})},69842:(e,r,t)=>{t.d(r,{A:()=>u});var s=t(48786),n=t(95969),o=t(29021),i=t.n(o),a=t(89159);async function u(e,r,t){try{let{keyCookieName:o,csrfCookieName:u}=(0,a.A)();if(!e.cookies?.[o]?.match(/./))throw Error("Request Cookies not Found!");let c=(0,n.A)({encryptedString:e.cookies[o]});if(!c)throw Error("Couldn't decrypt auth cookie!");let d=JSON.parse(c);if(!d.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(d.csrf_k)))throw Error("Deep Auth Failed. `csrf` key not found in request headers!");let _=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!_)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!i().existsSync(`${_}/${d.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==d.verification_status&&!t){let e=await (0,s.A)(`SELECT verification_status FROM users WHERE id='${d.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(d?.date&&Date.now()-d.date>6048e5)throw Error("Key expired!");return d}catch(e){return console.log(`userAuth Error: ${e.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>s});function s(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",n=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",o=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),i=r;e?.userId&&(i+=`user_${e.userId}_`),o&&(i+=`${o}_`),i+=t;let a=r;e?.userId&&(a+=`user_${e.userId}_`),o&&(a+=`${o}_`),a+=s;let u=r;return e?.userId&&(u+=`user_${e.userId}_`),o&&(u+=`${o}_`),{keyCookieName:i,csrfCookieName:a,oneTimeCodeName:u+=n}}},95969:(e,r,t)=>{t.d(r,{A:()=>o});var s=t(55511),n=t(79428);function o({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let o=r||process.env.DSQL_ENCRYPTION_PASSWORD,i=t||process.env.DSQL_ENCRYPTION_SALT,a=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!o?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let u=(0,s.scryptSync)(o,i,a),c=n.Buffer.alloc(16,0),d=(0,s.createDecipheriv)("aes-192-cbc",u,c);try{let r=d.update(e,"hex","utf8");return r+=d.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>s});async function s(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=36857);module.exports=t})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=2,e.ids=[2],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},36857:(e,r,t)=>{t.r(r),t.d(r,{config:()=>l,default:()=>d,routeModule:()=>_});var s={};t.r(s),t.d(s,{default:()=>c});var n=t(89947),o=t(2706),i=t(96762),a=t(48786),u=t(69842);async function c(e,r){if("GET"!==e.method)return r.json({msg:"Failed!"});let t=await (0,u.A)(e,r);if(!t)return r.json({success:!1,msg:"Unauthorized"});let s=await (0,a.A)(`SELECT id,db_name,db_slug,db_full_name FROM user_databases WHERE user_id='${t.id}'`);r.json({success:!0,databases:s})}let d=(0,i.M)(s,"default"),l=(0,i.M)(s,"config"),_=new n.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/getUserDatabases",pathname:"/api/getUserDatabases",bundlePath:"",filename:""},userland:s})},69842:(e,r,t)=>{t.d(r,{A:()=>u});var s=t(48786),n=t(95969),o=t(29021),i=t.n(o),a=t(89159);async function u(e,r,t){try{let{keyCookieName:o,csrfCookieName:u}=(0,a.A)();if(!e.cookies?.[o]?.match(/./))throw Error("Request Cookies not Found!");let c=(0,n.A)({encryptedString:e.cookies[o]});if(!c)throw Error("Couldn't decrypt auth cookie!");let d=JSON.parse(c);if(!d.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(d.csrf_k)))throw console.log("req.headers",e.headers),console.log("userObject",d),Error("Deep Auth Failed. `csrf` key not found in request headers!");let l=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!l)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!i().existsSync(`${l}/${d.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==d.verification_status&&!t){let e=await (0,s.A)(`SELECT verification_status FROM users WHERE id='${d.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(d?.date&&Date.now()-d.date>6048e5)throw Error("Key expired!");return d}catch(e){return console.log(`userAuth Error: ${e.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>s});function s(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",n=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",o=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),i=r;e?.userId&&(i+=`user_${e.userId}_`),o&&(i+=`${o}_`),i+=t;let a=r;e?.userId&&(a+=`user_${e.userId}_`),o&&(a+=`${o}_`),a+=s;let u=r;return e?.userId&&(u+=`user_${e.userId}_`),o&&(u+=`${o}_`),{keyCookieName:i,csrfCookieName:a,oneTimeCodeName:u+=n}}},95969:(e,r,t)=>{t.d(r,{A:()=>o});var s=t(55511),n=t(79428);function o({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let o=r||process.env.DSQL_ENCRYPTION_PASSWORD,i=t||process.env.DSQL_ENCRYPTION_SALT,a=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!o?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let u=(0,s.scryptSync)(o,i,a),c=n.Buffer.alloc(16,0),d=(0,s.createDecipheriv)("aes-192-cbc",u,c);try{let r=d.update(e,"hex","utf8");return r+=d.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>s});async function s(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=36857);module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/getUserMedia.js b/dsql-app/.local_dist/server/pages/api/getUserMedia.js index 103dc54..74ad19a 100644 --- a/dsql-app/.local_dist/server/pages/api/getUserMedia.js +++ b/dsql-app/.local_dist/server/pages/api/getUserMedia.js @@ -1 +1 @@ -"use strict";(()=>{var e={};e.id=7664,e.ids=[7664],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},35179:(e,r,t)=>{t.r(r),t.d(r,{config:()=>_,default:()=>d,routeModule:()=>l});var n={};t.r(n),t.d(n,{default:()=>c});var s=t(89947),o=t(2706),i=t(96762),a=t(48786),u=t(69842);async function c(e,r){if("GET"!==e.method)return r.json({msg:"Failed!"});let t=await (0,u.A)(e,r);if(!t)return r.json({success:!1,msg:"Unauthorized"});let n=await (0,a.A)(`SELECT * FROM user_media WHERE user_id=${t.id} ORDER BY id DESC`);r.json({media:n})}let d=(0,i.M)(n,"default"),_=(0,i.M)(n,"config"),l=new s.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/getUserMedia",pathname:"/api/getUserMedia",bundlePath:"",filename:""},userland:n})},69842:(e,r,t)=>{t.d(r,{A:()=>u});var n=t(48786),s=t(95969),o=t(29021),i=t.n(o),a=t(89159);async function u(e,r,t){try{let{keyCookieName:o,csrfCookieName:u}=(0,a.A)();if(!e.cookies?.[o]?.match(/./))throw Error("Request Cookies not Found!");let c=(0,s.A)({encryptedString:e.cookies[o]});if(!c)throw Error("Couldn't decrypt auth cookie!");let d=JSON.parse(c);if(!d.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(d.csrf_k)))throw Error("Deep Auth Failed. `csrf` key not found in request headers!");let _=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!_)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!i().existsSync(`${_}/${d.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==d.verification_status&&!t){let e=await (0,n.A)(`SELECT verification_status FROM users WHERE id='${d.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(d?.date&&Date.now()-d.date>6048e5)throw Error("Key expired!");return d}catch(e){return console.log(`userAuth Error: ${e.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>n});function n(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",n=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",s=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",o=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),i=r;e?.userId&&(i+=`user_${e.userId}_`),o&&(i+=`${o}_`),i+=t;let a=r;e?.userId&&(a+=`user_${e.userId}_`),o&&(a+=`${o}_`),a+=n;let u=r;return e?.userId&&(u+=`user_${e.userId}_`),o&&(u+=`${o}_`),{keyCookieName:i,csrfCookieName:a,oneTimeCodeName:u+=s}}},95969:(e,r,t)=>{t.d(r,{A:()=>o});var n=t(55511),s=t(79428);function o({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let o=r||process.env.DSQL_ENCRYPTION_PASSWORD,i=t||process.env.DSQL_ENCRYPTION_SALT,a=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!o?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let u=(0,n.scryptSync)(o,i,a),c=s.Buffer.alloc(16,0),d=(0,n.createDecipheriv)("aes-192-cbc",u,c);try{let r=d.update(e,"hex","utf8");return r+=d.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>n});async function n(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=35179);module.exports=t})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=7664,e.ids=[7664],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},35179:(e,r,t)=>{t.r(r),t.d(r,{config:()=>l,default:()=>d,routeModule:()=>_});var s={};t.r(s),t.d(s,{default:()=>c});var n=t(89947),o=t(2706),i=t(96762),a=t(48786),u=t(69842);async function c(e,r){if("GET"!==e.method)return r.json({msg:"Failed!"});let t=await (0,u.A)(e,r);if(!t)return r.json({success:!1,msg:"Unauthorized"});let s=await (0,a.A)(`SELECT * FROM user_media WHERE user_id=${t.id} ORDER BY id DESC`);r.json({media:s})}let d=(0,i.M)(s,"default"),l=(0,i.M)(s,"config"),_=new n.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/getUserMedia",pathname:"/api/getUserMedia",bundlePath:"",filename:""},userland:s})},69842:(e,r,t)=>{t.d(r,{A:()=>u});var s=t(48786),n=t(95969),o=t(29021),i=t.n(o),a=t(89159);async function u(e,r,t){try{let{keyCookieName:o,csrfCookieName:u}=(0,a.A)();if(!e.cookies?.[o]?.match(/./))throw Error("Request Cookies not Found!");let c=(0,n.A)({encryptedString:e.cookies[o]});if(!c)throw Error("Couldn't decrypt auth cookie!");let d=JSON.parse(c);if(!d.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(d.csrf_k)))throw console.log("req.headers",e.headers),console.log("userObject",d),Error("Deep Auth Failed. `csrf` key not found in request headers!");let l=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!l)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!i().existsSync(`${l}/${d.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==d.verification_status&&!t){let e=await (0,s.A)(`SELECT verification_status FROM users WHERE id='${d.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(d?.date&&Date.now()-d.date>6048e5)throw Error("Key expired!");return d}catch(e){return console.log(`userAuth Error: ${e.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>s});function s(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",n=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",o=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),i=r;e?.userId&&(i+=`user_${e.userId}_`),o&&(i+=`${o}_`),i+=t;let a=r;e?.userId&&(a+=`user_${e.userId}_`),o&&(a+=`${o}_`),a+=s;let u=r;return e?.userId&&(u+=`user_${e.userId}_`),o&&(u+=`${o}_`),{keyCookieName:i,csrfCookieName:a,oneTimeCodeName:u+=n}}},95969:(e,r,t)=>{t.d(r,{A:()=>o});var s=t(55511),n=t(79428);function o({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let o=r||process.env.DSQL_ENCRYPTION_PASSWORD,i=t||process.env.DSQL_ENCRYPTION_SALT,a=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!o?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let u=(0,s.scryptSync)(o,i,a),c=n.Buffer.alloc(16,0),d=(0,s.createDecipheriv)("aes-192-cbc",u,c);try{let r=d.update(e,"hex","utf8");return r+=d.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>s});async function s(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=35179);module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/getUserSchemaData.js b/dsql-app/.local_dist/server/pages/api/getUserSchemaData.js index a6c691e..ba86c0a 100644 --- a/dsql-app/.local_dist/server/pages/api/getUserSchemaData.js +++ b/dsql-app/.local_dist/server/pages/api/getUserSchemaData.js @@ -1,4 +1,4 @@ -"use strict";(()=>{var e={};e.id=2221,e.ids=[2221],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},22133:(e,r,t)=>{t.r(r),t.d(r,{config:()=>f,default:()=>d,routeModule:()=>_});var s={};t.r(s),t.d(s,{default:()=>l});var n=t(89947),o=t(2706),a=t(96762),i=t(67619),c=t(69842);let u=t(29021);async function l(e,r){if("GET"!==e.method)return r.json({msg:"Failed!"});let t=await (0,c.A)(e,r);if(!t)return r.json({success:!1,msg:"Unauthorized"});try{let e=`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${t.id}/main.json`,s=JSON.parse(u.readFileSync(e,"utf8"));r.json({success:!0,schemaData:s})}catch(e){(0,i.default)({component:"/api/getUserSchemaData/main-catch-error",message:e.message,user:t}),r.json({success:!1,msg:"Couldn't read schema data"})}}let d=(0,a.M)(s,"default"),f=(0,a.M)(s,"config"),_=new n.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/getUserSchemaData",pathname:"/api/getUserSchemaData",bundlePath:"",filename:""},userland:s})},69842:(e,r,t)=>{t.d(r,{A:()=>c});var s=t(48786),n=t(95969),o=t(29021),a=t.n(o),i=t(89159);async function c(e,r,t){try{let{keyCookieName:o,csrfCookieName:c}=(0,i.A)();if(!e.cookies?.[o]?.match(/./))throw Error("Request Cookies not Found!");let u=(0,n.A)({encryptedString:e.cookies[o]});if(!u)throw Error("Couldn't decrypt auth cookie!");let l=JSON.parse(u);if(!l.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(l.csrf_k)))throw Error("Deep Auth Failed. `csrf` key not found in request headers!");let d=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!d)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!a().existsSync(`${d}/${l.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==l.verification_status&&!t){let e=await (0,s.A)(`SELECT verification_status FROM users WHERE id='${l.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(l?.date&&Date.now()-l.date>6048e5)throw Error("Key expired!");return l}catch(e){return console.log(`userAuth Error: ${e.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>s});function s(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",n=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",o=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),a=r;e?.userId&&(a+=`user_${e.userId}_`),o&&(a+=`${o}_`),a+=t;let i=r;e?.userId&&(i+=`user_${e.userId}_`),o&&(i+=`${o}_`),i+=s;let c=r;return e?.userId&&(c+=`user_${e.userId}_`),o&&(c+=`${o}_`),{keyCookieName:a,csrfCookieName:i,oneTimeCodeName:c+=n}}},67619:(e,r,t)=>{t.r(r),t.d(r,{default:()=>o});var s=t(29021),n=t.n(s);async function o({user:e,message:r,component:t,noMail:s,req:o}){let a=new Date,i=(()=>{if(!o)return null;try{let e=o.headers["x-forwarded-for"],r=o.headers["x-real-ip"],t=o.headers["cf-connecting-ip"],s=Array.isArray(e)?e[0]:e?.split(",")[0],n=t||s||r||o.socket.remoteAddress;if(!n)return null;return String(n)}catch(e){return null}})();try{let s=`🚀 SERVER ERROR =========================== +"use strict";(()=>{var e={};e.id=2221,e.ids=[2221],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},22133:(e,r,t)=>{t.r(r),t.d(r,{config:()=>f,default:()=>_,routeModule:()=>p});var s={};t.r(s),t.d(s,{default:()=>d});var n=t(89947),o=t(2706),a=t(96762),i=t(29021),c=t.n(i),u=t(67619),l=t(69842);async function d(e,r){if("GET"!==e.method)return r.json({msg:"Failed!"});let t=await (0,l.A)(e,r);if(!t)return r.json({success:!1,msg:"Unauthorized"});try{let e=`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${t.id}/main.json`,s=JSON.parse(c().readFileSync(e,"utf8"));r.json({success:!0,schemaData:s})}catch(e){(0,u.A)({component:"/api/getUserSchemaData/main-catch-error",message:e.message,user:t}),r.json({success:!1,msg:"Couldn't read schema data"})}}let _=(0,a.M)(s,"default"),f=(0,a.M)(s,"config"),p=new n.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/getUserSchemaData",pathname:"/api/getUserSchemaData",bundlePath:"",filename:""},userland:s})},69842:(e,r,t)=>{t.d(r,{A:()=>c});var s=t(48786),n=t(95969),o=t(29021),a=t.n(o),i=t(89159);async function c(e,r,t){try{let{keyCookieName:o,csrfCookieName:c}=(0,i.A)();if(!e.cookies?.[o]?.match(/./))throw Error("Request Cookies not Found!");let u=(0,n.A)({encryptedString:e.cookies[o]});if(!u)throw Error("Couldn't decrypt auth cookie!");let l=JSON.parse(u);if(!l.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(l.csrf_k)))throw console.log("req.headers",e.headers),console.log("userObject",l),Error("Deep Auth Failed. `csrf` key not found in request headers!");let d=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!d)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!a().existsSync(`${d}/${l.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==l.verification_status&&!t){let e=await (0,s.A)(`SELECT verification_status FROM users WHERE id='${l.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(l?.date&&Date.now()-l.date>6048e5)throw Error("Key expired!");return l}catch(e){return console.log(`userAuth Error: ${e.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>s});function s(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",n=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",o=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),a=r;e?.userId&&(a+=`user_${e.userId}_`),o&&(a+=`${o}_`),a+=t;let i=r;e?.userId&&(i+=`user_${e.userId}_`),o&&(i+=`${o}_`),i+=s;let c=r;return e?.userId&&(c+=`user_${e.userId}_`),o&&(c+=`${o}_`),{keyCookieName:a,csrfCookieName:i,oneTimeCodeName:c+=n}}},67619:(e,r,t)=>{t.d(r,{A:()=>o});var s=t(29021),n=t.n(s);async function o({user:e,message:r,component:t,noMail:s,req:o}){let a=new Date,i=(()=>{if(!o)return null;try{let e=o.headers["x-forwarded-for"],r=o.headers["x-real-ip"],t=o.headers["cf-connecting-ip"],s=Array.isArray(e)?e[0]:e?.split(",")[0],n=t||s||r||o.socket.remoteAddress;if(!n)return null;return String(n)}catch(e){return null}})();try{let s=`🚀 SERVER ERROR =========================== Error Message: ${r} Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(s+=` User Id: ${e?.id} diff --git a/dsql-app/.local_dist/server/pages/api/importDatabase.js b/dsql-app/.local_dist/server/pages/api/importDatabase.js index f32f696..7d624df 100644 --- a/dsql-app/.local_dist/server/pages/api/importDatabase.js +++ b/dsql-app/.local_dist/server/pages/api/importDatabase.js @@ -1,4 +1,4 @@ -"use strict";(()=>{var e={};e.id=8675,e.ids=[8675],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},72583:e=>{e.exports=require("sanitize-html")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},79646:e=>{e.exports=require("child_process")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},21820:e=>{e.exports=require("os")},33873:e=>{e.exports=require("path")},54356:(e,r,t)=>{t.r(r),t.d(r,{config:()=>b,default:()=>y,routeModule:()=>E});var a={};t.r(a),t.d(a,{default:()=>g});var s=t(89947),n=t(2706),l=t(96762),i=t(30944),o=t(4820),u=t(21724),d=t(98e3);function c(e){return e?e.split("-").filter(e=>""!==e).map(e=>e.substr(0,1).toUpperCase()+e.substr(1).toLowerCase()).join(" "):null}async function m({userId:e,database:r}){try{if(!e){console.log("No user Id provided");return}let t=(0,o.A)({userId:e});if(!t)throw Error("User schema data not found!");let a=t.filter(e=>e.dbFullName===r.db_full_name)[0],s=await (0,i.A)({database:r.db_full_name,queryString:`SHOW TABLES FROM ${r.db_full_name}`});if(!s)throw Error("No Existing Tables");for(let t=0;te.Field===a)[0],c=o.indexes?.filter(e=>e.indexName==t);c&&c[0]?c[0].indexTableFields?.push({value:a,dataType:d.Type.toUpperCase()}):(i.indexTableFields=[{value:a,dataType:d.Type.toUpperCase()}],o.indexes?.push(i))}a.tables.push(o)}return(0,u.A)({schemaData:t,userId:e}),!0}catch(e){return console.log(e),!1}}var p=t(67619),_=t(69842);let f=t(29021),h=t(21820),{execSync:S}=t(79646);async function g(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await (0,_.A)(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let{database:a,fileBase64:s}=e.body;a?.db_full_name?.match(/datasquirel_user_.*/)||r.json({success:!1,msg:"Unauthorized"});try{let e=`user-${t.id}-temp-sql`,n=h.platform().match(/win/i)?"'C:\\Program Files\\MySQL\\MySQL Server 8.0\\bin\\mysql.exe'":"mysql";f.writeFileSync(`./.tmp/${e}.sql`,s,"base64");let l={cwd:process.cwd()};h.platform().match(/win/i)&&(l.shell="bash.exe"),S(`${n} -u ${process.env.DSQL_DB_USERNAME} -h ${process.env.DSQL_DB_HOST} -p${process.env.DSQL_DB_PASSWORD} ${a.db_full_name} < .tmp/${e}.sql`,l);let i=await m({database:a,userId:t.id});r.json({success:!!i})}catch(e){console.log(e),(0,p.default)({component:"/api/importDatabase/catch-error",message:e.message,user:t}),r.json({success:!1,msg:"Import Failed!"})}}let y=(0,l.M)(a,"default"),b=(0,l.M)(a,"config"),E=new s.PagesAPIRouteModule({definition:{kind:n.A.PAGES_API,page:"/api/importDatabase",pathname:"/api/importDatabase",bundlePath:"",filename:""},userland:a})},69842:(e,r,t)=>{t.d(r,{A:()=>o});var a=t(48786),s=t(95969),n=t(29021),l=t.n(n),i=t(89159);async function o(e,r,t){try{let{keyCookieName:n,csrfCookieName:o}=(0,i.A)();if(!e.cookies?.[n]?.match(/./))throw Error("Request Cookies not Found!");let u=(0,s.A)({encryptedString:e.cookies[n]});if(!u)throw Error("Couldn't decrypt auth cookie!");let d=JSON.parse(u);if(!d.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(d.csrf_k)))throw Error("Deep Auth Failed. `csrf` key not found in request headers!");let c=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!c)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!l().existsSync(`${c}/${d.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==d.verification_status&&!t){let e=await (0,a.A)(`SELECT verification_status FROM users WHERE id='${d.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(d?.date&&Date.now()-d.date>6048e5)throw Error("Key expired!");return d}catch(e){return console.log(`userAuth Error: ${e.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>a});function a(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",a=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",s=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",n=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),l=r;e?.userId&&(l+=`user_${e.userId}_`),n&&(l+=`${n}_`),l+=t;let i=r;e?.userId&&(i+=`user_${e.userId}_`),n&&(i+=`${n}_`),i+=a;let o=r;return e?.userId&&(o+=`user_${e.userId}_`),n&&(o+=`${n}_`),{keyCookieName:l,csrfCookieName:i,oneTimeCodeName:o+=s}}},4820:(e,r,t)=>{t.d(r,{A:()=>o});var a=t(67619),s=t(29021),n=t.n(s),l=t(33873),i=t.n(l);function o({userId:e}){try{let r=i().resolve(process.cwd(),`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${e}/main.json`);return JSON.parse(n().readFileSync(r,"utf-8"))}catch(e){return(0,a.default)({component:"grabUserSchemaData",message:e.message}),null}}},43775:(e,r,t)=>{t.d(r,{A:()=>n});var a=t(95969);let s=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/;async function n({unparsedResults:e,tableSchema:r}){let t=[];try{for(let n=0;n",r.message),e}}},67619:(e,r,t)=>{t.r(r),t.d(r,{default:()=>n});var a=t(29021),s=t.n(a);async function n({user:e,message:r,component:t,noMail:a,req:n}){let l=new Date,i=(()=>{if(!n)return null;try{let e=n.headers["x-forwarded-for"],r=n.headers["x-real-ip"],t=n.headers["cf-connecting-ip"],a=Array.isArray(e)?e[0]:e?.split(",")[0],s=t||a||r||n.socket.remoteAddress;if(!s)return null;return String(s)}catch(e){return null}})();try{let a=`🚀 SERVER ERROR =========================== +"use strict";(()=>{var e={};e.id=8675,e.ids=[8675],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},72583:e=>{e.exports=require("sanitize-html")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},79646:e=>{e.exports=require("child_process")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},21820:e=>{e.exports=require("os")},33873:e=>{e.exports=require("path")},54356:(e,r,t)=>{t.r(r),t.d(r,{config:()=>A,default:()=>E,routeModule:()=>v});var a={};t.r(a),t.d(a,{default:()=>b});var s=t(89947),n=t(2706),l=t(96762),i=t(29021),o=t.n(i),u=t(21820),c=t.n(u),d=t(79646),m=t(30944),p=t(4820),_=t(21724),f=t(98e3);function h(e){return e?e.split("-").filter(e=>""!==e).map(e=>e.substr(0,1).toUpperCase()+e.substr(1).toLowerCase()).join(" "):null}async function S({userId:e,database:r}){try{if(!e){console.log("No user Id provided");return}let t=(0,p.A)({userId:e});if(!t)throw Error("User schema data not found!");let a=t.filter(e=>e.dbFullName===r.db_full_name)[0],s=await (0,m.A)({database:r.db_full_name,queryString:`SHOW TABLES FROM ${r.db_full_name}`});if(!s)throw Error("No Existing Tables");for(let t=0;te.Field===a)[0],m=i.indexes?.filter(e=>e.indexName==t);m&&m[0]?m[0].indexTableFields?.push({value:a,dataType:d.Type.toUpperCase()}):(c.indexTableFields=[{value:a,dataType:d.Type.toUpperCase()}],i.indexes?.push(c))}a.tables.push(i)}return(0,_.A)({schemaData:t,userId:e}),!0}catch(e){return console.log(e),!1}}var g=t(67619),y=t(69842);async function b(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await (0,y.A)(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let{database:a,fileBase64:s}=e.body;a?.db_full_name?.match(/datasquirel_user_.*/)||r.json({success:!1,msg:"Unauthorized"});try{let e=`user-${t.id}-temp-sql`,n=c().platform().match(/win/i)?"'C:\\Program Files\\MySQL\\MySQL Server 8.0\\bin\\mysql.exe'":"mysql";o().writeFileSync(`./.tmp/${e}.sql`,s,"base64");let l={cwd:process.cwd()};c().platform().match(/win/i)&&(l.shell="bash.exe"),(0,d.execSync)(`${n} -u ${process.env.DSQL_DB_USERNAME} -h ${process.env.DSQL_DB_HOST} -p${process.env.DSQL_DB_PASSWORD} ${a.db_full_name} < .tmp/${e}.sql`,l);let i=await S({database:a,userId:t.id});r.json({success:!!i})}catch(e){console.log(e),(0,g.A)({component:"/api/importDatabase/catch-error",message:e.message,user:t}),r.json({success:!1,msg:"Import Failed!"})}}let E=(0,l.M)(a,"default"),A=(0,l.M)(a,"config"),v=new s.PagesAPIRouteModule({definition:{kind:n.A.PAGES_API,page:"/api/importDatabase",pathname:"/api/importDatabase",bundlePath:"",filename:""},userland:a})},69842:(e,r,t)=>{t.d(r,{A:()=>o});var a=t(48786),s=t(95969),n=t(29021),l=t.n(n),i=t(89159);async function o(e,r,t){try{let{keyCookieName:n,csrfCookieName:o}=(0,i.A)();if(!e.cookies?.[n]?.match(/./))throw Error("Request Cookies not Found!");let u=(0,s.A)({encryptedString:e.cookies[n]});if(!u)throw Error("Couldn't decrypt auth cookie!");let c=JSON.parse(u);if(!c.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(c.csrf_k)))throw console.log("req.headers",e.headers),console.log("userObject",c),Error("Deep Auth Failed. `csrf` key not found in request headers!");let d=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!d)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!l().existsSync(`${d}/${c.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==c.verification_status&&!t){let e=await (0,a.A)(`SELECT verification_status FROM users WHERE id='${c.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(c?.date&&Date.now()-c.date>6048e5)throw Error("Key expired!");return c}catch(e){return console.log(`userAuth Error: ${e.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>a});function a(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",a=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",s=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",n=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),l=r;e?.userId&&(l+=`user_${e.userId}_`),n&&(l+=`${n}_`),l+=t;let i=r;e?.userId&&(i+=`user_${e.userId}_`),n&&(i+=`${n}_`),i+=a;let o=r;return e?.userId&&(o+=`user_${e.userId}_`),n&&(o+=`${n}_`),{keyCookieName:l,csrfCookieName:i,oneTimeCodeName:o+=s}}},4820:(e,r,t)=>{t.d(r,{A:()=>o});var a=t(67619),s=t(29021),n=t.n(s),l=t(33873),i=t.n(l);function o({userId:e}){try{let r=i().resolve(process.cwd(),`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${e}/main.json`);return JSON.parse(n().readFileSync(r,"utf-8"))}catch(e){return(0,a.A)({component:"grabUserSchemaData",message:e.message}),null}}},43775:(e,r,t)=>{t.d(r,{A:()=>n});var a=t(95969);let s=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/;async function n({unparsedResults:e,tableSchema:r}){let t=[];try{for(let n=0;n",r.message),e}}},67619:(e,r,t)=>{t.d(r,{A:()=>n});var a=t(29021),s=t.n(a);async function n({user:e,message:r,component:t,noMail:a,req:n}){let l=new Date,i=(()=>{if(!n)return null;try{let e=n.headers["x-forwarded-for"],r=n.headers["x-real-ip"],t=n.headers["cf-connecting-ip"],a=Array.isArray(e)?e[0]:e?.split(",")[0],s=t||a||r||n.socket.remoteAddress;if(!s)return null;return String(s)}catch(e){return null}})();try{let a=`🚀 SERVER ERROR =========================== Error Message: ${r} Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(a+=` User Id: ${e?.id} @@ -13,4 +13,4 @@ Date: ${l.toDateString()} -${o}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},21724:(e,r,t)=>{t.d(r,{A:()=>o});var a=t(67619),s=t(29021),n=t.n(s),l=t(33873),i=t.n(l);function o({userId:e,schemaData:r}){try{let t=i().resolve(process.cwd(),`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${e}/main.json`);return n().writeFileSync(t,JSON.stringify(r),"utf8"),!0}catch(e){return(0,a.default)({component:"/functions/backend/setUserSchemaData",message:e.message}),!1}}},30944:(e,r,t)=>{t.d(r,{A:()=>o});var a=t(43775),s=t(67619),n=t(48786),l=t(37275),i=t(7971);async function o({queryString:e,queryValuesArray:r,database:t,tableSchema:o,useLocal:u}){let d;let c=!!u||!!t?.match(/^datasquirel$/),m=u?i.A:c?n.A:l.default;try{d=e&&r&&Array.isArray(r)&&r[0]?c?await m(e,r):await m({paradigm:"Full Access",queryString:e,queryValues:r}):c?await m(e):await m({paradigm:"Full Access",queryString:e})}catch(e){console.log(`varDatabaseDbHandler Error: ${e.message}`),(0,s.default)({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(d&&o)try{let e=d;return await (0,a.A)({unparsedResults:e,tableSchema:o})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",t,e),(0,s.default)({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(d)return d;else return null}},95969:(e,r,t)=>{t.d(r,{A:()=>n});var a=t(55511),s=t(79428);function n({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let n=r||process.env.DSQL_ENCRYPTION_PASSWORD,l=t||process.env.DSQL_ENCRYPTION_SALT,i=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!n?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!l?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let o=(0,a.scryptSync)(n,l,i),u=s.Buffer.alloc(16,0),d=(0,a.createDecipheriv)("aes-192-cbc",o,u);try{let r=d.update(e,"hex","utf8");return r+=d.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=e=>r(r.s=e),a=r.X(0,[1251],()=>t(54356));module.exports=a})(); \ No newline at end of file +${o}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},21724:(e,r,t)=>{t.d(r,{A:()=>o});var a=t(67619),s=t(29021),n=t.n(s),l=t(33873),i=t.n(l);function o({userId:e,schemaData:r}){try{let t=i().resolve(process.cwd(),`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${e}/main.json`);return n().writeFileSync(t,JSON.stringify(r),"utf8"),!0}catch(e){return(0,a.A)({component:"/functions/backend/setUserSchemaData",message:e.message}),!1}}},30944:(e,r,t)=>{t.d(r,{A:()=>o});var a=t(43775),s=t(67619),n=t(48786),l=t(37275),i=t(7971);async function o({queryString:e,queryValuesArray:r,database:t,tableSchema:o,useLocal:u}){let c;let d=!!u||!!t?.match(/^datasquirel$/),m=u?i.A:d?n.A:l.A;try{c=e&&r&&Array.isArray(r)&&r[0]?d?await m(e,r):await m({paradigm:"Full Access",queryString:e,queryValues:r}):d?await m(e):await m({paradigm:"Full Access",queryString:e})}catch(e){console.log(`varDatabaseDbHandler Error: ${e.message}`),(0,s.A)({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(c&&o)try{let e=c;return await (0,a.A)({unparsedResults:e,tableSchema:o})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",t,e),(0,s.A)({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(c)return c;else return null}},95969:(e,r,t)=>{t.d(r,{A:()=>n});var a=t(55511),s=t(79428);function n({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let n=r||process.env.DSQL_ENCRYPTION_PASSWORD,l=t||process.env.DSQL_ENCRYPTION_SALT,i=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!n?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!l?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let o=(0,a.scryptSync)(n,l,i),u=s.Buffer.alloc(16,0),c=(0,a.createDecipheriv)("aes-192-cbc",o,u);try{let r=c.update(e,"hex","utf8");return r+=c.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=e=>r(r.s=e),a=r.X(0,[1251],()=>t(54356));module.exports=a})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/importDatabaseSchema.js b/dsql-app/.local_dist/server/pages/api/importDatabaseSchema.js index a4314e1..7af01ef 100644 --- a/dsql-app/.local_dist/server/pages/api/importDatabaseSchema.js +++ b/dsql-app/.local_dist/server/pages/api/importDatabaseSchema.js @@ -1 +1 @@ -"use strict";(()=>{var e={};e.id=3382,e.ids=[3382],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},79428:e=>{e.exports=require("buffer")},79646:e=>{e.exports=require("child_process")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},21820:e=>{e.exports=require("os")},33873:e=>{e.exports=require("path")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},84612:(e,r,t)=>{t.r(r),t.d(r,{config:()=>E,default:()=>p,routeModule:()=>S});var s={};t.r(s),t.d(s,{default:()=>f});var o=t(89947),n=t(2706),a=t(96762),i=t(67619),u=t(69842),c=t(76856);let d=t(29021),l=t(33873);t(21820);let{execSync:_}=t(79646);async function f(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await (0,u.A)(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let{database:s,fileBase64:o}=e.body;s?.db_full_name?.match(/datasquirel_user_.*/)||r.json({success:!1,msg:"Unauthorized"});try{let e=Buffer.from(o,"base64").toString("utf-8"),n=JSON.parse(e),a=l.resolve(String(process.env.DSQL_USER_DB_SCHEMA_PATH),`user-${t.id}/main.json`);if(!d.existsSync(a))return r.end();let i=JSON.parse(d.readFileSync(a,"utf-8")),u=i.find(e=>e.dbFullName==s.db_full_name);if(!u)throw Error("Database not found!");u.tables=n.tables,d.writeFileSync(a,JSON.stringify(i),"utf-8"),await (0,c.A)({userId:t.id,targetDatabase:s.db_full_name}),r.json({success:!0})}catch(e){console.log("JSON import ERROR =>",e.message),(0,i.default)({component:"/api/importDatabase/catch-error",message:e.message,user:t}),r.json({success:!1,msg:"Import Failed!"})}}let p=(0,a.M)(s,"default"),E=(0,a.M)(s,"config"),S=new o.PagesAPIRouteModule({definition:{kind:n.A.PAGES_API,page:"/api/importDatabaseSchema",pathname:"/api/importDatabaseSchema",bundlePath:"",filename:""},userland:s})},69842:(e,r,t)=>{t.d(r,{A:()=>u});var s=t(48786),o=t(95969),n=t(29021),a=t.n(n),i=t(89159);async function u(e,r,t){try{let{keyCookieName:n,csrfCookieName:u}=(0,i.A)();if(!e.cookies?.[n]?.match(/./))throw Error("Request Cookies not Found!");let c=(0,o.A)({encryptedString:e.cookies[n]});if(!c)throw Error("Couldn't decrypt auth cookie!");let d=JSON.parse(c);if(!d.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(d.csrf_k)))throw Error("Deep Auth Failed. `csrf` key not found in request headers!");let l=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!l)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!a().existsSync(`${l}/${d.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==d.verification_status&&!t){let e=await (0,s.A)(`SELECT verification_status FROM users WHERE id='${d.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(d?.date&&Date.now()-d.date>6048e5)throw Error("Key expired!");return d}catch(e){return console.log(`userAuth Error: ${e.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>s});function s(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",o=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",n=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),a=r;e?.userId&&(a+=`user_${e.userId}_`),n&&(a+=`${n}_`),a+=t;let i=r;e?.userId&&(i+=`user_${e.userId}_`),n&&(i+=`${n}_`),i+=s;let u=r;return e?.userId&&(u+=`user_${e.userId}_`),n&&(u+=`${n}_`),{keyCookieName:a,csrfCookieName:i,oneTimeCodeName:u+=o}}},48786:(e,r,t)=>{t.d(r,{A:()=>s});async function s(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=e=>r(r.s=e),s=r.X(0,[2282],()=>t(84612));module.exports=s})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=3382,e.ids=[3382],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},84612:(e,r,t)=>{t.r(r),t.d(r,{config:()=>S,default:()=>E,routeModule:()=>A});var s={};t.r(s),t.d(s,{default:()=>p});var o=t(89947),n=t(2706),a=t(96762),i=t(29021),u=t.n(i),c=t(33873),d=t.n(c),l=t(67619),_=t(69842),f=t(76856);async function p(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await (0,_.A)(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let{database:s,fileBase64:o}=e.body;s?.db_full_name?.match(/datasquirel_user_.*/)||r.json({success:!1,msg:"Unauthorized"});try{let e=Buffer.from(o,"base64").toString("utf-8"),n=JSON.parse(e),a=d().resolve(String(process.env.DSQL_USER_DB_SCHEMA_PATH),`user-${t.id}/main.json`);if(!u().existsSync(a))return r.end();let i=JSON.parse(u().readFileSync(a,"utf-8")),c=i.find(e=>e.dbFullName==s.db_full_name);if(!c)throw Error("Database not found!");c.tables=n.tables,u().writeFileSync(a,JSON.stringify(i),"utf-8"),await (0,f.A)({userId:t.id,targetDatabase:s.db_full_name}),r.json({success:!0})}catch(e){console.log("JSON import ERROR =>",e.message),(0,l.A)({component:"/api/importDatabase/catch-error",message:e.message,user:t}),r.json({success:!1,msg:"Import Failed!"})}}let E=(0,a.M)(s,"default"),S=(0,a.M)(s,"config"),A=new o.PagesAPIRouteModule({definition:{kind:n.A.PAGES_API,page:"/api/importDatabaseSchema",pathname:"/api/importDatabaseSchema",bundlePath:"",filename:""},userland:s})},69842:(e,r,t)=>{t.d(r,{A:()=>u});var s=t(48786),o=t(95969),n=t(29021),a=t.n(n),i=t(89159);async function u(e,r,t){try{let{keyCookieName:n,csrfCookieName:u}=(0,i.A)();if(!e.cookies?.[n]?.match(/./))throw Error("Request Cookies not Found!");let c=(0,o.A)({encryptedString:e.cookies[n]});if(!c)throw Error("Couldn't decrypt auth cookie!");let d=JSON.parse(c);if(!d.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(d.csrf_k)))throw console.log("req.headers",e.headers),console.log("userObject",d),Error("Deep Auth Failed. `csrf` key not found in request headers!");let l=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!l)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!a().existsSync(`${l}/${d.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==d.verification_status&&!t){let e=await (0,s.A)(`SELECT verification_status FROM users WHERE id='${d.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(d?.date&&Date.now()-d.date>6048e5)throw Error("Key expired!");return d}catch(e){return console.log(`userAuth Error: ${e.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>s});function s(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",o=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",n=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),a=r;e?.userId&&(a+=`user_${e.userId}_`),n&&(a+=`${n}_`),a+=t;let i=r;e?.userId&&(i+=`user_${e.userId}_`),n&&(i+=`${n}_`),i+=s;let u=r;return e?.userId&&(u+=`user_${e.userId}_`),n&&(u+=`${n}_`),{keyCookieName:a,csrfCookieName:i,oneTimeCodeName:u+=o}}},48786:(e,r,t)=>{t.d(r,{A:()=>s});async function s(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=e=>r(r.s=e),s=r.X(0,[2282],()=>t(84612));module.exports=s})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/infiniteScroll.js b/dsql-app/.local_dist/server/pages/api/infiniteScroll.js index dcdb45b..410b50b 100644 --- a/dsql-app/.local_dist/server/pages/api/infiniteScroll.js +++ b/dsql-app/.local_dist/server/pages/api/infiniteScroll.js @@ -1,16 +1,16 @@ -"use strict";(()=>{var e={};e.id=8932,e.ids=[8932],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},36629:(e,r,t)=>{t.r(r),t.d(r,{config:()=>f,default:()=>_,routeModule:()=>p});var a={};t.r(a),t.d(a,{default:()=>d});var s=t(89947),n=t(2706),o=t(96762),l=t(69842),i=t(67619),c=t(60125),u=t(30944);async function d(e,r){if("POST"!==e.method)return r.json({user:null,msg:"Registration Failed!"});let t=await (0,l.A)(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let a=e.body;try{let s=await (0,c.A)({databaseSlug:a.dbName,request:e,user:t,query:e.query}),n=s?s?.rootUserId?s.rootUserId:s.dbUserId:null;if(!n)throw Error("User not Found!");let o=`datasquirel_user_${n}_${a.dbName}`,l=a.tableName,i=a.page,d=20*i,_=`SELECT * FROM ${o}.${l}`,f=[];a.search&&a.searchField&&(_+=` WHERE LOWER(\`${a.searchField.toLowerCase().replace(/ /g,"_")}\`) LIKE ?`,f.push(`%${a.search.toLowerCase()}%`)),_+=` ORDER BY id DESC LIMIT 20 OFFSET ${d}`;let p=await (0,u.A)({database:o,queryString:_,queryValuesArray:f,tableSchema:a.tableSchema}),E={success:!0,data:p,page:Number(i)+1};r.json(E)}catch(e){(0,i.default)({component:"/api/infiniteScroll/catch-error",message:e.message,user:t}),r.json({success:!1,data:null})}}t(29021);let _=(0,o.M)(a,"default"),f=(0,o.M)(a,"config"),p=new s.PagesAPIRouteModule({definition:{kind:n.A.PAGES_API,page:"/api/infiniteScroll",pathname:"/api/infiniteScroll",bundlePath:"",filename:""},userland:a})},60125:(e,r,t)=>{t.d(r,{A:()=>s});var a=t(95969);async function s({request:e,databaseSlug:r,user:t,query:s}){try{let n=t.id,o=null;if(!s?.delegated)return{dbUserId:n};let l=s.dbUserId,i=`${process.env.DSQL_USER_DB_PREFIX}${l}_${r}`,c=`${process.env.DSQL_USER_DELEGATED_DB_COOKIE_PREFIX}${i}`;try{if(!e.cookies?.[c])throw Error("Cookie not present");let t=(0,a.A)({encryptedString:e.cookies[c]});if(!t)throw Error("Invalid Token");if((o=JSON.parse(t)).databaseSlug===r)return{dbUserId:n=o.rootUserId,rootUserId:o.rootUserId,rootUserName:o.rootUserName,rootUserEmail:o.rootUserEmail,rootUserImage:o.rootUserImage,databaseFullName:o.databaseFullName,databaseSlug:o.databaseSlug,allowedTables:o.allowedTables,priviledges:o.priviledges,database:o.databaseSlug,delegated:!0}}catch(e){}return{dbUserId:n}}catch(e){return null}}},69842:(e,r,t)=>{t.d(r,{A:()=>i});var a=t(48786),s=t(95969),n=t(29021),o=t.n(n),l=t(89159);async function i(e,r,t){try{let{keyCookieName:n,csrfCookieName:i}=(0,l.A)();if(!e.cookies?.[n]?.match(/./))throw Error("Request Cookies not Found!");let c=(0,s.A)({encryptedString:e.cookies[n]});if(!c)throw Error("Couldn't decrypt auth cookie!");let u=JSON.parse(c);if(!u.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(u.csrf_k)))throw Error("Deep Auth Failed. `csrf` key not found in request headers!");let d=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!d)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!o().existsSync(`${d}/${u.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==u.verification_status&&!t){let e=await (0,a.A)(`SELECT verification_status FROM users WHERE id='${u.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(u?.date&&Date.now()-u.date>6048e5)throw Error("Key expired!");return u}catch(e){return console.log(`userAuth Error: ${e.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>a});function a(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",a=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",s=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",n=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),o=r;e?.userId&&(o+=`user_${e.userId}_`),n&&(o+=`${n}_`),o+=t;let l=r;e?.userId&&(l+=`user_${e.userId}_`),n&&(l+=`${n}_`),l+=a;let i=r;return e?.userId&&(i+=`user_${e.userId}_`),n&&(i+=`${n}_`),{keyCookieName:o,csrfCookieName:l,oneTimeCodeName:i+=s}}},43775:(e,r,t)=>{t.d(r,{A:()=>n});var a=t(95969);let s=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/;async function n({unparsedResults:e,tableSchema:r}){let t=[];try{for(let n=0;n",r.message),e}}},67619:(e,r,t)=>{t.r(r),t.d(r,{default:()=>n});var a=t(29021),s=t.n(a);async function n({user:e,message:r,component:t,noMail:a,req:n}){let o=new Date,l=(()=>{if(!n)return null;try{let e=n.headers["x-forwarded-for"],r=n.headers["x-real-ip"],t=n.headers["cf-connecting-ip"],a=Array.isArray(e)?e[0]:e?.split(",")[0],s=t||a||r||n.socket.remoteAddress;if(!s)return null;return String(s)}catch(e){return null}})();try{let a=`🚀 SERVER ERROR =========================== +"use strict";(()=>{var e={};e.id=8932,e.ids=[8932],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},36629:(e,r,t)=>{t.r(r),t.d(r,{config:()=>f,default:()=>_,routeModule:()=>p});var s={};t.r(s),t.d(s,{default:()=>d});var a=t(89947),n=t(2706),o=t(96762),l=t(69842),i=t(67619),c=t(60125),u=t(30944);async function d(e,r){if("POST"!==e.method)return r.json({user:null,msg:"Registration Failed!"});let t=await (0,l.A)(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let s=e.body;try{let a=await (0,c.A)({databaseSlug:s.dbName,request:e,user:t,query:e.query}),n=a?a?.rootUserId?a.rootUserId:a.dbUserId:null;if(!n)throw Error("User not Found!");let o=`datasquirel_user_${n}_${s.dbName}`,l=s.tableName,i=s.page,d=20*i,_=`SELECT * FROM ${o}.${l}`,f=[];s.search&&s.searchField&&(_+=` WHERE LOWER(\`${s.searchField.toLowerCase().replace(/ /g,"_")}\`) LIKE ?`,f.push(`%${s.search.toLowerCase()}%`)),_+=` ORDER BY id DESC LIMIT 20 OFFSET ${d}`;let p=await (0,u.A)({database:o,queryString:_,queryValuesArray:f,tableSchema:s.tableSchema}),E={success:!0,data:p,page:Number(i)+1};r.json(E)}catch(e){(0,i.A)({component:"/api/infiniteScroll/catch-error",message:e.message,user:t}),r.json({success:!1,data:null})}}let _=(0,o.M)(s,"default"),f=(0,o.M)(s,"config"),p=new a.PagesAPIRouteModule({definition:{kind:n.A.PAGES_API,page:"/api/infiniteScroll",pathname:"/api/infiniteScroll",bundlePath:"",filename:""},userland:s})},60125:(e,r,t)=>{t.d(r,{A:()=>a});var s=t(95969);async function a({request:e,databaseSlug:r,user:t,query:a}){try{let n=t.id,o=null;if(!a?.delegated)return{dbUserId:n};let l=a.dbUserId,i=`${process.env.DSQL_USER_DB_PREFIX}${l}_${r}`,c=`${process.env.DSQL_USER_DELEGATED_DB_COOKIE_PREFIX}${i}`;try{if(!e.cookies?.[c])throw Error("Cookie not present");let t=(0,s.A)({encryptedString:e.cookies[c]});if(!t)throw Error("Invalid Token");if((o=JSON.parse(t)).databaseSlug===r)return{dbUserId:n=o.rootUserId,rootUserId:o.rootUserId,rootUserName:o.rootUserName,rootUserEmail:o.rootUserEmail,rootUserImage:o.rootUserImage,databaseFullName:o.databaseFullName,databaseSlug:o.databaseSlug,allowedTables:o.allowedTables,priviledges:o.priviledges,database:o.databaseSlug,delegated:!0}}catch(e){}return{dbUserId:n}}catch(e){return null}}},69842:(e,r,t)=>{t.d(r,{A:()=>i});var s=t(48786),a=t(95969),n=t(29021),o=t.n(n),l=t(89159);async function i(e,r,t){try{let{keyCookieName:n,csrfCookieName:i}=(0,l.A)();if(!e.cookies?.[n]?.match(/./))throw Error("Request Cookies not Found!");let c=(0,a.A)({encryptedString:e.cookies[n]});if(!c)throw Error("Couldn't decrypt auth cookie!");let u=JSON.parse(c);if(!u.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(u.csrf_k)))throw console.log("req.headers",e.headers),console.log("userObject",u),Error("Deep Auth Failed. `csrf` key not found in request headers!");let d=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!d)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!o().existsSync(`${d}/${u.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==u.verification_status&&!t){let e=await (0,s.A)(`SELECT verification_status FROM users WHERE id='${u.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(u?.date&&Date.now()-u.date>6048e5)throw Error("Key expired!");return u}catch(e){return console.log(`userAuth Error: ${e.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>s});function s(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",a=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",n=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),o=r;e?.userId&&(o+=`user_${e.userId}_`),n&&(o+=`${n}_`),o+=t;let l=r;e?.userId&&(l+=`user_${e.userId}_`),n&&(l+=`${n}_`),l+=s;let i=r;return e?.userId&&(i+=`user_${e.userId}_`),n&&(i+=`${n}_`),{keyCookieName:o,csrfCookieName:l,oneTimeCodeName:i+=a}}},43775:(e,r,t)=>{t.d(r,{A:()=>n});var s=t(95969);let a=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/;async function n({unparsedResults:e,tableSchema:r}){let t=[];try{for(let n=0;n",r.message),e}}},67619:(e,r,t)=>{t.d(r,{A:()=>n});var s=t(29021),a=t.n(s);async function n({user:e,message:r,component:t,noMail:s,req:n}){let o=new Date,l=(()=>{if(!n)return null;try{let e=n.headers["x-forwarded-for"],r=n.headers["x-real-ip"],t=n.headers["cf-connecting-ip"],s=Array.isArray(e)?e[0]:e?.split(",")[0],a=t||s||r||n.socket.remoteAddress;if(!a)return null;return String(a)}catch(e){return null}})();try{let s=`🚀 SERVER ERROR =========================== Error Message: ${r} -Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(a+=` +Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(s+=` User Id: ${e?.id} User Name: ${e?.first_name} ${e?.last_name} -User Email: ${e?.email}`),n?.url&&(a+=` -URL: ${n.url}`),n?.body&&(a+=` -Request Body: ${JSON.stringify(n.body,null,4)}`),l&&(a+=` -IP: ${l}`),a+=` +User Email: ${e?.email}`),n?.url&&(s+=` +URL: ${n.url}`),n?.body&&(s+=` +Request Body: ${JSON.stringify(n.body,null,4)}`),l&&(s+=` +IP: ${l}`),s+=` Date: ${o.toDateString()} -========================================`,s().existsSync("./.tmp/error.log")||s().writeFileSync("./.tmp/error.log","","utf-8");let i=s().readFileSync("./.tmp/error.log","utf-8");s().writeFileSync("./.tmp/error.log",a),s().appendFileSync("./.tmp/error.log",` +========================================`,a().existsSync("./.tmp/error.log")||a().writeFileSync("./.tmp/error.log","","utf-8");let i=a().readFileSync("./.tmp/error.log","utf-8");a().writeFileSync("./.tmp/error.log",s),a().appendFileSync("./.tmp/error.log",` -${i}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},30944:(e,r,t)=>{t.d(r,{A:()=>i});var a=t(43775),s=t(67619),n=t(48786),o=t(37275),l=t(7971);async function i({queryString:e,queryValuesArray:r,database:t,tableSchema:i,useLocal:c}){let u;let d=!!c||!!t?.match(/^datasquirel$/),_=c?l.A:d?n.A:o.default;try{u=e&&r&&Array.isArray(r)&&r[0]?d?await _(e,r):await _({paradigm:"Full Access",queryString:e,queryValues:r}):d?await _(e):await _({paradigm:"Full Access",queryString:e})}catch(e){console.log(`varDatabaseDbHandler Error: ${e.message}`),(0,s.default)({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(u&&i)try{let e=u;return await (0,a.A)({unparsedResults:e,tableSchema:i})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",t,e),(0,s.default)({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(u)return u;else return null}},95969:(e,r,t)=>{t.d(r,{A:()=>n});var a=t(55511),s=t(79428);function n({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let n=r||process.env.DSQL_ENCRYPTION_PASSWORD,o=t||process.env.DSQL_ENCRYPTION_SALT,l=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!n?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!o?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let i=(0,a.scryptSync)(n,o,l),c=s.Buffer.alloc(16,0),u=(0,a.createDecipheriv)("aes-192-cbc",i,c);try{let r=u.update(e,"hex","utf8");return r+=u.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>a});async function a(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},37275:(e,r,t)=>{async function a(e,r,t){try{if("string"==typeof r){let a=await e.query(s(r),t);return JSON.parse(JSON.stringify(a))}if("object"!=typeof r)return null;{let t=[];for(let a=0;an})},7971:(e,r,t)=>{t.d(r,{A:()=>l});var a=t(9973),s=t.n(a),n=t(29021),o=t.n(n);async function l(...e){let r=s()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!o().existsSync(r)){console.log(`${r} does not exist`);return}return{ca:o().readFileSync(`${e}/ca-cert.pem`),rejectUnauthorized:!1}}()},onConnect:()=>{console.log("Connection Successful!")},onConnectError:e=>{console.log("Connection Error",e.message)},onError:e=>{console.log("Client Error",e.message)}});console.log("Querying ...");try{let t=await r.query(...e);return await r.end(),JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e.message),{success:!1,error:e.message}}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=36629);module.exports=t})(); \ No newline at end of file +${i}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},30944:(e,r,t)=>{t.d(r,{A:()=>i});var s=t(43775),a=t(67619),n=t(48786),o=t(37275),l=t(7971);async function i({queryString:e,queryValuesArray:r,database:t,tableSchema:i,useLocal:c}){let u;let d=!!c||!!t?.match(/^datasquirel$/),_=c?l.A:d?n.A:o.A;try{u=e&&r&&Array.isArray(r)&&r[0]?d?await _(e,r):await _({paradigm:"Full Access",queryString:e,queryValues:r}):d?await _(e):await _({paradigm:"Full Access",queryString:e})}catch(e){console.log(`varDatabaseDbHandler Error: ${e.message}`),(0,a.A)({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(u&&i)try{let e=u;return await (0,s.A)({unparsedResults:e,tableSchema:i})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",t,e),(0,a.A)({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(u)return u;else return null}},95969:(e,r,t)=>{t.d(r,{A:()=>n});var s=t(55511),a=t(79428);function n({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let n=r||process.env.DSQL_ENCRYPTION_PASSWORD,o=t||process.env.DSQL_ENCRYPTION_SALT,l=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!n?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!o?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let i=(0,s.scryptSync)(n,o,l),c=a.Buffer.alloc(16,0),u=(0,s.createDecipheriv)("aes-192-cbc",i,c);try{let r=u.update(e,"hex","utf8");return r+=u.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>s});async function s(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},37275:(e,r,t)=>{async function s(e,r,t){try{if("string"==typeof r){let s=await e.query(a(r),t);return JSON.parse(JSON.stringify(s))}if("object"!=typeof r)return null;{let t=[];for(let s=0;sn})},7971:(e,r,t)=>{t.d(r,{A:()=>l});var s=t(9973),a=t.n(s),n=t(29021),o=t.n(n);async function l(...e){let r=a()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!o().existsSync(r)){console.log(`${r} does not exist`);return}return{ca:o().readFileSync(`${e}/ca-cert.pem`),rejectUnauthorized:!1}}()},onConnect:()=>{console.log("Connection Successful!")},onConnectError:e=>{console.log("Connection Error",e.message)},onError:e=>{console.log("Client Error",e.message)}});console.log("Querying ...");try{let t=await r.query(...e);return await r.end(),JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e.message),{success:!1,error:e.message}}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=36629);module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/loginUser.js b/dsql-app/.local_dist/server/pages/api/loginUser.js index d05af23..a62f85e 100644 --- a/dsql-app/.local_dist/server/pages/api/loginUser.js +++ b/dsql-app/.local_dist/server/pages/api/loginUser.js @@ -1,19 +1,19 @@ -"use strict";(()=>{var e={};e.id=3303,e.ids=[3303],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},21572:e=>{e.exports=require("nodemailer")},72583:e=>{e.exports=require("sanitize-html")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},19813:(e,r,t)=>{t.r(r),t.d(r,{config:()=>A,default:()=>S,routeModule:()=>h});var s={};t.r(s),t.d(s,{default:()=>E});var a=t(89947),i=t(2706),n=t(96762),o=t(29021),l=t.n(o),d=t(48786),u=t(49941),_=t(67619),m=t(96052),c=t(2416),p=t(89159),g=t(83919),f=t(68829);async function E(e,r){if("POST"===e.method){let t=e.body,s=t.email,a=t.password,i=t.query;if(s.match(/ /))return r.json({user:null,msg:"Invalid Email"});try{let t=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!t)throw Error("loginUser error: process.env.DSQL_USER_LOGIN_KEYS_PATH not present");l().existsSync(t)||l().mkdirSync(t,{recursive:!0});let n=e.headers["x-real-ip"]||e.headers["x-forwarded-for"]||e.connection.remoteAddress,o=process.env.DSQL_HOST||"https://datasquirel.com",_=(0,g.A)({encryptionKey:process.env.DSQL_ENCRYPTION_PASSWORD||"",password:a});if(a?.match(/ /)||s?.match(/ /))return r.json({msg:"Failed!",user:null});let E=await (0,d.A)("SELECT * FROM users WHERE email=? OR username=?",[s,s]);if(!E||!E[0])return r.json({msg:"No user found",user:null});let S=!1;if(E&&E[0]&&(S=_===E[0].password),!S)return await (0,c.A)(),(0,m.default)({to:process.env.DSQL_CONTACT_EMAIL,subject:`Failed Login from ${s}`,html:`

${s} tried to login with a wrong password

${s} attempted a login on ${o} from ${n} with a wrong password.

`}),r.json({msg:"Wrong Password, Wrong Social Media Credentials",user:null});let A=Math.random().toString(36).substring(2)+"-"+Math.random().toString(36).substring(2),h={id:E[0].id,stripe_id:E[0].stripe_id||"",first_name:E[0].first_name,last_name:E[0].last_name,username:E[0].username,email:E[0].email,social_id:E[0].social_id,image:E[0].image,image_thumbnail:E[0].image_thumbnail,verification_status:E[0].verification_status,social_login:E[0].social_login,social_platform:E[0].social_platform,csrf_k:A,logged_in_status:!0,date:Date.now()},v=(0,f.default)({data:JSON.stringify(h)}),{keyCookieName:L,csrfCookieName:y}=(0,p.A)();r.setHeader("Set-Cookie",[`${L}=${v};samesite=strict;path=/;HttpOnly=true;Secure=true`,`${y}=${A};samesite=strict;path=/;HttpOnly=true`]),l().appendFile("./.tmp/userLoginLogs.log",`${E[0].first_name} ${E[0].last_name} Logged in from ${E[0].social_login?E[0].social_platform:"Regular Email Login"} at ${Date()} +"use strict";(()=>{var e={};e.id=3303,e.ids=[3303],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},21572:e=>{e.exports=require("nodemailer")},72583:e=>{e.exports=require("sanitize-html")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},19813:(e,r,s)=>{s.r(r),s.d(r,{config:()=>A,default:()=>S,routeModule:()=>h});var t={};s.r(t),s.d(t,{default:()=>E});var i=s(89947),a=s(2706),n=s(96762),o=s(29021),l=s.n(o),d=s(48786),u=s(49941),_=s(67619),m=s(96052),c=s(2416),p=s(89159),g=s(83919),f=s(68829);async function E(e,r){if("POST"===e.method){let s=e.body,t=s.email,i=s.password,a=s.query;if(t.match(/ /))return r.json({user:null,msg:"Invalid Email"});try{let s=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!s)throw Error("loginUser error: process.env.DSQL_USER_LOGIN_KEYS_PATH not present");l().existsSync(s)||l().mkdirSync(s,{recursive:!0});let n=e.headers["x-real-ip"]||e.headers["x-forwarded-for"]||e.connection.remoteAddress,o=process.env.DSQL_HOST||"https://datasquirel.com",_=(0,g.A)({encryptionKey:process.env.DSQL_ENCRYPTION_PASSWORD||"",password:i});if(i?.match(/ /)||t?.match(/ /))return r.json({msg:"Failed!",user:null});let E=await (0,d.A)("SELECT * FROM users WHERE email=? OR username=?",[t,t]);if(!E||!E[0])return r.json({msg:"No user found",user:null});let S=!1;if(E&&E[0]&&(S=_===E[0].password),!S)return await (0,c.A)(),(0,m.A)({to:process.env.DSQL_CONTACT_EMAIL,subject:`Failed Login from ${t}`,html:`

${t} tried to login with a wrong password

${t} attempted a login on ${o} from ${n} with a wrong password.

`}),r.json({msg:"Wrong Password, Wrong Social Media Credentials",user:null});let A=Math.random().toString(36).substring(2)+"-"+Math.random().toString(36).substring(2),h={id:E[0].id,stripe_id:E[0].stripe_id||"",first_name:E[0].first_name,last_name:E[0].last_name,username:E[0].username,email:E[0].email,social_id:E[0].social_id,image:E[0].image,image_thumbnail:E[0].image_thumbnail,verification_status:E[0].verification_status,social_login:E[0].social_login,social_platform:E[0].social_platform,csrf_k:A,logged_in_status:!0,date:Date.now()},v=(0,f.A)({data:JSON.stringify(h)}),{keyCookieName:L,csrfCookieName:y}=(0,p.A)();r.setHeader("Set-Cookie",[`${L}=${v};samesite=strict;path=/;HttpOnly=true;Secure=true`,`${y}=${A};samesite=strict;path=/;HttpOnly=true`]),l().appendFile("./.tmp/userLoginLogs.log",`${E[0].first_name} ${E[0].last_name} Logged in from ${E[0].social_login?E[0].social_platform:"Regular Email Login"} at ${Date()} -`,"utf8",e=>{e&&console.log("Loging log write error")}),l().writeFileSync(`${t}/${A}`,JSON.stringify(h)),i?.invite&&(0,u.A)({query:i,user:{...h,phone:E[0].phone}}),await (0,c.A)(),(0,m.default)({to:process.env.DSQL_CONTACT_EMAIL,subject:`${s} Logged in successfully`,html:`

${s} successfully logged in

${s} successfully logged in on ${o} from ${n} on ${Date().substring(0,16)}.

`}),r.json({msg:"User Found",user:{auth:!0,userid:E[0].id,csrf_k:A,stripe_id:E[0].stripe_id||""},userPayload:h})}catch(e){console.log("Login Error =>",e.message),(0,_.default)({component:"/api/loginUser/main-catch-error",message:e.message,user:{email:s}})}}else r.json({msg:"Oops ..."})}let S=(0,n.M)(s,"default"),A=(0,n.M)(s,"config"),h=new a.PagesAPIRouteModule({definition:{kind:i.A.PAGES_API,page:"/api/loginUser",pathname:"/api/loginUser",bundlePath:"",filename:""},userland:s})},2416:(e,r,t)=>{t.d(r,{A:()=>s});async function s(e){return await new Promise((r,t)=>{setTimeout(()=>{r(!0)},e||1e3)}),!0}},49941:(e,r,t)=>{t.d(r,{A:()=>o});var s=t(67619),a=t(48786),i=t(98e3),n=t(7971);async function o({query:e,user:r,useLocal:t}){try{let s=t?n.A:a.A,{invite:o,database_access:l,priviledge:d,email:u}=e,_=[o,u],m=await s("SELECT date_created_code FROM invitations WHERE inviting_user_id=? AND invited_user_email=?",_);if(!m||!m[0])throw Error("No Invitation Found");let c=[o],p=await s("SELECT first_name,last_name,email FROM users WHERE id=?",c);if(p?.[0]){let e=await s("SELECT email FROM user_users WHERE user_id=? AND invited_user_id=? AND user_type='admin' AND email=?",[o,r.id,u]);if(e?.[0])console.log("User already added");else{(0,i.A)({dbFullName:"datasquirel",tableName:"user_users",data:{user_id:o,invited_user_id:r.id,database_access:l,first_name:r.first_name,last_name:r.last_name,phone:r.phone,email:r.email,username:r.username,user_type:"admin",user_priviledge:d,image:r.image,image_thumbnail:r.image_thumbnail},useLocal:t});let e=await s("SELECT db_tables_data FROM invitations WHERE inviting_user_id=? AND invited_user_email=?",[o,u]);if(await s("DELETE FROM delegated_user_tables WHERE root_user_id=? AND delegated_user_id=?",[o,r.id]),e&&e[0]){let s=e[0].db_tables_data.split("|");for(let e=0;e{t.d(r,{A:()=>s});function s(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",a=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",i=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),n=r;e?.userId&&(n+=`user_${e.userId}_`),i&&(n+=`${i}_`),n+=t;let o=r;e?.userId&&(o+=`user_${e.userId}_`),i&&(o+=`${i}_`),o+=s;let l=r;return e?.userId&&(l+=`user_${e.userId}_`),i&&(l+=`${i}_`),{keyCookieName:n,csrfCookieName:o,oneTimeCodeName:l+=a}}},96052:(e,r,t)=>{t.r(r),t.d(r,{default:()=>o});var s=t(29021),a=t.n(s),i=t(21572);let n=t.n(i)().createTransport({host:process.env.DSQL_MAIL_HOST,port:465,secure:!0,auth:{user:process.env.DSQL_MAIL_EMAIL,pass:process.env.DSQL_MAIL_PASSWORD}});async function o({to:e,subject:r,text:t,html:s,alias:i,senderName:o}){let l;if(!process.env.DSQL_MAIL_HOST||!process.env.DSQL_MAIL_EMAIL||!process.env.DSQL_MAIL_PASSWORD)return null;let d=(i?.match(/support/i),process.env.DSQL_MAIL_EMAIL);if(!a().existsSync("./email/index.html"))return;let u=a().readFileSync("./email/index.html","utf8").replace(/{{email_body}}/,s||"").replace(/{{issue_date}}/,Date().substring(0,24));try{let s={};s.from=`"${o||"Datasquirel"}" <${d}>`,s.sender=d,i&&(s.replyTo=d),s.to=e,s.subject=r,s.text=t,s.html=u,l=await n.sendMail(s)}catch(e){console.log("ERROR in handleNodemailer Function =>",e.message)}return l}},67619:(e,r,t)=>{t.r(r),t.d(r,{default:()=>i});var s=t(29021),a=t.n(s);async function i({user:e,message:r,component:t,noMail:s,req:i}){let n=new Date,o=(()=>{if(!i)return null;try{let e=i.headers["x-forwarded-for"],r=i.headers["x-real-ip"],t=i.headers["cf-connecting-ip"],s=Array.isArray(e)?e[0]:e?.split(",")[0],a=t||s||r||i.socket.remoteAddress;if(!a)return null;return String(a)}catch(e){return null}})();try{let s=`🚀 SERVER ERROR =========================== +`,"utf8",e=>{e&&console.log("Loging log write error")}),l().writeFileSync(`${s}/${A}`,JSON.stringify(h)),a?.invite&&(0,u.A)({query:a,user:{...h,phone:E[0].phone}}),await (0,c.A)(),(0,m.A)({to:process.env.DSQL_CONTACT_EMAIL,subject:`${t} Logged in successfully`,html:`

${t} successfully logged in

${t} successfully logged in on ${o} from ${n} on ${Date().substring(0,16)}.

`}),r.json({msg:"User Found",user:{auth:!0,userid:E[0].id,csrf_k:A,stripe_id:E[0].stripe_id||""},userPayload:h})}catch(e){console.log("Login Error =>",e.message),(0,_.A)({component:"/api/loginUser/main-catch-error",message:e.message,user:{email:t}})}}else r.json({msg:"Oops ..."})}let S=(0,n.M)(t,"default"),A=(0,n.M)(t,"config"),h=new i.PagesAPIRouteModule({definition:{kind:a.A.PAGES_API,page:"/api/loginUser",pathname:"/api/loginUser",bundlePath:"",filename:""},userland:t})},2416:(e,r,s)=>{s.d(r,{A:()=>t});async function t(e){return await new Promise((r,s)=>{setTimeout(()=>{r(!0)},e||1e3)}),!0}},49941:(e,r,s)=>{s.d(r,{A:()=>o});var t=s(67619),i=s(48786),a=s(98e3),n=s(7971);async function o({query:e,user:r,useLocal:s}){try{let t=s?n.A:i.A,{invite:o,database_access:l,priviledge:d,email:u}=e,_=[o,u],m=await t("SELECT date_created_code FROM invitations WHERE inviting_user_id=? AND invited_user_email=?",_);if(!m||!m[0])throw Error("No Invitation Found");let c=[o],p=await t("SELECT first_name,last_name,email FROM users WHERE id=?",c);if(p?.[0]){let e=await t("SELECT email FROM user_users WHERE user_id=? AND invited_user_id=? AND user_type='admin' AND email=?",[o,r.id,u]);if(e?.[0])console.log("User already added");else{(0,a.A)({dbFullName:"datasquirel",tableName:"user_users",data:{user_id:o,invited_user_id:r.id,database_access:l,first_name:r.first_name,last_name:r.last_name,phone:r.phone,email:r.email,username:r.username,user_type:"admin",user_priviledge:d,image:r.image,image_thumbnail:r.image_thumbnail},useLocal:s});let e=await t("SELECT db_tables_data FROM invitations WHERE inviting_user_id=? AND invited_user_email=?",[o,u]);if(await t("DELETE FROM delegated_user_tables WHERE root_user_id=? AND delegated_user_id=?",[o,r.id]),e&&e[0]){let t=e[0].db_tables_data.split("|");for(let e=0;e{s.d(r,{A:()=>t});function t(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",s=process.env.DSQL_COOKIES_KEY_NAME||"key",t=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",i=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",a=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),n=r;e?.userId&&(n+=`user_${e.userId}_`),a&&(n+=`${a}_`),n+=s;let o=r;e?.userId&&(o+=`user_${e.userId}_`),a&&(o+=`${a}_`),o+=t;let l=r;return e?.userId&&(l+=`user_${e.userId}_`),a&&(l+=`${a}_`),{keyCookieName:n,csrfCookieName:o,oneTimeCodeName:l+=i}}},96052:(e,r,s)=>{s.d(r,{A:()=>o});var t=s(29021),i=s.n(t),a=s(21572);let n=s.n(a)().createTransport({host:process.env.DSQL_MAIL_HOST,port:465,secure:!0,auth:{user:process.env.DSQL_MAIL_EMAIL,pass:process.env.DSQL_MAIL_PASSWORD}});async function o({to:e,subject:r,text:s,html:t,alias:a,senderName:o}){let l;if(!process.env.DSQL_MAIL_HOST||!process.env.DSQL_MAIL_EMAIL||!process.env.DSQL_MAIL_PASSWORD)return null;let d=(a?.match(/support/i),process.env.DSQL_MAIL_EMAIL);if(!i().existsSync("./email/index.html"))return;let u=i().readFileSync("./email/index.html","utf8").replace(/{{email_body}}/,t||"").replace(/{{issue_date}}/,Date().substring(0,24));try{let t={};t.from=`"${o||"Datasquirel"}" <${d}>`,t.sender=d,a&&(t.replyTo=d),t.to=e,t.subject=r,t.text=s,t.html=u,l=await n.sendMail(t)}catch(e){console.log("ERROR in handleNodemailer Function =>",e.message)}return l}},67619:(e,r,s)=>{s.d(r,{A:()=>a});var t=s(29021),i=s.n(t);async function a({user:e,message:r,component:s,noMail:t,req:a}){let n=new Date,o=(()=>{if(!a)return null;try{let e=a.headers["x-forwarded-for"],r=a.headers["x-real-ip"],s=a.headers["cf-connecting-ip"],t=Array.isArray(e)?e[0]:e?.split(",")[0],i=s||t||r||a.socket.remoteAddress;if(!i)return null;return String(i)}catch(e){return null}})();try{let t=`🚀 SERVER ERROR =========================== Error Message: ${r} -Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(s+=` +Component: ${s}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(t+=` User Id: ${e?.id} User Name: ${e?.first_name} ${e?.last_name} -User Email: ${e?.email}`),i?.url&&(s+=` -URL: ${i.url}`),i?.body&&(s+=` -Request Body: ${JSON.stringify(i.body,null,4)}`),o&&(s+=` -IP: ${o}`),s+=` +User Email: ${e?.email}`),a?.url&&(t+=` +URL: ${a.url}`),a?.body&&(t+=` +Request Body: ${JSON.stringify(a.body,null,4)}`),o&&(t+=` +IP: ${o}`),t+=` Date: ${n.toDateString()} -========================================`,a().existsSync("./.tmp/error.log")||a().writeFileSync("./.tmp/error.log","","utf-8");let l=a().readFileSync("./.tmp/error.log","utf-8");a().writeFileSync("./.tmp/error.log",s),a().appendFileSync("./.tmp/error.log",` +========================================`,i().existsSync("./.tmp/error.log")||i().writeFileSync("./.tmp/error.log","","utf-8");let l=i().readFileSync("./.tmp/error.log","utf-8");i().writeFileSync("./.tmp/error.log",t),i().appendFileSync("./.tmp/error.log",` -${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},83919:(e,r,t)=>{t.d(r,{A:()=>a});var s=t(55511);function a({password:e,encryptionKey:r}){let t=r||process.env.DSQL_ENCRYPTION_PASSWORD;if(!t?.match(/.{8,}/))throw Error("Encryption key is invalid");let a=(0,s.createHmac)("sha512",t);return a.update(e),a.digest("base64")}}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=e=>r(r.s=e),s=r.X(0,[1251],()=>t(19813));module.exports=s})(); \ No newline at end of file +${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},83919:(e,r,s)=>{s.d(r,{A:()=>i});var t=s(55511);function i({password:e,encryptionKey:r}){let s=r||process.env.DSQL_ENCRYPTION_PASSWORD;if(!s?.match(/.{8,}/))throw Error("Encryption key is invalid");let i=(0,t.createHmac)("sha512",s);return i.update(e),i.digest("base64")}}};var r=require("../../webpack-api-runtime.js");r.C(e);var s=e=>r(r.s=e),t=r.X(0,[1251],()=>s(19813));module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/logoutUser.js b/dsql-app/.local_dist/server/pages/api/logoutUser.js index b5586af..1e2820d 100644 --- a/dsql-app/.local_dist/server/pages/api/logoutUser.js +++ b/dsql-app/.local_dist/server/pages/api/logoutUser.js @@ -1 +1 @@ -"use strict";(()=>{var e={};e.id=528,e.ids=[528],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},59805:(e,r,t)=>{t.r(r),t.d(r,{config:()=>_,default:()=>i,routeModule:()=>l});var n={};t.r(n),t.d(n,{default:()=>d});var u=t(89947),s=t(2706),o=t(96762),a=t(89159);async function d(e,r){if("GET"!==e.method)return r.json({msg:"Logout Error"});{let{keyCookieName:e,csrfCookieName:t}=(0,a.A)();r.setHeader("Set-Cookie",[`${e}=null;max-age=0`,`${t}=null;max-age=0`]),r.json({msg:"Logged Out"})}}t(29021);let i=(0,o.M)(n,"default"),_=(0,o.M)(n,"config"),l=new u.PagesAPIRouteModule({definition:{kind:s.A.PAGES_API,page:"/api/logoutUser",pathname:"/api/logoutUser",bundlePath:"",filename:""},userland:n})},89159:(e,r,t)=>{t.d(r,{A:()=>n});function n(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",n=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",u=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",s=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),o=r;e?.userId&&(o+=`user_${e.userId}_`),s&&(o+=`${s}_`),o+=t;let a=r;e?.userId&&(a+=`user_${e.userId}_`),s&&(a+=`${s}_`),a+=n;let d=r;return e?.userId&&(d+=`user_${e.userId}_`),s&&(d+=`${s}_`),{keyCookieName:o,csrfCookieName:a,oneTimeCodeName:d+=u}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=59805);module.exports=t})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=528,e.ids=[528],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},59805:(e,r,t)=>{t.r(r),t.d(r,{config:()=>_,default:()=>i,routeModule:()=>l});var n={};t.r(n),t.d(n,{default:()=>d});var u=t(89947),o=t(2706),s=t(96762),a=t(89159);async function d(e,r){if("GET"!==e.method)return r.json({msg:"Logout Error"});{let{keyCookieName:e,csrfCookieName:t}=(0,a.A)();r.setHeader("Set-Cookie",[`${e}=null;max-age=0`,`${t}=null;max-age=0`]),r.json({msg:"Logged Out"})}}let i=(0,s.M)(n,"default"),_=(0,s.M)(n,"config"),l=new u.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/logoutUser",pathname:"/api/logoutUser",bundlePath:"",filename:""},userland:n})},89159:(e,r,t)=>{t.d(r,{A:()=>n});function n(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",n=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",u=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",o=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),s=r;e?.userId&&(s+=`user_${e.userId}_`),o&&(s+=`${o}_`),s+=t;let a=r;e?.userId&&(a+=`user_${e.userId}_`),o&&(a+=`${o}_`),a+=n;let d=r;return e?.userId&&(d+=`user_${e.userId}_`),o&&(d+=`${o}_`),{keyCookieName:s,csrfCookieName:a,oneTimeCodeName:d+=u}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=59805);module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/media/addPrivateMedia.js b/dsql-app/.local_dist/server/pages/api/media/addPrivateMedia.js index 5181dee..d194eb4 100644 --- a/dsql-app/.local_dist/server/pages/api/media/addPrivateMedia.js +++ b/dsql-app/.local_dist/server/pages/api/media/addPrivateMedia.js @@ -1 +1 @@ -"use strict";(()=>{var e={};e.id=2678,e.ids=[2678],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},38887:(e,r,t)=>{t.r(r),t.d(r,{config:()=>m,default:()=>f,routeModule:()=>E});var s={};t.r(s),t.d(s,{default:()=>_});var i=t(89947),o=t(2706),n=t(96762),a=t(48786),c=t(69842),u=t(33873),d=t.n(u);let l=t(29021);async function _(e,r){if("POST"!==e.method)return r.json({success:!1,msg:"Failed!"});let t=await (0,c.A)(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let s=e.body;if(s.media_url?.match(/\.\./)||s.folder?.match(/\.\./)||s.id?.toString()?.match(/\.\./))return r.json({success:!1,msg:"Error!",error:"Invalid url"});try{let e=s?.private==1,i=e?s?.media_path?.replace(/\@\/media/i,"")||s?.media_url.replace(/\@\/media/i,""):s?.media_path?.match(/\/user-images\/user-.*/)||s?.media_url?.match(/\/user-images\/user-.*/),o=s.folder?`/${s.folder}`:"",n=process.env.DSQL_STATIC_SERVER_DIR;if(!n)throw console.log("Static File ENV not Found!"),Error("No Static Path!");let c=d().join(n,"images"),u=`${process.env.DSQL_STATIC_HOST}/images/user-images/user-${t.id}`,_=`/images/user-images/user-${t.id}`,f=(e?`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${t.id}/media`:c)+i,m=e?`${c}/user-images/user-${t.id}`:`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${t.id}/media`;if(!l.existsSync(m))try{l.mkdirSync(m,{recursive:!0})}catch(e){console.log("LINE 88 error:",e.message)}o&&o.split("/").reduce((e,r)=>{let t=e?.match(/./)?`${e}/${r}`:m;return l.existsSync(t)||l.mkdirSync(t,{recursive:!0}),t},"");let E=f?.match(/[^\/]+$/)?.[0];if(!E)throw Error("No File Name Detected!");let p=E.split(".")[0],S=E.split(".")[1],h=e?`${u}${o?o+"/":"/"}${E}`:`@/media${o?o+"/":"/"}${E}`,A=e?`${_}${o?o+"/":"/"}${E}`:`@/media${o?o+"/":"/"}${E}`,$=m+o+"/"+E;l.copyFileSync(f,$),l.unlinkSync(f);let v=p+"_thumbnail."+S,y=f.replace(E,v),g=e?`${u}${o?o+"/":"/"}${v}`:`@/media${o?o+"/":"/"}${v}`,P=e?`${_}${o?o+"/":"/"}${v}`:`@/media${o?o+"/":"/"}${v}`;try{l.copyFileSync(y,m+o+"/"+v),l.unlinkSync(y)}catch(e){}await (0,a.A)("UPDATE user_media SET private = ?, media_url= ?, media_thumbnail_url= ?, media_path = ?, media_thumbnail_path = ? WHERE id = ?",[e?0:1,h,g,A,P,s.id]),r.json({success:!0,msg:"Success!"})}catch(e){console.log(e.message),r.json({success:!1,msg:"Error!",error:e})}}let f=(0,n.M)(s,"default"),m=(0,n.M)(s,"config"),E=new i.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/media/addPrivateMedia",pathname:"/api/media/addPrivateMedia",bundlePath:"",filename:""},userland:s})},69842:(e,r,t)=>{t.d(r,{A:()=>c});var s=t(48786),i=t(95969),o=t(29021),n=t.n(o),a=t(89159);async function c(e,r,t){try{let{keyCookieName:o,csrfCookieName:c}=(0,a.A)();if(!e.cookies?.[o]?.match(/./))throw Error("Request Cookies not Found!");let u=(0,i.A)({encryptedString:e.cookies[o]});if(!u)throw Error("Couldn't decrypt auth cookie!");let d=JSON.parse(u);if(!d.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(d.csrf_k)))throw Error("Deep Auth Failed. `csrf` key not found in request headers!");let l=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!l)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!n().existsSync(`${l}/${d.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==d.verification_status&&!t){let e=await (0,s.A)(`SELECT verification_status FROM users WHERE id='${d.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(d?.date&&Date.now()-d.date>6048e5)throw Error("Key expired!");return d}catch(e){return console.log(`userAuth Error: ${e.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>s});function s(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",i=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",o=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),n=r;e?.userId&&(n+=`user_${e.userId}_`),o&&(n+=`${o}_`),n+=t;let a=r;e?.userId&&(a+=`user_${e.userId}_`),o&&(a+=`${o}_`),a+=s;let c=r;return e?.userId&&(c+=`user_${e.userId}_`),o&&(c+=`${o}_`),{keyCookieName:n,csrfCookieName:a,oneTimeCodeName:c+=i}}},95969:(e,r,t)=>{t.d(r,{A:()=>o});var s=t(55511),i=t(79428);function o({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let o=r||process.env.DSQL_ENCRYPTION_PASSWORD,n=t||process.env.DSQL_ENCRYPTION_SALT,a=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!o?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!n?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let c=(0,s.scryptSync)(o,n,a),u=i.Buffer.alloc(16,0),d=(0,s.createDecipheriv)("aes-192-cbc",c,u);try{let r=d.update(e,"hex","utf8");return r+=d.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>s});async function s(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../../webpack-api-runtime.js");r.C(e);var t=r(r.s=38887);module.exports=t})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=2678,e.ids=[2678],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},38887:(e,r,t)=>{t.r(r),t.d(r,{config:()=>E,default:()=>m,routeModule:()=>p});var s={};t.r(s),t.d(s,{default:()=>f});var i=t(89947),o=t(2706),n=t(96762),a=t(29021),c=t.n(a),u=t(48786),d=t(69842),l=t(33873),_=t.n(l);async function f(e,r){if("POST"!==e.method)return r.json({success:!1,msg:"Failed!"});let t=await (0,d.A)(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let s=e.body;if(s.media_url?.match(/\.\./)||s.folder?.match(/\.\./)||s.id?.toString()?.match(/\.\./))return r.json({success:!1,msg:"Error!",error:"Invalid url"});try{let e=s?.private==1,i=e?s?.media_path?.replace(/\@\/media/i,"")||s?.media_url.replace(/\@\/media/i,""):s?.media_path?.match(/\/user-images\/user-.*/)||s?.media_url?.match(/\/user-images\/user-.*/),o=s.folder?`/${s.folder}`:"",n=process.env.DSQL_STATIC_SERVER_DIR;if(!n)throw console.log("Static File ENV not Found!"),Error("No Static Path!");let a=_().join(n,"images"),d=`${process.env.DSQL_STATIC_HOST}/images/user-images/user-${t.id}`,l=`/images/user-images/user-${t.id}`,f=(e?`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${t.id}/media`:a)+i,m=e?`${a}/user-images/user-${t.id}`:`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${t.id}/media`;if(!c().existsSync(m))try{c().mkdirSync(m,{recursive:!0})}catch(e){console.log("LINE 88 error:",e.message)}o&&o.split("/").reduce((e,r)=>{let t=e?.match(/./)?`${e}/${r}`:m;return c().existsSync(t)||c().mkdirSync(t,{recursive:!0}),t},"");let E=f?.match(/[^\/]+$/)?.[0];if(!E)throw Error("No File Name Detected!");let p=E.split(".")[0],S=E.split(".")[1],h=e?`${d}${o?o+"/":"/"}${E}`:`@/media${o?o+"/":"/"}${E}`,A=e?`${l}${o?o+"/":"/"}${E}`:`@/media${o?o+"/":"/"}${E}`,$=m+o+"/"+E;c().copyFileSync(f,$),c().unlinkSync(f);let g=p+"_thumbnail."+S,v=f.replace(E,g),y=e?`${d}${o?o+"/":"/"}${g}`:`@/media${o?o+"/":"/"}${g}`,P=e?`${l}${o?o+"/":"/"}${g}`:`@/media${o?o+"/":"/"}${g}`;try{c().copyFileSync(v,m+o+"/"+g),c().unlinkSync(v)}catch(e){}await (0,u.A)("UPDATE user_media SET private = ?, media_url= ?, media_thumbnail_url= ?, media_path = ?, media_thumbnail_path = ? WHERE id = ?",[e?0:1,h,y,A,P,s.id]),r.json({success:!0,msg:"Success!"})}catch(e){console.log(e.message),r.json({success:!1,msg:"Error!",error:e})}}let m=(0,n.M)(s,"default"),E=(0,n.M)(s,"config"),p=new i.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/media/addPrivateMedia",pathname:"/api/media/addPrivateMedia",bundlePath:"",filename:""},userland:s})},69842:(e,r,t)=>{t.d(r,{A:()=>c});var s=t(48786),i=t(95969),o=t(29021),n=t.n(o),a=t(89159);async function c(e,r,t){try{let{keyCookieName:o,csrfCookieName:c}=(0,a.A)();if(!e.cookies?.[o]?.match(/./))throw Error("Request Cookies not Found!");let u=(0,i.A)({encryptedString:e.cookies[o]});if(!u)throw Error("Couldn't decrypt auth cookie!");let d=JSON.parse(u);if(!d.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(d.csrf_k)))throw console.log("req.headers",e.headers),console.log("userObject",d),Error("Deep Auth Failed. `csrf` key not found in request headers!");let l=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!l)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!n().existsSync(`${l}/${d.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==d.verification_status&&!t){let e=await (0,s.A)(`SELECT verification_status FROM users WHERE id='${d.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(d?.date&&Date.now()-d.date>6048e5)throw Error("Key expired!");return d}catch(e){return console.log(`userAuth Error: ${e.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>s});function s(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",i=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",o=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),n=r;e?.userId&&(n+=`user_${e.userId}_`),o&&(n+=`${o}_`),n+=t;let a=r;e?.userId&&(a+=`user_${e.userId}_`),o&&(a+=`${o}_`),a+=s;let c=r;return e?.userId&&(c+=`user_${e.userId}_`),o&&(c+=`${o}_`),{keyCookieName:n,csrfCookieName:a,oneTimeCodeName:c+=i}}},95969:(e,r,t)=>{t.d(r,{A:()=>o});var s=t(55511),i=t(79428);function o({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let o=r||process.env.DSQL_ENCRYPTION_PASSWORD,n=t||process.env.DSQL_ENCRYPTION_SALT,a=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!o?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!n?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let c=(0,s.scryptSync)(o,n,a),u=i.Buffer.alloc(16,0),d=(0,s.createDecipheriv)("aes-192-cbc",c,u);try{let r=d.update(e,"hex","utf8");return r+=d.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>s});async function s(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../../webpack-api-runtime.js");r.C(e);var t=r(r.s=38887);module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/media/getPrivateMedia.js b/dsql-app/.local_dist/server/pages/api/media/getPrivateMedia.js index a38e38c..c888956 100644 --- a/dsql-app/.local_dist/server/pages/api/media/getPrivateMedia.js +++ b/dsql-app/.local_dist/server/pages/api/media/getPrivateMedia.js @@ -1 +1 @@ -"use strict";(()=>{var e={};e.id=2127,e.ids=[2127],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},63311:(e,r,t)=>{t.r(r),t.d(r,{config:()=>_,default:()=>l,routeModule:()=>f});var s={};t.r(s),t.d(s,{default:()=>d});var n=t(89947),o=t(2706),i=t(96762),a=t(29021),c=t.n(a),u=t(69842);async function d(e,r){if("POST"!==e.method)return r.json({success:!1,msg:"Failed!"});let t=await (0,u.A)(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});try{let s=JSON.parse(e.body).path.replace(/ /g,"").replace(/\.\./g,"");if(s?.match(/\.\./))return r.json({success:!1,msg:"Error!",error:"Invalid url"});let n=`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${t.id.toString().replace(/\//g,"")}`,o=s.replace(/\@/,n);c().createReadStream(o).pipe(r)}catch(e){console.log("ERROR in getPrivateMedia api route:",e.message),r.json({success:!1,msg:"Error!",error:e})}}let l=(0,i.M)(s,"default"),_=(0,i.M)(s,"config"),f=new n.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/media/getPrivateMedia",pathname:"/api/media/getPrivateMedia",bundlePath:"",filename:""},userland:s})},69842:(e,r,t)=>{t.d(r,{A:()=>c});var s=t(48786),n=t(95969),o=t(29021),i=t.n(o),a=t(89159);async function c(e,r,t){try{let{keyCookieName:o,csrfCookieName:c}=(0,a.A)();if(!e.cookies?.[o]?.match(/./))throw Error("Request Cookies not Found!");let u=(0,n.A)({encryptedString:e.cookies[o]});if(!u)throw Error("Couldn't decrypt auth cookie!");let d=JSON.parse(u);if(!d.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(d.csrf_k)))throw Error("Deep Auth Failed. `csrf` key not found in request headers!");let l=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!l)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!i().existsSync(`${l}/${d.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==d.verification_status&&!t){let e=await (0,s.A)(`SELECT verification_status FROM users WHERE id='${d.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(d?.date&&Date.now()-d.date>6048e5)throw Error("Key expired!");return d}catch(e){return console.log(`userAuth Error: ${e.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>s});function s(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",n=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",o=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),i=r;e?.userId&&(i+=`user_${e.userId}_`),o&&(i+=`${o}_`),i+=t;let a=r;e?.userId&&(a+=`user_${e.userId}_`),o&&(a+=`${o}_`),a+=s;let c=r;return e?.userId&&(c+=`user_${e.userId}_`),o&&(c+=`${o}_`),{keyCookieName:i,csrfCookieName:a,oneTimeCodeName:c+=n}}},95969:(e,r,t)=>{t.d(r,{A:()=>o});var s=t(55511),n=t(79428);function o({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let o=r||process.env.DSQL_ENCRYPTION_PASSWORD,i=t||process.env.DSQL_ENCRYPTION_SALT,a=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!o?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let c=(0,s.scryptSync)(o,i,a),u=n.Buffer.alloc(16,0),d=(0,s.createDecipheriv)("aes-192-cbc",c,u);try{let r=d.update(e,"hex","utf8");return r+=d.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>s});async function s(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../../webpack-api-runtime.js");r.C(e);var t=r(r.s=63311);module.exports=t})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=2127,e.ids=[2127],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},63311:(e,r,t)=>{t.r(r),t.d(r,{config:()=>_,default:()=>l,routeModule:()=>f});var s={};t.r(s),t.d(s,{default:()=>d});var o=t(89947),n=t(2706),i=t(96762),a=t(29021),c=t.n(a),u=t(69842);async function d(e,r){if("POST"!==e.method)return r.json({success:!1,msg:"Failed!"});let t=await (0,u.A)(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});try{let s=JSON.parse(e.body).path.replace(/ /g,"").replace(/\.\./g,"");if(s?.match(/\.\./))return r.json({success:!1,msg:"Error!",error:"Invalid url"});let o=`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${t.id.toString().replace(/\//g,"")}`,n=s.replace(/\@/,o);c().createReadStream(n).pipe(r)}catch(e){console.log("ERROR in getPrivateMedia api route:",e.message),r.json({success:!1,msg:"Error!",error:e})}}let l=(0,i.M)(s,"default"),_=(0,i.M)(s,"config"),f=new o.PagesAPIRouteModule({definition:{kind:n.A.PAGES_API,page:"/api/media/getPrivateMedia",pathname:"/api/media/getPrivateMedia",bundlePath:"",filename:""},userland:s})},69842:(e,r,t)=>{t.d(r,{A:()=>c});var s=t(48786),o=t(95969),n=t(29021),i=t.n(n),a=t(89159);async function c(e,r,t){try{let{keyCookieName:n,csrfCookieName:c}=(0,a.A)();if(!e.cookies?.[n]?.match(/./))throw Error("Request Cookies not Found!");let u=(0,o.A)({encryptedString:e.cookies[n]});if(!u)throw Error("Couldn't decrypt auth cookie!");let d=JSON.parse(u);if(!d.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(d.csrf_k)))throw console.log("req.headers",e.headers),console.log("userObject",d),Error("Deep Auth Failed. `csrf` key not found in request headers!");let l=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!l)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!i().existsSync(`${l}/${d.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==d.verification_status&&!t){let e=await (0,s.A)(`SELECT verification_status FROM users WHERE id='${d.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(d?.date&&Date.now()-d.date>6048e5)throw Error("Key expired!");return d}catch(e){return console.log(`userAuth Error: ${e.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>s});function s(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",o=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",n=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),i=r;e?.userId&&(i+=`user_${e.userId}_`),n&&(i+=`${n}_`),i+=t;let a=r;e?.userId&&(a+=`user_${e.userId}_`),n&&(a+=`${n}_`),a+=s;let c=r;return e?.userId&&(c+=`user_${e.userId}_`),n&&(c+=`${n}_`),{keyCookieName:i,csrfCookieName:a,oneTimeCodeName:c+=o}}},95969:(e,r,t)=>{t.d(r,{A:()=>n});var s=t(55511),o=t(79428);function n({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let n=r||process.env.DSQL_ENCRYPTION_PASSWORD,i=t||process.env.DSQL_ENCRYPTION_SALT,a=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!n?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let c=(0,s.scryptSync)(n,i,a),u=o.Buffer.alloc(16,0),d=(0,s.createDecipheriv)("aes-192-cbc",c,u);try{let r=d.update(e,"hex","utf8");return r+=d.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>s});async function s(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../../webpack-api-runtime.js");r.C(e);var t=r(r.s=63311);module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/purgeDb.js b/dsql-app/.local_dist/server/pages/api/purgeDb.js index 7d37dc4..f3c5067 100644 --- a/dsql-app/.local_dist/server/pages/api/purgeDb.js +++ b/dsql-app/.local_dist/server/pages/api/purgeDb.js @@ -1 +1 @@ -"use strict";(()=>{var e={};e.id=3338,e.ids=[3338],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},670:(e,r,t)=>{t.r(r),t.d(r,{config:()=>p,default:()=>E,routeModule:()=>S});var o={};t.r(o),t.d(o,{default:()=>f});var s=t(89947),n=t(2706),i=t(96762),c=t(29021),a=t.n(c),u=t(48786),l=t(69842),d=t(33873),_=t.n(d);async function f(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});if(!await (0,l.A)(e,r,!0))return r.json({success:!1,msg:"Unauthorized"});let{paradigm:t,payload:o}=e.body;try{console.log("Deleting media =>",o.id);let e=o.media_url,t=process.env.DSQL_STATIC_SERVER_DIR,s=process.env.DSQL_STATIC_HOST;if(!t){console.log("No Static Root Path"),r.json({success:!1,msg:"No Static Root Path"});return}let n=e.replace(s,""),i=_().join(t,n),c=a().existsSync(i);if(console.log("relativePath",n),console.log("STATIC_ROOT",t),console.log("STATIC_HOST",s),console.log("filePath",i),console.log("fileExist",c),c){r.json({success:!1});return}}catch(e){console.log("File verification Error =>",e.message),console.log("File Truly doesn't exist, cotinuing ...")}"user_media"===t&&await (0,u.A)(`DELETE FROM user_media WHERE id='${o.id}'`),r.json({success:!0})}let E=(0,i.M)(o,"default"),p=(0,i.M)(o,"config"),S=new s.PagesAPIRouteModule({definition:{kind:n.A.PAGES_API,page:"/api/purgeDb",pathname:"/api/purgeDb",bundlePath:"",filename:""},userland:o})},69842:(e,r,t)=>{t.d(r,{A:()=>a});var o=t(48786),s=t(95969),n=t(29021),i=t.n(n),c=t(89159);async function a(e,r,t){try{let{keyCookieName:n,csrfCookieName:a}=(0,c.A)();if(!e.cookies?.[n]?.match(/./))throw Error("Request Cookies not Found!");let u=(0,s.A)({encryptedString:e.cookies[n]});if(!u)throw Error("Couldn't decrypt auth cookie!");let l=JSON.parse(u);if(!l.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(l.csrf_k)))throw Error("Deep Auth Failed. `csrf` key not found in request headers!");let d=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!d)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!i().existsSync(`${d}/${l.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==l.verification_status&&!t){let e=await (0,o.A)(`SELECT verification_status FROM users WHERE id='${l.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(l?.date&&Date.now()-l.date>6048e5)throw Error("Key expired!");return l}catch(e){return console.log(`userAuth Error: ${e.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>o});function o(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",o=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",s=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",n=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),i=r;e?.userId&&(i+=`user_${e.userId}_`),n&&(i+=`${n}_`),i+=t;let c=r;e?.userId&&(c+=`user_${e.userId}_`),n&&(c+=`${n}_`),c+=o;let a=r;return e?.userId&&(a+=`user_${e.userId}_`),n&&(a+=`${n}_`),{keyCookieName:i,csrfCookieName:c,oneTimeCodeName:a+=s}}},95969:(e,r,t)=>{t.d(r,{A:()=>n});var o=t(55511),s=t(79428);function n({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let n=r||process.env.DSQL_ENCRYPTION_PASSWORD,i=t||process.env.DSQL_ENCRYPTION_SALT,c=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!n?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let a=(0,o.scryptSync)(n,i,c),u=s.Buffer.alloc(16,0),l=(0,o.createDecipheriv)("aes-192-cbc",a,u);try{let r=l.update(e,"hex","utf8");return r+=l.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>o});async function o(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=670);module.exports=t})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=3338,e.ids=[3338],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},670:(e,r,t)=>{t.r(r),t.d(r,{config:()=>p,default:()=>E,routeModule:()=>S});var o={};t.r(o),t.d(o,{default:()=>f});var s=t(89947),n=t(2706),i=t(96762),c=t(29021),a=t.n(c),u=t(48786),l=t(69842),d=t(33873),_=t.n(d);async function f(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});if(!await (0,l.A)(e,r,!0))return r.json({success:!1,msg:"Unauthorized"});let{paradigm:t,payload:o}=e.body;try{console.log("Deleting media =>",o.id);let e=o.media_url,t=process.env.DSQL_STATIC_SERVER_DIR,s=process.env.DSQL_STATIC_HOST;if(!t){console.log("No Static Root Path"),r.json({success:!1,msg:"No Static Root Path"});return}let n=e.replace(s,""),i=_().join(t,n),c=a().existsSync(i);if(console.log("relativePath",n),console.log("STATIC_ROOT",t),console.log("STATIC_HOST",s),console.log("filePath",i),console.log("fileExist",c),c){r.json({success:!1});return}}catch(e){console.log("File verification Error =>",e.message),console.log("File Truly doesn't exist, cotinuing ...")}"user_media"===t&&await (0,u.A)(`DELETE FROM user_media WHERE id='${o.id}'`),r.json({success:!0})}let E=(0,i.M)(o,"default"),p=(0,i.M)(o,"config"),S=new s.PagesAPIRouteModule({definition:{kind:n.A.PAGES_API,page:"/api/purgeDb",pathname:"/api/purgeDb",bundlePath:"",filename:""},userland:o})},69842:(e,r,t)=>{t.d(r,{A:()=>a});var o=t(48786),s=t(95969),n=t(29021),i=t.n(n),c=t(89159);async function a(e,r,t){try{let{keyCookieName:n,csrfCookieName:a}=(0,c.A)();if(!e.cookies?.[n]?.match(/./))throw Error("Request Cookies not Found!");let u=(0,s.A)({encryptedString:e.cookies[n]});if(!u)throw Error("Couldn't decrypt auth cookie!");let l=JSON.parse(u);if(!l.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(l.csrf_k)))throw console.log("req.headers",e.headers),console.log("userObject",l),Error("Deep Auth Failed. `csrf` key not found in request headers!");let d=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!d)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!i().existsSync(`${d}/${l.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==l.verification_status&&!t){let e=await (0,o.A)(`SELECT verification_status FROM users WHERE id='${l.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(l?.date&&Date.now()-l.date>6048e5)throw Error("Key expired!");return l}catch(e){return console.log(`userAuth Error: ${e.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>o});function o(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",o=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",s=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",n=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),i=r;e?.userId&&(i+=`user_${e.userId}_`),n&&(i+=`${n}_`),i+=t;let c=r;e?.userId&&(c+=`user_${e.userId}_`),n&&(c+=`${n}_`),c+=o;let a=r;return e?.userId&&(a+=`user_${e.userId}_`),n&&(a+=`${n}_`),{keyCookieName:i,csrfCookieName:c,oneTimeCodeName:a+=s}}},95969:(e,r,t)=>{t.d(r,{A:()=>n});var o=t(55511),s=t(79428);function n({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let n=r||process.env.DSQL_ENCRYPTION_PASSWORD,i=t||process.env.DSQL_ENCRYPTION_SALT,c=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!n?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let a=(0,o.scryptSync)(n,i,c),u=s.Buffer.alloc(16,0),l=(0,o.createDecipheriv)("aes-192-cbc",a,u);try{let r=l.update(e,"hex","utf8");return r+=l.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>o});async function o(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=670);module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/query/[user_id]/add-file.js b/dsql-app/.local_dist/server/pages/api/query/[user_id]/add-file.js index 25f247d..733d734 100644 --- a/dsql-app/.local_dist/server/pages/api/query/[user_id]/add-file.js +++ b/dsql-app/.local_dist/server/pages/api/query/[user_id]/add-file.js @@ -1,16 +1,16 @@ -"use strict";(()=>{var e={};e.id=2562,e.ids=[2562],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},72583:e=>{e.exports=require("sanitize-html")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},79134:(e,r,t)=>{t.r(r),t.d(r,{config:()=>y,default:()=>S,routeModule:()=>E});var i={};t.r(i),t.d(i,{config:()=>g,default:()=>_});var a=t(89947),s=t(2706),n=t(96762),l=t(33873),o=t.n(l),u=t(98e3),d=t(61932),c=t(45185),m=t(67619),p=t(56081);let f=t(29021),g={api:{bodyParser:{sizeLimit:"50mb"}}};async function _(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});try{let t=e.headers.authorization;if(!t)return r.json({success:!1,msg:"Unauthorized"});let i=(0,p.A)({key:t,user_id:String(e.query.user_id)});if(!i?.user_id)throw Error("Api Credentials invalid!");let{user_id:a,full_access:s}=i;if(!s)return r.json({success:!1,msg:"Unauthorized"});let{fileData:n,fileName:l,mimeType:m,folder:g,isPrivate:_}=e.body,S=process.env.DSQL_STATIC_SERVER_DIR;if(!S)throw console.log("Static File ENV not Found!"),Error("No Static Path!");if(g){let e=o().join(S,`images/user-images/user-${a}/${g?.toString().replace(/\.\./g,"")}`);f.existsSync(e)||f.mkdirSync(e,{recursive:!0})}let y=(0,c.A)({folder:g,isPrivate:_,userId:i.user_id});if(!y)throw Error("Couldn't Grab Image URLs");let{fileRootPath:E,urlRootPath:h}=y,v=m?.match(/csv/i)?".csv":m?.match(/pdf/i)?".pdf":m?.match(/xlsx/)?".xlsx":m?.match(/json/i)?".json":".txt",$=h+l+v;f.writeFileSync(E+l+v,n,"base64"),await (0,d.A)({dbFullName:"datasquirel",tableName:"user_media",identifierColumnName:"media_url",identifierValue:$}),await (0,u.A)({dbFullName:"datasquirel",tableName:"user_media",data:{user_id:a,media_name:l,media_url:$,media_thumbnail_url:$,folder:g||"",media_type:"file",private:_?"1":null}}),r.json({success:!0,payload:{urlPath:$}})}catch(t){console.log("File write error:",t),(0,m.default)({component:"/api/query/add-file/main-catch-error",message:t.message,req:e}),r.json({success:!1,msg:"Add File Error!",error:t.message})}}let S=(0,n.M)(i,"default"),y=(0,n.M)(i,"config"),E=new a.PagesAPIRouteModule({definition:{kind:s.A.PAGES_API,page:"/api/query/[user_id]/add-file",pathname:"/api/query/[user_id]/add-file",bundlePath:"",filename:""},userland:i})},45185:(e,r,t)=>{t.d(r,{A:()=>l});var i=t(29021),a=t.n(i),s=t(33873),n=t.n(s);function l({isPrivate:e,userId:r,folder:t,video:i,pathOnly:s}){"production".match(/production/);let l=process.env.DSQL_STATIC_SERVER_DIR;if(!l)return console.log("Static File ENV not Found!"),null;let o=e?`@/${i?"videos":"media"}/${t?t+"/":""}`:i?`/videos/user-videos/user-${r}/${t?t+"/":""}`:`/images/user-images/user-${r}/${t?t+"/":""}`,u=e?`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${r}/media/${t?t+"/":""}`:n().join(l,o);return a().existsSync(u)||s||a().mkdirSync(u,{recursive:!0}),{fileRootPath:u,urlRootPath:e?`@/media/${t?t+"/":""}`:`${process.env.DSQL_STATIC_HOST}${o}`,relativePath:o}}},56081:(e,r,t)=>{t.d(r,{A:()=>n});var i=t(29021),a=t.n(i),s=t(95969);let n=({key:e,database:r,table:t,user_id:i,media:n})=>{if(!e||!i)return null;try{let l=process.env.DSQL_API_KEYS_PATH;if(!l)throw Error("process.env.DSQL_API_KEYS_PATH variable not found");let o=(0,s.A)({encryptedString:e}),u=JSON.parse(o||""),d=a().existsSync(`${l}/${u.sign}`);if(String(u.user_id)!==String(i)||!d)return null;if(!u.target_database||n)return u;if(!r&&u.target_database)return null;let c=u.target_database?.split(",").includes(String(r));if(c&&!u.target_table)return u;if(c&&!t&&u.target_table)return null;if(u.target_table?.split(",").includes(String(t)))return u;return null}catch(e){return console.log(`api-cred ERROR: ${e.message}`),{error:`api-cred ERROR: ${e.message}`}}}},61932:(e,r,t)=>{t.d(r,{A:()=>n});var i=t(48786),a=t(37275),s=t(7971);async function n({dbContext:e,paradigm:r,dbFullName:t,tableName:n,identifierColumnName:l,identifierValue:o,useLocal:u}){try{let d=!!u||!e?.match(/dsql.user/i)&&(!t||!!t.match(/^datasquirel$/)),c=u?s.A:d?i.A:a.default,m=`DELETE FROM \`${t}\`.\`${n}\` WHERE \`${l}\`=?`;return d?await c(m,[o]):await c({paradigm:r,queryString:m,queryValues:[o]})}catch(e){return null}}},67619:(e,r,t)=>{t.r(r),t.d(r,{default:()=>s});var i=t(29021),a=t.n(i);async function s({user:e,message:r,component:t,noMail:i,req:s}){let n=new Date,l=(()=>{if(!s)return null;try{let e=s.headers["x-forwarded-for"],r=s.headers["x-real-ip"],t=s.headers["cf-connecting-ip"],i=Array.isArray(e)?e[0]:e?.split(",")[0],a=t||i||r||s.socket.remoteAddress;if(!a)return null;return String(a)}catch(e){return null}})();try{let i=`🚀 SERVER ERROR =========================== +"use strict";(()=>{var e={};e.id=2562,e.ids=[2562],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},72583:e=>{e.exports=require("sanitize-html")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},79134:(e,r,t)=>{t.r(r),t.d(r,{config:()=>E,default:()=>y,routeModule:()=>h});var i={};t.r(i),t.d(i,{config:()=>_,default:()=>S});var s=t(89947),a=t(2706),n=t(96762),l=t(29021),o=t.n(l),u=t(33873),d=t.n(u),c=t(98e3),m=t(61932),p=t(45185),f=t(67619),g=t(56081);let _={api:{bodyParser:{sizeLimit:"50mb"}}};async function S(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});try{let t=e.headers.authorization;if(!t)return r.json({success:!1,msg:"Unauthorized"});let i=(0,g.A)({key:t,user_id:String(e.query.user_id)});if(!i?.user_id)throw Error("Api Credentials invalid!");let{user_id:s,full_access:a}=i;if(!a)return r.json({success:!1,msg:"Unauthorized"});let{fileData:n,fileName:l,mimeType:u,folder:f,isPrivate:_}=e.body,S=process.env.DSQL_STATIC_SERVER_DIR;if(!S)throw console.log("Static File ENV not Found!"),Error("No Static Path!");if(f){let e=d().join(S,`images/user-images/user-${s}/${f?.toString().replace(/\.\./g,"")}`);o().existsSync(e)||o().mkdirSync(e,{recursive:!0})}let y=(0,p.A)({folder:f,isPrivate:_,userId:i.user_id});if(!y)throw Error("Couldn't Grab Image URLs");let{fileRootPath:E,urlRootPath:h}=y,v=u?.match(/csv/i)?".csv":u?.match(/pdf/i)?".pdf":u?.match(/xlsx/)?".xlsx":u?.match(/json/i)?".json":".txt",A=h+l+v;o().writeFileSync(E+l+v,n,"base64"),await (0,m.A)({dbFullName:"datasquirel",tableName:"user_media",identifierColumnName:"media_url",identifierValue:A}),await (0,c.A)({dbFullName:"datasquirel",tableName:"user_media",data:{user_id:s,media_name:l,media_url:A,media_thumbnail_url:A,folder:f||"",media_type:"file",private:_?"1":null}}),r.json({success:!0,payload:{urlPath:A}})}catch(t){console.log("File write error:",t),(0,f.A)({component:"/api/query/add-file/main-catch-error",message:t.message,req:e}),r.json({success:!1,msg:"Add File Error!",error:t.message})}}let y=(0,n.M)(i,"default"),E=(0,n.M)(i,"config"),h=new s.PagesAPIRouteModule({definition:{kind:a.A.PAGES_API,page:"/api/query/[user_id]/add-file",pathname:"/api/query/[user_id]/add-file",bundlePath:"",filename:""},userland:i})},45185:(e,r,t)=>{t.d(r,{A:()=>l});var i=t(29021),s=t.n(i),a=t(33873),n=t.n(a);function l({isPrivate:e,userId:r,folder:t,video:i,pathOnly:a}){"production".match(/production/);let l=process.env.DSQL_STATIC_SERVER_DIR;if(!l)return console.log("Static File ENV not Found!"),null;let o=e?`@/${i?"videos":"media"}/${t?t+"/":""}`:i?`/videos/user-videos/user-${r}/${t?t+"/":""}`:`/images/user-images/user-${r}/${t?t+"/":""}`,u=e?`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${r}/media/${t?t+"/":""}`:n().join(l,o);return s().existsSync(u)||a||s().mkdirSync(u,{recursive:!0}),{fileRootPath:u,urlRootPath:e?`@/media/${t?t+"/":""}`:`${process.env.DSQL_STATIC_HOST}${o}`,relativePath:o}}},56081:(e,r,t)=>{t.d(r,{A:()=>n});var i=t(29021),s=t.n(i),a=t(95969);let n=({key:e,database:r,table:t,user_id:i,media:n})=>{if(!e||!i)return null;try{let l=process.env.DSQL_API_KEYS_PATH;if(!l)throw Error("process.env.DSQL_API_KEYS_PATH variable not found");let o=(0,a.A)({encryptedString:e}),u=JSON.parse(o||""),d=s().existsSync(`${l}/${u.sign}`);if(String(u.user_id)!==String(i)||!d)return null;if(!u.target_database||n)return u;if(!r&&u.target_database)return null;let c=u.target_database?.split(",").includes(String(r));if(c&&!u.target_table)return u;if(c&&!t&&u.target_table)return null;if(u.target_table?.split(",").includes(String(t)))return u;return null}catch(e){return console.log(`api-cred ERROR: ${e.message}`),{error:`api-cred ERROR: ${e.message}`}}}},61932:(e,r,t)=>{t.d(r,{A:()=>n});var i=t(48786),s=t(37275),a=t(7971);async function n({dbContext:e,paradigm:r,dbFullName:t,tableName:n,identifierColumnName:l,identifierValue:o,useLocal:u}){try{let d=!!u||!e?.match(/dsql.user/i)&&(!t||!!t.match(/^datasquirel$/)),c=u?a.A:d?i.A:s.A,m=`DELETE FROM \`${t}\`.\`${n}\` WHERE \`${l}\`=?`;return d?await c(m,[o]):await c({paradigm:r,queryString:m,queryValues:[o]})}catch(e){return null}}},67619:(e,r,t)=>{t.d(r,{A:()=>a});var i=t(29021),s=t.n(i);async function a({user:e,message:r,component:t,noMail:i,req:a}){let n=new Date,l=(()=>{if(!a)return null;try{let e=a.headers["x-forwarded-for"],r=a.headers["x-real-ip"],t=a.headers["cf-connecting-ip"],i=Array.isArray(e)?e[0]:e?.split(",")[0],s=t||i||r||a.socket.remoteAddress;if(!s)return null;return String(s)}catch(e){return null}})();try{let i=`🚀 SERVER ERROR =========================== Error Message: ${r} Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(i+=` User Id: ${e?.id} User Name: ${e?.first_name} ${e?.last_name} -User Email: ${e?.email}`),s?.url&&(i+=` -URL: ${s.url}`),s?.body&&(i+=` -Request Body: ${JSON.stringify(s.body,null,4)}`),l&&(i+=` +User Email: ${e?.email}`),a?.url&&(i+=` +URL: ${a.url}`),a?.body&&(i+=` +Request Body: ${JSON.stringify(a.body,null,4)}`),l&&(i+=` IP: ${l}`),i+=` Date: ${n.toDateString()} -========================================`,a().existsSync("./.tmp/error.log")||a().writeFileSync("./.tmp/error.log","","utf-8");let o=a().readFileSync("./.tmp/error.log","utf-8");a().writeFileSync("./.tmp/error.log",i),a().appendFileSync("./.tmp/error.log",` +========================================`,s().existsSync("./.tmp/error.log")||s().writeFileSync("./.tmp/error.log","","utf-8");let o=s().readFileSync("./.tmp/error.log","utf-8");s().writeFileSync("./.tmp/error.log",i),s().appendFileSync("./.tmp/error.log",` -${o}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},95969:(e,r,t)=>{t.d(r,{A:()=>s});var i=t(55511),a=t(79428);function s({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let s=r||process.env.DSQL_ENCRYPTION_PASSWORD,n=t||process.env.DSQL_ENCRYPTION_SALT,l=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!s?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!n?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let o=(0,i.scryptSync)(s,n,l),u=a.Buffer.alloc(16,0),d=(0,i.createDecipheriv)("aes-192-cbc",o,u);try{let r=d.update(e,"hex","utf8");return r+=d.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}}};var r=require("../../../../webpack-api-runtime.js");r.C(e);var t=e=>r(r.s=e),i=r.X(0,[1251],()=>t(79134));module.exports=i})(); \ No newline at end of file +${o}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},95969:(e,r,t)=>{t.d(r,{A:()=>a});var i=t(55511),s=t(79428);function a({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let a=r||process.env.DSQL_ENCRYPTION_PASSWORD,n=t||process.env.DSQL_ENCRYPTION_SALT,l=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!a?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!n?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let o=(0,i.scryptSync)(a,n,l),u=s.Buffer.alloc(16,0),d=(0,i.createDecipheriv)("aes-192-cbc",o,u);try{let r=d.update(e,"hex","utf8");return r+=d.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}}};var r=require("../../../../webpack-api-runtime.js");r.C(e);var t=e=>r(r.s=e),i=r.X(0,[1251],()=>t(79134));module.exports=i})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/query/[user_id]/add-image.js b/dsql-app/.local_dist/server/pages/api/query/[user_id]/add-image.js index 132556e..e0a1bc0 100644 --- a/dsql-app/.local_dist/server/pages/api/query/[user_id]/add-image.js +++ b/dsql-app/.local_dist/server/pages/api/query/[user_id]/add-image.js @@ -1,4 +1,4 @@ -"use strict";(()=>{var e={};e.id=5319,e.ids=[5319],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},72583:e=>{e.exports=require("sanitize-html")},9973:e=>{e.exports=require("serverless-mysql")},9288:e=>{e.exports=require("sharp")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},72944:(e,r,t)=>{t.r(r),t.d(r,{config:()=>h,default:()=>_,routeModule:()=>y});var a={};t.r(a),t.d(a,{config:()=>f,default:()=>S});var i=t(89947),s=t(2706),n=t(96762),o=t(33873),l=t.n(o),u=t(98e3),d=t(61932),c=t(96551),m=t(67619),g=t(56081);let p=t(29021),f={api:{bodyParser:{sizeLimit:"50mb"}}};async function S(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});try{let t=e.headers.authorization;if(!t)throw Error("No Authorization Found!");let a=(0,g.A)({key:t,user_id:String(e.query.user_id),media:!0});if(!a?.user_id)throw Error(a?.error||"Api Credentials invalid!");let{user_id:i,full_access:s}=a;if(!s)return r.json({success:!1,msg:"Unauthorized"});let{imageData:n,imageName:o,mimeType:m,thumbnailSize:f,folder:S,isPrivate:_}=e.body,h=process.env.DSQL_STATIC_SERVER_DIR;if(!h)throw console.log("Static File ENV not Found!"),Error("No Static Path!");if(S){let e=l().join(h,`images/user-images/user-${i}/${S}`);p.existsSync(e)||p.mkdirSync(e,{recursive:!0})}let y=m?.match(/jpeg/i)?"jpeg":m?.match(/png/i)?"png":m?.match(/webp/i)?"webp":m?.match(/svg/i)?"svg":"jpg",v=await (0,c.A)({imageName:o.replace(/ /g,"-").replace(/\.{1,}|\//g,""),imageSourceBase64:n,userId:i,mimeType:y,thumbnailSize:f,folder:S,isPrivate:_});if(!v)throw Error("Write Image Failed in add-media API route");let{urlPath:E,urlThumbnailPath:$}=v;await (0,d.A)({dbFullName:"datasquirel",tableName:"user_media",identifierColumnName:"media_url",identifierValue:E}),await (0,u.A)({dbFullName:"datasquirel",tableName:"user_media",data:{user_id:i,media_name:o,media_url:E,media_thumbnail_url:$,folder:S||""}}),r.json({success:!0,payload:{urlPath:E,urlThumbnailPath:$}})}catch(t){(0,m.default)({component:"/api/query/add-image/main-catch-error",message:t.message,user:{},req:e}),r.json({success:!1,msg:"Add Image Error!",error:t.message})}}let _=(0,n.M)(a,"default"),h=(0,n.M)(a,"config"),y=new i.PagesAPIRouteModule({definition:{kind:s.A.PAGES_API,page:"/api/query/[user_id]/add-image",pathname:"/api/query/[user_id]/add-image",bundlePath:"",filename:""},userland:a})},96551:(e,r,t)=>{t.d(r,{A:()=>o});var a=t(9288),i=t.n(a),s=t(67619),n=t(45185);async function o({imageSourceBase64:e,imageName:r,userId:t,mimeType:a,thumbnailSize:o,folder:l,isPrivate:u}){try{let s=Buffer.from(e,"base64"),d=o?parseInt(o.toString()):400,c=i()(s),m=i()(s),g=(0,n.A)({isPrivate:u,userId:t,folder:l});if(!g)return null;let{fileRootPath:p,urlRootPath:f,relativePath:S}=g,{width:_,height:h,format:y}=await c.metadata(),v=a||y;_&&h&&_>1800&&c.resize(1800,Math.round(1800/_*h),{fit:"cover"}),c.toFormat(v,{quality:80}),await c.metadata();let E=`${r}.${v}`;if(await c.toFile(p+E),_&&h&&_>d){let e=d/_;m.resize(d,Math.round(h*e),{fit:"cover"})}else _&&h&&m.resize(150,Math.round(150/_*h),{fit:"cover"});m.toFormat(v,{quality:80});let $=`${r}_thumbnail.${v}`;return await m.toFile(p+$),{urlPath:f+E,urlThumbnailPath:f+$,urlRelativePath:S+E,urlThumbnailRelativePath:S+$}}catch(e){return console.log("Write Image to Disk error =>",e.message),(0,s.default)({component:"functions/backend/fsWriteImageToDiskFromBase64",message:e.message}),null}}},45185:(e,r,t)=>{t.d(r,{A:()=>o});var a=t(29021),i=t.n(a),s=t(33873),n=t.n(s);function o({isPrivate:e,userId:r,folder:t,video:a,pathOnly:s}){"production".match(/production/);let o=process.env.DSQL_STATIC_SERVER_DIR;if(!o)return console.log("Static File ENV not Found!"),null;let l=e?`@/${a?"videos":"media"}/${t?t+"/":""}`:a?`/videos/user-videos/user-${r}/${t?t+"/":""}`:`/images/user-images/user-${r}/${t?t+"/":""}`,u=e?`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${r}/media/${t?t+"/":""}`:n().join(o,l);return i().existsSync(u)||s||i().mkdirSync(u,{recursive:!0}),{fileRootPath:u,urlRootPath:e?`@/media/${t?t+"/":""}`:`${process.env.DSQL_STATIC_HOST}${l}`,relativePath:l}}},56081:(e,r,t)=>{t.d(r,{A:()=>n});var a=t(29021),i=t.n(a),s=t(95969);let n=({key:e,database:r,table:t,user_id:a,media:n})=>{if(!e||!a)return null;try{let o=process.env.DSQL_API_KEYS_PATH;if(!o)throw Error("process.env.DSQL_API_KEYS_PATH variable not found");let l=(0,s.A)({encryptedString:e}),u=JSON.parse(l||""),d=i().existsSync(`${o}/${u.sign}`);if(String(u.user_id)!==String(a)||!d)return null;if(!u.target_database||n)return u;if(!r&&u.target_database)return null;let c=u.target_database?.split(",").includes(String(r));if(c&&!u.target_table)return u;if(c&&!t&&u.target_table)return null;if(u.target_table?.split(",").includes(String(t)))return u;return null}catch(e){return console.log(`api-cred ERROR: ${e.message}`),{error:`api-cred ERROR: ${e.message}`}}}},61932:(e,r,t)=>{t.d(r,{A:()=>n});var a=t(48786),i=t(37275),s=t(7971);async function n({dbContext:e,paradigm:r,dbFullName:t,tableName:n,identifierColumnName:o,identifierValue:l,useLocal:u}){try{let d=!!u||!e?.match(/dsql.user/i)&&(!t||!!t.match(/^datasquirel$/)),c=u?s.A:d?a.A:i.default,m=`DELETE FROM \`${t}\`.\`${n}\` WHERE \`${o}\`=?`;return d?await c(m,[l]):await c({paradigm:r,queryString:m,queryValues:[l]})}catch(e){return null}}},67619:(e,r,t)=>{t.r(r),t.d(r,{default:()=>s});var a=t(29021),i=t.n(a);async function s({user:e,message:r,component:t,noMail:a,req:s}){let n=new Date,o=(()=>{if(!s)return null;try{let e=s.headers["x-forwarded-for"],r=s.headers["x-real-ip"],t=s.headers["cf-connecting-ip"],a=Array.isArray(e)?e[0]:e?.split(",")[0],i=t||a||r||s.socket.remoteAddress;if(!i)return null;return String(i)}catch(e){return null}})();try{let a=`🚀 SERVER ERROR =========================== +"use strict";(()=>{var e={};e.id=5319,e.ids=[5319],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},72583:e=>{e.exports=require("sanitize-html")},9973:e=>{e.exports=require("serverless-mysql")},9288:e=>{e.exports=require("sharp")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},72944:(e,r,t)=>{t.r(r),t.d(r,{config:()=>y,default:()=>h,routeModule:()=>v});var a={};t.r(a),t.d(a,{config:()=>S,default:()=>_});var i=t(89947),s=t(2706),n=t(96762),o=t(29021),l=t.n(o),u=t(33873),d=t.n(u),c=t(98e3),m=t(61932),g=t(96551),p=t(67619),f=t(56081);let S={api:{bodyParser:{sizeLimit:"50mb"}}};async function _(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});try{let t=e.headers.authorization;if(!t)throw Error("No Authorization Found!");let a=(0,f.A)({key:t,user_id:String(e.query.user_id),media:!0});if(!a?.user_id)throw Error(a?.error||"Api Credentials invalid!");let{user_id:i,full_access:s}=a;if(!s)return r.json({success:!1,msg:"Unauthorized"});let{imageData:n,imageName:o,mimeType:u,thumbnailSize:p,folder:S,isPrivate:_}=e.body,h=process.env.DSQL_STATIC_SERVER_DIR;if(!h)throw console.log("Static File ENV not Found!"),Error("No Static Path!");if(S){let e=d().join(h,`images/user-images/user-${i}/${S}`);l().existsSync(e)||l().mkdirSync(e,{recursive:!0})}let y=u?.match(/jpeg/i)?"jpeg":u?.match(/png/i)?"png":u?.match(/webp/i)?"webp":u?.match(/svg/i)?"svg":"jpg",v=await (0,g.A)({imageName:o.replace(/ /g,"-").replace(/\.{1,}|\//g,""),imageSourceBase64:n,userId:i,mimeType:y,thumbnailSize:p,folder:S,isPrivate:_});if(!v)throw Error("Write Image Failed in add-media API route");let{urlPath:E,urlThumbnailPath:A}=v;await (0,m.A)({dbFullName:"datasquirel",tableName:"user_media",identifierColumnName:"media_url",identifierValue:E}),await (0,c.A)({dbFullName:"datasquirel",tableName:"user_media",data:{user_id:i,media_name:o,media_url:E,media_thumbnail_url:A,folder:S||""}}),r.json({success:!0,payload:{urlPath:E,urlThumbnailPath:A}})}catch(t){(0,p.A)({component:"/api/query/add-image/main-catch-error",message:t.message,user:{},req:e}),r.json({success:!1,msg:"Add Image Error!",error:t.message})}}let h=(0,n.M)(a,"default"),y=(0,n.M)(a,"config"),v=new i.PagesAPIRouteModule({definition:{kind:s.A.PAGES_API,page:"/api/query/[user_id]/add-image",pathname:"/api/query/[user_id]/add-image",bundlePath:"",filename:""},userland:a})},96551:(e,r,t)=>{t.d(r,{A:()=>o});var a=t(9288),i=t.n(a),s=t(67619),n=t(45185);async function o({imageSourceBase64:e,imageName:r,userId:t,mimeType:a,thumbnailSize:o,folder:l,isPrivate:u}){try{let s=Buffer.from(e,"base64"),d=o?parseInt(o.toString()):400,c=i()(s),m=i()(s),g=(0,n.A)({isPrivate:u,userId:t,folder:l});if(!g)return null;let{fileRootPath:p,urlRootPath:f,relativePath:S}=g,{width:_,height:h,format:y}=await c.metadata(),v=a||y;_&&h&&_>1800&&c.resize(1800,Math.round(1800/_*h),{fit:"cover"}),c.toFormat(v,{quality:80}),await c.metadata();let E=`${r}.${v}`;if(await c.toFile(p+E),_&&h&&_>d){let e=d/_;m.resize(d,Math.round(h*e),{fit:"cover"})}else _&&h&&m.resize(150,Math.round(150/_*h),{fit:"cover"});m.toFormat(v,{quality:80});let A=`${r}_thumbnail.${v}`;return await m.toFile(p+A),{urlPath:f+E,urlThumbnailPath:f+A,urlRelativePath:S+E,urlThumbnailRelativePath:S+A}}catch(e){return console.log("Write Image to Disk error =>",e.message),(0,s.A)({component:"functions/backend/fsWriteImageToDiskFromBase64",message:e.message}),null}}},45185:(e,r,t)=>{t.d(r,{A:()=>o});var a=t(29021),i=t.n(a),s=t(33873),n=t.n(s);function o({isPrivate:e,userId:r,folder:t,video:a,pathOnly:s}){"production".match(/production/);let o=process.env.DSQL_STATIC_SERVER_DIR;if(!o)return console.log("Static File ENV not Found!"),null;let l=e?`@/${a?"videos":"media"}/${t?t+"/":""}`:a?`/videos/user-videos/user-${r}/${t?t+"/":""}`:`/images/user-images/user-${r}/${t?t+"/":""}`,u=e?`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${r}/media/${t?t+"/":""}`:n().join(o,l);return i().existsSync(u)||s||i().mkdirSync(u,{recursive:!0}),{fileRootPath:u,urlRootPath:e?`@/media/${t?t+"/":""}`:`${process.env.DSQL_STATIC_HOST}${l}`,relativePath:l}}},56081:(e,r,t)=>{t.d(r,{A:()=>n});var a=t(29021),i=t.n(a),s=t(95969);let n=({key:e,database:r,table:t,user_id:a,media:n})=>{if(!e||!a)return null;try{let o=process.env.DSQL_API_KEYS_PATH;if(!o)throw Error("process.env.DSQL_API_KEYS_PATH variable not found");let l=(0,s.A)({encryptedString:e}),u=JSON.parse(l||""),d=i().existsSync(`${o}/${u.sign}`);if(String(u.user_id)!==String(a)||!d)return null;if(!u.target_database||n)return u;if(!r&&u.target_database)return null;let c=u.target_database?.split(",").includes(String(r));if(c&&!u.target_table)return u;if(c&&!t&&u.target_table)return null;if(u.target_table?.split(",").includes(String(t)))return u;return null}catch(e){return console.log(`api-cred ERROR: ${e.message}`),{error:`api-cred ERROR: ${e.message}`}}}},61932:(e,r,t)=>{t.d(r,{A:()=>n});var a=t(48786),i=t(37275),s=t(7971);async function n({dbContext:e,paradigm:r,dbFullName:t,tableName:n,identifierColumnName:o,identifierValue:l,useLocal:u}){try{let d=!!u||!e?.match(/dsql.user/i)&&(!t||!!t.match(/^datasquirel$/)),c=u?s.A:d?a.A:i.A,m=`DELETE FROM \`${t}\`.\`${n}\` WHERE \`${o}\`=?`;return d?await c(m,[l]):await c({paradigm:r,queryString:m,queryValues:[l]})}catch(e){return null}}},67619:(e,r,t)=>{t.d(r,{A:()=>s});var a=t(29021),i=t.n(a);async function s({user:e,message:r,component:t,noMail:a,req:s}){let n=new Date,o=(()=>{if(!s)return null;try{let e=s.headers["x-forwarded-for"],r=s.headers["x-real-ip"],t=s.headers["cf-connecting-ip"],a=Array.isArray(e)?e[0]:e?.split(",")[0],i=t||a||r||s.socket.remoteAddress;if(!i)return null;return String(i)}catch(e){return null}})();try{let a=`🚀 SERVER ERROR =========================== Error Message: ${r} Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(a+=` User Id: ${e?.id} diff --git a/dsql-app/.local_dist/server/pages/api/query/[user_id]/delete-file.js b/dsql-app/.local_dist/server/pages/api/query/[user_id]/delete-file.js index 9e4c7df..5ab910c 100644 --- a/dsql-app/.local_dist/server/pages/api/query/[user_id]/delete-file.js +++ b/dsql-app/.local_dist/server/pages/api/query/[user_id]/delete-file.js @@ -1,4 +1,4 @@ -"use strict";(()=>{var e={};e.id=7918,e.ids=[7918],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},83701:(e,r,t)=>{t.r(r),t.d(r,{config:()=>S,default:()=>p,routeModule:()=>_});var n={};t.r(n),t.d(n,{config:()=>f,default:()=>g});var s=t(89947),a=t(2706),o=t(96762),i=t(48786),l=t(61932),c=t(67619),u=t(56081);let d=t(29021),f={api:{bodyParser:{sizeLimit:"50mb"}}};async function g(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});try{let t=e.headers.authorization;if(!t)return r.json({success:!1,msg:"Unauthorized"});let n=(0,u.A)({key:t,user_id:String(e.query.user_id)});if(!n?.user_id)throw Error("Api Credentials invalid!");let{user_id:s,full_access:a}=n;if(!a)return r.json({success:!1,msg:"Unauthorized"});let{url:o}=e.body,c=await (0,i.A)("SELECT * FROM user_media WHERE media_url = ?",[o]);if(!c?.length)return r.json({success:!1,msg:"Media not found!"});let{id:f,folder:g,media_url:p,media_thumbnail_url:S,media_type:_}=c[0],m=process.env.DSQL_STATIC_SERVER_DIR;if(!m)throw console.log("Static File ENV not Found!"),Error("No Static Path!");let y=e=>!e||e?.match(/\.\./)?"":e?.match(/^\@/)?e.replace(/@\/media\//,`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${s}/media/`):e.replace(process.env.DSQL_STATIC_HOST||"",m),E=y(p),A=y(S);if(!E?.match(/./))return r.json({success:!1,msg:"Invalid path!"});try{d.unlinkSync(E),d.unlinkSync(A),await (0,l.A)({dbFullName:"datasquirel",tableName:"user_media",identifierColumnName:"id",identifierValue:f}),r.json({success:!0,payload:{url:o}})}catch(e){console.log("File delete error:",e.message),r.json({success:!1,payload:{url:o},error:e.message})}}catch(t){console.log("File write error:",t),(0,c.default)({component:"/api/query/delete-file/main-catch-error",message:t.message,req:e}),r.json({success:!1,msg:"Delete File Error!",error:t.message})}}let p=(0,o.M)(n,"default"),S=(0,o.M)(n,"config"),_=new s.PagesAPIRouteModule({definition:{kind:a.A.PAGES_API,page:"/api/query/[user_id]/delete-file",pathname:"/api/query/[user_id]/delete-file",bundlePath:"",filename:""},userland:n})},56081:(e,r,t)=>{t.d(r,{A:()=>o});var n=t(29021),s=t.n(n),a=t(95969);let o=({key:e,database:r,table:t,user_id:n,media:o})=>{if(!e||!n)return null;try{let i=process.env.DSQL_API_KEYS_PATH;if(!i)throw Error("process.env.DSQL_API_KEYS_PATH variable not found");let l=(0,a.A)({encryptedString:e}),c=JSON.parse(l||""),u=s().existsSync(`${i}/${c.sign}`);if(String(c.user_id)!==String(n)||!u)return null;if(!c.target_database||o)return c;if(!r&&c.target_database)return null;let d=c.target_database?.split(",").includes(String(r));if(d&&!c.target_table)return c;if(d&&!t&&c.target_table)return null;if(c.target_table?.split(",").includes(String(t)))return c;return null}catch(e){return console.log(`api-cred ERROR: ${e.message}`),{error:`api-cred ERROR: ${e.message}`}}}},61932:(e,r,t)=>{t.d(r,{A:()=>o});var n=t(48786),s=t(37275),a=t(7971);async function o({dbContext:e,paradigm:r,dbFullName:t,tableName:o,identifierColumnName:i,identifierValue:l,useLocal:c}){try{let u=!!c||!e?.match(/dsql.user/i)&&(!t||!!t.match(/^datasquirel$/)),d=c?a.A:u?n.A:s.default,f=`DELETE FROM \`${t}\`.\`${o}\` WHERE \`${i}\`=?`;return u?await d(f,[l]):await d({paradigm:r,queryString:f,queryValues:[l]})}catch(e){return null}}},67619:(e,r,t)=>{t.r(r),t.d(r,{default:()=>a});var n=t(29021),s=t.n(n);async function a({user:e,message:r,component:t,noMail:n,req:a}){let o=new Date,i=(()=>{if(!a)return null;try{let e=a.headers["x-forwarded-for"],r=a.headers["x-real-ip"],t=a.headers["cf-connecting-ip"],n=Array.isArray(e)?e[0]:e?.split(",")[0],s=t||n||r||a.socket.remoteAddress;if(!s)return null;return String(s)}catch(e){return null}})();try{let n=`🚀 SERVER ERROR =========================== +"use strict";(()=>{var e={};e.id=7918,e.ids=[7918],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},83701:(e,r,t)=>{t.r(r),t.d(r,{config:()=>_,default:()=>S,routeModule:()=>m});var n={};t.r(n),t.d(n,{config:()=>g,default:()=>p});var s=t(89947),a=t(2706),o=t(96762),i=t(29021),l=t.n(i),c=t(48786),u=t(61932),d=t(67619),f=t(56081);let g={api:{bodyParser:{sizeLimit:"50mb"}}};async function p(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});try{let t=e.headers.authorization;if(!t)return r.json({success:!1,msg:"Unauthorized"});let n=(0,f.A)({key:t,user_id:String(e.query.user_id)});if(!n?.user_id)throw Error("Api Credentials invalid!");let{user_id:s,full_access:a}=n;if(!a)return r.json({success:!1,msg:"Unauthorized"});let{url:o}=e.body,i=await (0,c.A)("SELECT * FROM user_media WHERE media_url = ?",[o]);if(!i?.length)return r.json({success:!1,msg:"Media not found!"});let{id:d,folder:g,media_url:p,media_thumbnail_url:S,media_type:_}=i[0],m=process.env.DSQL_STATIC_SERVER_DIR;if(!m)throw console.log("Static File ENV not Found!"),Error("No Static Path!");let y=e=>!e||e?.match(/\.\./)?"":e?.match(/^\@/)?e.replace(/@\/media\//,`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${s}/media/`):e.replace(process.env.DSQL_STATIC_HOST||"",m),E=y(p),A=y(S);if(!E?.match(/./))return r.json({success:!1,msg:"Invalid path!"});try{l().unlinkSync(E),l().unlinkSync(A),await (0,u.A)({dbFullName:"datasquirel",tableName:"user_media",identifierColumnName:"id",identifierValue:d}),r.json({success:!0,payload:{url:o}})}catch(e){console.log("File delete error:",e.message),r.json({success:!1,payload:{url:o},error:e.message})}}catch(t){console.log("File write error:",t),(0,d.A)({component:"/api/query/delete-file/main-catch-error",message:t.message,req:e}),r.json({success:!1,msg:"Delete File Error!",error:t.message})}}let S=(0,o.M)(n,"default"),_=(0,o.M)(n,"config"),m=new s.PagesAPIRouteModule({definition:{kind:a.A.PAGES_API,page:"/api/query/[user_id]/delete-file",pathname:"/api/query/[user_id]/delete-file",bundlePath:"",filename:""},userland:n})},56081:(e,r,t)=>{t.d(r,{A:()=>o});var n=t(29021),s=t.n(n),a=t(95969);let o=({key:e,database:r,table:t,user_id:n,media:o})=>{if(!e||!n)return null;try{let i=process.env.DSQL_API_KEYS_PATH;if(!i)throw Error("process.env.DSQL_API_KEYS_PATH variable not found");let l=(0,a.A)({encryptedString:e}),c=JSON.parse(l||""),u=s().existsSync(`${i}/${c.sign}`);if(String(c.user_id)!==String(n)||!u)return null;if(!c.target_database||o)return c;if(!r&&c.target_database)return null;let d=c.target_database?.split(",").includes(String(r));if(d&&!c.target_table)return c;if(d&&!t&&c.target_table)return null;if(c.target_table?.split(",").includes(String(t)))return c;return null}catch(e){return console.log(`api-cred ERROR: ${e.message}`),{error:`api-cred ERROR: ${e.message}`}}}},61932:(e,r,t)=>{t.d(r,{A:()=>o});var n=t(48786),s=t(37275),a=t(7971);async function o({dbContext:e,paradigm:r,dbFullName:t,tableName:o,identifierColumnName:i,identifierValue:l,useLocal:c}){try{let u=!!c||!e?.match(/dsql.user/i)&&(!t||!!t.match(/^datasquirel$/)),d=c?a.A:u?n.A:s.A,f=`DELETE FROM \`${t}\`.\`${o}\` WHERE \`${i}\`=?`;return u?await d(f,[l]):await d({paradigm:r,queryString:f,queryValues:[l]})}catch(e){return null}}},67619:(e,r,t)=>{t.d(r,{A:()=>a});var n=t(29021),s=t.n(n);async function a({user:e,message:r,component:t,noMail:n,req:a}){let o=new Date,i=(()=>{if(!a)return null;try{let e=a.headers["x-forwarded-for"],r=a.headers["x-real-ip"],t=a.headers["cf-connecting-ip"],n=Array.isArray(e)?e[0]:e?.split(",")[0],s=t||n||r||a.socket.remoteAddress;if(!s)return null;return String(s)}catch(e){return null}})();try{let n=`🚀 SERVER ERROR =========================== Error Message: ${r} Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(n+=` User Id: ${e?.id} @@ -13,4 +13,4 @@ Date: ${o.toDateString()} -${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},95969:(e,r,t)=>{t.d(r,{A:()=>a});var n=t(55511),s=t(79428);function a({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let a=r||process.env.DSQL_ENCRYPTION_PASSWORD,o=t||process.env.DSQL_ENCRYPTION_SALT,i=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!a?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!o?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let l=(0,n.scryptSync)(a,o,i),c=s.Buffer.alloc(16,0),u=(0,n.createDecipheriv)("aes-192-cbc",l,c);try{let r=u.update(e,"hex","utf8");return r+=u.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>n});async function n(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},37275:(e,r,t)=>{async function n(e,r,t){try{if("string"==typeof r){let n=await e.query(s(r),t);return JSON.parse(JSON.stringify(n))}if("object"!=typeof r)return null;{let t=[];for(let n=0;na})},7971:(e,r,t)=>{t.d(r,{A:()=>i});var n=t(9973),s=t.n(n),a=t(29021),o=t.n(a);async function i(...e){let r=s()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!o().existsSync(r)){console.log(`${r} does not exist`);return}return{ca:o().readFileSync(`${e}/ca-cert.pem`),rejectUnauthorized:!1}}()},onConnect:()=>{console.log("Connection Successful!")},onConnectError:e=>{console.log("Connection Error",e.message)},onError:e=>{console.log("Client Error",e.message)}});console.log("Querying ...");try{let t=await r.query(...e);return await r.end(),JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e.message),{success:!1,error:e.message}}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../../../webpack-api-runtime.js");r.C(e);var t=r(r.s=83701);module.exports=t})(); \ No newline at end of file +${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},95969:(e,r,t)=>{t.d(r,{A:()=>a});var n=t(55511),s=t(79428);function a({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let a=r||process.env.DSQL_ENCRYPTION_PASSWORD,o=t||process.env.DSQL_ENCRYPTION_SALT,i=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!a?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!o?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let l=(0,n.scryptSync)(a,o,i),c=s.Buffer.alloc(16,0),u=(0,n.createDecipheriv)("aes-192-cbc",l,c);try{let r=u.update(e,"hex","utf8");return r+=u.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>n});async function n(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},37275:(e,r,t)=>{async function n(e,r,t){try{if("string"==typeof r){let n=await e.query(s(r),t);return JSON.parse(JSON.stringify(n))}if("object"!=typeof r)return null;{let t=[];for(let n=0;na})},7971:(e,r,t)=>{t.d(r,{A:()=>i});var n=t(9973),s=t.n(n),a=t(29021),o=t.n(a);async function i(...e){let r=s()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!o().existsSync(r)){console.log(`${r} does not exist`);return}return{ca:o().readFileSync(`${e}/ca-cert.pem`),rejectUnauthorized:!1}}()},onConnect:()=>{console.log("Connection Successful!")},onConnectError:e=>{console.log("Connection Error",e.message)},onError:e=>{console.log("Client Error",e.message)}});console.log("Querying ...");try{let t=await r.query(...e);return await r.end(),JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e.message),{success:!1,error:e.message}}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../../../webpack-api-runtime.js");r.C(e);var t=r(r.s=83701);module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/query/[user_id]/get-private-file.js b/dsql-app/.local_dist/server/pages/api/query/[user_id]/get-private-file.js index af7f9c3..5573728 100644 --- a/dsql-app/.local_dist/server/pages/api/query/[user_id]/get-private-file.js +++ b/dsql-app/.local_dist/server/pages/api/query/[user_id]/get-private-file.js @@ -1,4 +1,4 @@ -"use strict";(()=>{var e={};e.id=5287,e.ids=[5287],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},45096:(e,r,t)=>{t.r(r),t.d(r,{config:()=>S,default:()=>m,routeModule:()=>_});var n={};t.r(n),t.d(n,{config:()=>p,default:()=>g});var i=t(89947),s=t(2706),a=t(96762),o=t(33873),l=t.n(o),u=t(45185),c=t(67619),d=t(56081);let f=t(29021),p={api:{bodyParser:{sizeLimit:"100mb"}}};async function g(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});try{let t=e.headers.authorization;if(!t)return r.json({success:!1,msg:"Unauthorized"});let n=(0,d.A)({key:t,user_id:String(e.query.user_id)});if(!n?.user_id)throw Error("Api Credentials invalid!");let{user_id:i,full_access:s}=n;if(!s)return r.json({success:!1,msg:"Unauthorized"});let{folder:a,fileName:o,downloadType:c}=e.body,p=(0,u.A)({folder:a,isPrivate:!0,userId:n.user_id});if(!p)throw Error("Couldn't Grab Image URLs");let{fileRootPath:g}=p,m=l().join(g,o);if(c?.match(/raw/i)){let e=f.readFileSync(m,"utf-8");return r.json({success:!0,data:e})}if(c?.match(/base64/i)){let e=f.readFileSync(m,"base64");return r.json({success:!0,data:e})}f.createReadStream(m).pipe(r)}catch(t){console.log("Get Private File Error:",t),(0,c.default)({component:"/api/query/get-private-file/main-catch-error",message:t.message,req:e}),r.json({success:!1,msg:"Get Private File Error!",error:t.message})}}let m=(0,a.M)(n,"default"),S=(0,a.M)(n,"config"),_=new i.PagesAPIRouteModule({definition:{kind:s.A.PAGES_API,page:"/api/query/[user_id]/get-private-file",pathname:"/api/query/[user_id]/get-private-file",bundlePath:"",filename:""},userland:n})},45185:(e,r,t)=>{t.d(r,{A:()=>o});var n=t(29021),i=t.n(n),s=t(33873),a=t.n(s);function o({isPrivate:e,userId:r,folder:t,video:n,pathOnly:s}){"production".match(/production/);let o=process.env.DSQL_STATIC_SERVER_DIR;if(!o)return console.log("Static File ENV not Found!"),null;let l=e?`@/${n?"videos":"media"}/${t?t+"/":""}`:n?`/videos/user-videos/user-${r}/${t?t+"/":""}`:`/images/user-images/user-${r}/${t?t+"/":""}`,u=e?`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${r}/media/${t?t+"/":""}`:a().join(o,l);return i().existsSync(u)||s||i().mkdirSync(u,{recursive:!0}),{fileRootPath:u,urlRootPath:e?`@/media/${t?t+"/":""}`:`${process.env.DSQL_STATIC_HOST}${l}`,relativePath:l}}},56081:(e,r,t)=>{t.d(r,{A:()=>a});var n=t(29021),i=t.n(n),s=t(95969);let a=({key:e,database:r,table:t,user_id:n,media:a})=>{if(!e||!n)return null;try{let o=process.env.DSQL_API_KEYS_PATH;if(!o)throw Error("process.env.DSQL_API_KEYS_PATH variable not found");let l=(0,s.A)({encryptedString:e}),u=JSON.parse(l||""),c=i().existsSync(`${o}/${u.sign}`);if(String(u.user_id)!==String(n)||!c)return null;if(!u.target_database||a)return u;if(!r&&u.target_database)return null;let d=u.target_database?.split(",").includes(String(r));if(d&&!u.target_table)return u;if(d&&!t&&u.target_table)return null;if(u.target_table?.split(",").includes(String(t)))return u;return null}catch(e){return console.log(`api-cred ERROR: ${e.message}`),{error:`api-cred ERROR: ${e.message}`}}}},67619:(e,r,t)=>{t.r(r),t.d(r,{default:()=>s});var n=t(29021),i=t.n(n);async function s({user:e,message:r,component:t,noMail:n,req:s}){let a=new Date,o=(()=>{if(!s)return null;try{let e=s.headers["x-forwarded-for"],r=s.headers["x-real-ip"],t=s.headers["cf-connecting-ip"],n=Array.isArray(e)?e[0]:e?.split(",")[0],i=t||n||r||s.socket.remoteAddress;if(!i)return null;return String(i)}catch(e){return null}})();try{let n=`🚀 SERVER ERROR =========================== +"use strict";(()=>{var e={};e.id=5287,e.ids=[5287],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},45096:(e,r,t)=>{t.r(r),t.d(r,{config:()=>_,default:()=>S,routeModule:()=>E});var n={};t.r(n),t.d(n,{config:()=>g,default:()=>m});var i=t(89947),s=t(2706),a=t(96762),o=t(29021),l=t.n(o),u=t(33873),c=t.n(u),d=t(45185),p=t(67619),f=t(56081);let g={api:{bodyParser:{sizeLimit:"100mb"}}};async function m(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});try{let t=e.headers.authorization;if(!t)return r.json({success:!1,msg:"Unauthorized"});let n=(0,f.A)({key:t,user_id:String(e.query.user_id)});if(!n?.user_id)throw Error("Api Credentials invalid!");let{user_id:i,full_access:s}=n;if(!s)return r.json({success:!1,msg:"Unauthorized"});let{folder:a,fileName:o,downloadType:u}=e.body,p=(0,d.A)({folder:a,isPrivate:!0,userId:n.user_id});if(!p)throw Error("Couldn't Grab Image URLs");let{fileRootPath:g}=p,m=c().join(g,o);if(u?.match(/raw/i)){let e=l().readFileSync(m,"utf-8");return r.json({success:!0,data:e})}if(u?.match(/base64/i)){let e=l().readFileSync(m,"base64");return r.json({success:!0,data:e})}l().createReadStream(m).pipe(r)}catch(t){console.log("Get Private File Error:",t),(0,p.A)({component:"/api/query/get-private-file/main-catch-error",message:t.message,req:e}),r.json({success:!1,msg:"Get Private File Error!",error:t.message})}}let S=(0,a.M)(n,"default"),_=(0,a.M)(n,"config"),E=new i.PagesAPIRouteModule({definition:{kind:s.A.PAGES_API,page:"/api/query/[user_id]/get-private-file",pathname:"/api/query/[user_id]/get-private-file",bundlePath:"",filename:""},userland:n})},45185:(e,r,t)=>{t.d(r,{A:()=>o});var n=t(29021),i=t.n(n),s=t(33873),a=t.n(s);function o({isPrivate:e,userId:r,folder:t,video:n,pathOnly:s}){"production".match(/production/);let o=process.env.DSQL_STATIC_SERVER_DIR;if(!o)return console.log("Static File ENV not Found!"),null;let l=e?`@/${n?"videos":"media"}/${t?t+"/":""}`:n?`/videos/user-videos/user-${r}/${t?t+"/":""}`:`/images/user-images/user-${r}/${t?t+"/":""}`,u=e?`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${r}/media/${t?t+"/":""}`:a().join(o,l);return i().existsSync(u)||s||i().mkdirSync(u,{recursive:!0}),{fileRootPath:u,urlRootPath:e?`@/media/${t?t+"/":""}`:`${process.env.DSQL_STATIC_HOST}${l}`,relativePath:l}}},56081:(e,r,t)=>{t.d(r,{A:()=>a});var n=t(29021),i=t.n(n),s=t(95969);let a=({key:e,database:r,table:t,user_id:n,media:a})=>{if(!e||!n)return null;try{let o=process.env.DSQL_API_KEYS_PATH;if(!o)throw Error("process.env.DSQL_API_KEYS_PATH variable not found");let l=(0,s.A)({encryptedString:e}),u=JSON.parse(l||""),c=i().existsSync(`${o}/${u.sign}`);if(String(u.user_id)!==String(n)||!c)return null;if(!u.target_database||a)return u;if(!r&&u.target_database)return null;let d=u.target_database?.split(",").includes(String(r));if(d&&!u.target_table)return u;if(d&&!t&&u.target_table)return null;if(u.target_table?.split(",").includes(String(t)))return u;return null}catch(e){return console.log(`api-cred ERROR: ${e.message}`),{error:`api-cred ERROR: ${e.message}`}}}},67619:(e,r,t)=>{t.d(r,{A:()=>s});var n=t(29021),i=t.n(n);async function s({user:e,message:r,component:t,noMail:n,req:s}){let a=new Date,o=(()=>{if(!s)return null;try{let e=s.headers["x-forwarded-for"],r=s.headers["x-real-ip"],t=s.headers["cf-connecting-ip"],n=Array.isArray(e)?e[0]:e?.split(",")[0],i=t||n||r||s.socket.remoteAddress;if(!i)return null;return String(i)}catch(e){return null}})();try{let n=`🚀 SERVER ERROR =========================== Error Message: ${r} Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(n+=` User Id: ${e?.id} diff --git a/dsql-app/.local_dist/server/pages/api/query/[user_id]/get-schema.js b/dsql-app/.local_dist/server/pages/api/query/[user_id]/get-schema.js index e60aa51..afd3bcc 100644 --- a/dsql-app/.local_dist/server/pages/api/query/[user_id]/get-schema.js +++ b/dsql-app/.local_dist/server/pages/api/query/[user_id]/get-schema.js @@ -1,4 +1,4 @@ -"use strict";(()=>{var e={};e.id=6562,e.ids=[6562],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},35597:(e,r,t)=>{t.r(r),t.d(r,{config:()=>p,default:()=>f,routeModule:()=>g});var n={};t.r(n),t.d(n,{default:()=>d});var s=t(89947),a=t(2706),i=t(96762),o=t(67619),l=t(56081);let u=t(29021),c=t(33873);async function d(e,r){if("GET"!==e.method)return r.json({msg:"Failed!"});console.log("Getting DB schema");try{let{database:t,table:n,field:s}=e.query,a=e.headers.authorization;if(!a)return r.json({success:!1,msg:"Unauthorized"});let i=(0,l.A)({key:a,database:t,table:n,user_id:String(e.query.user_id)});if(!i?.user_id)throw Error("Api Credentials invalid!");let{user_id:d,full_access:f}=i;if(!f)return r.json({success:!1,msg:"Unauthorized"});try{let e=t&&"string"==typeof t?`datasquirel_user_${d}_${t?.toLowerCase().replace(/[^a-z0-9\_]/g,"")}`:null,a=c.join(String(process.env.DSQL_USER_DB_SCHEMA_PATH),`user-${d.toString().replace(/\//g,"")}`,"main.json"),i=JSON.parse(u.readFileSync(a,"utf8")),o=e?i.find(r=>r.dbFullName==e):null;if(n&&t&&o?.tables?.[0]){let e=o.tables.find(e=>e.tableName==n);if(s&&e?.fields?.[0]){let t=e.fields.find(e=>e.fieldName===s);return r.json({success:!!t,payload:t})}if(s&&!e?.fields?.[0])throw Error("Target Table Not Found!");return r.json({success:!!e,payload:e})}if(n&&!o?.tables?.[0])throw Error("Target Database Not Found!");t?r.json({success:!!o,payload:o}):r.json({success:!0,payload:i})}catch(e){(0,o.default)({component:"/api/query/get-schema/lines-132-142",message:e.message}),r.json({success:!1,payload:null,error:e.message})}}catch(t){(0,o.default)({component:"/api/query/get-schema/main-catch-error",message:t.message,req:e}),r.json({success:!1,payload:null,msg:"Wrong Credentials"})}}let f=(0,i.M)(n,"default"),p=(0,i.M)(n,"config"),g=new s.PagesAPIRouteModule({definition:{kind:a.A.PAGES_API,page:"/api/query/[user_id]/get-schema",pathname:"/api/query/[user_id]/get-schema",bundlePath:"",filename:""},userland:n})},56081:(e,r,t)=>{t.d(r,{A:()=>i});var n=t(29021),s=t.n(n),a=t(95969);let i=({key:e,database:r,table:t,user_id:n,media:i})=>{if(!e||!n)return null;try{let o=process.env.DSQL_API_KEYS_PATH;if(!o)throw Error("process.env.DSQL_API_KEYS_PATH variable not found");let l=(0,a.A)({encryptedString:e}),u=JSON.parse(l||""),c=s().existsSync(`${o}/${u.sign}`);if(String(u.user_id)!==String(n)||!c)return null;if(!u.target_database||i)return u;if(!r&&u.target_database)return null;let d=u.target_database?.split(",").includes(String(r));if(d&&!u.target_table)return u;if(d&&!t&&u.target_table)return null;if(u.target_table?.split(",").includes(String(t)))return u;return null}catch(e){return console.log(`api-cred ERROR: ${e.message}`),{error:`api-cred ERROR: ${e.message}`}}}},67619:(e,r,t)=>{t.r(r),t.d(r,{default:()=>a});var n=t(29021),s=t.n(n);async function a({user:e,message:r,component:t,noMail:n,req:a}){let i=new Date,o=(()=>{if(!a)return null;try{let e=a.headers["x-forwarded-for"],r=a.headers["x-real-ip"],t=a.headers["cf-connecting-ip"],n=Array.isArray(e)?e[0]:e?.split(",")[0],s=t||n||r||a.socket.remoteAddress;if(!s)return null;return String(s)}catch(e){return null}})();try{let n=`🚀 SERVER ERROR =========================== +"use strict";(()=>{var e={};e.id=6562,e.ids=[6562],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},35597:(e,r,t)=>{t.r(r),t.d(r,{config:()=>m,default:()=>g,routeModule:()=>_});var n={};t.r(n),t.d(n,{default:()=>f});var s=t(89947),a=t(2706),i=t(96762),o=t(29021),l=t.n(o),u=t(33873),c=t.n(u),d=t(67619),p=t(56081);async function f(e,r){if("GET"!==e.method)return r.json({msg:"Failed!"});console.log("Getting DB schema");try{let{database:t,table:n,field:s}=e.query,a=e.headers.authorization;if(!a)return r.json({success:!1,msg:"Unauthorized"});let i=(0,p.A)({key:a,database:t,table:n,user_id:String(e.query.user_id)});if(!i?.user_id)throw Error("Api Credentials invalid!");let{user_id:o,full_access:u}=i;if(!u)return r.json({success:!1,msg:"Unauthorized"});try{let e=t&&"string"==typeof t?`datasquirel_user_${o}_${t?.toLowerCase().replace(/[^a-z0-9\_]/g,"")}`:null,a=c().join(String(process.env.DSQL_USER_DB_SCHEMA_PATH),`user-${o.toString().replace(/\//g,"")}`,"main.json"),i=JSON.parse(l().readFileSync(a,"utf8")),u=e?i.find(r=>r.dbFullName==e):null;if(n&&t&&u?.tables?.[0]){let e=u.tables.find(e=>e.tableName==n);if(s&&e?.fields?.[0]){let t=e.fields.find(e=>e.fieldName===s);return r.json({success:!!t,payload:t})}if(s&&!e?.fields?.[0])throw Error("Target Table Not Found!");return r.json({success:!!e,payload:e})}if(n&&!u?.tables?.[0])throw Error("Target Database Not Found!");t?r.json({success:!!u,payload:u}):r.json({success:!0,payload:i})}catch(e){(0,d.A)({component:"/api/query/get-schema/lines-132-142",message:e.message}),r.json({success:!1,payload:null,error:e.message})}}catch(t){(0,d.A)({component:"/api/query/get-schema/main-catch-error",message:t.message,req:e}),r.json({success:!1,payload:null,msg:"Wrong Credentials"})}}let g=(0,i.M)(n,"default"),m=(0,i.M)(n,"config"),_=new s.PagesAPIRouteModule({definition:{kind:a.A.PAGES_API,page:"/api/query/[user_id]/get-schema",pathname:"/api/query/[user_id]/get-schema",bundlePath:"",filename:""},userland:n})},56081:(e,r,t)=>{t.d(r,{A:()=>i});var n=t(29021),s=t.n(n),a=t(95969);let i=({key:e,database:r,table:t,user_id:n,media:i})=>{if(!e||!n)return null;try{let o=process.env.DSQL_API_KEYS_PATH;if(!o)throw Error("process.env.DSQL_API_KEYS_PATH variable not found");let l=(0,a.A)({encryptedString:e}),u=JSON.parse(l||""),c=s().existsSync(`${o}/${u.sign}`);if(String(u.user_id)!==String(n)||!c)return null;if(!u.target_database||i)return u;if(!r&&u.target_database)return null;let d=u.target_database?.split(",").includes(String(r));if(d&&!u.target_table)return u;if(d&&!t&&u.target_table)return null;if(u.target_table?.split(",").includes(String(t)))return u;return null}catch(e){return console.log(`api-cred ERROR: ${e.message}`),{error:`api-cred ERROR: ${e.message}`}}}},67619:(e,r,t)=>{t.d(r,{A:()=>a});var n=t(29021),s=t.n(n);async function a({user:e,message:r,component:t,noMail:n,req:a}){let i=new Date,o=(()=>{if(!a)return null;try{let e=a.headers["x-forwarded-for"],r=a.headers["x-real-ip"],t=a.headers["cf-connecting-ip"],n=Array.isArray(e)?e[0]:e?.split(",")[0],s=t||n||r||a.socket.remoteAddress;if(!s)return null;return String(s)}catch(e){return null}})();try{let n=`🚀 SERVER ERROR =========================== Error Message: ${r} Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(n+=` User Id: ${e?.id} diff --git a/dsql-app/.local_dist/server/pages/api/query/[user_id]/get.js b/dsql-app/.local_dist/server/pages/api/query/[user_id]/get.js index 02635f9..91d9721 100644 --- a/dsql-app/.local_dist/server/pages/api/query/[user_id]/get.js +++ b/dsql-app/.local_dist/server/pages/api/query/[user_id]/get.js @@ -1,4 +1,4 @@ -"use strict";(()=>{var e={};e.id=8446,e.ids=[8446],e.modules={27825:e=>{e.exports=require("lodash")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},72583:e=>{e.exports=require("sanitize-html")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},93777:(e,r,t)=>{t.r(r),t.d(r,{config:()=>_,default:()=>y,routeModule:()=>b});var a={};t.r(a),t.d(a,{default:()=>f});var s=t(89947),l=t(2706),n=t(96762),i=t(29021),u=t.n(i),c=t(27825),o=t.n(c),d=t(67619),m=t(36249);async function p({query:e,dbFullName:r,queryValues:t,tableName:a,dbSchema:s,useLocal:l}){if("string"==typeof e&&e.match(/^alter|^delete|information_schema|databases|^create/i))return{success:!1,msg:"Wrong Input."};try{let n,{result:i,error:u}=await (0,m.A)({dbFullName:r,query:e,queryValuesArray:t,readOnly:!0,dbSchema:s,tableName:a,local:l});if(s){let e=s.tables.find(e=>e.tableName===a);if(e){let r=o().cloneDeep(e);delete r.childTable,delete r.childTableDbFullName,delete r.childTableName,delete r.childrenTables,delete r.updateData,delete r.tableNameOld,delete r.indexes,n=r}}if(u)throw u;if(i.error)throw Error(i.error);return{success:!0,payload:i,schema:a&&n?n:void 0}}catch(e){return(0,d.default)({component:"/api/query/get/lines-85-94",message:e.message}),{success:!1,payload:null,error:e.message}}}var g=t(56081);async function f(e,r){if("GET"!==e.method)return r.json({success:!1,msg:"Failed!"});try{let t,a;let s=e.query,{query:l,db:n}=s,i=s?.tableName?String(s.tableName):void 0,c=e.headers.authorization;if(!c)return r.json({success:!1,msg:"Unauthorized"});let o=(0,g.A)({key:c,database:n,table:i,user_id:String(e.query.user_id)});if(!o?.user_id)throw Error("Api Credentials invalid!");let{user_id:d}=o;if(s?.queryValues&&"string"==typeof s?.queryValues)try{t=JSON.parse(s.queryValues)}catch(e){}let m=`datasquirel_user_${d}_${n}`,f=`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${d.toString().replace(/\//g,"")}/main.json`;if(u().existsSync(f))try{a=JSON.parse(u().readFileSync(f,"utf8")).filter(e=>e.dbFullName===m)[0]}catch(e){}let y=`datasquirel_user_${d}_`,_=await p({dbFullName:m,query:l.replace(/datasquirel_user_\d+_/gi,y).replace(/__db/gi,m),tableName:i,queryValues:t,dbSchema:a});r.json(_)}catch(t){(0,d.default)({component:"/api/query/get/main-catch-error",message:t.message,req:e}),r.json({success:!1,msg:"Wrong Credentials"})}}let y=(0,n.M)(a,"default"),_=(0,n.M)(a,"config"),b=new s.PagesAPIRouteModule({definition:{kind:l.A.PAGES_API,page:"/api/query/[user_id]/get",pathname:"/api/query/[user_id]/get",bundlePath:"",filename:""},userland:a})},56081:(e,r,t)=>{t.d(r,{A:()=>n});var a=t(29021),s=t.n(a),l=t(95969);let n=({key:e,database:r,table:t,user_id:a,media:n})=>{if(!e||!a)return null;try{let i=process.env.DSQL_API_KEYS_PATH;if(!i)throw Error("process.env.DSQL_API_KEYS_PATH variable not found");let u=(0,l.A)({encryptedString:e}),c=JSON.parse(u||""),o=s().existsSync(`${i}/${c.sign}`);if(String(c.user_id)!==String(a)||!o)return null;if(!c.target_database||n)return c;if(!r&&c.target_database)return null;let d=c.target_database?.split(",").includes(String(r));if(d&&!c.target_table)return c;if(d&&!t&&c.target_table)return null;if(c.target_table?.split(",").includes(String(t)))return c;return null}catch(e){return console.log(`api-cred ERROR: ${e.message}`),{error:`api-cred ERROR: ${e.message}`}}}},61932:(e,r,t)=>{t.d(r,{A:()=>n});var a=t(48786),s=t(37275),l=t(7971);async function n({dbContext:e,paradigm:r,dbFullName:t,tableName:n,identifierColumnName:i,identifierValue:u,useLocal:c}){try{let o=!!c||!e?.match(/dsql.user/i)&&(!t||!!t.match(/^datasquirel$/)),d=c?l.A:o?a.A:s.default,m=`DELETE FROM \`${t}\`.\`${n}\` WHERE \`${i}\`=?`;return o?await d(m,[u]):await d({paradigm:r,queryString:m,queryValues:[u]})}catch(e){return null}}},36249:(e,r,t)=>{t.d(r,{A:()=>m});var a=t(37275),s=t(7971),l=t(43775),n=t(67619);async function i({queryString:e,tableSchema:r,queryValuesArray:t,local:i}){let u;try{u=i?await (0,s.A)(e,t):await (0,a.default)({paradigm:"Full Access",queryString:e,queryValues:t})}catch(e){return(0,n.default)({component:"fullAccessDbHandler",message:e.message}),e.message}if(u&&r){let e=u;return await (0,l.A)({unparsedResults:e,tableSchema:r})}return u||null}async function u({queryString:e,queryValuesArray:r,tableSchema:t,useLocal:i}){let u;try{u=i?await (0,s.A)(e,r):await (0,a.default)({paradigm:"Read Only",queryString:e,queryValues:r})}catch(e){return(0,n.default)({component:"varReadOnlyDatabaseDbHandler",message:e.message,noMail:!0}),e.message}if(!u)return null;{let e=u;return await (0,l.A)({unparsedResults:e,tableSchema:t})}}var c=t(98e3),o=t(30802),d=t(61932);async function m({dbFullName:e,query:r,readOnly:t,dbSchema:a,queryValuesArray:s,tableName:l,local:m}){let p,g,f;if(a)try{let e=l||("string"==typeof r?null:r?r?.table:null);if(!e)throw Error("No table name provided");f=a.tables.filter(r=>r?.tableName===e)[0]}catch(e){}try{if("string"==typeof r){let e=r.replace(/\n|\r|\n\r|\r\n/gm," ").replace(/ {2,}/g," ").trim();if(t&&e.match(/^alter|^delete|information_schema|^create/i))throw Error("Wrong Input!");p=t?await u({queryString:e,queryValuesArray:s?.map(e=>String(e)),tableSchema:f,useLocal:m}):await i({queryString:e,queryValuesArray:s?.map(e=>String(e)),tableSchema:f,local:m})}else if("object"==typeof r){let{data:t,action:a,table:s,identifierColumnName:l,identifierValue:n,update:i,duplicateColumnName:u,duplicateColumnValue:y}=r;switch(a.toLowerCase()){case"insert":p=await (0,c.A)({dbContext:m?"Master":"Dsql User",paradigm:"Full Access",dbFullName:e,tableName:s,data:t,update:i,duplicateColumnName:u,duplicateColumnValue:y,tableSchema:f,useLocal:m}),p?.insertId||(g=Error("Couldn't insert data"));break;case"update":p=await (0,o.A)({dbContext:m?"Master":"Dsql User",paradigm:"Full Access",dbFullName:e,tableName:s,data:t,identifierColumnName:l,identifierValue:n,tableSchema:f,useLocal:m});break;case"delete":p=await (0,d.A)({dbContext:m?"Master":"Dsql User",paradigm:"Full Access",dbFullName:e,tableName:s,identifierColumnName:l,identifierValue:n,tableSchema:f,useLocal:m});break;default:p=null}}}catch(e){(0,n.default)({component:"functions/backend/runQuery",message:e.message}),p=null,e=e.message}return{result:p,error:g}}},43775:(e,r,t)=>{t.d(r,{A:()=>l});var a=t(95969);let s=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/;async function l({unparsedResults:e,tableSchema:r}){let t=[];try{for(let l=0;l",r.message),e}}},67619:(e,r,t)=>{t.r(r),t.d(r,{default:()=>l});var a=t(29021),s=t.n(a);async function l({user:e,message:r,component:t,noMail:a,req:l}){let n=new Date,i=(()=>{if(!l)return null;try{let e=l.headers["x-forwarded-for"],r=l.headers["x-real-ip"],t=l.headers["cf-connecting-ip"],a=Array.isArray(e)?e[0]:e?.split(",")[0],s=t||a||r||l.socket.remoteAddress;if(!s)return null;return String(s)}catch(e){return null}})();try{let a=`🚀 SERVER ERROR =========================== +"use strict";(()=>{var e={};e.id=8446,e.ids=[8446],e.modules={27825:e=>{e.exports=require("lodash")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},72583:e=>{e.exports=require("sanitize-html")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},93777:(e,r,t)=>{t.r(r),t.d(r,{config:()=>_,default:()=>f,routeModule:()=>b});var a={};t.r(a),t.d(a,{default:()=>y});var s=t(89947),l=t(2706),n=t(96762),i=t(29021),u=t.n(i),c=t(27825),o=t.n(c),d=t(67619),m=t(36249);async function p({query:e,dbFullName:r,queryValues:t,tableName:a,dbSchema:s,useLocal:l}){if("string"==typeof e&&e.match(/^alter|^delete|information_schema|databases|^create/i))return{success:!1,msg:"Wrong Input."};try{let n,{result:i,error:u}=await (0,m.A)({dbFullName:r,query:e,queryValuesArray:t,readOnly:!0,dbSchema:s,tableName:a,local:l});if(s){let e=s.tables.find(e=>e.tableName===a);if(e){let r=o().cloneDeep(e);delete r.childTable,delete r.childTableDbFullName,delete r.childTableName,delete r.childrenTables,delete r.updateData,delete r.tableNameOld,delete r.indexes,n=r}}if(u)throw u;if(i.error)throw Error(i.error);return{success:!0,payload:i,schema:a&&n?n:void 0}}catch(e){return(0,d.A)({component:"/api/query/get/lines-85-94",message:e.message}),{success:!1,payload:null,error:e.message}}}var g=t(56081);async function y(e,r){if("GET"!==e.method)return r.json({success:!1,msg:"Failed!"});try{let t,a;let s=e.query,{query:l,db:n}=s,i=s?.tableName?String(s.tableName):void 0,c=e.headers.authorization;if(!c)return r.json({success:!1,msg:"Unauthorized"});let o=(0,g.A)({key:c,database:n,table:i,user_id:String(e.query.user_id)});if(!o?.user_id)throw Error("Api Credentials invalid!");let{user_id:d}=o;if(s?.queryValues&&"string"==typeof s?.queryValues)try{t=JSON.parse(s.queryValues)}catch(e){}let m=`datasquirel_user_${d}_${n}`,y=`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${d.toString().replace(/\//g,"")}/main.json`;if(u().existsSync(y))try{a=JSON.parse(u().readFileSync(y,"utf8")).filter(e=>e.dbFullName===m)[0]}catch(e){}let f=`datasquirel_user_${d}_`,_=await p({dbFullName:m,query:l.replace(/datasquirel_user_\d+_/gi,f).replace(/__db/gi,m),tableName:i,queryValues:t,dbSchema:a});r.json(_)}catch(t){(0,d.A)({component:"/api/query/get/main-catch-error",message:t.message,req:e}),r.json({success:!1,msg:"Wrong Credentials"})}}let f=(0,n.M)(a,"default"),_=(0,n.M)(a,"config"),b=new s.PagesAPIRouteModule({definition:{kind:l.A.PAGES_API,page:"/api/query/[user_id]/get",pathname:"/api/query/[user_id]/get",bundlePath:"",filename:""},userland:a})},56081:(e,r,t)=>{t.d(r,{A:()=>n});var a=t(29021),s=t.n(a),l=t(95969);let n=({key:e,database:r,table:t,user_id:a,media:n})=>{if(!e||!a)return null;try{let i=process.env.DSQL_API_KEYS_PATH;if(!i)throw Error("process.env.DSQL_API_KEYS_PATH variable not found");let u=(0,l.A)({encryptedString:e}),c=JSON.parse(u||""),o=s().existsSync(`${i}/${c.sign}`);if(String(c.user_id)!==String(a)||!o)return null;if(!c.target_database||n)return c;if(!r&&c.target_database)return null;let d=c.target_database?.split(",").includes(String(r));if(d&&!c.target_table)return c;if(d&&!t&&c.target_table)return null;if(c.target_table?.split(",").includes(String(t)))return c;return null}catch(e){return console.log(`api-cred ERROR: ${e.message}`),{error:`api-cred ERROR: ${e.message}`}}}},61932:(e,r,t)=>{t.d(r,{A:()=>n});var a=t(48786),s=t(37275),l=t(7971);async function n({dbContext:e,paradigm:r,dbFullName:t,tableName:n,identifierColumnName:i,identifierValue:u,useLocal:c}){try{let o=!!c||!e?.match(/dsql.user/i)&&(!t||!!t.match(/^datasquirel$/)),d=c?l.A:o?a.A:s.A,m=`DELETE FROM \`${t}\`.\`${n}\` WHERE \`${i}\`=?`;return o?await d(m,[u]):await d({paradigm:r,queryString:m,queryValues:[u]})}catch(e){return null}}},36249:(e,r,t)=>{t.d(r,{A:()=>m});var a=t(37275),s=t(7971),l=t(43775),n=t(67619);async function i({queryString:e,tableSchema:r,queryValuesArray:t,local:i}){let u;try{u=i?await (0,s.A)(e,t):await (0,a.A)({paradigm:"Full Access",queryString:e,queryValues:t})}catch(e){return(0,n.A)({component:"fullAccessDbHandler",message:e.message}),e.message}if(u&&r){let e=u;return await (0,l.A)({unparsedResults:e,tableSchema:r})}return u||null}async function u({queryString:e,queryValuesArray:r,tableSchema:t,useLocal:i}){let u;try{u=i?await (0,s.A)(e,r):await (0,a.A)({paradigm:"Read Only",queryString:e,queryValues:r})}catch(e){return(0,n.A)({component:"varReadOnlyDatabaseDbHandler",message:e.message,noMail:!0}),e.message}if(!u)return null;{let e=u;return await (0,l.A)({unparsedResults:e,tableSchema:t})}}var c=t(98e3),o=t(30802),d=t(61932);async function m({dbFullName:e,query:r,readOnly:t,dbSchema:a,queryValuesArray:s,tableName:l,local:m}){let p,g,y;if(a)try{let e=l||("string"==typeof r?null:r?r?.table:null);if(!e)throw Error("No table name provided");y=a.tables.filter(r=>r?.tableName===e)[0]}catch(e){}try{if("string"==typeof r){let e=r.replace(/\n|\r|\n\r|\r\n/gm," ").replace(/ {2,}/g," ").trim();if(t&&e.match(/^alter|^delete|information_schema|^create/i))throw Error("Wrong Input!");p=t?await u({queryString:e,queryValuesArray:s?.map(e=>String(e)),tableSchema:y,useLocal:m}):await i({queryString:e,queryValuesArray:s?.map(e=>String(e)),tableSchema:y,local:m})}else if("object"==typeof r){let{data:t,action:a,table:s,identifierColumnName:l,identifierValue:n,update:i,duplicateColumnName:u,duplicateColumnValue:f}=r;switch(a.toLowerCase()){case"insert":p=await (0,c.A)({dbContext:m?"Master":"Dsql User",paradigm:"Full Access",dbFullName:e,tableName:s,data:t,update:i,duplicateColumnName:u,duplicateColumnValue:f,tableSchema:y,useLocal:m}),p?.insertId||(g=Error("Couldn't insert data"));break;case"update":p=await (0,o.A)({dbContext:m?"Master":"Dsql User",paradigm:"Full Access",dbFullName:e,tableName:s,data:t,identifierColumnName:l,identifierValue:n,tableSchema:y,useLocal:m});break;case"delete":p=await (0,d.A)({dbContext:m?"Master":"Dsql User",paradigm:"Full Access",dbFullName:e,tableName:s,identifierColumnName:l,identifierValue:n,tableSchema:y,useLocal:m});break;default:p=null}}}catch(e){(0,n.A)({component:"functions/backend/runQuery",message:e.message}),p=null,e=e.message}return{result:p,error:g}}},43775:(e,r,t)=>{t.d(r,{A:()=>l});var a=t(95969);let s=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/;async function l({unparsedResults:e,tableSchema:r}){let t=[];try{for(let l=0;l",r.message),e}}},67619:(e,r,t)=>{t.d(r,{A:()=>l});var a=t(29021),s=t.n(a);async function l({user:e,message:r,component:t,noMail:a,req:l}){let n=new Date,i=(()=>{if(!l)return null;try{let e=l.headers["x-forwarded-for"],r=l.headers["x-real-ip"],t=l.headers["cf-connecting-ip"],a=Array.isArray(e)?e[0]:e?.split(",")[0],s=t||a||r||l.socket.remoteAddress;if(!s)return null;return String(s)}catch(e){return null}})();try{let a=`🚀 SERVER ERROR =========================== Error Message: ${r} Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(a+=` User Id: ${e?.id} diff --git a/dsql-app/.local_dist/server/pages/api/query/[user_id]/post.js b/dsql-app/.local_dist/server/pages/api/query/[user_id]/post.js index c03e538..8d6dbb6 100644 --- a/dsql-app/.local_dist/server/pages/api/query/[user_id]/post.js +++ b/dsql-app/.local_dist/server/pages/api/query/[user_id]/post.js @@ -1,4 +1,4 @@ -"use strict";(()=>{var e={};e.id=4112,e.ids=[4112],e.modules={27825:e=>{e.exports=require("lodash")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},72583:e=>{e.exports=require("sanitize-html")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},88749:(e,r,t)=>{t.r(r),t.d(r,{config:()=>b,default:()=>_,routeModule:()=>h});var a={};t.r(a),t.d(a,{config:()=>g,default:()=>y});var s=t(89947),l=t(2706),n=t(96762),i=t(29021),u=t.n(i),o=t(27825),c=t.n(o),d=t(67619),p=t(36249);async function m({query:e,dbFullName:r,queryValues:t,tableName:a,dbSchema:s,useLocal:l}){let n;if("string"==typeof e&&e?.match(/^create |^alter |^drop /i)||"object"==typeof e&&e?.action?.match(/^create |^alter |^drop /i))return{success:!1,msg:"Wrong Input"};try{let i,{result:u,error:o}=await (0,p.A)({dbFullName:r,query:e,dbSchema:s,queryValuesArray:t,tableName:a,local:l});if(n=u,o)throw o;if(s){let e=s.tables.find(e=>e.tableName===a);if(e){let r=c().cloneDeep(e);delete r.childTable,delete r.childTableDbFullName,delete r.childTableName,delete r.childrenTables,delete r.updateData,delete r.tableNameOld,delete r.indexes,i=r}}return{success:!0,payload:n,error:o,schema:a&&i?i:void 0}}catch(e){return(0,d.default)({component:"/api/query/post/lines-132-142",message:e.message}),{success:!1,payload:n,error:e.message}}}var f=t(56081);let g={api:{bodyParser:{sizeLimit:"50mb"}}};async function y(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});try{let t,{query:a,database:s,tableName:l,queryValues:n}=e.body,i=e.headers.authorization,o=(0,f.A)({key:i,database:s,table:l,user_id:String(e.query.user_id)});if(!o?.user_id)throw Error("Api Credentials invalid!");let{user_id:c,full_access:d}=o;if(!d)return r.json({success:!1,msg:"Unauthorized"});let p=`datasquirel_user_${c}_${s}`,g=`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${c.toString().replace(/\//g,"")}/main.json`;if(u().existsSync(g))try{t=JSON.parse(u().readFileSync(g,"utf8")).filter(e=>e.dbFullName===p)[0]}catch(e){}let y=`datasquirel_user_${c}_`,_=await m({query:"string"==typeof a?a.replace(/datasquirel_user_\d+_/gi,y).replace(/__db/gi,p):a,dbFullName:p,dbSchema:t,queryValues:n,tableName:l});r.json(_)}catch(t){(0,d.default)({component:"/api/query/post/main-catch-error",message:t.message,req:e}),r.json({success:!1,msg:"Wrong Credentials"})}}let _=(0,n.M)(a,"default"),b=(0,n.M)(a,"config"),h=new s.PagesAPIRouteModule({definition:{kind:l.A.PAGES_API,page:"/api/query/[user_id]/post",pathname:"/api/query/[user_id]/post",bundlePath:"",filename:""},userland:a})},56081:(e,r,t)=>{t.d(r,{A:()=>n});var a=t(29021),s=t.n(a),l=t(95969);let n=({key:e,database:r,table:t,user_id:a,media:n})=>{if(!e||!a)return null;try{let i=process.env.DSQL_API_KEYS_PATH;if(!i)throw Error("process.env.DSQL_API_KEYS_PATH variable not found");let u=(0,l.A)({encryptedString:e}),o=JSON.parse(u||""),c=s().existsSync(`${i}/${o.sign}`);if(String(o.user_id)!==String(a)||!c)return null;if(!o.target_database||n)return o;if(!r&&o.target_database)return null;let d=o.target_database?.split(",").includes(String(r));if(d&&!o.target_table)return o;if(d&&!t&&o.target_table)return null;if(o.target_table?.split(",").includes(String(t)))return o;return null}catch(e){return console.log(`api-cred ERROR: ${e.message}`),{error:`api-cred ERROR: ${e.message}`}}}},61932:(e,r,t)=>{t.d(r,{A:()=>n});var a=t(48786),s=t(37275),l=t(7971);async function n({dbContext:e,paradigm:r,dbFullName:t,tableName:n,identifierColumnName:i,identifierValue:u,useLocal:o}){try{let c=!!o||!e?.match(/dsql.user/i)&&(!t||!!t.match(/^datasquirel$/)),d=o?l.A:c?a.A:s.default,p=`DELETE FROM \`${t}\`.\`${n}\` WHERE \`${i}\`=?`;return c?await d(p,[u]):await d({paradigm:r,queryString:p,queryValues:[u]})}catch(e){return null}}},36249:(e,r,t)=>{t.d(r,{A:()=>p});var a=t(37275),s=t(7971),l=t(43775),n=t(67619);async function i({queryString:e,tableSchema:r,queryValuesArray:t,local:i}){let u;try{u=i?await (0,s.A)(e,t):await (0,a.default)({paradigm:"Full Access",queryString:e,queryValues:t})}catch(e){return(0,n.default)({component:"fullAccessDbHandler",message:e.message}),e.message}if(u&&r){let e=u;return await (0,l.A)({unparsedResults:e,tableSchema:r})}return u||null}async function u({queryString:e,queryValuesArray:r,tableSchema:t,useLocal:i}){let u;try{u=i?await (0,s.A)(e,r):await (0,a.default)({paradigm:"Read Only",queryString:e,queryValues:r})}catch(e){return(0,n.default)({component:"varReadOnlyDatabaseDbHandler",message:e.message,noMail:!0}),e.message}if(!u)return null;{let e=u;return await (0,l.A)({unparsedResults:e,tableSchema:t})}}var o=t(98e3),c=t(30802),d=t(61932);async function p({dbFullName:e,query:r,readOnly:t,dbSchema:a,queryValuesArray:s,tableName:l,local:p}){let m,f,g;if(a)try{let e=l||("string"==typeof r?null:r?r?.table:null);if(!e)throw Error("No table name provided");g=a.tables.filter(r=>r?.tableName===e)[0]}catch(e){}try{if("string"==typeof r){let e=r.replace(/\n|\r|\n\r|\r\n/gm," ").replace(/ {2,}/g," ").trim();if(t&&e.match(/^alter|^delete|information_schema|^create/i))throw Error("Wrong Input!");m=t?await u({queryString:e,queryValuesArray:s?.map(e=>String(e)),tableSchema:g,useLocal:p}):await i({queryString:e,queryValuesArray:s?.map(e=>String(e)),tableSchema:g,local:p})}else if("object"==typeof r){let{data:t,action:a,table:s,identifierColumnName:l,identifierValue:n,update:i,duplicateColumnName:u,duplicateColumnValue:y}=r;switch(a.toLowerCase()){case"insert":m=await (0,o.A)({dbContext:p?"Master":"Dsql User",paradigm:"Full Access",dbFullName:e,tableName:s,data:t,update:i,duplicateColumnName:u,duplicateColumnValue:y,tableSchema:g,useLocal:p}),m?.insertId||(f=Error("Couldn't insert data"));break;case"update":m=await (0,c.A)({dbContext:p?"Master":"Dsql User",paradigm:"Full Access",dbFullName:e,tableName:s,data:t,identifierColumnName:l,identifierValue:n,tableSchema:g,useLocal:p});break;case"delete":m=await (0,d.A)({dbContext:p?"Master":"Dsql User",paradigm:"Full Access",dbFullName:e,tableName:s,identifierColumnName:l,identifierValue:n,tableSchema:g,useLocal:p});break;default:m=null}}}catch(e){(0,n.default)({component:"functions/backend/runQuery",message:e.message}),m=null,e=e.message}return{result:m,error:f}}},43775:(e,r,t)=>{t.d(r,{A:()=>l});var a=t(95969);let s=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/;async function l({unparsedResults:e,tableSchema:r}){let t=[];try{for(let l=0;l",r.message),e}}},67619:(e,r,t)=>{t.r(r),t.d(r,{default:()=>l});var a=t(29021),s=t.n(a);async function l({user:e,message:r,component:t,noMail:a,req:l}){let n=new Date,i=(()=>{if(!l)return null;try{let e=l.headers["x-forwarded-for"],r=l.headers["x-real-ip"],t=l.headers["cf-connecting-ip"],a=Array.isArray(e)?e[0]:e?.split(",")[0],s=t||a||r||l.socket.remoteAddress;if(!s)return null;return String(s)}catch(e){return null}})();try{let a=`🚀 SERVER ERROR =========================== +"use strict";(()=>{var e={};e.id=4112,e.ids=[4112],e.modules={27825:e=>{e.exports=require("lodash")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},72583:e=>{e.exports=require("sanitize-html")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},88749:(e,r,t)=>{t.r(r),t.d(r,{config:()=>b,default:()=>_,routeModule:()=>h});var a={};t.r(a),t.d(a,{config:()=>f,default:()=>y});var s=t(89947),l=t(2706),n=t(96762),i=t(29021),u=t.n(i),o=t(27825),c=t.n(o),d=t(67619),p=t(36249);async function m({query:e,dbFullName:r,queryValues:t,tableName:a,dbSchema:s,useLocal:l}){let n;if("string"==typeof e&&e?.match(/^create |^alter |^drop /i)||"object"==typeof e&&e?.action?.match(/^create |^alter |^drop /i))return{success:!1,msg:"Wrong Input"};try{let i,{result:u,error:o}=await (0,p.A)({dbFullName:r,query:e,dbSchema:s,queryValuesArray:t,tableName:a,local:l});if(n=u,o)throw o;if(s){let e=s.tables.find(e=>e.tableName===a);if(e){let r=c().cloneDeep(e);delete r.childTable,delete r.childTableDbFullName,delete r.childTableName,delete r.childrenTables,delete r.updateData,delete r.tableNameOld,delete r.indexes,i=r}}return{success:!0,payload:n,error:o,schema:a&&i?i:void 0}}catch(e){return(0,d.A)({component:"/api/query/post/lines-132-142",message:e.message}),{success:!1,payload:n,error:e.message}}}var g=t(56081);let f={api:{bodyParser:{sizeLimit:"50mb"}}};async function y(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});try{let t,{query:a,database:s,tableName:l,queryValues:n}=e.body,i=e.headers.authorization,o=(0,g.A)({key:i,database:s,table:l,user_id:String(e.query.user_id)});if(!o?.user_id)throw Error("Api Credentials invalid!");let{user_id:c,full_access:d}=o;if(!d)return r.json({success:!1,msg:"Unauthorized"});let p=`datasquirel_user_${c}_${s}`,f=`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${c.toString().replace(/\//g,"")}/main.json`;if(u().existsSync(f))try{t=JSON.parse(u().readFileSync(f,"utf8")).filter(e=>e.dbFullName===p)[0]}catch(e){}let y=`datasquirel_user_${c}_`,_=await m({query:"string"==typeof a?a.replace(/datasquirel_user_\d+_/gi,y).replace(/__db/gi,p):a,dbFullName:p,dbSchema:t,queryValues:n,tableName:l});r.json(_)}catch(t){(0,d.A)({component:"/api/query/post/main-catch-error",message:t.message,req:e}),r.json({success:!1,msg:"Wrong Credentials"})}}let _=(0,n.M)(a,"default"),b=(0,n.M)(a,"config"),h=new s.PagesAPIRouteModule({definition:{kind:l.A.PAGES_API,page:"/api/query/[user_id]/post",pathname:"/api/query/[user_id]/post",bundlePath:"",filename:""},userland:a})},56081:(e,r,t)=>{t.d(r,{A:()=>n});var a=t(29021),s=t.n(a),l=t(95969);let n=({key:e,database:r,table:t,user_id:a,media:n})=>{if(!e||!a)return null;try{let i=process.env.DSQL_API_KEYS_PATH;if(!i)throw Error("process.env.DSQL_API_KEYS_PATH variable not found");let u=(0,l.A)({encryptedString:e}),o=JSON.parse(u||""),c=s().existsSync(`${i}/${o.sign}`);if(String(o.user_id)!==String(a)||!c)return null;if(!o.target_database||n)return o;if(!r&&o.target_database)return null;let d=o.target_database?.split(",").includes(String(r));if(d&&!o.target_table)return o;if(d&&!t&&o.target_table)return null;if(o.target_table?.split(",").includes(String(t)))return o;return null}catch(e){return console.log(`api-cred ERROR: ${e.message}`),{error:`api-cred ERROR: ${e.message}`}}}},61932:(e,r,t)=>{t.d(r,{A:()=>n});var a=t(48786),s=t(37275),l=t(7971);async function n({dbContext:e,paradigm:r,dbFullName:t,tableName:n,identifierColumnName:i,identifierValue:u,useLocal:o}){try{let c=!!o||!e?.match(/dsql.user/i)&&(!t||!!t.match(/^datasquirel$/)),d=o?l.A:c?a.A:s.A,p=`DELETE FROM \`${t}\`.\`${n}\` WHERE \`${i}\`=?`;return c?await d(p,[u]):await d({paradigm:r,queryString:p,queryValues:[u]})}catch(e){return null}}},36249:(e,r,t)=>{t.d(r,{A:()=>p});var a=t(37275),s=t(7971),l=t(43775),n=t(67619);async function i({queryString:e,tableSchema:r,queryValuesArray:t,local:i}){let u;try{u=i?await (0,s.A)(e,t):await (0,a.A)({paradigm:"Full Access",queryString:e,queryValues:t})}catch(e){return(0,n.A)({component:"fullAccessDbHandler",message:e.message}),e.message}if(u&&r){let e=u;return await (0,l.A)({unparsedResults:e,tableSchema:r})}return u||null}async function u({queryString:e,queryValuesArray:r,tableSchema:t,useLocal:i}){let u;try{u=i?await (0,s.A)(e,r):await (0,a.A)({paradigm:"Read Only",queryString:e,queryValues:r})}catch(e){return(0,n.A)({component:"varReadOnlyDatabaseDbHandler",message:e.message,noMail:!0}),e.message}if(!u)return null;{let e=u;return await (0,l.A)({unparsedResults:e,tableSchema:t})}}var o=t(98e3),c=t(30802),d=t(61932);async function p({dbFullName:e,query:r,readOnly:t,dbSchema:a,queryValuesArray:s,tableName:l,local:p}){let m,g,f;if(a)try{let e=l||("string"==typeof r?null:r?r?.table:null);if(!e)throw Error("No table name provided");f=a.tables.filter(r=>r?.tableName===e)[0]}catch(e){}try{if("string"==typeof r){let e=r.replace(/\n|\r|\n\r|\r\n/gm," ").replace(/ {2,}/g," ").trim();if(t&&e.match(/^alter|^delete|information_schema|^create/i))throw Error("Wrong Input!");m=t?await u({queryString:e,queryValuesArray:s?.map(e=>String(e)),tableSchema:f,useLocal:p}):await i({queryString:e,queryValuesArray:s?.map(e=>String(e)),tableSchema:f,local:p})}else if("object"==typeof r){let{data:t,action:a,table:s,identifierColumnName:l,identifierValue:n,update:i,duplicateColumnName:u,duplicateColumnValue:y}=r;switch(a.toLowerCase()){case"insert":m=await (0,o.A)({dbContext:p?"Master":"Dsql User",paradigm:"Full Access",dbFullName:e,tableName:s,data:t,update:i,duplicateColumnName:u,duplicateColumnValue:y,tableSchema:f,useLocal:p}),m?.insertId||(g=Error("Couldn't insert data"));break;case"update":m=await (0,c.A)({dbContext:p?"Master":"Dsql User",paradigm:"Full Access",dbFullName:e,tableName:s,data:t,identifierColumnName:l,identifierValue:n,tableSchema:f,useLocal:p});break;case"delete":m=await (0,d.A)({dbContext:p?"Master":"Dsql User",paradigm:"Full Access",dbFullName:e,tableName:s,identifierColumnName:l,identifierValue:n,tableSchema:f,useLocal:p});break;default:m=null}}}catch(e){(0,n.A)({component:"functions/backend/runQuery",message:e.message}),m=null,e=e.message}return{result:m,error:g}}},43775:(e,r,t)=>{t.d(r,{A:()=>l});var a=t(95969);let s=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/;async function l({unparsedResults:e,tableSchema:r}){let t=[];try{for(let l=0;l",r.message),e}}},67619:(e,r,t)=>{t.d(r,{A:()=>l});var a=t(29021),s=t.n(a);async function l({user:e,message:r,component:t,noMail:a,req:l}){let n=new Date,i=(()=>{if(!l)return null;try{let e=l.headers["x-forwarded-for"],r=l.headers["x-real-ip"],t=l.headers["cf-connecting-ip"],a=Array.isArray(e)?e[0]:e?.split(",")[0],s=t||a||r||l.socket.remoteAddress;if(!s)return null;return String(s)}catch(e){return null}})();try{let a=`🚀 SERVER ERROR =========================== Error Message: ${r} Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(a+=` User Id: ${e?.id} diff --git a/dsql-app/.local_dist/server/pages/api/query/[user_id]/update-schema-from-single-database.js b/dsql-app/.local_dist/server/pages/api/query/[user_id]/update-schema-from-single-database.js index 7febacc..2bcbc96 100644 --- a/dsql-app/.local_dist/server/pages/api/query/[user_id]/update-schema-from-single-database.js +++ b/dsql-app/.local_dist/server/pages/api/query/[user_id]/update-schema-from-single-database.js @@ -1 +1 @@ -"use strict";(()=>{var e={};e.id=4133,e.ids=[4133],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},92003:(e,r,t)=>{t.r(r),t.d(r,{config:()=>p,default:()=>f,routeModule:()=>g});var n={};t.r(n),t.d(n,{default:()=>c});var a=t(89947),s=t(2706),i=t(96762),u=t(67619),l=t(56081),o=t(76856);let d=t(29021);async function c(e,r){if("GET"!==e.method)return r.json({msg:"Failed!"});try{let t=e.headers.authorization;if(!t)return r.json({success:!1,msg:"Unauthorized"});let n=(0,l.A)({key:t,user_id:String(e.query.user_id)});if(!n?.user_id)throw Error("Api Credentials invalid!");let{user_id:a,full_access:s}=n;if(!s)return r.json({success:!1,msg:"Unauthorized"});let i=e.query.schema,u=`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${a.toString().replace(/\//g,"")}/main.json`,c=JSON.parse(d.readFileSync(u,"utf8")),f=c.findIndex(e=>e.dbFullName==i?.dbFullName);if(i?.dbFullName&&c.find(e=>e.dbFullName==i.dbFullName),f<0)return r.json({success:!1,payload:null});c[f]=i,d.writeFileSync(u,JSON.stringify(c,null,4),"utf8"),await (0,o.A)({userId:a.toString().replace(/\/| /g,""),targetDatabase:c[f].dbFullName}),r.json({success:!0,payload:"Success!"})}catch(t){(0,u.default)({component:"/api/query/update-schema-from-single-database/main-catch-error",message:t.message,req:e}),r.json({success:!1,payload:null,msg:"Something went wrong"})}}let f=(0,i.M)(n,"default"),p=(0,i.M)(n,"config"),g=new a.PagesAPIRouteModule({definition:{kind:s.A.PAGES_API,page:"/api/query/[user_id]/update-schema-from-single-database",pathname:"/api/query/[user_id]/update-schema-from-single-database",bundlePath:"",filename:""},userland:n})},56081:(e,r,t)=>{t.d(r,{A:()=>i});var n=t(29021),a=t.n(n),s=t(95969);let i=({key:e,database:r,table:t,user_id:n,media:i})=>{if(!e||!n)return null;try{let u=process.env.DSQL_API_KEYS_PATH;if(!u)throw Error("process.env.DSQL_API_KEYS_PATH variable not found");let l=(0,s.A)({encryptedString:e}),o=JSON.parse(l||""),d=a().existsSync(`${u}/${o.sign}`);if(String(o.user_id)!==String(n)||!d)return null;if(!o.target_database||i)return o;if(!r&&o.target_database)return null;let c=o.target_database?.split(",").includes(String(r));if(c&&!o.target_table)return o;if(c&&!t&&o.target_table)return null;if(o.target_table?.split(",").includes(String(t)))return o;return null}catch(e){return console.log(`api-cred ERROR: ${e.message}`),{error:`api-cred ERROR: ${e.message}`}}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../../../webpack-api-runtime.js");r.C(e);var t=e=>r(r.s=e),n=r.X(0,[2282],()=>t(92003));module.exports=n})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=4133,e.ids=[4133],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},92003:(e,r,t)=>{t.r(r),t.d(r,{config:()=>g,default:()=>p,routeModule:()=>m});var n={};t.r(n),t.d(n,{default:()=>f});var a=t(89947),s=t(2706),i=t(96762),u=t(29021),l=t.n(u),o=t(67619),d=t(56081),c=t(76856);async function f(e,r){if("GET"!==e.method)return r.json({msg:"Failed!"});try{let t=e.headers.authorization;if(!t)return r.json({success:!1,msg:"Unauthorized"});let n=(0,d.A)({key:t,user_id:String(e.query.user_id)});if(!n?.user_id)throw Error("Api Credentials invalid!");let{user_id:a,full_access:s}=n;if(!s)return r.json({success:!1,msg:"Unauthorized"});let i=e.query.schema,u=`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${a.toString().replace(/\//g,"")}/main.json`,o=JSON.parse(l().readFileSync(u,"utf8")),f=o.findIndex(e=>e.dbFullName==i?.dbFullName);if(i?.dbFullName&&o.find(e=>e.dbFullName==i.dbFullName),f<0)return r.json({success:!1,payload:null});o[f]=i,l().writeFileSync(u,JSON.stringify(o,null,4),"utf8"),await (0,c.A)({userId:a.toString().replace(/\/| /g,""),targetDatabase:o[f].dbFullName}),r.json({success:!0,payload:"Success!"})}catch(t){(0,o.A)({component:"/api/query/update-schema-from-single-database/main-catch-error",message:t.message,req:e}),r.json({success:!1,payload:null,msg:"Something went wrong"})}}let p=(0,i.M)(n,"default"),g=(0,i.M)(n,"config"),m=new a.PagesAPIRouteModule({definition:{kind:s.A.PAGES_API,page:"/api/query/[user_id]/update-schema-from-single-database",pathname:"/api/query/[user_id]/update-schema-from-single-database",bundlePath:"",filename:""},userland:n})},56081:(e,r,t)=>{t.d(r,{A:()=>i});var n=t(29021),a=t.n(n),s=t(95969);let i=({key:e,database:r,table:t,user_id:n,media:i})=>{if(!e||!n)return null;try{let u=process.env.DSQL_API_KEYS_PATH;if(!u)throw Error("process.env.DSQL_API_KEYS_PATH variable not found");let l=(0,s.A)({encryptedString:e}),o=JSON.parse(l||""),d=a().existsSync(`${u}/${o.sign}`);if(String(o.user_id)!==String(n)||!d)return null;if(!o.target_database||i)return o;if(!r&&o.target_database)return null;let c=o.target_database?.split(",").includes(String(r));if(c&&!o.target_table)return o;if(c&&!t&&o.target_table)return null;if(o.target_table?.split(",").includes(String(t)))return o;return null}catch(e){return console.log(`api-cred ERROR: ${e.message}`),{error:`api-cred ERROR: ${e.message}`}}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../../../webpack-api-runtime.js");r.C(e);var t=e=>r(r.s=e),n=r.X(0,[2282],()=>t(92003));module.exports=n})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/queryEntriesSearchTerm.js b/dsql-app/.local_dist/server/pages/api/queryEntriesSearchTerm.js index 0250000..3c4902d 100644 --- a/dsql-app/.local_dist/server/pages/api/queryEntriesSearchTerm.js +++ b/dsql-app/.local_dist/server/pages/api/queryEntriesSearchTerm.js @@ -1,4 +1,4 @@ -"use strict";(()=>{var e={};e.id=2101,e.ids=[2101],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},85607:(e,r,t)=>{t.r(r),t.d(r,{config:()=>f,default:()=>d,routeModule:()=>_});var n={};t.r(n),t.d(n,{default:()=>u});var s=t(89947),a=t(2706),o=t(96762),i=t(67619),c=t(69842),l=t(30944);async function u(e,r){if("GET"!==e.method)return r.json({msg:"Failed!"});let t=await (0,c.A)(e,r);if(!t)return r.json({success:!1,msg:"Unauthorized"});let n=e.query.table,s=e.query.db,a=e.query.field,o=String(e.query.term),u=e.query.operator;try{let e=s?.toString()?.replace(/[^a-z0-9_]/g,""),t=`SELECT * FROM \`${e}\`.\`${n}\` WHERE LOWER(\`${a}\`) ${u?.toString()?.match(/equal/i)?"=":" LIKE "}? ORDER BY id DESC LIMIT 20`,i=[u?.toString()?.match(/equal/i)?o.toLowerCase():"%"+o.toLowerCase()+"%"],c=await (0,l.A)({database:e,queryString:t,queryValuesArray:i}),d=await (0,l.A)({database:e,queryString:t.replace(/\*/,"COUNT(id) AS count").replace(/ ORDER BY .*/,""),queryValuesArray:i});r.json({success:!0,result:c,count:d?.[0]?.count})}catch(e){(0,i.default)({component:"/api/queryEntriesSearchTerm/main-catch-error",message:e.message,user:t}),r.json({success:!1,msg:"Failed!"})}}let d=(0,o.M)(n,"default"),f=(0,o.M)(n,"config"),_=new s.PagesAPIRouteModule({definition:{kind:a.A.PAGES_API,page:"/api/queryEntriesSearchTerm",pathname:"/api/queryEntriesSearchTerm",bundlePath:"",filename:""},userland:n})},69842:(e,r,t)=>{t.d(r,{A:()=>c});var n=t(48786),s=t(95969),a=t(29021),o=t.n(a),i=t(89159);async function c(e,r,t){try{let{keyCookieName:a,csrfCookieName:c}=(0,i.A)();if(!e.cookies?.[a]?.match(/./))throw Error("Request Cookies not Found!");let l=(0,s.A)({encryptedString:e.cookies[a]});if(!l)throw Error("Couldn't decrypt auth cookie!");let u=JSON.parse(l);if(!u.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(u.csrf_k)))throw Error("Deep Auth Failed. `csrf` key not found in request headers!");let d=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!d)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!o().existsSync(`${d}/${u.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==u.verification_status&&!t){let e=await (0,n.A)(`SELECT verification_status FROM users WHERE id='${u.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(u?.date&&Date.now()-u.date>6048e5)throw Error("Key expired!");return u}catch(e){return console.log(`userAuth Error: ${e.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>n});function n(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",n=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",s=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",a=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),o=r;e?.userId&&(o+=`user_${e.userId}_`),a&&(o+=`${a}_`),o+=t;let i=r;e?.userId&&(i+=`user_${e.userId}_`),a&&(i+=`${a}_`),i+=n;let c=r;return e?.userId&&(c+=`user_${e.userId}_`),a&&(c+=`${a}_`),{keyCookieName:o,csrfCookieName:i,oneTimeCodeName:c+=s}}},43775:(e,r,t)=>{t.d(r,{A:()=>a});var n=t(95969);let s=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/;async function a({unparsedResults:e,tableSchema:r}){let t=[];try{for(let a=0;a",r.message),e}}},67619:(e,r,t)=>{t.r(r),t.d(r,{default:()=>a});var n=t(29021),s=t.n(n);async function a({user:e,message:r,component:t,noMail:n,req:a}){let o=new Date,i=(()=>{if(!a)return null;try{let e=a.headers["x-forwarded-for"],r=a.headers["x-real-ip"],t=a.headers["cf-connecting-ip"],n=Array.isArray(e)?e[0]:e?.split(",")[0],s=t||n||r||a.socket.remoteAddress;if(!s)return null;return String(s)}catch(e){return null}})();try{let n=`🚀 SERVER ERROR =========================== +"use strict";(()=>{var e={};e.id=2101,e.ids=[2101],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},85607:(e,r,t)=>{t.r(r),t.d(r,{config:()=>_,default:()=>d,routeModule:()=>f});var n={};t.r(n),t.d(n,{default:()=>u});var s=t(89947),a=t(2706),o=t(96762),i=t(67619),c=t(69842),l=t(30944);async function u(e,r){if("GET"!==e.method)return r.json({msg:"Failed!"});let t=await (0,c.A)(e,r);if(!t)return r.json({success:!1,msg:"Unauthorized"});let n=e.query.table,s=e.query.db,a=e.query.field,o=String(e.query.term),u=e.query.operator;try{let e=s?.toString()?.replace(/[^a-z0-9_]/g,""),t=`SELECT * FROM \`${e}\`.\`${n}\` WHERE LOWER(\`${a}\`) ${u?.toString()?.match(/equal/i)?"=":" LIKE "}? ORDER BY id DESC LIMIT 20`,i=[u?.toString()?.match(/equal/i)?o.toLowerCase():"%"+o.toLowerCase()+"%"],c=await (0,l.A)({database:e,queryString:t,queryValuesArray:i}),d=await (0,l.A)({database:e,queryString:t.replace(/\*/,"COUNT(id) AS count").replace(/ ORDER BY .*/,""),queryValuesArray:i});r.json({success:!0,result:c,count:d?.[0]?.count})}catch(e){(0,i.A)({component:"/api/queryEntriesSearchTerm/main-catch-error",message:e.message,user:t}),r.json({success:!1,msg:"Failed!"})}}let d=(0,o.M)(n,"default"),_=(0,o.M)(n,"config"),f=new s.PagesAPIRouteModule({definition:{kind:a.A.PAGES_API,page:"/api/queryEntriesSearchTerm",pathname:"/api/queryEntriesSearchTerm",bundlePath:"",filename:""},userland:n})},69842:(e,r,t)=>{t.d(r,{A:()=>c});var n=t(48786),s=t(95969),a=t(29021),o=t.n(a),i=t(89159);async function c(e,r,t){try{let{keyCookieName:a,csrfCookieName:c}=(0,i.A)();if(!e.cookies?.[a]?.match(/./))throw Error("Request Cookies not Found!");let l=(0,s.A)({encryptedString:e.cookies[a]});if(!l)throw Error("Couldn't decrypt auth cookie!");let u=JSON.parse(l);if(!u.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(u.csrf_k)))throw console.log("req.headers",e.headers),console.log("userObject",u),Error("Deep Auth Failed. `csrf` key not found in request headers!");let d=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!d)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!o().existsSync(`${d}/${u.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==u.verification_status&&!t){let e=await (0,n.A)(`SELECT verification_status FROM users WHERE id='${u.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(u?.date&&Date.now()-u.date>6048e5)throw Error("Key expired!");return u}catch(e){return console.log(`userAuth Error: ${e.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>n});function n(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",n=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",s=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",a=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),o=r;e?.userId&&(o+=`user_${e.userId}_`),a&&(o+=`${a}_`),o+=t;let i=r;e?.userId&&(i+=`user_${e.userId}_`),a&&(i+=`${a}_`),i+=n;let c=r;return e?.userId&&(c+=`user_${e.userId}_`),a&&(c+=`${a}_`),{keyCookieName:o,csrfCookieName:i,oneTimeCodeName:c+=s}}},43775:(e,r,t)=>{t.d(r,{A:()=>a});var n=t(95969);let s=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/;async function a({unparsedResults:e,tableSchema:r}){let t=[];try{for(let a=0;a",r.message),e}}},67619:(e,r,t)=>{t.d(r,{A:()=>a});var n=t(29021),s=t.n(n);async function a({user:e,message:r,component:t,noMail:n,req:a}){let o=new Date,i=(()=>{if(!a)return null;try{let e=a.headers["x-forwarded-for"],r=a.headers["x-real-ip"],t=a.headers["cf-connecting-ip"],n=Array.isArray(e)?e[0]:e?.split(",")[0],s=t||n||r||a.socket.remoteAddress;if(!s)return null;return String(s)}catch(e){return null}})();try{let n=`🚀 SERVER ERROR =========================== Error Message: ${r} Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(n+=` User Id: ${e?.id} @@ -13,4 +13,4 @@ Date: ${o.toDateString()} -${c}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},30944:(e,r,t)=>{t.d(r,{A:()=>c});var n=t(43775),s=t(67619),a=t(48786),o=t(37275),i=t(7971);async function c({queryString:e,queryValuesArray:r,database:t,tableSchema:c,useLocal:l}){let u;let d=!!l||!!t?.match(/^datasquirel$/),f=l?i.A:d?a.A:o.default;try{u=e&&r&&Array.isArray(r)&&r[0]?d?await f(e,r):await f({paradigm:"Full Access",queryString:e,queryValues:r}):d?await f(e):await f({paradigm:"Full Access",queryString:e})}catch(e){console.log(`varDatabaseDbHandler Error: ${e.message}`),(0,s.default)({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(u&&c)try{let e=u;return await (0,n.A)({unparsedResults:e,tableSchema:c})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",t,e),(0,s.default)({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(u)return u;else return null}},95969:(e,r,t)=>{t.d(r,{A:()=>a});var n=t(55511),s=t(79428);function a({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let a=r||process.env.DSQL_ENCRYPTION_PASSWORD,o=t||process.env.DSQL_ENCRYPTION_SALT,i=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!a?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!o?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let c=(0,n.scryptSync)(a,o,i),l=s.Buffer.alloc(16,0),u=(0,n.createDecipheriv)("aes-192-cbc",c,l);try{let r=u.update(e,"hex","utf8");return r+=u.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>n});async function n(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},37275:(e,r,t)=>{async function n(e,r,t){try{if("string"==typeof r){let n=await e.query(s(r),t);return JSON.parse(JSON.stringify(n))}if("object"!=typeof r)return null;{let t=[];for(let n=0;na})},7971:(e,r,t)=>{t.d(r,{A:()=>i});var n=t(9973),s=t.n(n),a=t(29021),o=t.n(a);async function i(...e){let r=s()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!o().existsSync(r)){console.log(`${r} does not exist`);return}return{ca:o().readFileSync(`${e}/ca-cert.pem`),rejectUnauthorized:!1}}()},onConnect:()=>{console.log("Connection Successful!")},onConnectError:e=>{console.log("Connection Error",e.message)},onError:e=>{console.log("Client Error",e.message)}});console.log("Querying ...");try{let t=await r.query(...e);return await r.end(),JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e.message),{success:!1,error:e.message}}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=85607);module.exports=t})(); \ No newline at end of file +${c}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},30944:(e,r,t)=>{t.d(r,{A:()=>c});var n=t(43775),s=t(67619),a=t(48786),o=t(37275),i=t(7971);async function c({queryString:e,queryValuesArray:r,database:t,tableSchema:c,useLocal:l}){let u;let d=!!l||!!t?.match(/^datasquirel$/),_=l?i.A:d?a.A:o.A;try{u=e&&r&&Array.isArray(r)&&r[0]?d?await _(e,r):await _({paradigm:"Full Access",queryString:e,queryValues:r}):d?await _(e):await _({paradigm:"Full Access",queryString:e})}catch(e){console.log(`varDatabaseDbHandler Error: ${e.message}`),(0,s.A)({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(u&&c)try{let e=u;return await (0,n.A)({unparsedResults:e,tableSchema:c})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",t,e),(0,s.A)({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(u)return u;else return null}},95969:(e,r,t)=>{t.d(r,{A:()=>a});var n=t(55511),s=t(79428);function a({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let a=r||process.env.DSQL_ENCRYPTION_PASSWORD,o=t||process.env.DSQL_ENCRYPTION_SALT,i=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!a?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!o?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let c=(0,n.scryptSync)(a,o,i),l=s.Buffer.alloc(16,0),u=(0,n.createDecipheriv)("aes-192-cbc",c,l);try{let r=u.update(e,"hex","utf8");return r+=u.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>n});async function n(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},37275:(e,r,t)=>{async function n(e,r,t){try{if("string"==typeof r){let n=await e.query(s(r),t);return JSON.parse(JSON.stringify(n))}if("object"!=typeof r)return null;{let t=[];for(let n=0;na})},7971:(e,r,t)=>{t.d(r,{A:()=>i});var n=t(9973),s=t.n(n),a=t(29021),o=t.n(a);async function i(...e){let r=s()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!o().existsSync(r)){console.log(`${r} does not exist`);return}return{ca:o().readFileSync(`${e}/ca-cert.pem`),rejectUnauthorized:!1}}()},onConnect:()=>{console.log("Connection Successful!")},onConnectError:e=>{console.log("Connection Error",e.message)},onError:e=>{console.log("Client Error",e.message)}});console.log("Querying ...");try{let t=await r.query(...e);return await r.end(),JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e.message),{success:!1,error:e.message}}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=85607);module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/reAuthenticateUser.js b/dsql-app/.local_dist/server/pages/api/reAuthenticateUser.js index 17cee49..8ecc2c4 100644 --- a/dsql-app/.local_dist/server/pages/api/reAuthenticateUser.js +++ b/dsql-app/.local_dist/server/pages/api/reAuthenticateUser.js @@ -1,4 +1,4 @@ -"use strict";(()=>{var e={};e.id=2998,e.ids=[2998],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},55896:(e,r,t)=>{t.r(r),t.d(r,{config:()=>m,default:()=>S,routeModule:()=>g});var n={};t.r(n),t.d(n,{default:()=>E});var s=t(89947),i=t(2706),o=t(96762),a=t(69842),l=t(29021),c=t.n(l),u=t(67619),d=t(48786),_=t(68829),f=t(89159);async function p({userId:e,res:r,csrf:t}){try{let n=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!n)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;let s=await (0,d.A)("SELECT * FROM users WHERE id=?",[e]);c().unlinkSync(`${n}/${t}`);let i=Math.random().toString(36).substring(2)+"-"+Math.random().toString(36).substring(2),o={id:s[0].id,stripe_id:s[0].stripe_id||"",first_name:s[0].first_name,last_name:s[0].last_name,email:s[0].email,social_id:s[0].social_id,image:s[0].image,image_thumbnail:s[0].image_thumbnail,verification_status:s[0].verification_status,social_login:s[0].social_login,social_platform:s[0].social_platform,csrf_k:i,logged_in_status:!0,date:Date.now()},a=(0,_.default)({data:JSON.stringify(o)});c().writeFileSync(`${n}/${i}`,JSON.stringify(o));let{keyCookieName:l,csrfCookieName:u}=(0,f.A)();return r.setHeader("Set-Cookie",[`${l}=${a};samesite=strict;path=/;HttpOnly=true;Secure=true`,`${u}=${i};samesite=strict;path=/;HttpOnly=true;Secure=true`,"user_refresh=1"]),o}catch(r){return(0,u.default)({component:"reAuthUser",message:r.message,user:{id:e}}),null}}async function E(e,r){"POST"!==e.method&&r.json({msg:"Failed!"});let t=await (0,a.A)(e,r,!0);if(!t){console.log("No user Found"),r.redirect(307,"/logout");return}let n=await p({userId:t.id,res:r,csrf:t.csrf_k}),s={status:!!n,csrf:n?.csrf_k,user:n};r.json(s)}let S=(0,o.M)(n,"default"),m=(0,o.M)(n,"config"),g=new s.PagesAPIRouteModule({definition:{kind:i.A.PAGES_API,page:"/api/reAuthenticateUser",pathname:"/api/reAuthenticateUser",bundlePath:"",filename:""},userland:n})},69842:(e,r,t)=>{t.d(r,{A:()=>l});var n=t(48786),s=t(95969),i=t(29021),o=t.n(i),a=t(89159);async function l(e,r,t){try{let{keyCookieName:i,csrfCookieName:l}=(0,a.A)();if(!e.cookies?.[i]?.match(/./))throw Error("Request Cookies not Found!");let c=(0,s.A)({encryptedString:e.cookies[i]});if(!c)throw Error("Couldn't decrypt auth cookie!");let u=JSON.parse(c);if(!u.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(u.csrf_k)))throw Error("Deep Auth Failed. `csrf` key not found in request headers!");let d=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!d)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!o().existsSync(`${d}/${u.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==u.verification_status&&!t){let e=await (0,n.A)(`SELECT verification_status FROM users WHERE id='${u.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(u?.date&&Date.now()-u.date>6048e5)throw Error("Key expired!");return u}catch(e){return console.log(`userAuth Error: ${e.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>n});function n(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",n=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",s=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",i=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),o=r;e?.userId&&(o+=`user_${e.userId}_`),i&&(o+=`${i}_`),o+=t;let a=r;e?.userId&&(a+=`user_${e.userId}_`),i&&(a+=`${i}_`),a+=n;let l=r;return e?.userId&&(l+=`user_${e.userId}_`),i&&(l+=`${i}_`),{keyCookieName:o,csrfCookieName:a,oneTimeCodeName:l+=s}}},67619:(e,r,t)=>{t.r(r),t.d(r,{default:()=>i});var n=t(29021),s=t.n(n);async function i({user:e,message:r,component:t,noMail:n,req:i}){let o=new Date,a=(()=>{if(!i)return null;try{let e=i.headers["x-forwarded-for"],r=i.headers["x-real-ip"],t=i.headers["cf-connecting-ip"],n=Array.isArray(e)?e[0]:e?.split(",")[0],s=t||n||r||i.socket.remoteAddress;if(!s)return null;return String(s)}catch(e){return null}})();try{let n=`🚀 SERVER ERROR =========================== +"use strict";(()=>{var e={};e.id=2998,e.ids=[2998],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},55896:(e,r,t)=>{t.r(r),t.d(r,{config:()=>m,default:()=>S,routeModule:()=>g});var n={};t.r(n),t.d(n,{default:()=>E});var s=t(89947),i=t(2706),o=t(96762),a=t(69842),l=t(29021),c=t.n(l),u=t(67619),d=t(48786),_=t(68829),f=t(89159);async function p({userId:e,res:r,csrf:t}){try{let n=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!n)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;let s=await (0,d.A)("SELECT * FROM users WHERE id=?",[e]);c().unlinkSync(`${n}/${t}`);let i=Math.random().toString(36).substring(2)+"-"+Math.random().toString(36).substring(2),o={id:s[0].id,stripe_id:s[0].stripe_id||"",first_name:s[0].first_name,last_name:s[0].last_name,email:s[0].email,social_id:s[0].social_id,image:s[0].image,image_thumbnail:s[0].image_thumbnail,verification_status:s[0].verification_status,social_login:s[0].social_login,social_platform:s[0].social_platform,csrf_k:i,logged_in_status:!0,date:Date.now()},a=(0,_.A)({data:JSON.stringify(o)});c().writeFileSync(`${n}/${i}`,JSON.stringify(o));let{keyCookieName:l,csrfCookieName:u}=(0,f.A)();return r.setHeader("Set-Cookie",[`${l}=${a};samesite=strict;path=/;HttpOnly=true;Secure=true`,`${u}=${i};samesite=strict;path=/;HttpOnly=true;Secure=true`,"user_refresh=1"]),o}catch(r){return(0,u.A)({component:"reAuthUser",message:r.message,user:{id:e}}),null}}async function E(e,r){"POST"!==e.method&&r.json({msg:"Failed!"});let t=await (0,a.A)(e,r,!0);if(!t){console.log("No user Found"),r.redirect(307,"/logout");return}let n=await p({userId:t.id,res:r,csrf:t.csrf_k}),s={status:!!n,csrf:n?.csrf_k,user:n};r.json(s)}let S=(0,o.M)(n,"default"),m=(0,o.M)(n,"config"),g=new s.PagesAPIRouteModule({definition:{kind:i.A.PAGES_API,page:"/api/reAuthenticateUser",pathname:"/api/reAuthenticateUser",bundlePath:"",filename:""},userland:n})},69842:(e,r,t)=>{t.d(r,{A:()=>l});var n=t(48786),s=t(95969),i=t(29021),o=t.n(i),a=t(89159);async function l(e,r,t){try{let{keyCookieName:i,csrfCookieName:l}=(0,a.A)();if(!e.cookies?.[i]?.match(/./))throw Error("Request Cookies not Found!");let c=(0,s.A)({encryptedString:e.cookies[i]});if(!c)throw Error("Couldn't decrypt auth cookie!");let u=JSON.parse(c);if(!u.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(u.csrf_k)))throw console.log("req.headers",e.headers),console.log("userObject",u),Error("Deep Auth Failed. `csrf` key not found in request headers!");let d=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!d)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!o().existsSync(`${d}/${u.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==u.verification_status&&!t){let e=await (0,n.A)(`SELECT verification_status FROM users WHERE id='${u.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(u?.date&&Date.now()-u.date>6048e5)throw Error("Key expired!");return u}catch(e){return console.log(`userAuth Error: ${e.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>n});function n(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",n=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",s=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",i=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),o=r;e?.userId&&(o+=`user_${e.userId}_`),i&&(o+=`${i}_`),o+=t;let a=r;e?.userId&&(a+=`user_${e.userId}_`),i&&(a+=`${i}_`),a+=n;let l=r;return e?.userId&&(l+=`user_${e.userId}_`),i&&(l+=`${i}_`),{keyCookieName:o,csrfCookieName:a,oneTimeCodeName:l+=s}}},67619:(e,r,t)=>{t.d(r,{A:()=>i});var n=t(29021),s=t.n(n);async function i({user:e,message:r,component:t,noMail:n,req:i}){let o=new Date,a=(()=>{if(!i)return null;try{let e=i.headers["x-forwarded-for"],r=i.headers["x-real-ip"],t=i.headers["cf-connecting-ip"],n=Array.isArray(e)?e[0]:e?.split(",")[0],s=t||n||r||i.socket.remoteAddress;if(!s)return null;return String(s)}catch(e){return null}})();try{let n=`🚀 SERVER ERROR =========================== Error Message: ${r} Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(n+=` User Id: ${e?.id} @@ -13,4 +13,4 @@ Date: ${o.toDateString()} -${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},95969:(e,r,t)=>{t.d(r,{A:()=>i});var n=t(55511),s=t(79428);function i({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let i=r||process.env.DSQL_ENCRYPTION_PASSWORD,o=t||process.env.DSQL_ENCRYPTION_SALT,a=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!i?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!o?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let l=(0,n.scryptSync)(i,o,a),c=s.Buffer.alloc(16,0),u=(0,n.createDecipheriv)("aes-192-cbc",l,c);try{let r=u.update(e,"hex","utf8");return r+=u.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},68829:(e,r,t)=>{t.r(r),t.d(r,{default:()=>i});var n=t(55511),s=t(79428);function i({data:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encryption string is invalid"),e;let i=r||process.env.DSQL_ENCRYPTION_PASSWORD,o=t||process.env.DSQL_ENCRYPTION_SALT,a=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!i?.match(/.{8,}/))return console.log("Encryption key is invalid"),e;if(!o?.match(/.{8,}/))return console.log("Encryption salt is invalid"),e;let l=(0,n.scryptSync)(i,o,a),c=s.Buffer.alloc(16,0),u=(0,n.createCipheriv)("aes-192-cbc",l,c);try{let r=u.update(e,"utf8","hex");return r+=u.final("hex")}catch(r){return console.log("Error in encrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>n});async function n(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=55896);module.exports=t})(); \ No newline at end of file +${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},95969:(e,r,t)=>{t.d(r,{A:()=>i});var n=t(55511),s=t(79428);function i({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let i=r||process.env.DSQL_ENCRYPTION_PASSWORD,o=t||process.env.DSQL_ENCRYPTION_SALT,a=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!i?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!o?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let l=(0,n.scryptSync)(i,o,a),c=s.Buffer.alloc(16,0),u=(0,n.createDecipheriv)("aes-192-cbc",l,c);try{let r=u.update(e,"hex","utf8");return r+=u.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},68829:(e,r,t)=>{t.d(r,{A:()=>i});var n=t(55511),s=t(79428);function i({data:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encryption string is invalid"),e;let i=r||process.env.DSQL_ENCRYPTION_PASSWORD,o=t||process.env.DSQL_ENCRYPTION_SALT,a=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!i?.match(/.{8,}/))return console.log("Encryption key is invalid"),e;if(!o?.match(/.{8,}/))return console.log("Encryption salt is invalid"),e;let l=(0,n.scryptSync)(i,o,a),c=s.Buffer.alloc(16,0),u=(0,n.createCipheriv)("aes-192-cbc",l,c);try{let r=u.update(e,"utf8","hex");return r+=u.final("hex")}catch(r){return console.log("Error in encrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>n});async function n(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=55896);module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/refreshEntry.js b/dsql-app/.local_dist/server/pages/api/refreshEntry.js index 5c8b080..45efb9f 100644 --- a/dsql-app/.local_dist/server/pages/api/refreshEntry.js +++ b/dsql-app/.local_dist/server/pages/api/refreshEntry.js @@ -1,4 +1,4 @@ -"use strict";(()=>{var e={};e.id=2896,e.ids=[2896],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},2875:(e,r,t)=>{t.r(r),t.d(r,{config:()=>_,default:()=>f,routeModule:()=>p});var n={};t.r(n),t.d(n,{default:()=>d});var s=t(89947),a=t(2706),o=t(96762),i=t(30944),l=t(67619),c=t(69842),u=t(95969);async function d(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await (0,c.A)(e,r);if(!t)return r.json({success:!1,msg:"Unauthorized"});let{table:n,db:s,id:a}=e.body,o=e.body.schema;try{let e=`SELECT * FROM \`${s?.toString()||""}\`.\`${n}\` WHERE id=?`,t=[a?.toString()||""],l=await (0,i.A)({database:s?.toString()||"",queryString:e,queryValuesArray:t});if(!l||!l[0])return r.json({success:!1,msg:"Entry not found"});let c=JSON.parse(o||"{}");try{for(let e=0;e",e.message)}r.json({success:!0,entry:l[0]})}catch(e){(0,l.default)({component:"/api/refreshEntry/main-catch-error",message:e.message,user:t}),r.json({success:!1,msg:"Deletion Failed!"})}}let f=(0,o.M)(n,"default"),_=(0,o.M)(n,"config"),p=new s.PagesAPIRouteModule({definition:{kind:a.A.PAGES_API,page:"/api/refreshEntry",pathname:"/api/refreshEntry",bundlePath:"",filename:""},userland:n})},69842:(e,r,t)=>{t.d(r,{A:()=>l});var n=t(48786),s=t(95969),a=t(29021),o=t.n(a),i=t(89159);async function l(e,r,t){try{let{keyCookieName:a,csrfCookieName:l}=(0,i.A)();if(!e.cookies?.[a]?.match(/./))throw Error("Request Cookies not Found!");let c=(0,s.A)({encryptedString:e.cookies[a]});if(!c)throw Error("Couldn't decrypt auth cookie!");let u=JSON.parse(c);if(!u.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(u.csrf_k)))throw Error("Deep Auth Failed. `csrf` key not found in request headers!");let d=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!d)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!o().existsSync(`${d}/${u.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==u.verification_status&&!t){let e=await (0,n.A)(`SELECT verification_status FROM users WHERE id='${u.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(u?.date&&Date.now()-u.date>6048e5)throw Error("Key expired!");return u}catch(e){return console.log(`userAuth Error: ${e.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>n});function n(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",n=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",s=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",a=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),o=r;e?.userId&&(o+=`user_${e.userId}_`),a&&(o+=`${a}_`),o+=t;let i=r;e?.userId&&(i+=`user_${e.userId}_`),a&&(i+=`${a}_`),i+=n;let l=r;return e?.userId&&(l+=`user_${e.userId}_`),a&&(l+=`${a}_`),{keyCookieName:o,csrfCookieName:i,oneTimeCodeName:l+=s}}},43775:(e,r,t)=>{t.d(r,{A:()=>a});var n=t(95969);let s=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/;async function a({unparsedResults:e,tableSchema:r}){let t=[];try{for(let a=0;a",r.message),e}}},67619:(e,r,t)=>{t.r(r),t.d(r,{default:()=>a});var n=t(29021),s=t.n(n);async function a({user:e,message:r,component:t,noMail:n,req:a}){let o=new Date,i=(()=>{if(!a)return null;try{let e=a.headers["x-forwarded-for"],r=a.headers["x-real-ip"],t=a.headers["cf-connecting-ip"],n=Array.isArray(e)?e[0]:e?.split(",")[0],s=t||n||r||a.socket.remoteAddress;if(!s)return null;return String(s)}catch(e){return null}})();try{let n=`🚀 SERVER ERROR =========================== +"use strict";(()=>{var e={};e.id=2896,e.ids=[2896],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},2875:(e,r,t)=>{t.r(r),t.d(r,{config:()=>_,default:()=>f,routeModule:()=>p});var n={};t.r(n),t.d(n,{default:()=>d});var s=t(89947),a=t(2706),o=t(96762),i=t(30944),c=t(67619),l=t(69842),u=t(95969);async function d(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await (0,l.A)(e,r);if(!t)return r.json({success:!1,msg:"Unauthorized"});let{table:n,db:s,id:a}=e.body,o=e.body.schema;try{let e=`SELECT * FROM \`${s?.toString()||""}\`.\`${n}\` WHERE id=?`,t=[a?.toString()||""],c=await (0,i.A)({database:s?.toString()||"",queryString:e,queryValuesArray:t});if(!c||!c[0])return r.json({success:!1,msg:"Entry not found"});let l=JSON.parse(o||"{}");try{for(let e=0;e",e.message)}r.json({success:!0,entry:c[0]})}catch(e){(0,c.A)({component:"/api/refreshEntry/main-catch-error",message:e.message,user:t}),r.json({success:!1,msg:"Deletion Failed!"})}}let f=(0,o.M)(n,"default"),_=(0,o.M)(n,"config"),p=new s.PagesAPIRouteModule({definition:{kind:a.A.PAGES_API,page:"/api/refreshEntry",pathname:"/api/refreshEntry",bundlePath:"",filename:""},userland:n})},69842:(e,r,t)=>{t.d(r,{A:()=>c});var n=t(48786),s=t(95969),a=t(29021),o=t.n(a),i=t(89159);async function c(e,r,t){try{let{keyCookieName:a,csrfCookieName:c}=(0,i.A)();if(!e.cookies?.[a]?.match(/./))throw Error("Request Cookies not Found!");let l=(0,s.A)({encryptedString:e.cookies[a]});if(!l)throw Error("Couldn't decrypt auth cookie!");let u=JSON.parse(l);if(!u.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(u.csrf_k)))throw console.log("req.headers",e.headers),console.log("userObject",u),Error("Deep Auth Failed. `csrf` key not found in request headers!");let d=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!d)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!o().existsSync(`${d}/${u.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==u.verification_status&&!t){let e=await (0,n.A)(`SELECT verification_status FROM users WHERE id='${u.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(u?.date&&Date.now()-u.date>6048e5)throw Error("Key expired!");return u}catch(e){return console.log(`userAuth Error: ${e.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>n});function n(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",n=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",s=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",a=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),o=r;e?.userId&&(o+=`user_${e.userId}_`),a&&(o+=`${a}_`),o+=t;let i=r;e?.userId&&(i+=`user_${e.userId}_`),a&&(i+=`${a}_`),i+=n;let c=r;return e?.userId&&(c+=`user_${e.userId}_`),a&&(c+=`${a}_`),{keyCookieName:o,csrfCookieName:i,oneTimeCodeName:c+=s}}},43775:(e,r,t)=>{t.d(r,{A:()=>a});var n=t(95969);let s=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/;async function a({unparsedResults:e,tableSchema:r}){let t=[];try{for(let a=0;a",r.message),e}}},67619:(e,r,t)=>{t.d(r,{A:()=>a});var n=t(29021),s=t.n(n);async function a({user:e,message:r,component:t,noMail:n,req:a}){let o=new Date,i=(()=>{if(!a)return null;try{let e=a.headers["x-forwarded-for"],r=a.headers["x-real-ip"],t=a.headers["cf-connecting-ip"],n=Array.isArray(e)?e[0]:e?.split(",")[0],s=t||n||r||a.socket.remoteAddress;if(!s)return null;return String(s)}catch(e){return null}})();try{let n=`🚀 SERVER ERROR =========================== Error Message: ${r} Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(n+=` User Id: ${e?.id} @@ -8,9 +8,9 @@ URL: ${a.url}`),a?.body&&(n+=` Request Body: ${JSON.stringify(a.body,null,4)}`),i&&(n+=` IP: ${i}`),n+=` Date: ${o.toDateString()} -========================================`,s().existsSync("./.tmp/error.log")||s().writeFileSync("./.tmp/error.log","","utf-8");let l=s().readFileSync("./.tmp/error.log","utf-8");s().writeFileSync("./.tmp/error.log",n),s().appendFileSync("./.tmp/error.log",` +========================================`,s().existsSync("./.tmp/error.log")||s().writeFileSync("./.tmp/error.log","","utf-8");let c=s().readFileSync("./.tmp/error.log","utf-8");s().writeFileSync("./.tmp/error.log",n),s().appendFileSync("./.tmp/error.log",` -${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},30944:(e,r,t)=>{t.d(r,{A:()=>l});var n=t(43775),s=t(67619),a=t(48786),o=t(37275),i=t(7971);async function l({queryString:e,queryValuesArray:r,database:t,tableSchema:l,useLocal:c}){let u;let d=!!c||!!t?.match(/^datasquirel$/),f=c?i.A:d?a.A:o.default;try{u=e&&r&&Array.isArray(r)&&r[0]?d?await f(e,r):await f({paradigm:"Full Access",queryString:e,queryValues:r}):d?await f(e):await f({paradigm:"Full Access",queryString:e})}catch(e){console.log(`varDatabaseDbHandler Error: ${e.message}`),(0,s.default)({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(u&&l)try{let e=u;return await (0,n.A)({unparsedResults:e,tableSchema:l})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",t,e),(0,s.default)({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(u)return u;else return null}},95969:(e,r,t)=>{t.d(r,{A:()=>a});var n=t(55511),s=t(79428);function a({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let a=r||process.env.DSQL_ENCRYPTION_PASSWORD,o=t||process.env.DSQL_ENCRYPTION_SALT,i=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!a?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!o?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let l=(0,n.scryptSync)(a,o,i),c=s.Buffer.alloc(16,0),u=(0,n.createDecipheriv)("aes-192-cbc",l,c);try{let r=u.update(e,"hex","utf8");return r+=u.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>n});async function n(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},37275:(e,r,t)=>{async function n(e,r,t){try{if("string"==typeof r){let n=await e.query(s(r),t);return JSON.parse(JSON.stringify(n))}if("object"!=typeof r)return null;{let t=[];for(let n=0;na})},7971:(e,r,t)=>{t.d(r,{A:()=>i});var n=t(9973),s=t.n(n),a=t(29021),o=t.n(a);async function i(...e){let r=s()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!o().existsSync(r)){console.log(`${r} does not exist`);return}return{ca:o().readFileSync(`${e}/ca-cert.pem`),rejectUnauthorized:!1}}()},onConnect:()=>{console.log("Connection Successful!")},onConnectError:e=>{console.log("Connection Error",e.message)},onError:e=>{console.log("Client Error",e.message)}});console.log("Querying ...");try{let t=await r.query(...e);return await r.end(),JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e.message),{success:!1,error:e.message}}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=2875);module.exports=t})(); \ No newline at end of file +${c}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},30944:(e,r,t)=>{t.d(r,{A:()=>c});var n=t(43775),s=t(67619),a=t(48786),o=t(37275),i=t(7971);async function c({queryString:e,queryValuesArray:r,database:t,tableSchema:c,useLocal:l}){let u;let d=!!l||!!t?.match(/^datasquirel$/),f=l?i.A:d?a.A:o.A;try{u=e&&r&&Array.isArray(r)&&r[0]?d?await f(e,r):await f({paradigm:"Full Access",queryString:e,queryValues:r}):d?await f(e):await f({paradigm:"Full Access",queryString:e})}catch(e){console.log(`varDatabaseDbHandler Error: ${e.message}`),(0,s.A)({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(u&&c)try{let e=u;return await (0,n.A)({unparsedResults:e,tableSchema:c})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",t,e),(0,s.A)({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(u)return u;else return null}},95969:(e,r,t)=>{t.d(r,{A:()=>a});var n=t(55511),s=t(79428);function a({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let a=r||process.env.DSQL_ENCRYPTION_PASSWORD,o=t||process.env.DSQL_ENCRYPTION_SALT,i=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!a?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!o?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let c=(0,n.scryptSync)(a,o,i),l=s.Buffer.alloc(16,0),u=(0,n.createDecipheriv)("aes-192-cbc",c,l);try{let r=u.update(e,"hex","utf8");return r+=u.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>n});async function n(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},37275:(e,r,t)=>{async function n(e,r,t){try{if("string"==typeof r){let n=await e.query(s(r),t);return JSON.parse(JSON.stringify(n))}if("object"!=typeof r)return null;{let t=[];for(let n=0;na})},7971:(e,r,t)=>{t.d(r,{A:()=>i});var n=t(9973),s=t.n(n),a=t(29021),o=t.n(a);async function i(...e){let r=s()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!o().existsSync(r)){console.log(`${r} does not exist`);return}return{ca:o().readFileSync(`${e}/ca-cert.pem`),rejectUnauthorized:!1}}()},onConnect:()=>{console.log("Connection Successful!")},onConnectError:e=>{console.log("Connection Error",e.message)},onError:e=>{console.log("Client Error",e.message)}});console.log("Querying ...");try{let t=await r.query(...e);return await r.end(),JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e.message),{success:!1,error:e.message}}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=2875);module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/registerUser.js b/dsql-app/.local_dist/server/pages/api/registerUser.js index 114dd24..5e5ef35 100644 --- a/dsql-app/.local_dist/server/pages/api/registerUser.js +++ b/dsql-app/.local_dist/server/pages/api/registerUser.js @@ -1,4 +1,4 @@ -"use strict";(()=>{var e={};e.id=3953,e.ids=[3953],e.modules={47795:e=>{e.exports=require("generate-password")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},21572:e=>{e.exports=require("nodemailer")},72583:e=>{e.exports=require("sanitize-html")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},79646:e=>{e.exports=require("child_process")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},68140:(e,r,s)=>{s.r(r),s.d(r,{config:()=>y,default:()=>E,routeModule:()=>h});var t={};s.r(t),s.d(t,{default:()=>v});var a=s(89947),i=s(2706),n=s(96762),l=s(68829),d=s(96052),o=s(67619),u=s(33873),c=s.n(u),m=s(79646),p=s(67580),_=s(48786),g=s(98e3),S=s(30802),f=s(83919);let A=s(29021);async function v(e,r){if("POST"!==e.method)return r.json({user:null,msg:"Registration Failed!"});let s=e.body,{inviteObject:t}=s,a=s.first_name,i=s.last_name,n=s.email,u=s.password,v=s.username;if(!n.match(/.*@.*\..*/))return r.json({user:null,msg:"Invalid Email"});if(!a.match(/^[a-zA-Z]+$/)||!i.match(/^[a-zA-Z]+$/))return r.json({user:null,msg:"Invalid Name"});if(u?.match(/ /))return r.json({user:null,msg:"Invalid Password"});if(v?.match(/ /))return r.json({user:null,msg:"Invalid Username"});try{let e=(0,f.A)({encryptionKey:process.env.DSQL_ENCRYPTION_PASSWORD||"",password:u}),s=await (0,_.A)(`SELECT * FROM users WHERE email='${n}'`);if(s&&s[0])return r.json({user:null,msg:"User Already Exists"});let o=await (0,g.A)({dbFullName:"datasquirel",tableName:"users",data:{first_name:a,last_name:i,email:n,password:e,username:v}});if(!o?.insertId)return r.json({user:null,msg:"Adding User to Database failed"});await (0,p.A)({userId:o.insertId});let E=(0,l.default)({data:JSON.stringify({id:o.insertId,email:n,dateCode:Date.now()})});(0,d.default)({to:n,subject:"Verify Email Address",text:"Please click the link to verify your email address",html:A.readFileSync("./email/send-email-verification-link.html","utf8").replace(/{{host}}/,process.env.DSQL_HOST||"").replace(/{{token}}/,E||"")}).then(e=>{}),"production".match(/production/),o.insertId,o.insertId;let y=process.env.DSQL_STATIC_SERVER_DIR;if(!y)throw console.log("Static File ENV not Found!"),Error("No Static Path");let h=`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${o.insertId}`,b=c().join(y,`images/user-images/user-${o.insertId}`);A.mkdirSync(h,{recursive:!0}),A.mkdirSync(b,{recursive:!0}),A.writeFileSync(`${h}/main.json`,JSON.stringify([]),"utf8");let I=c().join(y,`images/user-images/user-${o.insertId}/user-${o.insertId}-profile.jpg`),D=c().join(y,`images/user-images/user-${o.insertId}/user-${o.insertId}-profile-thumbnail.jpg`),L=I.replace(y,process.env.DSQL_STATIC_HOST||""),R=D.replace(y,process.env.DSQL_STATIC_HOST||"");if(A.copyFileSync("./public/images/user-preset.png",I),A.copyFileSync("./public/images/user-preset-thumbnail.png",D),(0,m.execSync)(`chmod 644 ${I} ${D}`),await (0,S.A)({dbFullName:"datasquirel",tableName:"users",identifierColumnName:"id",identifierValue:o.insertId,data:{image:L,image_thumbnail:R}}),t){let e=await (0,g.A)({dbFullName:"datasquirel",tableName:"user_users",data:{user_id:t.invite,invited_user_id:o.insertId,database_access:t.database_access,user_priviledge:t.priviledge,user_type:"admin",first_name:a,last_name:i,email:n,username:v,image:L,image_thumbnail:R}});await (0,_.A)("UPDATE invitations SET invitation_status='Accepted' WHERE inviting_user_id=? AND invited_user_email=?",[t.invite,n]);let r=await (0,_.A)("SELECT db_tables_data FROM invitations WHERE inviting_user_id=? AND invited_user_email=?",[t.invite,n]);if(await (0,_.A)("DELETE FROM delegated_user_tables WHERE root_user_id=? AND delegated_user_id=?",[t.invite,e.insertId]),r&&r[0]){let s=r[0].db_tables_data.split("|");for(let r=0;r ${e.message}`),(0,o.default)({component:"/api/registerUser/main-catch-error",message:e.message,user:{first_name:a,last_name:i,email:n}}),r.json({user:null})}}let E=(0,n.M)(t,"default"),y=(0,n.M)(t,"config"),h=new a.PagesAPIRouteModule({definition:{kind:i.A.PAGES_API,page:"/api/registerUser",pathname:"/api/registerUser",bundlePath:"",filename:""},userland:t})},67580:(e,r,s)=>{s.d(r,{A:()=>u});var t=s(47795),a=s.n(t),i=s(48786),n=s(47546),l=s(98e3),d=s(68829),o=s(7971);async function u({userId:e,useLocal:r}){try{let s=process.env.DSQL_DB_HOST||"127.0.0.1",t=`dsql_user_${e}`,u=a().generate({length:16,numbers:!0,symbols:!0,uppercase:!0,exclude:"*#.'`\""}),c=(0,d.default)({data:u}),m=`CREATE USER IF NOT EXISTS '${t}'@'127.0.0.1' IDENTIFIED BY '${u}'`;r?await (0,o.A)(m):await (0,n.A)(m);let p="UPDATE users SET mariadb_user = ?, mariadb_host = '127.0.0.1', mariadb_pass = ? WHERE id = ?",_=[t,c,e];r?await (0,o.A)(p,_):await (0,i.A)(p,_),await (0,l.A)({tableName:"mariadb_users",data:{user_id:e,username:t,host:s,password:c,primary:"1",grants:'[{"database":"*","table":"*","privileges":["ALL"]}]'},dbContext:"Master",useLocal:r}),console.log(`User ${e} SQL credentials successfully added.`)}catch(e){console.log("Error in adding SQL user in 'addMariadbUser' function =>",e.message)}}},96052:(e,r,s)=>{s.r(r),s.d(r,{default:()=>l});var t=s(29021),a=s.n(t),i=s(21572);let n=s.n(i)().createTransport({host:process.env.DSQL_MAIL_HOST,port:465,secure:!0,auth:{user:process.env.DSQL_MAIL_EMAIL,pass:process.env.DSQL_MAIL_PASSWORD}});async function l({to:e,subject:r,text:s,html:t,alias:i,senderName:l}){let d;if(!process.env.DSQL_MAIL_HOST||!process.env.DSQL_MAIL_EMAIL||!process.env.DSQL_MAIL_PASSWORD)return null;let o=(i?.match(/support/i),process.env.DSQL_MAIL_EMAIL);if(!a().existsSync("./email/index.html"))return;let u=a().readFileSync("./email/index.html","utf8").replace(/{{email_body}}/,t||"").replace(/{{issue_date}}/,Date().substring(0,24));try{let t={};t.from=`"${l||"Datasquirel"}" <${o}>`,t.sender=o,i&&(t.replyTo=o),t.to=e,t.subject=r,t.text=s,t.html=u,d=await n.sendMail(t)}catch(e){console.log("ERROR in handleNodemailer Function =>",e.message)}return d}},67619:(e,r,s)=>{s.r(r),s.d(r,{default:()=>i});var t=s(29021),a=s.n(t);async function i({user:e,message:r,component:s,noMail:t,req:i}){let n=new Date,l=(()=>{if(!i)return null;try{let e=i.headers["x-forwarded-for"],r=i.headers["x-real-ip"],s=i.headers["cf-connecting-ip"],t=Array.isArray(e)?e[0]:e?.split(",")[0],a=s||t||r||i.socket.remoteAddress;if(!a)return null;return String(a)}catch(e){return null}})();try{let t=`🚀 SERVER ERROR =========================== +"use strict";(()=>{var e={};e.id=3953,e.ids=[3953],e.modules={47795:e=>{e.exports=require("generate-password")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},21572:e=>{e.exports=require("nodemailer")},72583:e=>{e.exports=require("sanitize-html")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},79646:e=>{e.exports=require("child_process")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},68140:(e,r,s)=>{s.r(r),s.d(r,{config:()=>h,default:()=>y,routeModule:()=>b});var t={};s.r(t),s.d(t,{default:()=>E});var a=s(89947),i=s(2706),n=s(96762),l=s(29021),d=s.n(l),o=s(68829),u=s(96052),c=s(67619),m=s(33873),p=s.n(m),_=s(79646),g=s(67580),S=s(48786),A=s(98e3),f=s(30802),v=s(83919);async function E(e,r){if("POST"!==e.method)return r.json({user:null,msg:"Registration Failed!"});let s=e.body,{inviteObject:t}=s,a=s.first_name,i=s.last_name,n=s.email,l=s.password,m=s.username;if(!n.match(/.*@.*\..*/))return r.json({user:null,msg:"Invalid Email"});if(!a.match(/^[a-zA-Z]+$/)||!i.match(/^[a-zA-Z]+$/))return r.json({user:null,msg:"Invalid Name"});if(l?.match(/ /))return r.json({user:null,msg:"Invalid Password"});if(m?.match(/ /))return r.json({user:null,msg:"Invalid Username"});try{let e=(0,v.A)({encryptionKey:process.env.DSQL_ENCRYPTION_PASSWORD||"",password:l}),s=await (0,S.A)(`SELECT * FROM users WHERE email='${n}'`);if(s&&s[0])return r.json({user:null,msg:"User Already Exists"});let c=await (0,A.A)({dbFullName:"datasquirel",tableName:"users",data:{first_name:a,last_name:i,email:n,password:e,username:m}});if(!c?.insertId)return r.json({user:null,msg:"Adding User to Database failed"});await (0,g.A)({userId:c.insertId});let E=(0,o.A)({data:JSON.stringify({id:c.insertId,email:n,dateCode:Date.now()})});(0,u.A)({to:n,subject:"Verify Email Address",text:"Please click the link to verify your email address",html:d().readFileSync("./email/send-email-verification-link.html","utf8").replace(/{{host}}/,process.env.DSQL_HOST||"").replace(/{{token}}/,E||"")}).then(e=>{}),"production".match(/production/),c.insertId,c.insertId;let y=process.env.DSQL_STATIC_SERVER_DIR;if(!y)throw console.log("Static File ENV not Found!"),Error("No Static Path");let h=`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${c.insertId}`,b=p().join(y,`images/user-images/user-${c.insertId}`);d().mkdirSync(h,{recursive:!0}),d().mkdirSync(b,{recursive:!0}),d().writeFileSync(`${h}/main.json`,JSON.stringify([]),"utf8");let I=p().join(y,`images/user-images/user-${c.insertId}/user-${c.insertId}-profile.jpg`),D=p().join(y,`images/user-images/user-${c.insertId}/user-${c.insertId}-profile-thumbnail.jpg`),L=I.replace(y,process.env.DSQL_STATIC_HOST||""),R=D.replace(y,process.env.DSQL_STATIC_HOST||"");if(d().copyFileSync("./public/images/user-preset.png",I),d().copyFileSync("./public/images/user-preset-thumbnail.png",D),(0,_.execSync)(`chmod 644 ${I} ${D}`),await (0,f.A)({dbFullName:"datasquirel",tableName:"users",identifierColumnName:"id",identifierValue:c.insertId,data:{image:L,image_thumbnail:R}}),t){let e=await (0,A.A)({dbFullName:"datasquirel",tableName:"user_users",data:{user_id:t.invite,invited_user_id:c.insertId,database_access:t.database_access,user_priviledge:t.priviledge,user_type:"admin",first_name:a,last_name:i,email:n,username:m,image:L,image_thumbnail:R}});await (0,S.A)("UPDATE invitations SET invitation_status='Accepted' WHERE inviting_user_id=? AND invited_user_email=?",[t.invite,n]);let r=await (0,S.A)("SELECT db_tables_data FROM invitations WHERE inviting_user_id=? AND invited_user_email=?",[t.invite,n]);if(await (0,S.A)("DELETE FROM delegated_user_tables WHERE root_user_id=? AND delegated_user_id=?",[t.invite,e.insertId]),r&&r[0]){let s=r[0].db_tables_data.split("|");for(let r=0;r ${e.message}`),(0,c.A)({component:"/api/registerUser/main-catch-error",message:e.message,user:{first_name:a,last_name:i,email:n}}),r.json({user:null})}}let y=(0,n.M)(t,"default"),h=(0,n.M)(t,"config"),b=new a.PagesAPIRouteModule({definition:{kind:i.A.PAGES_API,page:"/api/registerUser",pathname:"/api/registerUser",bundlePath:"",filename:""},userland:t})},67580:(e,r,s)=>{s.d(r,{A:()=>u});var t=s(47795),a=s.n(t),i=s(48786),n=s(47546),l=s(98e3),d=s(68829),o=s(7971);async function u({userId:e,useLocal:r}){try{let s=process.env.DSQL_DB_HOST||"127.0.0.1",t=`dsql_user_${e}`,u=a().generate({length:16,numbers:!0,symbols:!0,uppercase:!0,exclude:"*#.'`\""}),c=(0,d.A)({data:u}),m=`CREATE USER IF NOT EXISTS '${t}'@'127.0.0.1' IDENTIFIED BY '${u}'`;r?await (0,o.A)(m):await (0,n.A)(m);let p="UPDATE users SET mariadb_user = ?, mariadb_host = '127.0.0.1', mariadb_pass = ? WHERE id = ?",_=[t,c,e];r?await (0,o.A)(p,_):await (0,i.A)(p,_),await (0,l.A)({tableName:"mariadb_users",data:{user_id:e,username:t,host:s,password:c,primary:"1",grants:'[{"database":"*","table":"*","privileges":["ALL"]}]'},dbContext:"Master",useLocal:r}),console.log(`User ${e} SQL credentials successfully added.`)}catch(e){console.log("Error in adding SQL user in 'addMariadbUser' function =>",e.message)}}},96052:(e,r,s)=>{s.d(r,{A:()=>l});var t=s(29021),a=s.n(t),i=s(21572);let n=s.n(i)().createTransport({host:process.env.DSQL_MAIL_HOST,port:465,secure:!0,auth:{user:process.env.DSQL_MAIL_EMAIL,pass:process.env.DSQL_MAIL_PASSWORD}});async function l({to:e,subject:r,text:s,html:t,alias:i,senderName:l}){let d;if(!process.env.DSQL_MAIL_HOST||!process.env.DSQL_MAIL_EMAIL||!process.env.DSQL_MAIL_PASSWORD)return null;let o=(i?.match(/support/i),process.env.DSQL_MAIL_EMAIL);if(!a().existsSync("./email/index.html"))return;let u=a().readFileSync("./email/index.html","utf8").replace(/{{email_body}}/,t||"").replace(/{{issue_date}}/,Date().substring(0,24));try{let t={};t.from=`"${l||"Datasquirel"}" <${o}>`,t.sender=o,i&&(t.replyTo=o),t.to=e,t.subject=r,t.text=s,t.html=u,d=await n.sendMail(t)}catch(e){console.log("ERROR in handleNodemailer Function =>",e.message)}return d}},67619:(e,r,s)=>{s.d(r,{A:()=>i});var t=s(29021),a=s.n(t);async function i({user:e,message:r,component:s,noMail:t,req:i}){let n=new Date,l=(()=>{if(!i)return null;try{let e=i.headers["x-forwarded-for"],r=i.headers["x-real-ip"],s=i.headers["cf-connecting-ip"],t=Array.isArray(e)?e[0]:e?.split(",")[0],a=s||t||r||i.socket.remoteAddress;if(!a)return null;return String(a)}catch(e){return null}})();try{let t=`🚀 SERVER ERROR =========================== Error Message: ${r} Component: ${s}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(t+=` User Id: ${e?.id} diff --git a/dsql-app/.local_dist/server/pages/api/renameMedia.js b/dsql-app/.local_dist/server/pages/api/renameMedia.js index 88326cf..9579584 100644 --- a/dsql-app/.local_dist/server/pages/api/renameMedia.js +++ b/dsql-app/.local_dist/server/pages/api/renameMedia.js @@ -1,16 +1,16 @@ -"use strict";(()=>{var e={};e.id=8103,e.ids=[8103],e.modules={27825:e=>{e.exports=require("lodash")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},8639:(e,r,t)=>{t.r(r),t.d(r,{config:()=>E,default:()=>f,routeModule:()=>S});var n={};t.r(n),t.d(n,{default:()=>p});var i=t(89947),a=t(2706),o=t(96762),s=t(69842),u=t(67619),l=t(48786),c=t(45185),d=t(27825),_=t.n(d);let m=t(29021);async function p(e,r){if("POST"!==e.method)return r.json({user:null,msg:"Registration Failed!"});let t=await (0,s.A)(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let n=e.body.mediaObject,i=e.body.newName,a=e.body.newThumbnailName,o=e.body.replace;try{"production".match(/production/);let e=n.media_url.match(/\..{3,4}$/)[0],s=n?.private==1;if(!process.env.DSQL_STATIC_SERVER_DIR)throw console.log("Static File ENV not Found!"),Error("No Static Path!");let u=(0,c.A)({isPrivate:s,userId:t.id,folder:n.folder?n.folder+"/":"",video:!!n.media_type?.match(/video/i)});if(!u)throw Error("Couldn't grab paths!");let{fileRootPath:d,urlRootPath:p,relativePath:f}=u,E=`${d}${n.media_name}${e}`,S=`${d}${i}${e}`,h=`${d}${n.media_name}_thumbnail${e}`,y=`${d}${i}_thumbnail${e}`,g=new RegExp(_().escapeRegExp(`${n.media_name}`)),A=n.media_url.replace(g,i),$=n.media_url.replace(g,i+"_thumbnail"),v=n.media_path?n.media_path.replace(g,i):`${f}${i}`,P=n.media_thumbnail_path?n.media_thumbnail_path.replace(g,i):`${f}${a}`;if(m.existsSync(S)&&!o)return r.json({success:!1,msg:"File already exists"});m.renameSync(E,S);try{m.renameSync(h,y)}catch(e){}await (0,l.A)("UPDATE user_media SET media_name = ?, media_url = ?, media_thumbnail_url = ?, media_path = ?, media_thumbnail_path = ? WHERE id = ?",[i,A,$,v,P,n.id]),r.json({success:!0})}catch(e){console.log("Error in renaming media =>",e.message),(0,u.default)({component:"/api/renameMedia/catch-error",message:e.message,user:t}),r.json({success:!1,msg:"Renaming failed. Please try again."})}}let f=(0,o.M)(n,"default"),E=(0,o.M)(n,"config"),S=new i.PagesAPIRouteModule({definition:{kind:a.A.PAGES_API,page:"/api/renameMedia",pathname:"/api/renameMedia",bundlePath:"",filename:""},userland:n})},45185:(e,r,t)=>{t.d(r,{A:()=>s});var n=t(29021),i=t.n(n),a=t(33873),o=t.n(a);function s({isPrivate:e,userId:r,folder:t,video:n,pathOnly:a}){"production".match(/production/);let s=process.env.DSQL_STATIC_SERVER_DIR;if(!s)return console.log("Static File ENV not Found!"),null;let u=e?`@/${n?"videos":"media"}/${t?t+"/":""}`:n?`/videos/user-videos/user-${r}/${t?t+"/":""}`:`/images/user-images/user-${r}/${t?t+"/":""}`,l=e?`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${r}/media/${t?t+"/":""}`:o().join(s,u);return i().existsSync(l)||a||i().mkdirSync(l,{recursive:!0}),{fileRootPath:l,urlRootPath:e?`@/media/${t?t+"/":""}`:`${process.env.DSQL_STATIC_HOST}${u}`,relativePath:u}}},69842:(e,r,t)=>{t.d(r,{A:()=>u});var n=t(48786),i=t(95969),a=t(29021),o=t.n(a),s=t(89159);async function u(e,r,t){try{let{keyCookieName:a,csrfCookieName:u}=(0,s.A)();if(!e.cookies?.[a]?.match(/./))throw Error("Request Cookies not Found!");let l=(0,i.A)({encryptedString:e.cookies[a]});if(!l)throw Error("Couldn't decrypt auth cookie!");let c=JSON.parse(l);if(!c.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(c.csrf_k)))throw Error("Deep Auth Failed. `csrf` key not found in request headers!");let d=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!d)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!o().existsSync(`${d}/${c.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==c.verification_status&&!t){let e=await (0,n.A)(`SELECT verification_status FROM users WHERE id='${c.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(c?.date&&Date.now()-c.date>6048e5)throw Error("Key expired!");return c}catch(e){return console.log(`userAuth Error: ${e.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>n});function n(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",n=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",i=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",a=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),o=r;e?.userId&&(o+=`user_${e.userId}_`),a&&(o+=`${a}_`),o+=t;let s=r;e?.userId&&(s+=`user_${e.userId}_`),a&&(s+=`${a}_`),s+=n;let u=r;return e?.userId&&(u+=`user_${e.userId}_`),a&&(u+=`${a}_`),{keyCookieName:o,csrfCookieName:s,oneTimeCodeName:u+=i}}},67619:(e,r,t)=>{t.r(r),t.d(r,{default:()=>a});var n=t(29021),i=t.n(n);async function a({user:e,message:r,component:t,noMail:n,req:a}){let o=new Date,s=(()=>{if(!a)return null;try{let e=a.headers["x-forwarded-for"],r=a.headers["x-real-ip"],t=a.headers["cf-connecting-ip"],n=Array.isArray(e)?e[0]:e?.split(",")[0],i=t||n||r||a.socket.remoteAddress;if(!i)return null;return String(i)}catch(e){return null}})();try{let n=`🚀 SERVER ERROR =========================== +"use strict";(()=>{var e={};e.id=8103,e.ids=[8103],e.modules={27825:e=>{e.exports=require("lodash")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},8639:(e,r,t)=>{t.r(r),t.d(r,{config:()=>S,default:()=>E,routeModule:()=>h});var n={};t.r(n),t.d(n,{default:()=>f});var i=t(89947),o=t(2706),a=t(96762),s=t(29021),c=t.n(s),l=t(69842),u=t(67619),d=t(48786),_=t(45185),m=t(27825),p=t.n(m);async function f(e,r){if("POST"!==e.method)return r.json({user:null,msg:"Registration Failed!"});let t=await (0,l.A)(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let n=e.body.mediaObject,i=e.body.newName,o=e.body.newThumbnailName,a=e.body.replace;try{"production".match(/production/);let e=n.media_url.match(/\..{3,4}$/)[0],s=n?.private==1;if(!process.env.DSQL_STATIC_SERVER_DIR)throw console.log("Static File ENV not Found!"),Error("No Static Path!");let l=(0,_.A)({isPrivate:s,userId:t.id,folder:n.folder?n.folder+"/":"",video:!!n.media_type?.match(/video/i)});if(!l)throw Error("Couldn't grab paths!");let{fileRootPath:u,urlRootPath:m,relativePath:f}=l,E=`${u}${n.media_name}${e}`,S=`${u}${i}${e}`,h=`${u}${n.media_name}_thumbnail${e}`,y=`${u}${i}_thumbnail${e}`,g=new RegExp(p().escapeRegExp(`${n.media_name}`)),A=n.media_url.replace(g,i),$=n.media_url.replace(g,i+"_thumbnail"),v=n.media_path?n.media_path.replace(g,i):`${f}${i}`,P=n.media_thumbnail_path?n.media_thumbnail_path.replace(g,i):`${f}${o}`;if(c().existsSync(S)&&!a)return r.json({success:!1,msg:"File already exists"});c().renameSync(E,S);try{c().renameSync(h,y)}catch(e){}await (0,d.A)("UPDATE user_media SET media_name = ?, media_url = ?, media_thumbnail_url = ?, media_path = ?, media_thumbnail_path = ? WHERE id = ?",[i,A,$,v,P,n.id]),r.json({success:!0})}catch(e){console.log("Error in renaming media =>",e.message),(0,u.A)({component:"/api/renameMedia/catch-error",message:e.message,user:t}),r.json({success:!1,msg:"Renaming failed. Please try again."})}}let E=(0,a.M)(n,"default"),S=(0,a.M)(n,"config"),h=new i.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/renameMedia",pathname:"/api/renameMedia",bundlePath:"",filename:""},userland:n})},45185:(e,r,t)=>{t.d(r,{A:()=>s});var n=t(29021),i=t.n(n),o=t(33873),a=t.n(o);function s({isPrivate:e,userId:r,folder:t,video:n,pathOnly:o}){"production".match(/production/);let s=process.env.DSQL_STATIC_SERVER_DIR;if(!s)return console.log("Static File ENV not Found!"),null;let c=e?`@/${n?"videos":"media"}/${t?t+"/":""}`:n?`/videos/user-videos/user-${r}/${t?t+"/":""}`:`/images/user-images/user-${r}/${t?t+"/":""}`,l=e?`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${r}/media/${t?t+"/":""}`:a().join(s,c);return i().existsSync(l)||o||i().mkdirSync(l,{recursive:!0}),{fileRootPath:l,urlRootPath:e?`@/media/${t?t+"/":""}`:`${process.env.DSQL_STATIC_HOST}${c}`,relativePath:c}}},69842:(e,r,t)=>{t.d(r,{A:()=>c});var n=t(48786),i=t(95969),o=t(29021),a=t.n(o),s=t(89159);async function c(e,r,t){try{let{keyCookieName:o,csrfCookieName:c}=(0,s.A)();if(!e.cookies?.[o]?.match(/./))throw Error("Request Cookies not Found!");let l=(0,i.A)({encryptedString:e.cookies[o]});if(!l)throw Error("Couldn't decrypt auth cookie!");let u=JSON.parse(l);if(!u.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(u.csrf_k)))throw console.log("req.headers",e.headers),console.log("userObject",u),Error("Deep Auth Failed. `csrf` key not found in request headers!");let d=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!d)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!a().existsSync(`${d}/${u.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==u.verification_status&&!t){let e=await (0,n.A)(`SELECT verification_status FROM users WHERE id='${u.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(u?.date&&Date.now()-u.date>6048e5)throw Error("Key expired!");return u}catch(e){return console.log(`userAuth Error: ${e.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>n});function n(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",n=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",i=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",o=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),a=r;e?.userId&&(a+=`user_${e.userId}_`),o&&(a+=`${o}_`),a+=t;let s=r;e?.userId&&(s+=`user_${e.userId}_`),o&&(s+=`${o}_`),s+=n;let c=r;return e?.userId&&(c+=`user_${e.userId}_`),o&&(c+=`${o}_`),{keyCookieName:a,csrfCookieName:s,oneTimeCodeName:c+=i}}},67619:(e,r,t)=>{t.d(r,{A:()=>o});var n=t(29021),i=t.n(n);async function o({user:e,message:r,component:t,noMail:n,req:o}){let a=new Date,s=(()=>{if(!o)return null;try{let e=o.headers["x-forwarded-for"],r=o.headers["x-real-ip"],t=o.headers["cf-connecting-ip"],n=Array.isArray(e)?e[0]:e?.split(",")[0],i=t||n||r||o.socket.remoteAddress;if(!i)return null;return String(i)}catch(e){return null}})();try{let n=`🚀 SERVER ERROR =========================== Error Message: ${r} Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(n+=` User Id: ${e?.id} User Name: ${e?.first_name} ${e?.last_name} -User Email: ${e?.email}`),a?.url&&(n+=` -URL: ${a.url}`),a?.body&&(n+=` -Request Body: ${JSON.stringify(a.body,null,4)}`),s&&(n+=` +User Email: ${e?.email}`),o?.url&&(n+=` +URL: ${o.url}`),o?.body&&(n+=` +Request Body: ${JSON.stringify(o.body,null,4)}`),s&&(n+=` IP: ${s}`),n+=` -Date: ${o.toDateString()} -========================================`,i().existsSync("./.tmp/error.log")||i().writeFileSync("./.tmp/error.log","","utf-8");let u=i().readFileSync("./.tmp/error.log","utf-8");i().writeFileSync("./.tmp/error.log",n),i().appendFileSync("./.tmp/error.log",` +Date: ${a.toDateString()} +========================================`,i().existsSync("./.tmp/error.log")||i().writeFileSync("./.tmp/error.log","","utf-8");let c=i().readFileSync("./.tmp/error.log","utf-8");i().writeFileSync("./.tmp/error.log",n),i().appendFileSync("./.tmp/error.log",` -${u}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},95969:(e,r,t)=>{t.d(r,{A:()=>a});var n=t(55511),i=t(79428);function a({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let a=r||process.env.DSQL_ENCRYPTION_PASSWORD,o=t||process.env.DSQL_ENCRYPTION_SALT,s=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!a?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!o?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let u=(0,n.scryptSync)(a,o,s),l=i.Buffer.alloc(16,0),c=(0,n.createDecipheriv)("aes-192-cbc",u,l);try{let r=c.update(e,"hex","utf8");return r+=c.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>n});async function n(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=8639);module.exports=t})(); \ No newline at end of file +${c}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},95969:(e,r,t)=>{t.d(r,{A:()=>o});var n=t(55511),i=t(79428);function o({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let o=r||process.env.DSQL_ENCRYPTION_PASSWORD,a=t||process.env.DSQL_ENCRYPTION_SALT,s=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!o?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!a?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let c=(0,n.scryptSync)(o,a,s),l=i.Buffer.alloc(16,0),u=(0,n.createDecipheriv)("aes-192-cbc",c,l);try{let r=u.update(e,"hex","utf8");return r+=u.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>n});async function n(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=8639);module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/resetDelegatedDatabaseToken.js b/dsql-app/.local_dist/server/pages/api/resetDelegatedDatabaseToken.js index 577cb2b..3b6e675 100644 --- a/dsql-app/.local_dist/server/pages/api/resetDelegatedDatabaseToken.js +++ b/dsql-app/.local_dist/server/pages/api/resetDelegatedDatabaseToken.js @@ -1 +1 @@ -"use strict";(()=>{var e={};e.id=9659,e.ids=[9659],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},52262:(e,r,t)=>{t.r(r),t.d(r,{config:()=>d,default:()=>c,routeModule:()=>_});var s={};t.r(s),t.d(s,{default:()=>u});var n=t(89947),o=t(2706),i=t(96762),a=t(69842);async function u(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});if(!await (0,a.A)(e,r,!0))return r.json({success:!1,msg:"Unauthorized"});let{userId:t,dbSlug:s}=e.body,n=`${process.env.DSQL_USER_DB_PREFIX}${t}_${s}`,o=`${process.env.DSQL_USER_DELEGATED_DB_COOKIE_PREFIX}${n}`;r.setHeader("Set-Cookie",[`${o}=null;path=/;max-age=0`]),r.json({success:!0,msg:"Processed Successfully"})}let c=(0,i.M)(s,"default"),d=(0,i.M)(s,"config"),_=new n.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/resetDelegatedDatabaseToken",pathname:"/api/resetDelegatedDatabaseToken",bundlePath:"",filename:""},userland:s})},69842:(e,r,t)=>{t.d(r,{A:()=>u});var s=t(48786),n=t(95969),o=t(29021),i=t.n(o),a=t(89159);async function u(e,r,t){try{let{keyCookieName:o,csrfCookieName:u}=(0,a.A)();if(!e.cookies?.[o]?.match(/./))throw Error("Request Cookies not Found!");let c=(0,n.A)({encryptedString:e.cookies[o]});if(!c)throw Error("Couldn't decrypt auth cookie!");let d=JSON.parse(c);if(!d.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(d.csrf_k)))throw Error("Deep Auth Failed. `csrf` key not found in request headers!");let _=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!_)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!i().existsSync(`${_}/${d.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==d.verification_status&&!t){let e=await (0,s.A)(`SELECT verification_status FROM users WHERE id='${d.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(d?.date&&Date.now()-d.date>6048e5)throw Error("Key expired!");return d}catch(e){return console.log(`userAuth Error: ${e.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>s});function s(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",n=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",o=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),i=r;e?.userId&&(i+=`user_${e.userId}_`),o&&(i+=`${o}_`),i+=t;let a=r;e?.userId&&(a+=`user_${e.userId}_`),o&&(a+=`${o}_`),a+=s;let u=r;return e?.userId&&(u+=`user_${e.userId}_`),o&&(u+=`${o}_`),{keyCookieName:i,csrfCookieName:a,oneTimeCodeName:u+=n}}},95969:(e,r,t)=>{t.d(r,{A:()=>o});var s=t(55511),n=t(79428);function o({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let o=r||process.env.DSQL_ENCRYPTION_PASSWORD,i=t||process.env.DSQL_ENCRYPTION_SALT,a=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!o?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let u=(0,s.scryptSync)(o,i,a),c=n.Buffer.alloc(16,0),d=(0,s.createDecipheriv)("aes-192-cbc",u,c);try{let r=d.update(e,"hex","utf8");return r+=d.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>s});async function s(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=52262);module.exports=t})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=9659,e.ids=[9659],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},52262:(e,r,t)=>{t.r(r),t.d(r,{config:()=>d,default:()=>c,routeModule:()=>l});var s={};t.r(s),t.d(s,{default:()=>u});var o=t(89947),n=t(2706),i=t(96762),a=t(69842);async function u(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});if(!await (0,a.A)(e,r,!0))return r.json({success:!1,msg:"Unauthorized"});let{userId:t,dbSlug:s}=e.body,o=`${process.env.DSQL_USER_DB_PREFIX}${t}_${s}`,n=`${process.env.DSQL_USER_DELEGATED_DB_COOKIE_PREFIX}${o}`;r.setHeader("Set-Cookie",[`${n}=null;path=/;max-age=0`]),r.json({success:!0,msg:"Processed Successfully"})}let c=(0,i.M)(s,"default"),d=(0,i.M)(s,"config"),l=new o.PagesAPIRouteModule({definition:{kind:n.A.PAGES_API,page:"/api/resetDelegatedDatabaseToken",pathname:"/api/resetDelegatedDatabaseToken",bundlePath:"",filename:""},userland:s})},69842:(e,r,t)=>{t.d(r,{A:()=>u});var s=t(48786),o=t(95969),n=t(29021),i=t.n(n),a=t(89159);async function u(e,r,t){try{let{keyCookieName:n,csrfCookieName:u}=(0,a.A)();if(!e.cookies?.[n]?.match(/./))throw Error("Request Cookies not Found!");let c=(0,o.A)({encryptedString:e.cookies[n]});if(!c)throw Error("Couldn't decrypt auth cookie!");let d=JSON.parse(c);if(!d.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(d.csrf_k)))throw console.log("req.headers",e.headers),console.log("userObject",d),Error("Deep Auth Failed. `csrf` key not found in request headers!");let l=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!l)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!i().existsSync(`${l}/${d.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==d.verification_status&&!t){let e=await (0,s.A)(`SELECT verification_status FROM users WHERE id='${d.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(d?.date&&Date.now()-d.date>6048e5)throw Error("Key expired!");return d}catch(e){return console.log(`userAuth Error: ${e.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>s});function s(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",o=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",n=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),i=r;e?.userId&&(i+=`user_${e.userId}_`),n&&(i+=`${n}_`),i+=t;let a=r;e?.userId&&(a+=`user_${e.userId}_`),n&&(a+=`${n}_`),a+=s;let u=r;return e?.userId&&(u+=`user_${e.userId}_`),n&&(u+=`${n}_`),{keyCookieName:i,csrfCookieName:a,oneTimeCodeName:u+=o}}},95969:(e,r,t)=>{t.d(r,{A:()=>n});var s=t(55511),o=t(79428);function n({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let n=r||process.env.DSQL_ENCRYPTION_PASSWORD,i=t||process.env.DSQL_ENCRYPTION_SALT,a=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!n?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let u=(0,s.scryptSync)(n,i,a),c=o.Buffer.alloc(16,0),d=(0,s.createDecipheriv)("aes-192-cbc",u,c);try{let r=d.update(e,"hex","utf8");return r+=d.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>s});async function s(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=52262);module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/runUserDbQuery.js b/dsql-app/.local_dist/server/pages/api/runUserDbQuery.js index 4094452..c07cbcc 100644 --- a/dsql-app/.local_dist/server/pages/api/runUserDbQuery.js +++ b/dsql-app/.local_dist/server/pages/api/runUserDbQuery.js @@ -1,16 +1,16 @@ -"use strict";(()=>{var e={};e.id=8563,e.ids=[8563],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},51397:(e,r,t)=>{t.r(r),t.d(r,{config:()=>f,default:()=>d,routeModule:()=>_});var n={};t.r(n),t.d(n,{default:()=>u});var s=t(89947),a=t(2706),o=t(96762),i=t(69842),c=t(67619),l=t(30944);async function u(e,r){if("POST"!==e.method)return r.json({user:null,msg:"Registration Failed!"});let t=await (0,i.A)(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let{database:n,query:s,tables:a}=e.body;try{let e=await (0,l.A)({database:`datasquirel_user_${t.id}_${n}`,queryString:s});if(!e)return r.json({success:!1,msg:"Query Failed!"});r.json({success:!0,result:e})}catch(e){(0,c.default)({component:"/api/runUserDbQuery/main-catch-error",message:e.message,user:t}),r.json({success:!1})}}t(29021);let d=(0,o.M)(n,"default"),f=(0,o.M)(n,"config"),_=new s.PagesAPIRouteModule({definition:{kind:a.A.PAGES_API,page:"/api/runUserDbQuery",pathname:"/api/runUserDbQuery",bundlePath:"",filename:""},userland:n})},69842:(e,r,t)=>{t.d(r,{A:()=>c});var n=t(48786),s=t(95969),a=t(29021),o=t.n(a),i=t(89159);async function c(e,r,t){try{let{keyCookieName:a,csrfCookieName:c}=(0,i.A)();if(!e.cookies?.[a]?.match(/./))throw Error("Request Cookies not Found!");let l=(0,s.A)({encryptedString:e.cookies[a]});if(!l)throw Error("Couldn't decrypt auth cookie!");let u=JSON.parse(l);if(!u.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(u.csrf_k)))throw Error("Deep Auth Failed. `csrf` key not found in request headers!");let d=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!d)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!o().existsSync(`${d}/${u.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==u.verification_status&&!t){let e=await (0,n.A)(`SELECT verification_status FROM users WHERE id='${u.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(u?.date&&Date.now()-u.date>6048e5)throw Error("Key expired!");return u}catch(e){return console.log(`userAuth Error: ${e.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>n});function n(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",n=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",s=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",a=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),o=r;e?.userId&&(o+=`user_${e.userId}_`),a&&(o+=`${a}_`),o+=t;let i=r;e?.userId&&(i+=`user_${e.userId}_`),a&&(i+=`${a}_`),i+=n;let c=r;return e?.userId&&(c+=`user_${e.userId}_`),a&&(c+=`${a}_`),{keyCookieName:o,csrfCookieName:i,oneTimeCodeName:c+=s}}},43775:(e,r,t)=>{t.d(r,{A:()=>a});var n=t(95969);let s=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/;async function a({unparsedResults:e,tableSchema:r}){let t=[];try{for(let a=0;a",r.message),e}}},67619:(e,r,t)=>{t.r(r),t.d(r,{default:()=>a});var n=t(29021),s=t.n(n);async function a({user:e,message:r,component:t,noMail:n,req:a}){let o=new Date,i=(()=>{if(!a)return null;try{let e=a.headers["x-forwarded-for"],r=a.headers["x-real-ip"],t=a.headers["cf-connecting-ip"],n=Array.isArray(e)?e[0]:e?.split(",")[0],s=t||n||r||a.socket.remoteAddress;if(!s)return null;return String(s)}catch(e){return null}})();try{let n=`🚀 SERVER ERROR =========================== +"use strict";(()=>{var e={};e.id=8563,e.ids=[8563],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},51397:(e,r,t)=>{t.r(r),t.d(r,{config:()=>_,default:()=>d,routeModule:()=>f});var s={};t.r(s),t.d(s,{default:()=>u});var n=t(89947),a=t(2706),o=t(96762),i=t(69842),c=t(67619),l=t(30944);async function u(e,r){if("POST"!==e.method)return r.json({user:null,msg:"Registration Failed!"});let t=await (0,i.A)(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let{database:s,query:n,tables:a}=e.body;try{let e=await (0,l.A)({database:`datasquirel_user_${t.id}_${s}`,queryString:n});if(!e)return r.json({success:!1,msg:"Query Failed!"});r.json({success:!0,result:e})}catch(e){(0,c.A)({component:"/api/runUserDbQuery/main-catch-error",message:e.message,user:t}),r.json({success:!1})}}let d=(0,o.M)(s,"default"),_=(0,o.M)(s,"config"),f=new n.PagesAPIRouteModule({definition:{kind:a.A.PAGES_API,page:"/api/runUserDbQuery",pathname:"/api/runUserDbQuery",bundlePath:"",filename:""},userland:s})},69842:(e,r,t)=>{t.d(r,{A:()=>c});var s=t(48786),n=t(95969),a=t(29021),o=t.n(a),i=t(89159);async function c(e,r,t){try{let{keyCookieName:a,csrfCookieName:c}=(0,i.A)();if(!e.cookies?.[a]?.match(/./))throw Error("Request Cookies not Found!");let l=(0,n.A)({encryptedString:e.cookies[a]});if(!l)throw Error("Couldn't decrypt auth cookie!");let u=JSON.parse(l);if(!u.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(u.csrf_k)))throw console.log("req.headers",e.headers),console.log("userObject",u),Error("Deep Auth Failed. `csrf` key not found in request headers!");let d=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!d)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!o().existsSync(`${d}/${u.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==u.verification_status&&!t){let e=await (0,s.A)(`SELECT verification_status FROM users WHERE id='${u.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(u?.date&&Date.now()-u.date>6048e5)throw Error("Key expired!");return u}catch(e){return console.log(`userAuth Error: ${e.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>s});function s(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",n=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",a=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),o=r;e?.userId&&(o+=`user_${e.userId}_`),a&&(o+=`${a}_`),o+=t;let i=r;e?.userId&&(i+=`user_${e.userId}_`),a&&(i+=`${a}_`),i+=s;let c=r;return e?.userId&&(c+=`user_${e.userId}_`),a&&(c+=`${a}_`),{keyCookieName:o,csrfCookieName:i,oneTimeCodeName:c+=n}}},43775:(e,r,t)=>{t.d(r,{A:()=>a});var s=t(95969);let n=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/;async function a({unparsedResults:e,tableSchema:r}){let t=[];try{for(let a=0;a",r.message),e}}},67619:(e,r,t)=>{t.d(r,{A:()=>a});var s=t(29021),n=t.n(s);async function a({user:e,message:r,component:t,noMail:s,req:a}){let o=new Date,i=(()=>{if(!a)return null;try{let e=a.headers["x-forwarded-for"],r=a.headers["x-real-ip"],t=a.headers["cf-connecting-ip"],s=Array.isArray(e)?e[0]:e?.split(",")[0],n=t||s||r||a.socket.remoteAddress;if(!n)return null;return String(n)}catch(e){return null}})();try{let s=`🚀 SERVER ERROR =========================== Error Message: ${r} -Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(n+=` +Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(s+=` User Id: ${e?.id} User Name: ${e?.first_name} ${e?.last_name} -User Email: ${e?.email}`),a?.url&&(n+=` -URL: ${a.url}`),a?.body&&(n+=` -Request Body: ${JSON.stringify(a.body,null,4)}`),i&&(n+=` -IP: ${i}`),n+=` +User Email: ${e?.email}`),a?.url&&(s+=` +URL: ${a.url}`),a?.body&&(s+=` +Request Body: ${JSON.stringify(a.body,null,4)}`),i&&(s+=` +IP: ${i}`),s+=` Date: ${o.toDateString()} -========================================`,s().existsSync("./.tmp/error.log")||s().writeFileSync("./.tmp/error.log","","utf-8");let c=s().readFileSync("./.tmp/error.log","utf-8");s().writeFileSync("./.tmp/error.log",n),s().appendFileSync("./.tmp/error.log",` +========================================`,n().existsSync("./.tmp/error.log")||n().writeFileSync("./.tmp/error.log","","utf-8");let c=n().readFileSync("./.tmp/error.log","utf-8");n().writeFileSync("./.tmp/error.log",s),n().appendFileSync("./.tmp/error.log",` -${c}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},30944:(e,r,t)=>{t.d(r,{A:()=>c});var n=t(43775),s=t(67619),a=t(48786),o=t(37275),i=t(7971);async function c({queryString:e,queryValuesArray:r,database:t,tableSchema:c,useLocal:l}){let u;let d=!!l||!!t?.match(/^datasquirel$/),f=l?i.A:d?a.A:o.default;try{u=e&&r&&Array.isArray(r)&&r[0]?d?await f(e,r):await f({paradigm:"Full Access",queryString:e,queryValues:r}):d?await f(e):await f({paradigm:"Full Access",queryString:e})}catch(e){console.log(`varDatabaseDbHandler Error: ${e.message}`),(0,s.default)({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(u&&c)try{let e=u;return await (0,n.A)({unparsedResults:e,tableSchema:c})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",t,e),(0,s.default)({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(u)return u;else return null}},95969:(e,r,t)=>{t.d(r,{A:()=>a});var n=t(55511),s=t(79428);function a({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let a=r||process.env.DSQL_ENCRYPTION_PASSWORD,o=t||process.env.DSQL_ENCRYPTION_SALT,i=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!a?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!o?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let c=(0,n.scryptSync)(a,o,i),l=s.Buffer.alloc(16,0),u=(0,n.createDecipheriv)("aes-192-cbc",c,l);try{let r=u.update(e,"hex","utf8");return r+=u.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>n});async function n(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},37275:(e,r,t)=>{async function n(e,r,t){try{if("string"==typeof r){let n=await e.query(s(r),t);return JSON.parse(JSON.stringify(n))}if("object"!=typeof r)return null;{let t=[];for(let n=0;na})},7971:(e,r,t)=>{t.d(r,{A:()=>i});var n=t(9973),s=t.n(n),a=t(29021),o=t.n(a);async function i(...e){let r=s()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!o().existsSync(r)){console.log(`${r} does not exist`);return}return{ca:o().readFileSync(`${e}/ca-cert.pem`),rejectUnauthorized:!1}}()},onConnect:()=>{console.log("Connection Successful!")},onConnectError:e=>{console.log("Connection Error",e.message)},onError:e=>{console.log("Client Error",e.message)}});console.log("Querying ...");try{let t=await r.query(...e);return await r.end(),JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e.message),{success:!1,error:e.message}}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=51397);module.exports=t})(); \ No newline at end of file +${c}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},30944:(e,r,t)=>{t.d(r,{A:()=>c});var s=t(43775),n=t(67619),a=t(48786),o=t(37275),i=t(7971);async function c({queryString:e,queryValuesArray:r,database:t,tableSchema:c,useLocal:l}){let u;let d=!!l||!!t?.match(/^datasquirel$/),_=l?i.A:d?a.A:o.A;try{u=e&&r&&Array.isArray(r)&&r[0]?d?await _(e,r):await _({paradigm:"Full Access",queryString:e,queryValues:r}):d?await _(e):await _({paradigm:"Full Access",queryString:e})}catch(e){console.log(`varDatabaseDbHandler Error: ${e.message}`),(0,n.A)({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(u&&c)try{let e=u;return await (0,s.A)({unparsedResults:e,tableSchema:c})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",t,e),(0,n.A)({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(u)return u;else return null}},95969:(e,r,t)=>{t.d(r,{A:()=>a});var s=t(55511),n=t(79428);function a({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let a=r||process.env.DSQL_ENCRYPTION_PASSWORD,o=t||process.env.DSQL_ENCRYPTION_SALT,i=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!a?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!o?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let c=(0,s.scryptSync)(a,o,i),l=n.Buffer.alloc(16,0),u=(0,s.createDecipheriv)("aes-192-cbc",c,l);try{let r=u.update(e,"hex","utf8");return r+=u.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>s});async function s(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},37275:(e,r,t)=>{async function s(e,r,t){try{if("string"==typeof r){let s=await e.query(n(r),t);return JSON.parse(JSON.stringify(s))}if("object"!=typeof r)return null;{let t=[];for(let s=0;sa})},7971:(e,r,t)=>{t.d(r,{A:()=>i});var s=t(9973),n=t.n(s),a=t(29021),o=t.n(a);async function i(...e){let r=n()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!o().existsSync(r)){console.log(`${r} does not exist`);return}return{ca:o().readFileSync(`${e}/ca-cert.pem`),rejectUnauthorized:!1}}()},onConnect:()=>{console.log("Connection Successful!")},onConnectError:e=>{console.log("Connection Error",e.message)},onError:e=>{console.log("Client Error",e.message)}});console.log("Querying ...");try{let t=await r.query(...e);return await r.end(),JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e.message),{success:!1,error:e.message}}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=51397);module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/sendEmailVerificationLink.js b/dsql-app/.local_dist/server/pages/api/sendEmailVerificationLink.js index 2775131..caa518b 100644 --- a/dsql-app/.local_dist/server/pages/api/sendEmailVerificationLink.js +++ b/dsql-app/.local_dist/server/pages/api/sendEmailVerificationLink.js @@ -1 +1 @@ -"use strict";(()=>{var e={};e.id=7714,e.ids=[7714],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},21572:e=>{e.exports=require("nodemailer")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},10942:(e,r,t)=>{t.r(r),t.d(r,{config:()=>f,default:()=>_,routeModule:()=>p});var n={};t.r(n),t.d(n,{default:()=>d});var s=t(89947),i=t(2706),o=t(96762),a=t(69842);let c=t(29021),l=t(96052),u=t(68829);async function d(e,r){if("GET"===e.method){let t=await (0,a.A)(e,r);if(!t)return r.redirect(307,"/logout");let n=u({data:JSON.stringify({id:t.id,email:t.email,dateCode:Date.now()})}),s=process.env.DSQL_HOST;if(!await l({to:t.email,subject:"Verify Email Address",text:"Please click the link to verify your email address",html:c.readFileSync("./email/send-email-verification-link.html","utf8").replace(/{{host}}/,s||"").replace(/{{token}}/,n||"")}))return r.json({success:!1});r.json({success:!0})}}let _=(0,o.M)(n,"default"),f=(0,o.M)(n,"config"),p=new s.PagesAPIRouteModule({definition:{kind:i.A.PAGES_API,page:"/api/sendEmailVerificationLink",pathname:"/api/sendEmailVerificationLink",bundlePath:"",filename:""},userland:n})},69842:(e,r,t)=>{t.d(r,{A:()=>c});var n=t(48786),s=t(95969),i=t(29021),o=t.n(i),a=t(89159);async function c(e,r,t){try{let{keyCookieName:i,csrfCookieName:c}=(0,a.A)();if(!e.cookies?.[i]?.match(/./))throw Error("Request Cookies not Found!");let l=(0,s.A)({encryptedString:e.cookies[i]});if(!l)throw Error("Couldn't decrypt auth cookie!");let u=JSON.parse(l);if(!u.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(u.csrf_k)))throw Error("Deep Auth Failed. `csrf` key not found in request headers!");let d=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!d)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!o().existsSync(`${d}/${u.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==u.verification_status&&!t){let e=await (0,n.A)(`SELECT verification_status FROM users WHERE id='${u.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(u?.date&&Date.now()-u.date>6048e5)throw Error("Key expired!");return u}catch(e){return console.log(`userAuth Error: ${e.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>n});function n(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",n=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",s=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",i=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),o=r;e?.userId&&(o+=`user_${e.userId}_`),i&&(o+=`${i}_`),o+=t;let a=r;e?.userId&&(a+=`user_${e.userId}_`),i&&(a+=`${i}_`),a+=n;let c=r;return e?.userId&&(c+=`user_${e.userId}_`),i&&(c+=`${i}_`),{keyCookieName:o,csrfCookieName:a,oneTimeCodeName:c+=s}}},96052:(e,r,t)=>{t.r(r),t.d(r,{default:()=>a});var n=t(29021),s=t.n(n),i=t(21572);let o=t.n(i)().createTransport({host:process.env.DSQL_MAIL_HOST,port:465,secure:!0,auth:{user:process.env.DSQL_MAIL_EMAIL,pass:process.env.DSQL_MAIL_PASSWORD}});async function a({to:e,subject:r,text:t,html:n,alias:i,senderName:a}){let c;if(!process.env.DSQL_MAIL_HOST||!process.env.DSQL_MAIL_EMAIL||!process.env.DSQL_MAIL_PASSWORD)return null;let l=(i?.match(/support/i),process.env.DSQL_MAIL_EMAIL);if(!s().existsSync("./email/index.html"))return;let u=s().readFileSync("./email/index.html","utf8").replace(/{{email_body}}/,n||"").replace(/{{issue_date}}/,Date().substring(0,24));try{let n={};n.from=`"${a||"Datasquirel"}" <${l}>`,n.sender=l,i&&(n.replyTo=l),n.to=e,n.subject=r,n.text=t,n.html=u,c=await o.sendMail(n)}catch(e){console.log("ERROR in handleNodemailer Function =>",e.message)}return c}},95969:(e,r,t)=>{t.d(r,{A:()=>i});var n=t(55511),s=t(79428);function i({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let i=r||process.env.DSQL_ENCRYPTION_PASSWORD,o=t||process.env.DSQL_ENCRYPTION_SALT,a=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!i?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!o?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let c=(0,n.scryptSync)(i,o,a),l=s.Buffer.alloc(16,0),u=(0,n.createDecipheriv)("aes-192-cbc",c,l);try{let r=u.update(e,"hex","utf8");return r+=u.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},68829:(e,r,t)=>{t.r(r),t.d(r,{default:()=>i});var n=t(55511),s=t(79428);function i({data:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encryption string is invalid"),e;let i=r||process.env.DSQL_ENCRYPTION_PASSWORD,o=t||process.env.DSQL_ENCRYPTION_SALT,a=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!i?.match(/.{8,}/))return console.log("Encryption key is invalid"),e;if(!o?.match(/.{8,}/))return console.log("Encryption salt is invalid"),e;let c=(0,n.scryptSync)(i,o,a),l=s.Buffer.alloc(16,0),u=(0,n.createCipheriv)("aes-192-cbc",c,l);try{let r=u.update(e,"utf8","hex");return r+=u.final("hex")}catch(r){return console.log("Error in encrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>n});async function n(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=10942);module.exports=t})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=7714,e.ids=[7714],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},21572:e=>{e.exports=require("nodemailer")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},10942:(e,r,t)=>{t.r(r),t.d(r,{config:()=>p,default:()=>f,routeModule:()=>E});var n={};t.r(n),t.d(n,{default:()=>_});var s=t(89947),i=t(2706),o=t(96762),a=t(29021),c=t.n(a),l=t(69842),u=t(96052),d=t(68829);async function _(e,r){if("GET"===e.method){let t=await (0,l.A)(e,r);if(!t)return r.redirect(307,"/logout");let n=(0,d.A)({data:JSON.stringify({id:t.id,email:t.email,dateCode:Date.now()})}),s=process.env.DSQL_HOST;if(!await (0,u.A)({to:t.email,subject:"Verify Email Address",text:"Please click the link to verify your email address",html:c().readFileSync("./email/send-email-verification-link.html","utf8").replace(/{{host}}/,s||"").replace(/{{token}}/,n||"")}))return r.json({success:!1});r.json({success:!0})}}let f=(0,o.M)(n,"default"),p=(0,o.M)(n,"config"),E=new s.PagesAPIRouteModule({definition:{kind:i.A.PAGES_API,page:"/api/sendEmailVerificationLink",pathname:"/api/sendEmailVerificationLink",bundlePath:"",filename:""},userland:n})},69842:(e,r,t)=>{t.d(r,{A:()=>c});var n=t(48786),s=t(95969),i=t(29021),o=t.n(i),a=t(89159);async function c(e,r,t){try{let{keyCookieName:i,csrfCookieName:c}=(0,a.A)();if(!e.cookies?.[i]?.match(/./))throw Error("Request Cookies not Found!");let l=(0,s.A)({encryptedString:e.cookies[i]});if(!l)throw Error("Couldn't decrypt auth cookie!");let u=JSON.parse(l);if(!u.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(u.csrf_k)))throw console.log("req.headers",e.headers),console.log("userObject",u),Error("Deep Auth Failed. `csrf` key not found in request headers!");let d=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!d)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!o().existsSync(`${d}/${u.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==u.verification_status&&!t){let e=await (0,n.A)(`SELECT verification_status FROM users WHERE id='${u.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(u?.date&&Date.now()-u.date>6048e5)throw Error("Key expired!");return u}catch(e){return console.log(`userAuth Error: ${e.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>n});function n(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",n=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",s=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",i=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),o=r;e?.userId&&(o+=`user_${e.userId}_`),i&&(o+=`${i}_`),o+=t;let a=r;e?.userId&&(a+=`user_${e.userId}_`),i&&(a+=`${i}_`),a+=n;let c=r;return e?.userId&&(c+=`user_${e.userId}_`),i&&(c+=`${i}_`),{keyCookieName:o,csrfCookieName:a,oneTimeCodeName:c+=s}}},96052:(e,r,t)=>{t.d(r,{A:()=>a});var n=t(29021),s=t.n(n),i=t(21572);let o=t.n(i)().createTransport({host:process.env.DSQL_MAIL_HOST,port:465,secure:!0,auth:{user:process.env.DSQL_MAIL_EMAIL,pass:process.env.DSQL_MAIL_PASSWORD}});async function a({to:e,subject:r,text:t,html:n,alias:i,senderName:a}){let c;if(!process.env.DSQL_MAIL_HOST||!process.env.DSQL_MAIL_EMAIL||!process.env.DSQL_MAIL_PASSWORD)return null;let l=(i?.match(/support/i),process.env.DSQL_MAIL_EMAIL);if(!s().existsSync("./email/index.html"))return;let u=s().readFileSync("./email/index.html","utf8").replace(/{{email_body}}/,n||"").replace(/{{issue_date}}/,Date().substring(0,24));try{let n={};n.from=`"${a||"Datasquirel"}" <${l}>`,n.sender=l,i&&(n.replyTo=l),n.to=e,n.subject=r,n.text=t,n.html=u,c=await o.sendMail(n)}catch(e){console.log("ERROR in handleNodemailer Function =>",e.message)}return c}},95969:(e,r,t)=>{t.d(r,{A:()=>i});var n=t(55511),s=t(79428);function i({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let i=r||process.env.DSQL_ENCRYPTION_PASSWORD,o=t||process.env.DSQL_ENCRYPTION_SALT,a=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!i?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!o?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let c=(0,n.scryptSync)(i,o,a),l=s.Buffer.alloc(16,0),u=(0,n.createDecipheriv)("aes-192-cbc",c,l);try{let r=u.update(e,"hex","utf8");return r+=u.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},68829:(e,r,t)=>{t.d(r,{A:()=>i});var n=t(55511),s=t(79428);function i({data:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encryption string is invalid"),e;let i=r||process.env.DSQL_ENCRYPTION_PASSWORD,o=t||process.env.DSQL_ENCRYPTION_SALT,a=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!i?.match(/.{8,}/))return console.log("Encryption key is invalid"),e;if(!o?.match(/.{8,}/))return console.log("Encryption salt is invalid"),e;let c=(0,n.scryptSync)(i,o,a),l=s.Buffer.alloc(16,0),u=(0,n.createCipheriv)("aes-192-cbc",c,l);try{let r=u.update(e,"utf8","hex");return r+=u.final("hex")}catch(r){return console.log("Error in encrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>n});async function n(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=10942);module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/sendPasswordResetLink.js b/dsql-app/.local_dist/server/pages/api/sendPasswordResetLink.js index b49cd4f..9335fd9 100644 --- a/dsql-app/.local_dist/server/pages/api/sendPasswordResetLink.js +++ b/dsql-app/.local_dist/server/pages/api/sendPasswordResetLink.js @@ -1 +1 @@ -"use strict";(()=>{var e={};e.id=2655,e.ids=[2655],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},21572:e=>{e.exports=require("nodemailer")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},47601:(e,r,t)=>{t.r(r),t.d(r,{config:()=>f,default:()=>d,routeModule:()=>m});var s={};t.r(s),t.d(s,{default:()=>p});var n=t(89947),o=t(2706),a=t(96762),i=t(2416);let l=t(29021),c=t(96052),u=t(68829);async function p(e,r){if("GET"===e.method){let t=u({data:JSON.stringify({email:e.query.email,dateCode:Date.now()})}),s=process.env.DSQL_HOST,n=e.query.email;if(!String(n).match(/.*@.*\..*/))return r.json({user:null,msg:"Invalid Email"});let o=e.headers["x-real-ip"]||e.headers["x-forwarded-for"]||e.connection.remoteAddress,a=process.env.DSQL_HOST||"https://datasquirel.com",p=await c({to:e.query.email?.toString()||process.env.DSQL_CONTACT_EMAIL,subject:"Reset Your Password",text:"Please click the link to reset your password",html:l.readFileSync("./email/send-password-reset-link.html","utf8").replace(/{{host}}/,s||"").replace(/{{ip}}/,String(o)).replace(/{{token}}/,t||""),alias:"Support"});if(await (0,i.A)(),c({to:process.env.DSQL_CONTACT_EMAIL,subject:`Password Reset Attempt for ${n}`,html:`

${n} tried to reset password

${n} attempted a password reset on ${a} from ${o} with a wrong password.

`}),!p)return r.json({success:!1});r.json({success:!0})}}let d=(0,a.M)(s,"default"),f=(0,a.M)(s,"config"),m=new n.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/sendPasswordResetLink",pathname:"/api/sendPasswordResetLink",bundlePath:"",filename:""},userland:s})},2416:(e,r,t)=>{t.d(r,{A:()=>s});async function s(e){return await new Promise((r,t)=>{setTimeout(()=>{r(!0)},e||1e3)}),!0}},96052:(e,r,t)=>{t.r(r),t.d(r,{default:()=>i});var s=t(29021),n=t.n(s),o=t(21572);let a=t.n(o)().createTransport({host:process.env.DSQL_MAIL_HOST,port:465,secure:!0,auth:{user:process.env.DSQL_MAIL_EMAIL,pass:process.env.DSQL_MAIL_PASSWORD}});async function i({to:e,subject:r,text:t,html:s,alias:o,senderName:i}){let l;if(!process.env.DSQL_MAIL_HOST||!process.env.DSQL_MAIL_EMAIL||!process.env.DSQL_MAIL_PASSWORD)return null;let c=(o?.match(/support/i),process.env.DSQL_MAIL_EMAIL);if(!n().existsSync("./email/index.html"))return;let u=n().readFileSync("./email/index.html","utf8").replace(/{{email_body}}/,s||"").replace(/{{issue_date}}/,Date().substring(0,24));try{let s={};s.from=`"${i||"Datasquirel"}" <${c}>`,s.sender=c,o&&(s.replyTo=c),s.to=e,s.subject=r,s.text=t,s.html=u,l=await a.sendMail(s)}catch(e){console.log("ERROR in handleNodemailer Function =>",e.message)}return l}},68829:(e,r,t)=>{t.r(r),t.d(r,{default:()=>o});var s=t(55511),n=t(79428);function o({data:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encryption string is invalid"),e;let o=r||process.env.DSQL_ENCRYPTION_PASSWORD,a=t||process.env.DSQL_ENCRYPTION_SALT,i=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!o?.match(/.{8,}/))return console.log("Encryption key is invalid"),e;if(!a?.match(/.{8,}/))return console.log("Encryption salt is invalid"),e;let l=(0,s.scryptSync)(o,a,i),c=n.Buffer.alloc(16,0),u=(0,s.createCipheriv)("aes-192-cbc",l,c);try{let r=u.update(e,"utf8","hex");return r+=u.final("hex")}catch(r){return console.log("Error in encrypting =>",r.message),e}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=47601);module.exports=t})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=2655,e.ids=[2655],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},21572:e=>{e.exports=require("nodemailer")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},47601:(e,r,t)=>{t.r(r),t.d(r,{config:()=>f,default:()=>A,routeModule:()=>m});var s={};t.r(s),t.d(s,{default:()=>d});var n=t(89947),o=t(2706),i=t(96762),a=t(2416),c=t(29021),l=t.n(c),u=t(96052),p=t(68829);async function d(e,r){if("GET"===e.method){let t=(0,p.A)({data:JSON.stringify({email:e.query.email,dateCode:Date.now()})}),s=process.env.DSQL_HOST,n=e.query.email;if(!String(n).match(/.*@.*\..*/))return r.json({user:null,msg:"Invalid Email"});let o=e.headers["x-real-ip"]||e.headers["x-forwarded-for"]||e.connection.remoteAddress,i=process.env.DSQL_HOST||"https://datasquirel.com",c=await (0,u.A)({to:e.query.email?.toString()||process.env.DSQL_CONTACT_EMAIL,subject:"Reset Your Password",text:"Please click the link to reset your password",html:l().readFileSync("./email/send-password-reset-link.html","utf8").replace(/{{host}}/,s||"").replace(/{{ip}}/,String(o)).replace(/{{token}}/,t||""),alias:"Support"});if(await (0,a.A)(),(0,u.A)({to:process.env.DSQL_CONTACT_EMAIL,subject:`Password Reset Attempt for ${n}`,html:`

${n} tried to reset password

${n} attempted a password reset on ${i} from ${o} with a wrong password.

`}),!c)return r.json({success:!1});r.json({success:!0})}}let A=(0,i.M)(s,"default"),f=(0,i.M)(s,"config"),m=new n.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/sendPasswordResetLink",pathname:"/api/sendPasswordResetLink",bundlePath:"",filename:""},userland:s})},2416:(e,r,t)=>{t.d(r,{A:()=>s});async function s(e){return await new Promise((r,t)=>{setTimeout(()=>{r(!0)},e||1e3)}),!0}},96052:(e,r,t)=>{t.d(r,{A:()=>a});var s=t(29021),n=t.n(s),o=t(21572);let i=t.n(o)().createTransport({host:process.env.DSQL_MAIL_HOST,port:465,secure:!0,auth:{user:process.env.DSQL_MAIL_EMAIL,pass:process.env.DSQL_MAIL_PASSWORD}});async function a({to:e,subject:r,text:t,html:s,alias:o,senderName:a}){let c;if(!process.env.DSQL_MAIL_HOST||!process.env.DSQL_MAIL_EMAIL||!process.env.DSQL_MAIL_PASSWORD)return null;let l=(o?.match(/support/i),process.env.DSQL_MAIL_EMAIL);if(!n().existsSync("./email/index.html"))return;let u=n().readFileSync("./email/index.html","utf8").replace(/{{email_body}}/,s||"").replace(/{{issue_date}}/,Date().substring(0,24));try{let s={};s.from=`"${a||"Datasquirel"}" <${l}>`,s.sender=l,o&&(s.replyTo=l),s.to=e,s.subject=r,s.text=t,s.html=u,c=await i.sendMail(s)}catch(e){console.log("ERROR in handleNodemailer Function =>",e.message)}return c}},68829:(e,r,t)=>{t.d(r,{A:()=>o});var s=t(55511),n=t(79428);function o({data:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encryption string is invalid"),e;let o=r||process.env.DSQL_ENCRYPTION_PASSWORD,i=t||process.env.DSQL_ENCRYPTION_SALT,a=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!o?.match(/.{8,}/))return console.log("Encryption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Encryption salt is invalid"),e;let c=(0,s.scryptSync)(o,i,a),l=n.Buffer.alloc(16,0),u=(0,s.createCipheriv)("aes-192-cbc",c,l);try{let r=u.update(e,"utf8","hex");return r+=u.final("hex")}catch(r){return console.log("Error in encrypting =>",r.message),e}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=47601);module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/social-login/facebook-auth.js b/dsql-app/.local_dist/server/pages/api/social-login/facebook-auth.js index b235363..db603ab 100644 --- a/dsql-app/.local_dist/server/pages/api/social-login/facebook-auth.js +++ b/dsql-app/.local_dist/server/pages/api/social-login/facebook-auth.js @@ -1 +1 @@ -"use strict";(()=>{var e={};e.id=8464,e.ids=[8464],e.modules={47795:e=>{e.exports=require("generate-password")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},21572:e=>{e.exports=require("nodemailer")},72583:e=>{e.exports=require("sanitize-html")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},21435:(e,r,s)=>{s.r(r),s.d(r,{config:()=>_,default:()=>p,routeModule:()=>c});var a={};s.r(a),s.d(a,{default:()=>n});var t=s(89947),o=s(2706),i=s(96762),u=s(68829),l=s(83704),d=s(89159);async function n(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let{facebookUserId:s,facebookUserImage:a,facebookUserFullName:t,facebookUserFirstName:o,facebookUserLastName:i,facebookUserEmail:n,supEmail:p}=e.body,{invite:_}=e.query;try{let e=await (0,l.A)({email:n,payload:{email:n,first_name:o,last_name:i,social_id:s,social_platform:"facebook",image:a,image_thumbnail:a,username:`facebook-user-${s}`},social_platform:"facebook",social_id:s,invitation:_,supEmail:p});if(e.payload?.csrf_k){let s=(0,u.default)({data:JSON.stringify(e.payload)}),{keyCookieName:a,csrfCookieName:t}=(0,d.A)();r.setHeader("Set-Cookie",[`${a}=${s};samesite=strict;path=/;HttpOnly=true;Secure=true`,`${t}=${e.payload.csrf_k};samesite=strict;path=/;HttpOnly=true`])}r.json(e)}catch(e){console.log(e.message),r.json({success:!1,msg:"Failed!"})}}let p=(0,i.M)(a,"default"),_=(0,i.M)(a,"config"),c=new t.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/social-login/facebook-auth",pathname:"/api/social-login/facebook-auth",bundlePath:"",filename:""},userland:a})},89159:(e,r,s)=>{s.d(r,{A:()=>a});function a(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",s=process.env.DSQL_COOKIES_KEY_NAME||"key",a=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",t=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",o=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),i=r;e?.userId&&(i+=`user_${e.userId}_`),o&&(i+=`${o}_`),i+=s;let u=r;e?.userId&&(u+=`user_${e.userId}_`),o&&(u+=`${o}_`),u+=a;let l=r;return e?.userId&&(l+=`user_${e.userId}_`),o&&(l+=`${o}_`),{keyCookieName:i,csrfCookieName:u,oneTimeCodeName:l+=t}}}};var r=require("../../../webpack-api-runtime.js");r.C(e);var s=e=>r(r.s=e),a=r.X(0,[1251,3704],()=>s(21435));module.exports=a})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=8464,e.ids=[8464],e.modules={47795:e=>{e.exports=require("generate-password")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},21572:e=>{e.exports=require("nodemailer")},72583:e=>{e.exports=require("sanitize-html")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},21435:(e,r,s)=>{s.r(r),s.d(r,{config:()=>_,default:()=>p,routeModule:()=>c});var a={};s.r(a),s.d(a,{default:()=>n});var t=s(89947),o=s(2706),i=s(96762),u=s(68829),l=s(83704),d=s(89159);async function n(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let{facebookUserId:s,facebookUserImage:a,facebookUserFullName:t,facebookUserFirstName:o,facebookUserLastName:i,facebookUserEmail:n,supEmail:p}=e.body,{invite:_}=e.query;try{let e=await (0,l.A)({email:n,payload:{email:n,first_name:o,last_name:i,social_id:s,social_platform:"facebook",image:a,image_thumbnail:a,username:`facebook-user-${s}`},social_platform:"facebook",social_id:s,invitation:_,supEmail:p});if(e.payload?.csrf_k){let s=(0,u.A)({data:JSON.stringify(e.payload)}),{keyCookieName:a,csrfCookieName:t}=(0,d.A)();r.setHeader("Set-Cookie",[`${a}=${s};samesite=strict;path=/;HttpOnly=true;Secure=true`,`${t}=${e.payload.csrf_k};samesite=strict;path=/;HttpOnly=true`])}r.json(e)}catch(e){console.log(e.message),r.json({success:!1,msg:"Failed!"})}}let p=(0,i.M)(a,"default"),_=(0,i.M)(a,"config"),c=new t.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/social-login/facebook-auth",pathname:"/api/social-login/facebook-auth",bundlePath:"",filename:""},userland:a})},89159:(e,r,s)=>{s.d(r,{A:()=>a});function a(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",s=process.env.DSQL_COOKIES_KEY_NAME||"key",a=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",t=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",o=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),i=r;e?.userId&&(i+=`user_${e.userId}_`),o&&(i+=`${o}_`),i+=s;let u=r;e?.userId&&(u+=`user_${e.userId}_`),o&&(u+=`${o}_`),u+=a;let l=r;return e?.userId&&(l+=`user_${e.userId}_`),o&&(l+=`${o}_`),{keyCookieName:i,csrfCookieName:u,oneTimeCodeName:l+=t}}}};var r=require("../../../webpack-api-runtime.js");r.C(e);var s=e=>r(r.s=e),a=r.X(0,[1251,3704],()=>s(21435));module.exports=a})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/social-login/github-auth.js b/dsql-app/.local_dist/server/pages/api/social-login/github-auth.js index 0c2ca6c..f251ac9 100644 --- a/dsql-app/.local_dist/server/pages/api/social-login/github-auth.js +++ b/dsql-app/.local_dist/server/pages/api/social-login/github-auth.js @@ -1 +1 @@ -"use strict";(()=>{var e={};e.id=7551,e.ids=[7551],e.modules={47795:e=>{e.exports=require("generate-password")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},21572:e=>{e.exports=require("nodemailer")},72583:e=>{e.exports=require("sanitize-html")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},55591:e=>{e.exports=require("https")},33873:e=>{e.exports=require("path")},79551:e=>{e.exports=require("url")},63086:(e,t,r)=>{r.r(t),r.d(t,{config:()=>h,default:()=>m,routeModule:()=>_});var s={};r.r(s),r.d(s,{default:()=>d});var a=r(89947),i=r(2706),o=r(96762),n=r(68829),l=r(83704);function u(e){if(!e?.match(/./))return"";if(e?.match(/ /))return e;if(!e)return null;{let t=e.split(""),r=[];for(let e=0;e",e.message),t.json({success:!1,msg:"Failed!"})}}let m=(0,o.M)(s,"default"),h=(0,o.M)(s,"config"),_=new a.PagesAPIRouteModule({definition:{kind:i.A.PAGES_API,page:"/api/social-login/github-auth",pathname:"/api/social-login/github-auth",bundlePath:"",filename:""},userland:s})},2402:(e,t,r)=>{r.r(t),r.d(t,{default:()=>i});var s=r(48786),a=r(61556);async function i({code:e,clientId:t,clientSecret:r}){let i;try{let o=await (0,a.A)({method:"POST",hostname:"github.com",path:`/login/oauth/access_token?client_id=${t}&client_secret=${r}&code=${e}`,headers:{Accept:"application/json","User-Agent":"*"},scheme:"https"}),n=JSON.parse(o);if(!n?.access_token)return i;let l=await (0,a.A)({method:"GET",hostname:"api.github.com",path:"/user",headers:{Authorization:`Bearer ${n.access_token}`,"User-Agent":"*"},scheme:"https"});if(i=JSON.parse(l),!i?.email&&i){let e=await (0,s.A)(`SELECT email FROM users WHERE social_login='1' AND social_platform='github' AND social_id='${i.id}'`);e&&e[0]&&(i.email=e[0].email)}}catch(e){console.log("ERROR in githubLogin.ts backend function =>",e.message)}return i}},89159:(e,t,r)=>{r.d(t,{A:()=>s});function s(e){let t=process.env.DSQL_COOKIES_PREFIX||"dsql_",r=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",a=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",i=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),o=t;e?.userId&&(o+=`user_${e.userId}_`),i&&(o+=`${i}_`),o+=r;let n=t;e?.userId&&(n+=`user_${e.userId}_`),i&&(n+=`${i}_`),n+=s;let l=t;return e?.userId&&(l+=`user_${e.userId}_`),i&&(l+=`${i}_`),{keyCookieName:o,csrfCookieName:n,oneTimeCodeName:l+=a}}},61556:(e,t,r)=>{r.d(t,{A:()=>l});var s=r(55591),a=r.n(s),i=r(81630),o=r.n(i),n=r(79551);function l({url:e,method:t,hostname:r,path:s,headers:i,body:l,port:u,scheme:c}){let p=l?JSON.stringify(l):null,d=e?new n.URL(e):null,m={method:t||"GET",hostname:d?d.hostname:r,port:c?.match(/https/i)?443:d?d.protocol?.match(/https/i)?443:d.port:u?Number(u):80,headers:{}};return s&&(m.path=s),i&&(m.headers=i),l&&(m.headers["Content-Type"]="application/json",m.headers["Content-Length"]=p?Buffer.from(p).length:void 0),new Promise((e,t)=>{let r=(c?.match(/https/i)?a():d?.protocol?.match(/https/i)?a():o()).request(m,r=>{var s="";r.on("data",function(e){s+=e}),r.on("end",function(){e(s)}),r.on("error",e=>{console.log("HTTP response error =>",e.message),t(`HTTP response error =>, ${e.message}`)}),r.on("close",()=>{console.log("HTTP(S) Response Closed Successfully")})});l&&r.write(p),r.on("error",e=>{console.log("HTTPS request ERROR =>",e.message),t(`HTTP request error =>, ${e.message}`)}),r.end()})}}};var t=require("../../../webpack-api-runtime.js");t.C(e);var r=e=>t(t.s=e),s=t.X(0,[1251,3704],()=>r(63086));module.exports=s})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=7551,e.ids=[7551],e.modules={47795:e=>{e.exports=require("generate-password")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},21572:e=>{e.exports=require("nodemailer")},72583:e=>{e.exports=require("sanitize-html")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},55591:e=>{e.exports=require("https")},33873:e=>{e.exports=require("path")},79551:e=>{e.exports=require("url")},63086:(e,t,r)=>{r.r(t),r.d(t,{config:()=>h,default:()=>m,routeModule:()=>_});var s={};r.r(s),r.d(s,{default:()=>d});var a=r(89947),i=r(2706),o=r(96762),n=r(68829),l=r(83704);function u(e){if(!e?.match(/./))return"";if(e?.match(/ /))return e;if(!e)return null;{let t=e.split(""),r=[];for(let e=0;e",e.message),t.json({success:!1,msg:"Failed!"})}}let m=(0,o.M)(s,"default"),h=(0,o.M)(s,"config"),_=new a.PagesAPIRouteModule({definition:{kind:i.A.PAGES_API,page:"/api/social-login/github-auth",pathname:"/api/social-login/github-auth",bundlePath:"",filename:""},userland:s})},2402:(e,t,r)=>{r.d(t,{A:()=>i});var s=r(48786),a=r(64166);async function i({code:e,clientId:t,clientSecret:r}){let i;try{let o=await (0,a.A)({method:"POST",hostname:"github.com",path:`/login/oauth/access_token?client_id=${t}&client_secret=${r}&code=${e}`,headers:{Accept:"application/json","User-Agent":"*"},scheme:"https"}),n=JSON.parse(o);if(!n?.access_token)return i;let l=await (0,a.A)({method:"GET",hostname:"api.github.com",path:"/user",headers:{Authorization:`Bearer ${n.access_token}`,"User-Agent":"*"},scheme:"https"});if(i=JSON.parse(l),!i?.email&&i){let e=await (0,s.A)(`SELECT email FROM users WHERE social_login='1' AND social_platform='github' AND social_id='${i.id}'`);e&&e[0]&&(i.email=e[0].email)}}catch(e){console.log("ERROR in githubLogin.ts backend function =>",e.message)}return i}},89159:(e,t,r)=>{r.d(t,{A:()=>s});function s(e){let t=process.env.DSQL_COOKIES_PREFIX||"dsql_",r=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",a=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",i=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),o=t;e?.userId&&(o+=`user_${e.userId}_`),i&&(o+=`${i}_`),o+=r;let n=t;e?.userId&&(n+=`user_${e.userId}_`),i&&(n+=`${i}_`),n+=s;let l=t;return e?.userId&&(l+=`user_${e.userId}_`),i&&(l+=`${i}_`),{keyCookieName:o,csrfCookieName:n,oneTimeCodeName:l+=a}}},64166:(e,t,r)=>{r.d(t,{A:()=>l});var s=r(55591),a=r.n(s);let i=require("http");var o=r.n(i),n=r(79551);function l({url:e,method:t,hostname:r,path:s,headers:i,body:l,port:u,scheme:c}){let p=l?JSON.stringify(l):null,d=e?new n.URL(e):null,m={method:t||"GET",hostname:d?d.hostname:r,port:c?.match(/https/i)?443:d?d.protocol?.match(/https/i)?443:d.port:u?Number(u):80,headers:{}};return s&&(m.path=s),i&&(m.headers=i),l&&(m.headers["Content-Type"]="application/json",m.headers["Content-Length"]=p?Buffer.from(p).length:void 0),new Promise((e,t)=>{let r=(c?.match(/https/i)?a():d?.protocol?.match(/https/i)?a():o()).request(m,r=>{var s="";r.on("data",function(e){s+=e}),r.on("end",function(){e(s)}),r.on("error",e=>{console.log("HTTP response error =>",e.message),t(`HTTP response error =>, ${e.message}`)}),r.on("close",()=>{console.log("HTTP(S) Response Closed Successfully")})});l&&r.write(p),r.on("error",e=>{console.log("HTTPS request ERROR =>",e.message),t(`HTTP request error =>, ${e.message}`)}),r.end()})}}};var t=require("../../../webpack-api-runtime.js");t.C(e);var r=e=>t(t.s=e),s=t.X(0,[1251,3704],()=>r(63086));module.exports=s})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/social-login/google-auth.js b/dsql-app/.local_dist/server/pages/api/social-login/google-auth.js index fdccd39..2b56c21 100644 --- a/dsql-app/.local_dist/server/pages/api/social-login/google-auth.js +++ b/dsql-app/.local_dist/server/pages/api/social-login/google-auth.js @@ -1 +1 @@ -"use strict";(()=>{var e={};e.id=7867,e.ids=[7867],e.modules={47795:e=>{e.exports=require("generate-password")},76154:e=>{e.exports=require("google-auth-library")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},21572:e=>{e.exports=require("nodemailer")},72583:e=>{e.exports=require("sanitize-html")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},59500:(e,r,s)=>{s.r(r),s.d(r,{config:()=>c,default:()=>p,routeModule:()=>m});var a={};s.r(a),s.d(a,{default:()=>_});var t=s(89947),i=s(2706),o=s(96762),l=s(68829),u=s(83704),d=s(89159);let{OAuth2Client:n}=s(76154);async function _(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let s=e.body,{invite:a}=e.query,{token:t}=s;try{let e=new n(""),s=(await e.verifyIdToken({idToken:t,audience:""})).getPayload();if(!s||!s.email_verified){r.json({user:null,msg:"Invalid Credentials"});return}let{given_name:i,family_name:o,email:_,sub:p,picture:c,email_verified:m}=s;if(!_)throw Error("No Email");let g=await (0,u.A)({email:_,payload:{email:_,first_name:i,last_name:o,social_id:p,social_platform:"google",image:c,image_thumbnail:c,username:`google-user-${p}`},social_platform:"google",social_id:p,invitation:a});if(g.payload?.csrf_k){let e=(0,l.default)({data:JSON.stringify(g.payload)}),{keyCookieName:s,csrfCookieName:a}=(0,d.A)();r.setHeader("Set-Cookie",[`${s}=${e};samesite=strict;path=/;HttpOnly=true;Secure=true`,`${a}=${g.payload.csrf_k};samesite=strict;path=/;HttpOnly=true`])}r.json(g)}catch(e){console.log(e.message),r.json({success:!1,msg:"Failed!"})}}s(67619);let p=(0,o.M)(a,"default"),c=(0,o.M)(a,"config"),m=new t.PagesAPIRouteModule({definition:{kind:i.A.PAGES_API,page:"/api/social-login/google-auth",pathname:"/api/social-login/google-auth",bundlePath:"",filename:""},userland:a})},89159:(e,r,s)=>{s.d(r,{A:()=>a});function a(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",s=process.env.DSQL_COOKIES_KEY_NAME||"key",a=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",t=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",i=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),o=r;e?.userId&&(o+=`user_${e.userId}_`),i&&(o+=`${i}_`),o+=s;let l=r;e?.userId&&(l+=`user_${e.userId}_`),i&&(l+=`${i}_`),l+=a;let u=r;return e?.userId&&(u+=`user_${e.userId}_`),i&&(u+=`${i}_`),{keyCookieName:o,csrfCookieName:l,oneTimeCodeName:u+=t}}}};var r=require("../../../webpack-api-runtime.js");r.C(e);var s=e=>r(r.s=e),a=r.X(0,[1251,3704],()=>s(59500));module.exports=a})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=7867,e.ids=[7867],e.modules={47795:e=>{e.exports=require("generate-password")},76154:e=>{e.exports=require("google-auth-library")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},21572:e=>{e.exports=require("nodemailer")},72583:e=>{e.exports=require("sanitize-html")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},59500:(e,r,s)=>{s.r(r),s.d(r,{config:()=>c,default:()=>p,routeModule:()=>m});var a={};s.r(a),s.d(a,{default:()=>_});var t=s(89947),i=s(2706),o=s(96762),l=s(76154),u=s(68829),n=s(83704),d=s(89159);async function _(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let s=e.body,{invite:a}=e.query,{token:t}=s;try{let e=new l.OAuth2Client(""),s=(await e.verifyIdToken({idToken:t,audience:""})).getPayload();if(!s||!s.email_verified){r.json({user:null,msg:"Invalid Credentials"});return}let{given_name:i,family_name:o,email:_,sub:p,picture:c,email_verified:m}=s;if(!_)throw Error("No Email");let g=await (0,n.A)({email:_,payload:{email:_,first_name:i,last_name:o,social_id:p,social_platform:"google",image:c,image_thumbnail:c,username:`google-user-${p}`},social_platform:"google",social_id:p,invitation:a});if(g.payload?.csrf_k){let e=(0,u.A)({data:JSON.stringify(g.payload)}),{keyCookieName:s,csrfCookieName:a}=(0,d.A)();r.setHeader("Set-Cookie",[`${s}=${e};samesite=strict;path=/;HttpOnly=true;Secure=true`,`${a}=${g.payload.csrf_k};samesite=strict;path=/;HttpOnly=true`])}r.json(g)}catch(e){console.log(e.message),r.json({success:!1,msg:"Failed!"})}}let p=(0,o.M)(a,"default"),c=(0,o.M)(a,"config"),m=new t.PagesAPIRouteModule({definition:{kind:i.A.PAGES_API,page:"/api/social-login/google-auth",pathname:"/api/social-login/google-auth",bundlePath:"",filename:""},userland:a})},89159:(e,r,s)=>{s.d(r,{A:()=>a});function a(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",s=process.env.DSQL_COOKIES_KEY_NAME||"key",a=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",t=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",i=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),o=r;e?.userId&&(o+=`user_${e.userId}_`),i&&(o+=`${i}_`),o+=s;let l=r;e?.userId&&(l+=`user_${e.userId}_`),i&&(l+=`${i}_`),l+=a;let u=r;return e?.userId&&(u+=`user_${e.userId}_`),i&&(u+=`${i}_`),{keyCookieName:o,csrfCookieName:l,oneTimeCodeName:u+=t}}}};var r=require("../../../webpack-api-runtime.js");r.C(e);var s=e=>r(r.s=e),a=r.X(0,[1251,3704],()=>s(59500));module.exports=a})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/sql-users/create.js b/dsql-app/.local_dist/server/pages/api/sql-users/create.js index 725550b..a97d2e3 100644 --- a/dsql-app/.local_dist/server/pages/api/sql-users/create.js +++ b/dsql-app/.local_dist/server/pages/api/sql-users/create.js @@ -1 +1 @@ -"use strict";(()=>{var e={};e.id=7889,e.ids=[7889],e.modules={60818:e=>{e.exports=require("dotenv")},47795:e=>{e.exports=require("generate-password")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},52795:(e,r,s)=>{s.r(r),s.d(r,{config:()=>f,default:()=>h,routeModule:()=>E});var t={};s.r(t),s.d(t,{default:()=>g});var a=s(89947),i=s(2706),o=s(96762),u=s(47795),n=s.n(u),d=s(69842),l=s(67619),c=s(48786),m=s(68829),p=s(5437);async function g(e,r){if("POST"!==e.method)return r.json({user:null,msg:"Registration Failed!"});let s=await (0,d.A)(e,r,!0);if(!s)return r.json({success:!1,msg:"Unauthorized"});let{data:t,edit:a,grants:i}=e.body;try{let e=process.env.DSQL_DB_HOST||"127.0.0.1",a=s?.id==Number(process.env.DSQL_SU_USER_ID),{host:o,password:u,username:d}=t,l=a&&d?.match(/./)?d:`dsql_user_${s.id}`;if(!o.match(/./))throw Error("Invalid host");let g=String(o).replace(/[^a-zA-Z0-9-\.\:\/\%]/g,""),h=u?.match(/./)?u:n().generate({length:16,numbers:!0,symbols:!0,uppercase:!0,exclude:"*#.'`\""}),f=await (0,c.A)("SELECT * FROM mysql.user WHERE User = ? AND (Host = ? OR Host = ?)",[l,g,e]);if(f?.[0]?.User)throw Error("SQL User already exists. Remember if you have the '%' host on your primary user, it catches all other hosts.");let E=await (0,c.A)("SELECT COUNT(*) FROM mariadb_users WHERE user_id = ?",[s.id]);if(E?.[0]?.["COUNT(*)"]>=10)throw Error("User limit reached");let S=(0,m.default)({data:h}),w=await (0,c.A)("INSERT INTO mariadb_users (user_id, username, host, password, grants) VALUES (?, ?, ?, ?, ?)",[s.id,l,g,S,JSON.stringify(i)]);if(!w?.insertId)throw Error("Error in adding SQL user");await (0,p.A)({userId:s.id,mariadbUsername:l,mariadbUserHost:g}),r.json({success:!0})}catch(e){console.log("Create MariaDB user ERROR:",e.message),(0,l.default)({component:"/api/acceptUserInvitation/catch-error",message:e.message,user:s}),r.json({success:!1,msg:"Error in adding SQL user =>"+e.message,err:e.message})}}let h=(0,o.M)(t,"default"),f=(0,o.M)(t,"config"),E=new a.PagesAPIRouteModule({definition:{kind:i.A.PAGES_API,page:"/api/sql-users/create",pathname:"/api/sql-users/create",bundlePath:"",filename:""},userland:t})}};var r=require("../../../webpack-api-runtime.js");r.C(e);var s=e=>r(r.s=e),t=r.X(0,[3496],()=>s(52795));module.exports=t})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=7889,e.ids=[7889],e.modules={60818:e=>{e.exports=require("dotenv")},47795:e=>{e.exports=require("generate-password")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},52795:(e,r,s)=>{s.r(r),s.d(r,{config:()=>f,default:()=>h,routeModule:()=>E});var t={};s.r(t),s.d(t,{default:()=>g});var a=s(89947),i=s(2706),o=s(96762),u=s(47795),n=s.n(u),d=s(69842),l=s(67619),c=s(48786),m=s(68829),p=s(5437);async function g(e,r){if("POST"!==e.method)return r.json({user:null,msg:"Registration Failed!"});let s=await (0,d.A)(e,r,!0);if(!s)return r.json({success:!1,msg:"Unauthorized"});let{data:t,edit:a,grants:i}=e.body;try{let e=process.env.DSQL_DB_HOST||"127.0.0.1",a=s?.id==Number(process.env.DSQL_SU_USER_ID),{host:o,password:u,username:d}=t,l=a&&d?.match(/./)?d:`dsql_user_${s.id}`;if(!o.match(/./))throw Error("Invalid host");let g=String(o).replace(/[^a-zA-Z0-9-\.\:\/\%]/g,""),h=u?.match(/./)?u:n().generate({length:16,numbers:!0,symbols:!0,uppercase:!0,exclude:"*#.'`\""}),f=await (0,c.A)("SELECT * FROM mysql.user WHERE User = ? AND (Host = ? OR Host = ?)",[l,g,e]);if(f?.[0]?.User)throw Error("SQL User already exists. Remember if you have the '%' host on your primary user, it catches all other hosts.");let E=await (0,c.A)("SELECT COUNT(*) FROM mariadb_users WHERE user_id = ?",[s.id]);if(E?.[0]?.["COUNT(*)"]>=10)throw Error("User limit reached");let S=(0,m.A)({data:h}),A=await (0,c.A)("INSERT INTO mariadb_users (user_id, username, host, password, grants) VALUES (?, ?, ?, ?, ?)",[s.id,l,g,S,JSON.stringify(i)]);if(!A?.insertId)throw Error("Error in adding SQL user");await (0,p.A)({userId:s.id,mariadbUsername:l,mariadbUserHost:g}),r.json({success:!0})}catch(e){console.log("Create MariaDB user ERROR:",e.message),(0,l.A)({component:"/api/acceptUserInvitation/catch-error",message:e.message,user:s}),r.json({success:!1,msg:"Error in adding SQL user =>"+e.message,err:e.message})}}let h=(0,o.M)(t,"default"),f=(0,o.M)(t,"config"),E=new a.PagesAPIRouteModule({definition:{kind:i.A.PAGES_API,page:"/api/sql-users/create",pathname:"/api/sql-users/create",bundlePath:"",filename:""},userland:t})}};var r=require("../../../webpack-api-runtime.js");r.C(e);var s=e=>r(r.s=e),t=r.X(0,[3496],()=>s(52795));module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/sql-users/delete.js b/dsql-app/.local_dist/server/pages/api/sql-users/delete.js index 224a4c3..bea7336 100644 --- a/dsql-app/.local_dist/server/pages/api/sql-users/delete.js +++ b/dsql-app/.local_dist/server/pages/api/sql-users/delete.js @@ -1,4 +1,4 @@ -"use strict";(()=>{var e={};e.id=536,e.ids=[536],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},56625:(e,r,t)=>{t.r(r),t.d(r,{config:()=>f,default:()=>d,routeModule:()=>_});var s={};t.r(s),t.d(s,{default:()=>l});var n=t(89947),o=t(2706),i=t(96762),a=t(69842),u=t(67619),c=t(48786);async function l(e,r){if("POST"!==e.method)return r.json({user:null,msg:"Registration Failed!"});let t=await (0,a.A)(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let{id:s}=e.body;try{let e=await (0,c.A)("SELECT * FROM mariadb_users WHERE id = ? AND user_id = ?",[s,t.id]),n=e?.[0];if(!n?.id)throw Error("Active User couldn't be verified");if(String(n.primary)?.match(/1/))throw Error("Cannot Delete Primary User");let o=n.username,i=n.host;await (0,c.A)("DELETE FROM mariadb_users WHERE user_id = ? AND id = ?",[t.id,n.id]),await (0,c.A)(`DROP USER '${o}'@'${i}'`),r.json({success:!0})}catch(e){(0,u.default)({component:"/api/acceptUserInvitation/catch-error",message:e.message,user:t}),r.json({success:!1,msg:"Error in adding SQL user =>"+e.message,err:e.message})}}let d=(0,i.M)(s,"default"),f=(0,i.M)(s,"config"),_=new n.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/sql-users/delete",pathname:"/api/sql-users/delete",bundlePath:"",filename:""},userland:s})},69842:(e,r,t)=>{t.d(r,{A:()=>u});var s=t(48786),n=t(95969),o=t(29021),i=t.n(o),a=t(89159);async function u(e,r,t){try{let{keyCookieName:o,csrfCookieName:u}=(0,a.A)();if(!e.cookies?.[o]?.match(/./))throw Error("Request Cookies not Found!");let c=(0,n.A)({encryptedString:e.cookies[o]});if(!c)throw Error("Couldn't decrypt auth cookie!");let l=JSON.parse(c);if(!l.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(l.csrf_k)))throw Error("Deep Auth Failed. `csrf` key not found in request headers!");let d=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!d)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!i().existsSync(`${d}/${l.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==l.verification_status&&!t){let e=await (0,s.A)(`SELECT verification_status FROM users WHERE id='${l.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(l?.date&&Date.now()-l.date>6048e5)throw Error("Key expired!");return l}catch(e){return console.log(`userAuth Error: ${e.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>s});function s(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",n=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",o=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),i=r;e?.userId&&(i+=`user_${e.userId}_`),o&&(i+=`${o}_`),i+=t;let a=r;e?.userId&&(a+=`user_${e.userId}_`),o&&(a+=`${o}_`),a+=s;let u=r;return e?.userId&&(u+=`user_${e.userId}_`),o&&(u+=`${o}_`),{keyCookieName:i,csrfCookieName:a,oneTimeCodeName:u+=n}}},67619:(e,r,t)=>{t.r(r),t.d(r,{default:()=>o});var s=t(29021),n=t.n(s);async function o({user:e,message:r,component:t,noMail:s,req:o}){let i=new Date,a=(()=>{if(!o)return null;try{let e=o.headers["x-forwarded-for"],r=o.headers["x-real-ip"],t=o.headers["cf-connecting-ip"],s=Array.isArray(e)?e[0]:e?.split(",")[0],n=t||s||r||o.socket.remoteAddress;if(!n)return null;return String(n)}catch(e){return null}})();try{let s=`🚀 SERVER ERROR =========================== +"use strict";(()=>{var e={};e.id=536,e.ids=[536],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},56625:(e,r,t)=>{t.r(r),t.d(r,{config:()=>f,default:()=>d,routeModule:()=>_});var s={};t.r(s),t.d(s,{default:()=>l});var n=t(89947),o=t(2706),i=t(96762),a=t(69842),u=t(67619),c=t(48786);async function l(e,r){if("POST"!==e.method)return r.json({user:null,msg:"Registration Failed!"});let t=await (0,a.A)(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let{id:s}=e.body;try{let e=await (0,c.A)("SELECT * FROM mariadb_users WHERE id = ? AND user_id = ?",[s,t.id]),n=e?.[0];if(!n?.id)throw Error("Active User couldn't be verified");if(String(n.primary)?.match(/1/))throw Error("Cannot Delete Primary User");let o=n.username,i=n.host;await (0,c.A)("DELETE FROM mariadb_users WHERE user_id = ? AND id = ?",[t.id,n.id]),await (0,c.A)(`DROP USER '${o}'@'${i}'`),r.json({success:!0})}catch(e){(0,u.A)({component:"/api/acceptUserInvitation/catch-error",message:e.message,user:t}),r.json({success:!1,msg:"Error in adding SQL user =>"+e.message,err:e.message})}}let d=(0,i.M)(s,"default"),f=(0,i.M)(s,"config"),_=new n.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/sql-users/delete",pathname:"/api/sql-users/delete",bundlePath:"",filename:""},userland:s})},69842:(e,r,t)=>{t.d(r,{A:()=>u});var s=t(48786),n=t(95969),o=t(29021),i=t.n(o),a=t(89159);async function u(e,r,t){try{let{keyCookieName:o,csrfCookieName:u}=(0,a.A)();if(!e.cookies?.[o]?.match(/./))throw Error("Request Cookies not Found!");let c=(0,n.A)({encryptedString:e.cookies[o]});if(!c)throw Error("Couldn't decrypt auth cookie!");let l=JSON.parse(c);if(!l.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(l.csrf_k)))throw console.log("req.headers",e.headers),console.log("userObject",l),Error("Deep Auth Failed. `csrf` key not found in request headers!");let d=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!d)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!i().existsSync(`${d}/${l.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==l.verification_status&&!t){let e=await (0,s.A)(`SELECT verification_status FROM users WHERE id='${l.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(l?.date&&Date.now()-l.date>6048e5)throw Error("Key expired!");return l}catch(e){return console.log(`userAuth Error: ${e.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>s});function s(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",n=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",o=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),i=r;e?.userId&&(i+=`user_${e.userId}_`),o&&(i+=`${o}_`),i+=t;let a=r;e?.userId&&(a+=`user_${e.userId}_`),o&&(a+=`${o}_`),a+=s;let u=r;return e?.userId&&(u+=`user_${e.userId}_`),o&&(u+=`${o}_`),{keyCookieName:i,csrfCookieName:a,oneTimeCodeName:u+=n}}},67619:(e,r,t)=>{t.d(r,{A:()=>o});var s=t(29021),n=t.n(s);async function o({user:e,message:r,component:t,noMail:s,req:o}){let i=new Date,a=(()=>{if(!o)return null;try{let e=o.headers["x-forwarded-for"],r=o.headers["x-real-ip"],t=o.headers["cf-connecting-ip"],s=Array.isArray(e)?e[0]:e?.split(",")[0],n=t||s||r||o.socket.remoteAddress;if(!n)return null;return String(n)}catch(e){return null}})();try{let s=`🚀 SERVER ERROR =========================== Error Message: ${r} Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(s+=` User Id: ${e?.id} diff --git a/dsql-app/.local_dist/server/pages/api/sql-users/update.js b/dsql-app/.local_dist/server/pages/api/sql-users/update.js index e3654d5..8ee105d 100644 --- a/dsql-app/.local_dist/server/pages/api/sql-users/update.js +++ b/dsql-app/.local_dist/server/pages/api/sql-users/update.js @@ -1 +1 @@ -"use strict";(()=>{var e={};e.id=2350,e.ids=[2350],e.modules={60818:e=>{e.exports=require("dotenv")},47795:e=>{e.exports=require("generate-password")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},49844:(e,r,s)=>{s.r(r),s.d(r,{config:()=>E,default:()=>c,routeModule:()=>f});var a={};s.r(a),s.d(a,{default:()=>m});var i=s(89947),t=s(2706),d=s(96762),o=s(69842),u=s(67619),n=s(48786),p=s(68829),l=s(5437);async function m(e,r){if("POST"!==e.method)return r.json({user:null,msg:"Registration Failed!"});let s=await (0,o.A)(e,r,!0);if(!s)return r.json({success:!1,msg:"Unauthorized"});let{data:a,edit:i,prev:t,grants:d}=e.body;try{if(!t?.id)throw Error("Invalid existing DB entry");let e=await (0,n.A)("SELECT * FROM mariadb_users WHERE id = ? AND user_id = ?",[t.id,s.id]),i=s?.id==Number(process.env.DSQL_SU_USER_ID),o=e?.[0];if(!o?.id)throw Error("Active User couldn't be verified");let{host:u,password:m,username:c}=a,E=i&&c||`dsql_user_${s.id}`;if(!u)throw Error("No host provided");let f=String(u).replace(/[^a-zA-Z0-9-\.\:\/\%]/g,"");if(o.host!=a.host||o.username!=E){let e=await (0,n.A)("SELECT * FROM mariadb_users WHERE user_id=? AND username=? AND host=?",[s.id,E,f]);e?.[0]?.id||await (0,n.A)(`RENAME USER '${t.username}'@'${o.host}' TO '${E}'@'${f}'`)}let g=(0,p.default)({data:m}),A=g==o.password?o.password:g;await (0,n.A)("UPDATE mariadb_users SET username=?, host=?, password=?, grants=? WHERE id=?",[E,f,A,JSON.stringify(d),o.id]),await (0,n.A)(`SET PASSWORD FOR '${E}'@'${f}' = PASSWORD('${m}');`),await (0,l.A)({userId:s.id,mariadbUsername:E,mariadbUserHost:f,sqlUserID:o.id}),r.json({success:!0})}catch(e){(0,u.default)({component:"/api/acceptUserInvitation/catch-error",message:e.message,user:s}),r.json({success:!1,msg:"Error in adding SQL user =>"+e.message,err:e.message})}}s(29021);let c=(0,d.M)(a,"default"),E=(0,d.M)(a,"config"),f=new i.PagesAPIRouteModule({definition:{kind:t.A.PAGES_API,page:"/api/sql-users/update",pathname:"/api/sql-users/update",bundlePath:"",filename:""},userland:a})}};var r=require("../../../webpack-api-runtime.js");r.C(e);var s=e=>r(r.s=e),a=r.X(0,[3496],()=>s(49844));module.exports=a})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=2350,e.ids=[2350],e.modules={60818:e=>{e.exports=require("dotenv")},47795:e=>{e.exports=require("generate-password")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},49844:(e,r,s)=>{s.r(r),s.d(r,{config:()=>A,default:()=>c,routeModule:()=>E});var i={};s.r(i),s.d(i,{default:()=>m});var a=s(89947),t=s(2706),d=s(96762),o=s(69842),u=s(67619),n=s(48786),p=s(68829),l=s(5437);async function m(e,r){if("POST"!==e.method)return r.json({user:null,msg:"Registration Failed!"});let s=await (0,o.A)(e,r,!0);if(!s)return r.json({success:!1,msg:"Unauthorized"});let{data:i,edit:a,prev:t,grants:d}=e.body;try{if(!t?.id)throw Error("Invalid existing DB entry");let e=await (0,n.A)("SELECT * FROM mariadb_users WHERE id = ? AND user_id = ?",[t.id,s.id]),a=s?.id==Number(process.env.DSQL_SU_USER_ID),o=e?.[0];if(!o?.id)throw Error("Active User couldn't be verified");let{host:u,password:m,username:c}=i,A=a&&c||`dsql_user_${s.id}`;if(!u)throw Error("No host provided");let E=String(u).replace(/[^a-zA-Z0-9-\.\:\/\%]/g,"");if(o.host!=i.host||o.username!=A){let e=await (0,n.A)("SELECT * FROM mariadb_users WHERE user_id=? AND username=? AND host=?",[s.id,A,E]);e?.[0]?.id||await (0,n.A)(`RENAME USER '${t.username}'@'${o.host}' TO '${A}'@'${E}'`)}let g=(0,p.A)({data:m}),f=g==o.password?o.password:g;await (0,n.A)("UPDATE mariadb_users SET username=?, host=?, password=?, grants=? WHERE id=?",[A,E,f,JSON.stringify(d),o.id]),await (0,n.A)(`SET PASSWORD FOR '${A}'@'${E}' = PASSWORD('${m}');`),await (0,l.A)({userId:s.id,mariadbUsername:A,mariadbUserHost:E,sqlUserID:o.id}),r.json({success:!0})}catch(e){(0,u.A)({component:"/api/acceptUserInvitation/catch-error",message:e.message,user:s}),r.json({success:!1,msg:"Error in adding SQL user =>"+e.message,err:e.message})}}let c=(0,d.M)(i,"default"),A=(0,d.M)(i,"config"),E=new a.PagesAPIRouteModule({definition:{kind:t.A.PAGES_API,page:"/api/sql-users/update",pathname:"/api/sql-users/update",bundlePath:"",filename:""},userland:i})}};var r=require("../../../webpack-api-runtime.js");r.C(e);var s=e=>r(r.s=e),i=r.X(0,[3496],()=>s(49844));module.exports=i})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/sync-table-data.js b/dsql-app/.local_dist/server/pages/api/sync-table-data.js index 15a568a..1f917c2 100644 --- a/dsql-app/.local_dist/server/pages/api/sync-table-data.js +++ b/dsql-app/.local_dist/server/pages/api/sync-table-data.js @@ -1,4 +1,4 @@ -"use strict";(()=>{var e={};e.id=538,e.ids=[538],e.modules={27825:e=>{e.exports=require("lodash")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},72583:e=>{e.exports=require("sanitize-html")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},69653:(e,r,t)=>{t.r(r),t.d(r,{config:()=>S,default:()=>b,routeModule:()=>g});var a={};t.r(a),t.d(a,{default:()=>m});var s=t(89947),o=t(2706),i=t(96762),n=t(67619),l=t(69842),d=t(27825),u=t.n(d),c=t(48786),p=t(33170);async function _({tbls:e,user:r,query:t}){let a;if(!t?.delegated)return{isPriviledged:!0,rootUserId:r.id};try{for(let t=0;te.dbFullName==l),b=n.find(e=>e.dbFullName==d),S=m?.tables.find(e=>e.tableName==o.table),g=b?.tables.find(e=>e.tableName==s.table);if(!S||!g)throw Error("Operation Failed! Tables Schemas not present.");if(!u().isEqual(g.fields,S.fields))throw Error("Tables incompatible");switch(a){case"Push":let y=await (0,c.A)(`SELECT * FROM ${d}.${s.table}`),h=await (0,p.A)({dbName:o.db,paradigm:"import",payload:y,tableName:o.table,userId:i.rootUserId,payloadType:"object"});return await E({dbName:o.db,tableName:o.table,data:y,userId:i.rootUserId}),r.json({success:!0,payload:h});case"Pull":let $=await (0,c.A)(`SELECT * FROM ${l}.${o.table}`),v=await (0,p.A)({dbName:s.db,paradigm:"import",payload:$,tableName:s.table,userId:i.rootUserId,payloadType:"object"});return await E({dbName:s.db,tableName:s.table,data:$,userId:i.rootUserId}),r.json({success:!0,payload:v})}r.json({success:!1})}catch(e){console.log(e.message),(0,n.default)({component:"/api/sync-table-data",message:e.message,user:t}),r.json({success:!1,msg:e.message})}}async function E({dbName:e,tableName:r,data:t,userId:a}){let s=`${process.env.DSQL_USER_DB_PREFIX}${a}_${e.replace(/ /g,"")}`,o=t.map(e=>e.id),i=`DELETE FROM ${s}.${r}`;o?.[0]&&(i+=` WHERE id NOT IN (${o.join(",")})`),await (0,c.A)(i)}let b=(0,i.M)(a,"default"),S=(0,i.M)(a,"config"),g=new s.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/sync-table-data",pathname:"/api/sync-table-data",bundlePath:"",filename:""},userland:a})},33170:(e,r,t)=>{t.d(r,{A:()=>i});var a=t(98e3),s=t(67619),o=t(48786);async function i({paradigm:e,userId:r,dbName:t,tableName:i,payload:n,payloadType:l}){let d={};try{let s=`${process.env.DSQL_USER_DB_PREFIX}${r}_${t.replace(/ /g,"")}`;switch(e){case"export":let u=await (0,o.A)(`SELECT * FROM \`${s}\`.\`${i}\``);d.tableData=u;break;case"import":let c="base64"==l?Buffer.from(n,"base64").toString():n,p="object"===l?n:JSON.parse(c);for(let e=0;e{t.d(r,{A:()=>l});var a=t(48786),s=t(95969),o=t(29021),i=t.n(o),n=t(89159);async function l(e,r,t){try{let{keyCookieName:o,csrfCookieName:l}=(0,n.A)();if(!e.cookies?.[o]?.match(/./))throw Error("Request Cookies not Found!");let d=(0,s.A)({encryptedString:e.cookies[o]});if(!d)throw Error("Couldn't decrypt auth cookie!");let u=JSON.parse(d);if(!u.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(u.csrf_k)))throw Error("Deep Auth Failed. `csrf` key not found in request headers!");let c=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!c)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!i().existsSync(`${c}/${u.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==u.verification_status&&!t){let e=await (0,a.A)(`SELECT verification_status FROM users WHERE id='${u.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(u?.date&&Date.now()-u.date>6048e5)throw Error("Key expired!");return u}catch(e){return console.log(`userAuth Error: ${e.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>a});function a(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",a=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",s=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",o=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),i=r;e?.userId&&(i+=`user_${e.userId}_`),o&&(i+=`${o}_`),i+=t;let n=r;e?.userId&&(n+=`user_${e.userId}_`),o&&(n+=`${o}_`),n+=a;let l=r;return e?.userId&&(l+=`user_${e.userId}_`),o&&(l+=`${o}_`),{keyCookieName:i,csrfCookieName:n,oneTimeCodeName:l+=s}}},4820:(e,r,t)=>{t.d(r,{A:()=>l});var a=t(67619),s=t(29021),o=t.n(s),i=t(33873),n=t.n(i);function l({userId:e}){try{let r=n().resolve(process.cwd(),`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${e}/main.json`);return JSON.parse(o().readFileSync(r,"utf-8"))}catch(e){return(0,a.default)({component:"grabUserSchemaData",message:e.message}),null}}},67619:(e,r,t)=>{t.r(r),t.d(r,{default:()=>o});var a=t(29021),s=t.n(a);async function o({user:e,message:r,component:t,noMail:a,req:o}){let i=new Date,n=(()=>{if(!o)return null;try{let e=o.headers["x-forwarded-for"],r=o.headers["x-real-ip"],t=o.headers["cf-connecting-ip"],a=Array.isArray(e)?e[0]:e?.split(",")[0],s=t||a||r||o.socket.remoteAddress;if(!s)return null;return String(s)}catch(e){return null}})();try{let a=`🚀 SERVER ERROR =========================== +"use strict";(()=>{var e={};e.id=538,e.ids=[538],e.modules={27825:e=>{e.exports=require("lodash")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},72583:e=>{e.exports=require("sanitize-html")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},69653:(e,r,t)=>{t.r(r),t.d(r,{config:()=>S,default:()=>b,routeModule:()=>g});var a={};t.r(a),t.d(a,{default:()=>m});var s=t(89947),o=t(2706),i=t(96762),n=t(67619),l=t(69842),d=t(27825),c=t.n(d),u=t(48786),p=t(33170);async function _({tbls:e,user:r,query:t}){let a;if(!t?.delegated)return{isPriviledged:!0,rootUserId:r.id};try{for(let t=0;te.dbFullName==l),b=n.find(e=>e.dbFullName==d),S=m?.tables.find(e=>e.tableName==o.table),g=b?.tables.find(e=>e.tableName==s.table);if(!S||!g)throw Error("Operation Failed! Tables Schemas not present.");if(!c().isEqual(g.fields,S.fields))throw Error("Tables incompatible");switch(a){case"Push":let h=await (0,u.A)(`SELECT * FROM ${d}.${s.table}`),y=await (0,p.A)({dbName:o.db,paradigm:"import",payload:h,tableName:o.table,userId:i.rootUserId,payloadType:"object"});return await E({dbName:o.db,tableName:o.table,data:h,userId:i.rootUserId}),r.json({success:!0,payload:y});case"Pull":let $=await (0,u.A)(`SELECT * FROM ${l}.${o.table}`),A=await (0,p.A)({dbName:s.db,paradigm:"import",payload:$,tableName:s.table,userId:i.rootUserId,payloadType:"object"});return await E({dbName:s.db,tableName:s.table,data:$,userId:i.rootUserId}),r.json({success:!0,payload:A})}r.json({success:!1})}catch(e){console.log(e.message),(0,n.A)({component:"/api/sync-table-data",message:e.message,user:t}),r.json({success:!1,msg:e.message})}}async function E({dbName:e,tableName:r,data:t,userId:a}){let s=`${process.env.DSQL_USER_DB_PREFIX}${a}_${e.replace(/ /g,"")}`,o=t.map(e=>e.id),i=`DELETE FROM ${s}.${r}`;o?.[0]&&(i+=` WHERE id NOT IN (${o.join(",")})`),await (0,u.A)(i)}let b=(0,i.M)(a,"default"),S=(0,i.M)(a,"config"),g=new s.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/sync-table-data",pathname:"/api/sync-table-data",bundlePath:"",filename:""},userland:a})},33170:(e,r,t)=>{t.d(r,{A:()=>i});var a=t(98e3),s=t(67619),o=t(48786);async function i({paradigm:e,userId:r,dbName:t,tableName:i,payload:n,payloadType:l}){let d={};try{let s=`${process.env.DSQL_USER_DB_PREFIX}${r}_${t.replace(/ /g,"")}`;switch(e){case"export":let c=await (0,o.A)(`SELECT * FROM \`${s}\`.\`${i}\``);d.tableData=c;break;case"import":let u="base64"==l?Buffer.from(n,"base64").toString():n,p="object"===l?n:JSON.parse(u);for(let e=0;e{t.d(r,{A:()=>l});var a=t(48786),s=t(95969),o=t(29021),i=t.n(o),n=t(89159);async function l(e,r,t){try{let{keyCookieName:o,csrfCookieName:l}=(0,n.A)();if(!e.cookies?.[o]?.match(/./))throw Error("Request Cookies not Found!");let d=(0,s.A)({encryptedString:e.cookies[o]});if(!d)throw Error("Couldn't decrypt auth cookie!");let c=JSON.parse(d);if(!c.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(c.csrf_k)))throw console.log("req.headers",e.headers),console.log("userObject",c),Error("Deep Auth Failed. `csrf` key not found in request headers!");let u=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!u)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!i().existsSync(`${u}/${c.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==c.verification_status&&!t){let e=await (0,a.A)(`SELECT verification_status FROM users WHERE id='${c.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(c?.date&&Date.now()-c.date>6048e5)throw Error("Key expired!");return c}catch(e){return console.log(`userAuth Error: ${e.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>a});function a(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",a=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",s=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",o=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),i=r;e?.userId&&(i+=`user_${e.userId}_`),o&&(i+=`${o}_`),i+=t;let n=r;e?.userId&&(n+=`user_${e.userId}_`),o&&(n+=`${o}_`),n+=a;let l=r;return e?.userId&&(l+=`user_${e.userId}_`),o&&(l+=`${o}_`),{keyCookieName:i,csrfCookieName:n,oneTimeCodeName:l+=s}}},4820:(e,r,t)=>{t.d(r,{A:()=>l});var a=t(67619),s=t(29021),o=t.n(s),i=t(33873),n=t.n(i);function l({userId:e}){try{let r=n().resolve(process.cwd(),`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${e}/main.json`);return JSON.parse(o().readFileSync(r,"utf-8"))}catch(e){return(0,a.A)({component:"grabUserSchemaData",message:e.message}),null}}},67619:(e,r,t)=>{t.d(r,{A:()=>o});var a=t(29021),s=t.n(a);async function o({user:e,message:r,component:t,noMail:a,req:o}){let i=new Date,n=(()=>{if(!o)return null;try{let e=o.headers["x-forwarded-for"],r=o.headers["x-real-ip"],t=o.headers["cf-connecting-ip"],a=Array.isArray(e)?e[0]:e?.split(",")[0],s=t||a||r||o.socket.remoteAddress;if(!s)return null;return String(s)}catch(e){return null}})();try{let a=`🚀 SERVER ERROR =========================== Error Message: ${r} Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(a+=` User Id: ${e?.id} @@ -13,4 +13,4 @@ Date: ${i.toDateString()} -${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},95969:(e,r,t)=>{t.d(r,{A:()=>o});var a=t(55511),s=t(79428);function o({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let o=r||process.env.DSQL_ENCRYPTION_PASSWORD,i=t||process.env.DSQL_ENCRYPTION_SALT,n=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!o?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let l=(0,a.scryptSync)(o,i,n),d=s.Buffer.alloc(16,0),u=(0,a.createDecipheriv)("aes-192-cbc",l,d);try{let r=u.update(e,"hex","utf8");return r+=u.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=e=>r(r.s=e),a=r.X(0,[1251],()=>t(69653));module.exports=a})(); \ No newline at end of file +${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},95969:(e,r,t)=>{t.d(r,{A:()=>o});var a=t(55511),s=t(79428);function o({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let o=r||process.env.DSQL_ENCRYPTION_PASSWORD,i=t||process.env.DSQL_ENCRYPTION_SALT,n=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!o?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let l=(0,a.scryptSync)(o,i,n),d=s.Buffer.alloc(16,0),c=(0,a.createDecipheriv)("aes-192-cbc",l,d);try{let r=c.update(e,"hex","utf8");return r+=c.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=e=>r(r.s=e),a=r.X(0,[1251],()=>t(69653));module.exports=a})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/test/mail.js b/dsql-app/.local_dist/server/pages/api/test/mail.js index 2e4e7a3..6084531 100644 --- a/dsql-app/.local_dist/server/pages/api/test/mail.js +++ b/dsql-app/.local_dist/server/pages/api/test/mail.js @@ -1,4 +1,4 @@ -"use strict";(()=>{var e={};e.id=5116,e.ids=[5116],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},21572:e=>{e.exports=require("nodemailer")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},5068:(e,r,t)=>{t.r(r),t.d(r,{config:()=>d,default:()=>c,routeModule:()=>p});var n={};t.r(n),t.d(n,{default:()=>u});var s=t(89947),a=t(2706),i=t(96762),o=t(96052),l=t(67619);async function u(e,r){if("GET"!==e.method)return r.json({msg:"Failed!"});try{await (0,o.default)({alias:"support",html:"

Test Mail

Hi there DSQL. Firing up on all systems now.

",subject:"Test Mail",text:"Test Mail",to:"dexomediaorg@gmail.com"}),r.json({success:!0})}catch(e){(0,l.default)({component:"/api/addUserMedia/catch-error",message:e.message}),r.json({success:!1,msg:"Database Files could not be written!"})}}let c=(0,i.M)(n,"default"),d=(0,i.M)(n,"config"),p=new s.PagesAPIRouteModule({definition:{kind:a.A.PAGES_API,page:"/api/test/mail",pathname:"/api/test/mail",bundlePath:"",filename:""},userland:n})},96052:(e,r,t)=>{t.r(r),t.d(r,{default:()=>o});var n=t(29021),s=t.n(n),a=t(21572);let i=t.n(a)().createTransport({host:process.env.DSQL_MAIL_HOST,port:465,secure:!0,auth:{user:process.env.DSQL_MAIL_EMAIL,pass:process.env.DSQL_MAIL_PASSWORD}});async function o({to:e,subject:r,text:t,html:n,alias:a,senderName:o}){let l;if(!process.env.DSQL_MAIL_HOST||!process.env.DSQL_MAIL_EMAIL||!process.env.DSQL_MAIL_PASSWORD)return null;let u=(a?.match(/support/i),process.env.DSQL_MAIL_EMAIL);if(!s().existsSync("./email/index.html"))return;let c=s().readFileSync("./email/index.html","utf8").replace(/{{email_body}}/,n||"").replace(/{{issue_date}}/,Date().substring(0,24));try{let n={};n.from=`"${o||"Datasquirel"}" <${u}>`,n.sender=u,a&&(n.replyTo=u),n.to=e,n.subject=r,n.text=t,n.html=c,l=await i.sendMail(n)}catch(e){console.log("ERROR in handleNodemailer Function =>",e.message)}return l}},67619:(e,r,t)=>{t.r(r),t.d(r,{default:()=>a});var n=t(29021),s=t.n(n);async function a({user:e,message:r,component:t,noMail:n,req:a}){let i=new Date,o=(()=>{if(!a)return null;try{let e=a.headers["x-forwarded-for"],r=a.headers["x-real-ip"],t=a.headers["cf-connecting-ip"],n=Array.isArray(e)?e[0]:e?.split(",")[0],s=t||n||r||a.socket.remoteAddress;if(!s)return null;return String(s)}catch(e){return null}})();try{let n=`🚀 SERVER ERROR =========================== +"use strict";(()=>{var e={};e.id=5116,e.ids=[5116],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},21572:e=>{e.exports=require("nodemailer")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},5068:(e,r,t)=>{t.r(r),t.d(r,{config:()=>d,default:()=>c,routeModule:()=>p});var n={};t.r(n),t.d(n,{default:()=>u});var s=t(89947),a=t(2706),i=t(96762),o=t(96052),l=t(67619);async function u(e,r){if("GET"!==e.method)return r.json({msg:"Failed!"});try{await (0,o.A)({alias:"support",html:"

Test Mail

Hi there DSQL. Firing up on all systems now.

",subject:"Test Mail",text:"Test Mail",to:"dexomediaorg@gmail.com"}),r.json({success:!0})}catch(e){(0,l.A)({component:"/api/addUserMedia/catch-error",message:e.message}),r.json({success:!1,msg:"Database Files could not be written!"})}}let c=(0,i.M)(n,"default"),d=(0,i.M)(n,"config"),p=new s.PagesAPIRouteModule({definition:{kind:a.A.PAGES_API,page:"/api/test/mail",pathname:"/api/test/mail",bundlePath:"",filename:""},userland:n})},96052:(e,r,t)=>{t.d(r,{A:()=>o});var n=t(29021),s=t.n(n),a=t(21572);let i=t.n(a)().createTransport({host:process.env.DSQL_MAIL_HOST,port:465,secure:!0,auth:{user:process.env.DSQL_MAIL_EMAIL,pass:process.env.DSQL_MAIL_PASSWORD}});async function o({to:e,subject:r,text:t,html:n,alias:a,senderName:o}){let l;if(!process.env.DSQL_MAIL_HOST||!process.env.DSQL_MAIL_EMAIL||!process.env.DSQL_MAIL_PASSWORD)return null;let u=(a?.match(/support/i),process.env.DSQL_MAIL_EMAIL);if(!s().existsSync("./email/index.html"))return;let c=s().readFileSync("./email/index.html","utf8").replace(/{{email_body}}/,n||"").replace(/{{issue_date}}/,Date().substring(0,24));try{let n={};n.from=`"${o||"Datasquirel"}" <${u}>`,n.sender=u,a&&(n.replyTo=u),n.to=e,n.subject=r,n.text=t,n.html=c,l=await i.sendMail(n)}catch(e){console.log("ERROR in handleNodemailer Function =>",e.message)}return l}},67619:(e,r,t)=>{t.d(r,{A:()=>a});var n=t(29021),s=t.n(n);async function a({user:e,message:r,component:t,noMail:n,req:a}){let i=new Date,o=(()=>{if(!a)return null;try{let e=a.headers["x-forwarded-for"],r=a.headers["x-real-ip"],t=a.headers["cf-connecting-ip"],n=Array.isArray(e)?e[0]:e?.split(",")[0],s=t||n||r||a.socket.remoteAddress;if(!s)return null;return String(s)}catch(e){return null}})();try{let n=`🚀 SERVER ERROR =========================== Error Message: ${r} Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(n+=` User Id: ${e?.id} diff --git a/dsql-app/.local_dist/server/pages/api/updateAdminUserAccess.js b/dsql-app/.local_dist/server/pages/api/updateAdminUserAccess.js index 7792dca..df23730 100644 --- a/dsql-app/.local_dist/server/pages/api/updateAdminUserAccess.js +++ b/dsql-app/.local_dist/server/pages/api/updateAdminUserAccess.js @@ -1 +1 @@ -"use strict";(()=>{var e={};e.id=294,e.ids=[294],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},72583:e=>{e.exports=require("sanitize-html")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},79646:e=>{e.exports=require("child_process")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},7522:(e,r,s)=>{s.r(r),s.d(r,{config:()=>p,default:()=>_,routeModule:()=>f});var t={};s.r(t),s.d(t,{default:()=>c});var i=s(89947),a=s(2706),o=s(96762),n=s(48786),d=s(69842),u=s(98e3);s(29021),s(33873);let{execSync:l}=s(79646);async function c(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let s=await (0,d.A)(e,r,!0);if(!s)return r.json({success:!1,msg:"Unauthorized"});let{userObject:t,database_access:i,user_priviledge:a,db_tables:o,inv_user_id:l}=e.body,c=await (0,n.A)("UPDATE user_users SET database_access = ? ,user_priviledge = ? WHERE user_id = ? AND email = ?",[i,a,s.id,t.email]),_=o.split("|");await (0,n.A)(`DELETE FROM delegated_user_tables WHERE root_user_id='${s.id}' AND delegated_user_id='${l}'`);for(let e=0;e<_.length;e++){let[r,t]=_[e].split("-");await (0,u.A)({dbFullName:"datasquirel",tableName:"delegated_user_tables",data:{delegated_user_id:l,root_user_id:s.id,database:r,table:t,priviledge:a}})}r.json({success:!!c?.affectedRows})}let _=(0,o.M)(t,"default"),p=(0,o.M)(t,"config"),f=new i.PagesAPIRouteModule({definition:{kind:a.A.PAGES_API,page:"/api/updateAdminUserAccess",pathname:"/api/updateAdminUserAccess",bundlePath:"",filename:""},userland:t})},69842:(e,r,s)=>{s.d(r,{A:()=>d});var t=s(48786),i=s(95969),a=s(29021),o=s.n(a),n=s(89159);async function d(e,r,s){try{let{keyCookieName:a,csrfCookieName:d}=(0,n.A)();if(!e.cookies?.[a]?.match(/./))throw Error("Request Cookies not Found!");let u=(0,i.A)({encryptedString:e.cookies[a]});if(!u)throw Error("Couldn't decrypt auth cookie!");let l=JSON.parse(u);if(!l.csrf_k)throw Error("No `csrf_k` present in user Object!");if(s&&!Object.keys(e.headers).find(e=>e.includes(l.csrf_k)))throw Error("Deep Auth Failed. `csrf` key not found in request headers!");let c=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!c)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(s&&!o().existsSync(`${c}/${l.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==l.verification_status&&!s){let e=await (0,t.A)(`SELECT verification_status FROM users WHERE id='${l.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(l?.date&&Date.now()-l.date>6048e5)throw Error("Key expired!");return l}catch(e){return console.log(`userAuth Error: ${e.message}`),null}}},89159:(e,r,s)=>{s.d(r,{A:()=>t});function t(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",s=process.env.DSQL_COOKIES_KEY_NAME||"key",t=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",i=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",a=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),o=r;e?.userId&&(o+=`user_${e.userId}_`),a&&(o+=`${a}_`),o+=s;let n=r;e?.userId&&(n+=`user_${e.userId}_`),a&&(n+=`${a}_`),n+=t;let d=r;return e?.userId&&(d+=`user_${e.userId}_`),a&&(d+=`${a}_`),{keyCookieName:o,csrfCookieName:n,oneTimeCodeName:d+=i}}},95969:(e,r,s)=>{s.d(r,{A:()=>a});var t=s(55511),i=s(79428);function a({encryptedString:e,encryptionKey:r,encryptionSalt:s}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let a=r||process.env.DSQL_ENCRYPTION_PASSWORD,o=s||process.env.DSQL_ENCRYPTION_SALT,n=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!a?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!o?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let d=(0,t.scryptSync)(a,o,n),u=i.Buffer.alloc(16,0),l=(0,t.createDecipheriv)("aes-192-cbc",d,u);try{let r=l.update(e,"hex","utf8");return r+=l.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}}};var r=require("../../webpack-api-runtime.js");r.C(e);var s=e=>r(r.s=e),t=r.X(0,[1251],()=>s(7522));module.exports=t})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=294,e.ids=[294],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},72583:e=>{e.exports=require("sanitize-html")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},7522:(e,r,s)=>{s.r(r),s.d(r,{config:()=>_,default:()=>c,routeModule:()=>f});var t={};s.r(t),s.d(t,{default:()=>l});var i=s(89947),o=s(2706),a=s(96762),n=s(48786),d=s(69842),u=s(98e3);async function l(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let s=await (0,d.A)(e,r,!0);if(!s)return r.json({success:!1,msg:"Unauthorized"});let{userObject:t,database_access:i,user_priviledge:o,db_tables:a,inv_user_id:l}=e.body,c=await (0,n.A)("UPDATE user_users SET database_access = ? ,user_priviledge = ? WHERE user_id = ? AND email = ?",[i,o,s.id,t.email]),_=a.split("|");await (0,n.A)(`DELETE FROM delegated_user_tables WHERE root_user_id='${s.id}' AND delegated_user_id='${l}'`);for(let e=0;e<_.length;e++){let[r,t]=_[e].split("-");await (0,u.A)({dbFullName:"datasquirel",tableName:"delegated_user_tables",data:{delegated_user_id:l,root_user_id:s.id,database:r,table:t,priviledge:o}})}r.json({success:!!c?.affectedRows})}let c=(0,a.M)(t,"default"),_=(0,a.M)(t,"config"),f=new i.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/updateAdminUserAccess",pathname:"/api/updateAdminUserAccess",bundlePath:"",filename:""},userland:t})},69842:(e,r,s)=>{s.d(r,{A:()=>d});var t=s(48786),i=s(95969),o=s(29021),a=s.n(o),n=s(89159);async function d(e,r,s){try{let{keyCookieName:o,csrfCookieName:d}=(0,n.A)();if(!e.cookies?.[o]?.match(/./))throw Error("Request Cookies not Found!");let u=(0,i.A)({encryptedString:e.cookies[o]});if(!u)throw Error("Couldn't decrypt auth cookie!");let l=JSON.parse(u);if(!l.csrf_k)throw Error("No `csrf_k` present in user Object!");if(s&&!Object.keys(e.headers).find(e=>e.includes(l.csrf_k)))throw console.log("req.headers",e.headers),console.log("userObject",l),Error("Deep Auth Failed. `csrf` key not found in request headers!");let c=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!c)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(s&&!a().existsSync(`${c}/${l.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==l.verification_status&&!s){let e=await (0,t.A)(`SELECT verification_status FROM users WHERE id='${l.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(l?.date&&Date.now()-l.date>6048e5)throw Error("Key expired!");return l}catch(e){return console.log(`userAuth Error: ${e.message}`),null}}},89159:(e,r,s)=>{s.d(r,{A:()=>t});function t(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",s=process.env.DSQL_COOKIES_KEY_NAME||"key",t=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",i=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",o=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),a=r;e?.userId&&(a+=`user_${e.userId}_`),o&&(a+=`${o}_`),a+=s;let n=r;e?.userId&&(n+=`user_${e.userId}_`),o&&(n+=`${o}_`),n+=t;let d=r;return e?.userId&&(d+=`user_${e.userId}_`),o&&(d+=`${o}_`),{keyCookieName:a,csrfCookieName:n,oneTimeCodeName:d+=i}}},95969:(e,r,s)=>{s.d(r,{A:()=>o});var t=s(55511),i=s(79428);function o({encryptedString:e,encryptionKey:r,encryptionSalt:s}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let o=r||process.env.DSQL_ENCRYPTION_PASSWORD,a=s||process.env.DSQL_ENCRYPTION_SALT,n=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!o?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!a?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let d=(0,t.scryptSync)(o,a,n),u=i.Buffer.alloc(16,0),l=(0,t.createDecipheriv)("aes-192-cbc",d,u);try{let r=l.update(e,"hex","utf8");return r+=l.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}}};var r=require("../../webpack-api-runtime.js");r.C(e);var s=e=>r(r.s=e),t=r.X(0,[1251],()=>s(7522));module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/updateClonedTableForeignKeys.js b/dsql-app/.local_dist/server/pages/api/updateClonedTableForeignKeys.js index 866900b..63ef1ae 100644 --- a/dsql-app/.local_dist/server/pages/api/updateClonedTableForeignKeys.js +++ b/dsql-app/.local_dist/server/pages/api/updateClonedTableForeignKeys.js @@ -1 +1 @@ -"use strict";(()=>{var e={};e.id=3133,e.ids=[3133],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},79428:e=>{e.exports=require("buffer")},79646:e=>{e.exports=require("child_process")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},25477:(e,r,t)=>{t.r(r),t.d(r,{config:()=>E,default:()=>p,routeModule:()=>S});var s={};t.r(s),t.d(s,{default:()=>f});var a=t(89947),o=t(2706),n=t(96762),i=t(60125),d=t(67619),l=t(69842),u=t(76856);let c=t(29021);t(33873);let{execSync:_}=t(79646);async function f(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await (0,l.A)(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let{tableData:s}=e.body,a=e.body.database,o=e.body.dbSlug;e.body.delegated;let n=a.replace(/[^a-z\_0-9]/g,"");try{let d=await (0,i.A)({request:e,user:t,databaseSlug:o,query:e.query}),l=d?.rootUserId?d.rootUserId:t.id,_=`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${l}/main.json`,f=JSON.parse(c.readFileSync(_,"utf-8")),p=f.findIndex(e=>e.dbFullName===a),E=f[p].tables.findIndex(e=>e.childTable&&e.childTableDbFullName===s.childTableDbFullName&&e.childTableName===s.childTableName&&e.tableName===s.tableName);f[p].tables[E]=s,c.writeFileSync(`${_}`,JSON.stringify(f),"utf8"),await (0,u.A)({userId:l,targetDatabase:n}),r.json({success:!0})}catch(e){console.log(e.message),(0,d.default)({component:"/api/addApiKey/catch-error",message:e.message,user:t}),r.json({success:!1,msg:"Foreign Key update Failed."})}}let p=(0,n.M)(s,"default"),E=(0,n.M)(s,"config"),S=new a.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/updateClonedTableForeignKeys",pathname:"/api/updateClonedTableForeignKeys",bundlePath:"",filename:""},userland:s})},60125:(e,r,t)=>{t.d(r,{A:()=>a});var s=t(95969);async function a({request:e,databaseSlug:r,user:t,query:a}){try{let o=t.id,n=null;if(!a?.delegated)return{dbUserId:o};let i=a.dbUserId,d=`${process.env.DSQL_USER_DB_PREFIX}${i}_${r}`,l=`${process.env.DSQL_USER_DELEGATED_DB_COOKIE_PREFIX}${d}`;try{if(!e.cookies?.[l])throw Error("Cookie not present");let t=(0,s.A)({encryptedString:e.cookies[l]});if(!t)throw Error("Invalid Token");if((n=JSON.parse(t)).databaseSlug===r)return{dbUserId:o=n.rootUserId,rootUserId:n.rootUserId,rootUserName:n.rootUserName,rootUserEmail:n.rootUserEmail,rootUserImage:n.rootUserImage,databaseFullName:n.databaseFullName,databaseSlug:n.databaseSlug,allowedTables:n.allowedTables,priviledges:n.priviledges,database:n.databaseSlug,delegated:!0}}catch(e){}return{dbUserId:o}}catch(e){return null}}},69842:(e,r,t)=>{t.d(r,{A:()=>d});var s=t(48786),a=t(95969),o=t(29021),n=t.n(o),i=t(89159);async function d(e,r,t){try{let{keyCookieName:o,csrfCookieName:d}=(0,i.A)();if(!e.cookies?.[o]?.match(/./))throw Error("Request Cookies not Found!");let l=(0,a.A)({encryptedString:e.cookies[o]});if(!l)throw Error("Couldn't decrypt auth cookie!");let u=JSON.parse(l);if(!u.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(u.csrf_k)))throw Error("Deep Auth Failed. `csrf` key not found in request headers!");let c=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!c)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!n().existsSync(`${c}/${u.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==u.verification_status&&!t){let e=await (0,s.A)(`SELECT verification_status FROM users WHERE id='${u.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(u?.date&&Date.now()-u.date>6048e5)throw Error("Key expired!");return u}catch(e){return console.log(`userAuth Error: ${e.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>s});function s(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",a=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",o=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),n=r;e?.userId&&(n+=`user_${e.userId}_`),o&&(n+=`${o}_`),n+=t;let i=r;e?.userId&&(i+=`user_${e.userId}_`),o&&(i+=`${o}_`),i+=s;let d=r;return e?.userId&&(d+=`user_${e.userId}_`),o&&(d+=`${o}_`),{keyCookieName:n,csrfCookieName:i,oneTimeCodeName:d+=a}}},48786:(e,r,t)=>{t.d(r,{A:()=>s});async function s(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=e=>r(r.s=e),s=r.X(0,[2282],()=>t(25477));module.exports=s})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=3133,e.ids=[3133],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},25477:(e,r,t)=>{t.r(r),t.d(r,{config:()=>p,default:()=>E,routeModule:()=>S});var s={};t.r(s),t.d(s,{default:()=>f});var a=t(89947),o=t(2706),n=t(96762),i=t(29021),d=t.n(i),l=t(60125),u=t(67619),c=t(69842),_=t(76856);async function f(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await (0,c.A)(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let{tableData:s}=e.body,a=e.body.database,o=e.body.dbSlug;e.body.delegated;let n=a.replace(/[^a-z\_0-9]/g,"");try{let i=await (0,l.A)({request:e,user:t,databaseSlug:o,query:e.query}),u=i?.rootUserId?i.rootUserId:t.id,c=`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${u}/main.json`,f=JSON.parse(d().readFileSync(c,"utf-8")),E=f.findIndex(e=>e.dbFullName===a),p=f[E].tables.findIndex(e=>e.childTable&&e.childTableDbFullName===s.childTableDbFullName&&e.childTableName===s.childTableName&&e.tableName===s.tableName);f[E].tables[p]=s,d().writeFileSync(`${c}`,JSON.stringify(f),"utf8"),await (0,_.A)({userId:u,targetDatabase:n}),r.json({success:!0})}catch(e){console.log(e.message),(0,u.A)({component:"/api/addApiKey/catch-error",message:e.message,user:t}),r.json({success:!1,msg:"Foreign Key update Failed."})}}let E=(0,n.M)(s,"default"),p=(0,n.M)(s,"config"),S=new a.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/updateClonedTableForeignKeys",pathname:"/api/updateClonedTableForeignKeys",bundlePath:"",filename:""},userland:s})},60125:(e,r,t)=>{t.d(r,{A:()=>a});var s=t(95969);async function a({request:e,databaseSlug:r,user:t,query:a}){try{let o=t.id,n=null;if(!a?.delegated)return{dbUserId:o};let i=a.dbUserId,d=`${process.env.DSQL_USER_DB_PREFIX}${i}_${r}`,l=`${process.env.DSQL_USER_DELEGATED_DB_COOKIE_PREFIX}${d}`;try{if(!e.cookies?.[l])throw Error("Cookie not present");let t=(0,s.A)({encryptedString:e.cookies[l]});if(!t)throw Error("Invalid Token");if((n=JSON.parse(t)).databaseSlug===r)return{dbUserId:o=n.rootUserId,rootUserId:n.rootUserId,rootUserName:n.rootUserName,rootUserEmail:n.rootUserEmail,rootUserImage:n.rootUserImage,databaseFullName:n.databaseFullName,databaseSlug:n.databaseSlug,allowedTables:n.allowedTables,priviledges:n.priviledges,database:n.databaseSlug,delegated:!0}}catch(e){}return{dbUserId:o}}catch(e){return null}}},69842:(e,r,t)=>{t.d(r,{A:()=>d});var s=t(48786),a=t(95969),o=t(29021),n=t.n(o),i=t(89159);async function d(e,r,t){try{let{keyCookieName:o,csrfCookieName:d}=(0,i.A)();if(!e.cookies?.[o]?.match(/./))throw Error("Request Cookies not Found!");let l=(0,a.A)({encryptedString:e.cookies[o]});if(!l)throw Error("Couldn't decrypt auth cookie!");let u=JSON.parse(l);if(!u.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(u.csrf_k)))throw console.log("req.headers",e.headers),console.log("userObject",u),Error("Deep Auth Failed. `csrf` key not found in request headers!");let c=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!c)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!n().existsSync(`${c}/${u.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==u.verification_status&&!t){let e=await (0,s.A)(`SELECT verification_status FROM users WHERE id='${u.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(u?.date&&Date.now()-u.date>6048e5)throw Error("Key expired!");return u}catch(e){return console.log(`userAuth Error: ${e.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>s});function s(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",a=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",o=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),n=r;e?.userId&&(n+=`user_${e.userId}_`),o&&(n+=`${o}_`),n+=t;let i=r;e?.userId&&(i+=`user_${e.userId}_`),o&&(i+=`${o}_`),i+=s;let d=r;return e?.userId&&(d+=`user_${e.userId}_`),o&&(d+=`${o}_`),{keyCookieName:n,csrfCookieName:i,oneTimeCodeName:d+=a}}},48786:(e,r,t)=>{t.d(r,{A:()=>s});async function s(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=e=>r(r.s=e),s=r.X(0,[2282],()=>t(25477));module.exports=s})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/updateDbSchemaDataForUser.js b/dsql-app/.local_dist/server/pages/api/updateDbSchemaDataForUser.js index cf9579e..9cfad2f 100644 --- a/dsql-app/.local_dist/server/pages/api/updateDbSchemaDataForUser.js +++ b/dsql-app/.local_dist/server/pages/api/updateDbSchemaDataForUser.js @@ -1 +1 @@ -"use strict";(()=>{var e={};e.id=861,e.ids=[861],e.modules={27825:e=>{e.exports=require("lodash")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},79428:e=>{e.exports=require("buffer")},79646:e=>{e.exports=require("child_process")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},15679:(e,r,t)=>{t.r(r),t.d(r,{config:()=>g,default:()=>S,routeModule:()=>A});var a={};t.r(a),t.d(a,{default:()=>h});var s=t(89947),o=t(2706),n=t(96762),i=t(48786),d=t(60125),l=t(67619),u=t(69842),c=t(4820),f=t(29021),_=t.n(f),E=t(27825),b=t.n(E),p=t(76856);t(29021),t(33873);let{execSync:m}=t(79646);async function h(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await (0,u.A)(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let a=e.body.schema,s=e.body.database,o=e.body.table;e.body.delegated;try{let n;let l=await (0,d.A)({request:e,user:t,databaseSlug:s,query:e.query}),u=l?.rootUserId?l.rootUserId:t.id,f=`datasquirel_user_${u}_${s}`.replace(/[^a-z\_0-9]/g,"");if(l?.delegated){let e=await (0,i.A)("SELECT * FROM user_users WHERE invited_user_id=? AND user_id=? AND user_priviledge LIKE '%Edit Tables%'",[t.id,l.rootUserId]);e&&e[0]&&(n=!0)}else n=!0;if(!n)return r.json({success:!1,msg:"Unauthorized"});let E=(0,c.A)({userId:u});if(!E)throw Error("Database schema not found!");if(!function({dbSchemaData:e,delegatedUser:r,dbFullName:t,schema:a,table:s,userId:o}){let n=`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${o}/main.json`;try{if(!e)throw Error("Database schema not found!");let o=b().cloneDeep(e),i=o.find(e=>e.dbFullName==t);if(!i)throw Error("Old Database schema not found!");let d=o.findIndex(e=>e.dbFullName==t);if(d<0)throw Error("Target Database index not found!");let l=a.find(e=>e.dbFullName===t);if(!l)throw Error("New Database schema not found!");if(r?.delegated&&(r.priviledges?.match(/create.?table/i),!r.priviledges?.match(/edit.?table/i)))throw Error("Unauthorized!");let u=l.tables.find(e=>e.tableName==s.tableName);if(!u)throw Error("Table schema not found!");let c=i.tables.findIndex(e=>e.tableName==s.tableName);u&&(o[d].tables[c]=u);let f=i?.childrenDatabases;f?.forEach(e=>{let r=o.findIndex(r=>r.dbFullName===e.dbFullName);o[r]&&i&&(o[r].tables=i.tables.map(e=>{let r=b().cloneDeep(e);return delete r.childrenTables,r}))});let E=o?.[d]?.tables?.[c]?.childrenTables;return E&&E.forEach(e=>{let r=o.findIndex(r=>r.dbFullName==e.dbNameFull),t=o[r]?.tables?.findIndex(r=>r.tableName===e.tableName);o[r]?.tables[t]&&(o[r].tables[t].fields=b().cloneDeep(u.fields),o[r].tables[t].indexes=b().cloneDeep(u.indexes))}),_().writeFileSync(`${n}`,JSON.stringify(o),"utf8"),!0}catch(e){return console.log("updateSchemaData.ts ERROR: ",e.message),!1}}({dbFullName:f,dbSchemaData:E,delegatedUser:l,schema:a,table:o,userId:u}))throw Error("Update Failed!");return await (0,p.A)({userId:u,targetDatabase:f}),r.json({success:!0})}catch(e){console.log("updateDbSchemaDataForUser ERROR:",e.message),(0,l.default)({component:"/api/updateDbSchemaDataForUser/main-catch-error",message:e.message,user:t}),r.json({success:!1,msg:e.message})}}let S=(0,n.M)(a,"default"),g=(0,n.M)(a,"config"),A=new s.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/updateDbSchemaDataForUser",pathname:"/api/updateDbSchemaDataForUser",bundlePath:"",filename:""},userland:a})},60125:(e,r,t)=>{t.d(r,{A:()=>s});var a=t(95969);async function s({request:e,databaseSlug:r,user:t,query:s}){try{let o=t.id,n=null;if(!s?.delegated)return{dbUserId:o};let i=s.dbUserId,d=`${process.env.DSQL_USER_DB_PREFIX}${i}_${r}`,l=`${process.env.DSQL_USER_DELEGATED_DB_COOKIE_PREFIX}${d}`;try{if(!e.cookies?.[l])throw Error("Cookie not present");let t=(0,a.A)({encryptedString:e.cookies[l]});if(!t)throw Error("Invalid Token");if((n=JSON.parse(t)).databaseSlug===r)return{dbUserId:o=n.rootUserId,rootUserId:n.rootUserId,rootUserName:n.rootUserName,rootUserEmail:n.rootUserEmail,rootUserImage:n.rootUserImage,databaseFullName:n.databaseFullName,databaseSlug:n.databaseSlug,allowedTables:n.allowedTables,priviledges:n.priviledges,database:n.databaseSlug,delegated:!0}}catch(e){}return{dbUserId:o}}catch(e){return null}}},69842:(e,r,t)=>{t.d(r,{A:()=>d});var a=t(48786),s=t(95969),o=t(29021),n=t.n(o),i=t(89159);async function d(e,r,t){try{let{keyCookieName:o,csrfCookieName:d}=(0,i.A)();if(!e.cookies?.[o]?.match(/./))throw Error("Request Cookies not Found!");let l=(0,s.A)({encryptedString:e.cookies[o]});if(!l)throw Error("Couldn't decrypt auth cookie!");let u=JSON.parse(l);if(!u.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(u.csrf_k)))throw Error("Deep Auth Failed. `csrf` key not found in request headers!");let c=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!c)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!n().existsSync(`${c}/${u.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==u.verification_status&&!t){let e=await (0,a.A)(`SELECT verification_status FROM users WHERE id='${u.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(u?.date&&Date.now()-u.date>6048e5)throw Error("Key expired!");return u}catch(e){return console.log(`userAuth Error: ${e.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>a});function a(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",a=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",s=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",o=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),n=r;e?.userId&&(n+=`user_${e.userId}_`),o&&(n+=`${o}_`),n+=t;let i=r;e?.userId&&(i+=`user_${e.userId}_`),o&&(i+=`${o}_`),i+=a;let d=r;return e?.userId&&(d+=`user_${e.userId}_`),o&&(d+=`${o}_`),{keyCookieName:n,csrfCookieName:i,oneTimeCodeName:d+=s}}},4820:(e,r,t)=>{t.d(r,{A:()=>d});var a=t(67619),s=t(29021),o=t.n(s),n=t(33873),i=t.n(n);function d({userId:e}){try{let r=i().resolve(process.cwd(),`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${e}/main.json`);return JSON.parse(o().readFileSync(r,"utf-8"))}catch(e){return(0,a.default)({component:"grabUserSchemaData",message:e.message}),null}}},48786:(e,r,t)=>{t.d(r,{A:()=>a});async function a(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=e=>r(r.s=e),a=r.X(0,[2282],()=>t(15679));module.exports=a})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=861,e.ids=[861],e.modules={27825:e=>{e.exports=require("lodash")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},15679:(e,r,t)=>{t.r(r),t.d(r,{config:()=>S,default:()=>h,routeModule:()=>g});var a={};t.r(a),t.d(a,{default:()=>m});var s=t(89947),o=t(2706),n=t(96762),i=t(48786),d=t(60125),l=t(67619),u=t(69842),c=t(4820),f=t(29021),_=t.n(f),E=t(27825),b=t.n(E),p=t(76856);async function m(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await (0,u.A)(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let a=e.body.schema,s=e.body.database,o=e.body.table;e.body.delegated;try{let n;let l=await (0,d.A)({request:e,user:t,databaseSlug:s,query:e.query}),u=l?.rootUserId?l.rootUserId:t.id,f=`datasquirel_user_${u}_${s}`.replace(/[^a-z\_0-9]/g,"");if(l?.delegated){let e=await (0,i.A)("SELECT * FROM user_users WHERE invited_user_id=? AND user_id=? AND user_priviledge LIKE '%Edit Tables%'",[t.id,l.rootUserId]);e&&e[0]&&(n=!0)}else n=!0;if(!n)return r.json({success:!1,msg:"Unauthorized"});let E=(0,c.A)({userId:u});if(!E)throw Error("Database schema not found!");if(!function({dbSchemaData:e,delegatedUser:r,dbFullName:t,schema:a,table:s,userId:o}){let n=`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${o}/main.json`;try{if(!e)throw Error("Database schema not found!");let o=b().cloneDeep(e),i=o.find(e=>e.dbFullName==t);if(!i)throw Error("Old Database schema not found!");let d=o.findIndex(e=>e.dbFullName==t);if(d<0)throw Error("Target Database index not found!");let l=a.find(e=>e.dbFullName===t);if(!l)throw Error("New Database schema not found!");if(r?.delegated&&(r.priviledges?.match(/create.?table/i),!r.priviledges?.match(/edit.?table/i)))throw Error("Unauthorized!");let u=l.tables.find(e=>e.tableName==s.tableName);if(!u)throw Error("Table schema not found!");let c=i.tables.findIndex(e=>e.tableName==s.tableName);u&&(o[d].tables[c]=u);let f=i?.childrenDatabases;f?.forEach(e=>{let r=o.findIndex(r=>r.dbFullName===e.dbFullName);o[r]&&i&&(o[r].tables=i.tables.map(e=>{let r=b().cloneDeep(e);return delete r.childrenTables,r}))});let E=o?.[d]?.tables?.[c]?.childrenTables;return E&&E.forEach(e=>{let r=o.findIndex(r=>r.dbFullName==e.dbNameFull),t=o[r]?.tables?.findIndex(r=>r.tableName===e.tableName);o[r]?.tables[t]&&(o[r].tables[t].fields=b().cloneDeep(u.fields),o[r].tables[t].indexes=b().cloneDeep(u.indexes))}),_().writeFileSync(`${n}`,JSON.stringify(o),"utf8"),!0}catch(e){return console.log("updateSchemaData.ts ERROR: ",e.message),!1}}({dbFullName:f,dbSchemaData:E,delegatedUser:l,schema:a,table:o,userId:u}))throw Error("Update Failed!");return await (0,p.A)({userId:u,targetDatabase:f}),r.json({success:!0})}catch(e){console.log("updateDbSchemaDataForUser ERROR:",e.message),(0,l.A)({component:"/api/updateDbSchemaDataForUser/main-catch-error",message:e.message,user:t}),r.json({success:!1,msg:e.message})}}let h=(0,n.M)(a,"default"),S=(0,n.M)(a,"config"),g=new s.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/updateDbSchemaDataForUser",pathname:"/api/updateDbSchemaDataForUser",bundlePath:"",filename:""},userland:a})},60125:(e,r,t)=>{t.d(r,{A:()=>s});var a=t(95969);async function s({request:e,databaseSlug:r,user:t,query:s}){try{let o=t.id,n=null;if(!s?.delegated)return{dbUserId:o};let i=s.dbUserId,d=`${process.env.DSQL_USER_DB_PREFIX}${i}_${r}`,l=`${process.env.DSQL_USER_DELEGATED_DB_COOKIE_PREFIX}${d}`;try{if(!e.cookies?.[l])throw Error("Cookie not present");let t=(0,a.A)({encryptedString:e.cookies[l]});if(!t)throw Error("Invalid Token");if((n=JSON.parse(t)).databaseSlug===r)return{dbUserId:o=n.rootUserId,rootUserId:n.rootUserId,rootUserName:n.rootUserName,rootUserEmail:n.rootUserEmail,rootUserImage:n.rootUserImage,databaseFullName:n.databaseFullName,databaseSlug:n.databaseSlug,allowedTables:n.allowedTables,priviledges:n.priviledges,database:n.databaseSlug,delegated:!0}}catch(e){}return{dbUserId:o}}catch(e){return null}}},69842:(e,r,t)=>{t.d(r,{A:()=>d});var a=t(48786),s=t(95969),o=t(29021),n=t.n(o),i=t(89159);async function d(e,r,t){try{let{keyCookieName:o,csrfCookieName:d}=(0,i.A)();if(!e.cookies?.[o]?.match(/./))throw Error("Request Cookies not Found!");let l=(0,s.A)({encryptedString:e.cookies[o]});if(!l)throw Error("Couldn't decrypt auth cookie!");let u=JSON.parse(l);if(!u.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(u.csrf_k)))throw console.log("req.headers",e.headers),console.log("userObject",u),Error("Deep Auth Failed. `csrf` key not found in request headers!");let c=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!c)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!n().existsSync(`${c}/${u.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==u.verification_status&&!t){let e=await (0,a.A)(`SELECT verification_status FROM users WHERE id='${u.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(u?.date&&Date.now()-u.date>6048e5)throw Error("Key expired!");return u}catch(e){return console.log(`userAuth Error: ${e.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>a});function a(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",a=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",s=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",o=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),n=r;e?.userId&&(n+=`user_${e.userId}_`),o&&(n+=`${o}_`),n+=t;let i=r;e?.userId&&(i+=`user_${e.userId}_`),o&&(i+=`${o}_`),i+=a;let d=r;return e?.userId&&(d+=`user_${e.userId}_`),o&&(d+=`${o}_`),{keyCookieName:n,csrfCookieName:i,oneTimeCodeName:d+=s}}},4820:(e,r,t)=>{t.d(r,{A:()=>d});var a=t(67619),s=t(29021),o=t.n(s),n=t(33873),i=t.n(n);function d({userId:e}){try{let r=i().resolve(process.cwd(),`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${e}/main.json`);return JSON.parse(o().readFileSync(r,"utf-8"))}catch(e){return(0,a.A)({component:"grabUserSchemaData",message:e.message}),null}}},48786:(e,r,t)=>{t.d(r,{A:()=>a});async function a(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=e=>r(r.s=e),a=r.X(0,[2282],()=>t(15679));module.exports=a})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/updateDbUser.js b/dsql-app/.local_dist/server/pages/api/updateDbUser.js index 43df394..ce6ff4d 100644 --- a/dsql-app/.local_dist/server/pages/api/updateDbUser.js +++ b/dsql-app/.local_dist/server/pages/api/updateDbUser.js @@ -1 +1 @@ -"use strict";(()=>{var e={};e.id=3683,e.ids=[3683],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},72583:e=>{e.exports=require("sanitize-html")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},18348:(e,r,t)=>{t.r(r),t.d(r,{config:()=>d,default:()=>u,routeModule:()=>f});var n={};t.r(n),t.d(n,{default:()=>l});var s=t(89947),o=t(2706),a=t(96762),i=t(30802),c=t(69842);async function l(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});if(!await (0,c.A)(e,r,!0))return r.json({success:!1,msg:"Unauthorized"});let{dbFullName:t,payload:n}=e.body,s=(()=>{let e=Object.keys(n),r={};return e.forEach(e=>{!e?.match(/user_type|priviledge|database_access|databases?|confirm/)&&(e?.match(/databases|confirm/)||(r[e]=n[e]))}),r})(),o=await (0,i.A)({dbFullName:t,tableName:"users",identifierColumnName:"id",identifierValue:n.id,data:{...s},dbContext:"Dsql User",paradigm:"Full Access"});r.json({success:!!o?.affectedRows,msg:o?.affectedRows?"User Updated":o})}let u=(0,a.M)(n,"default"),d=(0,a.M)(n,"config"),f=new s.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/updateDbUser",pathname:"/api/updateDbUser",bundlePath:"",filename:""},userland:n})},69842:(e,r,t)=>{t.d(r,{A:()=>c});var n=t(48786),s=t(95969),o=t(29021),a=t.n(o),i=t(89159);async function c(e,r,t){try{let{keyCookieName:o,csrfCookieName:c}=(0,i.A)();if(!e.cookies?.[o]?.match(/./))throw Error("Request Cookies not Found!");let l=(0,s.A)({encryptedString:e.cookies[o]});if(!l)throw Error("Couldn't decrypt auth cookie!");let u=JSON.parse(l);if(!u.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(u.csrf_k)))throw Error("Deep Auth Failed. `csrf` key not found in request headers!");let d=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!d)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!a().existsSync(`${d}/${u.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==u.verification_status&&!t){let e=await (0,n.A)(`SELECT verification_status FROM users WHERE id='${u.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(u?.date&&Date.now()-u.date>6048e5)throw Error("Key expired!");return u}catch(e){return console.log(`userAuth Error: ${e.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>n});function n(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",n=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",s=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",o=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),a=r;e?.userId&&(a+=`user_${e.userId}_`),o&&(a+=`${o}_`),a+=t;let i=r;e?.userId&&(i+=`user_${e.userId}_`),o&&(i+=`${o}_`),i+=n;let c=r;return e?.userId&&(c+=`user_${e.userId}_`),o&&(c+=`${o}_`),{keyCookieName:a,csrfCookieName:i,oneTimeCodeName:c+=s}}},30802:(e,r,t)=>{t.d(r,{A:()=>u});var n=t(72583),s=t.n(n),o=t(92652),a=t(48786),i=t(37275),c=t(68829),l=t(7971);async function u({dbContext:e,paradigm:r,dbFullName:t,tableName:n,data:u,tableSchema:d,identifierColumnName:f,identifierValue:p,encryptionKey:_,encryptionSalt:E,useLocal:S}){if(!u||!Object.keys(u).length)return null;let h=!!S||!e?.match(/dsql.user/i)&&(!t||!!t.match(/^datasquirel$/)),g=S?l.A:h?a.A:i.default,y=Object.keys(u),m=[],D=[];for(let e=0;ee.fieldName===r):null,a=n&&n[0]?n[0]:null;if(null==t||void 0==t)continue;let i=/<[^>]+>/g;(a?.richText||String(t).match(i))&&(t=s()(t,o.A)),a?.encrypted&&(t=(0,c.default)({data:t,encryptionKey:_,encryptionSalt:E})),"object"==typeof t&&(t=JSON.stringify(t)),a?.pattern&&!new RegExp(a.pattern,a.patternFlags||"").test(t)&&(console.log("DSQL: Pattern not matched =>",t),t=""),"string"==typeof t&&t.match(/^null$/i)&&(t={toSqlString:function(){return"NULL"}}),"string"!=typeof t||t.match(/./i)||(t={toSqlString:function(){return"NULL"}}),m.push(`\`${r}\`=?`),"number"==typeof t?D.push(String(t)):D.push(t)}catch(e){console.log("DSQL: Error in parsing data keys in update function =>",e.message);continue}m.push(`date_updated='${Date()}'`),m.push(`date_updated_code='${Date.now()}'`);let N=`UPDATE \`${t}\`.\`${n}\` SET ${m.join(",")} WHERE \`${f}\`=?`;return D.push(p),h?await g(N,D):await g({paradigm:r,queryString:N,queryValues:D})}},92652:(e,r,t)=>{t.d(r,{A:()=>n});let n={allowedTags:["b","i","em","strong","a","p","span","ul","ol","li","h1","h2","h3","h4","h5","h6","img","div","button","pre","code","br"],allowedAttributes:{a:["href"],img:["src","alt","width","height","class","style"],"*":["style","class"]}}},95969:(e,r,t)=>{t.d(r,{A:()=>o});var n=t(55511),s=t(79428);function o({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let o=r||process.env.DSQL_ENCRYPTION_PASSWORD,a=t||process.env.DSQL_ENCRYPTION_SALT,i=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!o?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!a?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let c=(0,n.scryptSync)(o,a,i),l=s.Buffer.alloc(16,0),u=(0,n.createDecipheriv)("aes-192-cbc",c,l);try{let r=u.update(e,"hex","utf8");return r+=u.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},68829:(e,r,t)=>{t.r(r),t.d(r,{default:()=>o});var n=t(55511),s=t(79428);function o({data:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encryption string is invalid"),e;let o=r||process.env.DSQL_ENCRYPTION_PASSWORD,a=t||process.env.DSQL_ENCRYPTION_SALT,i=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!o?.match(/.{8,}/))return console.log("Encryption key is invalid"),e;if(!a?.match(/.{8,}/))return console.log("Encryption salt is invalid"),e;let c=(0,n.scryptSync)(o,a,i),l=s.Buffer.alloc(16,0),u=(0,n.createCipheriv)("aes-192-cbc",c,l);try{let r=u.update(e,"utf8","hex");return r+=u.final("hex")}catch(r){return console.log("Error in encrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>n});async function n(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},37275:(e,r,t)=>{async function n(e,r,t){try{if("string"==typeof r){let n=await e.query(s(r),t);return JSON.parse(JSON.stringify(n))}if("object"!=typeof r)return null;{let t=[];for(let n=0;no})},7971:(e,r,t)=>{t.d(r,{A:()=>i});var n=t(9973),s=t.n(n),o=t(29021),a=t.n(o);async function i(...e){let r=s()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!a().existsSync(r)){console.log(`${r} does not exist`);return}return{ca:a().readFileSync(`${e}/ca-cert.pem`),rejectUnauthorized:!1}}()},onConnect:()=>{console.log("Connection Successful!")},onConnectError:e=>{console.log("Connection Error",e.message)},onError:e=>{console.log("Client Error",e.message)}});console.log("Querying ...");try{let t=await r.query(...e);return await r.end(),JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e.message),{success:!1,error:e.message}}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=18348);module.exports=t})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=3683,e.ids=[3683],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},72583:e=>{e.exports=require("sanitize-html")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},18348:(e,r,t)=>{t.r(r),t.d(r,{config:()=>d,default:()=>u,routeModule:()=>f});var n={};t.r(n),t.d(n,{default:()=>l});var s=t(89947),o=t(2706),a=t(96762),i=t(30802),c=t(69842);async function l(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});if(!await (0,c.A)(e,r,!0))return r.json({success:!1,msg:"Unauthorized"});let{dbFullName:t,payload:n}=e.body,s=(()=>{let e=Object.keys(n),r={};return e.forEach(e=>{!e?.match(/user_type|priviledge|database_access|databases?|confirm/)&&(e?.match(/databases|confirm/)||(r[e]=n[e]))}),r})(),o=await (0,i.A)({dbFullName:t,tableName:"users",identifierColumnName:"id",identifierValue:n.id,data:{...s},dbContext:"Dsql User",paradigm:"Full Access"});r.json({success:!!o?.affectedRows,msg:o?.affectedRows?"User Updated":o})}let u=(0,a.M)(n,"default"),d=(0,a.M)(n,"config"),f=new s.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/updateDbUser",pathname:"/api/updateDbUser",bundlePath:"",filename:""},userland:n})},69842:(e,r,t)=>{t.d(r,{A:()=>c});var n=t(48786),s=t(95969),o=t(29021),a=t.n(o),i=t(89159);async function c(e,r,t){try{let{keyCookieName:o,csrfCookieName:c}=(0,i.A)();if(!e.cookies?.[o]?.match(/./))throw Error("Request Cookies not Found!");let l=(0,s.A)({encryptedString:e.cookies[o]});if(!l)throw Error("Couldn't decrypt auth cookie!");let u=JSON.parse(l);if(!u.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(u.csrf_k)))throw console.log("req.headers",e.headers),console.log("userObject",u),Error("Deep Auth Failed. `csrf` key not found in request headers!");let d=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!d)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!a().existsSync(`${d}/${u.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==u.verification_status&&!t){let e=await (0,n.A)(`SELECT verification_status FROM users WHERE id='${u.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(u?.date&&Date.now()-u.date>6048e5)throw Error("Key expired!");return u}catch(e){return console.log(`userAuth Error: ${e.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>n});function n(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",n=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",s=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",o=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),a=r;e?.userId&&(a+=`user_${e.userId}_`),o&&(a+=`${o}_`),a+=t;let i=r;e?.userId&&(i+=`user_${e.userId}_`),o&&(i+=`${o}_`),i+=n;let c=r;return e?.userId&&(c+=`user_${e.userId}_`),o&&(c+=`${o}_`),{keyCookieName:a,csrfCookieName:i,oneTimeCodeName:c+=s}}},30802:(e,r,t)=>{t.d(r,{A:()=>u});var n=t(72583),s=t.n(n),o=t(92652),a=t(48786),i=t(37275),c=t(68829),l=t(7971);async function u({dbContext:e,paradigm:r,dbFullName:t,tableName:n,data:u,tableSchema:d,identifierColumnName:f,identifierValue:p,encryptionKey:_,encryptionSalt:E,useLocal:S}){if(!u||!Object.keys(u).length)return null;let h=!!S||!e?.match(/dsql.user/i)&&(!t||!!t.match(/^datasquirel$/)),g=S?l.A:h?a.A:i.A,y=Object.keys(u),m=[],A=[];for(let e=0;ee.fieldName===r):null,a=n&&n[0]?n[0]:null;if(null==t||void 0==t)continue;let i=/<[^>]+>/g;(a?.richText||String(t).match(i))&&(t=s()(t,o.A)),a?.encrypted&&(t=(0,c.A)({data:t,encryptionKey:_,encryptionSalt:E})),"object"==typeof t&&(t=JSON.stringify(t)),a?.pattern&&!new RegExp(a.pattern,a.patternFlags||"").test(t)&&(console.log("DSQL: Pattern not matched =>",t),t=""),"string"==typeof t&&t.match(/^null$/i)&&(t={toSqlString:function(){return"NULL"}}),"string"!=typeof t||t.match(/./i)||(t={toSqlString:function(){return"NULL"}}),m.push(`\`${r}\`=?`),"number"==typeof t?A.push(String(t)):A.push(t)}catch(e){console.log("DSQL: Error in parsing data keys in update function =>",e.message);continue}m.push(`date_updated='${Date()}'`),m.push(`date_updated_code='${Date.now()}'`);let D=`UPDATE \`${t}\`.\`${n}\` SET ${m.join(",")} WHERE \`${f}\`=?`;return A.push(p),h?await g(D,A):await g({paradigm:r,queryString:D,queryValues:A})}},92652:(e,r,t)=>{t.d(r,{A:()=>n});let n={allowedTags:["b","i","em","strong","a","p","span","ul","ol","li","h1","h2","h3","h4","h5","h6","img","div","button","pre","code","br"],allowedAttributes:{a:["href"],img:["src","alt","width","height","class","style"],"*":["style","class"]}}},95969:(e,r,t)=>{t.d(r,{A:()=>o});var n=t(55511),s=t(79428);function o({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let o=r||process.env.DSQL_ENCRYPTION_PASSWORD,a=t||process.env.DSQL_ENCRYPTION_SALT,i=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!o?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!a?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let c=(0,n.scryptSync)(o,a,i),l=s.Buffer.alloc(16,0),u=(0,n.createDecipheriv)("aes-192-cbc",c,l);try{let r=u.update(e,"hex","utf8");return r+=u.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},68829:(e,r,t)=>{t.d(r,{A:()=>o});var n=t(55511),s=t(79428);function o({data:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encryption string is invalid"),e;let o=r||process.env.DSQL_ENCRYPTION_PASSWORD,a=t||process.env.DSQL_ENCRYPTION_SALT,i=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!o?.match(/.{8,}/))return console.log("Encryption key is invalid"),e;if(!a?.match(/.{8,}/))return console.log("Encryption salt is invalid"),e;let c=(0,n.scryptSync)(o,a,i),l=s.Buffer.alloc(16,0),u=(0,n.createCipheriv)("aes-192-cbc",c,l);try{let r=u.update(e,"utf8","hex");return r+=u.final("hex")}catch(r){return console.log("Error in encrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>n});async function n(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},37275:(e,r,t)=>{async function n(e,r,t){try{if("string"==typeof r){let n=await e.query(s(r),t);return JSON.parse(JSON.stringify(n))}if("object"!=typeof r)return null;{let t=[];for(let n=0;no})},7971:(e,r,t)=>{t.d(r,{A:()=>i});var n=t(9973),s=t.n(n),o=t(29021),a=t.n(o);async function i(...e){let r=s()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!a().existsSync(r)){console.log(`${r} does not exist`);return}return{ca:a().readFileSync(`${e}/ca-cert.pem`),rejectUnauthorized:!1}}()},onConnect:()=>{console.log("Connection Successful!")},onConnectError:e=>{console.log("Connection Error",e.message)},onError:e=>{console.log("Client Error",e.message)}});console.log("Querying ...");try{let t=await r.query(...e);return await r.end(),JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e.message),{success:!1,error:e.message}}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=18348);module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/updateTableEntry.js b/dsql-app/.local_dist/server/pages/api/updateTableEntry.js index f91816a..ff800d1 100644 --- a/dsql-app/.local_dist/server/pages/api/updateTableEntry.js +++ b/dsql-app/.local_dist/server/pages/api/updateTableEntry.js @@ -1,16 +1,16 @@ -"use strict";(()=>{var e={};e.id=1132,e.ids=[1132],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},72583:e=>{e.exports=require("sanitize-html")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},18885:(e,r,t)=>{t.r(r),t.d(r,{config:()=>E,default:()=>p,routeModule:()=>g});var a={};t.r(a),t.d(a,{default:()=>f});var s=t(89947),n=t(2706),o=t(96762),i=t(77377),l=t(31495),u=t(60125),c=t(67619),d=t(69842),_=t(30802);async function f(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await (0,d.A)(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let{dbSlug:a,tableName:s,payload:n,entryId:o,tableSchema:f,delegated:p,dbId:E}=e.body;delete n.id,delete n.uuid,delete n.date_created,delete n.date_created_code,delete n.date_created_timestamp,delete n.date_updated,delete n.date_updated_code,delete n.date_updated_timestamp;try{let c=await (0,u.A)({databaseSlug:a,request:e,user:t,query:e.query}),d=c?.rootUserId?`datasquirel_user_${c.rootUserId}_${a}`:`datasquirel_user_${t.id}_${a}`;if(!await (0,l.A)({user:t,confirmedDelegetedUser:c,database:a,table:s,dbId:E,priviledgeRegex:/Update Entries/i}))return r.json({success:!1,msg:"Unauthorized"});let p=await (0,_.A)({dbContext:"Dsql User",paradigm:"Full Access",dbFullName:d,tableName:s,identifierColumnName:"id",identifierValue:o,data:n,tableSchema:f});if(p?.error)throw Error(p.error);if(!p)throw Error("No result returned!");await (0,i.A)({dbName:d,entryId:o,entryOrder:n.order,tableName:s,tableSchema:f}),r.json({success:!0,payload:p})}catch(e){(0,c.default)({component:"/api/updateTableEntry/main-catch-error",message:e.message,user:t}),r.json({success:!1,msg:"Database Files could not be written!",err:e.message})}}let p=(0,o.M)(a,"default"),E=(0,o.M)(a,"config"),g=new s.PagesAPIRouteModule({definition:{kind:n.A.PAGES_API,page:"/api/updateTableEntry",pathname:"/api/updateTableEntry",bundlePath:"",filename:""},userland:a})},31495:(e,r,t)=>{t.d(r,{A:()=>n});var a=t(48786),s=t(67619);async function n({user:e,confirmedDelegetedUser:r,database:t,table:n,priviledgeRegex:o,dbId:i}){let l,u;try{r?.delegated?(l=await (0,a.A)("SELECT priviledge FROM delegated_user_tables WHERE root_user_id=? AND delegated_user_id=? AND `database`=? AND `table`=?",[r.rootUserId,e.id,t,n]),u=l[0]?.priviledge?.match(o)):(l=await (0,a.A)("SELECT table_slug FROM user_database_tables WHERE user_id=? AND table_slug=? AND db_id=?",[e.id,n,i]),u=!0)}catch(r){(0,s.default)({component:"checkUserRights",message:r.message,user:e})}return!!l&&!!l[0]&&!!u}},60125:(e,r,t)=>{t.d(r,{A:()=>s});var a=t(95969);async function s({request:e,databaseSlug:r,user:t,query:s}){try{let n=t.id,o=null;if(!s?.delegated)return{dbUserId:n};let i=s.dbUserId,l=`${process.env.DSQL_USER_DB_PREFIX}${i}_${r}`,u=`${process.env.DSQL_USER_DELEGATED_DB_COOKIE_PREFIX}${l}`;try{if(!e.cookies?.[u])throw Error("Cookie not present");let t=(0,a.A)({encryptedString:e.cookies[u]});if(!t)throw Error("Invalid Token");if((o=JSON.parse(t)).databaseSlug===r)return{dbUserId:n=o.rootUserId,rootUserId:o.rootUserId,rootUserName:o.rootUserName,rootUserEmail:o.rootUserEmail,rootUserImage:o.rootUserImage,databaseFullName:o.databaseFullName,databaseSlug:o.databaseSlug,allowedTables:o.allowedTables,priviledges:o.priviledges,database:o.databaseSlug,delegated:!0}}catch(e){}return{dbUserId:n}}catch(e){return null}}},77377:(e,r,t)=>{t.d(r,{A:()=>s});let a=t(37275);async function s({dbName:e,entryId:r,entryOrder:t,tableName:s,tableSchema:n}){try{if(n.fields.find(e=>!!e.fieldName?.match(/^order$/i))&&t){let n=await a({database:e,paradigm:"Full Access",queryString:`SELECT * FROM ${s} WHERE \`order\` = '${t}' AND id != ?`,queryValues:[String(r)]});if(!n?.[0])throw Error("No Existing Order");await a({database:e,paradigm:"Full Access",queryString:`UPDATE ${s} SET \`order\` = \`order\` + 1 WHERE \`order\` >= ${t} AND id != ?`,queryValues:[String(r)]})}return!0}catch(e){return!1}}},69842:(e,r,t)=>{t.d(r,{A:()=>l});var a=t(48786),s=t(95969),n=t(29021),o=t.n(n),i=t(89159);async function l(e,r,t){try{let{keyCookieName:n,csrfCookieName:l}=(0,i.A)();if(!e.cookies?.[n]?.match(/./))throw Error("Request Cookies not Found!");let u=(0,s.A)({encryptedString:e.cookies[n]});if(!u)throw Error("Couldn't decrypt auth cookie!");let c=JSON.parse(u);if(!c.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(c.csrf_k)))throw Error("Deep Auth Failed. `csrf` key not found in request headers!");let d=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!d)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!o().existsSync(`${d}/${c.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==c.verification_status&&!t){let e=await (0,a.A)(`SELECT verification_status FROM users WHERE id='${c.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(c?.date&&Date.now()-c.date>6048e5)throw Error("Key expired!");return c}catch(e){return console.log(`userAuth Error: ${e.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>a});function a(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",a=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",s=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",n=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),o=r;e?.userId&&(o+=`user_${e.userId}_`),n&&(o+=`${n}_`),o+=t;let i=r;e?.userId&&(i+=`user_${e.userId}_`),n&&(i+=`${n}_`),i+=a;let l=r;return e?.userId&&(l+=`user_${e.userId}_`),n&&(l+=`${n}_`),{keyCookieName:o,csrfCookieName:i,oneTimeCodeName:l+=s}}},30802:(e,r,t)=>{t.d(r,{A:()=>c});var a=t(72583),s=t.n(a),n=t(92652),o=t(48786),i=t(37275),l=t(68829),u=t(7971);async function c({dbContext:e,paradigm:r,dbFullName:t,tableName:a,data:c,tableSchema:d,identifierColumnName:_,identifierValue:f,encryptionKey:p,encryptionSalt:E,useLocal:g}){if(!c||!Object.keys(c).length)return null;let S=!!g||!e?.match(/dsql.user/i)&&(!t||!!t.match(/^datasquirel$/)),y=g?u.A:S?o.A:i.default,m=Object.keys(c),h=[],A=[];for(let e=0;ee.fieldName===r):null,o=a&&a[0]?a[0]:null;if(null==t||void 0==t)continue;let i=/<[^>]+>/g;(o?.richText||String(t).match(i))&&(t=s()(t,n.A)),o?.encrypted&&(t=(0,l.default)({data:t,encryptionKey:p,encryptionSalt:E})),"object"==typeof t&&(t=JSON.stringify(t)),o?.pattern&&!new RegExp(o.pattern,o.patternFlags||"").test(t)&&(console.log("DSQL: Pattern not matched =>",t),t=""),"string"==typeof t&&t.match(/^null$/i)&&(t={toSqlString:function(){return"NULL"}}),"string"!=typeof t||t.match(/./i)||(t={toSqlString:function(){return"NULL"}}),h.push(`\`${r}\`=?`),"number"==typeof t?A.push(String(t)):A.push(t)}catch(e){console.log("DSQL: Error in parsing data keys in update function =>",e.message);continue}h.push(`date_updated='${Date()}'`),h.push(`date_updated_code='${Date.now()}'`);let N=`UPDATE \`${t}\`.\`${a}\` SET ${h.join(",")} WHERE \`${_}\`=?`;return A.push(f),S?await y(N,A):await y({paradigm:r,queryString:N,queryValues:A})}},92652:(e,r,t)=>{t.d(r,{A:()=>a});let a={allowedTags:["b","i","em","strong","a","p","span","ul","ol","li","h1","h2","h3","h4","h5","h6","img","div","button","pre","code","br"],allowedAttributes:{a:["href"],img:["src","alt","width","height","class","style"],"*":["style","class"]}}},67619:(e,r,t)=>{t.r(r),t.d(r,{default:()=>n});var a=t(29021),s=t.n(a);async function n({user:e,message:r,component:t,noMail:a,req:n}){let o=new Date,i=(()=>{if(!n)return null;try{let e=n.headers["x-forwarded-for"],r=n.headers["x-real-ip"],t=n.headers["cf-connecting-ip"],a=Array.isArray(e)?e[0]:e?.split(",")[0],s=t||a||r||n.socket.remoteAddress;if(!s)return null;return String(s)}catch(e){return null}})();try{let a=`🚀 SERVER ERROR =========================== +"use strict";(()=>{var e={};e.id=1132,e.ids=[1132],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},72583:e=>{e.exports=require("sanitize-html")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},18885:(e,r,t)=>{t.r(r),t.d(r,{config:()=>g,default:()=>f,routeModule:()=>E});var s={};t.r(s),t.d(s,{default:()=>p});var a=t(89947),n=t(2706),o=t(96762),i=t(77377),l=t(31495),c=t(60125),u=t(67619),d=t(69842),_=t(30802);async function p(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await (0,d.A)(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let{dbSlug:s,tableName:a,payload:n,entryId:o,tableSchema:p,delegated:f,dbId:g}=e.body;delete n.id,delete n.uuid,delete n.date_created,delete n.date_created_code,delete n.date_created_timestamp,delete n.date_updated,delete n.date_updated_code,delete n.date_updated_timestamp;try{let u=await (0,c.A)({databaseSlug:s,request:e,user:t,query:e.query}),d=u?.rootUserId?`datasquirel_user_${u.rootUserId}_${s}`:`datasquirel_user_${t.id}_${s}`;if(!await (0,l.A)({user:t,confirmedDelegetedUser:u,database:s,table:a,dbId:g,priviledgeRegex:/Update Entries/i}))return r.json({success:!1,msg:"Unauthorized"});let f=await (0,_.A)({dbContext:"Dsql User",paradigm:"Full Access",dbFullName:d,tableName:a,identifierColumnName:"id",identifierValue:o,data:n,tableSchema:p});if(f?.error)throw Error(f.error);if(!f)throw Error("No result returned!");await (0,i.A)({dbName:d,entryId:o,entryOrder:n.order,tableName:a,tableSchema:p}),r.json({success:!0,payload:f})}catch(e){(0,u.A)({component:"/api/updateTableEntry/main-catch-error",message:e.message,user:t}),r.json({success:!1,msg:"Database Files could not be written!",err:e.message})}}let f=(0,o.M)(s,"default"),g=(0,o.M)(s,"config"),E=new a.PagesAPIRouteModule({definition:{kind:n.A.PAGES_API,page:"/api/updateTableEntry",pathname:"/api/updateTableEntry",bundlePath:"",filename:""},userland:s})},31495:(e,r,t)=>{t.d(r,{A:()=>n});var s=t(48786),a=t(67619);async function n({user:e,confirmedDelegetedUser:r,database:t,table:n,priviledgeRegex:o,dbId:i}){let l,c;try{r?.delegated?(l=await (0,s.A)("SELECT priviledge FROM delegated_user_tables WHERE root_user_id=? AND delegated_user_id=? AND `database`=? AND `table`=?",[r.rootUserId,e.id,t,n]),c=l[0]?.priviledge?.match(o)):(l=await (0,s.A)("SELECT table_slug FROM user_database_tables WHERE user_id=? AND table_slug=? AND db_id=?",[e.id,n,i]),c=!0)}catch(r){(0,a.A)({component:"checkUserRights",message:r.message,user:e})}return!!l&&!!l[0]&&!!c}},60125:(e,r,t)=>{t.d(r,{A:()=>a});var s=t(95969);async function a({request:e,databaseSlug:r,user:t,query:a}){try{let n=t.id,o=null;if(!a?.delegated)return{dbUserId:n};let i=a.dbUserId,l=`${process.env.DSQL_USER_DB_PREFIX}${i}_${r}`,c=`${process.env.DSQL_USER_DELEGATED_DB_COOKIE_PREFIX}${l}`;try{if(!e.cookies?.[c])throw Error("Cookie not present");let t=(0,s.A)({encryptedString:e.cookies[c]});if(!t)throw Error("Invalid Token");if((o=JSON.parse(t)).databaseSlug===r)return{dbUserId:n=o.rootUserId,rootUserId:o.rootUserId,rootUserName:o.rootUserName,rootUserEmail:o.rootUserEmail,rootUserImage:o.rootUserImage,databaseFullName:o.databaseFullName,databaseSlug:o.databaseSlug,allowedTables:o.allowedTables,priviledges:o.priviledges,database:o.databaseSlug,delegated:!0}}catch(e){}return{dbUserId:n}}catch(e){return null}}},77377:(e,r,t)=>{t.d(r,{A:()=>a});var s=t(37275);async function a({dbName:e,entryId:r,entryOrder:t,tableName:a,tableSchema:n}){try{if(n.fields.find(e=>!!e.fieldName?.match(/^order$/i))&&t){let e=await (0,s.A)({paradigm:"Full Access",queryString:`SELECT * FROM ${a} WHERE \`order\` = '${t}' AND id != ?`,queryValues:[String(r)]});if(!e?.[0])throw Error("No Existing Order");await (0,s.A)({paradigm:"Full Access",queryString:`UPDATE ${a} SET \`order\` = \`order\` + 1 WHERE \`order\` >= ${t} AND id != ?`,queryValues:[String(r)]})}return!0}catch(e){return!1}}},69842:(e,r,t)=>{t.d(r,{A:()=>l});var s=t(48786),a=t(95969),n=t(29021),o=t.n(n),i=t(89159);async function l(e,r,t){try{let{keyCookieName:n,csrfCookieName:l}=(0,i.A)();if(!e.cookies?.[n]?.match(/./))throw Error("Request Cookies not Found!");let c=(0,a.A)({encryptedString:e.cookies[n]});if(!c)throw Error("Couldn't decrypt auth cookie!");let u=JSON.parse(c);if(!u.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(u.csrf_k)))throw console.log("req.headers",e.headers),console.log("userObject",u),Error("Deep Auth Failed. `csrf` key not found in request headers!");let d=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!d)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!o().existsSync(`${d}/${u.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==u.verification_status&&!t){let e=await (0,s.A)(`SELECT verification_status FROM users WHERE id='${u.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(u?.date&&Date.now()-u.date>6048e5)throw Error("Key expired!");return u}catch(e){return console.log(`userAuth Error: ${e.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>s});function s(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",a=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",n=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),o=r;e?.userId&&(o+=`user_${e.userId}_`),n&&(o+=`${n}_`),o+=t;let i=r;e?.userId&&(i+=`user_${e.userId}_`),n&&(i+=`${n}_`),i+=s;let l=r;return e?.userId&&(l+=`user_${e.userId}_`),n&&(l+=`${n}_`),{keyCookieName:o,csrfCookieName:i,oneTimeCodeName:l+=a}}},30802:(e,r,t)=>{t.d(r,{A:()=>u});var s=t(72583),a=t.n(s),n=t(92652),o=t(48786),i=t(37275),l=t(68829),c=t(7971);async function u({dbContext:e,paradigm:r,dbFullName:t,tableName:s,data:u,tableSchema:d,identifierColumnName:_,identifierValue:p,encryptionKey:f,encryptionSalt:g,useLocal:E}){if(!u||!Object.keys(u).length)return null;let S=!!E||!e?.match(/dsql.user/i)&&(!t||!!t.match(/^datasquirel$/)),y=E?c.A:S?o.A:i.A,m=Object.keys(u),h=[],A=[];for(let e=0;ee.fieldName===r):null,o=s&&s[0]?s[0]:null;if(null==t||void 0==t)continue;let i=/<[^>]+>/g;(o?.richText||String(t).match(i))&&(t=a()(t,n.A)),o?.encrypted&&(t=(0,l.A)({data:t,encryptionKey:f,encryptionSalt:g})),"object"==typeof t&&(t=JSON.stringify(t)),o?.pattern&&!new RegExp(o.pattern,o.patternFlags||"").test(t)&&(console.log("DSQL: Pattern not matched =>",t),t=""),"string"==typeof t&&t.match(/^null$/i)&&(t={toSqlString:function(){return"NULL"}}),"string"!=typeof t||t.match(/./i)||(t={toSqlString:function(){return"NULL"}}),h.push(`\`${r}\`=?`),"number"==typeof t?A.push(String(t)):A.push(t)}catch(e){console.log("DSQL: Error in parsing data keys in update function =>",e.message);continue}h.push(`date_updated='${Date()}'`),h.push(`date_updated_code='${Date.now()}'`);let N=`UPDATE \`${t}\`.\`${s}\` SET ${h.join(",")} WHERE \`${_}\`=?`;return A.push(p),S?await y(N,A):await y({paradigm:r,queryString:N,queryValues:A})}},92652:(e,r,t)=>{t.d(r,{A:()=>s});let s={allowedTags:["b","i","em","strong","a","p","span","ul","ol","li","h1","h2","h3","h4","h5","h6","img","div","button","pre","code","br"],allowedAttributes:{a:["href"],img:["src","alt","width","height","class","style"],"*":["style","class"]}}},67619:(e,r,t)=>{t.d(r,{A:()=>n});var s=t(29021),a=t.n(s);async function n({user:e,message:r,component:t,noMail:s,req:n}){let o=new Date,i=(()=>{if(!n)return null;try{let e=n.headers["x-forwarded-for"],r=n.headers["x-real-ip"],t=n.headers["cf-connecting-ip"],s=Array.isArray(e)?e[0]:e?.split(",")[0],a=t||s||r||n.socket.remoteAddress;if(!a)return null;return String(a)}catch(e){return null}})();try{let s=`🚀 SERVER ERROR =========================== Error Message: ${r} -Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(a+=` +Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(s+=` User Id: ${e?.id} User Name: ${e?.first_name} ${e?.last_name} -User Email: ${e?.email}`),n?.url&&(a+=` -URL: ${n.url}`),n?.body&&(a+=` -Request Body: ${JSON.stringify(n.body,null,4)}`),i&&(a+=` -IP: ${i}`),a+=` +User Email: ${e?.email}`),n?.url&&(s+=` +URL: ${n.url}`),n?.body&&(s+=` +Request Body: ${JSON.stringify(n.body,null,4)}`),i&&(s+=` +IP: ${i}`),s+=` Date: ${o.toDateString()} -========================================`,s().existsSync("./.tmp/error.log")||s().writeFileSync("./.tmp/error.log","","utf-8");let l=s().readFileSync("./.tmp/error.log","utf-8");s().writeFileSync("./.tmp/error.log",a),s().appendFileSync("./.tmp/error.log",` +========================================`,a().existsSync("./.tmp/error.log")||a().writeFileSync("./.tmp/error.log","","utf-8");let l=a().readFileSync("./.tmp/error.log","utf-8");a().writeFileSync("./.tmp/error.log",s),a().appendFileSync("./.tmp/error.log",` -${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},95969:(e,r,t)=>{t.d(r,{A:()=>n});var a=t(55511),s=t(79428);function n({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let n=r||process.env.DSQL_ENCRYPTION_PASSWORD,o=t||process.env.DSQL_ENCRYPTION_SALT,i=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!n?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!o?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let l=(0,a.scryptSync)(n,o,i),u=s.Buffer.alloc(16,0),c=(0,a.createDecipheriv)("aes-192-cbc",l,u);try{let r=c.update(e,"hex","utf8");return r+=c.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},68829:(e,r,t)=>{t.r(r),t.d(r,{default:()=>n});var a=t(55511),s=t(79428);function n({data:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encryption string is invalid"),e;let n=r||process.env.DSQL_ENCRYPTION_PASSWORD,o=t||process.env.DSQL_ENCRYPTION_SALT,i=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!n?.match(/.{8,}/))return console.log("Encryption key is invalid"),e;if(!o?.match(/.{8,}/))return console.log("Encryption salt is invalid"),e;let l=(0,a.scryptSync)(n,o,i),u=s.Buffer.alloc(16,0),c=(0,a.createCipheriv)("aes-192-cbc",l,u);try{let r=c.update(e,"utf8","hex");return r+=c.final("hex")}catch(r){return console.log("Error in encrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>a});async function a(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},37275:(e,r,t)=>{async function a(e,r,t){try{if("string"==typeof r){let a=await e.query(s(r),t);return JSON.parse(JSON.stringify(a))}if("object"!=typeof r)return null;{let t=[];for(let a=0;an})},7971:(e,r,t)=>{t.d(r,{A:()=>i});var a=t(9973),s=t.n(a),n=t(29021),o=t.n(n);async function i(...e){let r=s()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!o().existsSync(r)){console.log(`${r} does not exist`);return}return{ca:o().readFileSync(`${e}/ca-cert.pem`),rejectUnauthorized:!1}}()},onConnect:()=>{console.log("Connection Successful!")},onConnectError:e=>{console.log("Connection Error",e.message)},onError:e=>{console.log("Client Error",e.message)}});console.log("Querying ...");try{let t=await r.query(...e);return await r.end(),JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e.message),{success:!1,error:e.message}}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=18885);module.exports=t})(); \ No newline at end of file +${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},95969:(e,r,t)=>{t.d(r,{A:()=>n});var s=t(55511),a=t(79428);function n({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let n=r||process.env.DSQL_ENCRYPTION_PASSWORD,o=t||process.env.DSQL_ENCRYPTION_SALT,i=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!n?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!o?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let l=(0,s.scryptSync)(n,o,i),c=a.Buffer.alloc(16,0),u=(0,s.createDecipheriv)("aes-192-cbc",l,c);try{let r=u.update(e,"hex","utf8");return r+=u.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},68829:(e,r,t)=>{t.d(r,{A:()=>n});var s=t(55511),a=t(79428);function n({data:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encryption string is invalid"),e;let n=r||process.env.DSQL_ENCRYPTION_PASSWORD,o=t||process.env.DSQL_ENCRYPTION_SALT,i=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!n?.match(/.{8,}/))return console.log("Encryption key is invalid"),e;if(!o?.match(/.{8,}/))return console.log("Encryption salt is invalid"),e;let l=(0,s.scryptSync)(n,o,i),c=a.Buffer.alloc(16,0),u=(0,s.createCipheriv)("aes-192-cbc",l,c);try{let r=u.update(e,"utf8","hex");return r+=u.final("hex")}catch(r){return console.log("Error in encrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>s});async function s(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},37275:(e,r,t)=>{async function s(e,r,t){try{if("string"==typeof r){let s=await e.query(a(r),t);return JSON.parse(JSON.stringify(s))}if("object"!=typeof r)return null;{let t=[];for(let s=0;sn})},7971:(e,r,t)=>{t.d(r,{A:()=>i});var s=t(9973),a=t.n(s),n=t(29021),o=t.n(n);async function i(...e){let r=a()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!o().existsSync(r)){console.log(`${r} does not exist`);return}return{ca:o().readFileSync(`${e}/ca-cert.pem`),rejectUnauthorized:!1}}()},onConnect:()=>{console.log("Connection Successful!")},onConnectError:e=>{console.log("Connection Error",e.message)},onError:e=>{console.log("Client Error",e.message)}});console.log("Querying ...");try{let t=await r.query(...e);return await r.end(),JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e.message),{success:!1,error:e.message}}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=18885);module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/updateUser.js b/dsql-app/.local_dist/server/pages/api/updateUser.js index 56292de..8adb6e2 100644 --- a/dsql-app/.local_dist/server/pages/api/updateUser.js +++ b/dsql-app/.local_dist/server/pages/api/updateUser.js @@ -1,16 +1,16 @@ -"use strict";(()=>{var e={};e.id=8925,e.ids=[8925],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},72583:e=>{e.exports=require("sanitize-html")},9973:e=>{e.exports=require("serverless-mysql")},9288:e=>{e.exports=require("sharp")},79428:e=>{e.exports=require("buffer")},79646:e=>{e.exports=require("child_process")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},58240:(e,r,t)=>{t.r(r),t.d(r,{config:()=>N,default:()=>E,routeModule:()=>A});var n={};t.r(n),t.d(n,{default:()=>y});var s=t(89947),a=t(2706),i=t(96762),o=t(48786);let l=require("node-fetch");var u=t.n(l),c=t(9288),d=t.n(c),f=t(67619);async function p({imageSourceUrl:e,imageWritePath:r,maxSize:t,sourceType:n}){try{async function s(){let r;if(n?.match("url")){if(e.match(/^http/i)){let t=await u()(e,{});r=await t.buffer()}else r=`./public${e}`}else n?.match("base64")&&(r=Buffer.from(e,"base64"));return r}let a=await s(),i=t||650,o=d()(a),{width:l,height:c,format:f}=await o.metadata();if(l&&c&&l>i){let e=i/l;o.resize(i,Math.round(c*e),{fit:"cover"})}f&&o.toFormat(f,{quality:80}),await o.toFile(r)}catch(e){(0,f.default)({component:"functions/backend/fsWriteImageToDisk",message:e.message})}}var _=t(69842),g=t(33873),m=t.n(g),S=t(79646),h=t(30802);async function y(e,r){if("POST"!==e.method)return r.json({user:null,msg:"Registration Failed!"});let t=await (0,_.A)(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let{first_name:n,last_name:s,image:a}=e.body;try{let e=(await (0,o.A)(`SELECT image FROM users WHERE id='${t.id}'`))[0].image===a,i=process.env.DSQL_STATIC_SERVER_DIR;if(!i)throw console.log("Static File ENV not Found!"),Error("No Static Path!");let l=m().join(i,`images/user-images/user-${t.id}/user-${t.id}-profile.jpg`),u=m().join(i,`images/user-images/user-${t.id}/user-${t.id}-profile-thumbnail.jpg`);e||(await p({imageSourceUrl:"string"==typeof a?a:a.imageBase64,imageWritePath:l,sourceType:"string"==typeof a?"url":"base64"}),await p({imageSourceUrl:"string"==typeof a?a:a.imageBase64,imageWritePath:u,maxSize:250,sourceType:"string"==typeof a?"url":"base64"}),(0,S.execSync)(`chmod 644 ${l} ${u}`));let c=l.replace(i,process.env.DSQL_STATIC_HOST||""),d=u.replace(i,process.env.DSQL_STATIC_HOST||"");await (0,h.A)({dbFullName:"datasquirel",tableName:"users",identifierColumnName:"id",identifierValue:t.id,data:{first_name:n,last_name:s,image:c,image_thumbnail:d}}),await (0,h.A)({dbFullName:"datasquirel",tableName:"user_users",identifierColumnName:"invited_user_id",identifierValue:t.id,data:{first_name:n,last_name:s,image:c,image_thumbnail:d}}),r.json({user:!0})}catch(e){(0,f.default)({component:"/api/updateUser/main-catch-error",message:e.message,user:t}),r.json({user:null})}}let E=(0,i.M)(n,"default"),N=(0,i.M)(n,"config"),A=new s.PagesAPIRouteModule({definition:{kind:a.A.PAGES_API,page:"/api/updateUser",pathname:"/api/updateUser",bundlePath:"",filename:""},userland:n})},69842:(e,r,t)=>{t.d(r,{A:()=>l});var n=t(48786),s=t(95969),a=t(29021),i=t.n(a),o=t(89159);async function l(e,r,t){try{let{keyCookieName:a,csrfCookieName:l}=(0,o.A)();if(!e.cookies?.[a]?.match(/./))throw Error("Request Cookies not Found!");let u=(0,s.A)({encryptedString:e.cookies[a]});if(!u)throw Error("Couldn't decrypt auth cookie!");let c=JSON.parse(u);if(!c.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(c.csrf_k)))throw Error("Deep Auth Failed. `csrf` key not found in request headers!");let d=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!d)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!i().existsSync(`${d}/${c.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==c.verification_status&&!t){let e=await (0,n.A)(`SELECT verification_status FROM users WHERE id='${c.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(c?.date&&Date.now()-c.date>6048e5)throw Error("Key expired!");return c}catch(e){return console.log(`userAuth Error: ${e.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>n});function n(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",n=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",s=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",a=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),i=r;e?.userId&&(i+=`user_${e.userId}_`),a&&(i+=`${a}_`),i+=t;let o=r;e?.userId&&(o+=`user_${e.userId}_`),a&&(o+=`${a}_`),o+=n;let l=r;return e?.userId&&(l+=`user_${e.userId}_`),a&&(l+=`${a}_`),{keyCookieName:i,csrfCookieName:o,oneTimeCodeName:l+=s}}},30802:(e,r,t)=>{t.d(r,{A:()=>c});var n=t(72583),s=t.n(n),a=t(92652),i=t(48786),o=t(37275),l=t(68829),u=t(7971);async function c({dbContext:e,paradigm:r,dbFullName:t,tableName:n,data:c,tableSchema:d,identifierColumnName:f,identifierValue:p,encryptionKey:_,encryptionSalt:g,useLocal:m}){if(!c||!Object.keys(c).length)return null;let S=!!m||!e?.match(/dsql.user/i)&&(!t||!!t.match(/^datasquirel$/)),h=m?u.A:S?i.A:o.default,y=Object.keys(c),E=[],N=[];for(let e=0;ee.fieldName===r):null,i=n&&n[0]?n[0]:null;if(null==t||void 0==t)continue;let o=/<[^>]+>/g;(i?.richText||String(t).match(o))&&(t=s()(t,a.A)),i?.encrypted&&(t=(0,l.default)({data:t,encryptionKey:_,encryptionSalt:g})),"object"==typeof t&&(t=JSON.stringify(t)),i?.pattern&&!new RegExp(i.pattern,i.patternFlags||"").test(t)&&(console.log("DSQL: Pattern not matched =>",t),t=""),"string"==typeof t&&t.match(/^null$/i)&&(t={toSqlString:function(){return"NULL"}}),"string"!=typeof t||t.match(/./i)||(t={toSqlString:function(){return"NULL"}}),E.push(`\`${r}\`=?`),"number"==typeof t?N.push(String(t)):N.push(t)}catch(e){console.log("DSQL: Error in parsing data keys in update function =>",e.message);continue}E.push(`date_updated='${Date()}'`),E.push(`date_updated_code='${Date.now()}'`);let A=`UPDATE \`${t}\`.\`${n}\` SET ${E.join(",")} WHERE \`${f}\`=?`;return N.push(p),S?await h(A,N):await h({paradigm:r,queryString:A,queryValues:N})}},92652:(e,r,t)=>{t.d(r,{A:()=>n});let n={allowedTags:["b","i","em","strong","a","p","span","ul","ol","li","h1","h2","h3","h4","h5","h6","img","div","button","pre","code","br"],allowedAttributes:{a:["href"],img:["src","alt","width","height","class","style"],"*":["style","class"]}}},67619:(e,r,t)=>{t.r(r),t.d(r,{default:()=>a});var n=t(29021),s=t.n(n);async function a({user:e,message:r,component:t,noMail:n,req:a}){let i=new Date,o=(()=>{if(!a)return null;try{let e=a.headers["x-forwarded-for"],r=a.headers["x-real-ip"],t=a.headers["cf-connecting-ip"],n=Array.isArray(e)?e[0]:e?.split(",")[0],s=t||n||r||a.socket.remoteAddress;if(!s)return null;return String(s)}catch(e){return null}})();try{let n=`🚀 SERVER ERROR =========================== +"use strict";(()=>{var e={};e.id=8925,e.ids=[8925],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},72583:e=>{e.exports=require("sanitize-html")},9973:e=>{e.exports=require("serverless-mysql")},9288:e=>{e.exports=require("sharp")},79428:e=>{e.exports=require("buffer")},79646:e=>{e.exports=require("child_process")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},58240:(e,r,t)=>{t.r(r),t.d(r,{config:()=>A,default:()=>E,routeModule:()=>N});var n={};t.r(n),t.d(n,{default:()=>y});var s=t(89947),i=t(2706),a=t(96762),o=t(48786);let l=require("node-fetch");var c=t.n(l),u=t(9288),d=t.n(u),p=t(67619);async function f({imageSourceUrl:e,imageWritePath:r,maxSize:t,sourceType:n}){try{async function s(){let r;if(n?.match("url")){if(e.match(/^http/i)){let t=await c()(e,{});r=await t.buffer()}else r=`./public${e}`}else n?.match("base64")&&(r=Buffer.from(e,"base64"));return r}let i=await s(),a=t||650,o=d()(i),{width:l,height:u,format:p}=await o.metadata();if(l&&u&&l>a){let e=a/l;o.resize(a,Math.round(u*e),{fit:"cover"})}p&&o.toFormat(p,{quality:80}),await o.toFile(r)}catch(e){(0,p.A)({component:"functions/backend/fsWriteImageToDisk",message:e.message})}}var _=t(69842),g=t(33873),m=t.n(g),S=t(79646),h=t(30802);async function y(e,r){if("POST"!==e.method)return r.json({user:null,msg:"Registration Failed!"});let t=await (0,_.A)(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let{first_name:n,last_name:s,image:i}=e.body;try{let e=(await (0,o.A)(`SELECT image FROM users WHERE id='${t.id}'`))[0].image===i,a=process.env.DSQL_STATIC_SERVER_DIR;if(!a)throw console.log("Static File ENV not Found!"),Error("No Static Path!");let l=m().join(a,`images/user-images/user-${t.id}/user-${t.id}-profile.jpg`),c=m().join(a,`images/user-images/user-${t.id}/user-${t.id}-profile-thumbnail.jpg`);e||(await f({imageSourceUrl:"string"==typeof i?i:i.imageBase64,imageWritePath:l,sourceType:"string"==typeof i?"url":"base64"}),await f({imageSourceUrl:"string"==typeof i?i:i.imageBase64,imageWritePath:c,maxSize:250,sourceType:"string"==typeof i?"url":"base64"}),(0,S.execSync)(`chmod 644 ${l} ${c}`));let u=l.replace(a,process.env.DSQL_STATIC_HOST||""),d=c.replace(a,process.env.DSQL_STATIC_HOST||"");await (0,h.A)({dbFullName:"datasquirel",tableName:"users",identifierColumnName:"id",identifierValue:t.id,data:{first_name:n,last_name:s,image:u,image_thumbnail:d}}),await (0,h.A)({dbFullName:"datasquirel",tableName:"user_users",identifierColumnName:"invited_user_id",identifierValue:t.id,data:{first_name:n,last_name:s,image:u,image_thumbnail:d}}),r.json({user:!0})}catch(e){(0,p.A)({component:"/api/updateUser/main-catch-error",message:e.message,user:t}),r.json({user:null})}}let E=(0,a.M)(n,"default"),A=(0,a.M)(n,"config"),N=new s.PagesAPIRouteModule({definition:{kind:i.A.PAGES_API,page:"/api/updateUser",pathname:"/api/updateUser",bundlePath:"",filename:""},userland:n})},69842:(e,r,t)=>{t.d(r,{A:()=>l});var n=t(48786),s=t(95969),i=t(29021),a=t.n(i),o=t(89159);async function l(e,r,t){try{let{keyCookieName:i,csrfCookieName:l}=(0,o.A)();if(!e.cookies?.[i]?.match(/./))throw Error("Request Cookies not Found!");let c=(0,s.A)({encryptedString:e.cookies[i]});if(!c)throw Error("Couldn't decrypt auth cookie!");let u=JSON.parse(c);if(!u.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(u.csrf_k)))throw console.log("req.headers",e.headers),console.log("userObject",u),Error("Deep Auth Failed. `csrf` key not found in request headers!");let d=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!d)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!a().existsSync(`${d}/${u.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==u.verification_status&&!t){let e=await (0,n.A)(`SELECT verification_status FROM users WHERE id='${u.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(u?.date&&Date.now()-u.date>6048e5)throw Error("Key expired!");return u}catch(e){return console.log(`userAuth Error: ${e.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>n});function n(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",n=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",s=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",i=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),a=r;e?.userId&&(a+=`user_${e.userId}_`),i&&(a+=`${i}_`),a+=t;let o=r;e?.userId&&(o+=`user_${e.userId}_`),i&&(o+=`${i}_`),o+=n;let l=r;return e?.userId&&(l+=`user_${e.userId}_`),i&&(l+=`${i}_`),{keyCookieName:a,csrfCookieName:o,oneTimeCodeName:l+=s}}},30802:(e,r,t)=>{t.d(r,{A:()=>u});var n=t(72583),s=t.n(n),i=t(92652),a=t(48786),o=t(37275),l=t(68829),c=t(7971);async function u({dbContext:e,paradigm:r,dbFullName:t,tableName:n,data:u,tableSchema:d,identifierColumnName:p,identifierValue:f,encryptionKey:_,encryptionSalt:g,useLocal:m}){if(!u||!Object.keys(u).length)return null;let S=!!m||!e?.match(/dsql.user/i)&&(!t||!!t.match(/^datasquirel$/)),h=m?c.A:S?a.A:o.A,y=Object.keys(u),E=[],A=[];for(let e=0;ee.fieldName===r):null,a=n&&n[0]?n[0]:null;if(null==t||void 0==t)continue;let o=/<[^>]+>/g;(a?.richText||String(t).match(o))&&(t=s()(t,i.A)),a?.encrypted&&(t=(0,l.A)({data:t,encryptionKey:_,encryptionSalt:g})),"object"==typeof t&&(t=JSON.stringify(t)),a?.pattern&&!new RegExp(a.pattern,a.patternFlags||"").test(t)&&(console.log("DSQL: Pattern not matched =>",t),t=""),"string"==typeof t&&t.match(/^null$/i)&&(t={toSqlString:function(){return"NULL"}}),"string"!=typeof t||t.match(/./i)||(t={toSqlString:function(){return"NULL"}}),E.push(`\`${r}\`=?`),"number"==typeof t?A.push(String(t)):A.push(t)}catch(e){console.log("DSQL: Error in parsing data keys in update function =>",e.message);continue}E.push(`date_updated='${Date()}'`),E.push(`date_updated_code='${Date.now()}'`);let N=`UPDATE \`${t}\`.\`${n}\` SET ${E.join(",")} WHERE \`${p}\`=?`;return A.push(f),S?await h(N,A):await h({paradigm:r,queryString:N,queryValues:A})}},92652:(e,r,t)=>{t.d(r,{A:()=>n});let n={allowedTags:["b","i","em","strong","a","p","span","ul","ol","li","h1","h2","h3","h4","h5","h6","img","div","button","pre","code","br"],allowedAttributes:{a:["href"],img:["src","alt","width","height","class","style"],"*":["style","class"]}}},67619:(e,r,t)=>{t.d(r,{A:()=>i});var n=t(29021),s=t.n(n);async function i({user:e,message:r,component:t,noMail:n,req:i}){let a=new Date,o=(()=>{if(!i)return null;try{let e=i.headers["x-forwarded-for"],r=i.headers["x-real-ip"],t=i.headers["cf-connecting-ip"],n=Array.isArray(e)?e[0]:e?.split(",")[0],s=t||n||r||i.socket.remoteAddress;if(!s)return null;return String(s)}catch(e){return null}})();try{let n=`🚀 SERVER ERROR =========================== Error Message: ${r} Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(n+=` User Id: ${e?.id} User Name: ${e?.first_name} ${e?.last_name} -User Email: ${e?.email}`),a?.url&&(n+=` -URL: ${a.url}`),a?.body&&(n+=` -Request Body: ${JSON.stringify(a.body,null,4)}`),o&&(n+=` +User Email: ${e?.email}`),i?.url&&(n+=` +URL: ${i.url}`),i?.body&&(n+=` +Request Body: ${JSON.stringify(i.body,null,4)}`),o&&(n+=` IP: ${o}`),n+=` -Date: ${i.toDateString()} +Date: ${a.toDateString()} ========================================`,s().existsSync("./.tmp/error.log")||s().writeFileSync("./.tmp/error.log","","utf-8");let l=s().readFileSync("./.tmp/error.log","utf-8");s().writeFileSync("./.tmp/error.log",n),s().appendFileSync("./.tmp/error.log",` -${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},95969:(e,r,t)=>{t.d(r,{A:()=>a});var n=t(55511),s=t(79428);function a({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let a=r||process.env.DSQL_ENCRYPTION_PASSWORD,i=t||process.env.DSQL_ENCRYPTION_SALT,o=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!a?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let l=(0,n.scryptSync)(a,i,o),u=s.Buffer.alloc(16,0),c=(0,n.createDecipheriv)("aes-192-cbc",l,u);try{let r=c.update(e,"hex","utf8");return r+=c.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},68829:(e,r,t)=>{t.r(r),t.d(r,{default:()=>a});var n=t(55511),s=t(79428);function a({data:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encryption string is invalid"),e;let a=r||process.env.DSQL_ENCRYPTION_PASSWORD,i=t||process.env.DSQL_ENCRYPTION_SALT,o=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!a?.match(/.{8,}/))return console.log("Encryption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Encryption salt is invalid"),e;let l=(0,n.scryptSync)(a,i,o),u=s.Buffer.alloc(16,0),c=(0,n.createCipheriv)("aes-192-cbc",l,u);try{let r=c.update(e,"utf8","hex");return r+=c.final("hex")}catch(r){return console.log("Error in encrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>n});async function n(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},37275:(e,r,t)=>{async function n(e,r,t){try{if("string"==typeof r){let n=await e.query(s(r),t);return JSON.parse(JSON.stringify(n))}if("object"!=typeof r)return null;{let t=[];for(let n=0;na})},7971:(e,r,t)=>{t.d(r,{A:()=>o});var n=t(9973),s=t.n(n),a=t(29021),i=t.n(a);async function o(...e){let r=s()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!i().existsSync(r)){console.log(`${r} does not exist`);return}return{ca:i().readFileSync(`${e}/ca-cert.pem`),rejectUnauthorized:!1}}()},onConnect:()=>{console.log("Connection Successful!")},onConnectError:e=>{console.log("Connection Error",e.message)},onError:e=>{console.log("Client Error",e.message)}});console.log("Querying ...");try{let t=await r.query(...e);return await r.end(),JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e.message),{success:!1,error:e.message}}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=58240);module.exports=t})(); \ No newline at end of file +${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},95969:(e,r,t)=>{t.d(r,{A:()=>i});var n=t(55511),s=t(79428);function i({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let i=r||process.env.DSQL_ENCRYPTION_PASSWORD,a=t||process.env.DSQL_ENCRYPTION_SALT,o=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!i?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!a?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let l=(0,n.scryptSync)(i,a,o),c=s.Buffer.alloc(16,0),u=(0,n.createDecipheriv)("aes-192-cbc",l,c);try{let r=u.update(e,"hex","utf8");return r+=u.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},68829:(e,r,t)=>{t.d(r,{A:()=>i});var n=t(55511),s=t(79428);function i({data:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encryption string is invalid"),e;let i=r||process.env.DSQL_ENCRYPTION_PASSWORD,a=t||process.env.DSQL_ENCRYPTION_SALT,o=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!i?.match(/.{8,}/))return console.log("Encryption key is invalid"),e;if(!a?.match(/.{8,}/))return console.log("Encryption salt is invalid"),e;let l=(0,n.scryptSync)(i,a,o),c=s.Buffer.alloc(16,0),u=(0,n.createCipheriv)("aes-192-cbc",l,c);try{let r=u.update(e,"utf8","hex");return r+=u.final("hex")}catch(r){return console.log("Error in encrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>n});async function n(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},37275:(e,r,t)=>{async function n(e,r,t){try{if("string"==typeof r){let n=await e.query(s(r),t);return JSON.parse(JSON.stringify(n))}if("object"!=typeof r)return null;{let t=[];for(let n=0;ni})},7971:(e,r,t)=>{t.d(r,{A:()=>o});var n=t(9973),s=t.n(n),i=t(29021),a=t.n(i);async function o(...e){let r=s()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!a().existsSync(r)){console.log(`${r} does not exist`);return}return{ca:a().readFileSync(`${e}/ca-cert.pem`),rejectUnauthorized:!1}}()},onConnect:()=>{console.log("Connection Successful!")},onConnectError:e=>{console.log("Connection Error",e.message)},onError:e=>{console.log("Client Error",e.message)}});console.log("Querying ...");try{let t=await r.query(...e);return await r.end(),JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e.message),{success:!1,error:e.message}}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=58240);module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/updateUserDatabase.js b/dsql-app/.local_dist/server/pages/api/updateUserDatabase.js index 6a397b4..2bbc0f6 100644 --- a/dsql-app/.local_dist/server/pages/api/updateUserDatabase.js +++ b/dsql-app/.local_dist/server/pages/api/updateUserDatabase.js @@ -1,4 +1,4 @@ -"use strict";(()=>{var e={};e.id=7214,e.ids=[7214],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},72583:e=>{e.exports=require("sanitize-html")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},79646:e=>{e.exports=require("child_process")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},21820:e=>{e.exports=require("os")},33873:e=>{e.exports=require("path")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},53382:(e,r,t)=>{t.r(r),t.d(r,{config:()=>S,default:()=>m,routeModule:()=>g});var s={};t.r(s),t.d(s,{default:()=>_});var n=t(89947),a=t(2706),o=t(96762),i=t(30802),l=t(67619),c=t(69842),u=t(30944);let d=t(29021),p=t(21820);t(33873);let{execSync:f}=t(79646);async function _(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await (0,c.A)(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let{id:s,db_name:n,db_slug:a,db_description:o,db_image:_,db_full_name:m,active_clone:S,active_clone_parent_db:g}=e.body;m?.match(/datasquirel_user_.*/)||r.json({success:!1,msg:"Unauthorized"});let y=`datasquirel_user_${t.id}_${a}`;if(await (0,i.A)({dbFullName:"datasquirel",tableName:"user_databases",identifierColumnName:"id",identifierValue:s,data:{db_name:n,db_slug:a,db_description:o,db_image:_,db_full_name:y}}),m&&m!==y){console.log("Renaming Database");let e=p.platform().match(/win/i)?"'C:\\Program Files\\MySQL\\MySQL Server 8.0\\bin\\mysql.exe'":"mysql",r=p.platform().match(/win/i)?"'C:\\Program Files\\MySQL\\MySQL Server 8.0\\bin\\mysqldump.exe'":"mysqldump";try{await (0,u.A)({queryString:`CREATE DATABASE \`${y}\` CHARACTER SET utf8mb4 COLLATE utf8mb4_bin`});let t={cwd:process.cwd()};p.platform().match(/win/i)&&(t.shell="bash.exe");let s=`${r} -u ${process.env.DSQL_DB_USERNAME} -h ${process.env.DSQL_DB_HOST} -p${process.env.DSQL_DB_PASSWORD} ${m} > tmpDbFile.sql`;console.log(`updateUserDatabase.ts exe => ${s}`),f(s,t),f(`${e} -u ${process.env.DSQL_DB_USERNAME} -h ${process.env.DSQL_DB_HOST} -p${process.env.DSQL_DB_PASSWORD} ${y} < tmpDbFile.sql`,t),await (0,u.A)({queryString:`DROP DATABASE \`${m}\``})}catch(e){(0,l.default)({component:"/api/updateUserDatabase/lines-88-111",message:e.message,user:t})}}try{let e=`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${t.id}/main.json`,s=JSON.parse(d.readFileSync(e,"utf8")),i=s.filter(e=>e.dbFullName===m);if(i[0].dbName=n,i[0].dbFullName=y,i[0].dbDescription=o,i[0].dbImage=_,i[0].dbSlug=a,S){let e=s.filter(e=>e.dbFullName===i[0].childDatabaseDbFullName)[0],r=e.childrenDatabases?.find(e=>e.dbFullName===m);r&&(r.dbFullName=y)}d.writeFileSync(`${e}`,JSON.stringify(s),"utf8"),r.json({success:!0})}catch(e){(0,l.default)({component:"/api/updateUserDatabase/main-catch-error",message:e.message,user:t}),r.json({success:!1,msg:"Database Files could not be written!"})}}let m=(0,o.M)(s,"default"),S=(0,o.M)(s,"config"),g=new n.PagesAPIRouteModule({definition:{kind:a.A.PAGES_API,page:"/api/updateUserDatabase",pathname:"/api/updateUserDatabase",bundlePath:"",filename:""},userland:s})},69842:(e,r,t)=>{t.d(r,{A:()=>l});var s=t(48786),n=t(95969),a=t(29021),o=t.n(a),i=t(89159);async function l(e,r,t){try{let{keyCookieName:a,csrfCookieName:l}=(0,i.A)();if(!e.cookies?.[a]?.match(/./))throw Error("Request Cookies not Found!");let c=(0,n.A)({encryptedString:e.cookies[a]});if(!c)throw Error("Couldn't decrypt auth cookie!");let u=JSON.parse(c);if(!u.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(u.csrf_k)))throw Error("Deep Auth Failed. `csrf` key not found in request headers!");let d=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!d)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!o().existsSync(`${d}/${u.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==u.verification_status&&!t){let e=await (0,s.A)(`SELECT verification_status FROM users WHERE id='${u.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(u?.date&&Date.now()-u.date>6048e5)throw Error("Key expired!");return u}catch(e){return console.log(`userAuth Error: ${e.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>s});function s(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",n=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",a=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),o=r;e?.userId&&(o+=`user_${e.userId}_`),a&&(o+=`${a}_`),o+=t;let i=r;e?.userId&&(i+=`user_${e.userId}_`),a&&(i+=`${a}_`),i+=s;let l=r;return e?.userId&&(l+=`user_${e.userId}_`),a&&(l+=`${a}_`),{keyCookieName:o,csrfCookieName:i,oneTimeCodeName:l+=n}}},30802:(e,r,t)=>{t.d(r,{A:()=>u});var s=t(72583),n=t.n(s),a=t(92652),o=t(48786),i=t(37275),l=t(68829),c=t(7971);async function u({dbContext:e,paradigm:r,dbFullName:t,tableName:s,data:u,tableSchema:d,identifierColumnName:p,identifierValue:f,encryptionKey:_,encryptionSalt:m,useLocal:S}){if(!u||!Object.keys(u).length)return null;let g=!!S||!e?.match(/dsql.user/i)&&(!t||!!t.match(/^datasquirel$/)),y=S?c.A:g?o.A:i.default,h=Object.keys(u),E=[],D=[];for(let e=0;ee.fieldName===r):null,o=s&&s[0]?s[0]:null;if(null==t||void 0==t)continue;let i=/<[^>]+>/g;(o?.richText||String(t).match(i))&&(t=n()(t,a.A)),o?.encrypted&&(t=(0,l.default)({data:t,encryptionKey:_,encryptionSalt:m})),"object"==typeof t&&(t=JSON.stringify(t)),o?.pattern&&!new RegExp(o.pattern,o.patternFlags||"").test(t)&&(console.log("DSQL: Pattern not matched =>",t),t=""),"string"==typeof t&&t.match(/^null$/i)&&(t={toSqlString:function(){return"NULL"}}),"string"!=typeof t||t.match(/./i)||(t={toSqlString:function(){return"NULL"}}),E.push(`\`${r}\`=?`),"number"==typeof t?D.push(String(t)):D.push(t)}catch(e){console.log("DSQL: Error in parsing data keys in update function =>",e.message);continue}E.push(`date_updated='${Date()}'`),E.push(`date_updated_code='${Date.now()}'`);let A=`UPDATE \`${t}\`.\`${s}\` SET ${E.join(",")} WHERE \`${p}\`=?`;return D.push(f),g?await y(A,D):await y({paradigm:r,queryString:A,queryValues:D})}},92652:(e,r,t)=>{t.d(r,{A:()=>s});let s={allowedTags:["b","i","em","strong","a","p","span","ul","ol","li","h1","h2","h3","h4","h5","h6","img","div","button","pre","code","br"],allowedAttributes:{a:["href"],img:["src","alt","width","height","class","style"],"*":["style","class"]}}},43775:(e,r,t)=>{t.d(r,{A:()=>a});var s=t(95969);let n=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/;async function a({unparsedResults:e,tableSchema:r}){let t=[];try{for(let a=0;a",r.message),e}}},67619:(e,r,t)=>{t.r(r),t.d(r,{default:()=>a});var s=t(29021),n=t.n(s);async function a({user:e,message:r,component:t,noMail:s,req:a}){let o=new Date,i=(()=>{if(!a)return null;try{let e=a.headers["x-forwarded-for"],r=a.headers["x-real-ip"],t=a.headers["cf-connecting-ip"],s=Array.isArray(e)?e[0]:e?.split(",")[0],n=t||s||r||a.socket.remoteAddress;if(!n)return null;return String(n)}catch(e){return null}})();try{let s=`🚀 SERVER ERROR =========================== +"use strict";(()=>{var e={};e.id=7214,e.ids=[7214],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},72583:e=>{e.exports=require("sanitize-html")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},79646:e=>{e.exports=require("child_process")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},21820:e=>{e.exports=require("os")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},53382:(e,r,t)=>{t.r(r),t.d(r,{config:()=>y,default:()=>g,routeModule:()=>h});var s={};t.r(s),t.d(s,{default:()=>S});var n=t(89947),a=t(2706),o=t(96762),i=t(29021),l=t.n(i),c=t(21820),u=t.n(c),d=t(79646),p=t(30802),_=t(67619),f=t(69842),m=t(30944);async function S(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await (0,f.A)(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let{id:s,db_name:n,db_slug:a,db_description:o,db_image:i,db_full_name:c,active_clone:S,active_clone_parent_db:g}=e.body;c?.match(/datasquirel_user_.*/)||r.json({success:!1,msg:"Unauthorized"});let y=`datasquirel_user_${t.id}_${a}`;if(await (0,p.A)({dbFullName:"datasquirel",tableName:"user_databases",identifierColumnName:"id",identifierValue:s,data:{db_name:n,db_slug:a,db_description:o,db_image:i,db_full_name:y}}),c&&c!==y){console.log("Renaming Database");let e=u().platform().match(/win/i)?"'C:\\Program Files\\MySQL\\MySQL Server 8.0\\bin\\mysql.exe'":"mysql",r=u().platform().match(/win/i)?"'C:\\Program Files\\MySQL\\MySQL Server 8.0\\bin\\mysqldump.exe'":"mysqldump";try{await (0,m.A)({queryString:`CREATE DATABASE \`${y}\` CHARACTER SET utf8mb4 COLLATE utf8mb4_bin`});let t={cwd:process.cwd()};u().platform().match(/win/i)&&(t.shell="bash.exe");let s=`${r} -u ${process.env.DSQL_DB_USERNAME} -h ${process.env.DSQL_DB_HOST} -p${process.env.DSQL_DB_PASSWORD} ${c} > tmpDbFile.sql`;console.log(`updateUserDatabase.ts exe => ${s}`),(0,d.execSync)(s,t),(0,d.execSync)(`${e} -u ${process.env.DSQL_DB_USERNAME} -h ${process.env.DSQL_DB_HOST} -p${process.env.DSQL_DB_PASSWORD} ${y} < tmpDbFile.sql`,t),await (0,m.A)({queryString:`DROP DATABASE \`${c}\``})}catch(e){(0,_.A)({component:"/api/updateUserDatabase/lines-88-111",message:e.message,user:t})}}try{let e=`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${t.id}/main.json`,s=JSON.parse(l().readFileSync(e,"utf8")),u=s.filter(e=>e.dbFullName===c);if(u[0].dbName=n,u[0].dbFullName=y,u[0].dbDescription=o,u[0].dbImage=i,u[0].dbSlug=a,S){let e=s.filter(e=>e.dbFullName===u[0].childDatabaseDbFullName)[0],r=e.childrenDatabases?.find(e=>e.dbFullName===c);r&&(r.dbFullName=y)}l().writeFileSync(`${e}`,JSON.stringify(s),"utf8"),r.json({success:!0})}catch(e){(0,_.A)({component:"/api/updateUserDatabase/main-catch-error",message:e.message,user:t}),r.json({success:!1,msg:"Database Files could not be written!"})}}let g=(0,o.M)(s,"default"),y=(0,o.M)(s,"config"),h=new n.PagesAPIRouteModule({definition:{kind:a.A.PAGES_API,page:"/api/updateUserDatabase",pathname:"/api/updateUserDatabase",bundlePath:"",filename:""},userland:s})},69842:(e,r,t)=>{t.d(r,{A:()=>l});var s=t(48786),n=t(95969),a=t(29021),o=t.n(a),i=t(89159);async function l(e,r,t){try{let{keyCookieName:a,csrfCookieName:l}=(0,i.A)();if(!e.cookies?.[a]?.match(/./))throw Error("Request Cookies not Found!");let c=(0,n.A)({encryptedString:e.cookies[a]});if(!c)throw Error("Couldn't decrypt auth cookie!");let u=JSON.parse(c);if(!u.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(u.csrf_k)))throw console.log("req.headers",e.headers),console.log("userObject",u),Error("Deep Auth Failed. `csrf` key not found in request headers!");let d=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!d)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!o().existsSync(`${d}/${u.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==u.verification_status&&!t){let e=await (0,s.A)(`SELECT verification_status FROM users WHERE id='${u.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(u?.date&&Date.now()-u.date>6048e5)throw Error("Key expired!");return u}catch(e){return console.log(`userAuth Error: ${e.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>s});function s(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",n=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",a=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),o=r;e?.userId&&(o+=`user_${e.userId}_`),a&&(o+=`${a}_`),o+=t;let i=r;e?.userId&&(i+=`user_${e.userId}_`),a&&(i+=`${a}_`),i+=s;let l=r;return e?.userId&&(l+=`user_${e.userId}_`),a&&(l+=`${a}_`),{keyCookieName:o,csrfCookieName:i,oneTimeCodeName:l+=n}}},30802:(e,r,t)=>{t.d(r,{A:()=>u});var s=t(72583),n=t.n(s),a=t(92652),o=t(48786),i=t(37275),l=t(68829),c=t(7971);async function u({dbContext:e,paradigm:r,dbFullName:t,tableName:s,data:u,tableSchema:d,identifierColumnName:p,identifierValue:_,encryptionKey:f,encryptionSalt:m,useLocal:S}){if(!u||!Object.keys(u).length)return null;let g=!!S||!e?.match(/dsql.user/i)&&(!t||!!t.match(/^datasquirel$/)),y=S?c.A:g?o.A:i.A,h=Object.keys(u),E=[],D=[];for(let e=0;ee.fieldName===r):null,o=s&&s[0]?s[0]:null;if(null==t||void 0==t)continue;let i=/<[^>]+>/g;(o?.richText||String(t).match(i))&&(t=n()(t,a.A)),o?.encrypted&&(t=(0,l.A)({data:t,encryptionKey:f,encryptionSalt:m})),"object"==typeof t&&(t=JSON.stringify(t)),o?.pattern&&!new RegExp(o.pattern,o.patternFlags||"").test(t)&&(console.log("DSQL: Pattern not matched =>",t),t=""),"string"==typeof t&&t.match(/^null$/i)&&(t={toSqlString:function(){return"NULL"}}),"string"!=typeof t||t.match(/./i)||(t={toSqlString:function(){return"NULL"}}),E.push(`\`${r}\`=?`),"number"==typeof t?D.push(String(t)):D.push(t)}catch(e){console.log("DSQL: Error in parsing data keys in update function =>",e.message);continue}E.push(`date_updated='${Date()}'`),E.push(`date_updated_code='${Date.now()}'`);let A=`UPDATE \`${t}\`.\`${s}\` SET ${E.join(",")} WHERE \`${p}\`=?`;return D.push(_),g?await y(A,D):await y({paradigm:r,queryString:A,queryValues:D})}},92652:(e,r,t)=>{t.d(r,{A:()=>s});let s={allowedTags:["b","i","em","strong","a","p","span","ul","ol","li","h1","h2","h3","h4","h5","h6","img","div","button","pre","code","br"],allowedAttributes:{a:["href"],img:["src","alt","width","height","class","style"],"*":["style","class"]}}},43775:(e,r,t)=>{t.d(r,{A:()=>a});var s=t(95969);let n=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/;async function a({unparsedResults:e,tableSchema:r}){let t=[];try{for(let a=0;a",r.message),e}}},67619:(e,r,t)=>{t.d(r,{A:()=>a});var s=t(29021),n=t.n(s);async function a({user:e,message:r,component:t,noMail:s,req:a}){let o=new Date,i=(()=>{if(!a)return null;try{let e=a.headers["x-forwarded-for"],r=a.headers["x-real-ip"],t=a.headers["cf-connecting-ip"],s=Array.isArray(e)?e[0]:e?.split(",")[0],n=t||s||r||a.socket.remoteAddress;if(!n)return null;return String(n)}catch(e){return null}})();try{let s=`🚀 SERVER ERROR =========================== Error Message: ${r} Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(s+=` User Id: ${e?.id} @@ -13,4 +13,4 @@ Date: ${o.toDateString()} -${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},30944:(e,r,t)=>{t.d(r,{A:()=>l});var s=t(43775),n=t(67619),a=t(48786),o=t(37275),i=t(7971);async function l({queryString:e,queryValuesArray:r,database:t,tableSchema:l,useLocal:c}){let u;let d=!!c||!!t?.match(/^datasquirel$/),p=c?i.A:d?a.A:o.default;try{u=e&&r&&Array.isArray(r)&&r[0]?d?await p(e,r):await p({paradigm:"Full Access",queryString:e,queryValues:r}):d?await p(e):await p({paradigm:"Full Access",queryString:e})}catch(e){console.log(`varDatabaseDbHandler Error: ${e.message}`),(0,n.default)({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(u&&l)try{let e=u;return await (0,s.A)({unparsedResults:e,tableSchema:l})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",t,e),(0,n.default)({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(u)return u;else return null}},95969:(e,r,t)=>{t.d(r,{A:()=>a});var s=t(55511),n=t(79428);function a({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let a=r||process.env.DSQL_ENCRYPTION_PASSWORD,o=t||process.env.DSQL_ENCRYPTION_SALT,i=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!a?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!o?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let l=(0,s.scryptSync)(a,o,i),c=n.Buffer.alloc(16,0),u=(0,s.createDecipheriv)("aes-192-cbc",l,c);try{let r=u.update(e,"hex","utf8");return r+=u.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},68829:(e,r,t)=>{t.r(r),t.d(r,{default:()=>a});var s=t(55511),n=t(79428);function a({data:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encryption string is invalid"),e;let a=r||process.env.DSQL_ENCRYPTION_PASSWORD,o=t||process.env.DSQL_ENCRYPTION_SALT,i=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!a?.match(/.{8,}/))return console.log("Encryption key is invalid"),e;if(!o?.match(/.{8,}/))return console.log("Encryption salt is invalid"),e;let l=(0,s.scryptSync)(a,o,i),c=n.Buffer.alloc(16,0),u=(0,s.createCipheriv)("aes-192-cbc",l,c);try{let r=u.update(e,"utf8","hex");return r+=u.final("hex")}catch(r){return console.log("Error in encrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>s});async function s(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},37275:(e,r,t)=>{async function s(e,r,t){try{if("string"==typeof r){let s=await e.query(n(r),t);return JSON.parse(JSON.stringify(s))}if("object"!=typeof r)return null;{let t=[];for(let s=0;sa})},7971:(e,r,t)=>{t.d(r,{A:()=>i});var s=t(9973),n=t.n(s),a=t(29021),o=t.n(a);async function i(...e){let r=n()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!o().existsSync(r)){console.log(`${r} does not exist`);return}return{ca:o().readFileSync(`${e}/ca-cert.pem`),rejectUnauthorized:!1}}()},onConnect:()=>{console.log("Connection Successful!")},onConnectError:e=>{console.log("Connection Error",e.message)},onError:e=>{console.log("Client Error",e.message)}});console.log("Querying ...");try{let t=await r.query(...e);return await r.end(),JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e.message),{success:!1,error:e.message}}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=53382);module.exports=t})(); \ No newline at end of file +${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},30944:(e,r,t)=>{t.d(r,{A:()=>l});var s=t(43775),n=t(67619),a=t(48786),o=t(37275),i=t(7971);async function l({queryString:e,queryValuesArray:r,database:t,tableSchema:l,useLocal:c}){let u;let d=!!c||!!t?.match(/^datasquirel$/),p=c?i.A:d?a.A:o.A;try{u=e&&r&&Array.isArray(r)&&r[0]?d?await p(e,r):await p({paradigm:"Full Access",queryString:e,queryValues:r}):d?await p(e):await p({paradigm:"Full Access",queryString:e})}catch(e){console.log(`varDatabaseDbHandler Error: ${e.message}`),(0,n.A)({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(u&&l)try{let e=u;return await (0,s.A)({unparsedResults:e,tableSchema:l})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",t,e),(0,n.A)({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(u)return u;else return null}},95969:(e,r,t)=>{t.d(r,{A:()=>a});var s=t(55511),n=t(79428);function a({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let a=r||process.env.DSQL_ENCRYPTION_PASSWORD,o=t||process.env.DSQL_ENCRYPTION_SALT,i=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!a?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!o?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let l=(0,s.scryptSync)(a,o,i),c=n.Buffer.alloc(16,0),u=(0,s.createDecipheriv)("aes-192-cbc",l,c);try{let r=u.update(e,"hex","utf8");return r+=u.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},68829:(e,r,t)=>{t.d(r,{A:()=>a});var s=t(55511),n=t(79428);function a({data:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encryption string is invalid"),e;let a=r||process.env.DSQL_ENCRYPTION_PASSWORD,o=t||process.env.DSQL_ENCRYPTION_SALT,i=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!a?.match(/.{8,}/))return console.log("Encryption key is invalid"),e;if(!o?.match(/.{8,}/))return console.log("Encryption salt is invalid"),e;let l=(0,s.scryptSync)(a,o,i),c=n.Buffer.alloc(16,0),u=(0,s.createCipheriv)("aes-192-cbc",l,c);try{let r=u.update(e,"utf8","hex");return r+=u.final("hex")}catch(r){return console.log("Error in encrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>s});async function s(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},37275:(e,r,t)=>{async function s(e,r,t){try{if("string"==typeof r){let s=await e.query(n(r),t);return JSON.parse(JSON.stringify(s))}if("object"!=typeof r)return null;{let t=[];for(let s=0;sa})},7971:(e,r,t)=>{t.d(r,{A:()=>i});var s=t(9973),n=t.n(s),a=t(29021),o=t.n(a);async function i(...e){let r=n()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!o().existsSync(r)){console.log(`${r} does not exist`);return}return{ca:o().readFileSync(`${e}/ca-cert.pem`),rejectUnauthorized:!1}}()},onConnect:()=>{console.log("Connection Successful!")},onConnectError:e=>{console.log("Connection Error",e.message)},onError:e=>{console.log("Client Error",e.message)}});console.log("Querying ...");try{let t=await r.query(...e);return await r.end(),JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e.message),{success:!1,error:e.message}}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=53382);module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/updateUserTable.js b/dsql-app/.local_dist/server/pages/api/updateUserTable.js index 7775d1e..a1a0b10 100644 --- a/dsql-app/.local_dist/server/pages/api/updateUserTable.js +++ b/dsql-app/.local_dist/server/pages/api/updateUserTable.js @@ -1 +1 @@ -"use strict";(()=>{var e={};e.id=4371,e.ids=[4371],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},72583:e=>{e.exports=require("sanitize-html")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},79646:e=>{e.exports=require("child_process")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},81147:(e,r,t)=>{t.r(r),t.d(r,{config:()=>h,default:()=>S,routeModule:()=>m});var a={};t.r(a),t.d(a,{default:()=>E});var s=t(89947),n=t(2706),o=t(96762),l=t(48786),i=t(31495),u=t(60125),c=t(67619),d=t(69842),_=t(30802),f=t(76856);let p=t(29021);t(33873);let{execSync:g}=t(79646);async function E(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await (0,d.A)(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let{dbFullName:a,dbSlug:s,dbId:n,tableNameOld:o,payload:g,delegated:E}=e.body,{tableName:S,tableFullName:h,tableDescription:m}=g;if(!S?.match(/./)||S.match(/[^a-zA-Z0-9-_]/))return r.json({success:!1,msg:"Bad Input"});try{let d=await (0,u.A)({databaseSlug:s,request:e,user:t,query:e.query});if(!await (0,i.A)({user:t,confirmedDelegetedUser:d,database:s,table:o,dbId:n,priviledgeRegex:/Edit Table/i}))return console.log("User Unauthorized"),r.json({success:!1,msg:"Unauthorized"});let g=d?.rootUserId?d.rootUserId:t.id,b=`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${g}/main.json`,y=JSON.parse(p.readFileSync(b,"utf8")),A=y.filter(e=>e.dbFullName===a)[0].tables.filter((e,r)=>{if(e.tableName===o)return!0});if(A&&A[0])A[0].tableName=S,A[0].tableNameOld=o,A[0].tableFullName=h,m&&(A[0].tableDescription=m),A[0].childrenTables&&A[0].childrenTables.forEach(e=>{try{y.filter(r=>r.dbFullName===e.dbNameFull)[0].tables.filter(r=>{if(r.tableName===e.tableName)return!0})[0].childTableName=S}catch(e){(0,c.default)({component:"/api/updateUserTable/lines-131-138",message:e.message,user:t})}});else throw Error("Table Does not exist");p.writeFileSync(`${b}`,JSON.stringify(y),"utf8"),await (0,_.A)({dbFullName:"datasquirel",tableName:"user_database_tables",identifierColumnName:"table_slug",identifierValue:o,data:{table_name:h,table_slug:S,table_description:m}}),E&&d&&await (0,l.A)("UPDATE delegated_user_tables SET `table`=? WHERE delegated_user_id=? AND root_user_id=? AND `table`=? AND `database`=?",[S,t.id,d.rootUserId,o,s]);let N=a.replace(/[^a-z\_0-9]/g,"");await (0,f.A)({userId:g,targetDatabase:N}),r.json({success:!0})}catch(e){(0,c.default)({component:"/api/updateUserTable/main-catch-error",message:e.message,user:t}),r.json({success:!1,msg:"Database Files could not be written!"})}}let S=(0,o.M)(a,"default"),h=(0,o.M)(a,"config"),m=new s.PagesAPIRouteModule({definition:{kind:n.A.PAGES_API,page:"/api/updateUserTable",pathname:"/api/updateUserTable",bundlePath:"",filename:""},userland:a})},31495:(e,r,t)=>{t.d(r,{A:()=>n});var a=t(48786),s=t(67619);async function n({user:e,confirmedDelegetedUser:r,database:t,table:n,priviledgeRegex:o,dbId:l}){let i,u;try{r?.delegated?(i=await (0,a.A)("SELECT priviledge FROM delegated_user_tables WHERE root_user_id=? AND delegated_user_id=? AND `database`=? AND `table`=?",[r.rootUserId,e.id,t,n]),u=i[0]?.priviledge?.match(o)):(i=await (0,a.A)("SELECT table_slug FROM user_database_tables WHERE user_id=? AND table_slug=? AND db_id=?",[e.id,n,l]),u=!0)}catch(r){(0,s.default)({component:"checkUserRights",message:r.message,user:e})}return!!i&&!!i[0]&&!!u}},60125:(e,r,t)=>{t.d(r,{A:()=>s});var a=t(95969);async function s({request:e,databaseSlug:r,user:t,query:s}){try{let n=t.id,o=null;if(!s?.delegated)return{dbUserId:n};let l=s.dbUserId,i=`${process.env.DSQL_USER_DB_PREFIX}${l}_${r}`,u=`${process.env.DSQL_USER_DELEGATED_DB_COOKIE_PREFIX}${i}`;try{if(!e.cookies?.[u])throw Error("Cookie not present");let t=(0,a.A)({encryptedString:e.cookies[u]});if(!t)throw Error("Invalid Token");if((o=JSON.parse(t)).databaseSlug===r)return{dbUserId:n=o.rootUserId,rootUserId:o.rootUserId,rootUserName:o.rootUserName,rootUserEmail:o.rootUserEmail,rootUserImage:o.rootUserImage,databaseFullName:o.databaseFullName,databaseSlug:o.databaseSlug,allowedTables:o.allowedTables,priviledges:o.priviledges,database:o.databaseSlug,delegated:!0}}catch(e){}return{dbUserId:n}}catch(e){return null}}},69842:(e,r,t)=>{t.d(r,{A:()=>i});var a=t(48786),s=t(95969),n=t(29021),o=t.n(n),l=t(89159);async function i(e,r,t){try{let{keyCookieName:n,csrfCookieName:i}=(0,l.A)();if(!e.cookies?.[n]?.match(/./))throw Error("Request Cookies not Found!");let u=(0,s.A)({encryptedString:e.cookies[n]});if(!u)throw Error("Couldn't decrypt auth cookie!");let c=JSON.parse(u);if(!c.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(c.csrf_k)))throw Error("Deep Auth Failed. `csrf` key not found in request headers!");let d=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!d)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!o().existsSync(`${d}/${c.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==c.verification_status&&!t){let e=await (0,a.A)(`SELECT verification_status FROM users WHERE id='${c.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(c?.date&&Date.now()-c.date>6048e5)throw Error("Key expired!");return c}catch(e){return console.log(`userAuth Error: ${e.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>a});function a(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",a=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",s=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",n=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),o=r;e?.userId&&(o+=`user_${e.userId}_`),n&&(o+=`${n}_`),o+=t;let l=r;e?.userId&&(l+=`user_${e.userId}_`),n&&(l+=`${n}_`),l+=a;let i=r;return e?.userId&&(i+=`user_${e.userId}_`),n&&(i+=`${n}_`),{keyCookieName:o,csrfCookieName:l,oneTimeCodeName:i+=s}}},30802:(e,r,t)=>{t.d(r,{A:()=>c});var a=t(72583),s=t.n(a),n=t(92652),o=t(48786),l=t(37275),i=t(68829),u=t(7971);async function c({dbContext:e,paradigm:r,dbFullName:t,tableName:a,data:c,tableSchema:d,identifierColumnName:_,identifierValue:f,encryptionKey:p,encryptionSalt:g,useLocal:E}){if(!c||!Object.keys(c).length)return null;let S=!!E||!e?.match(/dsql.user/i)&&(!t||!!t.match(/^datasquirel$/)),h=E?u.A:S?o.A:l.default,m=Object.keys(c),b=[],y=[];for(let e=0;ee.fieldName===r):null,o=a&&a[0]?a[0]:null;if(null==t||void 0==t)continue;let l=/<[^>]+>/g;(o?.richText||String(t).match(l))&&(t=s()(t,n.A)),o?.encrypted&&(t=(0,i.default)({data:t,encryptionKey:p,encryptionSalt:g})),"object"==typeof t&&(t=JSON.stringify(t)),o?.pattern&&!new RegExp(o.pattern,o.patternFlags||"").test(t)&&(console.log("DSQL: Pattern not matched =>",t),t=""),"string"==typeof t&&t.match(/^null$/i)&&(t={toSqlString:function(){return"NULL"}}),"string"!=typeof t||t.match(/./i)||(t={toSqlString:function(){return"NULL"}}),b.push(`\`${r}\`=?`),"number"==typeof t?y.push(String(t)):y.push(t)}catch(e){console.log("DSQL: Error in parsing data keys in update function =>",e.message);continue}b.push(`date_updated='${Date()}'`),b.push(`date_updated_code='${Date.now()}'`);let A=`UPDATE \`${t}\`.\`${a}\` SET ${b.join(",")} WHERE \`${_}\`=?`;return y.push(f),S?await h(A,y):await h({paradigm:r,queryString:A,queryValues:y})}},92652:(e,r,t)=>{t.d(r,{A:()=>a});let a={allowedTags:["b","i","em","strong","a","p","span","ul","ol","li","h1","h2","h3","h4","h5","h6","img","div","button","pre","code","br"],allowedAttributes:{a:["href"],img:["src","alt","width","height","class","style"],"*":["style","class"]}}},68829:(e,r,t)=>{t.r(r),t.d(r,{default:()=>n});var a=t(55511),s=t(79428);function n({data:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encryption string is invalid"),e;let n=r||process.env.DSQL_ENCRYPTION_PASSWORD,o=t||process.env.DSQL_ENCRYPTION_SALT,l=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!n?.match(/.{8,}/))return console.log("Encryption key is invalid"),e;if(!o?.match(/.{8,}/))return console.log("Encryption salt is invalid"),e;let i=(0,a.scryptSync)(n,o,l),u=s.Buffer.alloc(16,0),c=(0,a.createCipheriv)("aes-192-cbc",i,u);try{let r=c.update(e,"utf8","hex");return r+=c.final("hex")}catch(r){return console.log("Error in encrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>a});async function a(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},37275:(e,r,t)=>{async function a(e,r,t){try{if("string"==typeof r){let a=await e.query(s(r),t);return JSON.parse(JSON.stringify(a))}if("object"!=typeof r)return null;{let t=[];for(let a=0;an})},7971:(e,r,t)=>{t.d(r,{A:()=>l});var a=t(9973),s=t.n(a),n=t(29021),o=t.n(n);async function l(...e){let r=s()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!o().existsSync(r)){console.log(`${r} does not exist`);return}return{ca:o().readFileSync(`${e}/ca-cert.pem`),rejectUnauthorized:!1}}()},onConnect:()=>{console.log("Connection Successful!")},onConnectError:e=>{console.log("Connection Error",e.message)},onError:e=>{console.log("Client Error",e.message)}});console.log("Querying ...");try{let t=await r.query(...e);return await r.end(),JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e.message),{success:!1,error:e.message}}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=e=>r(r.s=e),a=r.X(0,[2282],()=>t(81147));module.exports=a})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=4371,e.ids=[4371],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},72583:e=>{e.exports=require("sanitize-html")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},81147:(e,r,t)=>{t.r(r),t.d(r,{config:()=>h,default:()=>S,routeModule:()=>b});var s={};t.r(s),t.d(s,{default:()=>E});var a=t(89947),n=t(2706),o=t(96762),i=t(29021),l=t.n(i),u=t(48786),c=t(31495),d=t(60125),_=t(67619),f=t(69842),p=t(30802),g=t(76856);async function E(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await (0,f.A)(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let{dbFullName:s,dbSlug:a,dbId:n,tableNameOld:o,payload:i,delegated:E}=e.body,{tableName:S,tableFullName:h,tableDescription:b}=i;if(!S?.match(/./)||S.match(/[^a-zA-Z0-9-_]/))return r.json({success:!1,msg:"Bad Input"});try{let i=await (0,d.A)({databaseSlug:a,request:e,user:t,query:e.query});if(!await (0,c.A)({user:t,confirmedDelegetedUser:i,database:a,table:o,dbId:n,priviledgeRegex:/Edit Table/i}))return console.log("User Unauthorized"),r.json({success:!1,msg:"Unauthorized"});let f=i?.rootUserId?i.rootUserId:t.id,m=`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${f}/main.json`,A=JSON.parse(l().readFileSync(m,"utf8")),y=A.filter(e=>e.dbFullName===s)[0].tables.filter((e,r)=>{if(e.tableName===o)return!0});if(y&&y[0])y[0].tableName=S,y[0].tableNameOld=o,y[0].tableFullName=h,b&&(y[0].tableDescription=b),y[0].childrenTables&&y[0].childrenTables.forEach(e=>{try{A.filter(r=>r.dbFullName===e.dbNameFull)[0].tables.filter(r=>{if(r.tableName===e.tableName)return!0})[0].childTableName=S}catch(e){(0,_.A)({component:"/api/updateUserTable/lines-131-138",message:e.message,user:t})}});else throw Error("Table Does not exist");l().writeFileSync(`${m}`,JSON.stringify(A),"utf8"),await (0,p.A)({dbFullName:"datasquirel",tableName:"user_database_tables",identifierColumnName:"table_slug",identifierValue:o,data:{table_name:h,table_slug:S,table_description:b}}),E&&i&&await (0,u.A)("UPDATE delegated_user_tables SET `table`=? WHERE delegated_user_id=? AND root_user_id=? AND `table`=? AND `database`=?",[S,t.id,i.rootUserId,o,a]);let N=s.replace(/[^a-z\_0-9]/g,"");await (0,g.A)({userId:f,targetDatabase:N}),r.json({success:!0})}catch(e){(0,_.A)({component:"/api/updateUserTable/main-catch-error",message:e.message,user:t}),r.json({success:!1,msg:"Database Files could not be written!"})}}let S=(0,o.M)(s,"default"),h=(0,o.M)(s,"config"),b=new a.PagesAPIRouteModule({definition:{kind:n.A.PAGES_API,page:"/api/updateUserTable",pathname:"/api/updateUserTable",bundlePath:"",filename:""},userland:s})},31495:(e,r,t)=>{t.d(r,{A:()=>n});var s=t(48786),a=t(67619);async function n({user:e,confirmedDelegetedUser:r,database:t,table:n,priviledgeRegex:o,dbId:i}){let l,u;try{r?.delegated?(l=await (0,s.A)("SELECT priviledge FROM delegated_user_tables WHERE root_user_id=? AND delegated_user_id=? AND `database`=? AND `table`=?",[r.rootUserId,e.id,t,n]),u=l[0]?.priviledge?.match(o)):(l=await (0,s.A)("SELECT table_slug FROM user_database_tables WHERE user_id=? AND table_slug=? AND db_id=?",[e.id,n,i]),u=!0)}catch(r){(0,a.A)({component:"checkUserRights",message:r.message,user:e})}return!!l&&!!l[0]&&!!u}},60125:(e,r,t)=>{t.d(r,{A:()=>a});var s=t(95969);async function a({request:e,databaseSlug:r,user:t,query:a}){try{let n=t.id,o=null;if(!a?.delegated)return{dbUserId:n};let i=a.dbUserId,l=`${process.env.DSQL_USER_DB_PREFIX}${i}_${r}`,u=`${process.env.DSQL_USER_DELEGATED_DB_COOKIE_PREFIX}${l}`;try{if(!e.cookies?.[u])throw Error("Cookie not present");let t=(0,s.A)({encryptedString:e.cookies[u]});if(!t)throw Error("Invalid Token");if((o=JSON.parse(t)).databaseSlug===r)return{dbUserId:n=o.rootUserId,rootUserId:o.rootUserId,rootUserName:o.rootUserName,rootUserEmail:o.rootUserEmail,rootUserImage:o.rootUserImage,databaseFullName:o.databaseFullName,databaseSlug:o.databaseSlug,allowedTables:o.allowedTables,priviledges:o.priviledges,database:o.databaseSlug,delegated:!0}}catch(e){}return{dbUserId:n}}catch(e){return null}}},69842:(e,r,t)=>{t.d(r,{A:()=>l});var s=t(48786),a=t(95969),n=t(29021),o=t.n(n),i=t(89159);async function l(e,r,t){try{let{keyCookieName:n,csrfCookieName:l}=(0,i.A)();if(!e.cookies?.[n]?.match(/./))throw Error("Request Cookies not Found!");let u=(0,a.A)({encryptedString:e.cookies[n]});if(!u)throw Error("Couldn't decrypt auth cookie!");let c=JSON.parse(u);if(!c.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(c.csrf_k)))throw console.log("req.headers",e.headers),console.log("userObject",c),Error("Deep Auth Failed. `csrf` key not found in request headers!");let d=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!d)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!o().existsSync(`${d}/${c.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==c.verification_status&&!t){let e=await (0,s.A)(`SELECT verification_status FROM users WHERE id='${c.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(c?.date&&Date.now()-c.date>6048e5)throw Error("Key expired!");return c}catch(e){return console.log(`userAuth Error: ${e.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>s});function s(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",a=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",n=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),o=r;e?.userId&&(o+=`user_${e.userId}_`),n&&(o+=`${n}_`),o+=t;let i=r;e?.userId&&(i+=`user_${e.userId}_`),n&&(i+=`${n}_`),i+=s;let l=r;return e?.userId&&(l+=`user_${e.userId}_`),n&&(l+=`${n}_`),{keyCookieName:o,csrfCookieName:i,oneTimeCodeName:l+=a}}},30802:(e,r,t)=>{t.d(r,{A:()=>c});var s=t(72583),a=t.n(s),n=t(92652),o=t(48786),i=t(37275),l=t(68829),u=t(7971);async function c({dbContext:e,paradigm:r,dbFullName:t,tableName:s,data:c,tableSchema:d,identifierColumnName:_,identifierValue:f,encryptionKey:p,encryptionSalt:g,useLocal:E}){if(!c||!Object.keys(c).length)return null;let S=!!E||!e?.match(/dsql.user/i)&&(!t||!!t.match(/^datasquirel$/)),h=E?u.A:S?o.A:i.A,b=Object.keys(c),m=[],A=[];for(let e=0;ee.fieldName===r):null,o=s&&s[0]?s[0]:null;if(null==t||void 0==t)continue;let i=/<[^>]+>/g;(o?.richText||String(t).match(i))&&(t=a()(t,n.A)),o?.encrypted&&(t=(0,l.A)({data:t,encryptionKey:p,encryptionSalt:g})),"object"==typeof t&&(t=JSON.stringify(t)),o?.pattern&&!new RegExp(o.pattern,o.patternFlags||"").test(t)&&(console.log("DSQL: Pattern not matched =>",t),t=""),"string"==typeof t&&t.match(/^null$/i)&&(t={toSqlString:function(){return"NULL"}}),"string"!=typeof t||t.match(/./i)||(t={toSqlString:function(){return"NULL"}}),m.push(`\`${r}\`=?`),"number"==typeof t?A.push(String(t)):A.push(t)}catch(e){console.log("DSQL: Error in parsing data keys in update function =>",e.message);continue}m.push(`date_updated='${Date()}'`),m.push(`date_updated_code='${Date.now()}'`);let y=`UPDATE \`${t}\`.\`${s}\` SET ${m.join(",")} WHERE \`${_}\`=?`;return A.push(f),S?await h(y,A):await h({paradigm:r,queryString:y,queryValues:A})}},92652:(e,r,t)=>{t.d(r,{A:()=>s});let s={allowedTags:["b","i","em","strong","a","p","span","ul","ol","li","h1","h2","h3","h4","h5","h6","img","div","button","pre","code","br"],allowedAttributes:{a:["href"],img:["src","alt","width","height","class","style"],"*":["style","class"]}}},68829:(e,r,t)=>{t.d(r,{A:()=>n});var s=t(55511),a=t(79428);function n({data:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encryption string is invalid"),e;let n=r||process.env.DSQL_ENCRYPTION_PASSWORD,o=t||process.env.DSQL_ENCRYPTION_SALT,i=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!n?.match(/.{8,}/))return console.log("Encryption key is invalid"),e;if(!o?.match(/.{8,}/))return console.log("Encryption salt is invalid"),e;let l=(0,s.scryptSync)(n,o,i),u=a.Buffer.alloc(16,0),c=(0,s.createCipheriv)("aes-192-cbc",l,u);try{let r=c.update(e,"utf8","hex");return r+=c.final("hex")}catch(r){return console.log("Error in encrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>s});async function s(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},37275:(e,r,t)=>{async function s(e,r,t){try{if("string"==typeof r){let s=await e.query(a(r),t);return JSON.parse(JSON.stringify(s))}if("object"!=typeof r)return null;{let t=[];for(let s=0;sn})},7971:(e,r,t)=>{t.d(r,{A:()=>i});var s=t(9973),a=t.n(s),n=t(29021),o=t.n(n);async function i(...e){let r=a()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!o().existsSync(r)){console.log(`${r} does not exist`);return}return{ca:o().readFileSync(`${e}/ca-cert.pem`),rejectUnauthorized:!1}}()},onConnect:()=>{console.log("Connection Successful!")},onConnectError:e=>{console.log("Connection Error",e.message)},onError:e=>{console.log("Client Error",e.message)}});console.log("Querying ...");try{let t=await r.query(...e);return await r.end(),JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e.message),{success:!1,error:e.message}}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=e=>r(r.s=e),s=r.X(0,[2282],()=>t(81147));module.exports=s})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/updateUserUser.js b/dsql-app/.local_dist/server/pages/api/updateUserUser.js index 660a7e6..0683b7d 100644 --- a/dsql-app/.local_dist/server/pages/api/updateUserUser.js +++ b/dsql-app/.local_dist/server/pages/api/updateUserUser.js @@ -1 +1 @@ -"use strict";(()=>{var e={};e.id=2500,e.ids=[2500],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},72583:e=>{e.exports=require("sanitize-html")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},72387:(e,r,t)=>{t.r(r),t.d(r,{config:()=>d,default:()=>l,routeModule:()=>f});var n={};t.r(n),t.d(n,{default:()=>u});var s=t(89947),o=t(2706),a=t(96762),i=t(30802),c=t(69842);async function u(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});if(!await (0,c.A)(e,r,!0))return r.json({success:!1,msg:"Unauthorized"});let{user_type:t}=e.body,n=(()=>{let r=Object.keys(e.body),n={};return r.forEach(r=>{!(t?.match(/database/)&&r?.match(/user_type|priviledge|database_access|databases?|confirm/))&&(r?.match(/databases|confirm/)||(n[r]=e.body[r]))}),n})(),s=await (0,i.A)({dbFullName:"datasquirel",tableName:"user_users",identifierColumnName:"id",identifierValue:e.body.id,data:{...n}});r.json({success:!!s?.affectedRows,msg:s?.affectedRows?"User Updated":s})}let l=(0,a.M)(n,"default"),d=(0,a.M)(n,"config"),f=new s.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/updateUserUser",pathname:"/api/updateUserUser",bundlePath:"",filename:""},userland:n})},69842:(e,r,t)=>{t.d(r,{A:()=>c});var n=t(48786),s=t(95969),o=t(29021),a=t.n(o),i=t(89159);async function c(e,r,t){try{let{keyCookieName:o,csrfCookieName:c}=(0,i.A)();if(!e.cookies?.[o]?.match(/./))throw Error("Request Cookies not Found!");let u=(0,s.A)({encryptedString:e.cookies[o]});if(!u)throw Error("Couldn't decrypt auth cookie!");let l=JSON.parse(u);if(!l.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(l.csrf_k)))throw Error("Deep Auth Failed. `csrf` key not found in request headers!");let d=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!d)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!a().existsSync(`${d}/${l.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==l.verification_status&&!t){let e=await (0,n.A)(`SELECT verification_status FROM users WHERE id='${l.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(l?.date&&Date.now()-l.date>6048e5)throw Error("Key expired!");return l}catch(e){return console.log(`userAuth Error: ${e.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>n});function n(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",n=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",s=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",o=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),a=r;e?.userId&&(a+=`user_${e.userId}_`),o&&(a+=`${o}_`),a+=t;let i=r;e?.userId&&(i+=`user_${e.userId}_`),o&&(i+=`${o}_`),i+=n;let c=r;return e?.userId&&(c+=`user_${e.userId}_`),o&&(c+=`${o}_`),{keyCookieName:a,csrfCookieName:i,oneTimeCodeName:c+=s}}},30802:(e,r,t)=>{t.d(r,{A:()=>l});var n=t(72583),s=t.n(n),o=t(92652),a=t(48786),i=t(37275),c=t(68829),u=t(7971);async function l({dbContext:e,paradigm:r,dbFullName:t,tableName:n,data:l,tableSchema:d,identifierColumnName:f,identifierValue:p,encryptionKey:_,encryptionSalt:E,useLocal:S}){if(!l||!Object.keys(l).length)return null;let h=!!S||!e?.match(/dsql.user/i)&&(!t||!!t.match(/^datasquirel$/)),y=S?u.A:h?a.A:i.default,g=Object.keys(l),m=[],N=[];for(let e=0;ee.fieldName===r):null,a=n&&n[0]?n[0]:null;if(null==t||void 0==t)continue;let i=/<[^>]+>/g;(a?.richText||String(t).match(i))&&(t=s()(t,o.A)),a?.encrypted&&(t=(0,c.default)({data:t,encryptionKey:_,encryptionSalt:E})),"object"==typeof t&&(t=JSON.stringify(t)),a?.pattern&&!new RegExp(a.pattern,a.patternFlags||"").test(t)&&(console.log("DSQL: Pattern not matched =>",t),t=""),"string"==typeof t&&t.match(/^null$/i)&&(t={toSqlString:function(){return"NULL"}}),"string"!=typeof t||t.match(/./i)||(t={toSqlString:function(){return"NULL"}}),m.push(`\`${r}\`=?`),"number"==typeof t?N.push(String(t)):N.push(t)}catch(e){console.log("DSQL: Error in parsing data keys in update function =>",e.message);continue}m.push(`date_updated='${Date()}'`),m.push(`date_updated_code='${Date.now()}'`);let A=`UPDATE \`${t}\`.\`${n}\` SET ${m.join(",")} WHERE \`${f}\`=?`;return N.push(p),h?await y(A,N):await y({paradigm:r,queryString:A,queryValues:N})}},92652:(e,r,t)=>{t.d(r,{A:()=>n});let n={allowedTags:["b","i","em","strong","a","p","span","ul","ol","li","h1","h2","h3","h4","h5","h6","img","div","button","pre","code","br"],allowedAttributes:{a:["href"],img:["src","alt","width","height","class","style"],"*":["style","class"]}}},95969:(e,r,t)=>{t.d(r,{A:()=>o});var n=t(55511),s=t(79428);function o({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let o=r||process.env.DSQL_ENCRYPTION_PASSWORD,a=t||process.env.DSQL_ENCRYPTION_SALT,i=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!o?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!a?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let c=(0,n.scryptSync)(o,a,i),u=s.Buffer.alloc(16,0),l=(0,n.createDecipheriv)("aes-192-cbc",c,u);try{let r=l.update(e,"hex","utf8");return r+=l.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},68829:(e,r,t)=>{t.r(r),t.d(r,{default:()=>o});var n=t(55511),s=t(79428);function o({data:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encryption string is invalid"),e;let o=r||process.env.DSQL_ENCRYPTION_PASSWORD,a=t||process.env.DSQL_ENCRYPTION_SALT,i=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!o?.match(/.{8,}/))return console.log("Encryption key is invalid"),e;if(!a?.match(/.{8,}/))return console.log("Encryption salt is invalid"),e;let c=(0,n.scryptSync)(o,a,i),u=s.Buffer.alloc(16,0),l=(0,n.createCipheriv)("aes-192-cbc",c,u);try{let r=l.update(e,"utf8","hex");return r+=l.final("hex")}catch(r){return console.log("Error in encrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>n});async function n(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},37275:(e,r,t)=>{async function n(e,r,t){try{if("string"==typeof r){let n=await e.query(s(r),t);return JSON.parse(JSON.stringify(n))}if("object"!=typeof r)return null;{let t=[];for(let n=0;no})},7971:(e,r,t)=>{t.d(r,{A:()=>i});var n=t(9973),s=t.n(n),o=t(29021),a=t.n(o);async function i(...e){let r=s()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!a().existsSync(r)){console.log(`${r} does not exist`);return}return{ca:a().readFileSync(`${e}/ca-cert.pem`),rejectUnauthorized:!1}}()},onConnect:()=>{console.log("Connection Successful!")},onConnectError:e=>{console.log("Connection Error",e.message)},onError:e=>{console.log("Client Error",e.message)}});console.log("Querying ...");try{let t=await r.query(...e);return await r.end(),JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e.message),{success:!1,error:e.message}}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=72387);module.exports=t})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=2500,e.ids=[2500],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},72583:e=>{e.exports=require("sanitize-html")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},72387:(e,r,t)=>{t.r(r),t.d(r,{config:()=>d,default:()=>u,routeModule:()=>f});var n={};t.r(n),t.d(n,{default:()=>l});var s=t(89947),o=t(2706),a=t(96762),i=t(30802),c=t(69842);async function l(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});if(!await (0,c.A)(e,r,!0))return r.json({success:!1,msg:"Unauthorized"});let{user_type:t}=e.body,n=(()=>{let r=Object.keys(e.body),n={};return r.forEach(r=>{!(t?.match(/database/)&&r?.match(/user_type|priviledge|database_access|databases?|confirm/))&&(r?.match(/databases|confirm/)||(n[r]=e.body[r]))}),n})(),s=await (0,i.A)({dbFullName:"datasquirel",tableName:"user_users",identifierColumnName:"id",identifierValue:e.body.id,data:{...n}});r.json({success:!!s?.affectedRows,msg:s?.affectedRows?"User Updated":s})}let u=(0,a.M)(n,"default"),d=(0,a.M)(n,"config"),f=new s.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/updateUserUser",pathname:"/api/updateUserUser",bundlePath:"",filename:""},userland:n})},69842:(e,r,t)=>{t.d(r,{A:()=>c});var n=t(48786),s=t(95969),o=t(29021),a=t.n(o),i=t(89159);async function c(e,r,t){try{let{keyCookieName:o,csrfCookieName:c}=(0,i.A)();if(!e.cookies?.[o]?.match(/./))throw Error("Request Cookies not Found!");let l=(0,s.A)({encryptedString:e.cookies[o]});if(!l)throw Error("Couldn't decrypt auth cookie!");let u=JSON.parse(l);if(!u.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(u.csrf_k)))throw console.log("req.headers",e.headers),console.log("userObject",u),Error("Deep Auth Failed. `csrf` key not found in request headers!");let d=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!d)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!a().existsSync(`${d}/${u.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==u.verification_status&&!t){let e=await (0,n.A)(`SELECT verification_status FROM users WHERE id='${u.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(u?.date&&Date.now()-u.date>6048e5)throw Error("Key expired!");return u}catch(e){return console.log(`userAuth Error: ${e.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>n});function n(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",n=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",s=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",o=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),a=r;e?.userId&&(a+=`user_${e.userId}_`),o&&(a+=`${o}_`),a+=t;let i=r;e?.userId&&(i+=`user_${e.userId}_`),o&&(i+=`${o}_`),i+=n;let c=r;return e?.userId&&(c+=`user_${e.userId}_`),o&&(c+=`${o}_`),{keyCookieName:a,csrfCookieName:i,oneTimeCodeName:c+=s}}},30802:(e,r,t)=>{t.d(r,{A:()=>u});var n=t(72583),s=t.n(n),o=t(92652),a=t(48786),i=t(37275),c=t(68829),l=t(7971);async function u({dbContext:e,paradigm:r,dbFullName:t,tableName:n,data:u,tableSchema:d,identifierColumnName:f,identifierValue:p,encryptionKey:_,encryptionSalt:E,useLocal:S}){if(!u||!Object.keys(u).length)return null;let h=!!S||!e?.match(/dsql.user/i)&&(!t||!!t.match(/^datasquirel$/)),g=S?l.A:h?a.A:i.A,y=Object.keys(u),m=[],A=[];for(let e=0;ee.fieldName===r):null,a=n&&n[0]?n[0]:null;if(null==t||void 0==t)continue;let i=/<[^>]+>/g;(a?.richText||String(t).match(i))&&(t=s()(t,o.A)),a?.encrypted&&(t=(0,c.A)({data:t,encryptionKey:_,encryptionSalt:E})),"object"==typeof t&&(t=JSON.stringify(t)),a?.pattern&&!new RegExp(a.pattern,a.patternFlags||"").test(t)&&(console.log("DSQL: Pattern not matched =>",t),t=""),"string"==typeof t&&t.match(/^null$/i)&&(t={toSqlString:function(){return"NULL"}}),"string"!=typeof t||t.match(/./i)||(t={toSqlString:function(){return"NULL"}}),m.push(`\`${r}\`=?`),"number"==typeof t?A.push(String(t)):A.push(t)}catch(e){console.log("DSQL: Error in parsing data keys in update function =>",e.message);continue}m.push(`date_updated='${Date()}'`),m.push(`date_updated_code='${Date.now()}'`);let N=`UPDATE \`${t}\`.\`${n}\` SET ${m.join(",")} WHERE \`${f}\`=?`;return A.push(p),h?await g(N,A):await g({paradigm:r,queryString:N,queryValues:A})}},92652:(e,r,t)=>{t.d(r,{A:()=>n});let n={allowedTags:["b","i","em","strong","a","p","span","ul","ol","li","h1","h2","h3","h4","h5","h6","img","div","button","pre","code","br"],allowedAttributes:{a:["href"],img:["src","alt","width","height","class","style"],"*":["style","class"]}}},95969:(e,r,t)=>{t.d(r,{A:()=>o});var n=t(55511),s=t(79428);function o({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let o=r||process.env.DSQL_ENCRYPTION_PASSWORD,a=t||process.env.DSQL_ENCRYPTION_SALT,i=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!o?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!a?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let c=(0,n.scryptSync)(o,a,i),l=s.Buffer.alloc(16,0),u=(0,n.createDecipheriv)("aes-192-cbc",c,l);try{let r=u.update(e,"hex","utf8");return r+=u.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},68829:(e,r,t)=>{t.d(r,{A:()=>o});var n=t(55511),s=t(79428);function o({data:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encryption string is invalid"),e;let o=r||process.env.DSQL_ENCRYPTION_PASSWORD,a=t||process.env.DSQL_ENCRYPTION_SALT,i=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!o?.match(/.{8,}/))return console.log("Encryption key is invalid"),e;if(!a?.match(/.{8,}/))return console.log("Encryption salt is invalid"),e;let c=(0,n.scryptSync)(o,a,i),l=s.Buffer.alloc(16,0),u=(0,n.createCipheriv)("aes-192-cbc",c,l);try{let r=u.update(e,"utf8","hex");return r+=u.final("hex")}catch(r){return console.log("Error in encrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>n});async function n(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},37275:(e,r,t)=>{async function n(e,r,t){try{if("string"==typeof r){let n=await e.query(s(r),t);return JSON.parse(JSON.stringify(n))}if("object"!=typeof r)return null;{let t=[];for(let n=0;no})},7971:(e,r,t)=>{t.d(r,{A:()=>i});var n=t(9973),s=t.n(n),o=t(29021),a=t.n(o);async function i(...e){let r=s()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!a().existsSync(r)){console.log(`${r} does not exist`);return}return{ca:a().readFileSync(`${e}/ca-cert.pem`),rejectUnauthorized:!1}}()},onConnect:()=>{console.log("Connection Successful!")},onConnectError:e=>{console.log("Connection Error",e.message)},onError:e=>{console.log("Client Error",e.message)}});console.log("Querying ...");try{let t=await r.query(...e);return await r.end(),JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e.message),{success:!1,error:e.message}}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=72387);module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/user-schema/replace-database-schema.js b/dsql-app/.local_dist/server/pages/api/user-schema/replace-database-schema.js index c8d3b25..5b66703 100644 --- a/dsql-app/.local_dist/server/pages/api/user-schema/replace-database-schema.js +++ b/dsql-app/.local_dist/server/pages/api/user-schema/replace-database-schema.js @@ -1 +1 @@ -"use strict";(()=>{var e={};e.id=4105,e.ids=[4105],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},55096:(e,r,t)=>{t.r(r),t.d(r,{config:()=>h,default:()=>p,routeModule:()=>A});var s={};t.r(s),t.d(s,{default:()=>E});var a=t(89947),n=t(2706),i=t(96762),o=t(69842),u=t(67619),d=t(48786),c=t(33873),l=t.n(c),_=t(76856);let f=t(29021);async function E(e,r){if("POST"!==e.method)return r.json({user:null,msg:"Registration Failed!"});let t=await (0,o.A)(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let s=e.body.schema,a=e.body.dbId;try{let e=await (0,d.A)("SELECT * FROM user_databases WHERE user_id = ? AND id = ?",[t.id,a]);if(!e?.[0])throw Error("Invalid Database");let n=e[0],i=l().resolve(process.cwd(),`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${t.id}/main.json`),o=JSON.parse(f.readFileSync(i,"utf-8")),u=o.find(e=>e.dbFullName==n.db_full_name);if(!u)throw Error("This Database doesn't exist");if(u.tables=s.tables,u.childrenDatabases)for(let e=0;ee.dbFullName===r);if(!t||!t.tables){u.childrenDatabases?.splice(e,1);continue}t.tables=s.tables}f.writeFileSync(`${i}`,JSON.stringify(o),"utf8"),await (0,_.A)({userId:t.id,targetDatabase:n.db_full_name}),r.json({success:!0})}catch(s){(0,u.default)({component:"/api/acceptUserInvitation/catch-error",message:s.message,user:t,req:e}),r.json({success:!1})}}let p=(0,i.M)(s,"default"),h=(0,i.M)(s,"config"),A=new a.PagesAPIRouteModule({definition:{kind:n.A.PAGES_API,page:"/api/user-schema/replace-database-schema",pathname:"/api/user-schema/replace-database-schema",bundlePath:"",filename:""},userland:s})},69842:(e,r,t)=>{t.d(r,{A:()=>u});var s=t(48786),a=t(95969),n=t(29021),i=t.n(n),o=t(89159);async function u(e,r,t){try{let{keyCookieName:n,csrfCookieName:u}=(0,o.A)();if(!e.cookies?.[n]?.match(/./))throw Error("Request Cookies not Found!");let d=(0,a.A)({encryptedString:e.cookies[n]});if(!d)throw Error("Couldn't decrypt auth cookie!");let c=JSON.parse(d);if(!c.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(c.csrf_k)))throw Error("Deep Auth Failed. `csrf` key not found in request headers!");let l=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!l)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!i().existsSync(`${l}/${c.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==c.verification_status&&!t){let e=await (0,s.A)(`SELECT verification_status FROM users WHERE id='${c.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(c?.date&&Date.now()-c.date>6048e5)throw Error("Key expired!");return c}catch(e){return console.log(`userAuth Error: ${e.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>s});function s(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",a=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",n=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),i=r;e?.userId&&(i+=`user_${e.userId}_`),n&&(i+=`${n}_`),i+=t;let o=r;e?.userId&&(o+=`user_${e.userId}_`),n&&(o+=`${n}_`),o+=s;let u=r;return e?.userId&&(u+=`user_${e.userId}_`),n&&(u+=`${n}_`),{keyCookieName:i,csrfCookieName:o,oneTimeCodeName:u+=a}}},48786:(e,r,t)=>{t.d(r,{A:()=>s});async function s(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../../webpack-api-runtime.js");r.C(e);var t=e=>r(r.s=e),s=r.X(0,[2282],()=>t(55096));module.exports=s})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=4105,e.ids=[4105],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},55096:(e,r,t)=>{t.r(r),t.d(r,{config:()=>A,default:()=>h,routeModule:()=>S});var s={};t.r(s),t.d(s,{default:()=>p});var a=t(89947),n=t(2706),o=t(96762),i=t(29021),u=t.n(i),c=t(69842),d=t(67619),l=t(48786),_=t(33873),f=t.n(_),E=t(76856);async function p(e,r){if("POST"!==e.method)return r.json({user:null,msg:"Registration Failed!"});let t=await (0,c.A)(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let s=e.body.schema,a=e.body.dbId;try{let e=await (0,l.A)("SELECT * FROM user_databases WHERE user_id = ? AND id = ?",[t.id,a]);if(!e?.[0])throw Error("Invalid Database");let n=e[0],o=f().resolve(process.cwd(),`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${t.id}/main.json`),i=JSON.parse(u().readFileSync(o,"utf-8")),c=i.find(e=>e.dbFullName==n.db_full_name);if(!c)throw Error("This Database doesn't exist");if(c.tables=s.tables,c.childrenDatabases)for(let e=0;ee.dbFullName===r);if(!t||!t.tables){c.childrenDatabases?.splice(e,1);continue}t.tables=s.tables}u().writeFileSync(`${o}`,JSON.stringify(i),"utf8"),await (0,E.A)({userId:t.id,targetDatabase:n.db_full_name}),r.json({success:!0})}catch(s){(0,d.A)({component:"/api/acceptUserInvitation/catch-error",message:s.message,user:t,req:e}),r.json({success:!1})}}let h=(0,o.M)(s,"default"),A=(0,o.M)(s,"config"),S=new a.PagesAPIRouteModule({definition:{kind:n.A.PAGES_API,page:"/api/user-schema/replace-database-schema",pathname:"/api/user-schema/replace-database-schema",bundlePath:"",filename:""},userland:s})},69842:(e,r,t)=>{t.d(r,{A:()=>u});var s=t(48786),a=t(95969),n=t(29021),o=t.n(n),i=t(89159);async function u(e,r,t){try{let{keyCookieName:n,csrfCookieName:u}=(0,i.A)();if(!e.cookies?.[n]?.match(/./))throw Error("Request Cookies not Found!");let c=(0,a.A)({encryptedString:e.cookies[n]});if(!c)throw Error("Couldn't decrypt auth cookie!");let d=JSON.parse(c);if(!d.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(d.csrf_k)))throw console.log("req.headers",e.headers),console.log("userObject",d),Error("Deep Auth Failed. `csrf` key not found in request headers!");let l=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!l)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!o().existsSync(`${l}/${d.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==d.verification_status&&!t){let e=await (0,s.A)(`SELECT verification_status FROM users WHERE id='${d.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(d?.date&&Date.now()-d.date>6048e5)throw Error("Key expired!");return d}catch(e){return console.log(`userAuth Error: ${e.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>s});function s(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",a=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",n=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),o=r;e?.userId&&(o+=`user_${e.userId}_`),n&&(o+=`${n}_`),o+=t;let i=r;e?.userId&&(i+=`user_${e.userId}_`),n&&(i+=`${n}_`),i+=s;let u=r;return e?.userId&&(u+=`user_${e.userId}_`),n&&(u+=`${n}_`),{keyCookieName:o,csrfCookieName:i,oneTimeCodeName:u+=a}}},48786:(e,r,t)=>{t.d(r,{A:()=>s});async function s(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../../webpack-api-runtime.js");r.C(e);var t=e=>r(r.s=e),s=r.X(0,[2282],()=>t(55096));module.exports=s})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/user/[user_id]/add-user.js b/dsql-app/.local_dist/server/pages/api/user/[user_id]/add-user.js index f90ee7e..f6c2cde 100644 --- a/dsql-app/.local_dist/server/pages/api/user/[user_id]/add-user.js +++ b/dsql-app/.local_dist/server/pages/api/user/[user_id]/add-user.js @@ -1 +1 @@ -"use strict";(()=>{var e={};e.id=8864,e.ids=[8864],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},72583:e=>{e.exports=require("sanitize-html")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},71274:(e,a,t)=>{t.r(a),t.d(a,{config:()=>E,default:()=>_,routeModule:()=>h});var s={};t.r(s),t.d(s,{default:()=>R});var r=t(89947),l=t(2706),n=t(96762),i=t(67619),u=t(56081),d=t(48786),o=t(4820),m=t(21724),c=t(98e3),p=t(76856),f=t(7971);function T({data:e,fields:a,excludeData:s,excludeFields:r}){try{t(81648),t(57539);let l=[],n=[];return e&&Object.keys(e)?.[0]&&(n=Object.keys(e)),a&&(n=[...n,...a],n=[...new Set(n)]),(n=n.filter(e=>!s||!Object.keys(s).includes(e)).filter(e=>!r||!r.find(a=>a.fieldName==e))).forEach(a=>{let t=e?e[a]:null;if("string"==typeof t){let e={fieldName:a,dataType:t.length>255?"TEXT":"VARCHAR(255)"};t.match(/<[^>]+>/g)&&(e.richText=!0),l.push(e)}else"number"==typeof t?l.push({fieldName:a,dataType:"INT"}):l.push({fieldName:a,dataType:"VARCHAR(255)"})}),l}catch(e){return console.log(`grabSchemaFieldsFromData.ts ERROR: ${e.message}`),(0,i.default)({component:"grabSchemaFieldsFromData.ts",message:e.message}),[]}}async function g({userId:e,database:a,useLocal:s,payload:r}){try{let l=function(e){try{let a=t(8693),s=t(95610),r=e?.payload?T({data:e?.payload,excludeData:s,excludeFields:a.fields}):[];console.log("supplementalFields",r);let l=[...a.fields,...r];console.log("allFields",l);let n=[...s.slice(0,2),...l,...s.slice(2)];return a.fields=[...n],a}catch(e){return console.log(`grabNewUsersTableSchema.ts ERROR: ${e.message}`),(0,i.default)({component:"grabNewUsersTableSchema",message:e.message}),null}}({payload:r});if(!l)throw Error("Couldn't Get User Preset!");let n=(0,o.A)({userId:e});if(!n)throw Error("User schema data not found!");let u=n.find(e=>e.dbFullName===a);if(!u)throw Error("Couldn't Find Target Database!");let g=u?.tables.findIndex(e=>"users"===e.tableName);"number"==typeof g&&g>0?u.tables[g]=l:u.tables.push(l),(0,m.A)({schemaData:n,userId:e});let A=s?await (0,f.A)("SELECT id FROM user_databases WHERE user_id=? AND db_slug=?",[e,a]):await (0,d.A)("SELECT id FROM user_databases WHERE user_id=? AND db_slug=?",[e,a]);return A?.[0]&&await (0,c.A)({dbFullName:"datasquirel",tableName:"user_database_tables",data:{user_id:e,db_id:A[0].id,db_slug:u.dbSlug,table_name:"Users",table_slug:"users"},useLocal:s}),await (0,p.A)({userId:e,targetDatabase:a}),"Done!"}catch(a){return console.log(`addUsersTableToDb.ts ERROR: ${a.message}`),(0,i.default)({component:"addUsersTableToDb",message:a.message,user:{id:e}}),a.message}}async function A({userId:e,database:a,newFields:t,newPayload:s}){try{let r=(0,o.A)({userId:e});if(!r)throw Error("User schema data not found!");let l=r.findIndex(e=>e.dbFullName===a);if(l<0)throw Error("Couldn't Find Target Database!");let n=r[l]?.tables.findIndex(e=>"users"===e.tableName),i=r[l].tables[n];if(!i?.fields?.[0])throw Error("Users Table Not Found!");let u=T({fields:t,data:s}),d=i.fields.findIndex(e=>"date_created"===e.fieldName);return i.fields.splice(d>=0?d:0,0,...u),(0,m.A)({schemaData:r,userId:e}),await (0,p.A)({userId:e,targetDatabase:a}),"Done!"}catch(a){return console.log(`addUsersTableToDb.ts ERROR: ${a.message}`),(0,i.default)({component:"addUsersTableToDb",message:a.message,user:{id:e}}),a.message}}var y=t(30944),N=t(83919);async function b({encryptionKey:e,payload:a,database:t,userId:s,useLocal:r}){let l=s||process.env.DSQL_API_USER_ID,n=e||process.env.DSQL_ENCRYPTION_PASSWORD;if(!n)return{success:!1,msg:"No encryption key provided",payload:null};if(!n?.match(/.{8,}/))return{success:!1,msg:"Encryption key must be at least 8 characters long",payload:null};let i=(0,N.A)({encryptionKey:n,password:String(a.password)});a.password=i;let u=`SHOW COLUMNS FROM ${t}.users`,d=await (0,y.A)({queryString:u,database:t,useLocal:r});if(d?.[0]||(await g({userId:Number(l),database:t,useLocal:r,payload:a}),d=await (0,y.A)({queryString:u,database:t,useLocal:r})),!d?.[0])return{success:!1,msg:"Could not create users table"};let o=d.map(e=>e.Field);for(let e=0;e{t.d(a,{A:()=>n});var s=t(29021),r=t.n(s),l=t(95969);let n=({key:e,database:a,table:t,user_id:s,media:n})=>{if(!e||!s)return null;try{let i=process.env.DSQL_API_KEYS_PATH;if(!i)throw Error("process.env.DSQL_API_KEYS_PATH variable not found");let u=(0,l.A)({encryptedString:e}),d=JSON.parse(u||""),o=r().existsSync(`${i}/${d.sign}`);if(String(d.user_id)!==String(s)||!o)return null;if(!d.target_database||n)return d;if(!a&&d.target_database)return null;let m=d.target_database?.split(",").includes(String(a));if(m&&!d.target_table)return d;if(m&&!t&&d.target_table)return null;if(d.target_table?.split(",").includes(String(t)))return d;return null}catch(e){return console.log(`api-cred ERROR: ${e.message}`),{error:`api-cred ERROR: ${e.message}`}}}},4820:(e,a,t)=>{t.d(a,{A:()=>u});var s=t(67619),r=t(29021),l=t.n(r),n=t(33873),i=t.n(n);function u({userId:e}){try{let a=i().resolve(process.cwd(),`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${e}/main.json`);return JSON.parse(l().readFileSync(a,"utf-8"))}catch(e){return(0,s.default)({component:"grabUserSchemaData",message:e.message}),null}}},43775:(e,a,t)=>{t.d(a,{A:()=>l});var s=t(95969);let r=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/;async function l({unparsedResults:e,tableSchema:a}){let t=[];try{for(let l=0;l",a.message),e}}},21724:(e,a,t)=>{t.d(a,{A:()=>u});var s=t(67619),r=t(29021),l=t.n(r),n=t(33873),i=t.n(n);function u({userId:e,schemaData:a}){try{let t=i().resolve(process.cwd(),`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${e}/main.json`);return l().writeFileSync(t,JSON.stringify(a),"utf8"),!0}catch(e){return(0,s.default)({component:"/functions/backend/setUserSchemaData",message:e.message}),!1}}},30944:(e,a,t)=>{t.d(a,{A:()=>u});var s=t(43775),r=t(67619),l=t(48786),n=t(37275),i=t(7971);async function u({queryString:e,queryValuesArray:a,database:t,tableSchema:u,useLocal:d}){let o;let m=!!d||!!t?.match(/^datasquirel$/),c=d?i.A:m?l.A:n.default;try{o=e&&a&&Array.isArray(a)&&a[0]?m?await c(e,a):await c({paradigm:"Full Access",queryString:e,queryValues:a}):m?await c(e):await c({paradigm:"Full Access",queryString:e})}catch(e){console.log(`varDatabaseDbHandler Error: ${e.message}`),(0,r.default)({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(o&&u)try{let e=o;return await (0,s.A)({unparsedResults:e,tableSchema:u})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",t,e),(0,r.default)({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(o)return o;else return null}},83919:(e,a,t)=>{t.d(a,{A:()=>r});var s=t(55511);function r({password:e,encryptionKey:a}){let t=a||process.env.DSQL_ENCRYPTION_PASSWORD;if(!t?.match(/.{8,}/))throw Error("Encryption key is invalid");let r=(0,s.createHmac)("sha512",t);return r.update(e),r.digest("base64")}},57539:e=>{e.exports=JSON.parse('[{"title":"VARCHAR","name":"VARCHAR","value":"0-255","argument":true,"description":"Varchar is simply letters and numbers within the range 0 - 255","maxValue":255},{"title":"TINYINT","name":"TINYINT","value":"0-100","description":"TINYINT means Integers: 0 to 100","maxValue":127},{"title":"SMALLINT","name":"SMALLINT","value":"0-255","description":"SMALLINT means Integers: 0 to 240933","maxValue":32767},{"title":"MEDIUMINT","name":"MEDIUMINT","value":"0-255","description":"MEDIUMINT means Integers: 0 to 1245568545560","maxValue":8388607},{"title":"INT","name":"INT","value":"0-255","description":"INT means Integers: 0 to 12560","maxValue":2147483647},{"title":"BIGINT","name":"BIGINT","value":"0-255","description":"BIGINT means Integers: 0 to 1245569056767568545560","maxValue":2e+63},{"title":"TINYTEXT","name":"TINYTEXT","value":"0-255","description":"Text with 255 max characters","maxValue":127},{"title":"TEXT","name":"TEXT","value":"0-100","description":"MEDIUMTEXT is just text with max length 16,777,215","maxValue":127},{"title":"MEDIUMTEXT","name":"MEDIUMTEXT","value":"0-255","description":"MEDIUMTEXT is just text with max length 16,777,215","maxValue":127},{"title":"LONGTEXT","name":"LONGTEXT","value":"0-255","description":"LONGTEXT is just text with max length 4,294,967,295","maxValue":127},{"title":"UUID","name":"UUID","valueLiteral":"UUID()","description":"A Unique ID"}]')},81648:e=>{e.exports=JSON.parse('{"fieldName":"string","dataType":"BIGINT","nullValue":true,"primaryKey":true,"autoIncrement":true,"defaultValue":"CURRENT_TIMESTAMP","defaultValueLiteral":"CURRENT_TIMESTAMP","notNullValue":true,"foreignKey":{"foreignKeyName":"Name","destinationTableName":"Table Name","destinationTableColumnName":"Column Name","cascadeDelete":true,"cascadeUpdate":true},"onUpdate":"CURRENT_TIMESTAMP","onUpdateLiteral":"CURRENT_TIMESTAMP","onDelete":"CURRENT_TIMESTAMP","onDeleteLiteral":"CURRENT_TIMESTAMP","encrypted":false}')},8693:e=>{e.exports=JSON.parse('{"tableName":"users","tableFullName":"Users","fields":[{"fieldName":"first_name","dataType":"VARCHAR(100)","notNullValue":true},{"fieldName":"last_name","dataType":"VARCHAR(100)","notNullValue":true},{"fieldName":"email","dataType":"VARCHAR(200)","notNullValue":true},{"fieldName":"phone","dataType":"VARCHAR(50)"},{"fieldName":"user_type","dataType":"VARCHAR(20)","defaultValue":"default"},{"fieldName":"username","dataType":"VARCHAR(100)","nullValue":true},{"fieldName":"password","dataType":"TEXT"},{"fieldName":"image","dataType":"VARCHAR(250)"},{"fieldName":"image_thumbnail","dataType":"VARCHAR(250)"},{"fieldName":"address","dataType":"VARCHAR(255)"},{"fieldName":"city","dataType":"VARCHAR(50)"},{"fieldName":"state","dataType":"VARCHAR(50)"},{"fieldName":"country","dataType":"VARCHAR(50)"},{"fieldName":"zip_code","dataType":"VARCHAR(50)"},{"fieldName":"social_login","dataType":"TINYINT","defaultValue":"0"},{"fieldName":"social_platform","dataType":"VARCHAR(50)","nullValue":true},{"fieldName":"social_id","dataType":"VARCHAR(250)","nullValue":true},{"fieldName":"more_user_data","dataType":"BIGINT","defaultValue":"0"},{"fieldName":"verification_status","dataType":"TINYINT","defaultValue":"0"},{"fieldName":"temp_login_code","dataType":"VARCHAR(50)","nullValue":true}]}')}};var a=require("../../../../webpack-api-runtime.js");a.C(e);var t=e=>a(a.s=e),s=a.X(0,[1251,2282],()=>t(71274));module.exports=s})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=8864,e.ids=[8864],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},72583:e=>{e.exports=require("sanitize-html")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},71274:(e,a,t)=>{t.r(a),t.d(a,{config:()=>T,default:()=>N,routeModule:()=>S});var s={};t.r(s),t.d(s,{default:()=>h});var r=t(89947),l=t(2706),n=t(96762),d=t(67619),i=t(56081),u=t(48786),o=t(4820),c=t(21724),m=t(98e3),p=t(76856),f=t(7971);function g({data:e,fields:a,excludeData:t,excludeFields:s}){try{let r=[],l=[];return e&&Object.keys(e)?.[0]&&(l=Object.keys(e)),a&&(l=[...l,...a],l=[...new Set(l)]),(l=l.filter(e=>!t||!Object.keys(t).includes(e)).filter(e=>!s||!s.find(a=>a.fieldName==e))).forEach(a=>{let t=e?e[a]:null;if("string"==typeof t){let e={fieldName:a,dataType:t.length>255?"TEXT":"VARCHAR(255)"};t.match(/<[^>]+>/g)&&(e.richText=!0),r.push(e)}else"number"==typeof t?r.push({fieldName:a,dataType:"INT"}):r.push({fieldName:a,dataType:"VARCHAR(255)"})}),r}catch(e){return console.log(`grabSchemaFieldsFromData.ts ERROR: ${e.message}`),(0,d.A)({component:"grabSchemaFieldsFromData.ts",message:e.message}),[]}}async function A({userId:e,database:a,useLocal:s,payload:r}){try{let l=function(e){try{let a=t(8693),s=t(95610),r=e?.payload?g({data:e?.payload,excludeData:s,excludeFields:a.fields}):[];console.log("supplementalFields",r);let l=[...a.fields,...r];console.log("allFields",l);let n=[...s.slice(0,2),...l,...s.slice(2)];return a.fields=[...n],a}catch(e){return console.log(`grabNewUsersTableSchema.ts ERROR: ${e.message}`),(0,d.A)({component:"grabNewUsersTableSchema",message:e.message}),null}}({payload:r});if(!l)throw Error("Couldn't Get User Preset!");let n=(0,o.A)({userId:e});if(!n)throw Error("User schema data not found!");let i=n.find(e=>e.dbFullName===a);if(!i)throw Error("Couldn't Find Target Database!");let A=i?.tables.findIndex(e=>"users"===e.tableName);"number"==typeof A&&A>0?i.tables[A]=l:i.tables.push(l),(0,c.A)({schemaData:n,userId:e});let b=s?await (0,f.A)("SELECT id FROM user_databases WHERE user_id=? AND db_slug=?",[e,a]):await (0,u.A)("SELECT id FROM user_databases WHERE user_id=? AND db_slug=?",[e,a]);return b?.[0]&&await (0,m.A)({dbFullName:"datasquirel",tableName:"user_database_tables",data:{user_id:e,db_id:b[0].id,db_slug:i.dbSlug,table_name:"Users",table_slug:"users"},useLocal:s}),await (0,p.A)({userId:e,targetDatabase:a}),"Done!"}catch(a){return console.log(`addUsersTableToDb.ts ERROR: ${a.message}`),(0,d.A)({component:"addUsersTableToDb",message:a.message,user:{id:e}}),a.message}}async function b({userId:e,database:a,newFields:t,newPayload:s}){try{let r=(0,o.A)({userId:e});if(!r)throw Error("User schema data not found!");let l=r.findIndex(e=>e.dbFullName===a);if(l<0)throw Error("Couldn't Find Target Database!");let n=r[l]?.tables.findIndex(e=>"users"===e.tableName),d=r[l].tables[n];if(!d?.fields?.[0])throw Error("Users Table Not Found!");let i=g({fields:t,data:s}),u=d.fields.findIndex(e=>"date_created"===e.fieldName);return d.fields.splice(u>=0?u:0,0,...i),(0,c.A)({schemaData:r,userId:e}),await (0,p.A)({userId:e,targetDatabase:a}),"Done!"}catch(a){return console.log(`addUsersTableToDb.ts ERROR: ${a.message}`),(0,d.A)({component:"addUsersTableToDb",message:a.message,user:{id:e}}),a.message}}var y=t(30944),_=t(83919);async function R({encryptionKey:e,payload:a,database:t,userId:s,useLocal:r}){let l=s||process.env.DSQL_API_USER_ID,n=e||process.env.DSQL_ENCRYPTION_PASSWORD;if(!n)return{success:!1,msg:"No encryption key provided",payload:null};if(!n?.match(/.{8,}/))return{success:!1,msg:"Encryption key must be at least 8 characters long",payload:null};let d=(0,_.A)({encryptionKey:n,password:String(a.password)});a.password=d;let i=`SHOW COLUMNS FROM ${t}.users`,u=await (0,y.A)({queryString:i,database:t,useLocal:r});if(u?.[0]||(await A({userId:Number(l),database:t,useLocal:r,payload:a}),u=await (0,y.A)({queryString:i,database:t,useLocal:r})),!u?.[0])return{success:!1,msg:"Could not create users table"};let o=u.map(e=>e.Field);for(let e=0;e{t.d(a,{A:()=>n});var s=t(29021),r=t.n(s),l=t(95969);let n=({key:e,database:a,table:t,user_id:s,media:n})=>{if(!e||!s)return null;try{let d=process.env.DSQL_API_KEYS_PATH;if(!d)throw Error("process.env.DSQL_API_KEYS_PATH variable not found");let i=(0,l.A)({encryptedString:e}),u=JSON.parse(i||""),o=r().existsSync(`${d}/${u.sign}`);if(String(u.user_id)!==String(s)||!o)return null;if(!u.target_database||n)return u;if(!a&&u.target_database)return null;let c=u.target_database?.split(",").includes(String(a));if(c&&!u.target_table)return u;if(c&&!t&&u.target_table)return null;if(u.target_table?.split(",").includes(String(t)))return u;return null}catch(e){return console.log(`api-cred ERROR: ${e.message}`),{error:`api-cred ERROR: ${e.message}`}}}},4820:(e,a,t)=>{t.d(a,{A:()=>i});var s=t(67619),r=t(29021),l=t.n(r),n=t(33873),d=t.n(n);function i({userId:e}){try{let a=d().resolve(process.cwd(),`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${e}/main.json`);return JSON.parse(l().readFileSync(a,"utf-8"))}catch(e){return(0,s.A)({component:"grabUserSchemaData",message:e.message}),null}}},43775:(e,a,t)=>{t.d(a,{A:()=>l});var s=t(95969);let r=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/;async function l({unparsedResults:e,tableSchema:a}){let t=[];try{for(let l=0;l",a.message),e}}},21724:(e,a,t)=>{t.d(a,{A:()=>i});var s=t(67619),r=t(29021),l=t.n(r),n=t(33873),d=t.n(n);function i({userId:e,schemaData:a}){try{let t=d().resolve(process.cwd(),`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${e}/main.json`);return l().writeFileSync(t,JSON.stringify(a),"utf8"),!0}catch(e){return(0,s.A)({component:"/functions/backend/setUserSchemaData",message:e.message}),!1}}},30944:(e,a,t)=>{t.d(a,{A:()=>i});var s=t(43775),r=t(67619),l=t(48786),n=t(37275),d=t(7971);async function i({queryString:e,queryValuesArray:a,database:t,tableSchema:i,useLocal:u}){let o;let c=!!u||!!t?.match(/^datasquirel$/),m=u?d.A:c?l.A:n.A;try{o=e&&a&&Array.isArray(a)&&a[0]?c?await m(e,a):await m({paradigm:"Full Access",queryString:e,queryValues:a}):c?await m(e):await m({paradigm:"Full Access",queryString:e})}catch(e){console.log(`varDatabaseDbHandler Error: ${e.message}`),(0,r.A)({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(o&&i)try{let e=o;return await (0,s.A)({unparsedResults:e,tableSchema:i})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",t,e),(0,r.A)({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(o)return o;else return null}},83919:(e,a,t)=>{t.d(a,{A:()=>r});var s=t(55511);function r({password:e,encryptionKey:a}){let t=a||process.env.DSQL_ENCRYPTION_PASSWORD;if(!t?.match(/.{8,}/))throw Error("Encryption key is invalid");let r=(0,s.createHmac)("sha512",t);return r.update(e),r.digest("base64")}},8693:e=>{e.exports=JSON.parse('{"tableName":"users","tableFullName":"Users","fields":[{"fieldName":"first_name","dataType":"VARCHAR(100)","notNullValue":true},{"fieldName":"last_name","dataType":"VARCHAR(100)","notNullValue":true},{"fieldName":"email","dataType":"VARCHAR(200)","notNullValue":true},{"fieldName":"phone","dataType":"VARCHAR(50)"},{"fieldName":"user_type","dataType":"VARCHAR(20)","defaultValue":"default"},{"fieldName":"username","dataType":"VARCHAR(100)","nullValue":true},{"fieldName":"password","dataType":"TEXT"},{"fieldName":"image","dataType":"VARCHAR(250)"},{"fieldName":"image_thumbnail","dataType":"VARCHAR(250)"},{"fieldName":"address","dataType":"VARCHAR(255)"},{"fieldName":"city","dataType":"VARCHAR(50)"},{"fieldName":"state","dataType":"VARCHAR(50)"},{"fieldName":"country","dataType":"VARCHAR(50)"},{"fieldName":"zip_code","dataType":"VARCHAR(50)"},{"fieldName":"social_login","dataType":"TINYINT","defaultValue":"0"},{"fieldName":"social_platform","dataType":"VARCHAR(50)","nullValue":true},{"fieldName":"social_id","dataType":"VARCHAR(250)","nullValue":true},{"fieldName":"more_user_data","dataType":"BIGINT","defaultValue":"0"},{"fieldName":"verification_status","dataType":"TINYINT","defaultValue":"0"},{"fieldName":"temp_login_code","dataType":"VARCHAR(50)","nullValue":true}]}')}};var a=require("../../../../webpack-api-runtime.js");a.C(e);var t=e=>a(a.s=e),s=a.X(0,[1251,2282],()=>t(71274));module.exports=s})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/user/[user_id]/add-user.js.nft.json b/dsql-app/.local_dist/server/pages/api/user/[user_id]/add-user.js.nft.json index 28c1e7c..18a640e 100644 --- a/dsql-app/.local_dist/server/pages/api/user/[user_id]/add-user.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/user/[user_id]/add-user.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../../../jsonData/dbSchemas/main.json","../../../../../../jsonData/dbSchemas/users/user-1/main.json","../../../../../../jsonData/dbSchemas/users/user-2/main.json","../../../../../../node_modules/bignumber.js/bignumber.js","../../../../../../node_modules/bignumber.js/package.json","../../../../../../node_modules/core-util-is/lib/util.js","../../../../../../node_modules/core-util-is/package.json","../../../../../../node_modules/deepmerge/dist/cjs.js","../../../../../../node_modules/deepmerge/package.json","../../../../../../node_modules/dom-serializer/lib/foreignNames.js","../../../../../../node_modules/dom-serializer/lib/index.js","../../../../../../node_modules/dom-serializer/package.json","../../../../../../node_modules/domelementtype/lib/index.js","../../../../../../node_modules/domelementtype/package.json","../../../../../../node_modules/domhandler/lib/index.js","../../../../../../node_modules/domhandler/lib/node.js","../../../../../../node_modules/domhandler/package.json","../../../../../../node_modules/domutils/lib/feeds.js","../../../../../../node_modules/domutils/lib/helpers.js","../../../../../../node_modules/domutils/lib/index.js","../../../../../../node_modules/domutils/lib/legacy.js","../../../../../../node_modules/domutils/lib/manipulation.js","../../../../../../node_modules/domutils/lib/querying.js","../../../../../../node_modules/domutils/lib/stringify.js","../../../../../../node_modules/domutils/lib/traversal.js","../../../../../../node_modules/domutils/package.json","../../../../../../node_modules/entities/lib/decode.js","../../../../../../node_modules/entities/lib/decode_codepoint.js","../../../../../../node_modules/entities/lib/encode.js","../../../../../../node_modules/entities/lib/escape.js","../../../../../../node_modules/entities/lib/generated/decode-data-html.js","../../../../../../node_modules/entities/lib/generated/decode-data-xml.js","../../../../../../node_modules/entities/lib/generated/encode-html.js","../../../../../../node_modules/entities/lib/index.js","../../../../../../node_modules/entities/package.json","../../../../../../node_modules/escape-string-regexp/index.js","../../../../../../node_modules/escape-string-regexp/package.json","../../../../../../node_modules/htmlparser2/lib/Parser.js","../../../../../../node_modules/htmlparser2/lib/Tokenizer.js","../../../../../../node_modules/htmlparser2/lib/index.js","../../../../../../node_modules/htmlparser2/package.json","../../../../../../node_modules/inherits/inherits.js","../../../../../../node_modules/inherits/inherits_browser.js","../../../../../../node_modules/inherits/package.json","../../../../../../node_modules/is-plain-object/dist/is-plain-object.js","../../../../../../node_modules/is-plain-object/package.json","../../../../../../node_modules/isarray/index.js","../../../../../../node_modules/isarray/package.json","../../../../../../node_modules/mysql/index.js","../../../../../../node_modules/mysql/lib/Connection.js","../../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../../node_modules/mysql/lib/Pool.js","../../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../../node_modules/mysql/package.json","../../../../../../node_modules/nanoid/non-secure/index.cjs","../../../../../../node_modules/nanoid/non-secure/package.json","../../../../../../node_modules/nanoid/package.json","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../node_modules/next/package.json","../../../../../../node_modules/parse-srcset/package.json","../../../../../../node_modules/parse-srcset/src/parse-srcset.js","../../../../../../node_modules/picocolors/package.json","../../../../../../node_modules/picocolors/picocolors.js","../../../../../../node_modules/postcss/lib/at-rule.js","../../../../../../node_modules/postcss/lib/comment.js","../../../../../../node_modules/postcss/lib/container.js","../../../../../../node_modules/postcss/lib/css-syntax-error.js","../../../../../../node_modules/postcss/lib/declaration.js","../../../../../../node_modules/postcss/lib/document.js","../../../../../../node_modules/postcss/lib/fromJSON.js","../../../../../../node_modules/postcss/lib/input.js","../../../../../../node_modules/postcss/lib/lazy-result.js","../../../../../../node_modules/postcss/lib/list.js","../../../../../../node_modules/postcss/lib/map-generator.js","../../../../../../node_modules/postcss/lib/no-work-result.js","../../../../../../node_modules/postcss/lib/node.js","../../../../../../node_modules/postcss/lib/parse.js","../../../../../../node_modules/postcss/lib/parser.js","../../../../../../node_modules/postcss/lib/postcss.js","../../../../../../node_modules/postcss/lib/previous-map.js","../../../../../../node_modules/postcss/lib/processor.js","../../../../../../node_modules/postcss/lib/result.js","../../../../../../node_modules/postcss/lib/root.js","../../../../../../node_modules/postcss/lib/rule.js","../../../../../../node_modules/postcss/lib/stringifier.js","../../../../../../node_modules/postcss/lib/stringify.js","../../../../../../node_modules/postcss/lib/symbols.js","../../../../../../node_modules/postcss/lib/terminal-highlight.js","../../../../../../node_modules/postcss/lib/tokenize.js","../../../../../../node_modules/postcss/lib/warn-once.js","../../../../../../node_modules/postcss/lib/warning.js","../../../../../../node_modules/postcss/package.json","../../../../../../node_modules/process-nextick-args/index.js","../../../../../../node_modules/process-nextick-args/package.json","../../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../../node_modules/readable-stream/package.json","../../../../../../node_modules/readable-stream/readable.js","../../../../../../node_modules/safe-buffer/index.js","../../../../../../node_modules/safe-buffer/package.json","../../../../../../node_modules/sanitize-html/index.js","../../../../../../node_modules/sanitize-html/package.json","../../../../../../node_modules/serverless-mysql/index.js","../../../../../../node_modules/serverless-mysql/package.json","../../../../../../node_modules/source-map-js/lib/array-set.js","../../../../../../node_modules/source-map-js/lib/base64-vlq.js","../../../../../../node_modules/source-map-js/lib/base64.js","../../../../../../node_modules/source-map-js/lib/binary-search.js","../../../../../../node_modules/source-map-js/lib/mapping-list.js","../../../../../../node_modules/source-map-js/lib/quick-sort.js","../../../../../../node_modules/source-map-js/lib/source-map-consumer.js","../../../../../../node_modules/source-map-js/lib/source-map-generator.js","../../../../../../node_modules/source-map-js/lib/source-node.js","../../../../../../node_modules/source-map-js/lib/util.js","../../../../../../node_modules/source-map-js/package.json","../../../../../../node_modules/source-map-js/source-map.js","../../../../../../node_modules/sqlstring/index.js","../../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../../node_modules/sqlstring/package.json","../../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../../node_modules/string_decoder/package.json","../../../../../../node_modules/util-deprecate/node.js","../../../../../../node_modules/util-deprecate/package.json","../../../../../../package-shared/data/dataTypes.json","../../../../../../package-shared/data/defaultFields.json","../../../../../../package-shared/data/possibleFields.json","../../../../../../package-shared/data/presets/users.json","../../../../../../package.json","../../../../../package.json","../../../../chunks/1251.js","../../../../chunks/1579.js","../../../../chunks/194.js","../../../../chunks/2282.js","../../../../chunks/3155.js","../../../../chunks/3474.js","../../../../chunks/3496.js","../../../../chunks/3634.js","../../../../chunks/3704.js","../../../../chunks/3791.js","../../../../chunks/4627.js","../../../../chunks/5392.js","../../../../chunks/5839.js","../../../../chunks/5954.js","../../../../chunks/6160.js","../../../../chunks/6202.js","../../../../chunks/6521.js","../../../../chunks/6622.js","../../../../chunks/6903.js","../../../../chunks/725.js","../../../../chunks/8704.js","../../../../chunks/8760.js","../../../../chunks/883.js","../../../../chunks/9796.js","../../../../chunks/9821.js","../../../../chunks/9901.js","../../../../webpack-api-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../../../jsonData/dbSchemas/main.json","../../../../../../jsonData/dbSchemas/users/user-1/main.json","../../../../../../jsonData/dbSchemas/users/user-2/main.json","../../../../../../node_modules/bignumber.js/bignumber.js","../../../../../../node_modules/bignumber.js/package.json","../../../../../../node_modules/core-util-is/lib/util.js","../../../../../../node_modules/core-util-is/package.json","../../../../../../node_modules/deepmerge/dist/cjs.js","../../../../../../node_modules/deepmerge/package.json","../../../../../../node_modules/dom-serializer/lib/foreignNames.js","../../../../../../node_modules/dom-serializer/lib/index.js","../../../../../../node_modules/dom-serializer/package.json","../../../../../../node_modules/domelementtype/lib/index.js","../../../../../../node_modules/domelementtype/package.json","../../../../../../node_modules/domhandler/lib/index.js","../../../../../../node_modules/domhandler/lib/node.js","../../../../../../node_modules/domhandler/package.json","../../../../../../node_modules/domutils/lib/feeds.js","../../../../../../node_modules/domutils/lib/helpers.js","../../../../../../node_modules/domutils/lib/index.js","../../../../../../node_modules/domutils/lib/legacy.js","../../../../../../node_modules/domutils/lib/manipulation.js","../../../../../../node_modules/domutils/lib/querying.js","../../../../../../node_modules/domutils/lib/stringify.js","../../../../../../node_modules/domutils/lib/traversal.js","../../../../../../node_modules/domutils/package.json","../../../../../../node_modules/entities/lib/decode.js","../../../../../../node_modules/entities/lib/decode_codepoint.js","../../../../../../node_modules/entities/lib/encode.js","../../../../../../node_modules/entities/lib/escape.js","../../../../../../node_modules/entities/lib/generated/decode-data-html.js","../../../../../../node_modules/entities/lib/generated/decode-data-xml.js","../../../../../../node_modules/entities/lib/generated/encode-html.js","../../../../../../node_modules/entities/lib/index.js","../../../../../../node_modules/entities/package.json","../../../../../../node_modules/escape-string-regexp/index.js","../../../../../../node_modules/escape-string-regexp/package.json","../../../../../../node_modules/htmlparser2/lib/Parser.js","../../../../../../node_modules/htmlparser2/lib/Tokenizer.js","../../../../../../node_modules/htmlparser2/lib/index.js","../../../../../../node_modules/htmlparser2/package.json","../../../../../../node_modules/inherits/inherits.js","../../../../../../node_modules/inherits/inherits_browser.js","../../../../../../node_modules/inherits/package.json","../../../../../../node_modules/is-plain-object/dist/is-plain-object.js","../../../../../../node_modules/is-plain-object/package.json","../../../../../../node_modules/isarray/index.js","../../../../../../node_modules/isarray/package.json","../../../../../../node_modules/mysql/index.js","../../../../../../node_modules/mysql/lib/Connection.js","../../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../../node_modules/mysql/lib/Pool.js","../../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../../node_modules/mysql/package.json","../../../../../../node_modules/nanoid/non-secure/index.cjs","../../../../../../node_modules/nanoid/non-secure/package.json","../../../../../../node_modules/nanoid/package.json","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../node_modules/next/package.json","../../../../../../node_modules/parse-srcset/package.json","../../../../../../node_modules/parse-srcset/src/parse-srcset.js","../../../../../../node_modules/picocolors/package.json","../../../../../../node_modules/picocolors/picocolors.js","../../../../../../node_modules/postcss/lib/at-rule.js","../../../../../../node_modules/postcss/lib/comment.js","../../../../../../node_modules/postcss/lib/container.js","../../../../../../node_modules/postcss/lib/css-syntax-error.js","../../../../../../node_modules/postcss/lib/declaration.js","../../../../../../node_modules/postcss/lib/document.js","../../../../../../node_modules/postcss/lib/fromJSON.js","../../../../../../node_modules/postcss/lib/input.js","../../../../../../node_modules/postcss/lib/lazy-result.js","../../../../../../node_modules/postcss/lib/list.js","../../../../../../node_modules/postcss/lib/map-generator.js","../../../../../../node_modules/postcss/lib/no-work-result.js","../../../../../../node_modules/postcss/lib/node.js","../../../../../../node_modules/postcss/lib/parse.js","../../../../../../node_modules/postcss/lib/parser.js","../../../../../../node_modules/postcss/lib/postcss.js","../../../../../../node_modules/postcss/lib/previous-map.js","../../../../../../node_modules/postcss/lib/processor.js","../../../../../../node_modules/postcss/lib/result.js","../../../../../../node_modules/postcss/lib/root.js","../../../../../../node_modules/postcss/lib/rule.js","../../../../../../node_modules/postcss/lib/stringifier.js","../../../../../../node_modules/postcss/lib/stringify.js","../../../../../../node_modules/postcss/lib/symbols.js","../../../../../../node_modules/postcss/lib/terminal-highlight.js","../../../../../../node_modules/postcss/lib/tokenize.js","../../../../../../node_modules/postcss/lib/warn-once.js","../../../../../../node_modules/postcss/lib/warning.js","../../../../../../node_modules/postcss/package.json","../../../../../../node_modules/process-nextick-args/index.js","../../../../../../node_modules/process-nextick-args/package.json","../../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../../node_modules/readable-stream/package.json","../../../../../../node_modules/readable-stream/readable.js","../../../../../../node_modules/safe-buffer/index.js","../../../../../../node_modules/safe-buffer/package.json","../../../../../../node_modules/sanitize-html/index.js","../../../../../../node_modules/sanitize-html/package.json","../../../../../../node_modules/serverless-mysql/index.js","../../../../../../node_modules/serverless-mysql/package.json","../../../../../../node_modules/source-map-js/lib/array-set.js","../../../../../../node_modules/source-map-js/lib/base64-vlq.js","../../../../../../node_modules/source-map-js/lib/base64.js","../../../../../../node_modules/source-map-js/lib/binary-search.js","../../../../../../node_modules/source-map-js/lib/mapping-list.js","../../../../../../node_modules/source-map-js/lib/quick-sort.js","../../../../../../node_modules/source-map-js/lib/source-map-consumer.js","../../../../../../node_modules/source-map-js/lib/source-map-generator.js","../../../../../../node_modules/source-map-js/lib/source-node.js","../../../../../../node_modules/source-map-js/lib/util.js","../../../../../../node_modules/source-map-js/package.json","../../../../../../node_modules/source-map-js/source-map.js","../../../../../../node_modules/sqlstring/index.js","../../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../../node_modules/sqlstring/package.json","../../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../../node_modules/string_decoder/package.json","../../../../../../node_modules/util-deprecate/node.js","../../../../../../node_modules/util-deprecate/package.json","../../../../../../package-shared/data/defaultFields.json","../../../../../../package-shared/data/presets/users.json","../../../../../../package.json","../../../../../package.json","../../../../chunks/1251.js","../../../../chunks/1579.js","../../../../chunks/194.js","../../../../chunks/2282.js","../../../../chunks/3155.js","../../../../chunks/3474.js","../../../../chunks/3496.js","../../../../chunks/3634.js","../../../../chunks/3704.js","../../../../chunks/3791.js","../../../../chunks/4627.js","../../../../chunks/5392.js","../../../../chunks/5839.js","../../../../chunks/5954.js","../../../../chunks/6160.js","../../../../chunks/6202.js","../../../../chunks/6521.js","../../../../chunks/6622.js","../../../../chunks/6903.js","../../../../chunks/725.js","../../../../chunks/8704.js","../../../../chunks/8760.js","../../../../chunks/883.js","../../../../chunks/9796.js","../../../../chunks/9821.js","../../../../chunks/9901.js","../../../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/user/[user_id]/delete-user.js b/dsql-app/.local_dist/server/pages/api/user/[user_id]/delete-user.js index 4d4ac5d..ed5c20f 100644 --- a/dsql-app/.local_dist/server/pages/api/user/[user_id]/delete-user.js +++ b/dsql-app/.local_dist/server/pages/api/user/[user_id]/delete-user.js @@ -1,16 +1,16 @@ -"use strict";(()=>{var e={};e.id=8078,e.ids=[8078],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},31483:(e,r,t)=>{t.r(r),t.d(r,{config:()=>p,default:()=>g,routeModule:()=>_});var n={};t.r(n),t.d(n,{default:()=>f});var a=t(89947),s=t(2706),l=t(96762),i=t(67619),o=t(56081),u=t(61932),c=t(30944);async function d({dbFullName:e,deletedUserId:r,useLocal:t}){let n=`SELECT * FROM ${e}.users WHERE id = ?`,a=await (0,c.A)({queryString:n,queryValuesArray:[r],database:e,useLocal:t});return a?.[0]?{success:!0,result:await (0,u.A)({dbContext:"Dsql User",paradigm:"Full Access",dbFullName:e,tableName:"users",identifierColumnName:"id",identifierValue:r,useLocal:t})}:{success:!1,msg:"User not found"}}async function f(e,r){if("POST"!==e.method)return r.json({success:!1,payload:null,msg:"Failed!"});try{let t=e.headers.authorization,{deletedUserId:n,database:a}=e.body,s=(0,o.A)({key:t,database:a?.db_slug,user_id:String(e.query.user_id)});if(!s?.user_id)throw Error("Api Credentials invalid!");if(!s.full_access||!s.sign)return r.json({success:!1,msg:"Unauthorized"});let l=`datasquirel_user_${s.user_id}_${a}`,i=await d({dbFullName:l,deletedUserId:n});r.json(i)}catch(t){(0,i.default)({component:"/api/user/delete-user/main-catch-error",message:t.message,user:{},req:e}),r.json({success:!1,msg:"Wrong Credentials"})}}let g=(0,l.M)(n,"default"),p=(0,l.M)(n,"config"),_=new a.PagesAPIRouteModule({definition:{kind:s.A.PAGES_API,page:"/api/user/[user_id]/delete-user",pathname:"/api/user/[user_id]/delete-user",bundlePath:"",filename:""},userland:n})},56081:(e,r,t)=>{t.d(r,{A:()=>l});var n=t(29021),a=t.n(n),s=t(95969);let l=({key:e,database:r,table:t,user_id:n,media:l})=>{if(!e||!n)return null;try{let i=process.env.DSQL_API_KEYS_PATH;if(!i)throw Error("process.env.DSQL_API_KEYS_PATH variable not found");let o=(0,s.A)({encryptedString:e}),u=JSON.parse(o||""),c=a().existsSync(`${i}/${u.sign}`);if(String(u.user_id)!==String(n)||!c)return null;if(!u.target_database||l)return u;if(!r&&u.target_database)return null;let d=u.target_database?.split(",").includes(String(r));if(d&&!u.target_table)return u;if(d&&!t&&u.target_table)return null;if(u.target_table?.split(",").includes(String(t)))return u;return null}catch(e){return console.log(`api-cred ERROR: ${e.message}`),{error:`api-cred ERROR: ${e.message}`}}}},61932:(e,r,t)=>{t.d(r,{A:()=>l});var n=t(48786),a=t(37275),s=t(7971);async function l({dbContext:e,paradigm:r,dbFullName:t,tableName:l,identifierColumnName:i,identifierValue:o,useLocal:u}){try{let c=!!u||!e?.match(/dsql.user/i)&&(!t||!!t.match(/^datasquirel$/)),d=u?s.A:c?n.A:a.default,f=`DELETE FROM \`${t}\`.\`${l}\` WHERE \`${i}\`=?`;return c?await d(f,[o]):await d({paradigm:r,queryString:f,queryValues:[o]})}catch(e){return null}}},43775:(e,r,t)=>{t.d(r,{A:()=>s});var n=t(95969);let a=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/;async function s({unparsedResults:e,tableSchema:r}){let t=[];try{for(let s=0;s",r.message),e}}},67619:(e,r,t)=>{t.r(r),t.d(r,{default:()=>s});var n=t(29021),a=t.n(n);async function s({user:e,message:r,component:t,noMail:n,req:s}){let l=new Date,i=(()=>{if(!s)return null;try{let e=s.headers["x-forwarded-for"],r=s.headers["x-real-ip"],t=s.headers["cf-connecting-ip"],n=Array.isArray(e)?e[0]:e?.split(",")[0],a=t||n||r||s.socket.remoteAddress;if(!a)return null;return String(a)}catch(e){return null}})();try{let n=`🚀 SERVER ERROR =========================== +"use strict";(()=>{var e={};e.id=8078,e.ids=[8078],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},31483:(e,r,t)=>{t.r(r),t.d(r,{config:()=>f,default:()=>p,routeModule:()=>_});var n={};t.r(n),t.d(n,{default:()=>g});var a=t(89947),s=t(2706),i=t(96762),l=t(67619),o=t(56081),u=t(61932),c=t(30944);async function d({dbFullName:e,deletedUserId:r,useLocal:t}){let n=`SELECT * FROM ${e}.users WHERE id = ?`,a=await (0,c.A)({queryString:n,queryValuesArray:[r],database:e,useLocal:t});return a?.[0]?{success:!0,result:await (0,u.A)({dbContext:"Dsql User",paradigm:"Full Access",dbFullName:e,tableName:"users",identifierColumnName:"id",identifierValue:r,useLocal:t})}:{success:!1,msg:"User not found"}}async function g(e,r){if("POST"!==e.method)return r.json({success:!1,payload:null,msg:"Failed!"});try{let t=e.headers.authorization,{deletedUserId:n,database:a}=e.body,s=(0,o.A)({key:t,database:a?.db_slug,user_id:String(e.query.user_id)});if(!s?.user_id)throw Error("Api Credentials invalid!");if(!s.full_access||!s.sign)return r.json({success:!1,msg:"Unauthorized"});let i=`datasquirel_user_${s.user_id}_${a}`,l=await d({dbFullName:i,deletedUserId:n});r.json(l)}catch(t){(0,l.A)({component:"/api/user/delete-user/main-catch-error",message:t.message,user:{},req:e}),r.json({success:!1,msg:"Wrong Credentials"})}}let p=(0,i.M)(n,"default"),f=(0,i.M)(n,"config"),_=new a.PagesAPIRouteModule({definition:{kind:s.A.PAGES_API,page:"/api/user/[user_id]/delete-user",pathname:"/api/user/[user_id]/delete-user",bundlePath:"",filename:""},userland:n})},56081:(e,r,t)=>{t.d(r,{A:()=>i});var n=t(29021),a=t.n(n),s=t(95969);let i=({key:e,database:r,table:t,user_id:n,media:i})=>{if(!e||!n)return null;try{let l=process.env.DSQL_API_KEYS_PATH;if(!l)throw Error("process.env.DSQL_API_KEYS_PATH variable not found");let o=(0,s.A)({encryptedString:e}),u=JSON.parse(o||""),c=a().existsSync(`${l}/${u.sign}`);if(String(u.user_id)!==String(n)||!c)return null;if(!u.target_database||i)return u;if(!r&&u.target_database)return null;let d=u.target_database?.split(",").includes(String(r));if(d&&!u.target_table)return u;if(d&&!t&&u.target_table)return null;if(u.target_table?.split(",").includes(String(t)))return u;return null}catch(e){return console.log(`api-cred ERROR: ${e.message}`),{error:`api-cred ERROR: ${e.message}`}}}},61932:(e,r,t)=>{t.d(r,{A:()=>i});var n=t(48786),a=t(37275),s=t(7971);async function i({dbContext:e,paradigm:r,dbFullName:t,tableName:i,identifierColumnName:l,identifierValue:o,useLocal:u}){try{let c=!!u||!e?.match(/dsql.user/i)&&(!t||!!t.match(/^datasquirel$/)),d=u?s.A:c?n.A:a.A,g=`DELETE FROM \`${t}\`.\`${i}\` WHERE \`${l}\`=?`;return c?await d(g,[o]):await d({paradigm:r,queryString:g,queryValues:[o]})}catch(e){return null}}},43775:(e,r,t)=>{t.d(r,{A:()=>s});var n=t(95969);let a=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/;async function s({unparsedResults:e,tableSchema:r}){let t=[];try{for(let s=0;s",r.message),e}}},67619:(e,r,t)=>{t.d(r,{A:()=>s});var n=t(29021),a=t.n(n);async function s({user:e,message:r,component:t,noMail:n,req:s}){let i=new Date,l=(()=>{if(!s)return null;try{let e=s.headers["x-forwarded-for"],r=s.headers["x-real-ip"],t=s.headers["cf-connecting-ip"],n=Array.isArray(e)?e[0]:e?.split(",")[0],a=t||n||r||s.socket.remoteAddress;if(!a)return null;return String(a)}catch(e){return null}})();try{let n=`🚀 SERVER ERROR =========================== Error Message: ${r} Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(n+=` User Id: ${e?.id} User Name: ${e?.first_name} ${e?.last_name} User Email: ${e?.email}`),s?.url&&(n+=` URL: ${s.url}`),s?.body&&(n+=` -Request Body: ${JSON.stringify(s.body,null,4)}`),i&&(n+=` -IP: ${i}`),n+=` -Date: ${l.toDateString()} +Request Body: ${JSON.stringify(s.body,null,4)}`),l&&(n+=` +IP: ${l}`),n+=` +Date: ${i.toDateString()} ========================================`,a().existsSync("./.tmp/error.log")||a().writeFileSync("./.tmp/error.log","","utf-8");let o=a().readFileSync("./.tmp/error.log","utf-8");a().writeFileSync("./.tmp/error.log",n),a().appendFileSync("./.tmp/error.log",` -${o}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},30944:(e,r,t)=>{t.d(r,{A:()=>o});var n=t(43775),a=t(67619),s=t(48786),l=t(37275),i=t(7971);async function o({queryString:e,queryValuesArray:r,database:t,tableSchema:o,useLocal:u}){let c;let d=!!u||!!t?.match(/^datasquirel$/),f=u?i.A:d?s.A:l.default;try{c=e&&r&&Array.isArray(r)&&r[0]?d?await f(e,r):await f({paradigm:"Full Access",queryString:e,queryValues:r}):d?await f(e):await f({paradigm:"Full Access",queryString:e})}catch(e){console.log(`varDatabaseDbHandler Error: ${e.message}`),(0,a.default)({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(c&&o)try{let e=c;return await (0,n.A)({unparsedResults:e,tableSchema:o})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",t,e),(0,a.default)({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(c)return c;else return null}},95969:(e,r,t)=>{t.d(r,{A:()=>s});var n=t(55511),a=t(79428);function s({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let s=r||process.env.DSQL_ENCRYPTION_PASSWORD,l=t||process.env.DSQL_ENCRYPTION_SALT,i=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!s?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!l?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let o=(0,n.scryptSync)(s,l,i),u=a.Buffer.alloc(16,0),c=(0,n.createDecipheriv)("aes-192-cbc",o,u);try{let r=c.update(e,"hex","utf8");return r+=c.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>n});async function n(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},37275:(e,r,t)=>{async function n(e,r,t){try{if("string"==typeof r){let n=await e.query(a(r),t);return JSON.parse(JSON.stringify(n))}if("object"!=typeof r)return null;{let t=[];for(let n=0;ns})},7971:(e,r,t)=>{t.d(r,{A:()=>i});var n=t(9973),a=t.n(n),s=t(29021),l=t.n(s);async function i(...e){let r=a()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!l().existsSync(r)){console.log(`${r} does not exist`);return}return{ca:l().readFileSync(`${e}/ca-cert.pem`),rejectUnauthorized:!1}}()},onConnect:()=>{console.log("Connection Successful!")},onConnectError:e=>{console.log("Connection Error",e.message)},onError:e=>{console.log("Client Error",e.message)}});console.log("Querying ...");try{let t=await r.query(...e);return await r.end(),JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e.message),{success:!1,error:e.message}}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../../../webpack-api-runtime.js");r.C(e);var t=r(r.s=31483);module.exports=t})(); \ No newline at end of file +${o}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},30944:(e,r,t)=>{t.d(r,{A:()=>o});var n=t(43775),a=t(67619),s=t(48786),i=t(37275),l=t(7971);async function o({queryString:e,queryValuesArray:r,database:t,tableSchema:o,useLocal:u}){let c;let d=!!u||!!t?.match(/^datasquirel$/),g=u?l.A:d?s.A:i.A;try{c=e&&r&&Array.isArray(r)&&r[0]?d?await g(e,r):await g({paradigm:"Full Access",queryString:e,queryValues:r}):d?await g(e):await g({paradigm:"Full Access",queryString:e})}catch(e){console.log(`varDatabaseDbHandler Error: ${e.message}`),(0,a.A)({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(c&&o)try{let e=c;return await (0,n.A)({unparsedResults:e,tableSchema:o})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",t,e),(0,a.A)({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(c)return c;else return null}},95969:(e,r,t)=>{t.d(r,{A:()=>s});var n=t(55511),a=t(79428);function s({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let s=r||process.env.DSQL_ENCRYPTION_PASSWORD,i=t||process.env.DSQL_ENCRYPTION_SALT,l=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!s?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let o=(0,n.scryptSync)(s,i,l),u=a.Buffer.alloc(16,0),c=(0,n.createDecipheriv)("aes-192-cbc",o,u);try{let r=c.update(e,"hex","utf8");return r+=c.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>n});async function n(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},37275:(e,r,t)=>{async function n(e,r,t){try{if("string"==typeof r){let n=await e.query(a(r),t);return JSON.parse(JSON.stringify(n))}if("object"!=typeof r)return null;{let t=[];for(let n=0;ns})},7971:(e,r,t)=>{t.d(r,{A:()=>l});var n=t(9973),a=t.n(n),s=t(29021),i=t.n(s);async function l(...e){let r=a()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!i().existsSync(r)){console.log(`${r} does not exist`);return}return{ca:i().readFileSync(`${e}/ca-cert.pem`),rejectUnauthorized:!1}}()},onConnect:()=>{console.log("Connection Successful!")},onConnectError:e=>{console.log("Connection Error",e.message)},onError:e=>{console.log("Client Error",e.message)}});console.log("Querying ...");try{let t=await r.query(...e);return await r.end(),JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e.message),{success:!1,error:e.message}}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../../../webpack-api-runtime.js");r.C(e);var t=r(r.s=31483);module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/user/[user_id]/get-user.js b/dsql-app/.local_dist/server/pages/api/user/[user_id]/get-user.js index dba1f6b..9c207f6 100644 --- a/dsql-app/.local_dist/server/pages/api/user/[user_id]/get-user.js +++ b/dsql-app/.local_dist/server/pages/api/user/[user_id]/get-user.js @@ -1,16 +1,16 @@ -"use strict";(()=>{var e={};e.id=795,e.ids=[795],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},54014:(e,r,t)=>{t.r(r),t.d(r,{config:()=>p,default:()=>f,routeModule:()=>g});var n={};t.r(n),t.d(n,{default:()=>d});var a=t(89947),s=t(2706),l=t(96762),o=t(67619),i=t(56081),u=t(30944);async function c({fields:e,dbFullName:r,userId:t,useLocal:n}){let a=r.replace(/[^a-z0-9_]/g,""),s=`SELECT ${e.join(",")} FROM ${a}.users WHERE id=?`,l=t||process.env.DSQL_API_USER_ID,o=await (0,u.A)({queryString:s,queryValuesArray:[l],database:a,useLocal:n});return o&&o[0]?{success:!0,payload:o[0]}:{success:!1,payload:null}}async function d(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});try{let t=e.headers.authorization,{userId:n,database:a}=e.body,s=(0,i.A)({key:t,database:a,user_id:String(e.query.user_id)});if(!s?.user_id)throw Error("Api Credentials invalid!");if(!s.full_access||!s.sign)return r.json({success:!1,msg:"Unauthorized"});let l=e.body.fields.map(e=>e.replace(/[^a-z\_]/g,"")),o=`datasquirel_user_${s.user_id}_${a}`,u=await c({dbFullName:o,userId:n,fields:l});r.json(u)}catch(t){(0,o.default)({component:"/api/user/get-user/main-catch-error",message:t.message,user:{},req:e}),r.json({success:!1,msg:"User fetch Error"})}}let f=(0,l.M)(n,"default"),p=(0,l.M)(n,"config"),g=new a.PagesAPIRouteModule({definition:{kind:s.A.PAGES_API,page:"/api/user/[user_id]/get-user",pathname:"/api/user/[user_id]/get-user",bundlePath:"",filename:""},userland:n})},56081:(e,r,t)=>{t.d(r,{A:()=>l});var n=t(29021),a=t.n(n),s=t(95969);let l=({key:e,database:r,table:t,user_id:n,media:l})=>{if(!e||!n)return null;try{let o=process.env.DSQL_API_KEYS_PATH;if(!o)throw Error("process.env.DSQL_API_KEYS_PATH variable not found");let i=(0,s.A)({encryptedString:e}),u=JSON.parse(i||""),c=a().existsSync(`${o}/${u.sign}`);if(String(u.user_id)!==String(n)||!c)return null;if(!u.target_database||l)return u;if(!r&&u.target_database)return null;let d=u.target_database?.split(",").includes(String(r));if(d&&!u.target_table)return u;if(d&&!t&&u.target_table)return null;if(u.target_table?.split(",").includes(String(t)))return u;return null}catch(e){return console.log(`api-cred ERROR: ${e.message}`),{error:`api-cred ERROR: ${e.message}`}}}},43775:(e,r,t)=>{t.d(r,{A:()=>s});var n=t(95969);let a=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/;async function s({unparsedResults:e,tableSchema:r}){let t=[];try{for(let s=0;s",r.message),e}}},67619:(e,r,t)=>{t.r(r),t.d(r,{default:()=>s});var n=t(29021),a=t.n(n);async function s({user:e,message:r,component:t,noMail:n,req:s}){let l=new Date,o=(()=>{if(!s)return null;try{let e=s.headers["x-forwarded-for"],r=s.headers["x-real-ip"],t=s.headers["cf-connecting-ip"],n=Array.isArray(e)?e[0]:e?.split(",")[0],a=t||n||r||s.socket.remoteAddress;if(!a)return null;return String(a)}catch(e){return null}})();try{let n=`🚀 SERVER ERROR =========================== +"use strict";(()=>{var e={};e.id=795,e.ids=[795],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},54014:(e,r,t)=>{t.r(r),t.d(r,{config:()=>g,default:()=>p,routeModule:()=>f});var n={};t.r(n),t.d(n,{default:()=>d});var a=t(89947),s=t(2706),o=t(96762),i=t(67619),l=t(56081),c=t(30944);async function u({fields:e,dbFullName:r,userId:t,useLocal:n}){let a=r.replace(/[^a-z0-9_]/g,""),s=`SELECT ${e.join(",")} FROM ${a}.users WHERE id=?`,o=t||process.env.DSQL_API_USER_ID,i=await (0,c.A)({queryString:s,queryValuesArray:[o],database:a,useLocal:n});return i&&i[0]?{success:!0,payload:i[0]}:{success:!1,payload:null}}async function d(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});try{let t=e.headers.authorization,{userId:n,database:a}=e.body,s=(0,l.A)({key:t,database:a,user_id:String(e.query.user_id)});if(!s?.user_id)throw Error("Api Credentials invalid!");if(!s.full_access||!s.sign)return r.json({success:!1,msg:"Unauthorized"});let o=e.body.fields.map(e=>e.replace(/[^a-z\_]/g,"")),i=`datasquirel_user_${s.user_id}_${a}`,c=await u({dbFullName:i,userId:n,fields:o});r.json(c)}catch(t){(0,i.A)({component:"/api/user/get-user/main-catch-error",message:t.message,user:{},req:e}),r.json({success:!1,msg:"User fetch Error"})}}let p=(0,o.M)(n,"default"),g=(0,o.M)(n,"config"),f=new a.PagesAPIRouteModule({definition:{kind:s.A.PAGES_API,page:"/api/user/[user_id]/get-user",pathname:"/api/user/[user_id]/get-user",bundlePath:"",filename:""},userland:n})},56081:(e,r,t)=>{t.d(r,{A:()=>o});var n=t(29021),a=t.n(n),s=t(95969);let o=({key:e,database:r,table:t,user_id:n,media:o})=>{if(!e||!n)return null;try{let i=process.env.DSQL_API_KEYS_PATH;if(!i)throw Error("process.env.DSQL_API_KEYS_PATH variable not found");let l=(0,s.A)({encryptedString:e}),c=JSON.parse(l||""),u=a().existsSync(`${i}/${c.sign}`);if(String(c.user_id)!==String(n)||!u)return null;if(!c.target_database||o)return c;if(!r&&c.target_database)return null;let d=c.target_database?.split(",").includes(String(r));if(d&&!c.target_table)return c;if(d&&!t&&c.target_table)return null;if(c.target_table?.split(",").includes(String(t)))return c;return null}catch(e){return console.log(`api-cred ERROR: ${e.message}`),{error:`api-cred ERROR: ${e.message}`}}}},43775:(e,r,t)=>{t.d(r,{A:()=>s});var n=t(95969);let a=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/;async function s({unparsedResults:e,tableSchema:r}){let t=[];try{for(let s=0;s",r.message),e}}},67619:(e,r,t)=>{t.d(r,{A:()=>s});var n=t(29021),a=t.n(n);async function s({user:e,message:r,component:t,noMail:n,req:s}){let o=new Date,i=(()=>{if(!s)return null;try{let e=s.headers["x-forwarded-for"],r=s.headers["x-real-ip"],t=s.headers["cf-connecting-ip"],n=Array.isArray(e)?e[0]:e?.split(",")[0],a=t||n||r||s.socket.remoteAddress;if(!a)return null;return String(a)}catch(e){return null}})();try{let n=`🚀 SERVER ERROR =========================== Error Message: ${r} Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(n+=` User Id: ${e?.id} User Name: ${e?.first_name} ${e?.last_name} User Email: ${e?.email}`),s?.url&&(n+=` URL: ${s.url}`),s?.body&&(n+=` -Request Body: ${JSON.stringify(s.body,null,4)}`),o&&(n+=` -IP: ${o}`),n+=` -Date: ${l.toDateString()} -========================================`,a().existsSync("./.tmp/error.log")||a().writeFileSync("./.tmp/error.log","","utf-8");let i=a().readFileSync("./.tmp/error.log","utf-8");a().writeFileSync("./.tmp/error.log",n),a().appendFileSync("./.tmp/error.log",` +Request Body: ${JSON.stringify(s.body,null,4)}`),i&&(n+=` +IP: ${i}`),n+=` +Date: ${o.toDateString()} +========================================`,a().existsSync("./.tmp/error.log")||a().writeFileSync("./.tmp/error.log","","utf-8");let l=a().readFileSync("./.tmp/error.log","utf-8");a().writeFileSync("./.tmp/error.log",n),a().appendFileSync("./.tmp/error.log",` -${i}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},30944:(e,r,t)=>{t.d(r,{A:()=>i});var n=t(43775),a=t(67619),s=t(48786),l=t(37275),o=t(7971);async function i({queryString:e,queryValuesArray:r,database:t,tableSchema:i,useLocal:u}){let c;let d=!!u||!!t?.match(/^datasquirel$/),f=u?o.A:d?s.A:l.default;try{c=e&&r&&Array.isArray(r)&&r[0]?d?await f(e,r):await f({paradigm:"Full Access",queryString:e,queryValues:r}):d?await f(e):await f({paradigm:"Full Access",queryString:e})}catch(e){console.log(`varDatabaseDbHandler Error: ${e.message}`),(0,a.default)({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(c&&i)try{let e=c;return await (0,n.A)({unparsedResults:e,tableSchema:i})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",t,e),(0,a.default)({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(c)return c;else return null}},95969:(e,r,t)=>{t.d(r,{A:()=>s});var n=t(55511),a=t(79428);function s({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let s=r||process.env.DSQL_ENCRYPTION_PASSWORD,l=t||process.env.DSQL_ENCRYPTION_SALT,o=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!s?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!l?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let i=(0,n.scryptSync)(s,l,o),u=a.Buffer.alloc(16,0),c=(0,n.createDecipheriv)("aes-192-cbc",i,u);try{let r=c.update(e,"hex","utf8");return r+=c.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>n});async function n(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},37275:(e,r,t)=>{async function n(e,r,t){try{if("string"==typeof r){let n=await e.query(a(r),t);return JSON.parse(JSON.stringify(n))}if("object"!=typeof r)return null;{let t=[];for(let n=0;ns})},7971:(e,r,t)=>{t.d(r,{A:()=>o});var n=t(9973),a=t.n(n),s=t(29021),l=t.n(s);async function o(...e){let r=a()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!l().existsSync(r)){console.log(`${r} does not exist`);return}return{ca:l().readFileSync(`${e}/ca-cert.pem`),rejectUnauthorized:!1}}()},onConnect:()=>{console.log("Connection Successful!")},onConnectError:e=>{console.log("Connection Error",e.message)},onError:e=>{console.log("Client Error",e.message)}});console.log("Querying ...");try{let t=await r.query(...e);return await r.end(),JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e.message),{success:!1,error:e.message}}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../../../webpack-api-runtime.js");r.C(e);var t=r(r.s=54014);module.exports=t})(); \ No newline at end of file +${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},30944:(e,r,t)=>{t.d(r,{A:()=>l});var n=t(43775),a=t(67619),s=t(48786),o=t(37275),i=t(7971);async function l({queryString:e,queryValuesArray:r,database:t,tableSchema:l,useLocal:c}){let u;let d=!!c||!!t?.match(/^datasquirel$/),p=c?i.A:d?s.A:o.A;try{u=e&&r&&Array.isArray(r)&&r[0]?d?await p(e,r):await p({paradigm:"Full Access",queryString:e,queryValues:r}):d?await p(e):await p({paradigm:"Full Access",queryString:e})}catch(e){console.log(`varDatabaseDbHandler Error: ${e.message}`),(0,a.A)({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(u&&l)try{let e=u;return await (0,n.A)({unparsedResults:e,tableSchema:l})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",t,e),(0,a.A)({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(u)return u;else return null}},95969:(e,r,t)=>{t.d(r,{A:()=>s});var n=t(55511),a=t(79428);function s({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let s=r||process.env.DSQL_ENCRYPTION_PASSWORD,o=t||process.env.DSQL_ENCRYPTION_SALT,i=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!s?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!o?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let l=(0,n.scryptSync)(s,o,i),c=a.Buffer.alloc(16,0),u=(0,n.createDecipheriv)("aes-192-cbc",l,c);try{let r=u.update(e,"hex","utf8");return r+=u.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>n});async function n(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},37275:(e,r,t)=>{async function n(e,r,t){try{if("string"==typeof r){let n=await e.query(a(r),t);return JSON.parse(JSON.stringify(n))}if("object"!=typeof r)return null;{let t=[];for(let n=0;ns})},7971:(e,r,t)=>{t.d(r,{A:()=>i});var n=t(9973),a=t.n(n),s=t(29021),o=t.n(s);async function i(...e){let r=a()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!o().existsSync(r)){console.log(`${r} does not exist`);return}return{ca:o().readFileSync(`${e}/ca-cert.pem`),rejectUnauthorized:!1}}()},onConnect:()=>{console.log("Connection Successful!")},onConnectError:e=>{console.log("Connection Error",e.message)},onError:e=>{console.log("Client Error",e.message)}});console.log("Querying ...");try{let t=await r.query(...e);return await r.end(),JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e.message),{success:!1,error:e.message}}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../../../webpack-api-runtime.js");r.C(e);var t=r(r.s=54014);module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/user/[user_id]/github-login.js b/dsql-app/.local_dist/server/pages/api/user/[user_id]/github-login.js index 9b15645..1c030e5 100644 --- a/dsql-app/.local_dist/server/pages/api/user/[user_id]/github-login.js +++ b/dsql-app/.local_dist/server/pages/api/user/[user_id]/github-login.js @@ -1 +1 @@ -"use strict";(()=>{var e={};e.id=7110,e.ids=[7110],e.modules={47795:e=>{e.exports=require("generate-password")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},21572:e=>{e.exports=require("nodemailer")},72583:e=>{e.exports=require("sanitize-html")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},55591:e=>{e.exports=require("https")},33873:e=>{e.exports=require("path")},79551:e=>{e.exports=require("url")},98728:(e,t,r)=>{r.r(t),r.d(t,{config:()=>h,default:()=>m,routeModule:()=>f});var s={};r.r(s),r.d(s,{default:()=>d});var i=r(89947),a=r(2706),n=r(96762),o=r(67619),u=r(56081),l=r(83704),c=r(2402);function p(e){if(!e?.match(/./))return"";if(e?.match(/ /))return e;if(!e)return null;{let t=e.split(""),r=[];for(let e=0;e",r.message),(0,o.default)({component:"/api/social-login/github-auth/catch-error",message:r.message,req:e}),t.json({success:!1,msg:"Failed!"})}}let m=(0,n.M)(s,"default"),h=(0,n.M)(s,"config"),f=new i.PagesAPIRouteModule({definition:{kind:a.A.PAGES_API,page:"/api/user/[user_id]/github-login",pathname:"/api/user/[user_id]/github-login",bundlePath:"",filename:""},userland:s})},2402:(e,t,r)=>{r.r(t),r.d(t,{default:()=>a});var s=r(48786),i=r(61556);async function a({code:e,clientId:t,clientSecret:r}){let a;try{let n=await (0,i.A)({method:"POST",hostname:"github.com",path:`/login/oauth/access_token?client_id=${t}&client_secret=${r}&code=${e}`,headers:{Accept:"application/json","User-Agent":"*"},scheme:"https"}),o=JSON.parse(n);if(!o?.access_token)return a;let u=await (0,i.A)({method:"GET",hostname:"api.github.com",path:"/user",headers:{Authorization:`Bearer ${o.access_token}`,"User-Agent":"*"},scheme:"https"});if(a=JSON.parse(u),!a?.email&&a){let e=await (0,s.A)(`SELECT email FROM users WHERE social_login='1' AND social_platform='github' AND social_id='${a.id}'`);e&&e[0]&&(a.email=e[0].email)}}catch(e){console.log("ERROR in githubLogin.ts backend function =>",e.message)}return a}},56081:(e,t,r)=>{r.d(t,{A:()=>n});var s=r(29021),i=r.n(s),a=r(95969);let n=({key:e,database:t,table:r,user_id:s,media:n})=>{if(!e||!s)return null;try{let o=process.env.DSQL_API_KEYS_PATH;if(!o)throw Error("process.env.DSQL_API_KEYS_PATH variable not found");let u=(0,a.A)({encryptedString:e}),l=JSON.parse(u||""),c=i().existsSync(`${o}/${l.sign}`);if(String(l.user_id)!==String(s)||!c)return null;if(!l.target_database||n)return l;if(!t&&l.target_database)return null;let p=l.target_database?.split(",").includes(String(t));if(p&&!l.target_table)return l;if(p&&!r&&l.target_table)return null;if(l.target_table?.split(",").includes(String(r)))return l;return null}catch(e){return console.log(`api-cred ERROR: ${e.message}`),{error:`api-cred ERROR: ${e.message}`}}}},61556:(e,t,r)=>{r.d(t,{A:()=>u});var s=r(55591),i=r.n(s),a=r(81630),n=r.n(a),o=r(79551);function u({url:e,method:t,hostname:r,path:s,headers:a,body:u,port:l,scheme:c}){let p=u?JSON.stringify(u):null,g=e?new o.URL(e):null,d={method:t||"GET",hostname:g?g.hostname:r,port:c?.match(/https/i)?443:g?g.protocol?.match(/https/i)?443:g.port:l?Number(l):80,headers:{}};return s&&(d.path=s),a&&(d.headers=a),u&&(d.headers["Content-Type"]="application/json",d.headers["Content-Length"]=p?Buffer.from(p).length:void 0),new Promise((e,t)=>{let r=(c?.match(/https/i)?i():g?.protocol?.match(/https/i)?i():n()).request(d,r=>{var s="";r.on("data",function(e){s+=e}),r.on("end",function(){e(s)}),r.on("error",e=>{console.log("HTTP response error =>",e.message),t(`HTTP response error =>, ${e.message}`)}),r.on("close",()=>{console.log("HTTP(S) Response Closed Successfully")})});u&&r.write(p),r.on("error",e=>{console.log("HTTPS request ERROR =>",e.message),t(`HTTP request error =>, ${e.message}`)}),r.end()})}}};var t=require("../../../../webpack-api-runtime.js");t.C(e);var r=e=>t(t.s=e),s=t.X(0,[1251,3704],()=>r(98728));module.exports=s})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=7110,e.ids=[7110],e.modules={47795:e=>{e.exports=require("generate-password")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},21572:e=>{e.exports=require("nodemailer")},72583:e=>{e.exports=require("sanitize-html")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},55591:e=>{e.exports=require("https")},33873:e=>{e.exports=require("path")},79551:e=>{e.exports=require("url")},98728:(e,t,r)=>{r.r(t),r.d(t,{config:()=>h,default:()=>m,routeModule:()=>f});var s={};r.r(s),r.d(s,{default:()=>d});var i=r(89947),a=r(2706),n=r(96762),o=r(67619),l=r(56081),u=r(83704),c=r(2402);function p(e){if(!e?.match(/./))return"";if(e?.match(/ /))return e;if(!e)return null;{let t=e.split(""),r=[];for(let e=0;e",r.message),(0,o.A)({component:"/api/social-login/github-auth/catch-error",message:r.message,req:e}),t.json({success:!1,msg:"Failed!"})}}let m=(0,n.M)(s,"default"),h=(0,n.M)(s,"config"),f=new i.PagesAPIRouteModule({definition:{kind:a.A.PAGES_API,page:"/api/user/[user_id]/github-login",pathname:"/api/user/[user_id]/github-login",bundlePath:"",filename:""},userland:s})},2402:(e,t,r)=>{r.d(t,{A:()=>a});var s=r(48786),i=r(64166);async function a({code:e,clientId:t,clientSecret:r}){let a;try{let n=await (0,i.A)({method:"POST",hostname:"github.com",path:`/login/oauth/access_token?client_id=${t}&client_secret=${r}&code=${e}`,headers:{Accept:"application/json","User-Agent":"*"},scheme:"https"}),o=JSON.parse(n);if(!o?.access_token)return a;let l=await (0,i.A)({method:"GET",hostname:"api.github.com",path:"/user",headers:{Authorization:`Bearer ${o.access_token}`,"User-Agent":"*"},scheme:"https"});if(a=JSON.parse(l),!a?.email&&a){let e=await (0,s.A)(`SELECT email FROM users WHERE social_login='1' AND social_platform='github' AND social_id='${a.id}'`);e&&e[0]&&(a.email=e[0].email)}}catch(e){console.log("ERROR in githubLogin.ts backend function =>",e.message)}return a}},56081:(e,t,r)=>{r.d(t,{A:()=>n});var s=r(29021),i=r.n(s),a=r(95969);let n=({key:e,database:t,table:r,user_id:s,media:n})=>{if(!e||!s)return null;try{let o=process.env.DSQL_API_KEYS_PATH;if(!o)throw Error("process.env.DSQL_API_KEYS_PATH variable not found");let l=(0,a.A)({encryptedString:e}),u=JSON.parse(l||""),c=i().existsSync(`${o}/${u.sign}`);if(String(u.user_id)!==String(s)||!c)return null;if(!u.target_database||n)return u;if(!t&&u.target_database)return null;let p=u.target_database?.split(",").includes(String(t));if(p&&!u.target_table)return u;if(p&&!r&&u.target_table)return null;if(u.target_table?.split(",").includes(String(r)))return u;return null}catch(e){return console.log(`api-cred ERROR: ${e.message}`),{error:`api-cred ERROR: ${e.message}`}}}},64166:(e,t,r)=>{r.d(t,{A:()=>l});var s=r(55591),i=r.n(s);let a=require("http");var n=r.n(a),o=r(79551);function l({url:e,method:t,hostname:r,path:s,headers:a,body:l,port:u,scheme:c}){let p=l?JSON.stringify(l):null,g=e?new o.URL(e):null,d={method:t||"GET",hostname:g?g.hostname:r,port:c?.match(/https/i)?443:g?g.protocol?.match(/https/i)?443:g.port:u?Number(u):80,headers:{}};return s&&(d.path=s),a&&(d.headers=a),l&&(d.headers["Content-Type"]="application/json",d.headers["Content-Length"]=p?Buffer.from(p).length:void 0),new Promise((e,t)=>{let r=(c?.match(/https/i)?i():g?.protocol?.match(/https/i)?i():n()).request(d,r=>{var s="";r.on("data",function(e){s+=e}),r.on("end",function(){e(s)}),r.on("error",e=>{console.log("HTTP response error =>",e.message),t(`HTTP response error =>, ${e.message}`)}),r.on("close",()=>{console.log("HTTP(S) Response Closed Successfully")})});l&&r.write(p),r.on("error",e=>{console.log("HTTPS request ERROR =>",e.message),t(`HTTP request error =>, ${e.message}`)}),r.end()})}}};var t=require("../../../../webpack-api-runtime.js");t.C(e);var r=e=>t(t.s=e),s=t.X(0,[1251,3704],()=>r(98728));module.exports=s})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/user/[user_id]/google-login.js b/dsql-app/.local_dist/server/pages/api/user/[user_id]/google-login.js index 210d765..2a45882 100644 --- a/dsql-app/.local_dist/server/pages/api/user/[user_id]/google-login.js +++ b/dsql-app/.local_dist/server/pages/api/user/[user_id]/google-login.js @@ -1 +1 @@ -"use strict";(()=>{var e={};e.id=5770,e.ids=[5770],e.modules={47795:e=>{e.exports=require("generate-password")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},21572:e=>{e.exports=require("nodemailer")},72583:e=>{e.exports=require("sanitize-html")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},55591:e=>{e.exports=require("https")},33873:e=>{e.exports=require("path")},21748:(e,r,t)=>{t.r(r),t.d(r,{config:()=>_,default:()=>m,routeModule:()=>h});var s={};t.r(s),t.d(s,{default:()=>f});var a=t(89947),i=t(2706),o=t(96762),n=t(67619),u=t(56081),l=t(55591),d=t.n(l),g=t(83704),c=t(59338);async function p({token:e,database:r,additionalFields:t,additionalData:s}){try{let a=await new Promise((r,t)=>{d().request({method:"GET",hostname:"www.googleapis.com",path:"/oauth2/v3/userinfo",headers:{Authorization:`Bearer ${e}`}},e=>{let t="";e.on("data",e=>{t+=e}),e.on("end",()=>{r(c.A.parse(t))})}).end()});if(!a?.email_verified)throw Error("No Google User.");if(!r||"string"!=typeof r||r?.match(/ /))return{success:!1,payload:void 0,msg:"Please provide a database slug(database name in lowercase with no spaces)"};let{given_name:i,family_name:o,email:n,sub:u,picture:l}=a,p={email:n,first_name:i,last_name:o,social_id:u,social_platform:"google",image:l,image_thumbnail:l,username:`google-user-${u}`};return s&&(p={...p,...s}),{...await (0,g.A)({database:r,email:n||"",payload:p,social_platform:"google",social_id:u,additionalFields:t})}}catch(e){return console.log(`api-google-login.ts ERROR: ${e.message}`),{success:!1,payload:void 0,msg:e.message}}}async function f(e,r){if("POST"!==e.method)return r.json({success:!1,msg:"Failed!"});try{let{token:t,database:s,additionalFields:a,additionalData:i}=e.body,o=e.headers.authorization,n=(0,u.A)({key:o,database:s,user_id:String(e.query.user_id)});if(!n?.user_id)throw Error("Api Credentials invalid!");if(!n.full_access||!n.sign)return r.json({success:!1,msg:"Unauthorized"});let l=`datasquirel_user_${n.user_id}_${s}`,d=await p({database:l,token:t,additionalFields:a,additionalData:i});r.json(d)}catch(t){(0,n.default)({component:"/api/user/google-login/main-catch-error",message:t.message,user:{},req:e}),r.json({success:!1,msg:"Error: "+t.message})}}let m=(0,o.M)(s,"default"),_=(0,o.M)(s,"config"),h=new a.PagesAPIRouteModule({definition:{kind:i.A.PAGES_API,page:"/api/user/[user_id]/google-login",pathname:"/api/user/[user_id]/google-login",bundlePath:"",filename:""},userland:s})},56081:(e,r,t)=>{t.d(r,{A:()=>o});var s=t(29021),a=t.n(s),i=t(95969);let o=({key:e,database:r,table:t,user_id:s,media:o})=>{if(!e||!s)return null;try{let n=process.env.DSQL_API_KEYS_PATH;if(!n)throw Error("process.env.DSQL_API_KEYS_PATH variable not found");let u=(0,i.A)({encryptedString:e}),l=JSON.parse(u||""),d=a().existsSync(`${n}/${l.sign}`);if(String(l.user_id)!==String(s)||!d)return null;if(!l.target_database||o)return l;if(!r&&l.target_database)return null;let g=l.target_database?.split(",").includes(String(r));if(g&&!l.target_table)return l;if(g&&!t&&l.target_table)return null;if(l.target_table?.split(",").includes(String(t)))return l;return null}catch(e){return console.log(`api-cred ERROR: ${e.message}`),{error:`api-cred ERROR: ${e.message}`}}}},59338:(e,r,t)=>{t.d(r,{A:()=>s});let s={parse:function(e,r){if(e){if("object"==typeof e)return e;if("string"==typeof e)try{return JSON.parse(e,r)}catch(e){return}}},stringify:function(e,r,t){try{return JSON.stringify(e,r||void 0,t)}catch(e){return}}}}};var r=require("../../../../webpack-api-runtime.js");r.C(e);var t=e=>r(r.s=e),s=r.X(0,[1251,3704],()=>t(21748));module.exports=s})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=5770,e.ids=[5770],e.modules={47795:e=>{e.exports=require("generate-password")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},21572:e=>{e.exports=require("nodemailer")},72583:e=>{e.exports=require("sanitize-html")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},55591:e=>{e.exports=require("https")},33873:e=>{e.exports=require("path")},21748:(e,r,t)=>{t.r(r),t.d(r,{config:()=>_,default:()=>m,routeModule:()=>h});var s={};t.r(s),t.d(s,{default:()=>f});var a=t(89947),i=t(2706),o=t(96762),n=t(67619),u=t(56081),l=t(55591),d=t.n(l),g=t(83704),c=t(59338);async function p({token:e,database:r,additionalFields:t,additionalData:s}){try{let a=await new Promise((r,t)=>{d().request({method:"GET",hostname:"www.googleapis.com",path:"/oauth2/v3/userinfo",headers:{Authorization:`Bearer ${e}`}},e=>{let t="";e.on("data",e=>{t+=e}),e.on("end",()=>{r(c.A.parse(t))})}).end()});if(!a?.email_verified)throw Error("No Google User.");if(!r||"string"!=typeof r||r?.match(/ /))return{success:!1,payload:void 0,msg:"Please provide a database slug(database name in lowercase with no spaces)"};let{given_name:i,family_name:o,email:n,sub:u,picture:l}=a,p={email:n,first_name:i,last_name:o,social_id:u,social_platform:"google",image:l,image_thumbnail:l,username:`google-user-${u}`};return s&&(p={...p,...s}),{...await (0,g.A)({database:r,email:n||"",payload:p,social_platform:"google",social_id:u,additionalFields:t})}}catch(e){return console.log(`api-google-login.ts ERROR: ${e.message}`),{success:!1,payload:void 0,msg:e.message}}}async function f(e,r){if("POST"!==e.method)return r.json({success:!1,msg:"Failed!"});try{let{token:t,database:s,additionalFields:a,additionalData:i}=e.body,o=e.headers.authorization,n=(0,u.A)({key:o,database:s,user_id:String(e.query.user_id)});if(!n?.user_id)throw Error("Api Credentials invalid!");if(!n.full_access||!n.sign)return r.json({success:!1,msg:"Unauthorized"});let l=`datasquirel_user_${n.user_id}_${s}`,d=await p({database:l,token:t,additionalFields:a,additionalData:i});r.json(d)}catch(t){(0,n.A)({component:"/api/user/google-login/main-catch-error",message:t.message,user:{},req:e}),r.json({success:!1,msg:"Error: "+t.message})}}let m=(0,o.M)(s,"default"),_=(0,o.M)(s,"config"),h=new a.PagesAPIRouteModule({definition:{kind:i.A.PAGES_API,page:"/api/user/[user_id]/google-login",pathname:"/api/user/[user_id]/google-login",bundlePath:"",filename:""},userland:s})},56081:(e,r,t)=>{t.d(r,{A:()=>o});var s=t(29021),a=t.n(s),i=t(95969);let o=({key:e,database:r,table:t,user_id:s,media:o})=>{if(!e||!s)return null;try{let n=process.env.DSQL_API_KEYS_PATH;if(!n)throw Error("process.env.DSQL_API_KEYS_PATH variable not found");let u=(0,i.A)({encryptedString:e}),l=JSON.parse(u||""),d=a().existsSync(`${n}/${l.sign}`);if(String(l.user_id)!==String(s)||!d)return null;if(!l.target_database||o)return l;if(!r&&l.target_database)return null;let g=l.target_database?.split(",").includes(String(r));if(g&&!l.target_table)return l;if(g&&!t&&l.target_table)return null;if(l.target_table?.split(",").includes(String(t)))return l;return null}catch(e){return console.log(`api-cred ERROR: ${e.message}`),{error:`api-cred ERROR: ${e.message}`}}}},59338:(e,r,t)=>{t.d(r,{A:()=>s});let s={parse:function(e,r){if(e){if("object"==typeof e)return e;if("string"==typeof e)try{return JSON.parse(e,r)}catch(e){return}}},stringify:function(e,r,t){try{return JSON.stringify(e,r||void 0,t)}catch(e){return}}}}};var r=require("../../../../webpack-api-runtime.js");r.C(e);var t=e=>r(r.s=e),s=r.X(0,[1251,3704],()=>t(21748));module.exports=s})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/user/[user_id]/grab-google-user-from-token.js b/dsql-app/.local_dist/server/pages/api/user/[user_id]/grab-google-user-from-token.js index fb057ce..8b5bdfa 100644 --- a/dsql-app/.local_dist/server/pages/api/user/[user_id]/grab-google-user-from-token.js +++ b/dsql-app/.local_dist/server/pages/api/user/[user_id]/grab-google-user-from-token.js @@ -1,4 +1,4 @@ -"use strict";(()=>{var e={};e.id=2738,e.ids=[2738],e.modules={76154:e=>{e.exports=require("google-auth-library")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},96487:(e,r,t)=>{t.r(r),t.d(r,{config:()=>f,default:()=>d,routeModule:()=>g});var n={};t.r(n),t.d(n,{default:()=>c});var i=t(89947),s=t(2706),a=t(96762),o=t(67619),l=t(56081);let{OAuth2Client:u}=t(76154);async function c(e,r){if("POST"!==e.method)return r.json({success:!1,payload:null,msg:"Failed!"});try{let t=e.headers.authorization,n=(0,l.A)({key:t,user_id:String(e.query.user_id)});if(!n?.user_id)throw Error("Api Credentials invalid!");if(!n.full_access||!n.sign)return r.json({success:!1,payload:null,msg:"Unauthorized"});let{token:i,clientId:s}=e.body,a=new u(s),o=await a.verifyIdToken({idToken:i,audience:s});if(!o?.getPayload()?.email_verified)return r.json({success:!1,payload:null,msg:"User not verified!"});let c=o.getPayload();r.json({success:!0,payload:c})}catch(t){(0,o.default)({component:"/api/user/grab-google-user-from-token/main-catch-error",message:t.message,req:e}),r.json({success:!1,payload:null,msg:"User fetch Error"})}}let d=(0,a.M)(n,"default"),f=(0,a.M)(n,"config"),g=new i.PagesAPIRouteModule({definition:{kind:s.A.PAGES_API,page:"/api/user/[user_id]/grab-google-user-from-token",pathname:"/api/user/[user_id]/grab-google-user-from-token",bundlePath:"",filename:""},userland:n})},56081:(e,r,t)=>{t.d(r,{A:()=>a});var n=t(29021),i=t.n(n),s=t(95969);let a=({key:e,database:r,table:t,user_id:n,media:a})=>{if(!e||!n)return null;try{let o=process.env.DSQL_API_KEYS_PATH;if(!o)throw Error("process.env.DSQL_API_KEYS_PATH variable not found");let l=(0,s.A)({encryptedString:e}),u=JSON.parse(l||""),c=i().existsSync(`${o}/${u.sign}`);if(String(u.user_id)!==String(n)||!c)return null;if(!u.target_database||a)return u;if(!r&&u.target_database)return null;let d=u.target_database?.split(",").includes(String(r));if(d&&!u.target_table)return u;if(d&&!t&&u.target_table)return null;if(u.target_table?.split(",").includes(String(t)))return u;return null}catch(e){return console.log(`api-cred ERROR: ${e.message}`),{error:`api-cred ERROR: ${e.message}`}}}},67619:(e,r,t)=>{t.r(r),t.d(r,{default:()=>s});var n=t(29021),i=t.n(n);async function s({user:e,message:r,component:t,noMail:n,req:s}){let a=new Date,o=(()=>{if(!s)return null;try{let e=s.headers["x-forwarded-for"],r=s.headers["x-real-ip"],t=s.headers["cf-connecting-ip"],n=Array.isArray(e)?e[0]:e?.split(",")[0],i=t||n||r||s.socket.remoteAddress;if(!i)return null;return String(i)}catch(e){return null}})();try{let n=`🚀 SERVER ERROR =========================== +"use strict";(()=>{var e={};e.id=2738,e.ids=[2738],e.modules={76154:e=>{e.exports=require("google-auth-library")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},96487:(e,r,t)=>{t.r(r),t.d(r,{config:()=>f,default:()=>d,routeModule:()=>g});var n={};t.r(n),t.d(n,{default:()=>c});var i=t(89947),s=t(2706),a=t(96762),o=t(76154),l=t(67619),u=t(56081);async function c(e,r){if("POST"!==e.method)return r.json({success:!1,payload:null,msg:"Failed!"});try{let t=e.headers.authorization,n=(0,u.A)({key:t,user_id:String(e.query.user_id)});if(!n?.user_id)throw Error("Api Credentials invalid!");if(!n.full_access||!n.sign)return r.json({success:!1,payload:null,msg:"Unauthorized"});let{token:i,clientId:s}=e.body,a=new o.OAuth2Client(s),l=await a.verifyIdToken({idToken:i,audience:s});if(!l?.getPayload()?.email_verified)return r.json({success:!1,payload:null,msg:"User not verified!"});let c=l.getPayload();r.json({success:!0,payload:c})}catch(t){(0,l.A)({component:"/api/user/grab-google-user-from-token/main-catch-error",message:t.message,req:e}),r.json({success:!1,payload:null,msg:"User fetch Error"})}}let d=(0,a.M)(n,"default"),f=(0,a.M)(n,"config"),g=new i.PagesAPIRouteModule({definition:{kind:s.A.PAGES_API,page:"/api/user/[user_id]/grab-google-user-from-token",pathname:"/api/user/[user_id]/grab-google-user-from-token",bundlePath:"",filename:""},userland:n})},56081:(e,r,t)=>{t.d(r,{A:()=>a});var n=t(29021),i=t.n(n),s=t(95969);let a=({key:e,database:r,table:t,user_id:n,media:a})=>{if(!e||!n)return null;try{let o=process.env.DSQL_API_KEYS_PATH;if(!o)throw Error("process.env.DSQL_API_KEYS_PATH variable not found");let l=(0,s.A)({encryptedString:e}),u=JSON.parse(l||""),c=i().existsSync(`${o}/${u.sign}`);if(String(u.user_id)!==String(n)||!c)return null;if(!u.target_database||a)return u;if(!r&&u.target_database)return null;let d=u.target_database?.split(",").includes(String(r));if(d&&!u.target_table)return u;if(d&&!t&&u.target_table)return null;if(u.target_table?.split(",").includes(String(t)))return u;return null}catch(e){return console.log(`api-cred ERROR: ${e.message}`),{error:`api-cred ERROR: ${e.message}`}}}},67619:(e,r,t)=>{t.d(r,{A:()=>s});var n=t(29021),i=t.n(n);async function s({user:e,message:r,component:t,noMail:n,req:s}){let a=new Date,o=(()=>{if(!s)return null;try{let e=s.headers["x-forwarded-for"],r=s.headers["x-real-ip"],t=s.headers["cf-connecting-ip"],n=Array.isArray(e)?e[0]:e?.split(",")[0],i=t||n||r||s.socket.remoteAddress;if(!i)return null;return String(i)}catch(e){return null}})();try{let n=`🚀 SERVER ERROR =========================== Error Message: ${r} Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(n+=` User Id: ${e?.id} diff --git a/dsql-app/.local_dist/server/pages/api/user/[user_id]/login-user.js b/dsql-app/.local_dist/server/pages/api/user/[user_id]/login-user.js index 43b98e4..2c95c63 100644 --- a/dsql-app/.local_dist/server/pages/api/user/[user_id]/login-user.js +++ b/dsql-app/.local_dist/server/pages/api/user/[user_id]/login-user.js @@ -1,4 +1,4 @@ -"use strict";(()=>{var e={};e.id=2726,e.ids=[2726],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},93052:(e,r,t)=>{t.r(r),t.d(r,{config:()=>m,default:()=>g,routeModule:()=>p});var a={};t.r(a),t.d(a,{default:()=>f});var n=t(89947),s=t(2706),i=t(96762),o=t(67619),l=t(56081),u=t(30944),c=t(83919);async function d({encryptionKey:e,email:r,username:t,password:a,database:n,additionalFields:s,email_login:i,email_login_code:o,email_login_field:l,token:d,skipPassword:f,social:g,useLocal:m}){let p=n.replace(/[^a-z0-9_]/g,"");if(r?.match(/ /)||t&&t?.match(/ /)||a&&a?.match(/ /))return{success:!1,msg:"Invalid Email/Password format"};let _=a?(0,c.A)({encryptionKey:e,password:a}):null,y=await (0,u.A)({queryString:`SELECT * FROM ${p}.users WHERE email = ? OR username = ?`,queryValuesArray:[r,t],database:p,useLocal:m});if((!y||!y[0])&&!g)return{success:!1,payload:null,msg:"No user found"};let S=!1;if(y?.[0]&&!i&&f)S=!0;else if(y?.[0]&&!i)S=_===y[0].password;else if(y&&y[0]&&i&&o&&l){let e=y[0][l];if(!e)throw Error("No code Found!");let[r,t]=e.split("-");if(Date.now()-Number(t)>9e5)throw Error("Code Expired");S=r===o}if(!S)return{success:!1,msg:"Wrong password, no social login validity",payload:null};S&&i&&await (0,u.A)({queryString:`UPDATE ${p}.users SET ${l} = '' WHERE email = ? OR username = ?`,queryValuesArray:[r,t],database:p,useLocal:m});let E=Math.random().toString(36).substring(2)+"-"+Math.random().toString(36).substring(2),h={id:y[0].id,first_name:y[0].first_name,last_name:y[0].last_name,username:y[0].username,email:y[0].email,phone:y[0].phone,social_id:y[0].social_id,image:y[0].image,image_thumbnail:y[0].image_thumbnail,verification_status:y[0].verification_status,social_login:y[0].social_login,social_platform:y[0].social_platform,csrf_k:E,more_data:y[0].more_user_data,logged_in_status:!0,date:Date.now()},A={success:!0,msg:"Login Successful",payload:h,userId:y[0].id,csrf:E};return s&&Array.isArray(s)&&s.length>0&&s.forEach(e=>{h[e]=y[0][e]}),A}async function f(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});try{let{encryptionKey:t,payload:a,database:n,additionalFields:s,email_login:i,email_login_code:o,email_login_field:u,token:c,skipPassword:f}=e.body,g=e.headers.authorization,m=(0,l.A)({key:g,database:n,user_id:String(e.query.user_id)});if(!m?.user_id)throw Error("Api Credentials invalid!");if(!m.full_access||!m.sign)return r.json({success:!1,msg:"Unauthorized"});let p=a.email,_=a.username,y=a.password,S=`datasquirel_user_${m.user_id}_${n}`,E=await d({database:S,email:p,username:_,password:y,skipPassword:f,encryptionKey:t,additionalFields:s,email_login:i,email_login_code:o,email_login_field:u,token:c});r.json(E)}catch(t){(0,o.default)({component:"/api/user/login-user/main-catch-error",message:t.message,user:{},req:e}),r.json({success:!1,msg:"Login Failed"})}}let g=(0,i.M)(a,"default"),m=(0,i.M)(a,"config"),p=new n.PagesAPIRouteModule({definition:{kind:s.A.PAGES_API,page:"/api/user/[user_id]/login-user",pathname:"/api/user/[user_id]/login-user",bundlePath:"",filename:""},userland:a})},56081:(e,r,t)=>{t.d(r,{A:()=>i});var a=t(29021),n=t.n(a),s=t(95969);let i=({key:e,database:r,table:t,user_id:a,media:i})=>{if(!e||!a)return null;try{let o=process.env.DSQL_API_KEYS_PATH;if(!o)throw Error("process.env.DSQL_API_KEYS_PATH variable not found");let l=(0,s.A)({encryptedString:e}),u=JSON.parse(l||""),c=n().existsSync(`${o}/${u.sign}`);if(String(u.user_id)!==String(a)||!c)return null;if(!u.target_database||i)return u;if(!r&&u.target_database)return null;let d=u.target_database?.split(",").includes(String(r));if(d&&!u.target_table)return u;if(d&&!t&&u.target_table)return null;if(u.target_table?.split(",").includes(String(t)))return u;return null}catch(e){return console.log(`api-cred ERROR: ${e.message}`),{error:`api-cred ERROR: ${e.message}`}}}},43775:(e,r,t)=>{t.d(r,{A:()=>s});var a=t(95969);let n=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/;async function s({unparsedResults:e,tableSchema:r}){let t=[];try{for(let s=0;s",r.message),e}}},67619:(e,r,t)=>{t.r(r),t.d(r,{default:()=>s});var a=t(29021),n=t.n(a);async function s({user:e,message:r,component:t,noMail:a,req:s}){let i=new Date,o=(()=>{if(!s)return null;try{let e=s.headers["x-forwarded-for"],r=s.headers["x-real-ip"],t=s.headers["cf-connecting-ip"],a=Array.isArray(e)?e[0]:e?.split(",")[0],n=t||a||r||s.socket.remoteAddress;if(!n)return null;return String(n)}catch(e){return null}})();try{let a=`🚀 SERVER ERROR =========================== +"use strict";(()=>{var e={};e.id=2726,e.ids=[2726],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},93052:(e,r,t)=>{t.r(r),t.d(r,{config:()=>f,default:()=>m,routeModule:()=>p});var a={};t.r(a),t.d(a,{default:()=>g});var n=t(89947),s=t(2706),i=t(96762),o=t(67619),l=t(56081),u=t(30944),c=t(83919);async function d({encryptionKey:e,email:r,username:t,password:a,database:n,additionalFields:s,email_login:i,email_login_code:o,email_login_field:l,token:d,skipPassword:g,social:m,useLocal:f}){let p=n.replace(/[^a-z0-9_]/g,"");if(r?.match(/ /)||t&&t?.match(/ /)||a&&a?.match(/ /))return{success:!1,msg:"Invalid Email/Password format"};let _=a?(0,c.A)({encryptionKey:e,password:a}):null,y=await (0,u.A)({queryString:`SELECT * FROM ${p}.users WHERE email = ? OR username = ?`,queryValuesArray:[r,t],database:p,useLocal:f});if((!y||!y[0])&&!m)return{success:!1,payload:null,msg:"No user found"};let S=!1;if(y?.[0]&&!i&&g)S=!0;else if(y?.[0]&&!i)S=_===y[0].password;else if(y&&y[0]&&i&&o&&l){let e=y[0][l];if(!e)throw Error("No code Found!");let[r,t]=e.split("-");if(Date.now()-Number(t)>9e5)throw Error("Code Expired");S=r===o}if(!S)return{success:!1,msg:"Wrong password, no social login validity",payload:null};S&&i&&await (0,u.A)({queryString:`UPDATE ${p}.users SET ${l} = '' WHERE email = ? OR username = ?`,queryValuesArray:[r,t],database:p,useLocal:f});let A=Math.random().toString(36).substring(2)+"-"+Math.random().toString(36).substring(2),E={id:y[0].id,first_name:y[0].first_name,last_name:y[0].last_name,username:y[0].username,email:y[0].email,phone:y[0].phone,social_id:y[0].social_id,image:y[0].image,image_thumbnail:y[0].image_thumbnail,verification_status:y[0].verification_status,social_login:y[0].social_login,social_platform:y[0].social_platform,csrf_k:A,more_data:y[0].more_user_data,logged_in_status:!0,date:Date.now()},h={success:!0,msg:"Login Successful",payload:E,userId:y[0].id,csrf:A};return s&&Array.isArray(s)&&s.length>0&&s.forEach(e=>{E[e]=y[0][e]}),h}async function g(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});try{let{encryptionKey:t,payload:a,database:n,additionalFields:s,email_login:i,email_login_code:o,email_login_field:u,token:c,skipPassword:g}=e.body,m=e.headers.authorization,f=(0,l.A)({key:m,database:n,user_id:String(e.query.user_id)});if(!f?.user_id)throw Error("Api Credentials invalid!");if(!f.full_access||!f.sign)return r.json({success:!1,msg:"Unauthorized"});let p=a.email,_=a.username,y=a.password,S=`datasquirel_user_${f.user_id}_${n}`,A=await d({database:S,email:p,username:_,password:y,skipPassword:g,encryptionKey:t,additionalFields:s,email_login:i,email_login_code:o,email_login_field:u,token:c});r.json(A)}catch(t){(0,o.A)({component:"/api/user/login-user/main-catch-error",message:t.message,user:{},req:e}),r.json({success:!1,msg:"Login Failed"})}}let m=(0,i.M)(a,"default"),f=(0,i.M)(a,"config"),p=new n.PagesAPIRouteModule({definition:{kind:s.A.PAGES_API,page:"/api/user/[user_id]/login-user",pathname:"/api/user/[user_id]/login-user",bundlePath:"",filename:""},userland:a})},56081:(e,r,t)=>{t.d(r,{A:()=>i});var a=t(29021),n=t.n(a),s=t(95969);let i=({key:e,database:r,table:t,user_id:a,media:i})=>{if(!e||!a)return null;try{let o=process.env.DSQL_API_KEYS_PATH;if(!o)throw Error("process.env.DSQL_API_KEYS_PATH variable not found");let l=(0,s.A)({encryptedString:e}),u=JSON.parse(l||""),c=n().existsSync(`${o}/${u.sign}`);if(String(u.user_id)!==String(a)||!c)return null;if(!u.target_database||i)return u;if(!r&&u.target_database)return null;let d=u.target_database?.split(",").includes(String(r));if(d&&!u.target_table)return u;if(d&&!t&&u.target_table)return null;if(u.target_table?.split(",").includes(String(t)))return u;return null}catch(e){return console.log(`api-cred ERROR: ${e.message}`),{error:`api-cred ERROR: ${e.message}`}}}},43775:(e,r,t)=>{t.d(r,{A:()=>s});var a=t(95969);let n=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/;async function s({unparsedResults:e,tableSchema:r}){let t=[];try{for(let s=0;s",r.message),e}}},67619:(e,r,t)=>{t.d(r,{A:()=>s});var a=t(29021),n=t.n(a);async function s({user:e,message:r,component:t,noMail:a,req:s}){let i=new Date,o=(()=>{if(!s)return null;try{let e=s.headers["x-forwarded-for"],r=s.headers["x-real-ip"],t=s.headers["cf-connecting-ip"],a=Array.isArray(e)?e[0]:e?.split(",")[0],n=t||a||r||s.socket.remoteAddress;if(!n)return null;return String(n)}catch(e){return null}})();try{let a=`🚀 SERVER ERROR =========================== Error Message: ${r} Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(a+=` User Id: ${e?.id} @@ -13,4 +13,4 @@ Date: ${i.toDateString()} -${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},30944:(e,r,t)=>{t.d(r,{A:()=>l});var a=t(43775),n=t(67619),s=t(48786),i=t(37275),o=t(7971);async function l({queryString:e,queryValuesArray:r,database:t,tableSchema:l,useLocal:u}){let c;let d=!!u||!!t?.match(/^datasquirel$/),f=u?o.A:d?s.A:i.default;try{c=e&&r&&Array.isArray(r)&&r[0]?d?await f(e,r):await f({paradigm:"Full Access",queryString:e,queryValues:r}):d?await f(e):await f({paradigm:"Full Access",queryString:e})}catch(e){console.log(`varDatabaseDbHandler Error: ${e.message}`),(0,n.default)({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(c&&l)try{let e=c;return await (0,a.A)({unparsedResults:e,tableSchema:l})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",t,e),(0,n.default)({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(c)return c;else return null}},95969:(e,r,t)=>{t.d(r,{A:()=>s});var a=t(55511),n=t(79428);function s({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let s=r||process.env.DSQL_ENCRYPTION_PASSWORD,i=t||process.env.DSQL_ENCRYPTION_SALT,o=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!s?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let l=(0,a.scryptSync)(s,i,o),u=n.Buffer.alloc(16,0),c=(0,a.createDecipheriv)("aes-192-cbc",l,u);try{let r=c.update(e,"hex","utf8");return r+=c.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},83919:(e,r,t)=>{t.d(r,{A:()=>n});var a=t(55511);function n({password:e,encryptionKey:r}){let t=r||process.env.DSQL_ENCRYPTION_PASSWORD;if(!t?.match(/.{8,}/))throw Error("Encryption key is invalid");let n=(0,a.createHmac)("sha512",t);return n.update(e),n.digest("base64")}},48786:(e,r,t)=>{t.d(r,{A:()=>a});async function a(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},37275:(e,r,t)=>{async function a(e,r,t){try{if("string"==typeof r){let a=await e.query(n(r),t);return JSON.parse(JSON.stringify(a))}if("object"!=typeof r)return null;{let t=[];for(let a=0;as})},7971:(e,r,t)=>{t.d(r,{A:()=>o});var a=t(9973),n=t.n(a),s=t(29021),i=t.n(s);async function o(...e){let r=n()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!i().existsSync(r)){console.log(`${r} does not exist`);return}return{ca:i().readFileSync(`${e}/ca-cert.pem`),rejectUnauthorized:!1}}()},onConnect:()=>{console.log("Connection Successful!")},onConnectError:e=>{console.log("Connection Error",e.message)},onError:e=>{console.log("Client Error",e.message)}});console.log("Querying ...");try{let t=await r.query(...e);return await r.end(),JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e.message),{success:!1,error:e.message}}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../../../webpack-api-runtime.js");r.C(e);var t=r(r.s=93052);module.exports=t})(); \ No newline at end of file +${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},30944:(e,r,t)=>{t.d(r,{A:()=>l});var a=t(43775),n=t(67619),s=t(48786),i=t(37275),o=t(7971);async function l({queryString:e,queryValuesArray:r,database:t,tableSchema:l,useLocal:u}){let c;let d=!!u||!!t?.match(/^datasquirel$/),g=u?o.A:d?s.A:i.A;try{c=e&&r&&Array.isArray(r)&&r[0]?d?await g(e,r):await g({paradigm:"Full Access",queryString:e,queryValues:r}):d?await g(e):await g({paradigm:"Full Access",queryString:e})}catch(e){console.log(`varDatabaseDbHandler Error: ${e.message}`),(0,n.A)({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(c&&l)try{let e=c;return await (0,a.A)({unparsedResults:e,tableSchema:l})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",t,e),(0,n.A)({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(c)return c;else return null}},95969:(e,r,t)=>{t.d(r,{A:()=>s});var a=t(55511),n=t(79428);function s({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let s=r||process.env.DSQL_ENCRYPTION_PASSWORD,i=t||process.env.DSQL_ENCRYPTION_SALT,o=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!s?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let l=(0,a.scryptSync)(s,i,o),u=n.Buffer.alloc(16,0),c=(0,a.createDecipheriv)("aes-192-cbc",l,u);try{let r=c.update(e,"hex","utf8");return r+=c.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},83919:(e,r,t)=>{t.d(r,{A:()=>n});var a=t(55511);function n({password:e,encryptionKey:r}){let t=r||process.env.DSQL_ENCRYPTION_PASSWORD;if(!t?.match(/.{8,}/))throw Error("Encryption key is invalid");let n=(0,a.createHmac)("sha512",t);return n.update(e),n.digest("base64")}},48786:(e,r,t)=>{t.d(r,{A:()=>a});async function a(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},37275:(e,r,t)=>{async function a(e,r,t){try{if("string"==typeof r){let a=await e.query(n(r),t);return JSON.parse(JSON.stringify(a))}if("object"!=typeof r)return null;{let t=[];for(let a=0;as})},7971:(e,r,t)=>{t.d(r,{A:()=>o});var a=t(9973),n=t.n(a),s=t(29021),i=t.n(s);async function o(...e){let r=n()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!i().existsSync(r)){console.log(`${r} does not exist`);return}return{ca:i().readFileSync(`${e}/ca-cert.pem`),rejectUnauthorized:!1}}()},onConnect:()=>{console.log("Connection Successful!")},onConnectError:e=>{console.log("Connection Error",e.message)},onError:e=>{console.log("Client Error",e.message)}});console.log("Querying ...");try{let t=await r.query(...e);return await r.end(),JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e.message),{success:!1,error:e.message}}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../../../webpack-api-runtime.js");r.C(e);var t=r(r.s=93052);module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/user/[user_id]/reauth-user.js b/dsql-app/.local_dist/server/pages/api/user/[user_id]/reauth-user.js index f126db6..950ec0f 100644 --- a/dsql-app/.local_dist/server/pages/api/user/[user_id]/reauth-user.js +++ b/dsql-app/.local_dist/server/pages/api/user/[user_id]/reauth-user.js @@ -1,16 +1,16 @@ -"use strict";(()=>{var e={};e.id=4458,e.ids=[4458],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},42276:(e,r,t)=>{t.r(r),t.d(r,{config:()=>f,default:()=>g,routeModule:()=>_});var a={};t.r(a),t.d(a,{default:()=>d});var n=t(89947),s=t(2706),i=t(96762),o=t(67619),l=t(56081),u=t(30944);async function c({existingUser:e,database:r,additionalFields:t,useLocal:a}){let n=e?.id&&e.id.toString().match(/./)?await (0,u.A)({queryString:`SELECT * FROM ${r}.users WHERE id=?`,queryValuesArray:[e.id.toString()],database:r,useLocal:a}):null;if(!n||!n[0])return{success:!1,payload:null,msg:"No user found"};let s=Math.random().toString(36).substring(2)+"-"+Math.random().toString(36).substring(2),i={id:n[0].id,first_name:n[0].first_name,last_name:n[0].last_name,username:n[0].username,email:n[0].email,phone:n[0].phone,social_id:n[0].social_id,image:n[0].image,image_thumbnail:n[0].image_thumbnail,verification_status:n[0].verification_status,social_login:n[0].social_login,social_platform:n[0].social_platform,csrf_k:s,more_data:n[0].more_user_data,logged_in_status:!0,date:Date.now()};return t&&Array.isArray(t)&&t.length>0&&t.forEach(e=>{i[e]=n[0][e]}),{success:!0,msg:"Login Successful",payload:i,csrf:s}}async function d(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});try{let{existingUser:t,database:a,additionalFields:n}=e.body,s=e.headers.authorization,i=(0,l.A)({key:s,database:a,user_id:String(e.query.user_id)});if(!i?.user_id)throw Error("Api Credentials invalid!");if(!i.full_access||!i.sign)return r.json({success:!1,msg:"Unauthorized"});let o=`datasquirel_user_${i.user_id}_${a}`.replace(/[^a-z0-9_]/g,""),u=await c({database:o,existingUser:t,additionalFields:n});r.json(u)}catch(t){(0,o.default)({component:"/api/user/reauth-user/main-catch-error",message:t.message,user:{},req:e}),r.json({success:!1,msg:"Login Failed"})}}let g=(0,i.M)(a,"default"),f=(0,i.M)(a,"config"),_=new n.PagesAPIRouteModule({definition:{kind:s.A.PAGES_API,page:"/api/user/[user_id]/reauth-user",pathname:"/api/user/[user_id]/reauth-user",bundlePath:"",filename:""},userland:a})},56081:(e,r,t)=>{t.d(r,{A:()=>i});var a=t(29021),n=t.n(a),s=t(95969);let i=({key:e,database:r,table:t,user_id:a,media:i})=>{if(!e||!a)return null;try{let o=process.env.DSQL_API_KEYS_PATH;if(!o)throw Error("process.env.DSQL_API_KEYS_PATH variable not found");let l=(0,s.A)({encryptedString:e}),u=JSON.parse(l||""),c=n().existsSync(`${o}/${u.sign}`);if(String(u.user_id)!==String(a)||!c)return null;if(!u.target_database||i)return u;if(!r&&u.target_database)return null;let d=u.target_database?.split(",").includes(String(r));if(d&&!u.target_table)return u;if(d&&!t&&u.target_table)return null;if(u.target_table?.split(",").includes(String(t)))return u;return null}catch(e){return console.log(`api-cred ERROR: ${e.message}`),{error:`api-cred ERROR: ${e.message}`}}}},43775:(e,r,t)=>{t.d(r,{A:()=>s});var a=t(95969);let n=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/;async function s({unparsedResults:e,tableSchema:r}){let t=[];try{for(let s=0;s",r.message),e}}},67619:(e,r,t)=>{t.r(r),t.d(r,{default:()=>s});var a=t(29021),n=t.n(a);async function s({user:e,message:r,component:t,noMail:a,req:s}){let i=new Date,o=(()=>{if(!s)return null;try{let e=s.headers["x-forwarded-for"],r=s.headers["x-real-ip"],t=s.headers["cf-connecting-ip"],a=Array.isArray(e)?e[0]:e?.split(",")[0],n=t||a||r||s.socket.remoteAddress;if(!n)return null;return String(n)}catch(e){return null}})();try{let a=`🚀 SERVER ERROR =========================== +"use strict";(()=>{var e={};e.id=4458,e.ids=[4458],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},42276:(e,r,t)=>{t.r(r),t.d(r,{config:()=>_,default:()=>g,routeModule:()=>f});var n={};t.r(n),t.d(n,{default:()=>d});var a=t(89947),s=t(2706),i=t(96762),o=t(67619),l=t(56081),u=t(30944);async function c({existingUser:e,database:r,additionalFields:t,useLocal:n}){let a=e?.id&&e.id.toString().match(/./)?await (0,u.A)({queryString:`SELECT * FROM ${r}.users WHERE id=?`,queryValuesArray:[e.id.toString()],database:r,useLocal:n}):null;if(!a||!a[0])return{success:!1,payload:null,msg:"No user found"};let s=Math.random().toString(36).substring(2)+"-"+Math.random().toString(36).substring(2),i={id:a[0].id,first_name:a[0].first_name,last_name:a[0].last_name,username:a[0].username,email:a[0].email,phone:a[0].phone,social_id:a[0].social_id,image:a[0].image,image_thumbnail:a[0].image_thumbnail,verification_status:a[0].verification_status,social_login:a[0].social_login,social_platform:a[0].social_platform,csrf_k:s,more_data:a[0].more_user_data,logged_in_status:!0,date:Date.now()};return t&&Array.isArray(t)&&t.length>0&&t.forEach(e=>{i[e]=a[0][e]}),{success:!0,msg:"Login Successful",payload:i,csrf:s}}async function d(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});try{let{existingUser:t,database:n,additionalFields:a}=e.body,s=e.headers.authorization,i=(0,l.A)({key:s,database:n,user_id:String(e.query.user_id)});if(!i?.user_id)throw Error("Api Credentials invalid!");if(!i.full_access||!i.sign)return r.json({success:!1,msg:"Unauthorized"});let o=`datasquirel_user_${i.user_id}_${n}`.replace(/[^a-z0-9_]/g,""),u=await c({database:o,existingUser:t,additionalFields:a});r.json(u)}catch(t){(0,o.A)({component:"/api/user/reauth-user/main-catch-error",message:t.message,user:{},req:e}),r.json({success:!1,msg:"Login Failed"})}}let g=(0,i.M)(n,"default"),_=(0,i.M)(n,"config"),f=new a.PagesAPIRouteModule({definition:{kind:s.A.PAGES_API,page:"/api/user/[user_id]/reauth-user",pathname:"/api/user/[user_id]/reauth-user",bundlePath:"",filename:""},userland:n})},56081:(e,r,t)=>{t.d(r,{A:()=>i});var n=t(29021),a=t.n(n),s=t(95969);let i=({key:e,database:r,table:t,user_id:n,media:i})=>{if(!e||!n)return null;try{let o=process.env.DSQL_API_KEYS_PATH;if(!o)throw Error("process.env.DSQL_API_KEYS_PATH variable not found");let l=(0,s.A)({encryptedString:e}),u=JSON.parse(l||""),c=a().existsSync(`${o}/${u.sign}`);if(String(u.user_id)!==String(n)||!c)return null;if(!u.target_database||i)return u;if(!r&&u.target_database)return null;let d=u.target_database?.split(",").includes(String(r));if(d&&!u.target_table)return u;if(d&&!t&&u.target_table)return null;if(u.target_table?.split(",").includes(String(t)))return u;return null}catch(e){return console.log(`api-cred ERROR: ${e.message}`),{error:`api-cred ERROR: ${e.message}`}}}},43775:(e,r,t)=>{t.d(r,{A:()=>s});var n=t(95969);let a=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/;async function s({unparsedResults:e,tableSchema:r}){let t=[];try{for(let s=0;s",r.message),e}}},67619:(e,r,t)=>{t.d(r,{A:()=>s});var n=t(29021),a=t.n(n);async function s({user:e,message:r,component:t,noMail:n,req:s}){let i=new Date,o=(()=>{if(!s)return null;try{let e=s.headers["x-forwarded-for"],r=s.headers["x-real-ip"],t=s.headers["cf-connecting-ip"],n=Array.isArray(e)?e[0]:e?.split(",")[0],a=t||n||r||s.socket.remoteAddress;if(!a)return null;return String(a)}catch(e){return null}})();try{let n=`🚀 SERVER ERROR =========================== Error Message: ${r} -Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(a+=` +Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(n+=` User Id: ${e?.id} User Name: ${e?.first_name} ${e?.last_name} -User Email: ${e?.email}`),s?.url&&(a+=` -URL: ${s.url}`),s?.body&&(a+=` -Request Body: ${JSON.stringify(s.body,null,4)}`),o&&(a+=` -IP: ${o}`),a+=` +User Email: ${e?.email}`),s?.url&&(n+=` +URL: ${s.url}`),s?.body&&(n+=` +Request Body: ${JSON.stringify(s.body,null,4)}`),o&&(n+=` +IP: ${o}`),n+=` Date: ${i.toDateString()} -========================================`,n().existsSync("./.tmp/error.log")||n().writeFileSync("./.tmp/error.log","","utf-8");let l=n().readFileSync("./.tmp/error.log","utf-8");n().writeFileSync("./.tmp/error.log",a),n().appendFileSync("./.tmp/error.log",` +========================================`,a().existsSync("./.tmp/error.log")||a().writeFileSync("./.tmp/error.log","","utf-8");let l=a().readFileSync("./.tmp/error.log","utf-8");a().writeFileSync("./.tmp/error.log",n),a().appendFileSync("./.tmp/error.log",` -${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},30944:(e,r,t)=>{t.d(r,{A:()=>l});var a=t(43775),n=t(67619),s=t(48786),i=t(37275),o=t(7971);async function l({queryString:e,queryValuesArray:r,database:t,tableSchema:l,useLocal:u}){let c;let d=!!u||!!t?.match(/^datasquirel$/),g=u?o.A:d?s.A:i.default;try{c=e&&r&&Array.isArray(r)&&r[0]?d?await g(e,r):await g({paradigm:"Full Access",queryString:e,queryValues:r}):d?await g(e):await g({paradigm:"Full Access",queryString:e})}catch(e){console.log(`varDatabaseDbHandler Error: ${e.message}`),(0,n.default)({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(c&&l)try{let e=c;return await (0,a.A)({unparsedResults:e,tableSchema:l})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",t,e),(0,n.default)({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(c)return c;else return null}},95969:(e,r,t)=>{t.d(r,{A:()=>s});var a=t(55511),n=t(79428);function s({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let s=r||process.env.DSQL_ENCRYPTION_PASSWORD,i=t||process.env.DSQL_ENCRYPTION_SALT,o=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!s?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let l=(0,a.scryptSync)(s,i,o),u=n.Buffer.alloc(16,0),c=(0,a.createDecipheriv)("aes-192-cbc",l,u);try{let r=c.update(e,"hex","utf8");return r+=c.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>a});async function a(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},37275:(e,r,t)=>{async function a(e,r,t){try{if("string"==typeof r){let a=await e.query(n(r),t);return JSON.parse(JSON.stringify(a))}if("object"!=typeof r)return null;{let t=[];for(let a=0;as})},7971:(e,r,t)=>{t.d(r,{A:()=>o});var a=t(9973),n=t.n(a),s=t(29021),i=t.n(s);async function o(...e){let r=n()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!i().existsSync(r)){console.log(`${r} does not exist`);return}return{ca:i().readFileSync(`${e}/ca-cert.pem`),rejectUnauthorized:!1}}()},onConnect:()=>{console.log("Connection Successful!")},onConnectError:e=>{console.log("Connection Error",e.message)},onError:e=>{console.log("Client Error",e.message)}});console.log("Querying ...");try{let t=await r.query(...e);return await r.end(),JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e.message),{success:!1,error:e.message}}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../../../webpack-api-runtime.js");r.C(e);var t=r(r.s=42276);module.exports=t})(); \ No newline at end of file +${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},30944:(e,r,t)=>{t.d(r,{A:()=>l});var n=t(43775),a=t(67619),s=t(48786),i=t(37275),o=t(7971);async function l({queryString:e,queryValuesArray:r,database:t,tableSchema:l,useLocal:u}){let c;let d=!!u||!!t?.match(/^datasquirel$/),g=u?o.A:d?s.A:i.A;try{c=e&&r&&Array.isArray(r)&&r[0]?d?await g(e,r):await g({paradigm:"Full Access",queryString:e,queryValues:r}):d?await g(e):await g({paradigm:"Full Access",queryString:e})}catch(e){console.log(`varDatabaseDbHandler Error: ${e.message}`),(0,a.A)({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(c&&l)try{let e=c;return await (0,n.A)({unparsedResults:e,tableSchema:l})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",t,e),(0,a.A)({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(c)return c;else return null}},95969:(e,r,t)=>{t.d(r,{A:()=>s});var n=t(55511),a=t(79428);function s({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let s=r||process.env.DSQL_ENCRYPTION_PASSWORD,i=t||process.env.DSQL_ENCRYPTION_SALT,o=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!s?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let l=(0,n.scryptSync)(s,i,o),u=a.Buffer.alloc(16,0),c=(0,n.createDecipheriv)("aes-192-cbc",l,u);try{let r=c.update(e,"hex","utf8");return r+=c.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>n});async function n(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},37275:(e,r,t)=>{async function n(e,r,t){try{if("string"==typeof r){let n=await e.query(a(r),t);return JSON.parse(JSON.stringify(n))}if("object"!=typeof r)return null;{let t=[];for(let n=0;ns})},7971:(e,r,t)=>{t.d(r,{A:()=>o});var n=t(9973),a=t.n(n),s=t(29021),i=t.n(s);async function o(...e){let r=a()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!i().existsSync(r)){console.log(`${r} does not exist`);return}return{ca:i().readFileSync(`${e}/ca-cert.pem`),rejectUnauthorized:!1}}()},onConnect:()=>{console.log("Connection Successful!")},onConnectError:e=>{console.log("Connection Error",e.message)},onError:e=>{console.log("Client Error",e.message)}});console.log("Querying ...");try{let t=await r.query(...e);return await r.end(),JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e.message),{success:!1,error:e.message}}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../../../webpack-api-runtime.js");r.C(e);var t=r(r.s=42276);module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/user/[user_id]/send-email-code.js b/dsql-app/.local_dist/server/pages/api/user/[user_id]/send-email-code.js index 1dd094c..15317c6 100644 --- a/dsql-app/.local_dist/server/pages/api/user/[user_id]/send-email-code.js +++ b/dsql-app/.local_dist/server/pages/api/user/[user_id]/send-email-code.js @@ -1,4 +1,4 @@ -"use strict";(()=>{var e={};e.id=2860,e.ids=[2860],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},21572:e=>{e.exports=require("nodemailer")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},78794:(e,r,t)=>{t.r(r),t.d(r,{config:()=>g,default:()=>S,routeModule:()=>y});var n={};t.r(n),t.d(n,{default:()=>m});var s=t(89947),a=t(2706),o=t(96762),i=t(67619),l=t(56081),c=t(30944),u=t(21572),d=t.n(u),p=t(89159),_=t(68829);async function f({email:e,database:r,email_login_field:t,mail_domain:n,mail_port:s,sender:a,mail_username:o,mail_password:i,html:l,useLocal:u,response:f,extraCookies:m}){if(e?.match(/ /))return{success:!1,msg:"Invalid Email/Password format"};let S=Date.now(),g=`SELECT * FROM ${r}.users WHERE email = ?`,y=[e],E=await (0,c.A)({queryString:g,queryValuesArray:y,database:r,useLocal:u});if(!E||!E[0])return{success:!1,msg:"No user found"};if(!E?.[0]||!t)return{success:!1,msg:"Invalid Email/Password format"};{let g=function(){let e="ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",r="";for(let t=0;t<8;t++)r+=e[Math.floor(Math.random()*e.length)];return r}(),y=d().createTransport({host:n||process.env.DSQL_MAIL_HOST,port:s||(process.env.DSQL_MAIL_PORT?Number(process.env.DSQL_MAIL_PORT):465),secure:!0,auth:{user:o||process.env.DSQL_MAIL_EMAIL,pass:i||process.env.DSQL_MAIL_PASSWORD}}),E={};E.from=`"Datasquirel SSO" <${a||"support@datasquirel.com"}>`,E.sender=a||"support@datasquirel.com",E.to=e,E.subject="One Time Login Code",E.html=l.replace(/{{code}}/,g);let A=await y.sendMail(E);if(!A?.accepted)throw Error("Mail not Sent!");let D=`UPDATE ${r}.users SET ${t} = ? WHERE email = ?`,h=[g+`-${S}`,e];await (0,c.A)({queryString:D,queryValuesArray:h,database:r,useLocal:u});let v={success:!0,code:g,email:e,createdAt:S,msg:"Success"};if(f){let e=(0,p.A)().oneTimeCodeName,r=(0,_.default)({data:JSON.stringify(v)});if(!r)throw Error("apiSendEmailCode Error: Failed to encrypt payload");let t={name:e,value:r,sameSite:"Strict",path:"/",httpOnly:!0,secure:!0},n=function({cookies:e}){let r=[];for(let t=0;t{t.d(r,{A:()=>o});var n=t(29021),s=t.n(n),a=t(95969);let o=({key:e,database:r,table:t,user_id:n,media:o})=>{if(!e||!n)return null;try{let i=process.env.DSQL_API_KEYS_PATH;if(!i)throw Error("process.env.DSQL_API_KEYS_PATH variable not found");let l=(0,a.A)({encryptedString:e}),c=JSON.parse(l||""),u=s().existsSync(`${i}/${c.sign}`);if(String(c.user_id)!==String(n)||!u)return null;if(!c.target_database||o)return c;if(!r&&c.target_database)return null;let d=c.target_database?.split(",").includes(String(r));if(d&&!c.target_table)return c;if(d&&!t&&c.target_table)return null;if(c.target_table?.split(",").includes(String(t)))return c;return null}catch(e){return console.log(`api-cred ERROR: ${e.message}`),{error:`api-cred ERROR: ${e.message}`}}}},89159:(e,r,t)=>{t.d(r,{A:()=>n});function n(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",n=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",s=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",a=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),o=r;e?.userId&&(o+=`user_${e.userId}_`),a&&(o+=`${a}_`),o+=t;let i=r;e?.userId&&(i+=`user_${e.userId}_`),a&&(i+=`${a}_`),i+=n;let l=r;return e?.userId&&(l+=`user_${e.userId}_`),a&&(l+=`${a}_`),{keyCookieName:o,csrfCookieName:i,oneTimeCodeName:l+=s}}},43775:(e,r,t)=>{t.d(r,{A:()=>a});var n=t(95969);let s=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/;async function a({unparsedResults:e,tableSchema:r}){let t=[];try{for(let a=0;a",r.message),e}}},67619:(e,r,t)=>{t.r(r),t.d(r,{default:()=>a});var n=t(29021),s=t.n(n);async function a({user:e,message:r,component:t,noMail:n,req:a}){let o=new Date,i=(()=>{if(!a)return null;try{let e=a.headers["x-forwarded-for"],r=a.headers["x-real-ip"],t=a.headers["cf-connecting-ip"],n=Array.isArray(e)?e[0]:e?.split(",")[0],s=t||n||r||a.socket.remoteAddress;if(!s)return null;return String(s)}catch(e){return null}})();try{let n=`🚀 SERVER ERROR =========================== +"use strict";(()=>{var e={};e.id=2860,e.ids=[2860],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},21572:e=>{e.exports=require("nodemailer")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},78794:(e,r,t)=>{t.r(r),t.d(r,{config:()=>g,default:()=>S,routeModule:()=>y});var n={};t.r(n),t.d(n,{default:()=>f});var s=t(89947),a=t(2706),o=t(96762),i=t(67619),l=t(56081),c=t(30944),u=t(21572),d=t.n(u),p=t(89159),_=t(68829);async function m({email:e,database:r,email_login_field:t,mail_domain:n,mail_port:s,sender:a,mail_username:o,mail_password:i,html:l,useLocal:u,response:m,extraCookies:f}){if(e?.match(/ /))return{success:!1,msg:"Invalid Email/Password format"};let S=Date.now(),g=`SELECT * FROM ${r}.users WHERE email = ?`,y=[e],E=await (0,c.A)({queryString:g,queryValuesArray:y,database:r,useLocal:u});if(!E||!E[0])return{success:!1,msg:"No user found"};if(!E?.[0]||!t)return{success:!1,msg:"Invalid Email/Password format"};{let g=function(){let e="ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",r="";for(let t=0;t<8;t++)r+=e[Math.floor(Math.random()*e.length)];return r}(),y=d().createTransport({host:n||process.env.DSQL_MAIL_HOST,port:s||(process.env.DSQL_MAIL_PORT?Number(process.env.DSQL_MAIL_PORT):465),secure:!0,auth:{user:o||process.env.DSQL_MAIL_EMAIL,pass:i||process.env.DSQL_MAIL_PASSWORD}}),E={};E.from=`"Datasquirel SSO" <${a||"support@datasquirel.com"}>`,E.sender=a||"support@datasquirel.com",E.to=e,E.subject="One Time Login Code",E.html=l.replace(/{{code}}/,g);let A=await y.sendMail(E);if(!A?.accepted)throw Error("Mail not Sent!");let D=`UPDATE ${r}.users SET ${t} = ? WHERE email = ?`,h=[g+`-${S}`,e];await (0,c.A)({queryString:D,queryValuesArray:h,database:r,useLocal:u});let v={success:!0,code:g,email:e,createdAt:S,msg:"Success"};if(m){let e=(0,p.A)().oneTimeCodeName,r=(0,_.A)({data:JSON.stringify(v)});if(!r)throw Error("apiSendEmailCode Error: Failed to encrypt payload");let t={name:e,value:r,sameSite:"Strict",path:"/",httpOnly:!0,secure:!0},n=function({cookies:e}){let r=[];for(let t=0;t{t.d(r,{A:()=>o});var n=t(29021),s=t.n(n),a=t(95969);let o=({key:e,database:r,table:t,user_id:n,media:o})=>{if(!e||!n)return null;try{let i=process.env.DSQL_API_KEYS_PATH;if(!i)throw Error("process.env.DSQL_API_KEYS_PATH variable not found");let l=(0,a.A)({encryptedString:e}),c=JSON.parse(l||""),u=s().existsSync(`${i}/${c.sign}`);if(String(c.user_id)!==String(n)||!u)return null;if(!c.target_database||o)return c;if(!r&&c.target_database)return null;let d=c.target_database?.split(",").includes(String(r));if(d&&!c.target_table)return c;if(d&&!t&&c.target_table)return null;if(c.target_table?.split(",").includes(String(t)))return c;return null}catch(e){return console.log(`api-cred ERROR: ${e.message}`),{error:`api-cred ERROR: ${e.message}`}}}},89159:(e,r,t)=>{t.d(r,{A:()=>n});function n(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",n=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",s=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",a=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),o=r;e?.userId&&(o+=`user_${e.userId}_`),a&&(o+=`${a}_`),o+=t;let i=r;e?.userId&&(i+=`user_${e.userId}_`),a&&(i+=`${a}_`),i+=n;let l=r;return e?.userId&&(l+=`user_${e.userId}_`),a&&(l+=`${a}_`),{keyCookieName:o,csrfCookieName:i,oneTimeCodeName:l+=s}}},43775:(e,r,t)=>{t.d(r,{A:()=>a});var n=t(95969);let s=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/;async function a({unparsedResults:e,tableSchema:r}){let t=[];try{for(let a=0;a",r.message),e}}},67619:(e,r,t)=>{t.d(r,{A:()=>a});var n=t(29021),s=t.n(n);async function a({user:e,message:r,component:t,noMail:n,req:a}){let o=new Date,i=(()=>{if(!a)return null;try{let e=a.headers["x-forwarded-for"],r=a.headers["x-real-ip"],t=a.headers["cf-connecting-ip"],n=Array.isArray(e)?e[0]:e?.split(",")[0],s=t||n||r||a.socket.remoteAddress;if(!s)return null;return String(s)}catch(e){return null}})();try{let n=`🚀 SERVER ERROR =========================== Error Message: ${r} Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(n+=` User Id: ${e?.id} @@ -13,4 +13,4 @@ Date: ${o.toDateString()} -${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},30944:(e,r,t)=>{t.d(r,{A:()=>l});var n=t(43775),s=t(67619),a=t(48786),o=t(37275),i=t(7971);async function l({queryString:e,queryValuesArray:r,database:t,tableSchema:l,useLocal:c}){let u;let d=!!c||!!t?.match(/^datasquirel$/),p=c?i.A:d?a.A:o.default;try{u=e&&r&&Array.isArray(r)&&r[0]?d?await p(e,r):await p({paradigm:"Full Access",queryString:e,queryValues:r}):d?await p(e):await p({paradigm:"Full Access",queryString:e})}catch(e){console.log(`varDatabaseDbHandler Error: ${e.message}`),(0,s.default)({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(u&&l)try{let e=u;return await (0,n.A)({unparsedResults:e,tableSchema:l})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",t,e),(0,s.default)({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(u)return u;else return null}},95969:(e,r,t)=>{t.d(r,{A:()=>a});var n=t(55511),s=t(79428);function a({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let a=r||process.env.DSQL_ENCRYPTION_PASSWORD,o=t||process.env.DSQL_ENCRYPTION_SALT,i=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!a?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!o?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let l=(0,n.scryptSync)(a,o,i),c=s.Buffer.alloc(16,0),u=(0,n.createDecipheriv)("aes-192-cbc",l,c);try{let r=u.update(e,"hex","utf8");return r+=u.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},68829:(e,r,t)=>{t.r(r),t.d(r,{default:()=>a});var n=t(55511),s=t(79428);function a({data:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encryption string is invalid"),e;let a=r||process.env.DSQL_ENCRYPTION_PASSWORD,o=t||process.env.DSQL_ENCRYPTION_SALT,i=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!a?.match(/.{8,}/))return console.log("Encryption key is invalid"),e;if(!o?.match(/.{8,}/))return console.log("Encryption salt is invalid"),e;let l=(0,n.scryptSync)(a,o,i),c=s.Buffer.alloc(16,0),u=(0,n.createCipheriv)("aes-192-cbc",l,c);try{let r=u.update(e,"utf8","hex");return r+=u.final("hex")}catch(r){return console.log("Error in encrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>n});async function n(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},37275:(e,r,t)=>{async function n(e,r,t){try{if("string"==typeof r){let n=await e.query(s(r),t);return JSON.parse(JSON.stringify(n))}if("object"!=typeof r)return null;{let t=[];for(let n=0;na})},7971:(e,r,t)=>{t.d(r,{A:()=>i});var n=t(9973),s=t.n(n),a=t(29021),o=t.n(a);async function i(...e){let r=s()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!o().existsSync(r)){console.log(`${r} does not exist`);return}return{ca:o().readFileSync(`${e}/ca-cert.pem`),rejectUnauthorized:!1}}()},onConnect:()=>{console.log("Connection Successful!")},onConnectError:e=>{console.log("Connection Error",e.message)},onError:e=>{console.log("Client Error",e.message)}});console.log("Querying ...");try{let t=await r.query(...e);return await r.end(),JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e.message),{success:!1,error:e.message}}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../../../webpack-api-runtime.js");r.C(e);var t=r(r.s=78794);module.exports=t})(); \ No newline at end of file +${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},30944:(e,r,t)=>{t.d(r,{A:()=>l});var n=t(43775),s=t(67619),a=t(48786),o=t(37275),i=t(7971);async function l({queryString:e,queryValuesArray:r,database:t,tableSchema:l,useLocal:c}){let u;let d=!!c||!!t?.match(/^datasquirel$/),p=c?i.A:d?a.A:o.A;try{u=e&&r&&Array.isArray(r)&&r[0]?d?await p(e,r):await p({paradigm:"Full Access",queryString:e,queryValues:r}):d?await p(e):await p({paradigm:"Full Access",queryString:e})}catch(e){console.log(`varDatabaseDbHandler Error: ${e.message}`),(0,s.A)({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(u&&l)try{let e=u;return await (0,n.A)({unparsedResults:e,tableSchema:l})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",t,e),(0,s.A)({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(u)return u;else return null}},95969:(e,r,t)=>{t.d(r,{A:()=>a});var n=t(55511),s=t(79428);function a({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let a=r||process.env.DSQL_ENCRYPTION_PASSWORD,o=t||process.env.DSQL_ENCRYPTION_SALT,i=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!a?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!o?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let l=(0,n.scryptSync)(a,o,i),c=s.Buffer.alloc(16,0),u=(0,n.createDecipheriv)("aes-192-cbc",l,c);try{let r=u.update(e,"hex","utf8");return r+=u.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},68829:(e,r,t)=>{t.d(r,{A:()=>a});var n=t(55511),s=t(79428);function a({data:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encryption string is invalid"),e;let a=r||process.env.DSQL_ENCRYPTION_PASSWORD,o=t||process.env.DSQL_ENCRYPTION_SALT,i=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!a?.match(/.{8,}/))return console.log("Encryption key is invalid"),e;if(!o?.match(/.{8,}/))return console.log("Encryption salt is invalid"),e;let l=(0,n.scryptSync)(a,o,i),c=s.Buffer.alloc(16,0),u=(0,n.createCipheriv)("aes-192-cbc",l,c);try{let r=u.update(e,"utf8","hex");return r+=u.final("hex")}catch(r){return console.log("Error in encrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>n});async function n(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},37275:(e,r,t)=>{async function n(e,r,t){try{if("string"==typeof r){let n=await e.query(s(r),t);return JSON.parse(JSON.stringify(n))}if("object"!=typeof r)return null;{let t=[];for(let n=0;na})},7971:(e,r,t)=>{t.d(r,{A:()=>i});var n=t(9973),s=t.n(n),a=t(29021),o=t.n(a);async function i(...e){let r=s()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!o().existsSync(r)){console.log(`${r} does not exist`);return}return{ca:o().readFileSync(`${e}/ca-cert.pem`),rejectUnauthorized:!1}}()},onConnect:()=>{console.log("Connection Successful!")},onConnectError:e=>{console.log("Connection Error",e.message)},onError:e=>{console.log("Client Error",e.message)}});console.log("Querying ...");try{let t=await r.query(...e);return await r.end(),JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e.message),{success:!1,error:e.message}}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../../../webpack-api-runtime.js");r.C(e);var t=r(r.s=78794);module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/user/[user_id]/update-user.js b/dsql-app/.local_dist/server/pages/api/user/[user_id]/update-user.js index 61686ec..d6467c4 100644 --- a/dsql-app/.local_dist/server/pages/api/user/[user_id]/update-user.js +++ b/dsql-app/.local_dist/server/pages/api/user/[user_id]/update-user.js @@ -1,4 +1,4 @@ -"use strict";(()=>{var e={};e.id=8288,e.ids=[8288],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},72583:e=>{e.exports=require("sanitize-html")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},18757:(e,r,t)=>{t.r(r),t.d(r,{config:()=>_,default:()=>y,routeModule:()=>S});var n={};t.r(n),t.d(n,{default:()=>m});var a=t(89947),s=t(2706),i=t(96762),l=t(67619),o=t(56081),u=t(30802),c=t(68829),d=t(83919),p=t(30944);async function f({payload:e,dbFullName:r,updatedUserId:t,useLocal:n,dbSchema:a}){let s=`SELECT * FROM ${r}.users WHERE id = ?`,i=await (0,p.A)({queryString:s,queryValuesArray:[t],database:r,useLocal:n});if(!i?.[0])return{success:!1,msg:"User not found"};let l=(()=>{let r=Object.keys(e),t=(()=>{try{return a?.tables?.find(e=>"users"==e.tableName)}catch(e){return}})(),n={};return r.forEach(r=>{let a=t?.fields?.find(e=>e.fieldName==r);if(r?.match(/^date_|^id$|^uuid$/))return;let s=e[r];a?.encrypted&&(s=(0,c.default)({data:s})),n[r]=s}),n.password&&"string"==typeof n.password&&(n.password=(0,d.A)({password:n.password})),n})();return{success:!0,payload:await (0,u.A)({dbContext:"Dsql User",paradigm:"Full Access",dbFullName:r,tableName:"users",identifierColumnName:"id",identifierValue:t,data:l,useLocal:n})}}var g=t(4820);async function m(e,r){if("POST"!==e.method)return r.json({success:!1,payload:null,msg:"Failed!"});try{let t=e.headers.authorization,{payload:n,database:a,updatedUserId:s}=e.body,i=(0,o.A)({key:t,database:a,user_id:String(e.query.user_id)});if(!i?.user_id)throw Error("Api Credentials invalid!");if(!i.full_access||!i.sign)return r.json({success:!1,msg:"Unauthorized"});let l=`datasquirel_user_${i.user_id}_${a}`,u=(0,g.A)({userId:i.user_id}),c=u?.find(e=>e.dbFullName===l),d=await f({dbFullName:l,payload:n,updatedUserId:s,dbSchema:c});r.json(d)}catch(t){(0,l.default)({component:"/api/user/update-user/main-catch-error",message:t.message,user:{},req:e}),r.json({success:!1,msg:"Wrong Credentials"})}}let y=(0,i.M)(n,"default"),_=(0,i.M)(n,"config"),S=new a.PagesAPIRouteModule({definition:{kind:s.A.PAGES_API,page:"/api/user/[user_id]/update-user",pathname:"/api/user/[user_id]/update-user",bundlePath:"",filename:""},userland:n})},56081:(e,r,t)=>{t.d(r,{A:()=>i});var n=t(29021),a=t.n(n),s=t(95969);let i=({key:e,database:r,table:t,user_id:n,media:i})=>{if(!e||!n)return null;try{let l=process.env.DSQL_API_KEYS_PATH;if(!l)throw Error("process.env.DSQL_API_KEYS_PATH variable not found");let o=(0,s.A)({encryptedString:e}),u=JSON.parse(o||""),c=a().existsSync(`${l}/${u.sign}`);if(String(u.user_id)!==String(n)||!c)return null;if(!u.target_database||i)return u;if(!r&&u.target_database)return null;let d=u.target_database?.split(",").includes(String(r));if(d&&!u.target_table)return u;if(d&&!t&&u.target_table)return null;if(u.target_table?.split(",").includes(String(t)))return u;return null}catch(e){return console.log(`api-cred ERROR: ${e.message}`),{error:`api-cred ERROR: ${e.message}`}}}},30802:(e,r,t)=>{t.d(r,{A:()=>c});var n=t(72583),a=t.n(n),s=t(92652),i=t(48786),l=t(37275),o=t(68829),u=t(7971);async function c({dbContext:e,paradigm:r,dbFullName:t,tableName:n,data:c,tableSchema:d,identifierColumnName:p,identifierValue:f,encryptionKey:g,encryptionSalt:m,useLocal:y}){if(!c||!Object.keys(c).length)return null;let _=!!y||!e?.match(/dsql.user/i)&&(!t||!!t.match(/^datasquirel$/)),S=y?u.A:_?i.A:l.default,h=Object.keys(c),E=[],A=[];for(let e=0;ee.fieldName===r):null,i=n&&n[0]?n[0]:null;if(null==t||void 0==t)continue;let l=/<[^>]+>/g;(i?.richText||String(t).match(l))&&(t=a()(t,s.A)),i?.encrypted&&(t=(0,o.default)({data:t,encryptionKey:g,encryptionSalt:m})),"object"==typeof t&&(t=JSON.stringify(t)),i?.pattern&&!new RegExp(i.pattern,i.patternFlags||"").test(t)&&(console.log("DSQL: Pattern not matched =>",t),t=""),"string"==typeof t&&t.match(/^null$/i)&&(t={toSqlString:function(){return"NULL"}}),"string"!=typeof t||t.match(/./i)||(t={toSqlString:function(){return"NULL"}}),E.push(`\`${r}\`=?`),"number"==typeof t?A.push(String(t)):A.push(t)}catch(e){console.log("DSQL: Error in parsing data keys in update function =>",e.message);continue}E.push(`date_updated='${Date()}'`),E.push(`date_updated_code='${Date.now()}'`);let D=`UPDATE \`${t}\`.\`${n}\` SET ${E.join(",")} WHERE \`${p}\`=?`;return A.push(f),_?await S(D,A):await S({paradigm:r,queryString:D,queryValues:A})}},4820:(e,r,t)=>{t.d(r,{A:()=>o});var n=t(67619),a=t(29021),s=t.n(a),i=t(33873),l=t.n(i);function o({userId:e}){try{let r=l().resolve(process.cwd(),`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${e}/main.json`);return JSON.parse(s().readFileSync(r,"utf-8"))}catch(e){return(0,n.default)({component:"grabUserSchemaData",message:e.message}),null}}},92652:(e,r,t)=>{t.d(r,{A:()=>n});let n={allowedTags:["b","i","em","strong","a","p","span","ul","ol","li","h1","h2","h3","h4","h5","h6","img","div","button","pre","code","br"],allowedAttributes:{a:["href"],img:["src","alt","width","height","class","style"],"*":["style","class"]}}},43775:(e,r,t)=>{t.d(r,{A:()=>s});var n=t(95969);let a=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/;async function s({unparsedResults:e,tableSchema:r}){let t=[];try{for(let s=0;s",r.message),e}}},67619:(e,r,t)=>{t.r(r),t.d(r,{default:()=>s});var n=t(29021),a=t.n(n);async function s({user:e,message:r,component:t,noMail:n,req:s}){let i=new Date,l=(()=>{if(!s)return null;try{let e=s.headers["x-forwarded-for"],r=s.headers["x-real-ip"],t=s.headers["cf-connecting-ip"],n=Array.isArray(e)?e[0]:e?.split(",")[0],a=t||n||r||s.socket.remoteAddress;if(!a)return null;return String(a)}catch(e){return null}})();try{let n=`🚀 SERVER ERROR =========================== +"use strict";(()=>{var e={};e.id=8288,e.ids=[8288],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},72583:e=>{e.exports=require("sanitize-html")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},18757:(e,r,t)=>{t.r(r),t.d(r,{config:()=>_,default:()=>y,routeModule:()=>S});var n={};t.r(n),t.d(n,{default:()=>m});var a=t(89947),s=t(2706),i=t(96762),l=t(67619),o=t(56081),c=t(30802),u=t(68829),d=t(83919),p=t(30944);async function f({payload:e,dbFullName:r,updatedUserId:t,useLocal:n,dbSchema:a}){let s=`SELECT * FROM ${r}.users WHERE id = ?`,i=await (0,p.A)({queryString:s,queryValuesArray:[t],database:r,useLocal:n});if(!i?.[0])return{success:!1,msg:"User not found"};let l=(()=>{let r=Object.keys(e),t=(()=>{try{return a?.tables?.find(e=>"users"==e.tableName)}catch(e){return}})(),n={};return r.forEach(r=>{let a=t?.fields?.find(e=>e.fieldName==r);if(r?.match(/^date_|^id$|^uuid$/))return;let s=e[r];a?.encrypted&&(s=(0,u.A)({data:s})),n[r]=s}),n.password&&"string"==typeof n.password&&(n.password=(0,d.A)({password:n.password})),n})();return{success:!0,payload:await (0,c.A)({dbContext:"Dsql User",paradigm:"Full Access",dbFullName:r,tableName:"users",identifierColumnName:"id",identifierValue:t,data:l,useLocal:n})}}var g=t(4820);async function m(e,r){if("POST"!==e.method)return r.json({success:!1,payload:null,msg:"Failed!"});try{let t=e.headers.authorization,{payload:n,database:a,updatedUserId:s}=e.body,i=(0,o.A)({key:t,database:a,user_id:String(e.query.user_id)});if(!i?.user_id)throw Error("Api Credentials invalid!");if(!i.full_access||!i.sign)return r.json({success:!1,msg:"Unauthorized"});let l=`datasquirel_user_${i.user_id}_${a}`,c=(0,g.A)({userId:i.user_id}),u=c?.find(e=>e.dbFullName===l),d=await f({dbFullName:l,payload:n,updatedUserId:s,dbSchema:u});r.json(d)}catch(t){(0,l.A)({component:"/api/user/update-user/main-catch-error",message:t.message,user:{},req:e}),r.json({success:!1,msg:"Wrong Credentials"})}}let y=(0,i.M)(n,"default"),_=(0,i.M)(n,"config"),S=new a.PagesAPIRouteModule({definition:{kind:s.A.PAGES_API,page:"/api/user/[user_id]/update-user",pathname:"/api/user/[user_id]/update-user",bundlePath:"",filename:""},userland:n})},56081:(e,r,t)=>{t.d(r,{A:()=>i});var n=t(29021),a=t.n(n),s=t(95969);let i=({key:e,database:r,table:t,user_id:n,media:i})=>{if(!e||!n)return null;try{let l=process.env.DSQL_API_KEYS_PATH;if(!l)throw Error("process.env.DSQL_API_KEYS_PATH variable not found");let o=(0,s.A)({encryptedString:e}),c=JSON.parse(o||""),u=a().existsSync(`${l}/${c.sign}`);if(String(c.user_id)!==String(n)||!u)return null;if(!c.target_database||i)return c;if(!r&&c.target_database)return null;let d=c.target_database?.split(",").includes(String(r));if(d&&!c.target_table)return c;if(d&&!t&&c.target_table)return null;if(c.target_table?.split(",").includes(String(t)))return c;return null}catch(e){return console.log(`api-cred ERROR: ${e.message}`),{error:`api-cred ERROR: ${e.message}`}}}},30802:(e,r,t)=>{t.d(r,{A:()=>u});var n=t(72583),a=t.n(n),s=t(92652),i=t(48786),l=t(37275),o=t(68829),c=t(7971);async function u({dbContext:e,paradigm:r,dbFullName:t,tableName:n,data:u,tableSchema:d,identifierColumnName:p,identifierValue:f,encryptionKey:g,encryptionSalt:m,useLocal:y}){if(!u||!Object.keys(u).length)return null;let _=!!y||!e?.match(/dsql.user/i)&&(!t||!!t.match(/^datasquirel$/)),S=y?c.A:_?i.A:l.A,h=Object.keys(u),A=[],E=[];for(let e=0;ee.fieldName===r):null,i=n&&n[0]?n[0]:null;if(null==t||void 0==t)continue;let l=/<[^>]+>/g;(i?.richText||String(t).match(l))&&(t=a()(t,s.A)),i?.encrypted&&(t=(0,o.A)({data:t,encryptionKey:g,encryptionSalt:m})),"object"==typeof t&&(t=JSON.stringify(t)),i?.pattern&&!new RegExp(i.pattern,i.patternFlags||"").test(t)&&(console.log("DSQL: Pattern not matched =>",t),t=""),"string"==typeof t&&t.match(/^null$/i)&&(t={toSqlString:function(){return"NULL"}}),"string"!=typeof t||t.match(/./i)||(t={toSqlString:function(){return"NULL"}}),A.push(`\`${r}\`=?`),"number"==typeof t?E.push(String(t)):E.push(t)}catch(e){console.log("DSQL: Error in parsing data keys in update function =>",e.message);continue}A.push(`date_updated='${Date()}'`),A.push(`date_updated_code='${Date.now()}'`);let D=`UPDATE \`${t}\`.\`${n}\` SET ${A.join(",")} WHERE \`${p}\`=?`;return E.push(f),_?await S(D,E):await S({paradigm:r,queryString:D,queryValues:E})}},4820:(e,r,t)=>{t.d(r,{A:()=>o});var n=t(67619),a=t(29021),s=t.n(a),i=t(33873),l=t.n(i);function o({userId:e}){try{let r=l().resolve(process.cwd(),`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${e}/main.json`);return JSON.parse(s().readFileSync(r,"utf-8"))}catch(e){return(0,n.A)({component:"grabUserSchemaData",message:e.message}),null}}},92652:(e,r,t)=>{t.d(r,{A:()=>n});let n={allowedTags:["b","i","em","strong","a","p","span","ul","ol","li","h1","h2","h3","h4","h5","h6","img","div","button","pre","code","br"],allowedAttributes:{a:["href"],img:["src","alt","width","height","class","style"],"*":["style","class"]}}},43775:(e,r,t)=>{t.d(r,{A:()=>s});var n=t(95969);let a=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/;async function s({unparsedResults:e,tableSchema:r}){let t=[];try{for(let s=0;s",r.message),e}}},67619:(e,r,t)=>{t.d(r,{A:()=>s});var n=t(29021),a=t.n(n);async function s({user:e,message:r,component:t,noMail:n,req:s}){let i=new Date,l=(()=>{if(!s)return null;try{let e=s.headers["x-forwarded-for"],r=s.headers["x-real-ip"],t=s.headers["cf-connecting-ip"],n=Array.isArray(e)?e[0]:e?.split(",")[0],a=t||n||r||s.socket.remoteAddress;if(!a)return null;return String(a)}catch(e){return null}})();try{let n=`🚀 SERVER ERROR =========================== Error Message: ${r} Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(n+=` User Id: ${e?.id} @@ -13,4 +13,4 @@ Date: ${i.toDateString()} -${o}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},30944:(e,r,t)=>{t.d(r,{A:()=>o});var n=t(43775),a=t(67619),s=t(48786),i=t(37275),l=t(7971);async function o({queryString:e,queryValuesArray:r,database:t,tableSchema:o,useLocal:u}){let c;let d=!!u||!!t?.match(/^datasquirel$/),p=u?l.A:d?s.A:i.default;try{c=e&&r&&Array.isArray(r)&&r[0]?d?await p(e,r):await p({paradigm:"Full Access",queryString:e,queryValues:r}):d?await p(e):await p({paradigm:"Full Access",queryString:e})}catch(e){console.log(`varDatabaseDbHandler Error: ${e.message}`),(0,a.default)({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(c&&o)try{let e=c;return await (0,n.A)({unparsedResults:e,tableSchema:o})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",t,e),(0,a.default)({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(c)return c;else return null}},95969:(e,r,t)=>{t.d(r,{A:()=>s});var n=t(55511),a=t(79428);function s({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let s=r||process.env.DSQL_ENCRYPTION_PASSWORD,i=t||process.env.DSQL_ENCRYPTION_SALT,l=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!s?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let o=(0,n.scryptSync)(s,i,l),u=a.Buffer.alloc(16,0),c=(0,n.createDecipheriv)("aes-192-cbc",o,u);try{let r=c.update(e,"hex","utf8");return r+=c.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},68829:(e,r,t)=>{t.r(r),t.d(r,{default:()=>s});var n=t(55511),a=t(79428);function s({data:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encryption string is invalid"),e;let s=r||process.env.DSQL_ENCRYPTION_PASSWORD,i=t||process.env.DSQL_ENCRYPTION_SALT,l=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!s?.match(/.{8,}/))return console.log("Encryption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Encryption salt is invalid"),e;let o=(0,n.scryptSync)(s,i,l),u=a.Buffer.alloc(16,0),c=(0,n.createCipheriv)("aes-192-cbc",o,u);try{let r=c.update(e,"utf8","hex");return r+=c.final("hex")}catch(r){return console.log("Error in encrypting =>",r.message),e}}},83919:(e,r,t)=>{t.d(r,{A:()=>a});var n=t(55511);function a({password:e,encryptionKey:r}){let t=r||process.env.DSQL_ENCRYPTION_PASSWORD;if(!t?.match(/.{8,}/))throw Error("Encryption key is invalid");let a=(0,n.createHmac)("sha512",t);return a.update(e),a.digest("base64")}},48786:(e,r,t)=>{t.d(r,{A:()=>n});async function n(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},37275:(e,r,t)=>{async function n(e,r,t){try{if("string"==typeof r){let n=await e.query(a(r),t);return JSON.parse(JSON.stringify(n))}if("object"!=typeof r)return null;{let t=[];for(let n=0;ns})},7971:(e,r,t)=>{t.d(r,{A:()=>l});var n=t(9973),a=t.n(n),s=t(29021),i=t.n(s);async function l(...e){let r=a()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!i().existsSync(r)){console.log(`${r} does not exist`);return}return{ca:i().readFileSync(`${e}/ca-cert.pem`),rejectUnauthorized:!1}}()},onConnect:()=>{console.log("Connection Successful!")},onConnectError:e=>{console.log("Connection Error",e.message)},onError:e=>{console.log("Client Error",e.message)}});console.log("Querying ...");try{let t=await r.query(...e);return await r.end(),JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e.message),{success:!1,error:e.message}}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../../../webpack-api-runtime.js");r.C(e);var t=r(r.s=18757);module.exports=t})(); \ No newline at end of file +${o}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},30944:(e,r,t)=>{t.d(r,{A:()=>o});var n=t(43775),a=t(67619),s=t(48786),i=t(37275),l=t(7971);async function o({queryString:e,queryValuesArray:r,database:t,tableSchema:o,useLocal:c}){let u;let d=!!c||!!t?.match(/^datasquirel$/),p=c?l.A:d?s.A:i.A;try{u=e&&r&&Array.isArray(r)&&r[0]?d?await p(e,r):await p({paradigm:"Full Access",queryString:e,queryValues:r}):d?await p(e):await p({paradigm:"Full Access",queryString:e})}catch(e){console.log(`varDatabaseDbHandler Error: ${e.message}`),(0,a.A)({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(u&&o)try{let e=u;return await (0,n.A)({unparsedResults:e,tableSchema:o})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",t,e),(0,a.A)({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(u)return u;else return null}},95969:(e,r,t)=>{t.d(r,{A:()=>s});var n=t(55511),a=t(79428);function s({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let s=r||process.env.DSQL_ENCRYPTION_PASSWORD,i=t||process.env.DSQL_ENCRYPTION_SALT,l=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!s?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let o=(0,n.scryptSync)(s,i,l),c=a.Buffer.alloc(16,0),u=(0,n.createDecipheriv)("aes-192-cbc",o,c);try{let r=u.update(e,"hex","utf8");return r+=u.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},68829:(e,r,t)=>{t.d(r,{A:()=>s});var n=t(55511),a=t(79428);function s({data:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encryption string is invalid"),e;let s=r||process.env.DSQL_ENCRYPTION_PASSWORD,i=t||process.env.DSQL_ENCRYPTION_SALT,l=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!s?.match(/.{8,}/))return console.log("Encryption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Encryption salt is invalid"),e;let o=(0,n.scryptSync)(s,i,l),c=a.Buffer.alloc(16,0),u=(0,n.createCipheriv)("aes-192-cbc",o,c);try{let r=u.update(e,"utf8","hex");return r+=u.final("hex")}catch(r){return console.log("Error in encrypting =>",r.message),e}}},83919:(e,r,t)=>{t.d(r,{A:()=>a});var n=t(55511);function a({password:e,encryptionKey:r}){let t=r||process.env.DSQL_ENCRYPTION_PASSWORD;if(!t?.match(/.{8,}/))throw Error("Encryption key is invalid");let a=(0,n.createHmac)("sha512",t);return a.update(e),a.digest("base64")}},48786:(e,r,t)=>{t.d(r,{A:()=>n});async function n(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},37275:(e,r,t)=>{async function n(e,r,t){try{if("string"==typeof r){let n=await e.query(a(r),t);return JSON.parse(JSON.stringify(n))}if("object"!=typeof r)return null;{let t=[];for(let n=0;ns})},7971:(e,r,t)=>{t.d(r,{A:()=>l});var n=t(9973),a=t.n(n),s=t(29021),i=t.n(s);async function l(...e){let r=a()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!i().existsSync(r)){console.log(`${r} does not exist`);return}return{ca:i().readFileSync(`${e}/ca-cert.pem`),rejectUnauthorized:!1}}()},onConnect:()=>{console.log("Connection Successful!")},onConnectError:e=>{console.log("Connection Error",e.message)},onError:e=>{console.log("Client Error",e.message)}});console.log("Querying ...");try{let t=await r.query(...e);return await r.end(),JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e.message),{success:!1,error:e.message}}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../../../webpack-api-runtime.js");r.C(e);var t=r(r.s=18757);module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/webhooks/github-push.js b/dsql-app/.local_dist/server/pages/api/webhooks/github-push.js index 854d63d..088e476 100644 --- a/dsql-app/.local_dist/server/pages/api/webhooks/github-push.js +++ b/dsql-app/.local_dist/server/pages/api/webhooks/github-push.js @@ -1 +1 @@ -"use strict";(()=>{var e={};e.id=5122,e.ids=[5122],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")},96762:(e,t)=>{Object.defineProperty(t,"M",{enumerable:!0,get:function(){return function e(t,o){return o in t?t[o]:"then"in t&&"function"==typeof t.then?t.then(t=>e(t,o)):"function"==typeof t&&"default"===o?t:void 0}}})},61660:(e,t,o)=>{o.r(t),o.d(t,{config:()=>h,default:()=>g,routeModule:()=>P});var r={};o.r(r),o.d(r,{default:()=>f});var n=o(89947),s=o(2706),i=o(96762),u=o(33873),a=o.n(u);o(81630);let l=o(29021),{createHmac:d}=o(55511),c=process.env.DSQL_GITHUB_WEBHOOK_SECRET||"",p=e=>{console.log(e.headers);let t=d("sha256",c).update(JSON.stringify(e.body)).digest("hex");return console.log(t),`sha256=${t}`===e.headers["x-hub-signature-256"]};async function f(e,t){if("POST"!==e.method)return t.json({msg:"Failed!"});if(!p(e)){console.log("Authorization failed"),t.status(401).send("Unauthorized");return}let o=e.body;try{console.log("Request Recieved");let e=o.ref;if(!e?.match(/main/)){console.log("Not Main Branch"),t.json({success:!0});return}l.writeFileSync(a().resolve(process.cwd(),"./.dist","REDEPLOY_FLAG"),String(Date.now()),"utf-8"),console.log("Deploy Flag Triggered. Now Redeploying ..."),t.json({success:!0})}catch(e){console.log(e),t.json({msg:"Not Handled Yet"})}}let g=(0,i.M)(r,"default"),h=(0,i.M)(r,"config"),P=new n.PagesAPIRouteModule({definition:{kind:s.A.PAGES_API,page:"/api/webhooks/github-push",pathname:"/api/webhooks/github-push",bundlePath:"",filename:""},userland:r})},2706:(e,t)=>{Object.defineProperty(t,"A",{enumerable:!0,get:function(){return o}});var o=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,t,o)=>{e.exports=o(75600)}};var t=require("../../../webpack-api-runtime.js");t.C(e);var o=t(t.s=61660);module.exports=o})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=5122,e.ids=[5122],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},96762:(e,t)=>{Object.defineProperty(t,"M",{enumerable:!0,get:function(){return function e(t,o){return o in t?t[o]:"then"in t&&"function"==typeof t.then?t.then(t=>e(t,o)):"function"==typeof t&&"default"===o?t:void 0}}})},61660:(e,t,o)=>{o.r(t),o.d(t,{config:()=>h,default:()=>P,routeModule:()=>A});var n={};o.r(n),o.d(n,{default:()=>g});var r=o(89947),s=o(2706),i=o(96762),u=o(33873),a=o.n(u),l=o(29021),d=o.n(l),c=o(55511);let p=process.env.DSQL_GITHUB_WEBHOOK_SECRET||"",f=e=>{console.log(e.headers);let t=(0,c.createHmac)("sha256",p).update(JSON.stringify(e.body)).digest("hex");return console.log(t),`sha256=${t}`===e.headers["x-hub-signature-256"]};async function g(e,t){if("POST"!==e.method)return t.json({msg:"Failed!"});if(!f(e)){console.log("Authorization failed"),t.status(401).send("Unauthorized");return}let o=e.body;try{console.log("Request Recieved");let e=o.ref;if(!e?.match(/main/)){console.log("Not Main Branch"),t.json({success:!0});return}d().writeFileSync(a().resolve(process.cwd(),"./.dist","REDEPLOY_FLAG"),String(Date.now()),"utf-8"),console.log("Deploy Flag Triggered. Now Redeploying ..."),t.json({success:!0})}catch(e){console.log(e),t.json({msg:"Not Handled Yet"})}}let P=(0,i.M)(n,"default"),h=(0,i.M)(n,"config"),A=new r.PagesAPIRouteModule({definition:{kind:s.A.PAGES_API,page:"/api/webhooks/github-push",pathname:"/api/webhooks/github-push",bundlePath:"",filename:""},userland:n})},2706:(e,t)=>{Object.defineProperty(t,"A",{enumerable:!0,get:function(){return o}});var o=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,t,o)=>{e.exports=o(75600)}};var t=require("../../../webpack-api-runtime.js");t.C(e);var o=t(t.s=61660);module.exports=o})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/blog.html b/dsql-app/.local_dist/server/pages/blog.html index c1c98fa..2148026 100644 --- a/dsql-app/.local_dist/server/pages/blog.html +++ b/dsql-app/.local_dist/server/pages/blog.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/contact.html b/dsql-app/.local_dist/server/pages/contact.html index 315f505..d79445c 100644 --- a/dsql-app/.local_dist/server/pages/contact.html +++ b/dsql-app/.local_dist/server/pages/contact.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/create-account.js b/dsql-app/.local_dist/server/pages/create-account.js index e0bf076..17758ef 100644 --- a/dsql-app/.local_dist/server/pages/create-account.js +++ b/dsql-app/.local_dist/server/pages/create-account.js @@ -1 +1 @@ -"use strict";(()=>{var e={};e.id=8810,e.ids=[3220,8810],e.modules={30671:(e,t)=>{Object.defineProperty(t,"M",{enumerable:!0,get:function(){return function e(t,r){return r in t?t[r]:"then"in t&&"function"==typeof t.then?t.then(t=>e(t,r)):"function"==typeof t&&"default"===r?t:void 0}}})},94212:(e,t,r)=>{r.r(t),r.d(t,{config:()=>q,default:()=>w,getServerSideProps:()=>C,getStaticPaths:()=>O,getStaticProps:()=>N,reportWebVitals:()=>L,routeModule:()=>T,unstable_getServerProps:()=>R,unstable_getServerSideProps:()=>k,unstable_getStaticParams:()=>Q,unstable_getStaticPaths:()=>M,unstable_getStaticProps:()=>I});var s={};r.r(s),r.d(s,{CreateAccountContext:()=>b,default:()=>P,getServerSideProps:()=>D});var n=r(63865),a=r(9455),o=r(30671),i=r(5583),c=r(19796),l=r(8732),u=r(82015),p=r.n(u),d=r(1013),m=r(91258),g=r(57660);function f(){let{query:e,invitingUser:t}=p().useContext(b);return(0,l.jsxs)("section",{className:"flex-col items-center lg:items-center gap-20 p-0",children:[(0,l.jsx)("img",{src:"/images/grid.webp",alt:"Dotted image background",className:"absolute top-0 left-0 w-full h-full object-cover opacity-80 dark:opacity-10 z-0"}),(0,l.jsxs)("div",{className:"w-full lg:w-1/2 max-w-6xl gap-4 flex-col items-center px-4 py-10 bg-white dark:bg-slate-900 relative z-10",children:[t?.first_name&&(0,l.jsxs)("span",{className:"text-xs bg-emerald-100 rounded-full px-4 py-1 mb-4",children:["You have been invited by"," ",(0,l.jsxs)("b",{children:[t.first_name," ",t.last_name," (",t.email,")"]})," ","to manage an account. Please create an account to gain access."]}),(0,l.jsx)("h1",{className:"m-0 text-center text-2xl",children:"Create An Account"}),(0,l.jsx)(g.A,{query:e})]})]})}r(92702),r(77047);var h=r(71934);let x=require("sanitize-html");var _=r.n(x);let y={allowedTags:["b","i","em","strong","a","p","span","ul","ol","li","h1","h2","h3","h4","h5","h6","img","div","button","pre","code","br"],allowedAttributes:{a:["href"],img:["src","alt","width","height","class","style"],"*":["style","class"]}};var S=r(43651),j=r(55511),v=r(79428),E=r(16175);r(46169);var A=r(32572);r(41939);let b=p().createContext({});function P(e){let t="Create Account | Datasquirel",r="Create a FREE account and start storing data.",s=(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("title",{children:t}),(0,l.jsx)("meta",{name:"description",content:r}),(0,l.jsx)(m.A,{pageTitle:t,pageDescription:r,pagePathname:"/"})]}),[n,a]=p().useState(null);return e.query?.invite?(0,l.jsx)(A.A,{}):(0,l.jsx)(d.A,{head:s,children:(0,l.jsx)(b.Provider,{value:{user:n,query:e.query,invitingUser:e.invitingUser},children:(0,l.jsx)("main",{children:(0,l.jsx)(f,{})})})})}async function D({req:e,res:t,query:r}){return{redirect:{destination:"/login",permanent:!1}}}let w=(0,o.M)(s,"default"),N=(0,o.M)(s,"getStaticProps"),O=(0,o.M)(s,"getStaticPaths"),C=(0,o.M)(s,"getServerSideProps"),q=(0,o.M)(s,"config"),L=(0,o.M)(s,"reportWebVitals"),I=(0,o.M)(s,"unstable_getStaticProps"),M=(0,o.M)(s,"unstable_getStaticPaths"),Q=(0,o.M)(s,"unstable_getStaticParams"),R=(0,o.M)(s,"unstable_getServerProps"),k=(0,o.M)(s,"unstable_getServerSideProps"),T=new n.PagesRouteModule({definition:{kind:a.A.PAGES,page:"/create-account",pathname:"/create-account",bundlePath:"",filename:""},components:{App:c.default,Document:i.default},userland:s})},10621:(e,t,r)=>{r.d(t,{A:()=>n});var s=r(8732);function n({message:e}){return(0,s.jsxs)("div",{className:"p-2 bg-orange-50 w-full justify-center rounded text-sm text-orange-700 border border-orange-400 border-solid",children:[(0,s.jsx)("img",{src:"/images/warning.png",alt:"Warning Image Icon",width:22,className:"-my-2"}),(0,s.jsx)("span",{children:e})]})}r(82015)},32572:(e,t,r)=>{r.d(t,{A:()=>a});var s=r(8732);r(82015);var n=r(16757);function a(){return(0,s.jsx)("div",{className:"flex flex-col gap-4 items-center justify-center w-full h-screen p-6 bg-slate-100",children:(0,s.jsxs)("div",{className:"flex flex-col items-center justify-center gap-4 px-6 py-20 bg-white rounded shadow-sm max-w-2xl w-full",children:[(0,s.jsx)("img",{src:"/images/logo-icon-alt-2.webp",alt:"Datasquirel Logo",width:60}),(0,s.jsx)("div",{className:"w-10 h-10 flex flex-col items-center justify-center",children:(0,s.jsx)(n.A,{width:"25px",position:"relative"})})]})})}},91258:(e,t,r)=>{r.d(t,{A:()=>o});var s=r(8732),n=r(82015),a=r.n(n);function o({pageTitle:e,pageDescription:t,pagePathname:r,aceEditor:n}){return(0,s.jsxs)(a().Fragment,{children:[(0,s.jsx)("link",{rel:"canonical",href:"http://localhost:7070"+r}),(0,s.jsx)("meta",{property:"og:url",content:"http://localhost:7070"+r}),(0,s.jsx)("meta",{itemProp:"url",content:"http://localhost:7070"+r}),(0,s.jsx)("meta",{name:"twitter:url",content:"http://localhost:7070"+r}),(0,s.jsx)("meta",{property:"og:title",content:e}),(0,s.jsx)("meta",{property:"og:description",content:t}),(0,s.jsx)("meta",{itemProp:"name",content:e}),(0,s.jsx)("meta",{itemProp:"description",content:t}),(0,s.jsx)("meta",{name:"twitter:title",content:e}),(0,s.jsx)("meta",{name:"twitter:description",content:t}),n&&(0,s.jsxs)(a().Fragment,{children:[(0,s.jsx)("script",{src:"https://cdnjs.cloudflare.com/ajax/libs/ace/1.22.0/ace.min.js",integrity:"sha512-q6CTB0jS+VuJnSct82rVcWlI06LGzNjaG3CWenHWVUncRvc4UQMFkA3a5Ip880xr+lBx38FcHDclOxPdSg+sBw==",crossOrigin:"anonymous",referrerPolicy:"no-referrer"}),(0,s.jsx)("script",{src:"https://cdnjs.cloudflare.com/ajax/libs/ace/1.22.0/ext-language_tools.min.js",integrity:"sha512-6g6cvocV7eT/J8L44lL8gJKqq9onqQeYGgJO0DmrsYFcCfRl6wYkYA/KHS768r4QVTB4JxsCcMQ9gIezxpTCZw==",crossOrigin:"anonymous",referrerPolicy:"no-referrer"})]})]})}},92702:(e,t,r)=>{r.d(t,{A:()=>c});var s=r(71934),n=r(71205),a=r(29021),o=r.n(a),i=r(41939);async function c(e,t,r){try{let{keyCookieName:a,csrfCookieName:c}=(0,i.A)();if(!e.cookies?.[a]?.match(/./))throw Error("Request Cookies not Found!");let l=(0,n.A)({encryptedString:e.cookies[a]});if(!l)throw Error("Couldn't decrypt auth cookie!");let u=JSON.parse(l);if(!u.csrf_k)throw Error("No `csrf_k` present in user Object!");if(r&&!Object.keys(e.headers).find(e=>e.includes(u.csrf_k)))throw Error("Deep Auth Failed. `csrf` key not found in request headers!");let p=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!p)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(r&&!o().existsSync(`${p}/${u.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==u.verification_status&&!r){let e=await (0,s.A)(`SELECT verification_status FROM users WHERE id='${u.id}'`);e&&e[0]&&1==e[0].verification_status&&t.setHeader("Set-Cookie",["user_refresh=1"])}if(u?.date&&Date.now()-u.date>6048e5)throw Error("Key expired!");return u}catch(e){return console.log(`userAuth Error: ${e.message}`),null}}},41939:(e,t,r)=>{r.d(t,{A:()=>s});function s(e){let t=process.env.DSQL_COOKIES_PREFIX||"dsql_",r=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",n=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",a=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),o=t;e?.userId&&(o+=`user_${e.userId}_`),a&&(o+=`${a}_`),o+=r;let i=t;e?.userId&&(i+=`user_${e.userId}_`),a&&(i+=`${a}_`),i+=s;let c=t;return e?.userId&&(c+=`user_${e.userId}_`),a&&(c+=`${a}_`),{keyCookieName:o,csrfCookieName:i,oneTimeCodeName:c+=n}}},71205:(e,t,r)=>{r.d(t,{A:()=>a});var s=r(55511),n=r(79428);function a({encryptedString:e,encryptionKey:t,encryptionSalt:r}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let a=t||process.env.DSQL_ENCRYPTION_PASSWORD,o=r||process.env.DSQL_ENCRYPTION_SALT,i=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!a?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!o?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let c=(0,s.scryptSync)(a,o,i),l=n.Buffer.alloc(16,0),u=(0,s.createDecipheriv)("aes-192-cbc",c,l);try{let t=u.update(e,"hex","utf8");return t+=u.final("utf8")}catch(t){return console.log("Error in decrypting =>",t.message),e}}},71934:(e,t,r)=>{r.d(t,{A:()=>s});async function s(...e){let t=global.DSQL_DB_CONN;try{if(!t)throw Error("No Connection provided to DB_HANDLER function!");let r=await t.query(...e);return JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await t?.end()}}},43651:(e,t,r)=>{async function s(e,t,r){try{if("string"==typeof t){let s=await e.query(n(t),r);return JSON.parse(JSON.stringify(s))}if("object"!=typeof t)return null;{let r=[];for(let s=0;sa})},16175:(e,t,r)=>{r.d(t,{A:()=>i});var s=r(9973),n=r.n(s),a=r(29021),o=r.n(a);async function i(...e){let t=n()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let t=`${e}/ca-cert.pem`;if(!o().existsSync(t)){console.log(`${t} does not exist`);return}return{ca:o().readFileSync(`${e}/ca-cert.pem`),rejectUnauthorized:!1}}()},onConnect:()=>{console.log("Connection Successful!")},onConnectError:e=>{console.log("Connection Error",e.message)},onError:e=>{console.log("Client Error",e.message)}});console.log("Querying ...");try{let r=await t.query(...e);return await t.end(),JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e.message),{success:!1,error:e.message}}}},5583:(e,t,r)=>{r.r(t),r.d(t,{default:()=>a});var s=r(8732);r(82015);var n=r(20883);function a(){return(0,s.jsxs)(n.Html,{lang:"en",children:[(0,s.jsxs)(n.Head,{children:[(0,s.jsx)("meta",{name:"author",content:"Datasquirel"}),(0,s.jsx)("meta",{name:"Copyright",content:`Copyright (c) ${new Date().getFullYear()} Datasquirel`}),"dev_dev".match(/dev/)&&(0,s.jsx)("meta",{name:"robots",content:"noindex,nofollow"}),(0,s.jsx)("link",{rel:"preconnect",href:"https://fonts.googleapis.com/",crossOrigin:"anonymous"}),(0,s.jsx)("link",{rel:"preconnect",href:"https://fonts.gstatic.com",crossOrigin:"anonymous"}),(0,s.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=Poppins"}),(0,s.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=Inter"}),(0,s.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=IBM+Plex+Mono"}),(0,s.jsx)("script",{src:"/scripts/themeSelector.js"}),(0,s.jsx)("meta",{httpEquiv:"Content-Type",content:"text/html; charset=UTF-8"}),(0,s.jsx)("meta",{property:"og:site_name",content:"DATASQUIREL"}),(0,s.jsx)("meta",{property:"og:type",content:"website"}),(0,s.jsx)("meta",{name:"twitter:card",content:"summary"}),(0,s.jsx)("meta",{property:"og:image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,s.jsx)("meta",{itemProp:"image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,s.jsx)("meta",{name:"twitter:image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,s.jsx)("link",{rel:"stylesheet",href:"/styles/prism.css"}),(0,s.jsx)("script",{src:"/scripts/prism.js",async:!0}),(0,s.jsx)("script",{dangerouslySetInnerHTML:{__html:"var DSQL = {}"}})]}),(0,s.jsxs)("body",{children:[(0,s.jsx)(n.Main,{}),(0,s.jsx)(n.NextScript,{})]})]})}},9455:(e,t)=>{Object.defineProperty(t,"A",{enumerable:!0,get:function(){return r}});var r=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},13893:e=>{e.exports=require("@moduletrace/datasquirel/dist/client/fetch")},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{e.exports=require("next/head")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},8732:e=>{e.exports=require("react/jsx-runtime")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")}};var t=require("../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),s=t.X(0,[883,9821,9796,8760],()=>r(94212));module.exports=s})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=8810,e.ids=[3220,8810],e.modules={30671:(e,t)=>{Object.defineProperty(t,"M",{enumerable:!0,get:function(){return function e(t,r){return r in t?t[r]:"then"in t&&"function"==typeof t.then?t.then(t=>e(t,r)):"function"==typeof t&&"default"===r?t:void 0}}})},94212:(e,t,r)=>{r.r(t),r.d(t,{config:()=>C,default:()=>w,getServerSideProps:()=>q,getStaticPaths:()=>O,getStaticProps:()=>N,reportWebVitals:()=>L,routeModule:()=>T,unstable_getServerProps:()=>R,unstable_getServerSideProps:()=>k,unstable_getStaticParams:()=>Q,unstable_getStaticPaths:()=>M,unstable_getStaticProps:()=>I});var s={};r.r(s),r.d(s,{CreateAccountContext:()=>A,default:()=>P,getServerSideProps:()=>D});var n=r(63865),a=r(9455),o=r(30671),i=r(5583),c=r(19796),l=r(8732),u=r(82015),p=r.n(u),d=r(1013),m=r(91258),g=r(57660);function f(){let{query:e,invitingUser:t}=p().useContext(A);return(0,l.jsxs)("section",{className:"flex-col items-center lg:items-center gap-20 p-0",children:[(0,l.jsx)("img",{src:"/images/grid.webp",alt:"Dotted image background",className:"absolute top-0 left-0 w-full h-full object-cover opacity-80 dark:opacity-10 z-0"}),(0,l.jsxs)("div",{className:"w-full lg:w-1/2 max-w-6xl gap-4 flex-col items-center px-4 py-10 bg-white dark:bg-slate-900 relative z-10",children:[t?.first_name&&(0,l.jsxs)("span",{className:"text-xs bg-emerald-100 rounded-full px-4 py-1 mb-4",children:["You have been invited by"," ",(0,l.jsxs)("b",{children:[t.first_name," ",t.last_name," (",t.email,")"]})," ","to manage an account. Please create an account to gain access."]}),(0,l.jsx)("h1",{className:"m-0 text-center text-2xl",children:"Create An Account"}),(0,l.jsx)(g.A,{query:e})]})]})}r(92702),r(77047);var h=r(71934);let x=require("sanitize-html");var _=r.n(x);let y={allowedTags:["b","i","em","strong","a","p","span","ul","ol","li","h1","h2","h3","h4","h5","h6","img","div","button","pre","code","br"],allowedAttributes:{a:["href"],img:["src","alt","width","height","class","style"],"*":["style","class"]}};var S=r(43651),j=r(55511),v=r(79428),E=r(16175);r(46169);var b=r(32572);r(41939);let A=p().createContext({});function P(e){let t="Create Account | Datasquirel",r="Create a FREE account and start storing data.",s=(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("title",{children:t}),(0,l.jsx)("meta",{name:"description",content:r}),(0,l.jsx)(m.A,{pageTitle:t,pageDescription:r,pagePathname:"/"})]}),[n,a]=p().useState(null);return e.query?.invite?(0,l.jsx)(b.A,{}):(0,l.jsx)(d.A,{head:s,children:(0,l.jsx)(A.Provider,{value:{user:n,query:e.query,invitingUser:e.invitingUser},children:(0,l.jsx)("main",{children:(0,l.jsx)(f,{})})})})}async function D({req:e,res:t,query:r}){return{redirect:{destination:"/login",permanent:!1}}}let w=(0,o.M)(s,"default"),N=(0,o.M)(s,"getStaticProps"),O=(0,o.M)(s,"getStaticPaths"),q=(0,o.M)(s,"getServerSideProps"),C=(0,o.M)(s,"config"),L=(0,o.M)(s,"reportWebVitals"),I=(0,o.M)(s,"unstable_getStaticProps"),M=(0,o.M)(s,"unstable_getStaticPaths"),Q=(0,o.M)(s,"unstable_getStaticParams"),R=(0,o.M)(s,"unstable_getServerProps"),k=(0,o.M)(s,"unstable_getServerSideProps"),T=new n.PagesRouteModule({definition:{kind:a.A.PAGES,page:"/create-account",pathname:"/create-account",bundlePath:"",filename:""},components:{App:c.default,Document:i.default},userland:s})},10621:(e,t,r)=>{r.d(t,{A:()=>n});var s=r(8732);function n({message:e}){return(0,s.jsxs)("div",{className:"p-2 bg-orange-50 w-full justify-center rounded text-sm text-orange-700 border border-orange-400 border-solid",children:[(0,s.jsx)("img",{src:"/images/warning.png",alt:"Warning Image Icon",width:22,className:"-my-2"}),(0,s.jsx)("span",{children:e})]})}r(82015)},32572:(e,t,r)=>{r.d(t,{A:()=>a});var s=r(8732);r(82015);var n=r(16757);function a(){return(0,s.jsx)("div",{className:"flex flex-col gap-4 items-center justify-center w-full h-screen p-6 bg-slate-100",children:(0,s.jsxs)("div",{className:"flex flex-col items-center justify-center gap-4 px-6 py-20 bg-white rounded shadow-sm max-w-2xl w-full",children:[(0,s.jsx)("img",{src:"/images/logo-icon-alt-2.webp",alt:"Datasquirel Logo",width:60}),(0,s.jsx)("div",{className:"w-10 h-10 flex flex-col items-center justify-center",children:(0,s.jsx)(n.A,{width:"25px",position:"relative"})})]})})}},91258:(e,t,r)=>{r.d(t,{A:()=>o});var s=r(8732),n=r(82015),a=r.n(n);function o({pageTitle:e,pageDescription:t,pagePathname:r,aceEditor:n}){return(0,s.jsxs)(a().Fragment,{children:[(0,s.jsx)("link",{rel:"canonical",href:"http://localhost:7070"+r}),(0,s.jsx)("meta",{property:"og:url",content:"http://localhost:7070"+r}),(0,s.jsx)("meta",{itemProp:"url",content:"http://localhost:7070"+r}),(0,s.jsx)("meta",{name:"twitter:url",content:"http://localhost:7070"+r}),(0,s.jsx)("meta",{property:"og:title",content:e}),(0,s.jsx)("meta",{property:"og:description",content:t}),(0,s.jsx)("meta",{itemProp:"name",content:e}),(0,s.jsx)("meta",{itemProp:"description",content:t}),(0,s.jsx)("meta",{name:"twitter:title",content:e}),(0,s.jsx)("meta",{name:"twitter:description",content:t}),n&&(0,s.jsxs)(a().Fragment,{children:[(0,s.jsx)("script",{src:"https://cdnjs.cloudflare.com/ajax/libs/ace/1.22.0/ace.min.js",integrity:"sha512-q6CTB0jS+VuJnSct82rVcWlI06LGzNjaG3CWenHWVUncRvc4UQMFkA3a5Ip880xr+lBx38FcHDclOxPdSg+sBw==",crossOrigin:"anonymous",referrerPolicy:"no-referrer"}),(0,s.jsx)("script",{src:"https://cdnjs.cloudflare.com/ajax/libs/ace/1.22.0/ext-language_tools.min.js",integrity:"sha512-6g6cvocV7eT/J8L44lL8gJKqq9onqQeYGgJO0DmrsYFcCfRl6wYkYA/KHS768r4QVTB4JxsCcMQ9gIezxpTCZw==",crossOrigin:"anonymous",referrerPolicy:"no-referrer"})]})]})}},92702:(e,t,r)=>{r.d(t,{A:()=>c});var s=r(71934),n=r(71205),a=r(29021),o=r.n(a),i=r(41939);async function c(e,t,r){try{let{keyCookieName:a,csrfCookieName:c}=(0,i.A)();if(!e.cookies?.[a]?.match(/./))throw Error("Request Cookies not Found!");let l=(0,n.A)({encryptedString:e.cookies[a]});if(!l)throw Error("Couldn't decrypt auth cookie!");let u=JSON.parse(l);if(!u.csrf_k)throw Error("No `csrf_k` present in user Object!");if(r&&!Object.keys(e.headers).find(e=>e.includes(u.csrf_k)))throw console.log("req.headers",e.headers),console.log("userObject",u),Error("Deep Auth Failed. `csrf` key not found in request headers!");let p=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!p)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(r&&!o().existsSync(`${p}/${u.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==u.verification_status&&!r){let e=await (0,s.A)(`SELECT verification_status FROM users WHERE id='${u.id}'`);e&&e[0]&&1==e[0].verification_status&&t.setHeader("Set-Cookie",["user_refresh=1"])}if(u?.date&&Date.now()-u.date>6048e5)throw Error("Key expired!");return u}catch(e){return console.log(`userAuth Error: ${e.message}`),null}}},41939:(e,t,r)=>{r.d(t,{A:()=>s});function s(e){let t=process.env.DSQL_COOKIES_PREFIX||"dsql_",r=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",n=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",a=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),o=t;e?.userId&&(o+=`user_${e.userId}_`),a&&(o+=`${a}_`),o+=r;let i=t;e?.userId&&(i+=`user_${e.userId}_`),a&&(i+=`${a}_`),i+=s;let c=t;return e?.userId&&(c+=`user_${e.userId}_`),a&&(c+=`${a}_`),{keyCookieName:o,csrfCookieName:i,oneTimeCodeName:c+=n}}},71205:(e,t,r)=>{r.d(t,{A:()=>a});var s=r(55511),n=r(79428);function a({encryptedString:e,encryptionKey:t,encryptionSalt:r}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let a=t||process.env.DSQL_ENCRYPTION_PASSWORD,o=r||process.env.DSQL_ENCRYPTION_SALT,i=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!a?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!o?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let c=(0,s.scryptSync)(a,o,i),l=n.Buffer.alloc(16,0),u=(0,s.createDecipheriv)("aes-192-cbc",c,l);try{let t=u.update(e,"hex","utf8");return t+=u.final("utf8")}catch(t){return console.log("Error in decrypting =>",t.message),e}}},71934:(e,t,r)=>{r.d(t,{A:()=>s});async function s(...e){let t=global.DSQL_DB_CONN;try{if(!t)throw Error("No Connection provided to DB_HANDLER function!");let r=await t.query(...e);return JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await t?.end()}}},43651:(e,t,r)=>{async function s(e,t,r){try{if("string"==typeof t){let s=await e.query(n(t),r);return JSON.parse(JSON.stringify(s))}if("object"!=typeof t)return null;{let r=[];for(let s=0;sa})},16175:(e,t,r)=>{r.d(t,{A:()=>i});var s=r(9973),n=r.n(s),a=r(29021),o=r.n(a);async function i(...e){let t=n()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let t=`${e}/ca-cert.pem`;if(!o().existsSync(t)){console.log(`${t} does not exist`);return}return{ca:o().readFileSync(`${e}/ca-cert.pem`),rejectUnauthorized:!1}}()},onConnect:()=>{console.log("Connection Successful!")},onConnectError:e=>{console.log("Connection Error",e.message)},onError:e=>{console.log("Client Error",e.message)}});console.log("Querying ...");try{let r=await t.query(...e);return await t.end(),JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e.message),{success:!1,error:e.message}}}},5583:(e,t,r)=>{r.r(t),r.d(t,{default:()=>a});var s=r(8732);r(82015);var n=r(20883);function a(){return(0,s.jsxs)(n.Html,{lang:"en",children:[(0,s.jsxs)(n.Head,{children:[(0,s.jsx)("meta",{name:"author",content:"Datasquirel"}),(0,s.jsx)("meta",{name:"Copyright",content:`Copyright (c) ${new Date().getFullYear()} Datasquirel`}),"dev_dev".match(/dev/)&&(0,s.jsx)("meta",{name:"robots",content:"noindex,nofollow"}),(0,s.jsx)("link",{rel:"preconnect",href:"https://fonts.googleapis.com/",crossOrigin:"anonymous"}),(0,s.jsx)("link",{rel:"preconnect",href:"https://fonts.gstatic.com",crossOrigin:"anonymous"}),(0,s.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=Poppins"}),(0,s.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=Inter"}),(0,s.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=IBM+Plex+Mono"}),(0,s.jsx)("script",{src:"/scripts/themeSelector.js"}),(0,s.jsx)("meta",{httpEquiv:"Content-Type",content:"text/html; charset=UTF-8"}),(0,s.jsx)("meta",{property:"og:site_name",content:"DATASQUIREL"}),(0,s.jsx)("meta",{property:"og:type",content:"website"}),(0,s.jsx)("meta",{name:"twitter:card",content:"summary"}),(0,s.jsx)("meta",{property:"og:image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,s.jsx)("meta",{itemProp:"image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,s.jsx)("meta",{name:"twitter:image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,s.jsx)("link",{rel:"stylesheet",href:"/styles/prism.css"}),(0,s.jsx)("script",{src:"/scripts/prism.js",async:!0}),(0,s.jsx)("script",{dangerouslySetInnerHTML:{__html:"var DSQL = {}"}})]}),(0,s.jsxs)("body",{children:[(0,s.jsx)(n.Main,{}),(0,s.jsx)(n.NextScript,{})]})]})}},9455:(e,t)=>{Object.defineProperty(t,"A",{enumerable:!0,get:function(){return r}});var r=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},13893:e=>{e.exports=require("@moduletrace/datasquirel/dist/client/fetch")},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{e.exports=require("next/head")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},8732:e=>{e.exports=require("react/jsx-runtime")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")}};var t=require("../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),s=t.X(0,[883,9821,9796,8760],()=>r(94212));module.exports=s})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/email-verification.js b/dsql-app/.local_dist/server/pages/email-verification.js index 6f45d1c..883dc5a 100644 --- a/dsql-app/.local_dist/server/pages/email-verification.js +++ b/dsql-app/.local_dist/server/pages/email-verification.js @@ -1,4 +1,4 @@ -"use strict";(()=>{var e={};e.id=6712,e.ids=[3220,6712],e.modules={30671:(e,t)=>{Object.defineProperty(t,"M",{enumerable:!0,get:function(){return function e(t,r){return r in t?t[r]:"then"in t&&"function"==typeof t.then?t.then(t=>e(t,r)):"function"==typeof t&&"default"===r?t:void 0}}})},70852:(e,t,r)=>{r.r(t),r.d(t,{config:()=>P,default:()=>E,getServerSideProps:()=>A,getStaticPaths:()=>j,getStaticProps:()=>v,reportWebVitals:()=>b,routeModule:()=>I,unstable_getServerProps:()=>D,unstable_getServerSideProps:()=>O,unstable_getStaticParams:()=>w,unstable_getStaticPaths:()=>k,unstable_getStaticProps:()=>N});var s={};r.r(s),r.d(s,{default:()=>_,getServerSideProps:()=>y});var n=r(63865),i=r(9455),a=r(30671),o=r(5583),l=r(19796),c=r(8732),u=r(82015),d=r.n(u),m=r(92702),p=r(16757),f=r(46169),g=r(71205),h=r(1013),S=r(77047),x=r(71934);function _({user:e,verified:t}){let[r,s]=d().useState(!1),[n,i]=d().useState(null);return t?(0,c.jsx)(h.A,{head:(0,c.jsxs)(d().Fragment,{children:[(0,c.jsx)("title",{children:"Verify Email Address"}),(0,c.jsx)("meta",{name:"description",content:"Verify your email address"})]}),user:e,children:(0,c.jsx)("main",{className:"flex items-center justify-center w-full p-8",children:(0,c.jsx)("div",{className:"login-block gap-2",children:(0,c.jsxs)("div",{className:"flex items-center gap-4",children:[(0,c.jsx)("img",{src:"/images/checkmark.svg",alt:"check-mark",width:30}),(0,c.jsx)("span",{className:"text-xl",children:"Email Verification Successfull!"})]})})})}):(0,c.jsx)(d().Fragment,{children:(0,c.jsx)(h.A,{head:(0,c.jsxs)(d().Fragment,{children:[(0,c.jsx)("title",{children:"Verify Email Address"}),(0,c.jsx)("meta",{name:"description",content:"Verify your email address"})]}),user:e,children:(0,c.jsx)("main",{className:"flex flex-col items-center p-8 justify-center w-full",children:(0,c.jsxs)("div",{className:"login-block gap-2 flex-col max-w-lg",children:[n&&(0,c.jsx)("div",{className:n.class+" w-full rounded py-2 px-4 flex justify-center",children:n.msg}),r&&(0,c.jsx)(p.A,{position:"absolute"}),(0,c.jsx)("h1",{className:"text-2xl m-0 ",children:"Verify Email Address"}),(0,c.jsx)("span",{children:"Please click the button below to send verification link"}),(0,c.jsx)("button",{className:"w-full",onClick:function(e){e.preventDefault(),s(!0),(0,f.A)("/api/sendEmailVerificationLink").then(e=>{s(!1),e.success&&i({msg:"Email Sent. Please check mailbox",class:"bg-emerald-100"})})},children:(0,c.jsx)("span",{children:"Send Verification Link"})}),(0,c.jsx)("button",{className:"w-full outlined",onClick:e=>{window.history.back()},children:(0,c.jsx)("span",{children:"Go Back"})})]})})})})}async function y({req:e,res:t,query:r}){let s;let n=!1;try{s=await (0,m.A)(e,t);let i=r?.token;if(i){let e=(0,g.A)({encryptedString:i.toString()});if(e)try{s=JSON.parse(e)}catch(e){(0,S.A)({component:"email-verification/index-page-component/getServerSideProps/line-255",message:e.message,user:{}}),s=null,i=null}}if(!s)return{redirect:{destination:"/logout",permanent:!1}};if(s.verification_status?.toString().match(/^[1-5]$/))return{redirect:{destination:"/admin",permanent:!1}};let a=await (0,x.A)(`SELECT id FROM users WHERE verification_status > 0 AND id='${s.id}'`);if(a&&a[0])return{redirect:{destination:"/admin",permanent:!1}};if(s?.dateCode){let e=s.dateCode;Date.now()-parseInt(e)>18e5?(s=null,i=null):(await (0,x.A)(`UPDATE users SET verification_status='1' WHERE id='${s.id}'`),n=!0)}}catch(e){return(0,S.A)({component:"email-verification/index-page-component/getServerSideProps/main-catch-error",message:e.message,user:{}}),{redirect:{destination:"/logout",permanent:!1}}}return{props:{user:s,verified:n}}}let E=(0,a.M)(s,"default"),v=(0,a.M)(s,"getStaticProps"),j=(0,a.M)(s,"getStaticPaths"),A=(0,a.M)(s,"getServerSideProps"),P=(0,a.M)(s,"config"),b=(0,a.M)(s,"reportWebVitals"),N=(0,a.M)(s,"unstable_getStaticProps"),k=(0,a.M)(s,"unstable_getStaticPaths"),w=(0,a.M)(s,"unstable_getStaticParams"),D=(0,a.M)(s,"unstable_getServerProps"),O=(0,a.M)(s,"unstable_getServerSideProps"),I=new n.PagesRouteModule({definition:{kind:i.A.PAGES,page:"/email-verification",pathname:"/email-verification",bundlePath:"",filename:""},components:{App:l.default,Document:o.default},userland:s})},92702:(e,t,r)=>{r.d(t,{A:()=>l});var s=r(71934),n=r(71205),i=r(29021),a=r.n(i),o=r(41939);async function l(e,t,r){try{let{keyCookieName:i,csrfCookieName:l}=(0,o.A)();if(!e.cookies?.[i]?.match(/./))throw Error("Request Cookies not Found!");let c=(0,n.A)({encryptedString:e.cookies[i]});if(!c)throw Error("Couldn't decrypt auth cookie!");let u=JSON.parse(c);if(!u.csrf_k)throw Error("No `csrf_k` present in user Object!");if(r&&!Object.keys(e.headers).find(e=>e.includes(u.csrf_k)))throw Error("Deep Auth Failed. `csrf` key not found in request headers!");let d=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!d)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(r&&!a().existsSync(`${d}/${u.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==u.verification_status&&!r){let e=await (0,s.A)(`SELECT verification_status FROM users WHERE id='${u.id}'`);e&&e[0]&&1==e[0].verification_status&&t.setHeader("Set-Cookie",["user_refresh=1"])}if(u?.date&&Date.now()-u.date>6048e5)throw Error("Key expired!");return u}catch(e){return console.log(`userAuth Error: ${e.message}`),null}}},41939:(e,t,r)=>{r.d(t,{A:()=>s});function s(e){let t=process.env.DSQL_COOKIES_PREFIX||"dsql_",r=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",n=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",i=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),a=t;e?.userId&&(a+=`user_${e.userId}_`),i&&(a+=`${i}_`),a+=r;let o=t;e?.userId&&(o+=`user_${e.userId}_`),i&&(o+=`${i}_`),o+=s;let l=t;return e?.userId&&(l+=`user_${e.userId}_`),i&&(l+=`${i}_`),{keyCookieName:a,csrfCookieName:o,oneTimeCodeName:l+=n}}},77047:(e,t,r)=>{r.d(t,{A:()=>i});var s=r(29021),n=r.n(s);async function i({user:e,message:t,component:r,noMail:s,req:i}){let a=new Date,o=(()=>{if(!i)return null;try{let e=i.headers["x-forwarded-for"],t=i.headers["x-real-ip"],r=i.headers["cf-connecting-ip"],s=Array.isArray(e)?e[0]:e?.split(",")[0],n=r||s||t||i.socket.remoteAddress;if(!n)return null;return String(n)}catch(e){return null}})();try{let s=`🚀 SERVER ERROR =========================== +"use strict";(()=>{var e={};e.id=6712,e.ids=[3220,6712],e.modules={30671:(e,t)=>{Object.defineProperty(t,"M",{enumerable:!0,get:function(){return function e(t,r){return r in t?t[r]:"then"in t&&"function"==typeof t.then?t.then(t=>e(t,r)):"function"==typeof t&&"default"===r?t:void 0}}})},70852:(e,t,r)=>{r.r(t),r.d(t,{config:()=>P,default:()=>E,getServerSideProps:()=>A,getStaticPaths:()=>v,getStaticProps:()=>j,reportWebVitals:()=>b,routeModule:()=>I,unstable_getServerProps:()=>D,unstable_getServerSideProps:()=>O,unstable_getStaticParams:()=>w,unstable_getStaticPaths:()=>k,unstable_getStaticProps:()=>N});var s={};r.r(s),r.d(s,{default:()=>_,getServerSideProps:()=>y});var n=r(63865),i=r(9455),a=r(30671),o=r(5583),l=r(19796),c=r(8732),u=r(82015),d=r.n(u),m=r(92702),p=r(16757),f=r(46169),g=r(71205),h=r(1013),S=r(77047),x=r(71934);function _({user:e,verified:t}){let[r,s]=d().useState(!1),[n,i]=d().useState(null);return t?(0,c.jsx)(h.A,{head:(0,c.jsxs)(d().Fragment,{children:[(0,c.jsx)("title",{children:"Verify Email Address"}),(0,c.jsx)("meta",{name:"description",content:"Verify your email address"})]}),user:e,children:(0,c.jsx)("main",{className:"flex items-center justify-center w-full p-8",children:(0,c.jsx)("div",{className:"login-block gap-2",children:(0,c.jsxs)("div",{className:"flex items-center gap-4",children:[(0,c.jsx)("img",{src:"/images/checkmark.svg",alt:"check-mark",width:30}),(0,c.jsx)("span",{className:"text-xl",children:"Email Verification Successfull!"})]})})})}):(0,c.jsx)(d().Fragment,{children:(0,c.jsx)(h.A,{head:(0,c.jsxs)(d().Fragment,{children:[(0,c.jsx)("title",{children:"Verify Email Address"}),(0,c.jsx)("meta",{name:"description",content:"Verify your email address"})]}),user:e,children:(0,c.jsx)("main",{className:"flex flex-col items-center p-8 justify-center w-full",children:(0,c.jsxs)("div",{className:"login-block gap-2 flex-col max-w-lg",children:[n&&(0,c.jsx)("div",{className:n.class+" w-full rounded py-2 px-4 flex justify-center",children:n.msg}),r&&(0,c.jsx)(p.A,{position:"absolute"}),(0,c.jsx)("h1",{className:"text-2xl m-0 ",children:"Verify Email Address"}),(0,c.jsx)("span",{children:"Please click the button below to send verification link"}),(0,c.jsx)("button",{className:"w-full",onClick:function(e){e.preventDefault(),s(!0),(0,f.A)("/api/sendEmailVerificationLink").then(e=>{s(!1),e.success&&i({msg:"Email Sent. Please check mailbox",class:"bg-emerald-100"})})},children:(0,c.jsx)("span",{children:"Send Verification Link"})}),(0,c.jsx)("button",{className:"w-full outlined",onClick:e=>{window.history.back()},children:(0,c.jsx)("span",{children:"Go Back"})})]})})})})}async function y({req:e,res:t,query:r}){let s;let n=!1;try{s=await (0,m.A)(e,t);let i=r?.token;if(i){let e=(0,g.A)({encryptedString:i.toString()});if(e)try{s=JSON.parse(e)}catch(e){(0,S.A)({component:"email-verification/index-page-component/getServerSideProps/line-255",message:e.message,user:{}}),s=null,i=null}}if(!s)return{redirect:{destination:"/logout",permanent:!1}};if(s.verification_status?.toString().match(/^[1-5]$/))return{redirect:{destination:"/admin",permanent:!1}};let a=await (0,x.A)(`SELECT id FROM users WHERE verification_status > 0 AND id='${s.id}'`);if(a&&a[0])return{redirect:{destination:"/admin",permanent:!1}};if(s?.dateCode){let e=s.dateCode;Date.now()-parseInt(e)>18e5?(s=null,i=null):(await (0,x.A)(`UPDATE users SET verification_status='1' WHERE id='${s.id}'`),n=!0)}}catch(e){return(0,S.A)({component:"email-verification/index-page-component/getServerSideProps/main-catch-error",message:e.message,user:{}}),{redirect:{destination:"/logout",permanent:!1}}}return{props:{user:s,verified:n}}}let E=(0,a.M)(s,"default"),j=(0,a.M)(s,"getStaticProps"),v=(0,a.M)(s,"getStaticPaths"),A=(0,a.M)(s,"getServerSideProps"),P=(0,a.M)(s,"config"),b=(0,a.M)(s,"reportWebVitals"),N=(0,a.M)(s,"unstable_getStaticProps"),k=(0,a.M)(s,"unstable_getStaticPaths"),w=(0,a.M)(s,"unstable_getStaticParams"),D=(0,a.M)(s,"unstable_getServerProps"),O=(0,a.M)(s,"unstable_getServerSideProps"),I=new n.PagesRouteModule({definition:{kind:i.A.PAGES,page:"/email-verification",pathname:"/email-verification",bundlePath:"",filename:""},components:{App:l.default,Document:o.default},userland:s})},92702:(e,t,r)=>{r.d(t,{A:()=>l});var s=r(71934),n=r(71205),i=r(29021),a=r.n(i),o=r(41939);async function l(e,t,r){try{let{keyCookieName:i,csrfCookieName:l}=(0,o.A)();if(!e.cookies?.[i]?.match(/./))throw Error("Request Cookies not Found!");let c=(0,n.A)({encryptedString:e.cookies[i]});if(!c)throw Error("Couldn't decrypt auth cookie!");let u=JSON.parse(c);if(!u.csrf_k)throw Error("No `csrf_k` present in user Object!");if(r&&!Object.keys(e.headers).find(e=>e.includes(u.csrf_k)))throw console.log("req.headers",e.headers),console.log("userObject",u),Error("Deep Auth Failed. `csrf` key not found in request headers!");let d=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!d)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(r&&!a().existsSync(`${d}/${u.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==u.verification_status&&!r){let e=await (0,s.A)(`SELECT verification_status FROM users WHERE id='${u.id}'`);e&&e[0]&&1==e[0].verification_status&&t.setHeader("Set-Cookie",["user_refresh=1"])}if(u?.date&&Date.now()-u.date>6048e5)throw Error("Key expired!");return u}catch(e){return console.log(`userAuth Error: ${e.message}`),null}}},41939:(e,t,r)=>{r.d(t,{A:()=>s});function s(e){let t=process.env.DSQL_COOKIES_PREFIX||"dsql_",r=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",n=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",i=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),a=t;e?.userId&&(a+=`user_${e.userId}_`),i&&(a+=`${i}_`),a+=r;let o=t;e?.userId&&(o+=`user_${e.userId}_`),i&&(o+=`${i}_`),o+=s;let l=t;return e?.userId&&(l+=`user_${e.userId}_`),i&&(l+=`${i}_`),{keyCookieName:a,csrfCookieName:o,oneTimeCodeName:l+=n}}},77047:(e,t,r)=>{r.d(t,{A:()=>i});var s=r(29021),n=r.n(s);async function i({user:e,message:t,component:r,noMail:s,req:i}){let a=new Date,o=(()=>{if(!i)return null;try{let e=i.headers["x-forwarded-for"],t=i.headers["x-real-ip"],r=i.headers["cf-connecting-ip"],s=Array.isArray(e)?e[0]:e?.split(",")[0],n=r||s||t||i.socket.remoteAddress;if(!n)return null;return String(n)}catch(e){return null}})();try{let s=`🚀 SERVER ERROR =========================== Error Message: ${t} Component: ${r}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(s+=` User Id: ${e?.id} diff --git a/dsql-app/.local_dist/server/pages/index.html b/dsql-app/.local_dist/server/pages/index.html index afe4f1d..a7a05d9 100644 --- a/dsql-app/.local_dist/server/pages/index.html +++ b/dsql-app/.local_dist/server/pages/index.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/login.js b/dsql-app/.local_dist/server/pages/login.js index f56a030..670590c 100644 --- a/dsql-app/.local_dist/server/pages/login.js +++ b/dsql-app/.local_dist/server/pages/login.js @@ -1 +1 @@ -"use strict";(()=>{var e={};e.id=676,e.ids=[676,3220],e.modules={30671:(e,t)=>{Object.defineProperty(t,"M",{enumerable:!0,get:function(){return function e(t,r){return r in t?t[r]:"then"in t&&"function"==typeof t.then?t.then(t=>e(t,r)):"function"==typeof t&&"default"===r?t:void 0}}})},45581:(e,t,r)=>{r.r(t),r.d(t,{config:()=>L,default:()=>b,getServerSideProps:()=>D,getStaticPaths:()=>N,getStaticProps:()=>A,reportWebVitals:()=>q,routeModule:()=>T,unstable_getServerProps:()=>k,unstable_getServerSideProps:()=>C,unstable_getStaticParams:()=>M,unstable_getStaticPaths:()=>I,unstable_getStaticProps:()=>O});var s={};r.r(s),r.d(s,{default:()=>P,getServerSideProps:()=>E});var a=r(63865),n=r(9455),i=r(30671),o=r(5583),l=r(19796),c=r(8732),u=r(82015),d=r.n(u),m=r(27912),p=r.n(m),f=r(45731),h=r(46169);async function g({e,setAlert:t,setLoading:r,query:s}){e.preventDefault(),r(!0);let a=e.target["email-or-username-input"],n=e.target.password;if(a?.value===""&&n?.value===""){a.classList.add("warning"),n.classList.add("warning"),t("No Email or Password Provided"),r(!1);return}if(n?.value===""){t(!1),n.classList.add("warning"),t(!0),r(!1);return}a.classList.remove("warning"),n.classList.remove("warning"),t(!1);let i={email:a.value,password:n.value,query:s};(0,h.A)("/api/loginUser",{method:"post",body:i}).then(async e=>{console.log(e),e.user&&e.user.auth?(localStorage.setItem("userid",e.user.userid),localStorage.setItem("csrf",e.user.csrf_k),localStorage.setItem("user",JSON.stringify(e.userPayload)),(0,f.A)().then(()=>{window.location.reload()})):(t(e.msg),r(!1))})}var x=r(16757),y=r(5406);let _=d().createContext({});function j({user:e,query:t}){let[r,s]=(0,u.useState)(!1),[a,n]=(0,u.useState)(!1);return(0,c.jsxs)(_.Provider,{value:{loading:a,setLoading:n,alert:r,setAlert:s,user:e},children:[(0,c.jsx)(y.A,{user:e,userType:"admin",setLoading:n}),(0,c.jsxs)("div",{className:"w-full justify-center relative",children:[(0,c.jsx)("span",{className:"bg-white dark:bg-slate-800 px-3 relative z-10",children:"OR"}),(0,c.jsx)("hr",{className:"absolute"})]}),(0,c.jsxs)("div",{className:"w-full flex-col items-stretch gap-4",children:[a&&(0,c.jsx)(x.A,{}),r&&(0,c.jsx)("div",{className:"p-2 justify-center text-sm border border-solid border-orange-400 rounded bg-orange-50",children:r}),(0,c.jsxs)("form",{className:"flex flex-col gap-2 w-full",onSubmit:e=>{g({e,setAlert:s,setLoading:n,query:t})},children:[(0,c.jsx)("input",{type:"text",name:"email-or-username-input",id:"email-or-username-input",placeholder:"Email or username",defaultValue:t?.email?t.email:"",required:!0,onInput:e=>{r&&s(!1)}}),(0,c.jsx)("input",{type:"password",name:"password",id:"password-input",placeholder:"Password",required:!0,onInput:e=>{r&&s(!1)}}),(0,c.jsx)("button",{type:"submit",children:"Login"})]}),(0,c.jsx)("div",{className:"flex flex-col items-center w-full mb-2",children:(0,c.jsx)("a",{href:"/send-password-reset-link",className:"text-secondary font-semibold",children:"Forgot Password?"})}),(0,c.jsxs)("div",{className:"flex items-center gap-2 justify-center w-full mb-2 flex-wrap",children:[(0,c.jsx)("span",{children:"Dont have an account yet?"}),(0,c.jsx)("a",{href:"/create-account",className:"text-secondary font-semibold",children:"Register Now"})]}),(0,c.jsxs)("div",{className:"justify-center text-sm text-secondary",children:[(0,c.jsx)("a",{href:"/terms",className:"text-secondary",children:"Terms and Conditions"}),(0,c.jsx)("a",{href:"/privacy",className:"text-secondary",children:"Privacy Policy"})]})]})]})}var v=r(92702),S=r(50139),w=r(32572);function P(e){return e.query.invite&&e.user?(0,c.jsx)(w.A,{}):(0,c.jsxs)(d().Fragment,{children:[(0,c.jsxs)(p(),{children:[(0,c.jsx)("title",{children:"Login to your account"}),(0,c.jsx)("meta",{name:"description",content:"Login to your account"})]}),(0,c.jsx)("main",{className:"w-screen h-screen flex items-center justify-center p-4 md:p-8",children:(0,c.jsxs)("div",{className:"card col items-center no-hover max-w-md w-full bg-white p-4 sm:p-6 overflow-auto minimal-scrollbars",style:{maxHeight:"calc(100vh - 40px)"},children:[(0,c.jsx)(S.A,{}),(0,c.jsx)("hr",{}),(0,c.jsx)("h3",{className:"m-0 text-lg font-semibold",children:"Login to your account"}),(0,c.jsx)(j,{user:e.user,query:e.query})]})})]})}async function E({req:e,res:t,query:r}){let s=await (0,v.A)(e,t);return s?{redirect:{destination:"/admin",permanent:!1}}:{props:{user:s,query:r}}}let b=(0,i.M)(s,"default"),A=(0,i.M)(s,"getStaticProps"),N=(0,i.M)(s,"getStaticPaths"),D=(0,i.M)(s,"getServerSideProps"),L=(0,i.M)(s,"config"),q=(0,i.M)(s,"reportWebVitals"),O=(0,i.M)(s,"unstable_getStaticProps"),I=(0,i.M)(s,"unstable_getStaticPaths"),M=(0,i.M)(s,"unstable_getStaticParams"),k=(0,i.M)(s,"unstable_getServerProps"),C=(0,i.M)(s,"unstable_getServerSideProps"),T=new a.PagesRouteModule({definition:{kind:n.A.PAGES,page:"/login",pathname:"/login",bundlePath:"",filename:""},components:{App:l.default,Document:o.default},userland:s})},32572:(e,t,r)=>{r.d(t,{A:()=>n});var s=r(8732);r(82015);var a=r(16757);function n(){return(0,s.jsx)("div",{className:"flex flex-col gap-4 items-center justify-center w-full h-screen p-6 bg-slate-100",children:(0,s.jsxs)("div",{className:"flex flex-col items-center justify-center gap-4 px-6 py-20 bg-white rounded shadow-sm max-w-2xl w-full",children:[(0,s.jsx)("img",{src:"/images/logo-icon-alt-2.webp",alt:"Datasquirel Logo",width:60}),(0,s.jsx)("div",{className:"w-10 h-10 flex flex-col items-center justify-center",children:(0,s.jsx)(a.A,{width:"25px",position:"relative"})})]})})}},5406:(e,t,r)=>{function s({user:e,userType:t,setLoading:r}){return null}r.d(t,{A:()=>s}),r(8732),r(82015),r(46169),r(45731)},92702:(e,t,r)=>{r.d(t,{A:()=>l});var s=r(71934),a=r(71205),n=r(29021),i=r.n(n),o=r(41939);async function l(e,t,r){try{let{keyCookieName:n,csrfCookieName:l}=(0,o.A)();if(!e.cookies?.[n]?.match(/./))throw Error("Request Cookies not Found!");let c=(0,a.A)({encryptedString:e.cookies[n]});if(!c)throw Error("Couldn't decrypt auth cookie!");let u=JSON.parse(c);if(!u.csrf_k)throw Error("No `csrf_k` present in user Object!");if(r&&!Object.keys(e.headers).find(e=>e.includes(u.csrf_k)))throw Error("Deep Auth Failed. `csrf` key not found in request headers!");let d=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!d)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(r&&!i().existsSync(`${d}/${u.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==u.verification_status&&!r){let e=await (0,s.A)(`SELECT verification_status FROM users WHERE id='${u.id}'`);e&&e[0]&&1==e[0].verification_status&&t.setHeader("Set-Cookie",["user_refresh=1"])}if(u?.date&&Date.now()-u.date>6048e5)throw Error("Key expired!");return u}catch(e){return console.log(`userAuth Error: ${e.message}`),null}}},45731:(e,t,r)=>{r.d(t,{A:()=>s});async function s(){try{let e=await caches.keys();e[0]&&await Promise.all(e.map(e=>caches.delete(e)))}catch(e){console.log("Error in clearing cache =>",e.message)}}},41939:(e,t,r)=>{r.d(t,{A:()=>s});function s(e){let t=process.env.DSQL_COOKIES_PREFIX||"dsql_",r=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",a=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",n=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),i=t;e?.userId&&(i+=`user_${e.userId}_`),n&&(i+=`${n}_`),i+=r;let o=t;e?.userId&&(o+=`user_${e.userId}_`),n&&(o+=`${n}_`),o+=s;let l=t;return e?.userId&&(l+=`user_${e.userId}_`),n&&(l+=`${n}_`),{keyCookieName:i,csrfCookieName:o,oneTimeCodeName:l+=a}}},71205:(e,t,r)=>{r.d(t,{A:()=>n});var s=r(55511),a=r(79428);function n({encryptedString:e,encryptionKey:t,encryptionSalt:r}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let n=t||process.env.DSQL_ENCRYPTION_PASSWORD,i=r||process.env.DSQL_ENCRYPTION_SALT,o=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!n?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let l=(0,s.scryptSync)(n,i,o),c=a.Buffer.alloc(16,0),u=(0,s.createDecipheriv)("aes-192-cbc",l,c);try{let t=u.update(e,"hex","utf8");return t+=u.final("utf8")}catch(t){return console.log("Error in decrypting =>",t.message),e}}},71934:(e,t,r)=>{r.d(t,{A:()=>s});async function s(...e){let t=global.DSQL_DB_CONN;try{if(!t)throw Error("No Connection provided to DB_HANDLER function!");let r=await t.query(...e);return JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await t?.end()}}},5583:(e,t,r)=>{r.r(t),r.d(t,{default:()=>n});var s=r(8732);r(82015);var a=r(20883);function n(){return(0,s.jsxs)(a.Html,{lang:"en",children:[(0,s.jsxs)(a.Head,{children:[(0,s.jsx)("meta",{name:"author",content:"Datasquirel"}),(0,s.jsx)("meta",{name:"Copyright",content:`Copyright (c) ${new Date().getFullYear()} Datasquirel`}),"dev_dev".match(/dev/)&&(0,s.jsx)("meta",{name:"robots",content:"noindex,nofollow"}),(0,s.jsx)("link",{rel:"preconnect",href:"https://fonts.googleapis.com/",crossOrigin:"anonymous"}),(0,s.jsx)("link",{rel:"preconnect",href:"https://fonts.gstatic.com",crossOrigin:"anonymous"}),(0,s.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=Poppins"}),(0,s.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=Inter"}),(0,s.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=IBM+Plex+Mono"}),(0,s.jsx)("script",{src:"/scripts/themeSelector.js"}),(0,s.jsx)("meta",{httpEquiv:"Content-Type",content:"text/html; charset=UTF-8"}),(0,s.jsx)("meta",{property:"og:site_name",content:"DATASQUIREL"}),(0,s.jsx)("meta",{property:"og:type",content:"website"}),(0,s.jsx)("meta",{name:"twitter:card",content:"summary"}),(0,s.jsx)("meta",{property:"og:image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,s.jsx)("meta",{itemProp:"image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,s.jsx)("meta",{name:"twitter:image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,s.jsx)("link",{rel:"stylesheet",href:"/styles/prism.css"}),(0,s.jsx)("script",{src:"/scripts/prism.js",async:!0}),(0,s.jsx)("script",{dangerouslySetInnerHTML:{__html:"var DSQL = {}"}})]}),(0,s.jsxs)("body",{children:[(0,s.jsx)(a.Main,{}),(0,s.jsx)(a.NextScript,{})]})]})}},9455:(e,t)=>{Object.defineProperty(t,"A",{enumerable:!0,get:function(){return r}});var r=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},13893:e=>{e.exports=require("@moduletrace/datasquirel/dist/client/fetch")},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{e.exports=require("next/head")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},8732:e=>{e.exports=require("react/jsx-runtime")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")}};var t=require("../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),s=t.X(0,[883,9821,9796],()=>r(45581));module.exports=s})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=676,e.ids=[676,3220],e.modules={30671:(e,t)=>{Object.defineProperty(t,"M",{enumerable:!0,get:function(){return function e(t,r){return r in t?t[r]:"then"in t&&"function"==typeof t.then?t.then(t=>e(t,r)):"function"==typeof t&&"default"===r?t:void 0}}})},45581:(e,t,r)=>{r.r(t),r.d(t,{config:()=>D,default:()=>b,getServerSideProps:()=>q,getStaticPaths:()=>N,getStaticProps:()=>A,reportWebVitals:()=>L,routeModule:()=>T,unstable_getServerProps:()=>k,unstable_getServerSideProps:()=>C,unstable_getStaticParams:()=>M,unstable_getStaticPaths:()=>I,unstable_getStaticProps:()=>O});var s={};r.r(s),r.d(s,{default:()=>P,getServerSideProps:()=>E});var a=r(63865),n=r(9455),i=r(30671),o=r(5583),l=r(19796),c=r(8732),u=r(82015),d=r.n(u),m=r(27912),p=r.n(m),f=r(45731),h=r(46169);async function g({e,setAlert:t,setLoading:r,query:s}){e.preventDefault(),r(!0);let a=e.target["email-or-username-input"],n=e.target.password;if(a?.value===""&&n?.value===""){a.classList.add("warning"),n.classList.add("warning"),t("No Email or Password Provided"),r(!1);return}if(n?.value===""){t(!1),n.classList.add("warning"),t(!0),r(!1);return}a.classList.remove("warning"),n.classList.remove("warning"),t(!1);let i={email:a.value,password:n.value,query:s};(0,h.A)("/api/loginUser",{method:"post",body:i}).then(async e=>{console.log(e),e.user&&e.user.auth?(localStorage.setItem("userid",e.user.userid),localStorage.setItem("csrf",e.user.csrf_k),localStorage.setItem("user",JSON.stringify(e.userPayload)),(0,f.A)().then(()=>{window.location.reload()})):(t(e.msg),r(!1))})}var x=r(16757),y=r(5406);let j=d().createContext({});function _({user:e,query:t}){let[r,s]=(0,u.useState)(!1),[a,n]=(0,u.useState)(!1);return(0,c.jsxs)(j.Provider,{value:{loading:a,setLoading:n,alert:r,setAlert:s,user:e},children:[(0,c.jsx)(y.A,{user:e,userType:"admin",setLoading:n}),(0,c.jsxs)("div",{className:"w-full justify-center relative",children:[(0,c.jsx)("span",{className:"bg-white dark:bg-slate-800 px-3 relative z-10",children:"OR"}),(0,c.jsx)("hr",{className:"absolute"})]}),(0,c.jsxs)("div",{className:"w-full flex-col items-stretch gap-4",children:[a&&(0,c.jsx)(x.A,{}),r&&(0,c.jsx)("div",{className:"p-2 justify-center text-sm border border-solid border-orange-400 rounded bg-orange-50",children:r}),(0,c.jsxs)("form",{className:"flex flex-col gap-2 w-full",onSubmit:e=>{g({e,setAlert:s,setLoading:n,query:t})},children:[(0,c.jsx)("input",{type:"text",name:"email-or-username-input",id:"email-or-username-input",placeholder:"Email or username",defaultValue:t?.email?t.email:"",required:!0,onInput:e=>{r&&s(!1)}}),(0,c.jsx)("input",{type:"password",name:"password",id:"password-input",placeholder:"Password",required:!0,onInput:e=>{r&&s(!1)}}),(0,c.jsx)("button",{type:"submit",children:"Login"})]}),(0,c.jsx)("div",{className:"flex flex-col items-center w-full mb-2",children:(0,c.jsx)("a",{href:"/send-password-reset-link",className:"text-secondary font-semibold",children:"Forgot Password?"})}),(0,c.jsxs)("div",{className:"flex items-center gap-2 justify-center w-full mb-2 flex-wrap",children:[(0,c.jsx)("span",{children:"Dont have an account yet?"}),(0,c.jsx)("a",{href:"/create-account",className:"text-secondary font-semibold",children:"Register Now"})]}),(0,c.jsxs)("div",{className:"justify-center text-sm text-secondary",children:[(0,c.jsx)("a",{href:"/terms",className:"text-secondary",children:"Terms and Conditions"}),(0,c.jsx)("a",{href:"/privacy",className:"text-secondary",children:"Privacy Policy"})]})]})]})}var v=r(92702),S=r(50139),w=r(32572);function P(e){return e.query.invite&&e.user?(0,c.jsx)(w.A,{}):(0,c.jsxs)(d().Fragment,{children:[(0,c.jsxs)(p(),{children:[(0,c.jsx)("title",{children:"Login to your account"}),(0,c.jsx)("meta",{name:"description",content:"Login to your account"})]}),(0,c.jsx)("main",{className:"w-screen h-screen flex items-center justify-center p-4 md:p-8",children:(0,c.jsxs)("div",{className:"card col items-center no-hover max-w-md w-full bg-white p-4 sm:p-6 overflow-auto minimal-scrollbars",style:{maxHeight:"calc(100vh - 40px)"},children:[(0,c.jsx)(S.A,{}),(0,c.jsx)("hr",{}),(0,c.jsx)("h3",{className:"m-0 text-lg font-semibold",children:"Login to your account"}),(0,c.jsx)(_,{user:e.user,query:e.query})]})})]})}async function E({req:e,res:t,query:r}){let s=await (0,v.A)(e,t);return s?{redirect:{destination:"/admin",permanent:!1}}:{props:{user:s,query:r}}}let b=(0,i.M)(s,"default"),A=(0,i.M)(s,"getStaticProps"),N=(0,i.M)(s,"getStaticPaths"),q=(0,i.M)(s,"getServerSideProps"),D=(0,i.M)(s,"config"),L=(0,i.M)(s,"reportWebVitals"),O=(0,i.M)(s,"unstable_getStaticProps"),I=(0,i.M)(s,"unstable_getStaticPaths"),M=(0,i.M)(s,"unstable_getStaticParams"),k=(0,i.M)(s,"unstable_getServerProps"),C=(0,i.M)(s,"unstable_getServerSideProps"),T=new a.PagesRouteModule({definition:{kind:n.A.PAGES,page:"/login",pathname:"/login",bundlePath:"",filename:""},components:{App:l.default,Document:o.default},userland:s})},32572:(e,t,r)=>{r.d(t,{A:()=>n});var s=r(8732);r(82015);var a=r(16757);function n(){return(0,s.jsx)("div",{className:"flex flex-col gap-4 items-center justify-center w-full h-screen p-6 bg-slate-100",children:(0,s.jsxs)("div",{className:"flex flex-col items-center justify-center gap-4 px-6 py-20 bg-white rounded shadow-sm max-w-2xl w-full",children:[(0,s.jsx)("img",{src:"/images/logo-icon-alt-2.webp",alt:"Datasquirel Logo",width:60}),(0,s.jsx)("div",{className:"w-10 h-10 flex flex-col items-center justify-center",children:(0,s.jsx)(a.A,{width:"25px",position:"relative"})})]})})}},5406:(e,t,r)=>{function s({user:e,userType:t,setLoading:r}){return null}r.d(t,{A:()=>s}),r(8732),r(82015),r(46169),r(45731)},92702:(e,t,r)=>{r.d(t,{A:()=>l});var s=r(71934),a=r(71205),n=r(29021),i=r.n(n),o=r(41939);async function l(e,t,r){try{let{keyCookieName:n,csrfCookieName:l}=(0,o.A)();if(!e.cookies?.[n]?.match(/./))throw Error("Request Cookies not Found!");let c=(0,a.A)({encryptedString:e.cookies[n]});if(!c)throw Error("Couldn't decrypt auth cookie!");let u=JSON.parse(c);if(!u.csrf_k)throw Error("No `csrf_k` present in user Object!");if(r&&!Object.keys(e.headers).find(e=>e.includes(u.csrf_k)))throw console.log("req.headers",e.headers),console.log("userObject",u),Error("Deep Auth Failed. `csrf` key not found in request headers!");let d=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!d)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(r&&!i().existsSync(`${d}/${u.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==u.verification_status&&!r){let e=await (0,s.A)(`SELECT verification_status FROM users WHERE id='${u.id}'`);e&&e[0]&&1==e[0].verification_status&&t.setHeader("Set-Cookie",["user_refresh=1"])}if(u?.date&&Date.now()-u.date>6048e5)throw Error("Key expired!");return u}catch(e){return console.log(`userAuth Error: ${e.message}`),null}}},45731:(e,t,r)=>{r.d(t,{A:()=>s});async function s(){try{let e=await caches.keys();e[0]&&await Promise.all(e.map(e=>caches.delete(e)))}catch(e){console.log("Error in clearing cache =>",e.message)}}},41939:(e,t,r)=>{r.d(t,{A:()=>s});function s(e){let t=process.env.DSQL_COOKIES_PREFIX||"dsql_",r=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",a=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",n=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),i=t;e?.userId&&(i+=`user_${e.userId}_`),n&&(i+=`${n}_`),i+=r;let o=t;e?.userId&&(o+=`user_${e.userId}_`),n&&(o+=`${n}_`),o+=s;let l=t;return e?.userId&&(l+=`user_${e.userId}_`),n&&(l+=`${n}_`),{keyCookieName:i,csrfCookieName:o,oneTimeCodeName:l+=a}}},71205:(e,t,r)=>{r.d(t,{A:()=>n});var s=r(55511),a=r(79428);function n({encryptedString:e,encryptionKey:t,encryptionSalt:r}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let n=t||process.env.DSQL_ENCRYPTION_PASSWORD,i=r||process.env.DSQL_ENCRYPTION_SALT,o=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!n?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let l=(0,s.scryptSync)(n,i,o),c=a.Buffer.alloc(16,0),u=(0,s.createDecipheriv)("aes-192-cbc",l,c);try{let t=u.update(e,"hex","utf8");return t+=u.final("utf8")}catch(t){return console.log("Error in decrypting =>",t.message),e}}},71934:(e,t,r)=>{r.d(t,{A:()=>s});async function s(...e){let t=global.DSQL_DB_CONN;try{if(!t)throw Error("No Connection provided to DB_HANDLER function!");let r=await t.query(...e);return JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await t?.end()}}},5583:(e,t,r)=>{r.r(t),r.d(t,{default:()=>n});var s=r(8732);r(82015);var a=r(20883);function n(){return(0,s.jsxs)(a.Html,{lang:"en",children:[(0,s.jsxs)(a.Head,{children:[(0,s.jsx)("meta",{name:"author",content:"Datasquirel"}),(0,s.jsx)("meta",{name:"Copyright",content:`Copyright (c) ${new Date().getFullYear()} Datasquirel`}),"dev_dev".match(/dev/)&&(0,s.jsx)("meta",{name:"robots",content:"noindex,nofollow"}),(0,s.jsx)("link",{rel:"preconnect",href:"https://fonts.googleapis.com/",crossOrigin:"anonymous"}),(0,s.jsx)("link",{rel:"preconnect",href:"https://fonts.gstatic.com",crossOrigin:"anonymous"}),(0,s.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=Poppins"}),(0,s.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=Inter"}),(0,s.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=IBM+Plex+Mono"}),(0,s.jsx)("script",{src:"/scripts/themeSelector.js"}),(0,s.jsx)("meta",{httpEquiv:"Content-Type",content:"text/html; charset=UTF-8"}),(0,s.jsx)("meta",{property:"og:site_name",content:"DATASQUIREL"}),(0,s.jsx)("meta",{property:"og:type",content:"website"}),(0,s.jsx)("meta",{name:"twitter:card",content:"summary"}),(0,s.jsx)("meta",{property:"og:image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,s.jsx)("meta",{itemProp:"image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,s.jsx)("meta",{name:"twitter:image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,s.jsx)("link",{rel:"stylesheet",href:"/styles/prism.css"}),(0,s.jsx)("script",{src:"/scripts/prism.js",async:!0}),(0,s.jsx)("script",{dangerouslySetInnerHTML:{__html:"var DSQL = {}"}})]}),(0,s.jsxs)("body",{children:[(0,s.jsx)(a.Main,{}),(0,s.jsx)(a.NextScript,{})]})]})}},9455:(e,t)=>{Object.defineProperty(t,"A",{enumerable:!0,get:function(){return r}});var r=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},13893:e=>{e.exports=require("@moduletrace/datasquirel/dist/client/fetch")},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{e.exports=require("next/head")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},8732:e=>{e.exports=require("react/jsx-runtime")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")}};var t=require("../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),s=t.X(0,[883,9821,9796],()=>r(45581));module.exports=s})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/logout.js b/dsql-app/.local_dist/server/pages/logout.js index cca0f44..be13b25 100644 --- a/dsql-app/.local_dist/server/pages/logout.js +++ b/dsql-app/.local_dist/server/pages/logout.js @@ -1 +1 @@ -"use strict";(()=>{var e={};e.id=7122,e.ids=[3220,7122],e.modules={30671:(e,t)=>{Object.defineProperty(t,"M",{enumerable:!0,get:function(){return function e(t,r){return r in t?t[r]:"then"in t&&"function"==typeof t.then?t.then(t=>e(t,r)):"function"==typeof t&&"default"===r?t:void 0}}})},92192:(e,t,r)=>{r.r(t),r.d(t,{config:()=>A,default:()=>E,getServerSideProps:()=>v,getStaticPaths:()=>j,getStaticProps:()=>P,reportWebVitals:()=>b,routeModule:()=>k,unstable_getServerProps:()=>I,unstable_getServerSideProps:()=>L,unstable_getStaticParams:()=>O,unstable_getStaticPaths:()=>D,unstable_getStaticProps:()=>N});var s={};r.r(s),r.d(s,{default:()=>S,getServerSideProps:()=>y});var n=r(63865),o=r(9455),a=r(30671),i=r(5583),c=r(19796),l=r(8732),u=r(82015),d=r.n(u),p=r(27912),m=r.n(p),g=r(29021),f=r.n(g),h=r(92702);r(46169),r(45731);var _=r(16757),x=r(41939);function S({user:e,query:t}){let r=(0,l.jsxs)(d().Fragment,{children:[(0,l.jsx)("title",{children:"Loging Out | Datasquirel"}),(0,l.jsx)("meta",{name:"description",content:"Login you out"}),(0,l.jsx)("script",{src:"https://accounts.google.com/gsi/client"}),(0,l.jsx)("script",{src:"https://connect.facebook.net/en_US/sdk.js",crossOrigin:"anonymous"})]});return(0,l.jsxs)(d().Fragment,{children:[(0,l.jsx)(m(),{children:r}),(0,l.jsx)("main",{className:"w-screen h-screen flex items-center justify-center p-4 md:p-8",children:(0,l.jsxs)("div",{className:"card max-w-md flex-col items-center bg-white p-6 rounded border border-slate-200 border-solid",children:[(0,l.jsxs)("a",{href:"/",className:"flex items-center gap-2",children:[(0,l.jsx)("img",{src:"/images/logo-icon-alt-2.png",alt:"Logo Icon",width:37}),(0,l.jsx)("span",{className:"font-bold text-2xl",children:"Datasquirel"})]}),(0,l.jsx)("h3",{className:"text-lg m-0 mt-4 text-slate-400",children:"Logging out"}),(0,l.jsx)(_.A,{position:"relative",width:"20px"})]})})]})}async function y({req:e,res:t,query:r}){let s=await (0,h.A)(e,t);if(s){console.log(s.csrf_k);try{let e=process.env.DSQL_USER_LOGIN_KEYS_PATH,t=`${e}/${s.csrf_k}`;console.log("allowedAuthKeyPath",t),f().unlinkSync(t)}catch(e){console.log(`Logout API error: ${e.message}`)}}let{keyCookieName:n,csrfCookieName:o}=(0,x.A)();return t.setHeader("Set-Cookie",[`${n}=none;max-age=0`,`${o}=null;max-age=0`]),{props:{user:s,logged_out:!0,query:r}}}let E=(0,a.M)(s,"default"),P=(0,a.M)(s,"getStaticProps"),j=(0,a.M)(s,"getStaticPaths"),v=(0,a.M)(s,"getServerSideProps"),A=(0,a.M)(s,"config"),b=(0,a.M)(s,"reportWebVitals"),N=(0,a.M)(s,"unstable_getStaticProps"),D=(0,a.M)(s,"unstable_getStaticPaths"),O=(0,a.M)(s,"unstable_getStaticParams"),I=(0,a.M)(s,"unstable_getServerProps"),L=(0,a.M)(s,"unstable_getServerSideProps"),k=new n.PagesRouteModule({definition:{kind:o.A.PAGES,page:"/logout",pathname:"/logout",bundlePath:"",filename:""},components:{App:c.default,Document:i.default},userland:s})},92702:(e,t,r)=>{r.d(t,{A:()=>c});var s=r(71934),n=r(71205),o=r(29021),a=r.n(o),i=r(41939);async function c(e,t,r){try{let{keyCookieName:o,csrfCookieName:c}=(0,i.A)();if(!e.cookies?.[o]?.match(/./))throw Error("Request Cookies not Found!");let l=(0,n.A)({encryptedString:e.cookies[o]});if(!l)throw Error("Couldn't decrypt auth cookie!");let u=JSON.parse(l);if(!u.csrf_k)throw Error("No `csrf_k` present in user Object!");if(r&&!Object.keys(e.headers).find(e=>e.includes(u.csrf_k)))throw Error("Deep Auth Failed. `csrf` key not found in request headers!");let d=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!d)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(r&&!a().existsSync(`${d}/${u.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==u.verification_status&&!r){let e=await (0,s.A)(`SELECT verification_status FROM users WHERE id='${u.id}'`);e&&e[0]&&1==e[0].verification_status&&t.setHeader("Set-Cookie",["user_refresh=1"])}if(u?.date&&Date.now()-u.date>6048e5)throw Error("Key expired!");return u}catch(e){return console.log(`userAuth Error: ${e.message}`),null}}},45731:(e,t,r)=>{r.d(t,{A:()=>s});async function s(){try{let e=await caches.keys();e[0]&&await Promise.all(e.map(e=>caches.delete(e)))}catch(e){console.log("Error in clearing cache =>",e.message)}}},41939:(e,t,r)=>{r.d(t,{A:()=>s});function s(e){let t=process.env.DSQL_COOKIES_PREFIX||"dsql_",r=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",n=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",o=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),a=t;e?.userId&&(a+=`user_${e.userId}_`),o&&(a+=`${o}_`),a+=r;let i=t;e?.userId&&(i+=`user_${e.userId}_`),o&&(i+=`${o}_`),i+=s;let c=t;return e?.userId&&(c+=`user_${e.userId}_`),o&&(c+=`${o}_`),{keyCookieName:a,csrfCookieName:i,oneTimeCodeName:c+=n}}},71205:(e,t,r)=>{r.d(t,{A:()=>o});var s=r(55511),n=r(79428);function o({encryptedString:e,encryptionKey:t,encryptionSalt:r}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let o=t||process.env.DSQL_ENCRYPTION_PASSWORD,a=r||process.env.DSQL_ENCRYPTION_SALT,i=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!o?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!a?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let c=(0,s.scryptSync)(o,a,i),l=n.Buffer.alloc(16,0),u=(0,s.createDecipheriv)("aes-192-cbc",c,l);try{let t=u.update(e,"hex","utf8");return t+=u.final("utf8")}catch(t){return console.log("Error in decrypting =>",t.message),e}}},71934:(e,t,r)=>{r.d(t,{A:()=>s});async function s(...e){let t=global.DSQL_DB_CONN;try{if(!t)throw Error("No Connection provided to DB_HANDLER function!");let r=await t.query(...e);return JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await t?.end()}}},5583:(e,t,r)=>{r.r(t),r.d(t,{default:()=>o});var s=r(8732);r(82015);var n=r(20883);function o(){return(0,s.jsxs)(n.Html,{lang:"en",children:[(0,s.jsxs)(n.Head,{children:[(0,s.jsx)("meta",{name:"author",content:"Datasquirel"}),(0,s.jsx)("meta",{name:"Copyright",content:`Copyright (c) ${new Date().getFullYear()} Datasquirel`}),"dev_dev".match(/dev/)&&(0,s.jsx)("meta",{name:"robots",content:"noindex,nofollow"}),(0,s.jsx)("link",{rel:"preconnect",href:"https://fonts.googleapis.com/",crossOrigin:"anonymous"}),(0,s.jsx)("link",{rel:"preconnect",href:"https://fonts.gstatic.com",crossOrigin:"anonymous"}),(0,s.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=Poppins"}),(0,s.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=Inter"}),(0,s.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=IBM+Plex+Mono"}),(0,s.jsx)("script",{src:"/scripts/themeSelector.js"}),(0,s.jsx)("meta",{httpEquiv:"Content-Type",content:"text/html; charset=UTF-8"}),(0,s.jsx)("meta",{property:"og:site_name",content:"DATASQUIREL"}),(0,s.jsx)("meta",{property:"og:type",content:"website"}),(0,s.jsx)("meta",{name:"twitter:card",content:"summary"}),(0,s.jsx)("meta",{property:"og:image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,s.jsx)("meta",{itemProp:"image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,s.jsx)("meta",{name:"twitter:image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,s.jsx)("link",{rel:"stylesheet",href:"/styles/prism.css"}),(0,s.jsx)("script",{src:"/scripts/prism.js",async:!0}),(0,s.jsx)("script",{dangerouslySetInnerHTML:{__html:"var DSQL = {}"}})]}),(0,s.jsxs)("body",{children:[(0,s.jsx)(n.Main,{}),(0,s.jsx)(n.NextScript,{})]})]})}},9455:(e,t)=>{Object.defineProperty(t,"A",{enumerable:!0,get:function(){return r}});var r=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},13893:e=>{e.exports=require("@moduletrace/datasquirel/dist/client/fetch")},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{e.exports=require("next/head")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},8732:e=>{e.exports=require("react/jsx-runtime")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")}};var t=require("../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),s=t.X(0,[883,9821,9796],()=>r(92192));module.exports=s})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=7122,e.ids=[3220,7122],e.modules={30671:(e,t)=>{Object.defineProperty(t,"M",{enumerable:!0,get:function(){return function e(t,r){return r in t?t[r]:"then"in t&&"function"==typeof t.then?t.then(t=>e(t,r)):"function"==typeof t&&"default"===r?t:void 0}}})},92192:(e,t,r)=>{r.r(t),r.d(t,{config:()=>A,default:()=>E,getServerSideProps:()=>v,getStaticPaths:()=>j,getStaticProps:()=>P,reportWebVitals:()=>b,routeModule:()=>k,unstable_getServerProps:()=>I,unstable_getServerSideProps:()=>L,unstable_getStaticParams:()=>D,unstable_getStaticPaths:()=>O,unstable_getStaticProps:()=>N});var s={};r.r(s),r.d(s,{default:()=>S,getServerSideProps:()=>y});var n=r(63865),o=r(9455),a=r(30671),i=r(5583),c=r(19796),l=r(8732),u=r(82015),d=r.n(u),p=r(27912),m=r.n(p),g=r(29021),h=r.n(g),f=r(92702);r(46169),r(45731);var _=r(16757),x=r(41939);function S({user:e,query:t}){let r=(0,l.jsxs)(d().Fragment,{children:[(0,l.jsx)("title",{children:"Loging Out | Datasquirel"}),(0,l.jsx)("meta",{name:"description",content:"Login you out"}),(0,l.jsx)("script",{src:"https://accounts.google.com/gsi/client"}),(0,l.jsx)("script",{src:"https://connect.facebook.net/en_US/sdk.js",crossOrigin:"anonymous"})]});return(0,l.jsxs)(d().Fragment,{children:[(0,l.jsx)(m(),{children:r}),(0,l.jsx)("main",{className:"w-screen h-screen flex items-center justify-center p-4 md:p-8",children:(0,l.jsxs)("div",{className:"card max-w-md flex-col items-center bg-white p-6 rounded border border-slate-200 border-solid",children:[(0,l.jsxs)("a",{href:"/",className:"flex items-center gap-2",children:[(0,l.jsx)("img",{src:"/images/logo-icon-alt-2.png",alt:"Logo Icon",width:37}),(0,l.jsx)("span",{className:"font-bold text-2xl",children:"Datasquirel"})]}),(0,l.jsx)("h3",{className:"text-lg m-0 mt-4 text-slate-400",children:"Logging out"}),(0,l.jsx)(_.A,{position:"relative",width:"20px"})]})})]})}async function y({req:e,res:t,query:r}){let s=await (0,f.A)(e,t);if(s){console.log(s.csrf_k);try{let e=process.env.DSQL_USER_LOGIN_KEYS_PATH,t=`${e}/${s.csrf_k}`;console.log("allowedAuthKeyPath",t),h().unlinkSync(t)}catch(e){console.log(`Logout API error: ${e.message}`)}}let{keyCookieName:n,csrfCookieName:o}=(0,x.A)();return t.setHeader("Set-Cookie",[`${n}=none;max-age=0`,`${o}=null;max-age=0`]),{props:{user:s,logged_out:!0,query:r}}}let E=(0,a.M)(s,"default"),P=(0,a.M)(s,"getStaticProps"),j=(0,a.M)(s,"getStaticPaths"),v=(0,a.M)(s,"getServerSideProps"),A=(0,a.M)(s,"config"),b=(0,a.M)(s,"reportWebVitals"),N=(0,a.M)(s,"unstable_getStaticProps"),O=(0,a.M)(s,"unstable_getStaticPaths"),D=(0,a.M)(s,"unstable_getStaticParams"),I=(0,a.M)(s,"unstable_getServerProps"),L=(0,a.M)(s,"unstable_getServerSideProps"),k=new n.PagesRouteModule({definition:{kind:o.A.PAGES,page:"/logout",pathname:"/logout",bundlePath:"",filename:""},components:{App:c.default,Document:i.default},userland:s})},92702:(e,t,r)=>{r.d(t,{A:()=>c});var s=r(71934),n=r(71205),o=r(29021),a=r.n(o),i=r(41939);async function c(e,t,r){try{let{keyCookieName:o,csrfCookieName:c}=(0,i.A)();if(!e.cookies?.[o]?.match(/./))throw Error("Request Cookies not Found!");let l=(0,n.A)({encryptedString:e.cookies[o]});if(!l)throw Error("Couldn't decrypt auth cookie!");let u=JSON.parse(l);if(!u.csrf_k)throw Error("No `csrf_k` present in user Object!");if(r&&!Object.keys(e.headers).find(e=>e.includes(u.csrf_k)))throw console.log("req.headers",e.headers),console.log("userObject",u),Error("Deep Auth Failed. `csrf` key not found in request headers!");let d=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!d)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(r&&!a().existsSync(`${d}/${u.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==u.verification_status&&!r){let e=await (0,s.A)(`SELECT verification_status FROM users WHERE id='${u.id}'`);e&&e[0]&&1==e[0].verification_status&&t.setHeader("Set-Cookie",["user_refresh=1"])}if(u?.date&&Date.now()-u.date>6048e5)throw Error("Key expired!");return u}catch(e){return console.log(`userAuth Error: ${e.message}`),null}}},45731:(e,t,r)=>{r.d(t,{A:()=>s});async function s(){try{let e=await caches.keys();e[0]&&await Promise.all(e.map(e=>caches.delete(e)))}catch(e){console.log("Error in clearing cache =>",e.message)}}},41939:(e,t,r)=>{r.d(t,{A:()=>s});function s(e){let t=process.env.DSQL_COOKIES_PREFIX||"dsql_",r=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",n=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",o=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),a=t;e?.userId&&(a+=`user_${e.userId}_`),o&&(a+=`${o}_`),a+=r;let i=t;e?.userId&&(i+=`user_${e.userId}_`),o&&(i+=`${o}_`),i+=s;let c=t;return e?.userId&&(c+=`user_${e.userId}_`),o&&(c+=`${o}_`),{keyCookieName:a,csrfCookieName:i,oneTimeCodeName:c+=n}}},71205:(e,t,r)=>{r.d(t,{A:()=>o});var s=r(55511),n=r(79428);function o({encryptedString:e,encryptionKey:t,encryptionSalt:r}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let o=t||process.env.DSQL_ENCRYPTION_PASSWORD,a=r||process.env.DSQL_ENCRYPTION_SALT,i=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!o?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!a?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let c=(0,s.scryptSync)(o,a,i),l=n.Buffer.alloc(16,0),u=(0,s.createDecipheriv)("aes-192-cbc",c,l);try{let t=u.update(e,"hex","utf8");return t+=u.final("utf8")}catch(t){return console.log("Error in decrypting =>",t.message),e}}},71934:(e,t,r)=>{r.d(t,{A:()=>s});async function s(...e){let t=global.DSQL_DB_CONN;try{if(!t)throw Error("No Connection provided to DB_HANDLER function!");let r=await t.query(...e);return JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await t?.end()}}},5583:(e,t,r)=>{r.r(t),r.d(t,{default:()=>o});var s=r(8732);r(82015);var n=r(20883);function o(){return(0,s.jsxs)(n.Html,{lang:"en",children:[(0,s.jsxs)(n.Head,{children:[(0,s.jsx)("meta",{name:"author",content:"Datasquirel"}),(0,s.jsx)("meta",{name:"Copyright",content:`Copyright (c) ${new Date().getFullYear()} Datasquirel`}),"dev_dev".match(/dev/)&&(0,s.jsx)("meta",{name:"robots",content:"noindex,nofollow"}),(0,s.jsx)("link",{rel:"preconnect",href:"https://fonts.googleapis.com/",crossOrigin:"anonymous"}),(0,s.jsx)("link",{rel:"preconnect",href:"https://fonts.gstatic.com",crossOrigin:"anonymous"}),(0,s.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=Poppins"}),(0,s.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=Inter"}),(0,s.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=IBM+Plex+Mono"}),(0,s.jsx)("script",{src:"/scripts/themeSelector.js"}),(0,s.jsx)("meta",{httpEquiv:"Content-Type",content:"text/html; charset=UTF-8"}),(0,s.jsx)("meta",{property:"og:site_name",content:"DATASQUIREL"}),(0,s.jsx)("meta",{property:"og:type",content:"website"}),(0,s.jsx)("meta",{name:"twitter:card",content:"summary"}),(0,s.jsx)("meta",{property:"og:image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,s.jsx)("meta",{itemProp:"image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,s.jsx)("meta",{name:"twitter:image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,s.jsx)("link",{rel:"stylesheet",href:"/styles/prism.css"}),(0,s.jsx)("script",{src:"/scripts/prism.js",async:!0}),(0,s.jsx)("script",{dangerouslySetInnerHTML:{__html:"var DSQL = {}"}})]}),(0,s.jsxs)("body",{children:[(0,s.jsx)(n.Main,{}),(0,s.jsx)(n.NextScript,{})]})]})}},9455:(e,t)=>{Object.defineProperty(t,"A",{enumerable:!0,get:function(){return r}});var r=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},13893:e=>{e.exports=require("@moduletrace/datasquirel/dist/client/fetch")},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{e.exports=require("next/head")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},8732:e=>{e.exports=require("react/jsx-runtime")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")}};var t=require("../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),s=t.X(0,[883,9821,9796],()=>r(92192));module.exports=s})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/privacy.html b/dsql-app/.local_dist/server/pages/privacy.html index 37e0db4..40e9940 100644 --- a/dsql-app/.local_dist/server/pages/privacy.html +++ b/dsql-app/.local_dist/server/pages/privacy.html @@ -1 +1 @@ -Privacy Policy | Datasquirel

Privacy Policy

Privacy Policy for Datasquirel
Dotted image background

At datasquirel.com, accessible from https://datasquirel.com, one of our main priorities is the privacy of our visitors. This Privacy Policy document contains types of information that is collected and recorded by datasquirel.com and how we use it.

If you have additional questions or require more information about our Privacy Policy, do not hesitate to contact us.

This Privacy Policy applies only to our online activities and is valid for visitors to our website with regards to the information that they shared and/or collect in datasquirel.com. This policy is not applicable to any information collected offline or via channels other than this website.

Consent

By using our website, you hereby consent to our Privacy Policy and agree to its terms.

Information we collect

The personal information that you are asked to provide, and the reasons why you are asked to provide it, will be made clear to you at the point we ask you to provide your personal information.

If you contact us directly, we may receive additional information about you such as your name, email address, phone number, the contents of the message and/or attachments you may send us, and any other information you may choose to provide.

When you register for an Account, we may ask for your contact information, including items such as name, company name, address, email address, and telephone number.

How we use your information

We use the information we collect in various ways, including to:

  • Provide, operate, and maintain our website
  • Improve, personalize, and expand our website
  • Understand and analyze how you use our website
  • Develop new products, services, features, and functionality
  • Communicate with you, either directly or through one of our partners, including for customer service, to provide you with updates and other information relating to the website, and for marketing and promotional purposes
  • Send you emails
  • Find and prevent fraud

Log Files

datasquirel.com follows a standard procedure of using log files. These files log visitors when they visit websites. All hosting companies do this and a part of hosting services' analytics. The information collected by log files include internet protocol (IP) addresses, browser type, Internet Service Provider (ISP), date and time stamp, referring/exit pages, and possibly the number of clicks. These are not linked to any information that is personally identifiable. The purpose of the information is for analyzing trends, administering the site, tracking users' movement on the website, and gathering demographic information.

Cookies and Web Beacons

Like any other website, datasquirel.com uses 'cookies'. These cookies are used to store information including visitors' preferences, and the pages on the website that the visitor accessed or visited. The information is used to optimize the users' experience by customizing our web page content based on visitors' browser type and/or other information.

Advertising Partners Privacy Policies

You may consult this list to find the Privacy Policy for each of the advertising partners of datasquirel.com.

Third-party ad servers or ad networks uses technologies like cookies, JavaScript, or Web Beacons that are used in their respective advertisements and links that appear on datasquirel.com, which are sent directly to users' browser. They automatically receive your IP address when this occurs. These technologies are used to measure the effectiveness of their advertising campaigns and/or to personalize the advertising content that you see on websites that you visit.

Note that datasquirel.com has no access to or control over these cookies that are used by third-party advertisers.

Third Party Privacy Policies

datasquirel.com's Privacy Policy does not apply to other advertisers or websites. Thus, we are advising you to consult the respective Privacy Policies of these third-party ad servers for more detailed information. It may include their practices and instructions about how to opt-out of certain options.

You can choose to disable cookies through your individual browser options. To know more detailed information about cookie management with specific web browsers, it can be found at the browsers' respective websites.

CCPA Privacy Rights (Do Not Sell My Personal Information)

Under the CCPA, among other rights, California consumers have the right to:

Request that a business that collects a consumer's personal data disclose the categories and specific pieces of personal data that a business has collected about consumers.

Request that a business delete any personal data about the consumer that a business has collected.

Request that a business that sells a consumer's personal data, not sell the consumer's personal data.

If you make a request, we have one month to respond to you. If you would like to exercise any of these rights, please contact us.

GDPR Data Protection Rights

We would like to make sure you are fully aware of all of your data protection rights. Every user is entitled to the following:

The right to access – You have the right to request copies of your personal data. We may charge you a small fee for this service.

The right to rectification – You have the right to request that we correct any information you believe is inaccurate. You also have the right to request that we complete the information you believe is incomplete.

The right to erasure – You have the right to request that we erase your personal data, under certain conditions.

The right to restrict processing – You have the right to request that we restrict the processing of your personal data, under certain conditions.

The right to object to processing – You have the right to object to our processing of your personal data, under certain conditions.

The right to data portability – You have the right to request that we transfer the data that we have collected to another organization, or directly to you, under certain conditions.

If you make a request, we have one month to respond to you. If you would like to exercise any of these rights, please contact us.

Children's Information

Another part of our priority is adding protection for children while using the internet. We encourage parents and guardians to observe, participate in, and/or monitor and guide their online activity.

datasquirel.com does not knowingly collect any Personal Identifiable Information from children under the age of 13. If you think that your child provided this kind of information on our website, we strongly encourage you to contact us immediately and we will do our best efforts to promptly remove such information from our records.

\ No newline at end of file +Privacy Policy | Datasquirel

Privacy Policy

Privacy Policy for Datasquirel
Dotted image background

At datasquirel.com, accessible from https://datasquirel.com, one of our main priorities is the privacy of our visitors. This Privacy Policy document contains types of information that is collected and recorded by datasquirel.com and how we use it.

If you have additional questions or require more information about our Privacy Policy, do not hesitate to contact us.

This Privacy Policy applies only to our online activities and is valid for visitors to our website with regards to the information that they shared and/or collect in datasquirel.com. This policy is not applicable to any information collected offline or via channels other than this website.

Consent

By using our website, you hereby consent to our Privacy Policy and agree to its terms.

Information we collect

The personal information that you are asked to provide, and the reasons why you are asked to provide it, will be made clear to you at the point we ask you to provide your personal information.

If you contact us directly, we may receive additional information about you such as your name, email address, phone number, the contents of the message and/or attachments you may send us, and any other information you may choose to provide.

When you register for an Account, we may ask for your contact information, including items such as name, company name, address, email address, and telephone number.

How we use your information

We use the information we collect in various ways, including to:

  • Provide, operate, and maintain our website
  • Improve, personalize, and expand our website
  • Understand and analyze how you use our website
  • Develop new products, services, features, and functionality
  • Communicate with you, either directly or through one of our partners, including for customer service, to provide you with updates and other information relating to the website, and for marketing and promotional purposes
  • Send you emails
  • Find and prevent fraud

Log Files

datasquirel.com follows a standard procedure of using log files. These files log visitors when they visit websites. All hosting companies do this and a part of hosting services' analytics. The information collected by log files include internet protocol (IP) addresses, browser type, Internet Service Provider (ISP), date and time stamp, referring/exit pages, and possibly the number of clicks. These are not linked to any information that is personally identifiable. The purpose of the information is for analyzing trends, administering the site, tracking users' movement on the website, and gathering demographic information.

Cookies and Web Beacons

Like any other website, datasquirel.com uses 'cookies'. These cookies are used to store information including visitors' preferences, and the pages on the website that the visitor accessed or visited. The information is used to optimize the users' experience by customizing our web page content based on visitors' browser type and/or other information.

Advertising Partners Privacy Policies

You may consult this list to find the Privacy Policy for each of the advertising partners of datasquirel.com.

Third-party ad servers or ad networks uses technologies like cookies, JavaScript, or Web Beacons that are used in their respective advertisements and links that appear on datasquirel.com, which are sent directly to users' browser. They automatically receive your IP address when this occurs. These technologies are used to measure the effectiveness of their advertising campaigns and/or to personalize the advertising content that you see on websites that you visit.

Note that datasquirel.com has no access to or control over these cookies that are used by third-party advertisers.

Third Party Privacy Policies

datasquirel.com's Privacy Policy does not apply to other advertisers or websites. Thus, we are advising you to consult the respective Privacy Policies of these third-party ad servers for more detailed information. It may include their practices and instructions about how to opt-out of certain options.

You can choose to disable cookies through your individual browser options. To know more detailed information about cookie management with specific web browsers, it can be found at the browsers' respective websites.

CCPA Privacy Rights (Do Not Sell My Personal Information)

Under the CCPA, among other rights, California consumers have the right to:

Request that a business that collects a consumer's personal data disclose the categories and specific pieces of personal data that a business has collected about consumers.

Request that a business delete any personal data about the consumer that a business has collected.

Request that a business that sells a consumer's personal data, not sell the consumer's personal data.

If you make a request, we have one month to respond to you. If you would like to exercise any of these rights, please contact us.

GDPR Data Protection Rights

We would like to make sure you are fully aware of all of your data protection rights. Every user is entitled to the following:

The right to access – You have the right to request copies of your personal data. We may charge you a small fee for this service.

The right to rectification – You have the right to request that we correct any information you believe is inaccurate. You also have the right to request that we complete the information you believe is incomplete.

The right to erasure – You have the right to request that we erase your personal data, under certain conditions.

The right to restrict processing – You have the right to request that we restrict the processing of your personal data, under certain conditions.

The right to object to processing – You have the right to object to our processing of your personal data, under certain conditions.

The right to data portability – You have the right to request that we transfer the data that we have collected to another organization, or directly to you, under certain conditions.

If you make a request, we have one month to respond to you. If you would like to exercise any of these rights, please contact us.

Children's Information

Another part of our priority is adding protection for children while using the internet. We encourage parents and guardians to observe, participate in, and/or monitor and guide their online activity.

datasquirel.com does not knowingly collect any Personal Identifiable Information from children under the age of 13. If you think that your child provided this kind of information on our website, we strongly encourage you to contact us immediately and we will do our best efforts to promptly remove such information from our records.

\ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/redirect.html b/dsql-app/.local_dist/server/pages/redirect.html index ac64ca5..5d5f505 100644 --- a/dsql-app/.local_dist/server/pages/redirect.html +++ b/dsql-app/.local_dist/server/pages/redirect.html @@ -1 +1 @@ -
Datasquirel Logo
\ No newline at end of file +
Datasquirel Logo
\ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/reset-password.js b/dsql-app/.local_dist/server/pages/reset-password.js index 57525d9..5d578e5 100644 --- a/dsql-app/.local_dist/server/pages/reset-password.js +++ b/dsql-app/.local_dist/server/pages/reset-password.js @@ -1,4 +1,4 @@ -"use strict";(()=>{var e={};e.id=7537,e.ids=[3220,7537],e.modules={30671:(e,t)=>{Object.defineProperty(t,"M",{enumerable:!0,get:function(){return function e(t,r){return r in t?t[r]:"then"in t&&"function"==typeof t.then?t.then(t=>e(t,r)):"function"==typeof t&&"default"===r?t:void 0}}})},20416:(e,t,r)=>{r.r(t),r.d(t,{config:()=>D,default:()=>v,getServerSideProps:()=>N,getStaticPaths:()=>b,getStaticProps:()=>A,reportWebVitals:()=>O,routeModule:()=>k,unstable_getServerProps:()=>C,unstable_getServerSideProps:()=>L,unstable_getStaticParams:()=>q,unstable_getStaticPaths:()=>R,unstable_getStaticProps:()=>I});var s={};r.r(s),r.d(s,{ResetPasswordContext:()=>w,default:()=>P,getServerSideProps:()=>E});var n=r(63865),a=r(9455),o=r(30671),i=r(5583),c=r(19796),l=r(8732),u=r(82015),d=r.n(u),p=r(1013),m=r(91258),g=r(16757),f=r(92702),h=r(46169),x=r(90048),S=r(71205),_=r(77047),y=r(27825),j=r.n(y);let w=d().createContext({});function P(e){let{email:t}=e,r="Reset Password | Datasquirel",s="Set a new password",n=(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("title",{children:r}),(0,l.jsx)("meta",{name:"description",content:s}),(0,l.jsx)(m.A,{pageTitle:r,pageDescription:s,pagePathname:"/"})]}),[a,o]=d().useState(!1),[i,c]=d().useState(!1);return(0,l.jsx)(p.A,{head:n,user:e.user,children:(0,l.jsx)(w.Provider,{value:{user:e.user},children:(0,l.jsx)("main",{children:(0,l.jsxs)("section",{children:[a&&(0,l.jsx)(g.A,{}),(0,l.jsx)("div",{className:"main-container flex-col items-start",children:i?(0,l.jsx)(x.A,{message:"Password Updated Sucessfully. Redirecting you ..."}):(0,l.jsxs)(d().Fragment,{children:[(0,l.jsx)("h1",{className:"m-0 text-4xl",children:"Reset Password"}),(0,l.jsx)("span",{children:"Please enter new passord and confirm it"}),(0,l.jsxs)("form",{className:"max-w-xl w-full flex flex-col items-stretch gap-4",onSubmit:e=>{o(!0),e.preventDefault();let r=e.target,s=r.password.value,n=r["confirm-password"].classList.contains("warning");if(s?.length<8){window.alert("Password must be at least 8 characters"),setTimeout(()=>{o(!1)},500);return}if(n){window.alert("Passwords don't match"),setTimeout(()=>{o(!1)},500);return}(0,h.A)(`/api/resetPassword?email=${t}&password=${s}`).then(e=>{setTimeout(()=>{o(!1)},500),setTimeout(()=>{window.location.href="/logout?login=true"},1e3),e.success&&c(!0)})},children:[(0,l.jsx)("input",{type:"password",name:"password",id:"password",className:"w-full",placeholder:"New Password",required:!0}),(0,l.jsx)("input",{type:"password",name:"confirm-password",id:"confirm-password",className:"w-full",placeholder:"Confirm New Password",required:!0,onInput:e=>{let t=e.target,r=t.closest("form");try{r.password.value.match(RegExp(`^${j().escapeRegExp(t.value)}$`))?t.classList.remove("warning"):t.classList.add("warning")}catch(t){(0,h.A)("/api/admin/clientError",{method:"post",body:{component:"reset-password-page-component/lines-170-177",message:t.message,user:{}}}),e.target.classList.add("warning")}}}),(0,l.jsx)("button",{children:"Reset Password"})]})]})})]})})})})}async function E({req:e,res:t,query:r}){let s=await (0,f.A)(e,t);if(!r?.token?.toString()?.match(/./))return{redirect:{destination:"/",permanent:!1}};let n=null;try{let e=(0,S.A)({encryptedString:r.token.toString()}),t=JSON.parse(e||"");if(Date.now()-t.dateCode>36e5)return{redirect:{destination:"/",permanent:!1}};n=t.email}catch(e){return(0,_.A)({component:"reset-password-page-component/getServersideProps/lines-251-260",message:e.message,user:s}),{redirect:{destination:"/",permanent:!1}}}return n?.match(/./)?{props:{user:s,email:n}}:{redirect:{destination:"/",permanent:!1}}}let v=(0,o.M)(s,"default"),A=(0,o.M)(s,"getStaticProps"),b=(0,o.M)(s,"getStaticPaths"),N=(0,o.M)(s,"getServerSideProps"),D=(0,o.M)(s,"config"),O=(0,o.M)(s,"reportWebVitals"),I=(0,o.M)(s,"unstable_getStaticProps"),R=(0,o.M)(s,"unstable_getStaticPaths"),q=(0,o.M)(s,"unstable_getStaticParams"),C=(0,o.M)(s,"unstable_getServerProps"),L=(0,o.M)(s,"unstable_getServerSideProps"),k=new n.PagesRouteModule({definition:{kind:a.A.PAGES,page:"/reset-password",pathname:"/reset-password",bundlePath:"",filename:""},components:{App:c.default,Document:i.default},userland:s})},90048:(e,t,r)=>{r.d(t,{A:()=>n});var s=r(8732);function n({message:e,className:t}){return(0,s.jsxs)("div",{className:"info green"+(t?" "+t:""),children:[(0,s.jsx)("img",{src:"/images/checkmark.svg",alt:"Warning Image Icon",width:22,className:"-my-2"}),(0,s.jsx)("span",{children:e})]})}r(82015)},91258:(e,t,r)=>{r.d(t,{A:()=>o});var s=r(8732),n=r(82015),a=r.n(n);function o({pageTitle:e,pageDescription:t,pagePathname:r,aceEditor:n}){return(0,s.jsxs)(a().Fragment,{children:[(0,s.jsx)("link",{rel:"canonical",href:"http://localhost:7070"+r}),(0,s.jsx)("meta",{property:"og:url",content:"http://localhost:7070"+r}),(0,s.jsx)("meta",{itemProp:"url",content:"http://localhost:7070"+r}),(0,s.jsx)("meta",{name:"twitter:url",content:"http://localhost:7070"+r}),(0,s.jsx)("meta",{property:"og:title",content:e}),(0,s.jsx)("meta",{property:"og:description",content:t}),(0,s.jsx)("meta",{itemProp:"name",content:e}),(0,s.jsx)("meta",{itemProp:"description",content:t}),(0,s.jsx)("meta",{name:"twitter:title",content:e}),(0,s.jsx)("meta",{name:"twitter:description",content:t}),n&&(0,s.jsxs)(a().Fragment,{children:[(0,s.jsx)("script",{src:"https://cdnjs.cloudflare.com/ajax/libs/ace/1.22.0/ace.min.js",integrity:"sha512-q6CTB0jS+VuJnSct82rVcWlI06LGzNjaG3CWenHWVUncRvc4UQMFkA3a5Ip880xr+lBx38FcHDclOxPdSg+sBw==",crossOrigin:"anonymous",referrerPolicy:"no-referrer"}),(0,s.jsx)("script",{src:"https://cdnjs.cloudflare.com/ajax/libs/ace/1.22.0/ext-language_tools.min.js",integrity:"sha512-6g6cvocV7eT/J8L44lL8gJKqq9onqQeYGgJO0DmrsYFcCfRl6wYkYA/KHS768r4QVTB4JxsCcMQ9gIezxpTCZw==",crossOrigin:"anonymous",referrerPolicy:"no-referrer"})]})]})}},92702:(e,t,r)=>{r.d(t,{A:()=>c});var s=r(71934),n=r(71205),a=r(29021),o=r.n(a),i=r(41939);async function c(e,t,r){try{let{keyCookieName:a,csrfCookieName:c}=(0,i.A)();if(!e.cookies?.[a]?.match(/./))throw Error("Request Cookies not Found!");let l=(0,n.A)({encryptedString:e.cookies[a]});if(!l)throw Error("Couldn't decrypt auth cookie!");let u=JSON.parse(l);if(!u.csrf_k)throw Error("No `csrf_k` present in user Object!");if(r&&!Object.keys(e.headers).find(e=>e.includes(u.csrf_k)))throw Error("Deep Auth Failed. `csrf` key not found in request headers!");let d=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!d)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(r&&!o().existsSync(`${d}/${u.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==u.verification_status&&!r){let e=await (0,s.A)(`SELECT verification_status FROM users WHERE id='${u.id}'`);e&&e[0]&&1==e[0].verification_status&&t.setHeader("Set-Cookie",["user_refresh=1"])}if(u?.date&&Date.now()-u.date>6048e5)throw Error("Key expired!");return u}catch(e){return console.log(`userAuth Error: ${e.message}`),null}}},41939:(e,t,r)=>{r.d(t,{A:()=>s});function s(e){let t=process.env.DSQL_COOKIES_PREFIX||"dsql_",r=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",n=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",a=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),o=t;e?.userId&&(o+=`user_${e.userId}_`),a&&(o+=`${a}_`),o+=r;let i=t;e?.userId&&(i+=`user_${e.userId}_`),a&&(i+=`${a}_`),i+=s;let c=t;return e?.userId&&(c+=`user_${e.userId}_`),a&&(c+=`${a}_`),{keyCookieName:o,csrfCookieName:i,oneTimeCodeName:c+=n}}},77047:(e,t,r)=>{r.d(t,{A:()=>a});var s=r(29021),n=r.n(s);async function a({user:e,message:t,component:r,noMail:s,req:a}){let o=new Date,i=(()=>{if(!a)return null;try{let e=a.headers["x-forwarded-for"],t=a.headers["x-real-ip"],r=a.headers["cf-connecting-ip"],s=Array.isArray(e)?e[0]:e?.split(",")[0],n=r||s||t||a.socket.remoteAddress;if(!n)return null;return String(n)}catch(e){return null}})();try{let s=`🚀 SERVER ERROR =========================== +"use strict";(()=>{var e={};e.id=7537,e.ids=[3220,7537],e.modules={30671:(e,t)=>{Object.defineProperty(t,"M",{enumerable:!0,get:function(){return function e(t,r){return r in t?t[r]:"then"in t&&"function"==typeof t.then?t.then(t=>e(t,r)):"function"==typeof t&&"default"===r?t:void 0}}})},20416:(e,t,r)=>{r.r(t),r.d(t,{config:()=>D,default:()=>v,getServerSideProps:()=>N,getStaticPaths:()=>b,getStaticProps:()=>A,reportWebVitals:()=>O,routeModule:()=>k,unstable_getServerProps:()=>C,unstable_getServerSideProps:()=>L,unstable_getStaticParams:()=>R,unstable_getStaticPaths:()=>I,unstable_getStaticProps:()=>q});var s={};r.r(s),r.d(s,{ResetPasswordContext:()=>w,default:()=>P,getServerSideProps:()=>E});var n=r(63865),a=r(9455),o=r(30671),i=r(5583),c=r(19796),l=r(8732),d=r(82015),u=r.n(d),p=r(1013),m=r(91258),g=r(16757),f=r(92702),h=r(46169),x=r(90048),S=r(71205),_=r(77047),y=r(27825),j=r.n(y);let w=u().createContext({});function P(e){let{email:t}=e,r="Reset Password | Datasquirel",s="Set a new password",n=(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("title",{children:r}),(0,l.jsx)("meta",{name:"description",content:s}),(0,l.jsx)(m.A,{pageTitle:r,pageDescription:s,pagePathname:"/"})]}),[a,o]=u().useState(!1),[i,c]=u().useState(!1);return(0,l.jsx)(p.A,{head:n,user:e.user,children:(0,l.jsx)(w.Provider,{value:{user:e.user},children:(0,l.jsx)("main",{children:(0,l.jsxs)("section",{children:[a&&(0,l.jsx)(g.A,{}),(0,l.jsx)("div",{className:"main-container flex-col items-start",children:i?(0,l.jsx)(x.A,{message:"Password Updated Sucessfully. Redirecting you ..."}):(0,l.jsxs)(u().Fragment,{children:[(0,l.jsx)("h1",{className:"m-0 text-4xl",children:"Reset Password"}),(0,l.jsx)("span",{children:"Please enter new passord and confirm it"}),(0,l.jsxs)("form",{className:"max-w-xl w-full flex flex-col items-stretch gap-4",onSubmit:e=>{o(!0),e.preventDefault();let r=e.target,s=r.password.value,n=r["confirm-password"].classList.contains("warning");if(s?.length<8){window.alert("Password must be at least 8 characters"),setTimeout(()=>{o(!1)},500);return}if(n){window.alert("Passwords don't match"),setTimeout(()=>{o(!1)},500);return}(0,h.A)(`/api/resetPassword?email=${t}&password=${s}`).then(e=>{setTimeout(()=>{o(!1)},500),setTimeout(()=>{window.location.href="/logout?login=true"},1e3),e.success&&c(!0)})},children:[(0,l.jsx)("input",{type:"password",name:"password",id:"password",className:"w-full",placeholder:"New Password",required:!0}),(0,l.jsx)("input",{type:"password",name:"confirm-password",id:"confirm-password",className:"w-full",placeholder:"Confirm New Password",required:!0,onInput:e=>{let t=e.target,r=t.closest("form");try{r.password.value.match(RegExp(`^${j().escapeRegExp(t.value)}$`))?t.classList.remove("warning"):t.classList.add("warning")}catch(t){(0,h.A)("/api/admin/clientError",{method:"post",body:{component:"reset-password-page-component/lines-170-177",message:t.message,user:{}}}),e.target.classList.add("warning")}}}),(0,l.jsx)("button",{children:"Reset Password"})]})]})})]})})})})}async function E({req:e,res:t,query:r}){let s=await (0,f.A)(e,t);if(!r?.token?.toString()?.match(/./))return{redirect:{destination:"/",permanent:!1}};let n=null;try{let e=(0,S.A)({encryptedString:r.token.toString()}),t=JSON.parse(e||"");if(Date.now()-t.dateCode>36e5)return{redirect:{destination:"/",permanent:!1}};n=t.email}catch(e){return(0,_.A)({component:"reset-password-page-component/getServersideProps/lines-251-260",message:e.message,user:s}),{redirect:{destination:"/",permanent:!1}}}return n?.match(/./)?{props:{user:s,email:n}}:{redirect:{destination:"/",permanent:!1}}}let v=(0,o.M)(s,"default"),A=(0,o.M)(s,"getStaticProps"),b=(0,o.M)(s,"getStaticPaths"),N=(0,o.M)(s,"getServerSideProps"),D=(0,o.M)(s,"config"),O=(0,o.M)(s,"reportWebVitals"),q=(0,o.M)(s,"unstable_getStaticProps"),I=(0,o.M)(s,"unstable_getStaticPaths"),R=(0,o.M)(s,"unstable_getStaticParams"),C=(0,o.M)(s,"unstable_getServerProps"),L=(0,o.M)(s,"unstable_getServerSideProps"),k=new n.PagesRouteModule({definition:{kind:a.A.PAGES,page:"/reset-password",pathname:"/reset-password",bundlePath:"",filename:""},components:{App:c.default,Document:i.default},userland:s})},90048:(e,t,r)=>{r.d(t,{A:()=>n});var s=r(8732);function n({message:e,className:t}){return(0,s.jsxs)("div",{className:"info green"+(t?" "+t:""),children:[(0,s.jsx)("img",{src:"/images/checkmark.svg",alt:"Warning Image Icon",width:22,className:"-my-2"}),(0,s.jsx)("span",{children:e})]})}r(82015)},91258:(e,t,r)=>{r.d(t,{A:()=>o});var s=r(8732),n=r(82015),a=r.n(n);function o({pageTitle:e,pageDescription:t,pagePathname:r,aceEditor:n}){return(0,s.jsxs)(a().Fragment,{children:[(0,s.jsx)("link",{rel:"canonical",href:"http://localhost:7070"+r}),(0,s.jsx)("meta",{property:"og:url",content:"http://localhost:7070"+r}),(0,s.jsx)("meta",{itemProp:"url",content:"http://localhost:7070"+r}),(0,s.jsx)("meta",{name:"twitter:url",content:"http://localhost:7070"+r}),(0,s.jsx)("meta",{property:"og:title",content:e}),(0,s.jsx)("meta",{property:"og:description",content:t}),(0,s.jsx)("meta",{itemProp:"name",content:e}),(0,s.jsx)("meta",{itemProp:"description",content:t}),(0,s.jsx)("meta",{name:"twitter:title",content:e}),(0,s.jsx)("meta",{name:"twitter:description",content:t}),n&&(0,s.jsxs)(a().Fragment,{children:[(0,s.jsx)("script",{src:"https://cdnjs.cloudflare.com/ajax/libs/ace/1.22.0/ace.min.js",integrity:"sha512-q6CTB0jS+VuJnSct82rVcWlI06LGzNjaG3CWenHWVUncRvc4UQMFkA3a5Ip880xr+lBx38FcHDclOxPdSg+sBw==",crossOrigin:"anonymous",referrerPolicy:"no-referrer"}),(0,s.jsx)("script",{src:"https://cdnjs.cloudflare.com/ajax/libs/ace/1.22.0/ext-language_tools.min.js",integrity:"sha512-6g6cvocV7eT/J8L44lL8gJKqq9onqQeYGgJO0DmrsYFcCfRl6wYkYA/KHS768r4QVTB4JxsCcMQ9gIezxpTCZw==",crossOrigin:"anonymous",referrerPolicy:"no-referrer"})]})]})}},92702:(e,t,r)=>{r.d(t,{A:()=>c});var s=r(71934),n=r(71205),a=r(29021),o=r.n(a),i=r(41939);async function c(e,t,r){try{let{keyCookieName:a,csrfCookieName:c}=(0,i.A)();if(!e.cookies?.[a]?.match(/./))throw Error("Request Cookies not Found!");let l=(0,n.A)({encryptedString:e.cookies[a]});if(!l)throw Error("Couldn't decrypt auth cookie!");let d=JSON.parse(l);if(!d.csrf_k)throw Error("No `csrf_k` present in user Object!");if(r&&!Object.keys(e.headers).find(e=>e.includes(d.csrf_k)))throw console.log("req.headers",e.headers),console.log("userObject",d),Error("Deep Auth Failed. `csrf` key not found in request headers!");let u=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!u)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(r&&!o().existsSync(`${u}/${d.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==d.verification_status&&!r){let e=await (0,s.A)(`SELECT verification_status FROM users WHERE id='${d.id}'`);e&&e[0]&&1==e[0].verification_status&&t.setHeader("Set-Cookie",["user_refresh=1"])}if(d?.date&&Date.now()-d.date>6048e5)throw Error("Key expired!");return d}catch(e){return console.log(`userAuth Error: ${e.message}`),null}}},41939:(e,t,r)=>{r.d(t,{A:()=>s});function s(e){let t=process.env.DSQL_COOKIES_PREFIX||"dsql_",r=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",n=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",a=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),o=t;e?.userId&&(o+=`user_${e.userId}_`),a&&(o+=`${a}_`),o+=r;let i=t;e?.userId&&(i+=`user_${e.userId}_`),a&&(i+=`${a}_`),i+=s;let c=t;return e?.userId&&(c+=`user_${e.userId}_`),a&&(c+=`${a}_`),{keyCookieName:o,csrfCookieName:i,oneTimeCodeName:c+=n}}},77047:(e,t,r)=>{r.d(t,{A:()=>a});var s=r(29021),n=r.n(s);async function a({user:e,message:t,component:r,noMail:s,req:a}){let o=new Date,i=(()=>{if(!a)return null;try{let e=a.headers["x-forwarded-for"],t=a.headers["x-real-ip"],r=a.headers["cf-connecting-ip"],s=Array.isArray(e)?e[0]:e?.split(",")[0],n=r||s||t||a.socket.remoteAddress;if(!n)return null;return String(n)}catch(e){return null}})();try{let s=`🚀 SERVER ERROR =========================== Error Message: ${t} Component: ${r}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(s+=` User Id: ${e?.id} @@ -13,4 +13,4 @@ Date: ${o.toDateString()} -${c}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},71205:(e,t,r)=>{r.d(t,{A:()=>a});var s=r(55511),n=r(79428);function a({encryptedString:e,encryptionKey:t,encryptionSalt:r}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let a=t||process.env.DSQL_ENCRYPTION_PASSWORD,o=r||process.env.DSQL_ENCRYPTION_SALT,i=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!a?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!o?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let c=(0,s.scryptSync)(a,o,i),l=n.Buffer.alloc(16,0),u=(0,s.createDecipheriv)("aes-192-cbc",c,l);try{let t=u.update(e,"hex","utf8");return t+=u.final("utf8")}catch(t){return console.log("Error in decrypting =>",t.message),e}}},71934:(e,t,r)=>{r.d(t,{A:()=>s});async function s(...e){let t=global.DSQL_DB_CONN;try{if(!t)throw Error("No Connection provided to DB_HANDLER function!");let r=await t.query(...e);return JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await t?.end()}}},5583:(e,t,r)=>{r.r(t),r.d(t,{default:()=>a});var s=r(8732);r(82015);var n=r(20883);function a(){return(0,s.jsxs)(n.Html,{lang:"en",children:[(0,s.jsxs)(n.Head,{children:[(0,s.jsx)("meta",{name:"author",content:"Datasquirel"}),(0,s.jsx)("meta",{name:"Copyright",content:`Copyright (c) ${new Date().getFullYear()} Datasquirel`}),"dev_dev".match(/dev/)&&(0,s.jsx)("meta",{name:"robots",content:"noindex,nofollow"}),(0,s.jsx)("link",{rel:"preconnect",href:"https://fonts.googleapis.com/",crossOrigin:"anonymous"}),(0,s.jsx)("link",{rel:"preconnect",href:"https://fonts.gstatic.com",crossOrigin:"anonymous"}),(0,s.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=Poppins"}),(0,s.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=Inter"}),(0,s.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=IBM+Plex+Mono"}),(0,s.jsx)("script",{src:"/scripts/themeSelector.js"}),(0,s.jsx)("meta",{httpEquiv:"Content-Type",content:"text/html; charset=UTF-8"}),(0,s.jsx)("meta",{property:"og:site_name",content:"DATASQUIREL"}),(0,s.jsx)("meta",{property:"og:type",content:"website"}),(0,s.jsx)("meta",{name:"twitter:card",content:"summary"}),(0,s.jsx)("meta",{property:"og:image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,s.jsx)("meta",{itemProp:"image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,s.jsx)("meta",{name:"twitter:image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,s.jsx)("link",{rel:"stylesheet",href:"/styles/prism.css"}),(0,s.jsx)("script",{src:"/scripts/prism.js",async:!0}),(0,s.jsx)("script",{dangerouslySetInnerHTML:{__html:"var DSQL = {}"}})]}),(0,s.jsxs)("body",{children:[(0,s.jsx)(n.Main,{}),(0,s.jsx)(n.NextScript,{})]})]})}},9455:(e,t)=>{Object.defineProperty(t,"A",{enumerable:!0,get:function(){return r}});var r=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},13893:e=>{e.exports=require("@moduletrace/datasquirel/dist/client/fetch")},27825:e=>{e.exports=require("lodash")},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{e.exports=require("next/head")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},8732:e=>{e.exports=require("react/jsx-runtime")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")}};var t=require("../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),s=t.X(0,[883,9821,9796],()=>r(20416));module.exports=s})(); \ No newline at end of file +${c}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},71205:(e,t,r)=>{r.d(t,{A:()=>a});var s=r(55511),n=r(79428);function a({encryptedString:e,encryptionKey:t,encryptionSalt:r}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let a=t||process.env.DSQL_ENCRYPTION_PASSWORD,o=r||process.env.DSQL_ENCRYPTION_SALT,i=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!a?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!o?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let c=(0,s.scryptSync)(a,o,i),l=n.Buffer.alloc(16,0),d=(0,s.createDecipheriv)("aes-192-cbc",c,l);try{let t=d.update(e,"hex","utf8");return t+=d.final("utf8")}catch(t){return console.log("Error in decrypting =>",t.message),e}}},71934:(e,t,r)=>{r.d(t,{A:()=>s});async function s(...e){let t=global.DSQL_DB_CONN;try{if(!t)throw Error("No Connection provided to DB_HANDLER function!");let r=await t.query(...e);return JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await t?.end()}}},5583:(e,t,r)=>{r.r(t),r.d(t,{default:()=>a});var s=r(8732);r(82015);var n=r(20883);function a(){return(0,s.jsxs)(n.Html,{lang:"en",children:[(0,s.jsxs)(n.Head,{children:[(0,s.jsx)("meta",{name:"author",content:"Datasquirel"}),(0,s.jsx)("meta",{name:"Copyright",content:`Copyright (c) ${new Date().getFullYear()} Datasquirel`}),"dev_dev".match(/dev/)&&(0,s.jsx)("meta",{name:"robots",content:"noindex,nofollow"}),(0,s.jsx)("link",{rel:"preconnect",href:"https://fonts.googleapis.com/",crossOrigin:"anonymous"}),(0,s.jsx)("link",{rel:"preconnect",href:"https://fonts.gstatic.com",crossOrigin:"anonymous"}),(0,s.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=Poppins"}),(0,s.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=Inter"}),(0,s.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=IBM+Plex+Mono"}),(0,s.jsx)("script",{src:"/scripts/themeSelector.js"}),(0,s.jsx)("meta",{httpEquiv:"Content-Type",content:"text/html; charset=UTF-8"}),(0,s.jsx)("meta",{property:"og:site_name",content:"DATASQUIREL"}),(0,s.jsx)("meta",{property:"og:type",content:"website"}),(0,s.jsx)("meta",{name:"twitter:card",content:"summary"}),(0,s.jsx)("meta",{property:"og:image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,s.jsx)("meta",{itemProp:"image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,s.jsx)("meta",{name:"twitter:image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,s.jsx)("link",{rel:"stylesheet",href:"/styles/prism.css"}),(0,s.jsx)("script",{src:"/scripts/prism.js",async:!0}),(0,s.jsx)("script",{dangerouslySetInnerHTML:{__html:"var DSQL = {}"}})]}),(0,s.jsxs)("body",{children:[(0,s.jsx)(n.Main,{}),(0,s.jsx)(n.NextScript,{})]})]})}},9455:(e,t)=>{Object.defineProperty(t,"A",{enumerable:!0,get:function(){return r}});var r=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},13893:e=>{e.exports=require("@moduletrace/datasquirel/dist/client/fetch")},27825:e=>{e.exports=require("lodash")},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{e.exports=require("next/head")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},8732:e=>{e.exports=require("react/jsx-runtime")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")}};var t=require("../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),s=t.X(0,[883,9821,9796],()=>r(20416));module.exports=s})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/send-password-reset-link.js b/dsql-app/.local_dist/server/pages/send-password-reset-link.js index ad7f00f..2733d38 100644 --- a/dsql-app/.local_dist/server/pages/send-password-reset-link.js +++ b/dsql-app/.local_dist/server/pages/send-password-reset-link.js @@ -1 +1 @@ -"use strict";(()=>{var e={};e.id=6827,e.ids=[3220,6827],e.modules={30671:(e,t)=>{Object.defineProperty(t,"M",{enumerable:!0,get:function(){return function e(t,r){return r in t?t[r]:"then"in t&&"function"==typeof t.then?t.then(t=>e(t,r)):"function"==typeof t&&"default"===r?t:void 0}}})},90678:(e,t,r)=>{r.r(t),r.d(t,{config:()=>b,default:()=>v,getServerSideProps:()=>w,getStaticPaths:()=>A,getStaticProps:()=>E,reportWebVitals:()=>N,routeModule:()=>C,unstable_getServerProps:()=>I,unstable_getServerSideProps:()=>q,unstable_getStaticParams:()=>O,unstable_getStaticPaths:()=>D,unstable_getStaticProps:()=>k});var s={};r.r(s),r.d(s,{SendPassResetContext:()=>S,default:()=>y,getServerSideProps:()=>P});var a=r(63865),n=r(9455),i=r(30671),o=r(5583),c=r(19796),l=r(8732),u=r(82015),d=r.n(u),p=r(1013),m=r(91258),h=r(16757),f=r(92702),g=r(46169),x=r(90048);let _=(0,r(82544).A)("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);function j({message:e}){return(0,l.jsxs)("div",{className:"info gray",children:[(0,l.jsx)(_,{}),(0,l.jsx)("span",{className:"font-normal",children:e})]})}let S=d().createContext({});function y(e){let t="Cloudbased SQL data management system | Datasquirel",r="Datasquirel is a fast and efficient cloud-based SQL data management system that takes away the entire hassle of dealing with data both locally and across different platforms.",s=(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("title",{children:t}),(0,l.jsx)("meta",{name:"description",content:r}),(0,l.jsx)(m.A,{pageTitle:t,pageDescription:r,pagePathname:"/"})]}),[a,n]=d().useState(!1),[i,o]=d().useState(!1);return(0,l.jsx)(p.A,{head:s,user:e.user,children:(0,l.jsx)(S.Provider,{value:{user:e.user},children:(0,l.jsx)("main",{children:(0,l.jsxs)("section",{children:[a&&(0,l.jsx)(h.A,{}),i?(0,l.jsx)(x.A,{message:"Email Sent. Please check your email address and follow the link provided",className:"whitespace-nowrap"}):(0,l.jsx)("div",{className:"paper",children:(0,l.jsxs)("div",{className:"max-w-xl flex-col items-stretch",children:[(0,l.jsx)("h1",{className:"m-0 text-4xl",children:"Send Password Reset Link"}),(0,l.jsx)("span",{children:"Please enter your email address to receive a password reset link"}),(0,l.jsxs)("form",{className:"w-full flex flex-col items-stretch gap-4",onSubmit:e=>{n(!0),e.preventDefault();let t=e.target["email-address"].value;(0,g.A)(`/api/sendPasswordResetLink?email=${t}`).then(e=>{console.log(e),setTimeout(()=>{n(!1)},500),e.success&&o(!0)})},children:[(0,l.jsx)("input",{type:"text",autoComplete:"email",name:"email-address",id:"email-address",className:"w-full",placeholder:"Email Address",defaultValue:e?.user?.logged_in_status?e.user.email:"",required:!0}),(0,l.jsx)("button",{children:"Send password reset Email"}),(0,l.jsx)(j,{message:"Please note that this link will expire after 1 hour"})]})]})})]})})})})}async function P({req:e,res:t}){let r=await (0,f.A)(e,t);return r?.social_login?{redirect:{destination:"/",permanent:!1}}:{props:{user:r}}}let v=(0,i.M)(s,"default"),E=(0,i.M)(s,"getStaticProps"),A=(0,i.M)(s,"getStaticPaths"),w=(0,i.M)(s,"getServerSideProps"),b=(0,i.M)(s,"config"),N=(0,i.M)(s,"reportWebVitals"),k=(0,i.M)(s,"unstable_getStaticProps"),D=(0,i.M)(s,"unstable_getStaticPaths"),O=(0,i.M)(s,"unstable_getStaticParams"),I=(0,i.M)(s,"unstable_getServerProps"),q=(0,i.M)(s,"unstable_getServerSideProps"),C=new a.PagesRouteModule({definition:{kind:n.A.PAGES,page:"/send-password-reset-link",pathname:"/send-password-reset-link",bundlePath:"",filename:""},components:{App:c.default,Document:o.default},userland:s})},90048:(e,t,r)=>{r.d(t,{A:()=>a});var s=r(8732);function a({message:e,className:t}){return(0,s.jsxs)("div",{className:"info green"+(t?" "+t:""),children:[(0,s.jsx)("img",{src:"/images/checkmark.svg",alt:"Warning Image Icon",width:22,className:"-my-2"}),(0,s.jsx)("span",{children:e})]})}r(82015)},91258:(e,t,r)=>{r.d(t,{A:()=>i});var s=r(8732),a=r(82015),n=r.n(a);function i({pageTitle:e,pageDescription:t,pagePathname:r,aceEditor:a}){return(0,s.jsxs)(n().Fragment,{children:[(0,s.jsx)("link",{rel:"canonical",href:"http://localhost:7070"+r}),(0,s.jsx)("meta",{property:"og:url",content:"http://localhost:7070"+r}),(0,s.jsx)("meta",{itemProp:"url",content:"http://localhost:7070"+r}),(0,s.jsx)("meta",{name:"twitter:url",content:"http://localhost:7070"+r}),(0,s.jsx)("meta",{property:"og:title",content:e}),(0,s.jsx)("meta",{property:"og:description",content:t}),(0,s.jsx)("meta",{itemProp:"name",content:e}),(0,s.jsx)("meta",{itemProp:"description",content:t}),(0,s.jsx)("meta",{name:"twitter:title",content:e}),(0,s.jsx)("meta",{name:"twitter:description",content:t}),a&&(0,s.jsxs)(n().Fragment,{children:[(0,s.jsx)("script",{src:"https://cdnjs.cloudflare.com/ajax/libs/ace/1.22.0/ace.min.js",integrity:"sha512-q6CTB0jS+VuJnSct82rVcWlI06LGzNjaG3CWenHWVUncRvc4UQMFkA3a5Ip880xr+lBx38FcHDclOxPdSg+sBw==",crossOrigin:"anonymous",referrerPolicy:"no-referrer"}),(0,s.jsx)("script",{src:"https://cdnjs.cloudflare.com/ajax/libs/ace/1.22.0/ext-language_tools.min.js",integrity:"sha512-6g6cvocV7eT/J8L44lL8gJKqq9onqQeYGgJO0DmrsYFcCfRl6wYkYA/KHS768r4QVTB4JxsCcMQ9gIezxpTCZw==",crossOrigin:"anonymous",referrerPolicy:"no-referrer"})]})]})}},92702:(e,t,r)=>{r.d(t,{A:()=>c});var s=r(71934),a=r(71205),n=r(29021),i=r.n(n),o=r(41939);async function c(e,t,r){try{let{keyCookieName:n,csrfCookieName:c}=(0,o.A)();if(!e.cookies?.[n]?.match(/./))throw Error("Request Cookies not Found!");let l=(0,a.A)({encryptedString:e.cookies[n]});if(!l)throw Error("Couldn't decrypt auth cookie!");let u=JSON.parse(l);if(!u.csrf_k)throw Error("No `csrf_k` present in user Object!");if(r&&!Object.keys(e.headers).find(e=>e.includes(u.csrf_k)))throw Error("Deep Auth Failed. `csrf` key not found in request headers!");let d=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!d)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(r&&!i().existsSync(`${d}/${u.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==u.verification_status&&!r){let e=await (0,s.A)(`SELECT verification_status FROM users WHERE id='${u.id}'`);e&&e[0]&&1==e[0].verification_status&&t.setHeader("Set-Cookie",["user_refresh=1"])}if(u?.date&&Date.now()-u.date>6048e5)throw Error("Key expired!");return u}catch(e){return console.log(`userAuth Error: ${e.message}`),null}}},41939:(e,t,r)=>{r.d(t,{A:()=>s});function s(e){let t=process.env.DSQL_COOKIES_PREFIX||"dsql_",r=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",a=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",n=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),i=t;e?.userId&&(i+=`user_${e.userId}_`),n&&(i+=`${n}_`),i+=r;let o=t;e?.userId&&(o+=`user_${e.userId}_`),n&&(o+=`${n}_`),o+=s;let c=t;return e?.userId&&(c+=`user_${e.userId}_`),n&&(c+=`${n}_`),{keyCookieName:i,csrfCookieName:o,oneTimeCodeName:c+=a}}},71205:(e,t,r)=>{r.d(t,{A:()=>n});var s=r(55511),a=r(79428);function n({encryptedString:e,encryptionKey:t,encryptionSalt:r}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let n=t||process.env.DSQL_ENCRYPTION_PASSWORD,i=r||process.env.DSQL_ENCRYPTION_SALT,o=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!n?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let c=(0,s.scryptSync)(n,i,o),l=a.Buffer.alloc(16,0),u=(0,s.createDecipheriv)("aes-192-cbc",c,l);try{let t=u.update(e,"hex","utf8");return t+=u.final("utf8")}catch(t){return console.log("Error in decrypting =>",t.message),e}}},71934:(e,t,r)=>{r.d(t,{A:()=>s});async function s(...e){let t=global.DSQL_DB_CONN;try{if(!t)throw Error("No Connection provided to DB_HANDLER function!");let r=await t.query(...e);return JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await t?.end()}}},5583:(e,t,r)=>{r.r(t),r.d(t,{default:()=>n});var s=r(8732);r(82015);var a=r(20883);function n(){return(0,s.jsxs)(a.Html,{lang:"en",children:[(0,s.jsxs)(a.Head,{children:[(0,s.jsx)("meta",{name:"author",content:"Datasquirel"}),(0,s.jsx)("meta",{name:"Copyright",content:`Copyright (c) ${new Date().getFullYear()} Datasquirel`}),"dev_dev".match(/dev/)&&(0,s.jsx)("meta",{name:"robots",content:"noindex,nofollow"}),(0,s.jsx)("link",{rel:"preconnect",href:"https://fonts.googleapis.com/",crossOrigin:"anonymous"}),(0,s.jsx)("link",{rel:"preconnect",href:"https://fonts.gstatic.com",crossOrigin:"anonymous"}),(0,s.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=Poppins"}),(0,s.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=Inter"}),(0,s.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=IBM+Plex+Mono"}),(0,s.jsx)("script",{src:"/scripts/themeSelector.js"}),(0,s.jsx)("meta",{httpEquiv:"Content-Type",content:"text/html; charset=UTF-8"}),(0,s.jsx)("meta",{property:"og:site_name",content:"DATASQUIREL"}),(0,s.jsx)("meta",{property:"og:type",content:"website"}),(0,s.jsx)("meta",{name:"twitter:card",content:"summary"}),(0,s.jsx)("meta",{property:"og:image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,s.jsx)("meta",{itemProp:"image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,s.jsx)("meta",{name:"twitter:image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,s.jsx)("link",{rel:"stylesheet",href:"/styles/prism.css"}),(0,s.jsx)("script",{src:"/scripts/prism.js",async:!0}),(0,s.jsx)("script",{dangerouslySetInnerHTML:{__html:"var DSQL = {}"}})]}),(0,s.jsxs)("body",{children:[(0,s.jsx)(a.Main,{}),(0,s.jsx)(a.NextScript,{})]})]})}},9455:(e,t)=>{Object.defineProperty(t,"A",{enumerable:!0,get:function(){return r}});var r=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},13893:e=>{e.exports=require("@moduletrace/datasquirel/dist/client/fetch")},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{e.exports=require("next/head")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},8732:e=>{e.exports=require("react/jsx-runtime")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")}};var t=require("../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),s=t.X(0,[883,9821,9796],()=>r(90678));module.exports=s})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=6827,e.ids=[3220,6827],e.modules={30671:(e,t)=>{Object.defineProperty(t,"M",{enumerable:!0,get:function(){return function e(t,r){return r in t?t[r]:"then"in t&&"function"==typeof t.then?t.then(t=>e(t,r)):"function"==typeof t&&"default"===r?t:void 0}}})},90678:(e,t,r)=>{r.r(t),r.d(t,{config:()=>w,default:()=>v,getServerSideProps:()=>b,getStaticPaths:()=>A,getStaticProps:()=>E,reportWebVitals:()=>N,routeModule:()=>C,unstable_getServerProps:()=>q,unstable_getServerSideProps:()=>I,unstable_getStaticParams:()=>O,unstable_getStaticPaths:()=>D,unstable_getStaticProps:()=>k});var s={};r.r(s),r.d(s,{SendPassResetContext:()=>S,default:()=>y,getServerSideProps:()=>P});var a=r(63865),n=r(9455),o=r(30671),i=r(5583),c=r(19796),l=r(8732),u=r(82015),d=r.n(u),p=r(1013),m=r(91258),h=r(16757),f=r(92702),g=r(46169),x=r(90048);let _=(0,r(82544).A)("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);function j({message:e}){return(0,l.jsxs)("div",{className:"info gray",children:[(0,l.jsx)(_,{}),(0,l.jsx)("span",{className:"font-normal",children:e})]})}let S=d().createContext({});function y(e){let t="Cloudbased SQL data management system | Datasquirel",r="Datasquirel is a fast and efficient cloud-based SQL data management system that takes away the entire hassle of dealing with data both locally and across different platforms.",s=(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("title",{children:t}),(0,l.jsx)("meta",{name:"description",content:r}),(0,l.jsx)(m.A,{pageTitle:t,pageDescription:r,pagePathname:"/"})]}),[a,n]=d().useState(!1),[o,i]=d().useState(!1);return(0,l.jsx)(p.A,{head:s,user:e.user,children:(0,l.jsx)(S.Provider,{value:{user:e.user},children:(0,l.jsx)("main",{children:(0,l.jsxs)("section",{children:[a&&(0,l.jsx)(h.A,{}),o?(0,l.jsx)(x.A,{message:"Email Sent. Please check your email address and follow the link provided",className:"whitespace-nowrap"}):(0,l.jsx)("div",{className:"paper",children:(0,l.jsxs)("div",{className:"max-w-xl flex-col items-stretch",children:[(0,l.jsx)("h1",{className:"m-0 text-4xl",children:"Send Password Reset Link"}),(0,l.jsx)("span",{children:"Please enter your email address to receive a password reset link"}),(0,l.jsxs)("form",{className:"w-full flex flex-col items-stretch gap-4",onSubmit:e=>{n(!0),e.preventDefault();let t=e.target["email-address"].value;(0,g.A)(`/api/sendPasswordResetLink?email=${t}`).then(e=>{console.log(e),setTimeout(()=>{n(!1)},500),e.success&&i(!0)})},children:[(0,l.jsx)("input",{type:"text",autoComplete:"email",name:"email-address",id:"email-address",className:"w-full",placeholder:"Email Address",defaultValue:e?.user?.logged_in_status?e.user.email:"",required:!0}),(0,l.jsx)("button",{children:"Send password reset Email"}),(0,l.jsx)(j,{message:"Please note that this link will expire after 1 hour"})]})]})})]})})})})}async function P({req:e,res:t}){let r=await (0,f.A)(e,t);return r?.social_login?{redirect:{destination:"/",permanent:!1}}:{props:{user:r}}}let v=(0,o.M)(s,"default"),E=(0,o.M)(s,"getStaticProps"),A=(0,o.M)(s,"getStaticPaths"),b=(0,o.M)(s,"getServerSideProps"),w=(0,o.M)(s,"config"),N=(0,o.M)(s,"reportWebVitals"),k=(0,o.M)(s,"unstable_getStaticProps"),D=(0,o.M)(s,"unstable_getStaticPaths"),O=(0,o.M)(s,"unstable_getStaticParams"),q=(0,o.M)(s,"unstable_getServerProps"),I=(0,o.M)(s,"unstable_getServerSideProps"),C=new a.PagesRouteModule({definition:{kind:n.A.PAGES,page:"/send-password-reset-link",pathname:"/send-password-reset-link",bundlePath:"",filename:""},components:{App:c.default,Document:i.default},userland:s})},90048:(e,t,r)=>{r.d(t,{A:()=>a});var s=r(8732);function a({message:e,className:t}){return(0,s.jsxs)("div",{className:"info green"+(t?" "+t:""),children:[(0,s.jsx)("img",{src:"/images/checkmark.svg",alt:"Warning Image Icon",width:22,className:"-my-2"}),(0,s.jsx)("span",{children:e})]})}r(82015)},91258:(e,t,r)=>{r.d(t,{A:()=>o});var s=r(8732),a=r(82015),n=r.n(a);function o({pageTitle:e,pageDescription:t,pagePathname:r,aceEditor:a}){return(0,s.jsxs)(n().Fragment,{children:[(0,s.jsx)("link",{rel:"canonical",href:"http://localhost:7070"+r}),(0,s.jsx)("meta",{property:"og:url",content:"http://localhost:7070"+r}),(0,s.jsx)("meta",{itemProp:"url",content:"http://localhost:7070"+r}),(0,s.jsx)("meta",{name:"twitter:url",content:"http://localhost:7070"+r}),(0,s.jsx)("meta",{property:"og:title",content:e}),(0,s.jsx)("meta",{property:"og:description",content:t}),(0,s.jsx)("meta",{itemProp:"name",content:e}),(0,s.jsx)("meta",{itemProp:"description",content:t}),(0,s.jsx)("meta",{name:"twitter:title",content:e}),(0,s.jsx)("meta",{name:"twitter:description",content:t}),a&&(0,s.jsxs)(n().Fragment,{children:[(0,s.jsx)("script",{src:"https://cdnjs.cloudflare.com/ajax/libs/ace/1.22.0/ace.min.js",integrity:"sha512-q6CTB0jS+VuJnSct82rVcWlI06LGzNjaG3CWenHWVUncRvc4UQMFkA3a5Ip880xr+lBx38FcHDclOxPdSg+sBw==",crossOrigin:"anonymous",referrerPolicy:"no-referrer"}),(0,s.jsx)("script",{src:"https://cdnjs.cloudflare.com/ajax/libs/ace/1.22.0/ext-language_tools.min.js",integrity:"sha512-6g6cvocV7eT/J8L44lL8gJKqq9onqQeYGgJO0DmrsYFcCfRl6wYkYA/KHS768r4QVTB4JxsCcMQ9gIezxpTCZw==",crossOrigin:"anonymous",referrerPolicy:"no-referrer"})]})]})}},92702:(e,t,r)=>{r.d(t,{A:()=>c});var s=r(71934),a=r(71205),n=r(29021),o=r.n(n),i=r(41939);async function c(e,t,r){try{let{keyCookieName:n,csrfCookieName:c}=(0,i.A)();if(!e.cookies?.[n]?.match(/./))throw Error("Request Cookies not Found!");let l=(0,a.A)({encryptedString:e.cookies[n]});if(!l)throw Error("Couldn't decrypt auth cookie!");let u=JSON.parse(l);if(!u.csrf_k)throw Error("No `csrf_k` present in user Object!");if(r&&!Object.keys(e.headers).find(e=>e.includes(u.csrf_k)))throw console.log("req.headers",e.headers),console.log("userObject",u),Error("Deep Auth Failed. `csrf` key not found in request headers!");let d=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!d)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(r&&!o().existsSync(`${d}/${u.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==u.verification_status&&!r){let e=await (0,s.A)(`SELECT verification_status FROM users WHERE id='${u.id}'`);e&&e[0]&&1==e[0].verification_status&&t.setHeader("Set-Cookie",["user_refresh=1"])}if(u?.date&&Date.now()-u.date>6048e5)throw Error("Key expired!");return u}catch(e){return console.log(`userAuth Error: ${e.message}`),null}}},41939:(e,t,r)=>{r.d(t,{A:()=>s});function s(e){let t=process.env.DSQL_COOKIES_PREFIX||"dsql_",r=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",a=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",n=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),o=t;e?.userId&&(o+=`user_${e.userId}_`),n&&(o+=`${n}_`),o+=r;let i=t;e?.userId&&(i+=`user_${e.userId}_`),n&&(i+=`${n}_`),i+=s;let c=t;return e?.userId&&(c+=`user_${e.userId}_`),n&&(c+=`${n}_`),{keyCookieName:o,csrfCookieName:i,oneTimeCodeName:c+=a}}},71205:(e,t,r)=>{r.d(t,{A:()=>n});var s=r(55511),a=r(79428);function n({encryptedString:e,encryptionKey:t,encryptionSalt:r}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let n=t||process.env.DSQL_ENCRYPTION_PASSWORD,o=r||process.env.DSQL_ENCRYPTION_SALT,i=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!n?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!o?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let c=(0,s.scryptSync)(n,o,i),l=a.Buffer.alloc(16,0),u=(0,s.createDecipheriv)("aes-192-cbc",c,l);try{let t=u.update(e,"hex","utf8");return t+=u.final("utf8")}catch(t){return console.log("Error in decrypting =>",t.message),e}}},71934:(e,t,r)=>{r.d(t,{A:()=>s});async function s(...e){let t=global.DSQL_DB_CONN;try{if(!t)throw Error("No Connection provided to DB_HANDLER function!");let r=await t.query(...e);return JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await t?.end()}}},5583:(e,t,r)=>{r.r(t),r.d(t,{default:()=>n});var s=r(8732);r(82015);var a=r(20883);function n(){return(0,s.jsxs)(a.Html,{lang:"en",children:[(0,s.jsxs)(a.Head,{children:[(0,s.jsx)("meta",{name:"author",content:"Datasquirel"}),(0,s.jsx)("meta",{name:"Copyright",content:`Copyright (c) ${new Date().getFullYear()} Datasquirel`}),"dev_dev".match(/dev/)&&(0,s.jsx)("meta",{name:"robots",content:"noindex,nofollow"}),(0,s.jsx)("link",{rel:"preconnect",href:"https://fonts.googleapis.com/",crossOrigin:"anonymous"}),(0,s.jsx)("link",{rel:"preconnect",href:"https://fonts.gstatic.com",crossOrigin:"anonymous"}),(0,s.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=Poppins"}),(0,s.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=Inter"}),(0,s.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=IBM+Plex+Mono"}),(0,s.jsx)("script",{src:"/scripts/themeSelector.js"}),(0,s.jsx)("meta",{httpEquiv:"Content-Type",content:"text/html; charset=UTF-8"}),(0,s.jsx)("meta",{property:"og:site_name",content:"DATASQUIREL"}),(0,s.jsx)("meta",{property:"og:type",content:"website"}),(0,s.jsx)("meta",{name:"twitter:card",content:"summary"}),(0,s.jsx)("meta",{property:"og:image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,s.jsx)("meta",{itemProp:"image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,s.jsx)("meta",{name:"twitter:image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,s.jsx)("link",{rel:"stylesheet",href:"/styles/prism.css"}),(0,s.jsx)("script",{src:"/scripts/prism.js",async:!0}),(0,s.jsx)("script",{dangerouslySetInnerHTML:{__html:"var DSQL = {}"}})]}),(0,s.jsxs)("body",{children:[(0,s.jsx)(a.Main,{}),(0,s.jsx)(a.NextScript,{})]})]})}},9455:(e,t)=>{Object.defineProperty(t,"A",{enumerable:!0,get:function(){return r}});var r=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},13893:e=>{e.exports=require("@moduletrace/datasquirel/dist/client/fetch")},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{e.exports=require("next/head")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},8732:e=>{e.exports=require("react/jsx-runtime")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")}};var t=require("../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),s=t.X(0,[883,9821,9796],()=>r(90678));module.exports=s})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/su/envar.js b/dsql-app/.local_dist/server/pages/su/envar.js index 771b489..e8dc6e0 100644 --- a/dsql-app/.local_dist/server/pages/su/envar.js +++ b/dsql-app/.local_dist/server/pages/su/envar.js @@ -1 +1 @@ -"use strict";(()=>{var e={};e.id=3641,e.ids=[3641],e.modules={12183:(e,t,r)=>{let s;r.r(t),r.d(t,{config:()=>M,default:()=>w,getServerSideProps:()=>q,getStaticPaths:()=>y,getStaticProps:()=>P,reportWebVitals:()=>_,routeModule:()=>V,unstable_getServerProps:()=>C,unstable_getServerSideProps:()=>E,unstable_getStaticParams:()=>k,unstable_getStaticPaths:()=>N,unstable_getStaticProps:()=>A});var a={};r.r(a),r.d(a,{default:()=>b,getServerSideProps:()=>j});var n=r(63865),i=r(9455),l=r(30671),o=r(5583),u=r(19796),d=r(8732),c=r(82015),p=r.n(c),m=r(61197),x=r(40778),g=r(16757),h=r(46169);function v({envObject:e,envKey:t}){let[r,a]=p().useState(!1),[n,i]=p().useState(!1),[l,o]=p().useState(e[t]),[u,c]=p().useState(!1);return(0,d.jsx)(p().Fragment,{children:(0,d.jsxs)("form",{className:"grid grid-cols-2 items-center gap2 w-full hover:bg-slate-100 py-2 px-4 relative",onSubmit:e=>{e.preventDefault(),r&&(i(!0),setTimeout(()=>{i(!1)},1e3))},children:[n&&(0,d.jsx)(g.A,{width:"20px"}),(0,d.jsx)("span",{children:t}),(0,d.jsxs)("div",{children:[(0,d.jsx)("input",{type:r?"text":"password",onFocus:e=>{"password"==e.target.type&&(e.target.type="text"),c(!0),a(!0)},onBlur:e=>{window.clearTimeout(s),s=setTimeout(()=>{"text"==e.target.type&&(e.target.type="password"),c(!1),a(!1)},2e3)},value:l,onChange:e=>{o(e.target.value)}}),u?(0,d.jsx)("div",{className:"button secondary",onClick:e=>{e.preventDefault(),r&&(i(!0),(0,h.A)("/api/admin/updateEnv",{method:"post",body:{key:t,value:l}}).then(e=>{e.success?window.location.reload():window.alert(e.error)}).finally(()=>{setTimeout(()=>{i(!1)},1e3)}))},children:"Update"}):(0,d.jsx)("div",{className:"button outlined",onClick:e=>{a(!r),c(!0)},children:"Reveal"})]})]})})}function S({data:e}){let{envObject:t}=e,[r,s]=p().useState(t),a=Object.keys(r);return(0,d.jsxs)(p().Fragment,{children:[(0,d.jsxs)("div",{className:"w-full justify-between",children:[(0,d.jsx)("h2",{className:"text-2xl m-0",children:"Environment Variables"}),(0,d.jsx)("button",{onClick:e=>{let t=window.prompt("What is the new ENV name?"),r=window.prompt("ENV Value");t&&r&&s(e=>{let s={...e};return s[t]=r,s})},children:"Add Environment Variable"})]}),(0,d.jsx)("section",{className:"paper",children:a.map((e,t)=>(0,d.jsx)(v,{envObject:r,envKey:e},t))})]})}let f=r(29021);function b({user:e,data:t}){let r=(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("title",{children:"Console | Datasquirel"}),(0,d.jsx)("meta",{name:"description",content:"Databases Console"})]});return(0,d.jsx)(x.A,{head:r,user:e,children:(0,d.jsx)(S,{data:t})})}async function j({req:e,res:t,query:r}){let s=await (0,m.A)(e);if(!s?.logged_in_status)return{redirect:{destination:"/su/login",permanent:!1}};let a=f.readFileSync("./.env","utf-8").split(/\n|\r/),n={};return a.forEach(e=>{if(!e.match(/=/)||e.match(/^\#/))return;let t=e.split("=");n[t[0]]=t[1]}),{props:{user:s,data:{envObject:n}}}}let w=(0,l.M)(a,"default"),P=(0,l.M)(a,"getStaticProps"),y=(0,l.M)(a,"getStaticPaths"),q=(0,l.M)(a,"getServerSideProps"),M=(0,l.M)(a,"config"),_=(0,l.M)(a,"reportWebVitals"),A=(0,l.M)(a,"unstable_getStaticProps"),N=(0,l.M)(a,"unstable_getStaticPaths"),k=(0,l.M)(a,"unstable_getStaticParams"),C=(0,l.M)(a,"unstable_getServerProps"),E=(0,l.M)(a,"unstable_getServerSideProps"),V=new n.PagesRouteModule({definition:{kind:i.A.PAGES,page:"/su/envar",pathname:"/su/envar",bundlePath:"",filename:""},components:{App:u.default,Document:o.default},userland:a})},13893:e=>{e.exports=require("@moduletrace/datasquirel/dist/client/fetch")},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{e.exports=require("next/head")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},8732:e=>{e.exports=require("react/jsx-runtime")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")}};var t=require("../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),s=t.X(0,[883,9821,9796,6622],()=>r(12183));module.exports=s})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=3641,e.ids=[3641],e.modules={12183:(e,t,r)=>{let a;r.r(t),r.d(t,{config:()=>_,default:()=>P,getServerSideProps:()=>M,getStaticPaths:()=>q,getStaticProps:()=>y,reportWebVitals:()=>A,routeModule:()=>D,unstable_getServerProps:()=>E,unstable_getServerSideProps:()=>V,unstable_getStaticParams:()=>C,unstable_getStaticPaths:()=>k,unstable_getStaticProps:()=>N});var s={};r.r(s),r.d(s,{default:()=>j,getServerSideProps:()=>w});var n=r(63865),i=r(9455),o=r(30671),l=r(5583),u=r(19796),d=r(8732),c=r(82015),p=r.n(c),m=r(61197),x=r(40778),g=r(16757),h=r(46169);function v({envObject:e,envKey:t}){let[r,s]=p().useState(!1),[n,i]=p().useState(!1),[o,l]=p().useState(e[t]),[u,c]=p().useState(!1);return(0,d.jsx)(p().Fragment,{children:(0,d.jsxs)("form",{className:"grid grid-cols-2 items-center gap2 w-full hover:bg-slate-100 py-2 px-4 relative",onSubmit:e=>{e.preventDefault(),r&&(i(!0),setTimeout(()=>{i(!1)},1e3))},children:[n&&(0,d.jsx)(g.A,{width:"20px"}),(0,d.jsx)("span",{children:t}),(0,d.jsxs)("div",{children:[(0,d.jsx)("input",{type:r?"text":"password",onFocus:e=>{"password"==e.target.type&&(e.target.type="text"),c(!0),s(!0)},onBlur:e=>{window.clearTimeout(a),a=setTimeout(()=>{"text"==e.target.type&&(e.target.type="password"),c(!1),s(!1)},2e3)},value:o,onChange:e=>{l(e.target.value)}}),u?(0,d.jsx)("div",{className:"button secondary",onClick:e=>{e.preventDefault(),r&&(i(!0),(0,h.A)("/api/admin/updateEnv",{method:"post",body:{key:t,value:o}}).then(e=>{e.success?window.location.reload():window.alert(e.error)}).finally(()=>{setTimeout(()=>{i(!1)},1e3)}))},children:"Update"}):(0,d.jsx)("div",{className:"button outlined",onClick:e=>{s(!r),c(!0)},children:"Reveal"})]})]})})}function S({data:e}){let{envObject:t}=e,[r,a]=p().useState(t),s=Object.keys(r);return(0,d.jsxs)(p().Fragment,{children:[(0,d.jsxs)("div",{className:"w-full justify-between",children:[(0,d.jsx)("h2",{className:"text-2xl m-0",children:"Environment Variables"}),(0,d.jsx)("button",{onClick:e=>{let t=window.prompt("What is the new ENV name?"),r=window.prompt("ENV Value");t&&r&&a(e=>{let a={...e};return a[t]=r,a})},children:"Add Environment Variable"})]}),(0,d.jsx)("section",{className:"paper",children:s.map((e,t)=>(0,d.jsx)(v,{envObject:r,envKey:e},t))})]})}var f=r(29021),b=r.n(f);function j({user:e,data:t}){let r=(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("title",{children:"Console | Datasquirel"}),(0,d.jsx)("meta",{name:"description",content:"Databases Console"})]});return(0,d.jsx)(x.A,{head:r,user:e,children:(0,d.jsx)(S,{data:t})})}async function w({req:e,res:t,query:r}){let a=await (0,m.A)(e);if(!a?.logged_in_status)return{redirect:{destination:"/su/login",permanent:!1}};let s=b().readFileSync("./.env","utf-8").split(/\n|\r/),n={};return s.forEach(e=>{if(!e.match(/=/)||e.match(/^\#/))return;let t=e.split("=");n[t[0]]=t[1]}),{props:{user:a,data:{envObject:n}}}}let P=(0,o.M)(s,"default"),y=(0,o.M)(s,"getStaticProps"),q=(0,o.M)(s,"getStaticPaths"),M=(0,o.M)(s,"getServerSideProps"),_=(0,o.M)(s,"config"),A=(0,o.M)(s,"reportWebVitals"),N=(0,o.M)(s,"unstable_getStaticProps"),k=(0,o.M)(s,"unstable_getStaticPaths"),C=(0,o.M)(s,"unstable_getStaticParams"),E=(0,o.M)(s,"unstable_getServerProps"),V=(0,o.M)(s,"unstable_getServerSideProps"),D=new n.PagesRouteModule({definition:{kind:i.A.PAGES,page:"/su/envar",pathname:"/su/envar",bundlePath:"",filename:""},components:{App:u.default,Document:l.default},userland:s})},13893:e=>{e.exports=require("@moduletrace/datasquirel/dist/client/fetch")},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{e.exports=require("next/head")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},8732:e=>{e.exports=require("react/jsx-runtime")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")}};var t=require("../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),a=t.X(0,[883,9821,9796,6622],()=>r(12183));module.exports=a})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/su/login.js b/dsql-app/.local_dist/server/pages/su/login.js index df5b7cc..61bf2e4 100644 --- a/dsql-app/.local_dist/server/pages/su/login.js +++ b/dsql-app/.local_dist/server/pages/su/login.js @@ -1 +1 @@ -"use strict";(()=>{var e={};e.id=9634,e.ids=[3220,9634],e.modules={30671:(e,t)=>{Object.defineProperty(t,"M",{enumerable:!0,get:function(){return function e(t,r){return r in t?t[r]:"then"in t&&"function"==typeof t.then?t.then(t=>e(t,r)):"function"==typeof t&&"default"===r?t:void 0}}})},38954:(e,t,r)=>{r.r(t),r.d(t,{config:()=>j,default:()=>S,getServerSideProps:()=>v,getStaticPaths:()=>E,getStaticProps:()=>y,reportWebVitals:()=>A,routeModule:()=>L,unstable_getServerProps:()=>D,unstable_getServerSideProps:()=>N,unstable_getStaticParams:()=>w,unstable_getStaticPaths:()=>b,unstable_getStaticProps:()=>P});var s={};r.r(s),r.d(s,{default:()=>_,getServerSideProps:()=>g});var n=r(63865),o=r(9455),i=r(30671),a=r(5583),l=r(19796),c=r(8732);r(82015);var u=r(27912),d=r.n(u),p=r(61197),m=r(46169),h=r(92702),f=r(89923);function _(){let e=(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("title",{children:"Super User Login | Datasquirel"}),(0,c.jsx)("meta",{name:"description",content:"Welcome to your data app"})]});return(0,c.jsxs)("section",{className:"w-full h-screen justify-center items-center",children:[(0,c.jsx)(d(),{children:e}),(0,c.jsxs)("div",{className:"p-6 bg-slate-100 rounded w-full max-w-2xl flex flex-col items-center",children:[(0,c.jsx)(x,{}),(0,c.jsxs)("form",{onSubmit:e=>{e.preventDefault();let t=e.target;(0,m.A)("/api/admin/loginSuUser",{method:"post",body:{email:t.email.value,password:t.password.value,authKey:t["auth-key"].value}}).then(e=>{window.location.reload()})},className:"flex flex-col items-stretch gap-4 w-full",children:[(0,c.jsx)("input",{type:"text",name:"email",id:"email",placeholder:"Email Address"}),(0,c.jsx)("input",{type:"password",name:"password",id:"password",placeholder:"Password"}),(0,c.jsx)("input",{type:"password",name:"auth-key",id:"auth-key",placeholder:"Auth Key"}),(0,c.jsx)("button",{children:"Login"})]})]})]})}async function g({req:e,res:t,query:r}){let s=await (0,h.A)(e,t,!0);(0,f.A)(s)&&console.log("Admin User Detected ...");let n=await (0,p.A)(e);return n?.logged_in_status?{redirect:{destination:"/su",permanent:!1}}:{props:{user:n}}}function x(){return(0,c.jsxs)("div",{className:"flex flex-col items-center gap-2 text-center",children:[(0,c.jsx)("h1",{className:"text-2xl text-center m-0",children:"Super User Login"}),(0,c.jsxs)("span",{children:["This area is reserved only for the owner of this Admin. To login use the info in your ",(0,c.jsx)("b",{children:"dsql.env"})," File. Use the env variables as follows. Your ",(0,c.jsx)("i",{children:"email address"})," is the same address used to register the first user account"]}),(0,c.jsxs)("ul",{className:"p-0",children:[(0,c.jsxs)("li",{children:["Password:"," ",(0,c.jsx)("i",{className:"info small w-auto inline",children:"dsql.env::"}),(0,c.jsx)("b",{children:" DSQL_USER_KEY"})]}),(0,c.jsxs)("li",{children:["Auth Key:"," ",(0,c.jsx)("i",{className:"info small w-auto inline",children:"dsql.env::"}),(0,c.jsx)("b",{children:" DSQL_SPECIAL_KEY"})]})]})]})}let S=(0,i.M)(s,"default"),y=(0,i.M)(s,"getStaticProps"),E=(0,i.M)(s,"getStaticPaths"),v=(0,i.M)(s,"getServerSideProps"),j=(0,i.M)(s,"config"),A=(0,i.M)(s,"reportWebVitals"),P=(0,i.M)(s,"unstable_getStaticProps"),b=(0,i.M)(s,"unstable_getStaticPaths"),w=(0,i.M)(s,"unstable_getStaticParams"),D=(0,i.M)(s,"unstable_getServerProps"),N=(0,i.M)(s,"unstable_getServerSideProps"),L=new n.PagesRouteModule({definition:{kind:o.A.PAGES,page:"/su/login",pathname:"/su/login",bundlePath:"",filename:""},components:{App:l.default,Document:a.default},userland:s})},61197:(e,t,r)=>{r.d(t,{A:()=>o});var s=r(71205),n=r(41939);async function o(e){let{keyCookieName:t,csrfCookieName:r}=(0,n.A)(),o=`${t}_su`;if(!e.cookies?.[o])return console.log("No auth key cookie found"),null;let i=(0,s.A)({encryptedString:e.cookies[o]});if(!i)return console.log("No user payload found"),null;let a=JSON.parse(i);return a.password!==process.env.DSQL_USER_KEY?(console.log("Invalid password"),null):a.authKey!==process.env.DSQL_SPECIAL_KEY?(console.log("Invalid auth key"),null):a}},92702:(e,t,r)=>{r.d(t,{A:()=>l});var s=r(71934),n=r(71205),o=r(29021),i=r.n(o),a=r(41939);async function l(e,t,r){try{let{keyCookieName:o,csrfCookieName:l}=(0,a.A)();if(!e.cookies?.[o]?.match(/./))throw Error("Request Cookies not Found!");let c=(0,n.A)({encryptedString:e.cookies[o]});if(!c)throw Error("Couldn't decrypt auth cookie!");let u=JSON.parse(c);if(!u.csrf_k)throw Error("No `csrf_k` present in user Object!");if(r&&!Object.keys(e.headers).find(e=>e.includes(u.csrf_k)))throw Error("Deep Auth Failed. `csrf` key not found in request headers!");let d=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!d)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(r&&!i().existsSync(`${d}/${u.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==u.verification_status&&!r){let e=await (0,s.A)(`SELECT verification_status FROM users WHERE id='${u.id}'`);e&&e[0]&&1==e[0].verification_status&&t.setHeader("Set-Cookie",["user_refresh=1"])}if(u?.date&&Date.now()-u.date>6048e5)throw Error("Key expired!");return u}catch(e){return console.log(`userAuth Error: ${e.message}`),null}}},89923:(e,t,r)=>{r.d(t,{A:()=>s});function s(e,t){return t?!!(e?.id&&String(e?.id)==(process.env.DSQL_SU_USER_ID||"1")):!!(e?.id&&"1"==String(e?.id))}},41939:(e,t,r)=>{r.d(t,{A:()=>s});function s(e){let t=process.env.DSQL_COOKIES_PREFIX||"dsql_",r=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",n=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",o=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),i=t;e?.userId&&(i+=`user_${e.userId}_`),o&&(i+=`${o}_`),i+=r;let a=t;e?.userId&&(a+=`user_${e.userId}_`),o&&(a+=`${o}_`),a+=s;let l=t;return e?.userId&&(l+=`user_${e.userId}_`),o&&(l+=`${o}_`),{keyCookieName:i,csrfCookieName:a,oneTimeCodeName:l+=n}}},71205:(e,t,r)=>{r.d(t,{A:()=>o});var s=r(55511),n=r(79428);function o({encryptedString:e,encryptionKey:t,encryptionSalt:r}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let o=t||process.env.DSQL_ENCRYPTION_PASSWORD,i=r||process.env.DSQL_ENCRYPTION_SALT,a=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!o?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let l=(0,s.scryptSync)(o,i,a),c=n.Buffer.alloc(16,0),u=(0,s.createDecipheriv)("aes-192-cbc",l,c);try{let t=u.update(e,"hex","utf8");return t+=u.final("utf8")}catch(t){return console.log("Error in decrypting =>",t.message),e}}},71934:(e,t,r)=>{r.d(t,{A:()=>s});async function s(...e){let t=global.DSQL_DB_CONN;try{if(!t)throw Error("No Connection provided to DB_HANDLER function!");let r=await t.query(...e);return JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await t?.end()}}},5583:(e,t,r)=>{r.r(t),r.d(t,{default:()=>o});var s=r(8732);r(82015);var n=r(20883);function o(){return(0,s.jsxs)(n.Html,{lang:"en",children:[(0,s.jsxs)(n.Head,{children:[(0,s.jsx)("meta",{name:"author",content:"Datasquirel"}),(0,s.jsx)("meta",{name:"Copyright",content:`Copyright (c) ${new Date().getFullYear()} Datasquirel`}),"dev_dev".match(/dev/)&&(0,s.jsx)("meta",{name:"robots",content:"noindex,nofollow"}),(0,s.jsx)("link",{rel:"preconnect",href:"https://fonts.googleapis.com/",crossOrigin:"anonymous"}),(0,s.jsx)("link",{rel:"preconnect",href:"https://fonts.gstatic.com",crossOrigin:"anonymous"}),(0,s.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=Poppins"}),(0,s.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=Inter"}),(0,s.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=IBM+Plex+Mono"}),(0,s.jsx)("script",{src:"/scripts/themeSelector.js"}),(0,s.jsx)("meta",{httpEquiv:"Content-Type",content:"text/html; charset=UTF-8"}),(0,s.jsx)("meta",{property:"og:site_name",content:"DATASQUIREL"}),(0,s.jsx)("meta",{property:"og:type",content:"website"}),(0,s.jsx)("meta",{name:"twitter:card",content:"summary"}),(0,s.jsx)("meta",{property:"og:image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,s.jsx)("meta",{itemProp:"image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,s.jsx)("meta",{name:"twitter:image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,s.jsx)("link",{rel:"stylesheet",href:"/styles/prism.css"}),(0,s.jsx)("script",{src:"/scripts/prism.js",async:!0}),(0,s.jsx)("script",{dangerouslySetInnerHTML:{__html:"var DSQL = {}"}})]}),(0,s.jsxs)("body",{children:[(0,s.jsx)(n.Main,{}),(0,s.jsx)(n.NextScript,{})]})]})}},9455:(e,t)=>{Object.defineProperty(t,"A",{enumerable:!0,get:function(){return r}});var r=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},13893:e=>{e.exports=require("@moduletrace/datasquirel/dist/client/fetch")},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{e.exports=require("next/head")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},8732:e=>{e.exports=require("react/jsx-runtime")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")}};var t=require("../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),s=t.X(0,[883,9821,9796],()=>r(38954));module.exports=s})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=9634,e.ids=[3220,9634],e.modules={30671:(e,t)=>{Object.defineProperty(t,"M",{enumerable:!0,get:function(){return function e(t,r){return r in t?t[r]:"then"in t&&"function"==typeof t.then?t.then(t=>e(t,r)):"function"==typeof t&&"default"===r?t:void 0}}})},38954:(e,t,r)=>{r.r(t),r.d(t,{config:()=>j,default:()=>S,getServerSideProps:()=>v,getStaticPaths:()=>E,getStaticProps:()=>y,reportWebVitals:()=>A,routeModule:()=>L,unstable_getServerProps:()=>D,unstable_getServerSideProps:()=>N,unstable_getStaticParams:()=>w,unstable_getStaticPaths:()=>b,unstable_getStaticProps:()=>P});var s={};r.r(s),r.d(s,{default:()=>g,getServerSideProps:()=>_});var n=r(63865),o=r(9455),i=r(30671),a=r(5583),l=r(19796),c=r(8732);r(82015);var u=r(27912),d=r.n(u),p=r(61197),m=r(46169),h=r(92702),f=r(89923);function g(){let e=(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("title",{children:"Super User Login | Datasquirel"}),(0,c.jsx)("meta",{name:"description",content:"Welcome to your data app"})]});return(0,c.jsxs)("section",{className:"w-full h-screen justify-center items-center",children:[(0,c.jsx)(d(),{children:e}),(0,c.jsxs)("div",{className:"p-6 bg-slate-100 rounded w-full max-w-2xl flex flex-col items-center",children:[(0,c.jsx)(x,{}),(0,c.jsxs)("form",{onSubmit:e=>{e.preventDefault();let t=e.target;(0,m.A)("/api/admin/loginSuUser",{method:"post",body:{email:t.email.value,password:t.password.value,authKey:t["auth-key"].value}}).then(e=>{window.location.reload()})},className:"flex flex-col items-stretch gap-4 w-full",children:[(0,c.jsx)("input",{type:"text",name:"email",id:"email",placeholder:"Email Address"}),(0,c.jsx)("input",{type:"password",name:"password",id:"password",placeholder:"Password"}),(0,c.jsx)("input",{type:"password",name:"auth-key",id:"auth-key",placeholder:"Auth Key"}),(0,c.jsx)("button",{children:"Login"})]})]})]})}async function _({req:e,res:t,query:r}){let s=await (0,h.A)(e,t,!0);(0,f.A)(s)&&console.log("Admin User Detected ...");let n=await (0,p.A)(e);return n?.logged_in_status?{redirect:{destination:"/su",permanent:!1}}:{props:{user:n}}}function x(){return(0,c.jsxs)("div",{className:"flex flex-col items-center gap-2 text-center",children:[(0,c.jsx)("h1",{className:"text-2xl text-center m-0",children:"Super User Login"}),(0,c.jsxs)("span",{children:["This area is reserved only for the owner of this Admin. To login use the info in your ",(0,c.jsx)("b",{children:"dsql.env"})," File. Use the env variables as follows. Your ",(0,c.jsx)("i",{children:"email address"})," is the same address used to register the first user account"]}),(0,c.jsxs)("ul",{className:"p-0",children:[(0,c.jsxs)("li",{children:["Password:"," ",(0,c.jsx)("i",{className:"info small w-auto inline",children:"dsql.env::"}),(0,c.jsx)("b",{children:" DSQL_USER_KEY"})]}),(0,c.jsxs)("li",{children:["Auth Key:"," ",(0,c.jsx)("i",{className:"info small w-auto inline",children:"dsql.env::"}),(0,c.jsx)("b",{children:" DSQL_SPECIAL_KEY"})]})]})]})}let S=(0,i.M)(s,"default"),y=(0,i.M)(s,"getStaticProps"),E=(0,i.M)(s,"getStaticPaths"),v=(0,i.M)(s,"getServerSideProps"),j=(0,i.M)(s,"config"),A=(0,i.M)(s,"reportWebVitals"),P=(0,i.M)(s,"unstable_getStaticProps"),b=(0,i.M)(s,"unstable_getStaticPaths"),w=(0,i.M)(s,"unstable_getStaticParams"),D=(0,i.M)(s,"unstable_getServerProps"),N=(0,i.M)(s,"unstable_getServerSideProps"),L=new n.PagesRouteModule({definition:{kind:o.A.PAGES,page:"/su/login",pathname:"/su/login",bundlePath:"",filename:""},components:{App:l.default,Document:a.default},userland:s})},61197:(e,t,r)=>{r.d(t,{A:()=>o});var s=r(71205),n=r(41939);async function o(e){let{keyCookieName:t,csrfCookieName:r}=(0,n.A)(),o=`${t}_su`;if(!e.cookies?.[o])return console.log("No auth key cookie found"),null;let i=(0,s.A)({encryptedString:e.cookies[o]});if(!i)return console.log("No user payload found"),null;let a=JSON.parse(i);return a.password!==process.env.DSQL_USER_KEY?(console.log("Invalid password"),null):a.authKey!==process.env.DSQL_SPECIAL_KEY?(console.log("Invalid auth key"),null):a}},92702:(e,t,r)=>{r.d(t,{A:()=>l});var s=r(71934),n=r(71205),o=r(29021),i=r.n(o),a=r(41939);async function l(e,t,r){try{let{keyCookieName:o,csrfCookieName:l}=(0,a.A)();if(!e.cookies?.[o]?.match(/./))throw Error("Request Cookies not Found!");let c=(0,n.A)({encryptedString:e.cookies[o]});if(!c)throw Error("Couldn't decrypt auth cookie!");let u=JSON.parse(c);if(!u.csrf_k)throw Error("No `csrf_k` present in user Object!");if(r&&!Object.keys(e.headers).find(e=>e.includes(u.csrf_k)))throw console.log("req.headers",e.headers),console.log("userObject",u),Error("Deep Auth Failed. `csrf` key not found in request headers!");let d=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!d)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(r&&!i().existsSync(`${d}/${u.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==u.verification_status&&!r){let e=await (0,s.A)(`SELECT verification_status FROM users WHERE id='${u.id}'`);e&&e[0]&&1==e[0].verification_status&&t.setHeader("Set-Cookie",["user_refresh=1"])}if(u?.date&&Date.now()-u.date>6048e5)throw Error("Key expired!");return u}catch(e){return console.log(`userAuth Error: ${e.message}`),null}}},89923:(e,t,r)=>{r.d(t,{A:()=>s});function s(e,t){return t?!!(e?.id&&String(e?.id)==(process.env.DSQL_SU_USER_ID||"1")):!!(e?.id&&"1"==String(e?.id))}},41939:(e,t,r)=>{r.d(t,{A:()=>s});function s(e){let t=process.env.DSQL_COOKIES_PREFIX||"dsql_",r=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",n=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",o=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),i=t;e?.userId&&(i+=`user_${e.userId}_`),o&&(i+=`${o}_`),i+=r;let a=t;e?.userId&&(a+=`user_${e.userId}_`),o&&(a+=`${o}_`),a+=s;let l=t;return e?.userId&&(l+=`user_${e.userId}_`),o&&(l+=`${o}_`),{keyCookieName:i,csrfCookieName:a,oneTimeCodeName:l+=n}}},71205:(e,t,r)=>{r.d(t,{A:()=>o});var s=r(55511),n=r(79428);function o({encryptedString:e,encryptionKey:t,encryptionSalt:r}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let o=t||process.env.DSQL_ENCRYPTION_PASSWORD,i=r||process.env.DSQL_ENCRYPTION_SALT,a=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!o?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let l=(0,s.scryptSync)(o,i,a),c=n.Buffer.alloc(16,0),u=(0,s.createDecipheriv)("aes-192-cbc",l,c);try{let t=u.update(e,"hex","utf8");return t+=u.final("utf8")}catch(t){return console.log("Error in decrypting =>",t.message),e}}},71934:(e,t,r)=>{r.d(t,{A:()=>s});async function s(...e){let t=global.DSQL_DB_CONN;try{if(!t)throw Error("No Connection provided to DB_HANDLER function!");let r=await t.query(...e);return JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await t?.end()}}},5583:(e,t,r)=>{r.r(t),r.d(t,{default:()=>o});var s=r(8732);r(82015);var n=r(20883);function o(){return(0,s.jsxs)(n.Html,{lang:"en",children:[(0,s.jsxs)(n.Head,{children:[(0,s.jsx)("meta",{name:"author",content:"Datasquirel"}),(0,s.jsx)("meta",{name:"Copyright",content:`Copyright (c) ${new Date().getFullYear()} Datasquirel`}),"dev_dev".match(/dev/)&&(0,s.jsx)("meta",{name:"robots",content:"noindex,nofollow"}),(0,s.jsx)("link",{rel:"preconnect",href:"https://fonts.googleapis.com/",crossOrigin:"anonymous"}),(0,s.jsx)("link",{rel:"preconnect",href:"https://fonts.gstatic.com",crossOrigin:"anonymous"}),(0,s.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=Poppins"}),(0,s.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=Inter"}),(0,s.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=IBM+Plex+Mono"}),(0,s.jsx)("script",{src:"/scripts/themeSelector.js"}),(0,s.jsx)("meta",{httpEquiv:"Content-Type",content:"text/html; charset=UTF-8"}),(0,s.jsx)("meta",{property:"og:site_name",content:"DATASQUIREL"}),(0,s.jsx)("meta",{property:"og:type",content:"website"}),(0,s.jsx)("meta",{name:"twitter:card",content:"summary"}),(0,s.jsx)("meta",{property:"og:image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,s.jsx)("meta",{itemProp:"image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,s.jsx)("meta",{name:"twitter:image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,s.jsx)("link",{rel:"stylesheet",href:"/styles/prism.css"}),(0,s.jsx)("script",{src:"/scripts/prism.js",async:!0}),(0,s.jsx)("script",{dangerouslySetInnerHTML:{__html:"var DSQL = {}"}})]}),(0,s.jsxs)("body",{children:[(0,s.jsx)(n.Main,{}),(0,s.jsx)(n.NextScript,{})]})]})}},9455:(e,t)=>{Object.defineProperty(t,"A",{enumerable:!0,get:function(){return r}});var r=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},13893:e=>{e.exports=require("@moduletrace/datasquirel/dist/client/fetch")},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{e.exports=require("next/head")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},8732:e=>{e.exports=require("react/jsx-runtime")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")}};var t=require("../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),s=t.X(0,[883,9821,9796],()=>r(38954));module.exports=s})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/terms.html b/dsql-app/.local_dist/server/pages/terms.html index e10e86e..379443e 100644 --- a/dsql-app/.local_dist/server/pages/terms.html +++ b/dsql-app/.local_dist/server/pages/terms.html @@ -1 +1 @@ -Terms and Conditions | Datasquirel

Terms and Conditions

Welcome to datasquirel.com!
Dotted image background

These terms and conditions outline the rules and regulations for the use of Datasquirel's Website, located at https://datasquirel.com.

By accessing this website we assume you accept these terms and conditions. Do not continue to use datasquirel.com if you do not agree to take all of the terms and conditions stated on this page.

The following terminology applies to these Terms and Conditions, Privacy Statement and Disclaimer Notice and all Agreements: "Client", "You" and "Your" refers to you, the person log on this website and compliant to the Company’s terms and conditions. "The Company", "Ourselves", "We", "Our" and "Us", refers to our Company. "Party", "Parties", or "Us", refers to both the Client and ourselves. All terms refer to the offer, acceptance and consideration of payment necessary to undertake the process of our assistance to the Client in the most appropriate manner for the express purpose of meeting the Client’s needs in respect of provision of the Company’s stated services, in accordance with and subject to, prevailing law of Netherlands. Any use of the above terminology or other words in the singular, plural, capitalization and/or he/she or they, are taken as interchangeable and therefore as referring to same.

Cookies

We employ the use of cookies. By accessing datasquirel.com, you agreed to use cookies in agreement with the Datasquirel's Privacy Policy.

Most interactive websites use cookies to let us retrieve the user’s details for each visit. Cookies are used by our website to enable the functionality of certain areas to make it easier for people visiting our website. Some of our affiliate/advertising partners may also use cookies.

License

Unless otherwise stated, Datasquirel and/or its licensors own the intellectual property rights for all material on datasquirel.com. All intellectual property rights are reserved. You may access this from datasquirel.com for your own personal use subjected to restrictions set in these terms and conditions.

You must not:

  • Republish material from datasquirel.com
  • Sell, rent or sub-license material from datasquirel.com
  • Reproduce, duplicate or copy material from datasquirel.com
  • Redistribute content from datasquirel.com

This Agreement shall begin on the date hereof.

Parts of this website offer an opportunity for users to post and exchange opinions and information in certain areas of the website. Datasquirel does not filter, edit, publish or review Comments prior to their presence on the website. Comments do not reflect the views and opinions of Datasquirel,its agents and/or affiliates. Comments reflect the views and opinions of the person who post their views and opinions. To the extent permitted by applicable laws, Datasquirel shall not be liable for the Comments or for any liability, damages or expenses caused and/or suffered as a result of any use of and/or posting of and/or appearance of the Comments on this website.

Datasquirel reserves the right to monitor all Comments and to remove any Comments which can be considered inappropriate, offensive or causes breach of these Terms and Conditions.

You warrant and represent that:

  • You are entitled to post the Comments on our website and have all necessary licenses and consents to do so;
  • The Comments do not invade any intellectual property right, including without limitation copyright, patent or trademark of any third party;
  • The Comments do not contain any defamatory, libelous, offensive, indecent or otherwise unlawful material which is an invasion of privacy
  • The Comments will not be used to solicit or promote business or custom or present commercial activities or unlawful activity.

You hereby grant Datasquirel a non-exclusive license to use, reproduce, edit and authorize others to use, reproduce and edit any of your Comments in any and all forms, formats or media.

Hyperlinking to our Content

The following organizations may link to our Website without prior written approval:

  • Government agencies;
  • Search engines;
  • News organizations;
  • Online directory distributors may link to our Website in the same manner as they hyperlink to the Websites of other listed businesses; and
  • System wide Accredited Businesses except soliciting non-profit organizations, charity shopping malls, and charity fundraising groups which may not hyperlink to our Web site.

These organizations may link to our home page, to publications or to other Website information so long as the link: (a) is not in any way deceptive; (b) does not falsely imply sponsorship, endorsement or approval of the linking party and its products and/or services; and (c) fits within the context of the linking party’s site.

We may consider and approve other link requests from the following types of organizations:

  • commonly-known consumer and/or business information sources;
  • dot.com community sites;
  • associations or other groups representing charities;
  • online directory distributors;
  • internet portals;
  • accounting, law and consulting firms; and
  • educational institutions and trade associations.

We will approve link requests from these organizations if we decide that: (a) the link would not make us look unfavorably to ourselves or to our accredited businesses; (b) the organization does not have any negative records with us; (c) the benefit to us from the visibility of the hyperlink compensates the absence of Datasquirel; and (d) the link is in the context of general resource information.

These organizations may link to our home page so long as the link: (a) is not in any way deceptive; (b) does not falsely imply sponsorship, endorsement or approval of the linking party and its products or services; and (c) fits within the context of the linking party’s site.

If you are one of the organizations listed in paragraph 2 above and are interested in linking to our website, you must inform us by sending an e-mail to Datasquirel. Please include your name, your organization name, contact information as well as the URL of your site, a list of any URLs from which you intend to link to our Website, and a list of the URLs on our site to which you would like to link. Wait 2-3 weeks for a response.

Approved organizations may hyperlink to our Website as follows:

  • By use of our corporate name; or
  • By use of the uniform resource locator being linked to; or
  • By use of any other description of our Website being linked to that makes sense within the context and format of content on the linking party’s site.

No use of Datasquirel's logo or other artwork will be allowed for linking absent a trademark license agreement.

iFrames

Without prior approval and written permission, you may not create frames around our Webpages that alter in any way the visual presentation or appearance of our Website.

Content Liability

We shall not be hold responsible for any content that appears on your Website. You agree to protect and defend us against all claims that is rising on your Website. No link(s) should appear on any Website that may be interpreted as libelous, obscene or criminal, or which infringes, otherwise violates, or advocates the infringement or other violation of, any third party rights.

Your Privacy

Please read Privacy Policy

Reservation of Rights

We reserve the right to request that you remove all links or any particular link to our Website. You approve to immediately remove all links to our Website upon request. We also reserve the right to amen these terms and conditions and it’s linking policy at any time. By continuously linking to our Website, you agree to be bound to and follow these linking terms and conditions.

Removal of links from our website

If you find any link on our Website that is offensive for any reason, you are free to contact and inform us any moment. We will consider requests to remove links but we are not obligated to or so or to respond to you directly.

We do not ensure that the information on this website is correct, we do not warrant its completeness or accuracy; nor do we promise to ensure that the website remains available or that the material on the website is kept up to date.

Disclaimer

To the maximum extent permitted by applicable law, we exclude all representations, warranties and conditions relating to our website and the use of this website. Nothing in this disclaimer will:

  • limit or exclude our or your liability for death or personal injury;
  • limit or exclude our or your liability for fraud or fraudulent misrepresentation;
  • limit any of our or your liabilities in any way that is not permitted under applicable law; or
  • exclude any of our or your liabilities that may not be excluded under applicable law.

The limitations and prohibitions of liability set in this Section and elsewhere in this disclaimer: (a) are subject to the preceding paragraph; and (b) govern all liabilities arising under the disclaimer, including liabilities arising in contract, in tort and for breach of statutory duty.

As long as the website and the information and services on the website are provided free of charge, we will not be liable for any loss or damage of any nature.

\ No newline at end of file +Terms and Conditions | Datasquirel

Terms and Conditions

Welcome to datasquirel.com!
Dotted image background

These terms and conditions outline the rules and regulations for the use of Datasquirel's Website, located at https://datasquirel.com.

By accessing this website we assume you accept these terms and conditions. Do not continue to use datasquirel.com if you do not agree to take all of the terms and conditions stated on this page.

The following terminology applies to these Terms and Conditions, Privacy Statement and Disclaimer Notice and all Agreements: "Client", "You" and "Your" refers to you, the person log on this website and compliant to the Company’s terms and conditions. "The Company", "Ourselves", "We", "Our" and "Us", refers to our Company. "Party", "Parties", or "Us", refers to both the Client and ourselves. All terms refer to the offer, acceptance and consideration of payment necessary to undertake the process of our assistance to the Client in the most appropriate manner for the express purpose of meeting the Client’s needs in respect of provision of the Company’s stated services, in accordance with and subject to, prevailing law of Netherlands. Any use of the above terminology or other words in the singular, plural, capitalization and/or he/she or they, are taken as interchangeable and therefore as referring to same.

Cookies

We employ the use of cookies. By accessing datasquirel.com, you agreed to use cookies in agreement with the Datasquirel's Privacy Policy.

Most interactive websites use cookies to let us retrieve the user’s details for each visit. Cookies are used by our website to enable the functionality of certain areas to make it easier for people visiting our website. Some of our affiliate/advertising partners may also use cookies.

License

Unless otherwise stated, Datasquirel and/or its licensors own the intellectual property rights for all material on datasquirel.com. All intellectual property rights are reserved. You may access this from datasquirel.com for your own personal use subjected to restrictions set in these terms and conditions.

You must not:

  • Republish material from datasquirel.com
  • Sell, rent or sub-license material from datasquirel.com
  • Reproduce, duplicate or copy material from datasquirel.com
  • Redistribute content from datasquirel.com

This Agreement shall begin on the date hereof.

Parts of this website offer an opportunity for users to post and exchange opinions and information in certain areas of the website. Datasquirel does not filter, edit, publish or review Comments prior to their presence on the website. Comments do not reflect the views and opinions of Datasquirel,its agents and/or affiliates. Comments reflect the views and opinions of the person who post their views and opinions. To the extent permitted by applicable laws, Datasquirel shall not be liable for the Comments or for any liability, damages or expenses caused and/or suffered as a result of any use of and/or posting of and/or appearance of the Comments on this website.

Datasquirel reserves the right to monitor all Comments and to remove any Comments which can be considered inappropriate, offensive or causes breach of these Terms and Conditions.

You warrant and represent that:

  • You are entitled to post the Comments on our website and have all necessary licenses and consents to do so;
  • The Comments do not invade any intellectual property right, including without limitation copyright, patent or trademark of any third party;
  • The Comments do not contain any defamatory, libelous, offensive, indecent or otherwise unlawful material which is an invasion of privacy
  • The Comments will not be used to solicit or promote business or custom or present commercial activities or unlawful activity.

You hereby grant Datasquirel a non-exclusive license to use, reproduce, edit and authorize others to use, reproduce and edit any of your Comments in any and all forms, formats or media.

Hyperlinking to our Content

The following organizations may link to our Website without prior written approval:

  • Government agencies;
  • Search engines;
  • News organizations;
  • Online directory distributors may link to our Website in the same manner as they hyperlink to the Websites of other listed businesses; and
  • System wide Accredited Businesses except soliciting non-profit organizations, charity shopping malls, and charity fundraising groups which may not hyperlink to our Web site.

These organizations may link to our home page, to publications or to other Website information so long as the link: (a) is not in any way deceptive; (b) does not falsely imply sponsorship, endorsement or approval of the linking party and its products and/or services; and (c) fits within the context of the linking party’s site.

We may consider and approve other link requests from the following types of organizations:

  • commonly-known consumer and/or business information sources;
  • dot.com community sites;
  • associations or other groups representing charities;
  • online directory distributors;
  • internet portals;
  • accounting, law and consulting firms; and
  • educational institutions and trade associations.

We will approve link requests from these organizations if we decide that: (a) the link would not make us look unfavorably to ourselves or to our accredited businesses; (b) the organization does not have any negative records with us; (c) the benefit to us from the visibility of the hyperlink compensates the absence of Datasquirel; and (d) the link is in the context of general resource information.

These organizations may link to our home page so long as the link: (a) is not in any way deceptive; (b) does not falsely imply sponsorship, endorsement or approval of the linking party and its products or services; and (c) fits within the context of the linking party’s site.

If you are one of the organizations listed in paragraph 2 above and are interested in linking to our website, you must inform us by sending an e-mail to Datasquirel. Please include your name, your organization name, contact information as well as the URL of your site, a list of any URLs from which you intend to link to our Website, and a list of the URLs on our site to which you would like to link. Wait 2-3 weeks for a response.

Approved organizations may hyperlink to our Website as follows:

  • By use of our corporate name; or
  • By use of the uniform resource locator being linked to; or
  • By use of any other description of our Website being linked to that makes sense within the context and format of content on the linking party’s site.

No use of Datasquirel's logo or other artwork will be allowed for linking absent a trademark license agreement.

iFrames

Without prior approval and written permission, you may not create frames around our Webpages that alter in any way the visual presentation or appearance of our Website.

Content Liability

We shall not be hold responsible for any content that appears on your Website. You agree to protect and defend us against all claims that is rising on your Website. No link(s) should appear on any Website that may be interpreted as libelous, obscene or criminal, or which infringes, otherwise violates, or advocates the infringement or other violation of, any third party rights.

Your Privacy

Please read Privacy Policy

Reservation of Rights

We reserve the right to request that you remove all links or any particular link to our Website. You approve to immediately remove all links to our Website upon request. We also reserve the right to amen these terms and conditions and it’s linking policy at any time. By continuously linking to our Website, you agree to be bound to and follow these linking terms and conditions.

Removal of links from our website

If you find any link on our Website that is offensive for any reason, you are free to contact and inform us any moment. We will consider requests to remove links but we are not obligated to or so or to respond to you directly.

We do not ensure that the information on this website is correct, we do not warrant its completeness or accuracy; nor do we promise to ensure that the website remains available or that the material on the website is kept up to date.

Disclaimer

To the maximum extent permitted by applicable law, we exclude all representations, warranties and conditions relating to our website and the use of this website. Nothing in this disclaimer will:

  • limit or exclude our or your liability for death or personal injury;
  • limit or exclude our or your liability for fraud or fraudulent misrepresentation;
  • limit any of our or your liabilities in any way that is not permitted under applicable law; or
  • exclude any of our or your liabilities that may not be excluded under applicable law.

The limitations and prohibitions of liability set in this Section and elsewhere in this disclaimer: (a) are subject to the preceding paragraph; and (b) govern all liabilities arising under the disclaimer, including liabilities arising in contract, in tort and for breach of statutory duty.

As long as the website and the information and services on the website are provided free of charge, we will not be liable for any loss or damage of any nature.

\ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/unsubscribe.js b/dsql-app/.local_dist/server/pages/unsubscribe.js index bf08d70..ab1279a 100644 --- a/dsql-app/.local_dist/server/pages/unsubscribe.js +++ b/dsql-app/.local_dist/server/pages/unsubscribe.js @@ -1 +1 @@ -"use strict";(()=>{var e={};e.id=3751,e.ids=[3220,3751],e.modules={30671:(e,t)=>{Object.defineProperty(t,"M",{enumerable:!0,get:function(){return function e(t,r){return r in t?t[r]:"then"in t&&"function"==typeof t.then?t.then(t=>e(t,r)):"function"==typeof t&&"default"===r?t:void 0}}})},41531:(e,t,r)=>{r.r(t),r.d(t,{config:()=>P,default:()=>S,getServerSideProps:()=>E,getStaticPaths:()=>y,getStaticProps:()=>b,reportWebVitals:()=>v,routeModule:()=>w,unstable_getServerProps:()=>O,unstable_getServerSideProps:()=>k,unstable_getStaticParams:()=>D,unstable_getStaticPaths:()=>N,unstable_getStaticProps:()=>A});var s={};r.r(s),r.d(s,{default:()=>_,getServerSideProps:()=>j});var n=r(63865),a=r(9455),i=r(30671),o=r(5583),c=r(19796),l=r(8732),u=r(82015),p=r.n(u),m=r(16757),d=r(91258),h=r(92702),x=r(46169),f=r(1013),g=r(71934);function _({user:e,email:t,productionEnvironment:r,existingAlerts:s}){let n="Unsubscribe | Datasquirel",a="Unsubscribe from email alerts",i=(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("title",{children:n}),(0,l.jsx)("meta",{name:"description",content:a}),(0,l.jsx)(d.A,{pageTitle:n,pageDescription:a,pagePathname:"/unsubscribe"})]}),[o,c]=p().useState(!1);return(0,l.jsx)(p().Fragment,{children:(0,l.jsx)(f.A,{head:i,user:e,productionEnvironment:r,children:(0,l.jsx)("main",{children:(0,l.jsxs)("section",{children:[o&&(0,l.jsx)(m.A,{}),(0,l.jsxs)("div",{className:"flex-col",children:[(0,l.jsx)("h1",{className:"text-2xl",children:"Unsubscribe from Email alerts"}),!t&&(0,l.jsxs)("p",{className:"max-w-md",children:["No email please ",(0,l.jsx)("a",{href:"/login",children:"Login"})," ","to Access Email Subscriptions or click on"," ",(0,l.jsx)("i",{children:'"unsubscribe"'})," from your mail box"]}),t&&(0,l.jsxs)("form",{className:"flex flex-col items-start gap-4",onSubmit:r=>{r.preventDefault(),c(!0);let s=r.target;(0,x.A)("/api/unsubscribe",{method:"post",body:{email:t,alerts:s.alerts_checkbox.checked,userId:e?.id?e.id:null}}).then(e=>{console.log(e),c(!1)})},children:[(0,l.jsx)("span",{className:"bg-slate-100 py-1 px-3 rounded-full",children:t}),(0,l.jsxs)("div",{className:"flex items-center gap-1",children:[(0,l.jsx)("input",{type:"checkbox",name:"alerts_checkbox",id:"alerts_checkbox",defaultChecked:!!s,className:"w-6 h-6"}),(0,l.jsx)("label",{htmlFor:"alerts_checkbox",className:"text-base whitespace-nowrap text-slate-800",children:"Alerts"})]}),(0,l.jsx)("button",{children:"Save Settings"})]})]})]})})})})}async function j({req:e,res:t,query:r}){let s=process.env.DSQL_HOST_ENV,n=await (0,h.A)(e,t),a=r.email?r.email:n?.email?n.email:null,i=await (0,g.A)(`SELECT email FROM unsubscribes WHERE email='${a}' AND type='alerts'`);return{props:{user:n,email:a,productionEnvironment:s,existingAlerts:!i[0]}}}let S=(0,i.M)(s,"default"),b=(0,i.M)(s,"getStaticProps"),y=(0,i.M)(s,"getStaticPaths"),E=(0,i.M)(s,"getServerSideProps"),P=(0,i.M)(s,"config"),v=(0,i.M)(s,"reportWebVitals"),A=(0,i.M)(s,"unstable_getStaticProps"),N=(0,i.M)(s,"unstable_getStaticPaths"),D=(0,i.M)(s,"unstable_getStaticParams"),O=(0,i.M)(s,"unstable_getServerProps"),k=(0,i.M)(s,"unstable_getServerSideProps"),w=new n.PagesRouteModule({definition:{kind:a.A.PAGES,page:"/unsubscribe",pathname:"/unsubscribe",bundlePath:"",filename:""},components:{App:c.default,Document:o.default},userland:s})},91258:(e,t,r)=>{r.d(t,{A:()=>i});var s=r(8732),n=r(82015),a=r.n(n);function i({pageTitle:e,pageDescription:t,pagePathname:r,aceEditor:n}){return(0,s.jsxs)(a().Fragment,{children:[(0,s.jsx)("link",{rel:"canonical",href:"http://localhost:7070"+r}),(0,s.jsx)("meta",{property:"og:url",content:"http://localhost:7070"+r}),(0,s.jsx)("meta",{itemProp:"url",content:"http://localhost:7070"+r}),(0,s.jsx)("meta",{name:"twitter:url",content:"http://localhost:7070"+r}),(0,s.jsx)("meta",{property:"og:title",content:e}),(0,s.jsx)("meta",{property:"og:description",content:t}),(0,s.jsx)("meta",{itemProp:"name",content:e}),(0,s.jsx)("meta",{itemProp:"description",content:t}),(0,s.jsx)("meta",{name:"twitter:title",content:e}),(0,s.jsx)("meta",{name:"twitter:description",content:t}),n&&(0,s.jsxs)(a().Fragment,{children:[(0,s.jsx)("script",{src:"https://cdnjs.cloudflare.com/ajax/libs/ace/1.22.0/ace.min.js",integrity:"sha512-q6CTB0jS+VuJnSct82rVcWlI06LGzNjaG3CWenHWVUncRvc4UQMFkA3a5Ip880xr+lBx38FcHDclOxPdSg+sBw==",crossOrigin:"anonymous",referrerPolicy:"no-referrer"}),(0,s.jsx)("script",{src:"https://cdnjs.cloudflare.com/ajax/libs/ace/1.22.0/ext-language_tools.min.js",integrity:"sha512-6g6cvocV7eT/J8L44lL8gJKqq9onqQeYGgJO0DmrsYFcCfRl6wYkYA/KHS768r4QVTB4JxsCcMQ9gIezxpTCZw==",crossOrigin:"anonymous",referrerPolicy:"no-referrer"})]})]})}},92702:(e,t,r)=>{r.d(t,{A:()=>c});var s=r(71934),n=r(71205),a=r(29021),i=r.n(a),o=r(41939);async function c(e,t,r){try{let{keyCookieName:a,csrfCookieName:c}=(0,o.A)();if(!e.cookies?.[a]?.match(/./))throw Error("Request Cookies not Found!");let l=(0,n.A)({encryptedString:e.cookies[a]});if(!l)throw Error("Couldn't decrypt auth cookie!");let u=JSON.parse(l);if(!u.csrf_k)throw Error("No `csrf_k` present in user Object!");if(r&&!Object.keys(e.headers).find(e=>e.includes(u.csrf_k)))throw Error("Deep Auth Failed. `csrf` key not found in request headers!");let p=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!p)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(r&&!i().existsSync(`${p}/${u.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==u.verification_status&&!r){let e=await (0,s.A)(`SELECT verification_status FROM users WHERE id='${u.id}'`);e&&e[0]&&1==e[0].verification_status&&t.setHeader("Set-Cookie",["user_refresh=1"])}if(u?.date&&Date.now()-u.date>6048e5)throw Error("Key expired!");return u}catch(e){return console.log(`userAuth Error: ${e.message}`),null}}},41939:(e,t,r)=>{r.d(t,{A:()=>s});function s(e){let t=process.env.DSQL_COOKIES_PREFIX||"dsql_",r=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",n=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",a=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),i=t;e?.userId&&(i+=`user_${e.userId}_`),a&&(i+=`${a}_`),i+=r;let o=t;e?.userId&&(o+=`user_${e.userId}_`),a&&(o+=`${a}_`),o+=s;let c=t;return e?.userId&&(c+=`user_${e.userId}_`),a&&(c+=`${a}_`),{keyCookieName:i,csrfCookieName:o,oneTimeCodeName:c+=n}}},71205:(e,t,r)=>{r.d(t,{A:()=>a});var s=r(55511),n=r(79428);function a({encryptedString:e,encryptionKey:t,encryptionSalt:r}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let a=t||process.env.DSQL_ENCRYPTION_PASSWORD,i=r||process.env.DSQL_ENCRYPTION_SALT,o=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!a?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let c=(0,s.scryptSync)(a,i,o),l=n.Buffer.alloc(16,0),u=(0,s.createDecipheriv)("aes-192-cbc",c,l);try{let t=u.update(e,"hex","utf8");return t+=u.final("utf8")}catch(t){return console.log("Error in decrypting =>",t.message),e}}},71934:(e,t,r)=>{r.d(t,{A:()=>s});async function s(...e){let t=global.DSQL_DB_CONN;try{if(!t)throw Error("No Connection provided to DB_HANDLER function!");let r=await t.query(...e);return JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await t?.end()}}},5583:(e,t,r)=>{r.r(t),r.d(t,{default:()=>a});var s=r(8732);r(82015);var n=r(20883);function a(){return(0,s.jsxs)(n.Html,{lang:"en",children:[(0,s.jsxs)(n.Head,{children:[(0,s.jsx)("meta",{name:"author",content:"Datasquirel"}),(0,s.jsx)("meta",{name:"Copyright",content:`Copyright (c) ${new Date().getFullYear()} Datasquirel`}),"dev_dev".match(/dev/)&&(0,s.jsx)("meta",{name:"robots",content:"noindex,nofollow"}),(0,s.jsx)("link",{rel:"preconnect",href:"https://fonts.googleapis.com/",crossOrigin:"anonymous"}),(0,s.jsx)("link",{rel:"preconnect",href:"https://fonts.gstatic.com",crossOrigin:"anonymous"}),(0,s.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=Poppins"}),(0,s.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=Inter"}),(0,s.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=IBM+Plex+Mono"}),(0,s.jsx)("script",{src:"/scripts/themeSelector.js"}),(0,s.jsx)("meta",{httpEquiv:"Content-Type",content:"text/html; charset=UTF-8"}),(0,s.jsx)("meta",{property:"og:site_name",content:"DATASQUIREL"}),(0,s.jsx)("meta",{property:"og:type",content:"website"}),(0,s.jsx)("meta",{name:"twitter:card",content:"summary"}),(0,s.jsx)("meta",{property:"og:image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,s.jsx)("meta",{itemProp:"image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,s.jsx)("meta",{name:"twitter:image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,s.jsx)("link",{rel:"stylesheet",href:"/styles/prism.css"}),(0,s.jsx)("script",{src:"/scripts/prism.js",async:!0}),(0,s.jsx)("script",{dangerouslySetInnerHTML:{__html:"var DSQL = {}"}})]}),(0,s.jsxs)("body",{children:[(0,s.jsx)(n.Main,{}),(0,s.jsx)(n.NextScript,{})]})]})}},9455:(e,t)=>{Object.defineProperty(t,"A",{enumerable:!0,get:function(){return r}});var r=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},13893:e=>{e.exports=require("@moduletrace/datasquirel/dist/client/fetch")},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{e.exports=require("next/head")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},8732:e=>{e.exports=require("react/jsx-runtime")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")}};var t=require("../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),s=t.X(0,[883,9821,9796],()=>r(41531));module.exports=s})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=3751,e.ids=[3220,3751],e.modules={30671:(e,t)=>{Object.defineProperty(t,"M",{enumerable:!0,get:function(){return function e(t,r){return r in t?t[r]:"then"in t&&"function"==typeof t.then?t.then(t=>e(t,r)):"function"==typeof t&&"default"===r?t:void 0}}})},41531:(e,t,r)=>{r.r(t),r.d(t,{config:()=>P,default:()=>S,getServerSideProps:()=>E,getStaticPaths:()=>y,getStaticProps:()=>b,reportWebVitals:()=>v,routeModule:()=>w,unstable_getServerProps:()=>O,unstable_getServerSideProps:()=>k,unstable_getStaticParams:()=>D,unstable_getStaticPaths:()=>N,unstable_getStaticProps:()=>A});var s={};r.r(s),r.d(s,{default:()=>_,getServerSideProps:()=>j});var n=r(63865),a=r(9455),o=r(30671),i=r(5583),c=r(19796),l=r(8732),u=r(82015),p=r.n(u),m=r(16757),d=r(91258),h=r(92702),x=r(46169),f=r(1013),g=r(71934);function _({user:e,email:t,productionEnvironment:r,existingAlerts:s}){let n="Unsubscribe | Datasquirel",a="Unsubscribe from email alerts",o=(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("title",{children:n}),(0,l.jsx)("meta",{name:"description",content:a}),(0,l.jsx)(d.A,{pageTitle:n,pageDescription:a,pagePathname:"/unsubscribe"})]}),[i,c]=p().useState(!1);return(0,l.jsx)(p().Fragment,{children:(0,l.jsx)(f.A,{head:o,user:e,productionEnvironment:r,children:(0,l.jsx)("main",{children:(0,l.jsxs)("section",{children:[i&&(0,l.jsx)(m.A,{}),(0,l.jsxs)("div",{className:"flex-col",children:[(0,l.jsx)("h1",{className:"text-2xl",children:"Unsubscribe from Email alerts"}),!t&&(0,l.jsxs)("p",{className:"max-w-md",children:["No email please ",(0,l.jsx)("a",{href:"/login",children:"Login"})," ","to Access Email Subscriptions or click on"," ",(0,l.jsx)("i",{children:'"unsubscribe"'})," from your mail box"]}),t&&(0,l.jsxs)("form",{className:"flex flex-col items-start gap-4",onSubmit:r=>{r.preventDefault(),c(!0);let s=r.target;(0,x.A)("/api/unsubscribe",{method:"post",body:{email:t,alerts:s.alerts_checkbox.checked,userId:e?.id?e.id:null}}).then(e=>{console.log(e),c(!1)})},children:[(0,l.jsx)("span",{className:"bg-slate-100 py-1 px-3 rounded-full",children:t}),(0,l.jsxs)("div",{className:"flex items-center gap-1",children:[(0,l.jsx)("input",{type:"checkbox",name:"alerts_checkbox",id:"alerts_checkbox",defaultChecked:!!s,className:"w-6 h-6"}),(0,l.jsx)("label",{htmlFor:"alerts_checkbox",className:"text-base whitespace-nowrap text-slate-800",children:"Alerts"})]}),(0,l.jsx)("button",{children:"Save Settings"})]})]})]})})})})}async function j({req:e,res:t,query:r}){let s=process.env.DSQL_HOST_ENV,n=await (0,h.A)(e,t),a=r.email?r.email:n?.email?n.email:null,o=await (0,g.A)(`SELECT email FROM unsubscribes WHERE email='${a}' AND type='alerts'`);return{props:{user:n,email:a,productionEnvironment:s,existingAlerts:!o[0]}}}let S=(0,o.M)(s,"default"),b=(0,o.M)(s,"getStaticProps"),y=(0,o.M)(s,"getStaticPaths"),E=(0,o.M)(s,"getServerSideProps"),P=(0,o.M)(s,"config"),v=(0,o.M)(s,"reportWebVitals"),A=(0,o.M)(s,"unstable_getStaticProps"),N=(0,o.M)(s,"unstable_getStaticPaths"),D=(0,o.M)(s,"unstable_getStaticParams"),O=(0,o.M)(s,"unstable_getServerProps"),k=(0,o.M)(s,"unstable_getServerSideProps"),w=new n.PagesRouteModule({definition:{kind:a.A.PAGES,page:"/unsubscribe",pathname:"/unsubscribe",bundlePath:"",filename:""},components:{App:c.default,Document:i.default},userland:s})},91258:(e,t,r)=>{r.d(t,{A:()=>o});var s=r(8732),n=r(82015),a=r.n(n);function o({pageTitle:e,pageDescription:t,pagePathname:r,aceEditor:n}){return(0,s.jsxs)(a().Fragment,{children:[(0,s.jsx)("link",{rel:"canonical",href:"http://localhost:7070"+r}),(0,s.jsx)("meta",{property:"og:url",content:"http://localhost:7070"+r}),(0,s.jsx)("meta",{itemProp:"url",content:"http://localhost:7070"+r}),(0,s.jsx)("meta",{name:"twitter:url",content:"http://localhost:7070"+r}),(0,s.jsx)("meta",{property:"og:title",content:e}),(0,s.jsx)("meta",{property:"og:description",content:t}),(0,s.jsx)("meta",{itemProp:"name",content:e}),(0,s.jsx)("meta",{itemProp:"description",content:t}),(0,s.jsx)("meta",{name:"twitter:title",content:e}),(0,s.jsx)("meta",{name:"twitter:description",content:t}),n&&(0,s.jsxs)(a().Fragment,{children:[(0,s.jsx)("script",{src:"https://cdnjs.cloudflare.com/ajax/libs/ace/1.22.0/ace.min.js",integrity:"sha512-q6CTB0jS+VuJnSct82rVcWlI06LGzNjaG3CWenHWVUncRvc4UQMFkA3a5Ip880xr+lBx38FcHDclOxPdSg+sBw==",crossOrigin:"anonymous",referrerPolicy:"no-referrer"}),(0,s.jsx)("script",{src:"https://cdnjs.cloudflare.com/ajax/libs/ace/1.22.0/ext-language_tools.min.js",integrity:"sha512-6g6cvocV7eT/J8L44lL8gJKqq9onqQeYGgJO0DmrsYFcCfRl6wYkYA/KHS768r4QVTB4JxsCcMQ9gIezxpTCZw==",crossOrigin:"anonymous",referrerPolicy:"no-referrer"})]})]})}},92702:(e,t,r)=>{r.d(t,{A:()=>c});var s=r(71934),n=r(71205),a=r(29021),o=r.n(a),i=r(41939);async function c(e,t,r){try{let{keyCookieName:a,csrfCookieName:c}=(0,i.A)();if(!e.cookies?.[a]?.match(/./))throw Error("Request Cookies not Found!");let l=(0,n.A)({encryptedString:e.cookies[a]});if(!l)throw Error("Couldn't decrypt auth cookie!");let u=JSON.parse(l);if(!u.csrf_k)throw Error("No `csrf_k` present in user Object!");if(r&&!Object.keys(e.headers).find(e=>e.includes(u.csrf_k)))throw console.log("req.headers",e.headers),console.log("userObject",u),Error("Deep Auth Failed. `csrf` key not found in request headers!");let p=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!p)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(r&&!o().existsSync(`${p}/${u.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==u.verification_status&&!r){let e=await (0,s.A)(`SELECT verification_status FROM users WHERE id='${u.id}'`);e&&e[0]&&1==e[0].verification_status&&t.setHeader("Set-Cookie",["user_refresh=1"])}if(u?.date&&Date.now()-u.date>6048e5)throw Error("Key expired!");return u}catch(e){return console.log(`userAuth Error: ${e.message}`),null}}},41939:(e,t,r)=>{r.d(t,{A:()=>s});function s(e){let t=process.env.DSQL_COOKIES_PREFIX||"dsql_",r=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",n=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",a=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),o=t;e?.userId&&(o+=`user_${e.userId}_`),a&&(o+=`${a}_`),o+=r;let i=t;e?.userId&&(i+=`user_${e.userId}_`),a&&(i+=`${a}_`),i+=s;let c=t;return e?.userId&&(c+=`user_${e.userId}_`),a&&(c+=`${a}_`),{keyCookieName:o,csrfCookieName:i,oneTimeCodeName:c+=n}}},71205:(e,t,r)=>{r.d(t,{A:()=>a});var s=r(55511),n=r(79428);function a({encryptedString:e,encryptionKey:t,encryptionSalt:r}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let a=t||process.env.DSQL_ENCRYPTION_PASSWORD,o=r||process.env.DSQL_ENCRYPTION_SALT,i=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!a?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!o?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let c=(0,s.scryptSync)(a,o,i),l=n.Buffer.alloc(16,0),u=(0,s.createDecipheriv)("aes-192-cbc",c,l);try{let t=u.update(e,"hex","utf8");return t+=u.final("utf8")}catch(t){return console.log("Error in decrypting =>",t.message),e}}},71934:(e,t,r)=>{r.d(t,{A:()=>s});async function s(...e){let t=global.DSQL_DB_CONN;try{if(!t)throw Error("No Connection provided to DB_HANDLER function!");let r=await t.query(...e);return JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await t?.end()}}},5583:(e,t,r)=>{r.r(t),r.d(t,{default:()=>a});var s=r(8732);r(82015);var n=r(20883);function a(){return(0,s.jsxs)(n.Html,{lang:"en",children:[(0,s.jsxs)(n.Head,{children:[(0,s.jsx)("meta",{name:"author",content:"Datasquirel"}),(0,s.jsx)("meta",{name:"Copyright",content:`Copyright (c) ${new Date().getFullYear()} Datasquirel`}),"dev_dev".match(/dev/)&&(0,s.jsx)("meta",{name:"robots",content:"noindex,nofollow"}),(0,s.jsx)("link",{rel:"preconnect",href:"https://fonts.googleapis.com/",crossOrigin:"anonymous"}),(0,s.jsx)("link",{rel:"preconnect",href:"https://fonts.gstatic.com",crossOrigin:"anonymous"}),(0,s.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=Poppins"}),(0,s.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=Inter"}),(0,s.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=IBM+Plex+Mono"}),(0,s.jsx)("script",{src:"/scripts/themeSelector.js"}),(0,s.jsx)("meta",{httpEquiv:"Content-Type",content:"text/html; charset=UTF-8"}),(0,s.jsx)("meta",{property:"og:site_name",content:"DATASQUIREL"}),(0,s.jsx)("meta",{property:"og:type",content:"website"}),(0,s.jsx)("meta",{name:"twitter:card",content:"summary"}),(0,s.jsx)("meta",{property:"og:image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,s.jsx)("meta",{itemProp:"image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,s.jsx)("meta",{name:"twitter:image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,s.jsx)("link",{rel:"stylesheet",href:"/styles/prism.css"}),(0,s.jsx)("script",{src:"/scripts/prism.js",async:!0}),(0,s.jsx)("script",{dangerouslySetInnerHTML:{__html:"var DSQL = {}"}})]}),(0,s.jsxs)("body",{children:[(0,s.jsx)(n.Main,{}),(0,s.jsx)(n.NextScript,{})]})]})}},9455:(e,t)=>{Object.defineProperty(t,"A",{enumerable:!0,get:function(){return r}});var r=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},13893:e=>{e.exports=require("@moduletrace/datasquirel/dist/client/fetch")},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{e.exports=require("next/head")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},8732:e=>{e.exports=require("react/jsx-runtime")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")}};var t=require("../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),s=t.X(0,[883,9821,9796],()=>r(41531));module.exports=s})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/static/YuXZx16H1DusDjnsSaCji/_buildManifest.js b/dsql-app/.local_dist/static/Vwi6iXhX7A60Ca2R9JTQV/_buildManifest.js similarity index 92% rename from dsql-app/.local_dist/static/YuXZx16H1DusDjnsSaCji/_buildManifest.js rename to dsql-app/.local_dist/static/Vwi6iXhX7A60Ca2R9JTQV/_buildManifest.js index 7fb2a3d..0b1677c 100644 --- a/dsql-app/.local_dist/static/YuXZx16H1DusDjnsSaCji/_buildManifest.js +++ b/dsql-app/.local_dist/static/Vwi6iXhX7A60Ca2R9JTQV/_buildManifest.js @@ -1 +1 @@ -self.__BUILD_MANIFEST=function(s,a,e,d,i,t,c,n,u,b,r,g,l,_,m,h,p,k,f,o,j,y,w,v,I,B,F){return{__rewrites:{afterFiles:[],beforeFiles:[],fallback:[]},__routerFilterStatic:{numItems:0,errorRate:1e-4,numBits:0,numHashes:j,bitArray:[]},__routerFilterDynamic:{numItems:0,errorRate:1e-4,numBits:u,numHashes:j,bitArray:[]},"/":[y,"static/css/60c48dd4b3301227.css","static/chunks/pages/index-d8f75819eb449ffc.js"],"/404":["static/chunks/pages/404-386ef30594132ecb.js"],"/500":["static/chunks/pages/500-81f6b715960091f2.js"],"/_error":["static/chunks/pages/_error-133b121cd6670ef3.js"],"/about":[y,"static/chunks/pages/about-69331c972566352a.js"],"/admin":[s,m,"static/chunks/pages/admin-eaa52fa698c19034.js"],"/admin/[user_id]":[s,m,"static/chunks/pages/admin/[user_id]-61bef31d3a4e9e7a.js"],"/admin/[user_id]/api-keys":[s,"static/chunks/pages/admin/[user_id]/api-keys-2c8109e5388827d9.js"],"/admin/[user_id]/connect":[s,"static/chunks/pages/admin/[user_id]/connect-40047d3fd5229513.js"],"/admin/[user_id]/databases":[s,m,"static/chunks/pages/admin/[user_id]/databases-23779acb61fbe51a.js"],"/admin/[user_id]/databases/add-database":[c,s,w,"static/chunks/pages/admin/[user_id]/databases/add-database-276c7177adf6be55.js"],"/admin/[user_id]/databases/[single]":[a,s,e,t,"static/chunks/pages/admin/[user_id]/databases/[single]-05dbbed42a310967.js"],"/admin/[user_id]/databases/[single]/connect":[a,s,e,i,"static/chunks/pages/admin/[user_id]/databases/[single]/connect-3a065ea39acafd03.js"],"/admin/[user_id]/databases/[single]/edit-database":[a,c,s,e,w,"static/chunks/pages/admin/[user_id]/databases/[single]/edit-database-1f2bf0df5f51fa43.js"],"/admin/[user_id]/databases/[single]/schema":[a,s,e,t,"static/chunks/pages/admin/[user_id]/databases/[single]/schema-8b9d66b8d3cb2a1a.js"],"/admin/[user_id]/databases/[single]/shell":[a,s,e,"static/chunks/pages/admin/[user_id]/databases/[single]/shell-dff01c9e4cff1d7e.js"],"/admin/[user_id]/databases/[single]/tables":[a,s,e,t,"static/chunks/pages/admin/[user_id]/databases/[single]/tables-48fec207563f61d7.js"],"/admin/[user_id]/databases/[single]/tables/add-table":[b,a,r,s,e,i,g,"static/chunks/pages/admin/[user_id]/databases/[single]/tables/add-table-e39fba476a9e1ad8.js"],"/admin/[user_id]/databases/[single]/tables/[single_table]":[b,a,n,r,h,s,e,i,t,g,l,p,v,"static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]-f34ee3fd9517cd2c.js"],"/admin/[user_id]/databases/[single]/tables/[single_table]/edit-table":[b,a,r,s,e,i,t,g,"static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]/edit-table-38aa98661e043781.js"],"/admin/[user_id]/databases/[single]/tables/[single_table]/entries":[a,n,h,s,e,i,t,l,p,v,"static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries-e611979837269e2d.js"],"/admin/[user_id]/databases/[single]/tables/[single_table]/entries/add-entry":[a,n,"static/chunks/7287-dadce6acb3d43d67.js",s,e,t,l,"static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/add-entry-e609e60d52830241.js"],"/admin/[user_id]/databases/[single]/tables/[single_table]/entries/[single_entry]":[a,n,h,s,e,l,p,"static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/[single_entry]-7bbd383a24ee015d.js"],"/admin/[user_id]/databases/[single]/tables/[single_table]/fields":[b,a,r,s,e,i,t,g,"static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]/fields-ab177e1e5adacaef.js"],"/admin/[user_id]/databases/[single]/users":[a,s,e,t,_,"static/chunks/pages/admin/[user_id]/databases/[single]/users-5b8dd72d94432cb8.js"],"/admin/[user_id]/databases/[single]/users/add-social-logins":[a,s,e,"static/chunks/pages/admin/[user_id]/databases/[single]/users/add-social-logins-dcc54bfad6c4818a.js"],"/admin/[user_id]/databases/[single]/users/add-user":[a,c,s,e,i,"static/chunks/pages/admin/[user_id]/databases/[single]/users/add-user-6d9f5bb6c681b082.js"],"/admin/[user_id]/databases/[single]/users/[user]":[a,c,s,e,"static/chunks/pages/admin/[user_id]/databases/[single]/users/[user]-f062b4d0b80557a7.js"],"/admin/[user_id]/databases/[single]/users/[user]/change-password":[a,s,e,"static/chunks/pages/admin/[user_id]/databases/[single]/users/[user]/change-password-5c6ae113aee79d1d.js"],"/admin/[user_id]/media":[c,s,I,"static/chunks/pages/admin/[user_id]/media-29e4886d0c31d5c3.js"],"/admin/[user_id]/media/[...folder]":[c,s,I,"static/chunks/pages/admin/[user_id]/media/[...folder]-c8df7e4d1118eb40.js"],"/admin/[user_id]/schema":[a,s,"static/chunks/pages/admin/[user_id]/schema-2ab99d8d3c163b57.js"],"/admin/[user_id]/settings":[c,s,k,B,"static/chunks/pages/admin/[user_id]/settings-203cb6b64dc51850.js"],"/admin/[user_id]/users":[s,_,"static/chunks/pages/admin/[user_id]/users-52b7048018746ac0.js"],"/admin/[user_id]/users/add-user":[s,"static/chunks/pages/admin/[user_id]/users/add-user-2423cd3e4b75b0ee.js"],"/admin/[user_id]/users/databases":[s,_,"static/chunks/pages/admin/[user_id]/users/databases-ef511feca7c10b56.js"],"/admin/[user_id]/users/databases/[database]":[s,_,"static/chunks/pages/admin/[user_id]/users/databases/[database]-76e13995132a5d19.js"],"/admin/[user_id]/users/databases/[database]/[user]":[c,s,"static/chunks/pages/admin/[user_id]/users/databases/[database]/[user]-096740ae36fd55b2.js"],"/blog":["static/chunks/pages/blog-8c70d46c8352664e.js"],"/contact":["static/chunks/pages/contact-f2a4f3c2e97b25fb.js"],"/create-account":[k,B,"static/chunks/pages/create-account-59f89a25241640f4.js"],"/docs":["static/chunks/pages/docs-354599f34e0b3ced.js"],"/docs/[page]":["static/chunks/pages/docs/[page]-2cdf66e0a0a6fd83.js"],"/docs/[page]/[sub-page]":["static/chunks/pages/docs/[page]/[sub-page]-380f5cc7ef3513d4.js"],"/email-verification":["static/chunks/pages/email-verification-fec9fecfdcb56e8d.js"],"/login":[k,"static/chunks/pages/login-f10f3645e54e61fd.js"],"/logout":["static/chunks/pages/logout-455304f72b658ce6.js"],"/privacy":["static/chunks/pages/privacy-3a1d5e267140271e.js"],"/redirect":["static/chunks/pages/redirect-28627072d73850c2.js"],"/reset-password":["static/chunks/pages/reset-password-404836a50d6e9e32.js"],"/send-password-reset-link":["static/chunks/pages/send-password-reset-link-01b2509dfe7be8b2.js"],"/su":[d,"static/chunks/pages/su-56e8a64a3be59f73.js"],"/su/backups":[d,"static/chunks/pages/su/backups-033362c47c6541f4.js"],"/su/console":["static/chunks/ed150ef9-468dbc55986083e4.js","static/chunks/2793-d85659f470ce8842.js",d,"static/css/85fa6dafca566008.css","static/chunks/pages/su/console-c8b9bd49e5191033.js"],"/su/docs":[d,F,"static/chunks/pages/su/docs-49dc94fa2828f090.js"],"/su/docs/create-page":[n,d,i,f,"static/chunks/pages/su/docs/create-page-3b58b3bb388f340b.js"],"/su/docs/edit-page":[n,d,i,f,"static/chunks/pages/su/docs/edit-page-85a0ca0be5537063.js"],"/su/docs/pages":[d,F,"static/chunks/pages/su/docs/pages-2a88e2094d85ce52.js"],"/su/docs/pages/[id]":[n,d,i,f,"static/chunks/pages/su/docs/pages/[id]-4d39f3debc44f352.js"],"/su/envar":[d,"static/chunks/pages/su/envar-8c4d450d1932f9d6.js"],"/su/error-logs":[d,"static/chunks/pages/su/error-logs-d4ffbb81ddac6cec.js"],"/su/load-balancing":[a,d,"static/chunks/pages/su/load-balancing-d0b790d61a50a4ef.js"],"/su/login":["static/chunks/pages/su/login-218c9150552b8800.js"],"/su/servers":[a,d,"static/chunks/pages/su/servers-d48477ad4489744d.js"],"/su/users":[d,"static/chunks/pages/su/users-519384d02df33446.js"],"/su/users/new":[d,"static/chunks/pages/su/users/new-8a739402db28044b.js"],"/su/users/[single]":[a,d,"static/chunks/pages/su/users/[single]-a95d897a2dad7f62.js"],"/terms":["static/chunks/pages/terms-37fb4519d728aa13.js"],"/unsubscribe":["static/chunks/pages/unsubscribe-e6a608d5b8cea536.js"],sortedPages:["/","/404","/500","/_app","/_error","/about","/admin","/admin/[user_id]","/admin/[user_id]/api-keys","/admin/[user_id]/connect","/admin/[user_id]/databases","/admin/[user_id]/databases/add-database","/admin/[user_id]/databases/[single]","/admin/[user_id]/databases/[single]/connect","/admin/[user_id]/databases/[single]/edit-database","/admin/[user_id]/databases/[single]/schema","/admin/[user_id]/databases/[single]/shell","/admin/[user_id]/databases/[single]/tables","/admin/[user_id]/databases/[single]/tables/add-table","/admin/[user_id]/databases/[single]/tables/[single_table]","/admin/[user_id]/databases/[single]/tables/[single_table]/edit-table","/admin/[user_id]/databases/[single]/tables/[single_table]/entries","/admin/[user_id]/databases/[single]/tables/[single_table]/entries/add-entry","/admin/[user_id]/databases/[single]/tables/[single_table]/entries/[single_entry]","/admin/[user_id]/databases/[single]/tables/[single_table]/fields","/admin/[user_id]/databases/[single]/users","/admin/[user_id]/databases/[single]/users/add-social-logins","/admin/[user_id]/databases/[single]/users/add-user","/admin/[user_id]/databases/[single]/users/[user]","/admin/[user_id]/databases/[single]/users/[user]/change-password","/admin/[user_id]/media","/admin/[user_id]/media/[...folder]","/admin/[user_id]/schema","/admin/[user_id]/settings","/admin/[user_id]/users","/admin/[user_id]/users/add-user","/admin/[user_id]/users/databases","/admin/[user_id]/users/databases/[database]","/admin/[user_id]/users/databases/[database]/[user]","/blog","/contact","/create-account","/docs","/docs/[page]","/docs/[page]/[sub-page]","/email-verification","/login","/logout","/privacy","/redirect","/reset-password","/send-password-reset-link","/su","/su/backups","/su/console","/su/docs","/su/docs/create-page","/su/docs/edit-page","/su/docs/pages","/su/docs/pages/[id]","/su/envar","/su/error-logs","/su/load-balancing","/su/login","/su/servers","/su/users","/su/users/new","/su/users/[single]","/terms","/unsubscribe"]}}("static/chunks/7391-b72414be460cf0f0.js","static/chunks/6428-c106bf6efb539d8c.js","static/chunks/8076-c34ce8d8512255e7.js","static/chunks/5810-7c3a3c4731750dc7.js","static/chunks/9268-6ca91a807cecf2b4.js","static/chunks/2438-aa7e9f2130cd81f0.js","static/chunks/8261-3c3582fc434ee275.js","static/chunks/9660-628b42bc1127aefa.js",0,"static/chunks/94726e6d-33de6887e71ace1a.js","static/chunks/6460-ab4ab8caec784ffc.js","static/chunks/8311-ae577d4bb030d416.js","static/chunks/1580-68f706d212c5eb63.js","static/chunks/6383-02bec644b1a9f0a8.js","static/chunks/9950-e6be92fc61deb6e3.js","static/chunks/2829-608af754738e12fc.js","static/chunks/6830-80ccce098977dfd6.js","static/chunks/6999-765fb1dc8daf2756.js","static/chunks/4261-1181ad7559234ce0.js",0,NaN,"static/chunks/3298-73758aefe44233a6.js","static/chunks/3867-6732c13e333b30b2.js","static/chunks/4403-fc19b6af6ca4b3fe.js","static/chunks/2480-c3f2e7fac796ce00.js","static/chunks/4060-34ac8bf5371932b9.js","static/chunks/6099-150cc189810f2bfd.js"),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB(); \ No newline at end of file +self.__BUILD_MANIFEST=function(s,a,e,d,i,t,c,n,u,b,r,g,l,_,m,h,p,f,k,o,j,y,w,v,I,B,F){return{__rewrites:{afterFiles:[],beforeFiles:[],fallback:[]},__routerFilterStatic:{numItems:0,errorRate:1e-4,numBits:0,numHashes:j,bitArray:[]},__routerFilterDynamic:{numItems:0,errorRate:1e-4,numBits:u,numHashes:j,bitArray:[]},"/":[y,"static/css/60c48dd4b3301227.css","static/chunks/pages/index-d8f75819eb449ffc.js"],"/404":["static/chunks/pages/404-386ef30594132ecb.js"],"/500":["static/chunks/pages/500-81f6b715960091f2.js"],"/_error":["static/chunks/pages/_error-133b121cd6670ef3.js"],"/about":[y,"static/chunks/pages/about-69331c972566352a.js"],"/admin":[s,m,"static/chunks/pages/admin-eaa52fa698c19034.js"],"/admin/[user_id]":[s,m,"static/chunks/pages/admin/[user_id]-61bef31d3a4e9e7a.js"],"/admin/[user_id]/api-keys":[s,"static/chunks/pages/admin/[user_id]/api-keys-2c8109e5388827d9.js"],"/admin/[user_id]/connect":[s,"static/chunks/pages/admin/[user_id]/connect-40047d3fd5229513.js"],"/admin/[user_id]/databases":[s,m,"static/chunks/pages/admin/[user_id]/databases-23779acb61fbe51a.js"],"/admin/[user_id]/databases/add-database":[c,s,w,"static/chunks/pages/admin/[user_id]/databases/add-database-276c7177adf6be55.js"],"/admin/[user_id]/databases/[single]":[a,s,e,t,"static/chunks/pages/admin/[user_id]/databases/[single]-05dbbed42a310967.js"],"/admin/[user_id]/databases/[single]/connect":[a,s,e,i,"static/chunks/pages/admin/[user_id]/databases/[single]/connect-3a065ea39acafd03.js"],"/admin/[user_id]/databases/[single]/edit-database":[a,c,s,e,w,"static/chunks/pages/admin/[user_id]/databases/[single]/edit-database-1f2bf0df5f51fa43.js"],"/admin/[user_id]/databases/[single]/schema":[a,s,e,t,"static/chunks/pages/admin/[user_id]/databases/[single]/schema-8b9d66b8d3cb2a1a.js"],"/admin/[user_id]/databases/[single]/shell":[a,s,e,"static/chunks/pages/admin/[user_id]/databases/[single]/shell-dff01c9e4cff1d7e.js"],"/admin/[user_id]/databases/[single]/tables":[a,s,e,t,"static/chunks/pages/admin/[user_id]/databases/[single]/tables-48fec207563f61d7.js"],"/admin/[user_id]/databases/[single]/tables/add-table":[b,a,r,s,e,i,g,"static/chunks/pages/admin/[user_id]/databases/[single]/tables/add-table-e39fba476a9e1ad8.js"],"/admin/[user_id]/databases/[single]/tables/[single_table]":[b,a,n,r,h,s,e,i,t,g,l,p,v,"static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]-f34ee3fd9517cd2c.js"],"/admin/[user_id]/databases/[single]/tables/[single_table]/edit-table":[b,a,r,s,e,i,t,g,"static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]/edit-table-38aa98661e043781.js"],"/admin/[user_id]/databases/[single]/tables/[single_table]/entries":[a,n,h,s,e,i,t,l,p,v,"static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries-e611979837269e2d.js"],"/admin/[user_id]/databases/[single]/tables/[single_table]/entries/add-entry":[a,n,"static/chunks/7287-dadce6acb3d43d67.js",s,e,t,l,"static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/add-entry-e609e60d52830241.js"],"/admin/[user_id]/databases/[single]/tables/[single_table]/entries/[single_entry]":[a,n,h,s,e,l,p,"static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/[single_entry]-7bbd383a24ee015d.js"],"/admin/[user_id]/databases/[single]/tables/[single_table]/fields":[b,a,r,s,e,i,t,g,"static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]/fields-ab177e1e5adacaef.js"],"/admin/[user_id]/databases/[single]/users":[a,s,e,t,_,"static/chunks/pages/admin/[user_id]/databases/[single]/users-5b8dd72d94432cb8.js"],"/admin/[user_id]/databases/[single]/users/add-social-logins":[a,s,e,"static/chunks/pages/admin/[user_id]/databases/[single]/users/add-social-logins-dcc54bfad6c4818a.js"],"/admin/[user_id]/databases/[single]/users/add-user":[a,c,s,e,i,"static/chunks/pages/admin/[user_id]/databases/[single]/users/add-user-4954d7d1ed514dc9.js"],"/admin/[user_id]/databases/[single]/users/[user]":[a,c,s,e,"static/chunks/pages/admin/[user_id]/databases/[single]/users/[user]-f062b4d0b80557a7.js"],"/admin/[user_id]/databases/[single]/users/[user]/change-password":[a,s,e,"static/chunks/pages/admin/[user_id]/databases/[single]/users/[user]/change-password-5c6ae113aee79d1d.js"],"/admin/[user_id]/media":[c,s,I,"static/chunks/pages/admin/[user_id]/media-29e4886d0c31d5c3.js"],"/admin/[user_id]/media/[...folder]":[c,s,I,"static/chunks/pages/admin/[user_id]/media/[...folder]-c8df7e4d1118eb40.js"],"/admin/[user_id]/schema":[a,s,"static/chunks/pages/admin/[user_id]/schema-2ab99d8d3c163b57.js"],"/admin/[user_id]/settings":[c,s,f,B,"static/chunks/pages/admin/[user_id]/settings-203cb6b64dc51850.js"],"/admin/[user_id]/users":[s,_,"static/chunks/pages/admin/[user_id]/users-52b7048018746ac0.js"],"/admin/[user_id]/users/add-user":[s,"static/chunks/pages/admin/[user_id]/users/add-user-2423cd3e4b75b0ee.js"],"/admin/[user_id]/users/databases":[s,_,"static/chunks/pages/admin/[user_id]/users/databases-ef511feca7c10b56.js"],"/admin/[user_id]/users/databases/[database]":[s,_,"static/chunks/pages/admin/[user_id]/users/databases/[database]-76e13995132a5d19.js"],"/admin/[user_id]/users/databases/[database]/[user]":[c,s,"static/chunks/pages/admin/[user_id]/users/databases/[database]/[user]-096740ae36fd55b2.js"],"/blog":["static/chunks/pages/blog-8c70d46c8352664e.js"],"/contact":["static/chunks/pages/contact-f2a4f3c2e97b25fb.js"],"/create-account":[f,B,"static/chunks/pages/create-account-59f89a25241640f4.js"],"/docs":["static/chunks/pages/docs-354599f34e0b3ced.js"],"/docs/[page]":["static/chunks/pages/docs/[page]-2cdf66e0a0a6fd83.js"],"/docs/[page]/[sub-page]":["static/chunks/pages/docs/[page]/[sub-page]-380f5cc7ef3513d4.js"],"/email-verification":["static/chunks/pages/email-verification-fec9fecfdcb56e8d.js"],"/login":[f,"static/chunks/pages/login-f10f3645e54e61fd.js"],"/logout":["static/chunks/pages/logout-455304f72b658ce6.js"],"/privacy":["static/chunks/pages/privacy-3a1d5e267140271e.js"],"/redirect":["static/chunks/pages/redirect-28627072d73850c2.js"],"/reset-password":["static/chunks/pages/reset-password-404836a50d6e9e32.js"],"/send-password-reset-link":["static/chunks/pages/send-password-reset-link-01b2509dfe7be8b2.js"],"/su":[d,"static/chunks/pages/su-56e8a64a3be59f73.js"],"/su/backups":[d,"static/chunks/pages/su/backups-033362c47c6541f4.js"],"/su/console":["static/chunks/ed150ef9-468dbc55986083e4.js","static/chunks/2793-d85659f470ce8842.js",d,"static/css/85fa6dafca566008.css","static/chunks/pages/su/console-c8b9bd49e5191033.js"],"/su/docs":[d,F,"static/chunks/pages/su/docs-49dc94fa2828f090.js"],"/su/docs/create-page":[n,d,i,k,"static/chunks/pages/su/docs/create-page-3b58b3bb388f340b.js"],"/su/docs/edit-page":[n,d,i,k,"static/chunks/pages/su/docs/edit-page-85a0ca0be5537063.js"],"/su/docs/pages":[d,F,"static/chunks/pages/su/docs/pages-2a88e2094d85ce52.js"],"/su/docs/pages/[id]":[n,d,i,k,"static/chunks/pages/su/docs/pages/[id]-4d39f3debc44f352.js"],"/su/envar":[d,"static/chunks/pages/su/envar-8c4d450d1932f9d6.js"],"/su/error-logs":[d,"static/chunks/pages/su/error-logs-d4ffbb81ddac6cec.js"],"/su/load-balancing":[a,d,"static/chunks/pages/su/load-balancing-d0b790d61a50a4ef.js"],"/su/login":["static/chunks/pages/su/login-218c9150552b8800.js"],"/su/servers":[a,d,"static/chunks/pages/su/servers-d48477ad4489744d.js"],"/su/users":[d,"static/chunks/pages/su/users-519384d02df33446.js"],"/su/users/new":[d,"static/chunks/pages/su/users/new-8a739402db28044b.js"],"/su/users/[single]":[a,d,"static/chunks/pages/su/users/[single]-a95d897a2dad7f62.js"],"/terms":["static/chunks/pages/terms-37fb4519d728aa13.js"],"/unsubscribe":["static/chunks/pages/unsubscribe-e6a608d5b8cea536.js"],sortedPages:["/","/404","/500","/_app","/_error","/about","/admin","/admin/[user_id]","/admin/[user_id]/api-keys","/admin/[user_id]/connect","/admin/[user_id]/databases","/admin/[user_id]/databases/add-database","/admin/[user_id]/databases/[single]","/admin/[user_id]/databases/[single]/connect","/admin/[user_id]/databases/[single]/edit-database","/admin/[user_id]/databases/[single]/schema","/admin/[user_id]/databases/[single]/shell","/admin/[user_id]/databases/[single]/tables","/admin/[user_id]/databases/[single]/tables/add-table","/admin/[user_id]/databases/[single]/tables/[single_table]","/admin/[user_id]/databases/[single]/tables/[single_table]/edit-table","/admin/[user_id]/databases/[single]/tables/[single_table]/entries","/admin/[user_id]/databases/[single]/tables/[single_table]/entries/add-entry","/admin/[user_id]/databases/[single]/tables/[single_table]/entries/[single_entry]","/admin/[user_id]/databases/[single]/tables/[single_table]/fields","/admin/[user_id]/databases/[single]/users","/admin/[user_id]/databases/[single]/users/add-social-logins","/admin/[user_id]/databases/[single]/users/add-user","/admin/[user_id]/databases/[single]/users/[user]","/admin/[user_id]/databases/[single]/users/[user]/change-password","/admin/[user_id]/media","/admin/[user_id]/media/[...folder]","/admin/[user_id]/schema","/admin/[user_id]/settings","/admin/[user_id]/users","/admin/[user_id]/users/add-user","/admin/[user_id]/users/databases","/admin/[user_id]/users/databases/[database]","/admin/[user_id]/users/databases/[database]/[user]","/blog","/contact","/create-account","/docs","/docs/[page]","/docs/[page]/[sub-page]","/email-verification","/login","/logout","/privacy","/redirect","/reset-password","/send-password-reset-link","/su","/su/backups","/su/console","/su/docs","/su/docs/create-page","/su/docs/edit-page","/su/docs/pages","/su/docs/pages/[id]","/su/envar","/su/error-logs","/su/load-balancing","/su/login","/su/servers","/su/users","/su/users/new","/su/users/[single]","/terms","/unsubscribe"]}}("static/chunks/7391-b72414be460cf0f0.js","static/chunks/6428-c106bf6efb539d8c.js","static/chunks/8076-c34ce8d8512255e7.js","static/chunks/5810-7c3a3c4731750dc7.js","static/chunks/9268-6ca91a807cecf2b4.js","static/chunks/2438-aa7e9f2130cd81f0.js","static/chunks/8261-3c3582fc434ee275.js","static/chunks/9660-628b42bc1127aefa.js",0,"static/chunks/94726e6d-33de6887e71ace1a.js","static/chunks/6460-ab4ab8caec784ffc.js","static/chunks/8311-87e8d6ec01c2e05f.js","static/chunks/1580-68f706d212c5eb63.js","static/chunks/6383-02bec644b1a9f0a8.js","static/chunks/9950-e6be92fc61deb6e3.js","static/chunks/2829-608af754738e12fc.js","static/chunks/6830-80ccce098977dfd6.js","static/chunks/6999-765fb1dc8daf2756.js","static/chunks/4261-1181ad7559234ce0.js",0,NaN,"static/chunks/3298-73758aefe44233a6.js","static/chunks/3867-14d00e04cb2d431b.js","static/chunks/4403-dd72a46996d6c5f9.js","static/chunks/2480-c3f2e7fac796ce00.js","static/chunks/4060-34ac8bf5371932b9.js","static/chunks/6099-150cc189810f2bfd.js"),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB(); \ No newline at end of file diff --git a/dsql-app/.local_dist/static/YuXZx16H1DusDjnsSaCji/_ssgManifest.js b/dsql-app/.local_dist/static/Vwi6iXhX7A60Ca2R9JTQV/_ssgManifest.js similarity index 100% rename from dsql-app/.local_dist/static/YuXZx16H1DusDjnsSaCji/_ssgManifest.js rename to dsql-app/.local_dist/static/Vwi6iXhX7A60Ca2R9JTQV/_ssgManifest.js diff --git a/dsql-app/.local_dist/static/chunks/3867-6732c13e333b30b2.js b/dsql-app/.local_dist/static/chunks/3867-14d00e04cb2d431b.js similarity index 99% rename from dsql-app/.local_dist/static/chunks/3867-6732c13e333b30b2.js rename to dsql-app/.local_dist/static/chunks/3867-14d00e04cb2d431b.js index b4984c7..5b3c7a7 100644 --- a/dsql-app/.local_dist/static/chunks/3867-6732c13e333b30b2.js +++ b/dsql-app/.local_dist/static/chunks/3867-14d00e04cb2d431b.js @@ -1 +1 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3867],{7168:(e,a,t)=>{let l;t.d(a,{A:()=>p});var s=t(4848),i=t(6540),d=t(8589),n=t(6234),o=t(9020),r=t(65);async function c(e){var a,t,l,s,i,d,n;let{e:c,setLoading:u,dbImage:m,database:p,user:h}=e;u(!0);let g={db_description:(null===(t=c.target.database_description)||void 0===t?void 0:null===(a=t.value)||void 0===a?void 0:a.match(/./))?c.target.database_description.value:null,db_name:(null===(s=c.target.database_name)||void 0===s?void 0:null===(l=s.value)||void 0===l?void 0:l.match(/./))?c.target.database_name.value:null,db_slug:(null===(d=c.target.database_slug)||void 0===d?void 0:null===(i=d.value)||void 0===i?void 0:i.match(/./))?c.target.database_slug.value:null,db_full_name:p.db_full_name,id:p.id,active_clone:p.active_clone,active_clone_parent_db:p.active_clone_parent_db};if(m){if("string"==typeof m)g.db_image=m;else if("object"==typeof m){let e=await (0,o.A)("/api/addUserMedia",{method:"post",body:{media:[m],folder:g.db_slug.replace(/_/g,"-"),type:"image"}},!0);g.db_image=(null==e?void 0:null===(n=e.mediaData[0])||void 0===n?void 0:n.media_thumbnail_url)?e.mediaData[0].media_thumbnail_url:"/images/database-placeholder.png"}}else g.db_image="/images/database-placeholder.png";(0,o.A)("/api/updateUserDatabase",{method:"post",body:g},!0).then(e=>{e.success?(0,r.A)().then(()=>{window.location.pathname="/admin/".concat(null==h?void 0:h.id,"/databases"),setTimeout(()=>{u(!1)},1e3)}):(alert("Error! Please Try Again"),setTimeout(()=>{u(!1)},1e3))})}async function u(e){var a,t,l;let{e:s,setLoading:i,dbImage:d,keepUpdated:n,keepDataUpdated:c,query:u,user:m}=e;i(!0);let p={db_name:s.target.database_name.value,db_slug:s.target.database_slug.value,db_description:(null===(t=s.target.database_description)||void 0===t?void 0:null===(a=t.value)||void 0===a?void 0:a.match(/./))?s.target.database_description.value:null};if(d){if("string"==typeof d)p.db_image=d;else if("object"==typeof d){let e=await (0,o.A)("/api/addUserMedia",{method:"post",body:{media:[d],folder:p.db_slug.replace(/_/g,"-"),type:"image"}},!0);p.db_image=(null==e?void 0:null===(l=e.mediaData[0])||void 0===l?void 0:l.media_thumbnail_url)?e.mediaData[0].media_thumbnail_url:"/images/database-placeholder.png"}}(null==u?void 0:u.duplicate)&&(p.duplicate=u.duplicate,p.keepUpdated=!!n&&n,p.keepDataUpdated=!!c&&c),(0,o.A)("/api/createUserDatabase",{method:"post",body:p},!0).then(e=>{e.success?(0,r.A)().then(()=>{window.location.pathname="/admin/".concat(null==m?void 0:m.id,"/databases/").concat(p.db_slug)}):setTimeout(()=>{i(!1)},1e3)})}var m=t(2408);function p(e){let{user:a,dbImage:t,setDbImage:o,database:r,setLoading:p,query:h}=e;async function g(e){return(null==r?void 0:r.db_slug)===e?null:await (0,d.A)({tableName:"user_databases",columnName:"db_slug",value:e,userId:a.id})}let[b,f]=i.useState(null),[v,x]=i.useState(!1),[_,w]=i.useState(!1);return(0,s.jsxs)("form",{className:"w-full max-w-none xl:max-w-lg flex flex-col items-start gap-4 relative",onSubmit:e=>{e.preventDefault(),r?c({e,setLoading:p,dbImage:t,database:r,user:a}):u({e,setLoading:p,dbImage:t,keepUpdated:v,keepDataUpdated:_,query:h,user:a})},children:[b&&(0,s.jsx)(n.A,{message:b}),(0,s.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:[(0,s.jsx)("label",{htmlFor:"database_name",children:"Name"}),(0,s.jsx)("input",{type:"text",name:"database_name",id:"database_name",placeholder:"Database Name",onInput:async e=>{let a=e.target,t=a.closest("form");if(a.value.match(/./)?(a.classList.remove("warning"),f(null)):a.classList.add("warning"),t){t.database_slug.value=a.value.toLowerCase().replace(/ /g,"_").replace(/[^a-zA-Z0-9-_]/g,"");let e=t.database_slug.value;window.clearTimeout(l),l=setTimeout(()=>{g(e).then(e=>{(null==e?void 0:e.result)?(t.database_slug.classList.add("warning"),f("Duplicate Database Name")):(t.database_slug.classList.remove("warning"),f(null))})},300)}},defaultValue:r?r.db_name:"",required:!0})]}),(0,s.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:[(0,s.jsx)("label",{htmlFor:"database_slug",children:"Slug"}),(0,s.jsx)("input",{type:"text",name:"database_slug",id:"database_slug",placeholder:"Database Slug",onInput:e=>{let a=e.target;a.value.match(/./)?(a.classList.remove("warning"),f(null)):a.classList.add("warning");let t=a.value;window.clearTimeout(l),l=setTimeout(()=>{g(t).then(e=>{(null==e?void 0:e.result)?(a.classList.add("warning"),f("Duplicate Database Name")):(a.classList.remove("warning"),f(null))})},300)},defaultValue:r?r.db_slug:"",required:!0})]}),(0,s.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:[(0,s.jsx)("label",{htmlFor:"database_description",children:"Description (optional)"}),(0,s.jsx)("textarea",{name:"database_description",id:"database_description",placeholder:"Short Description of database",defaultValue:r?r.db_description:""})]}),(null==h?void 0:h.duplicate)&&(0,s.jsx)(i.Fragment,{children:(0,s.jsxs)("div",{className:"card col items-start",children:[(0,s.jsx)(m.A,{checkBoxValues:[{payload:"Keep New Database Updated?",title:"Keep New Database Updated?",name:"clone_database",onChangeHandler:e=>{e.target.checked?x(!0):x(!1)}}]}),(0,s.jsx)("span",{className:"text-sm italic text-slate-600 dark:text-slate-300",children:"By checking this box the new Database stays up to date with changes to the structure of the parent Database"})]})}),(0,s.jsxs)("button",{type:"submit",className:"w-full",children:[r?"Update":"Create"," Database"]})]})}},3605:(e,a,t)=>{t.d(a,{A:()=>o});var l=t(4848),s=t(6540),i=t(2659),d=t(5655),n=t(900);function o(e){let{user:a,dbImage:t,setDbImage:o,database:r}=e,c=s.useRef();return(0,l.jsxs)("div",{className:"card no-hover col items-center justify-center",children:[(0,l.jsx)("h4",{className:"m-0",children:"Database Image"}),(0,l.jsx)("div",{className:"bg-white rounded-full overflow-hidden w-24 h-24",children:(0,l.jsx)("img",{src:t?"string"==typeof t?t:t.imageBase64Full:"/images/database-placeholder.png",alt:"Database Image",width:100,className:"w-full h-full object-cover",ref:c,"data-imagepreview":"image"})}),(0,l.jsxs)("div",{className:"w-full flex-col",id:"edit-database-image-option-wrapper",children:[(0,l.jsxs)(n.A,{column:!0,className:"w-full",children:[(0,l.jsx)("button",{className:"outlined w-full whitespace-normal",onClick:e=>{(0,d.PB)("user-media-popup")},children:"Choose Image from uploads"}),(0,l.jsx)("button",{className:"outlined secondary w-full whitespace-normal",onClick:e=>{var a,t;let l=e.target;null==l||null===(t=l.closest("#edit-database-image-option-wrapper"))||void 0===t||null===(a=t.querySelector("input"))||void 0===a||a.click()},children:"Choose Image from Computer"})]}),(0,l.jsx)("input",{type:"file",accept:".png,.jpg,.jpeg,.webp",placeholder:"Choose Database Image",className:"hidden",onChange:async e=>{var a;let t=null===(a=e.target.files)||void 0===a?void 0:a[0];o(await (0,i.A)({imageInputFile:t,maxWidth:400}))}})]})]})}},2592:(e,a,t)=>{t.d(a,{A:()=>o});var l=t(4848),s=t(6540),i=t(9020),d=t(5655),n=t(1710);function o(e){let{setDbImage:a}=e,[t,o]=s.useState(!0);s.useState(null);let[r,c]=s.useState(null);return s.useEffect(()=>{(0,i.A)("/api/getUserMedia").then(e=>{o(!1),c(e.media)})},[]),(0,l.jsxs)(d.Ay,{title:"user-media-popup",children:[t&&(0,l.jsx)(n.A,{width:"20px"}),(0,l.jsx)("h4",{className:"m-0 text-lg",children:"Your Uploaded Images"}),(0,l.jsx)("div",{className:"grid grid-cols-2",children:(null==r?void 0:r[0])&&r.filter(e=>"image"==e.media_type).map((e,t)=>(0,l.jsx)("div",{className:"w-full h-44 cursor-pointer hover:opacity-70",onClick:t=>{a(e.media_thumbnail_url||null),(0,d.fs)()},children:(0,l.jsx)("img",{src:e.media_thumbnail_url,alt:"User Media",className:"w-full h-full object-contain"})},t+1))})]})}},2408:(e,a,t)=>{t.d(a,{A:()=>s});var l=t(4848);function s(e){let{name:a,checkBoxValues:t,setAlert:s,labelColor:i,flexRow:d,baseText:n,smallText:o,className:r}=e;return(0,l.jsx)("div",{className:"flex items-start gap-x-4"+(d?" flex-row flex-wrap gap-y-2 ":" flex-col gap-y-4 ")+(r||""),children:t.map((e,t)=>{let{payload:d,title:r,onChangeHandler:c,fixed:u,jsx:m}=e,p=e.name?"".concat(a,"-").concat(e.name):d?a+"-"+d:a;return(0,l.jsxs)("div",{className:"flex items-center"+(e.default&&u?" pointer-events-none":"")+(o?" gap-1 ":" gap-2 ")+((null==e?void 0:e.className)?e.className:""),children:[(0,l.jsx)("input",{className:"m-0"+(o?" w-4 h-4":" w-5 h-5"),type:"checkbox",defaultChecked:!!e.default,name:p,id:p,onChange:a=>{s&&s(null),c&&c(a,e)},value:d,style:{minWidth:"20px"},...e.props}),m||(0,l.jsx)("label",{htmlFor:p,className:"m-0 "+(i||"text-slate-800 dark:text-white/80")+(n||o?" text-base":" text-lg"),children:r})]},t+1)})})}t(6540)},6234:(e,a,t)=>{t.d(a,{A:()=>s});var l=t(4848);function s(e){let{message:a}=e;return(0,l.jsxs)("div",{className:"p-2 bg-orange-50 w-full justify-center rounded text-sm text-orange-700 border border-orange-400 border-solid",children:[(0,l.jsx)("img",{src:"/images/warning.png",alt:"Warning Image Icon",width:22,className:"-my-2"}),(0,l.jsx)("span",{children:a})]})}t(6540)},5655:(e,a,t)=>{t.d(a,{Ay:()=>d,PB:()=>n,fs:()=>o});var l=t(4848),s=t(6897),i=t(6540);function d(e){let{children:a,title:t,data:d,fullPage:n,wrapperClasses:r,closePopupDispatch:c,wrapperStyle:u,noContainer:m}=e;return n?(0,l.jsxs)("div",{className:"popup-bg overflow-hidden "+(r||""),"data-popupid":t||null,style:u,children:[m?(0,l.jsx)(i.Fragment,{children:a}):(0,l.jsx)("div",{className:"relative w-full h-full z-50","data-data":d?JSON.stringify(d):"",children:a}),(0,l.jsx)("button",{className:"popup-cancel-button fixed outlined gray",onClick:e=>{o(),c&&c()},children:(0,l.jsx)(s.A,{color:"white",size:20})}),(0,l.jsx)("div",{className:"popup-canceller",onClick:e=>{o(),c&&c()}})]}):(0,l.jsxs)("div",{className:"popup-bg","data-popupid":t||null,children:[m?(0,l.jsx)(i.Fragment,{children:a}):(0,l.jsxs)("div",{className:"popup-content-container minimal-scrollbars","data-data":d?JSON.stringify(d):"",children:[a,(0,l.jsx)("button",{className:"outlined gray popup-cancel-button",onClick:e=>{o(),c&&c()},children:(0,l.jsx)("span",{className:"font-normal",children:"✖"})})]}),m&&(0,l.jsx)("button",{className:"gray popup-cancel-button",onClick:e=>{o(),c&&c()},children:(0,l.jsx)("span",{className:"font-normal",children:"✖"})}),(0,l.jsx)("div",{className:"popup-canceller",onClick:e=>{o(),c&&c()}})]})}function n(e,a){let t=document.querySelector("[data-popupid='".concat(e,"']"));t&&(t.style.display="flex",null==a||a(t))}function o(e){document.querySelectorAll("[data-popupid]").forEach(e=>{e.style.display="none"}),null==e||e()}},900:(e,a,t)=>{t.d(a,{A:()=>i});var l=t(4848),s=t(6540);function i(e){let{children:a,column:t,className:i}=e,d=s.useRef();return s.useEffect(()=>{try{let e=d.current;if(!e)throw Error("No Button Group Wrapper!");let a=e.childNodes,l=Array.from(a);if((null==l?void 0:l.length)===1)return;l.forEach((e,a)=>{let s=e;if(s.classList.contains("dropdown-wrapper")){let a=Array.from(e.childNodes).filter(e=>{var a;return(null==e?void 0:null===(a=e.nodeName)||void 0===a?void 0:a.match(/button/i))||e.classList.contains("button")});a&&a[0]&&(s=a[0])}a0&&(s.style[t?"borderTop":"borderLeft"]="none",s.style[t?"borderTopRightRadius":"borderTopLeftRadius"]=0,s.style[t?"borderTopLeftRadius":"borderBottomLeftRadius"]=0)})}catch(e){console.log(e.message)}},[]),(0,l.jsx)("div",{className:"items-stretch gap-0"+(t?" flex-col":" flex-wrap xl:flex-nowrap")+(i?" "+i:""),ref:d,children:a})}},8589:(e,a,t)=>{t.d(a,{A:()=>s});var l=t(9020);async function s(e){let{tableName:a,columnName:t,value:s,dbFullName:i,dispatch:d,userId:n,dbId:o}=e;return await (0,l.A)("/api/checkDuplicateData?tableName=".concat(a,"&type=").concat(t,"&value=").concat(s).concat(i?"&dbFullName="+i:"").concat(n?"&userId="+n:"").concat(o?"&dbId="+o:""))}},2659:(e,a,t)=>{t.d(a,{A:()=>s});var l=t(1335);let s=t.n(l)().media.imageInputFileToBase64},6897:(e,a,t)=>{t.d(a,{A:()=>l});let l=(0,t(5737).A)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])}}]); \ No newline at end of file +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3867],{7168:(e,a,t)=>{let l;t.d(a,{A:()=>p});var s=t(4848),i=t(6540),d=t(8589),n=t(6234),o=t(9020),r=t(65);async function c(e){var a,t,l,s,i,d,n;let{e:c,setLoading:u,dbImage:m,database:p,user:h}=e;u(!0);let g={db_description:(null===(t=c.target.database_description)||void 0===t?void 0:null===(a=t.value)||void 0===a?void 0:a.match(/./))?c.target.database_description.value:null,db_name:(null===(s=c.target.database_name)||void 0===s?void 0:null===(l=s.value)||void 0===l?void 0:l.match(/./))?c.target.database_name.value:null,db_slug:(null===(d=c.target.database_slug)||void 0===d?void 0:null===(i=d.value)||void 0===i?void 0:i.match(/./))?c.target.database_slug.value:null,db_full_name:p.db_full_name,id:p.id,active_clone:p.active_clone,active_clone_parent_db:p.active_clone_parent_db};if(m){if("string"==typeof m)g.db_image=m;else if("object"==typeof m){let e=await (0,o.A)("/api/addUserMedia",{method:"post",body:{media:[m],folder:g.db_slug.replace(/_/g,"-"),type:"image"}},!0);g.db_image=(null==e?void 0:null===(n=e.mediaData[0])||void 0===n?void 0:n.media_thumbnail_url)?e.mediaData[0].media_thumbnail_url:"/images/database-placeholder.png"}}else g.db_image="/images/database-placeholder.png";(0,o.A)("/api/updateUserDatabase",{method:"post",body:g},!0).then(e=>{e.success?(0,r.A)().then(()=>{window.location.pathname="/admin/".concat(null==h?void 0:h.id,"/databases"),setTimeout(()=>{u(!1)},1e3)}):(alert("Error! Please Try Again"),setTimeout(()=>{u(!1)},1e3))})}async function u(e){var a,t,l;let{e:s,setLoading:i,dbImage:d,keepUpdated:n,keepDataUpdated:c,query:u,user:m}=e;i(!0);let p={db_name:s.target.database_name.value,db_slug:s.target.database_slug.value,db_description:(null===(t=s.target.database_description)||void 0===t?void 0:null===(a=t.value)||void 0===a?void 0:a.match(/./))?s.target.database_description.value:null};if(d){if("string"==typeof d)p.db_image=d;else if("object"==typeof d){let e=await (0,o.A)("/api/addUserMedia",{method:"post",body:{media:[d],folder:p.db_slug.replace(/_/g,"-"),type:"image"}},!0);p.db_image=(null==e?void 0:null===(l=e.mediaData[0])||void 0===l?void 0:l.media_thumbnail_url)?e.mediaData[0].media_thumbnail_url:"/images/database-placeholder.png"}}(null==u?void 0:u.duplicate)&&(p.duplicate=u.duplicate,p.keepUpdated=!!n&&n,p.keepDataUpdated=!!c&&c),(0,o.A)("/api/createUserDatabase",{method:"POST",body:p},!0).then(e=>{e.success?(0,r.A)().then(()=>{window.location.pathname="/admin/".concat(null==m?void 0:m.id,"/databases/").concat(p.db_slug)}):setTimeout(()=>{i(!1)},1e3)})}var m=t(2408);function p(e){let{user:a,dbImage:t,setDbImage:o,database:r,setLoading:p,query:h}=e;async function g(e){return(null==r?void 0:r.db_slug)===e?null:await (0,d.A)({tableName:"user_databases",columnName:"db_slug",value:e,userId:a.id})}let[b,f]=i.useState(null),[v,x]=i.useState(!1),[_,w]=i.useState(!1);return(0,s.jsxs)("form",{className:"w-full max-w-none xl:max-w-lg flex flex-col items-start gap-4 relative",onSubmit:e=>{e.preventDefault(),r?c({e,setLoading:p,dbImage:t,database:r,user:a}):u({e,setLoading:p,dbImage:t,keepUpdated:v,keepDataUpdated:_,query:h,user:a})},children:[b&&(0,s.jsx)(n.A,{message:b}),(0,s.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:[(0,s.jsx)("label",{htmlFor:"database_name",children:"Name"}),(0,s.jsx)("input",{type:"text",name:"database_name",id:"database_name",placeholder:"Database Name",onInput:async e=>{let a=e.target,t=a.closest("form");if(a.value.match(/./)?(a.classList.remove("warning"),f(null)):a.classList.add("warning"),t){t.database_slug.value=a.value.toLowerCase().replace(/ /g,"_").replace(/[^a-zA-Z0-9-_]/g,"");let e=t.database_slug.value;window.clearTimeout(l),l=setTimeout(()=>{g(e).then(e=>{(null==e?void 0:e.result)?(t.database_slug.classList.add("warning"),f("Duplicate Database Name")):(t.database_slug.classList.remove("warning"),f(null))})},300)}},defaultValue:r?r.db_name:"",required:!0})]}),(0,s.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:[(0,s.jsx)("label",{htmlFor:"database_slug",children:"Slug"}),(0,s.jsx)("input",{type:"text",name:"database_slug",id:"database_slug",placeholder:"Database Slug",onInput:e=>{let a=e.target;a.value.match(/./)?(a.classList.remove("warning"),f(null)):a.classList.add("warning");let t=a.value;window.clearTimeout(l),l=setTimeout(()=>{g(t).then(e=>{(null==e?void 0:e.result)?(a.classList.add("warning"),f("Duplicate Database Name")):(a.classList.remove("warning"),f(null))})},300)},defaultValue:r?r.db_slug:"",required:!0})]}),(0,s.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:[(0,s.jsx)("label",{htmlFor:"database_description",children:"Description (optional)"}),(0,s.jsx)("textarea",{name:"database_description",id:"database_description",placeholder:"Short Description of database",defaultValue:r?r.db_description:""})]}),(null==h?void 0:h.duplicate)&&(0,s.jsx)(i.Fragment,{children:(0,s.jsxs)("div",{className:"card col items-start",children:[(0,s.jsx)(m.A,{checkBoxValues:[{payload:"Keep New Database Updated?",title:"Keep New Database Updated?",name:"clone_database",onChangeHandler:e=>{e.target.checked?x(!0):x(!1)}}]}),(0,s.jsx)("span",{className:"text-sm italic text-slate-600 dark:text-slate-300",children:"By checking this box the new Database stays up to date with changes to the structure of the parent Database"})]})}),(0,s.jsxs)("button",{type:"submit",className:"w-full",children:[r?"Update":"Create"," Database"]})]})}},3605:(e,a,t)=>{t.d(a,{A:()=>o});var l=t(4848),s=t(6540),i=t(2659),d=t(5655),n=t(900);function o(e){let{user:a,dbImage:t,setDbImage:o,database:r}=e,c=s.useRef();return(0,l.jsxs)("div",{className:"card no-hover col items-center justify-center",children:[(0,l.jsx)("h4",{className:"m-0",children:"Database Image"}),(0,l.jsx)("div",{className:"bg-white rounded-full overflow-hidden w-24 h-24",children:(0,l.jsx)("img",{src:t?"string"==typeof t?t:t.imageBase64Full:"/images/database-placeholder.png",alt:"Database Image",width:100,className:"w-full h-full object-cover",ref:c,"data-imagepreview":"image"})}),(0,l.jsxs)("div",{className:"w-full flex-col",id:"edit-database-image-option-wrapper",children:[(0,l.jsxs)(n.A,{column:!0,className:"w-full",children:[(0,l.jsx)("button",{className:"outlined w-full whitespace-normal",onClick:e=>{(0,d.PB)("user-media-popup")},children:"Choose Image from uploads"}),(0,l.jsx)("button",{className:"outlined secondary w-full whitespace-normal",onClick:e=>{var a,t;let l=e.target;null==l||null===(t=l.closest("#edit-database-image-option-wrapper"))||void 0===t||null===(a=t.querySelector("input"))||void 0===a||a.click()},children:"Choose Image from Computer"})]}),(0,l.jsx)("input",{type:"file",accept:".png,.jpg,.jpeg,.webp",placeholder:"Choose Database Image",className:"hidden",onChange:async e=>{var a;let t=null===(a=e.target.files)||void 0===a?void 0:a[0];o(await (0,i.A)({imageInputFile:t,maxWidth:400}))}})]})]})}},2592:(e,a,t)=>{t.d(a,{A:()=>o});var l=t(4848),s=t(6540),i=t(9020),d=t(5655),n=t(1710);function o(e){let{setDbImage:a}=e,[t,o]=s.useState(!0);s.useState(null);let[r,c]=s.useState(null);return s.useEffect(()=>{(0,i.A)("/api/getUserMedia").then(e=>{o(!1),c(e.media)})},[]),(0,l.jsxs)(d.Ay,{title:"user-media-popup",children:[t&&(0,l.jsx)(n.A,{width:"20px"}),(0,l.jsx)("h4",{className:"m-0 text-lg",children:"Your Uploaded Images"}),(0,l.jsx)("div",{className:"grid grid-cols-2",children:(null==r?void 0:r[0])&&r.filter(e=>"image"==e.media_type).map((e,t)=>(0,l.jsx)("div",{className:"w-full h-44 cursor-pointer hover:opacity-70",onClick:t=>{a(e.media_thumbnail_url||null),(0,d.fs)()},children:(0,l.jsx)("img",{src:e.media_thumbnail_url,alt:"User Media",className:"w-full h-full object-contain"})},t+1))})]})}},2408:(e,a,t)=>{t.d(a,{A:()=>s});var l=t(4848);function s(e){let{name:a,checkBoxValues:t,setAlert:s,labelColor:i,flexRow:d,baseText:n,smallText:o,className:r}=e;return(0,l.jsx)("div",{className:"flex items-start gap-x-4"+(d?" flex-row flex-wrap gap-y-2 ":" flex-col gap-y-4 ")+(r||""),children:t.map((e,t)=>{let{payload:d,title:r,onChangeHandler:c,fixed:u,jsx:m}=e,p=e.name?"".concat(a,"-").concat(e.name):d?a+"-"+d:a;return(0,l.jsxs)("div",{className:"flex items-center"+(e.default&&u?" pointer-events-none":"")+(o?" gap-1 ":" gap-2 ")+((null==e?void 0:e.className)?e.className:""),children:[(0,l.jsx)("input",{className:"m-0"+(o?" w-4 h-4":" w-5 h-5"),type:"checkbox",defaultChecked:!!e.default,name:p,id:p,onChange:a=>{s&&s(null),c&&c(a,e)},value:d,style:{minWidth:"20px"},...e.props}),m||(0,l.jsx)("label",{htmlFor:p,className:"m-0 "+(i||"text-slate-800 dark:text-white/80")+(n||o?" text-base":" text-lg"),children:r})]},t+1)})})}t(6540)},6234:(e,a,t)=>{t.d(a,{A:()=>s});var l=t(4848);function s(e){let{message:a}=e;return(0,l.jsxs)("div",{className:"p-2 bg-orange-50 w-full justify-center rounded text-sm text-orange-700 border border-orange-400 border-solid",children:[(0,l.jsx)("img",{src:"/images/warning.png",alt:"Warning Image Icon",width:22,className:"-my-2"}),(0,l.jsx)("span",{children:a})]})}t(6540)},5655:(e,a,t)=>{t.d(a,{Ay:()=>d,PB:()=>n,fs:()=>o});var l=t(4848),s=t(6897),i=t(6540);function d(e){let{children:a,title:t,data:d,fullPage:n,wrapperClasses:r,closePopupDispatch:c,wrapperStyle:u,noContainer:m}=e;return n?(0,l.jsxs)("div",{className:"popup-bg overflow-hidden "+(r||""),"data-popupid":t||null,style:u,children:[m?(0,l.jsx)(i.Fragment,{children:a}):(0,l.jsx)("div",{className:"relative w-full h-full z-50","data-data":d?JSON.stringify(d):"",children:a}),(0,l.jsx)("button",{className:"popup-cancel-button fixed outlined gray",onClick:e=>{o(),c&&c()},children:(0,l.jsx)(s.A,{color:"white",size:20})}),(0,l.jsx)("div",{className:"popup-canceller",onClick:e=>{o(),c&&c()}})]}):(0,l.jsxs)("div",{className:"popup-bg","data-popupid":t||null,children:[m?(0,l.jsx)(i.Fragment,{children:a}):(0,l.jsxs)("div",{className:"popup-content-container minimal-scrollbars","data-data":d?JSON.stringify(d):"",children:[a,(0,l.jsx)("button",{className:"outlined gray popup-cancel-button",onClick:e=>{o(),c&&c()},children:(0,l.jsx)("span",{className:"font-normal",children:"✖"})})]}),m&&(0,l.jsx)("button",{className:"gray popup-cancel-button",onClick:e=>{o(),c&&c()},children:(0,l.jsx)("span",{className:"font-normal",children:"✖"})}),(0,l.jsx)("div",{className:"popup-canceller",onClick:e=>{o(),c&&c()}})]})}function n(e,a){let t=document.querySelector("[data-popupid='".concat(e,"']"));t&&(t.style.display="flex",null==a||a(t))}function o(e){document.querySelectorAll("[data-popupid]").forEach(e=>{e.style.display="none"}),null==e||e()}},900:(e,a,t)=>{t.d(a,{A:()=>i});var l=t(4848),s=t(6540);function i(e){let{children:a,column:t,className:i}=e,d=s.useRef();return s.useEffect(()=>{try{let e=d.current;if(!e)throw Error("No Button Group Wrapper!");let a=e.childNodes,l=Array.from(a);if((null==l?void 0:l.length)===1)return;l.forEach((e,a)=>{let s=e;if(s.classList.contains("dropdown-wrapper")){let a=Array.from(e.childNodes).filter(e=>{var a;return(null==e?void 0:null===(a=e.nodeName)||void 0===a?void 0:a.match(/button/i))||e.classList.contains("button")});a&&a[0]&&(s=a[0])}a0&&(s.style[t?"borderTop":"borderLeft"]="none",s.style[t?"borderTopRightRadius":"borderTopLeftRadius"]=0,s.style[t?"borderTopLeftRadius":"borderBottomLeftRadius"]=0)})}catch(e){console.log(e.message)}},[]),(0,l.jsx)("div",{className:"items-stretch gap-0"+(t?" flex-col":" flex-wrap xl:flex-nowrap")+(i?" "+i:""),ref:d,children:a})}},8589:(e,a,t)=>{t.d(a,{A:()=>s});var l=t(9020);async function s(e){let{tableName:a,columnName:t,value:s,dbFullName:i,dispatch:d,userId:n,dbId:o}=e;return await (0,l.A)("/api/checkDuplicateData?tableName=".concat(a,"&type=").concat(t,"&value=").concat(s).concat(i?"&dbFullName="+i:"").concat(n?"&userId="+n:"").concat(o?"&dbId="+o:""))}},2659:(e,a,t)=>{t.d(a,{A:()=>s});var l=t(1335);let s=t.n(l)().media.imageInputFileToBase64},6897:(e,a,t)=>{t.d(a,{A:()=>l});let l=(0,t(5737).A)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])}}]); \ No newline at end of file diff --git a/dsql-app/.local_dist/static/chunks/4403-dd72a46996d6c5f9.js b/dsql-app/.local_dist/static/chunks/4403-dd72a46996d6c5f9.js new file mode 100644 index 0000000..ec0f9c8 --- /dev/null +++ b/dsql-app/.local_dist/static/chunks/4403-dd72a46996d6c5f9.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4403],{6206:(e,l,t)=>{t.d(l,{A:()=>c});var a=t(4848),s=t(6540),n=t(1710),i=t(3078),r=t(9020);function d(e){let{paradigm:l,payload:t,setLoading:a,table:s,database:n}=e;a(!0),(0,r.A)("/api/exportTableData",{method:"POST",body:{paradigm:l,dbName:n.db_slug,tableName:s.tableName,payload:t}},!0).then(e=>{if(e.success){if("export"==l){let l=new Blob([JSON.stringify(e.data||[],null,4)],{type:"application/json"}),t=URL.createObjectURL(l),a=document.createElement("a");a.href=t,a.style.display="none",a.download="".concat(n.db_slug,"-").concat(s.tableName,"-").concat(Date.now(),".json"),document.body.appendChild(a),a.click(),document.body.removeChild(a)}else"import"==l&&(window.alert("Data Imported Successfully"),window.location.reload())}else e.msg&&window.alert(e.msg)}).catch(e=>{console.log(e)}).finally(()=>{a(!1)})}function c(e){let{database:l,table:t}=e,[r,c]=s.useState(!1),[o,u]=s.useState(!0),m=s.useRef(null);return s.useRef(null),(0,a.jsxs)("div",{className:"relative",children:[r&&(0,a.jsx)(n.A,{width:"15px"}),(0,a.jsx)("div",{className:"button outlined gray",onClick:e=>{d({paradigm:"export",database:l,setLoading:c,table:t})},children:"Export"}),(0,a.jsx)("div",{className:"button outlined gray",onClick:e=>{var a,s;null===(a=m.current)||void 0===a||a.addEventListener("change",e=>{var a;c(!0);let s=e.target;if(!(null===(a=s.files)||void 0===a?void 0:a[0])){window.alert("No FIles selected"),c(!1);return}(0,i.A)({inputFile:s.files[0]}).then(e=>{window.confirm("Use this file '".concat(e.fileName,"' as your import file?"))?d({paradigm:"import",payload:e.fileBase64,database:l,setLoading:c,table:t}):c(!1),u(!1),setTimeout(()=>{u(!0)},200)})}),null===(s=m.current)||void 0===s||s.click()},children:"Import"}),o&&(0,a.jsx)("input",{type:"file",name:"json_file_input",id:"json_file_input",accept:".json",className:"hidden",ref:m})]})}},3425:(e,l,t)=>{t.d(l,{A:()=>b});var a=t(4848),s=t(6540),n=t(5143),i=t(3238),r=t(1671),d=t(6959),c=t(1710),o=t(9878),u=t(9020),m=t(2543),h=t.n(m);function x(e){let{database:l,table:t,setOpenPopover:n,dbSchemaData:i,query:r}=e,[d,c]=s.useState(!1);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("button",{className:"ghost p-3 justify-start",onClick:()=>{c(!0),setTimeout(()=>{n&&n(!1)},200)},children:"Sync Data"}),(0,a.jsx)(o.A,{open:d,setOpen:c,children:(0,a.jsx)(p,{database:l,table:t,dbSchemaData:i,query:r})})]})}function p(e){let{database:l,table:t,query:n,dbSchemaData:i}=e,[o,m]=s.useState(i),[x,p]=s.useState("Push"),[b,v]=s.useState(null==o?void 0:o[0]),[f,y]=s.useState(null==b?void 0:b.tables),[g,j]=s.useState(null==f?void 0:f[0]),[N,w]=s.useState(!1),[k,A]=s.useState(!1);return s.useEffect(()=>{h().isEqual(null==t?void 0:t.fields,null==g?void 0:g.fields)?A(!0):A(!1)},[g,v]),s.useEffect(()=>{n.delegated&&(0,u.A)("/api/get-authorized-databases").then(e=>{e.success&&e.payload&&m(e.payload)})},[]),(0,a.jsxs)("div",{className:"stack gap-2 relative w-full",children:[N||!o&&(0,a.jsx)(c.A,{width:"20px"}),(0,a.jsx)("h3",{className:"m-0 text-lg",children:"Sync Data with another table"}),k?(0,a.jsxs)("span",{className:"info green inline",children:["The selected table matches ",(0,a.jsx)("b",{children:t.tableFullName})," ","schema"]}):(0,a.jsxs)("span",{className:"info warning inline",children:["The selected table is not compatible with"," ",(0,a.jsx)("b",{children:t.tableFullName})]}),o&&(0,a.jsxs)("form",{onSubmit:e=>{!function(e){var l,t,a;let{e:s,setLoading:n,database:i,table:r,query:d}=e;s.preventDefault(),n(!0);let c=s.target,o=null===(l=c.paradigm)||void 0===l?void 0:l.value,m=null===(t=c.database)||void 0===t?void 0:t.value,h=null===(a=c.table)||void 0===a?void 0:a.value,x={paradigm:o,src:{db:i.db_slug,table:r.tableName},dst:{db:m,table:h},delegated:d.delegated};if(!window.confirm("Pull"==o?"NOTE: This operation will override the current database entries. Continue?":"NOTE: This operation will override the selected database entries. Continue?")){setTimeout(()=>{n(!1)},1e3);return}(0,u.A)("/api/sync-table-data",{method:"POST",body:{...x}},!0).then(e=>{e.success?(window.alert("Data Sync Successful"),window.location.reload()):e.msg&&window.alert("ERROR: "+e.msg)}).finally(()=>{setTimeout(()=>{n(!1)},1e3)})}({e,database:l,setLoading:w,table:t,query:n})},className:"w-full stack gap-2 items-stretch",children:[(0,a.jsxs)("div",{className:"stack gap-2 my-2",children:[(0,a.jsx)(r.A,{radioValues:[{title:"Push",payload:"Push",default:!0},{title:"Pull",payload:"Pull"}],name:"paradigm",smallText:!0,flexRow:!0,onChangeHandler:e=>{p(e.target.value)}}),(0,a.jsx)("span",{className:"text-xs text-slate-500 dark:text-slate-400",children:"Push"==x?(0,a.jsxs)(a.Fragment,{children:["Sync data from the current table(",(0,a.jsx)("b",{children:t.tableFullName}),") to the selected table below"]}):(0,a.jsxs)(a.Fragment,{children:["Sync data from the selected table below to the current table(",(0,a.jsx)("b",{children:t.tableFullName}),")"]})})]}),(0,a.jsx)(d.A,{selectOptions:o.filter(e=>e.dbFullName!==l.db_full_name).map(e=>({title:e.dbName,payload:e.dbSlug})),name:"database",onChangeHandler:e=>{let l=o.find(l=>l.dbSlug==e.target.value);if(l){var t;v(l),y(l.tables),j(null===(t=l.tables)||void 0===t?void 0:t[0])}}}),(0,a.jsx)(d.A,{selectOptions:f.map(e=>({title:e.tableFullName,payload:e.tableName})),name:"table",onChangeHandler:e=>{let l=f.find(l=>l.tableName===e.target.value);l&&j(l)}}),(0,a.jsx)("button",{className:k?"":"disabled",children:"Sync"})]})]})}function b(e){let{database:l,table:t,dbSchemaData:r,query:d}=e,[c,o]=s.useState(!1);return(0,a.jsx)(n.Popover,{isOpen:c,onClickOutside:()=>o(!1),positions:["bottom"],align:"end",content:(0,a.jsxs)("div",{className:"stack items-stretch bg-white rounded shadow-md gap-0 min-w-[200px]",children:[(0,a.jsx)(x,{database:l,table:t,setOpenPopover:o,dbSchemaData:r,query:d}),(0,a.jsx)("hr",{className:"m-0"})]}),containerClassName:"z-[1000]",children:(0,a.jsx)("button",{onClick:()=>{o(!c)},className:"outlined gray px-2 py-1.5",children:(0,a.jsx)(i.A,{})})})}},4639:(e,l,t)=>{let a;t.d(l,{A:()=>b});var s=t(4848),n=t(6540),i=t(8032),r=t(4279),d=t(6959),c=t(9268),o=t(9020),u=t(1710);function m(e){var l,t,i,m;let{data:h}=e,{table:x,entries:p,activeEntries:b,setActiveEntries:v,confirmedDelegetedUser:f,database:y,targetField:g,searchTerm:j}=n.useContext(r.TableEntriesContext);null==f||f.delegated,null==f||null===(l=f.priviledges)||void 0===l||l.match(/Edit Tables/i),null==f||null===(t=f.priviledges)||void 0===t||t.match(/Delete Tables/i),null==f||null===(i=f.priviledges)||void 0===i||i.match(/Create Tables/i);let[N,w]=n.useState(!1),k=n.useRef();n.useEffect(()=>{k.current&&k.current.focus()},[]);let[A,T]=n.useState(null);function S(e){var l,t;if(w(!0),b&&v(null),!(null==e?void 0:e.toString().match(/./))){setTimeout(()=>{v&&v(p||[]),w(!1)},500);return}window.clearTimeout(a);let s=null==x?void 0:x.fields.filter(e=>e.fieldName===(null==g?void 0:g.current)),n=s&&s[0]&&(null===(t=s[0].dataType)||void 0===t?void 0:t.match(/int/i))||(null==g?void 0:null===(l=g.current)||void 0===l?void 0:l.match(/^id$/))?"equal":"like";a=setTimeout(()=>{w(!1),(0,o.A)("/api/queryEntriesSearchTerm?db=".concat(null==y?void 0:y.db_full_name,"&table=").concat(null==x?void 0:x.tableName,"&field=").concat(null==g?void 0:g.current,"&term=").concat(e,"&operator=").concat(n)).then(e=>{"number"==typeof e.count&&T(e.count),e.success&&v&&v(e.result),w(!1)})},500)}return(0,s.jsxs)("div",{className:"w-full flex-col items-stretch",children:[(0,s.jsxs)("form",{onSubmit:e=>{e.preventDefault(),(null==j?void 0:j.current)&&S(j.current)},className:"flex flex-row items-stretch gap-4 w-full",children:[(0,s.jsx)("div",{className:"max-w-xs",children:(0,s.jsx)(d.A,{required:!0,selectOptions:x?x.fields.map(e=>({title:e.fieldName||"",payload:e.fieldName||""})):[],name:"database_tables",onChangeHandler:e=>{g&&(g.current=e.target.value)},title:"Select Field",defaultValue:null==g?void 0:g.current,id:"entries-search-field-select"})}),(0,s.jsx)("div",{className:"grow",children:(0,s.jsx)(c.A,{title:"Search Term",placeholder:"Enter search term that corresponds with the selected field type ...",onInputHandler:e=>{var l;let t=e.target;(null===(l=t.value)||void 0===l?void 0:l.match(/./))&&j?j.current=t.value:j&&(j.current=null),S(t.value)},elementRef:k,id:"entries-search-input"})}),N&&(0,s.jsx)("div",{className:"relative items-center justify-center",children:(0,s.jsx)("div",{className:"relative mt-5 w-6",children:(0,s.jsx)(u.A,{width:"20px"})})})]}),(null==j?void 0:null===(m=j.current)||void 0===m?void 0:m.match(/./))&&(0,s.jsx)("div",{className:"py-4",children:(0,s.jsxs)("span",{className:"text-lg",children:["number"==typeof A?A>0?(0,s.jsxs)("b",{children:[A," "]}):(0,s.jsx)(s.Fragment,{children:"No "}):"... ","Search result",A&&1!==A?"s":""," for"," ",(0,s.jsxs)("b",{children:['"',j.current,'"']})]})})]})}var h=t(6206),x=t(3425),p=t(2276);function b(e){var l,t,a,r,d;let{user:c,entries:o,database:b,table:v,setTargetEntry:f,dbSchemaData:y,richTextEditors:g,jsonTextEditors:j,dataTypes:N,title:w,confirmedDelegetedUser:k,query:A,search:T,entriesCount:S}=e;null==k||k.delegated,null==k||null===(l=k.priviledges)||void 0===l||l.match(/Edit Tables/i),null==k||null===(t=k.priviledges)||void 0===t||t.match(/Delete Tables/i),null==k||null===(a=k.priviledges)||void 0===a||a.match(/Create Tables/i),null==k||null===(r=k.priviledges)||void 0===r||r.match(/Edit Entries/i),null==k||null===(d=k.priviledges)||void 0===d||d.match(/Delete Entries/i);let{active_clone:E,active_clone_parent_db:_,remote_connected:F}=b;return(0,s.jsx)(n.Fragment,{children:(0,s.jsxs)("section",{className:"paper gray gray-bg",children:[w&&(0,s.jsxs)("div",{className:"justify-between w-full flex-wrap px-4 sm:px-0 pt-4 sm:pt-0",children:[(0,s.jsx)("h2",{className:"text-xl m-0",children:w}),(0,s.jsxs)("div",{children:[(0,s.jsxs)("a",{className:"button flex gap-2 items-center",href:"/admin/".concat(null==c?void 0:c.id,"/databases/").concat(b.db_slug,"/tables/").concat(v.tableName,"/entries/add-entry"),children:[(0,s.jsx)("span",{className:"symbol",children:"+"}),(0,s.jsx)("span",{children:"Add New Entry"})]}),(0,s.jsx)(h.A,{database:b,table:v}),(0,s.jsx)(x.A,{database:b,table:v,dbSchemaData:y,query:A})]})]}),T&&(0,s.jsx)(m,{}),(0,s.jsxs)("div",{className:"w-full flex-col gap-6",children:[(null==o?void 0:o[0])&&o.map(e=>(0,s.jsx)(n.Fragment,{children:(0,s.jsx)(i.A,{user:c,database:b,table:v,dbSchemaData:y,richTextEditors:g,dataTypes:N,entry:e,query:A,confirmedDelegetedUser:k,jsonTextEditors:j})},e.id)),!o&&(0,s.jsx)("div",{className:"w-full h-[300px]",children:(0,s.jsx)(u.A,{position:"relative"})}),o&&!(null==o?void 0:o[0])&&(0,s.jsxs)("a",{href:"/admin/".concat(null==c?void 0:c.id,"/databases/").concat(b.db_slug,"/tables/").concat(v.tableName,"/entries/add-entry"),className:"border-dotted border-slate-200 border-2 p-4 w-full flex-col rounded flex items-center hover:border-primary/50 gap-2",children:[(0,s.jsx)("span",{className:"text-slate-400 text-center",children:"No Entries Added Yet."}),(0,s.jsx)(p.A,{}),(0,s.jsx)("span",{className:"text-center",children:"Add an Entry to this Table"})]}),S&&S>10?(0,s.jsx)("a",{href:"/admin/".concat(null==c?void 0:c.id,"/databases/").concat(b.db_slug,"/tables/").concat(v.tableName,"/entries"),className:"button outlined gray w-full -mb-4",children:(0,s.jsx)("span",{children:"See All Entries"})}):null,(null==o?void 0:o[0])&&w&&(0,s.jsxs)("a",{className:"button flex gap-2 items-center w-full justify-center mt-2 more-padding",href:"/admin/".concat(null==c?void 0:c.id,"/databases/").concat(b.db_slug,"/tables/").concat(v.tableName,"/entries/add-entry"),style:{borderStyle:"dotted",borderWidth:"2px"},children:[(0,s.jsx)("span",{className:"symbol",children:"+"}),(0,s.jsx)("span",{children:"Add New Entry"})]})]})]})})}},1671:(e,l,t)=>{t.d(l,{A:()=>s});var a=t(4848);function s(e){let{radioValues:l,name:t,onChangeHandler:s,setAlert:n,flexRow:i,labelColor:r,baseText:d,smallText:c,className:o}=e;try{return(0,a.jsx)("div",{className:"flex items-start gap-4 flex-wrap "+(i?"":" flex-col ")+(o||""),children:l.map((e,l)=>{let{payload:i,title:o,jsx:u}=e,m=!1===i?i:i||o||null;return(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)("input",{className:"m-0"+(d?" w-5 h-5":c?" w-4 h-4":" w-6 h-6"),type:"radio",defaultChecked:!!e.default,name:t,id:t+"_"+m,onChange:l=>{n&&n(null),e.onChangeHandler?e.onChangeHandler(l):s&&s(l)},value:"string"==typeof m?m:void 0}),u||(0,a.jsx)("label",{htmlFor:t+"_"+m,className:"text-lg m-0 "+(r||"text-slate-800")+(d?" text-base":c?" text-sm":" text-lg"),children:o})]},l+1)})})}catch(e){return console.log("ERROR in FormRadio =>",e),(0,a.jsx)("div",{children:"Form Radio Error"})}}t(6540)},7700:(e,l,t)=>{t.d(l,{A:()=>n});var a=t(4848),s=t(6540);function n(e){let{table:l,database:t,user:n,activeDbClone:i}=e,r=(null==l?void 0:l.childTableDbFullName)?l.childTableDbFullName.replace(new RegExp(/datasquirel_user_\d+_/),""):null,d=l.childTableDbFullName===t.db_full_name;return r?(0,a.jsxs)("span",{className:"info small green gap-1"+((null==t?void 0:t.active_clone)?" -mt-6":""),style:{fontWeight:"500"},children:["This Table is an active clone of"," ",(0,a.jsx)("a",{href:"/admin/".concat(null==n?void 0:n.id,"/databases/").concat(r,"/tables/").concat(l.childTableName),target:"_blank",className:"button gray outlined small-text",style:{display:"inline-block",fontSize:"12px",padding:"3px 7px"},children:(0,a.jsx)("b",{children:l.childTableName})})," ","in"," ",d?(0,a.jsxs)("span",{children:["this current database(",(0,a.jsx)("b",{children:t.db_name}),")."]}):(0,a.jsxs)(s.Fragment,{children:[(0,a.jsx)("a",{href:"/admin/".concat(null==n?void 0:n.id,"/databases/").concat(r),target:"_blank",className:"button gray outlined small-text",style:{display:"inline-block",fontSize:"12px",padding:"3px 7px"},children:(0,a.jsx)("b",{children:r})}),(0,a.jsx)("span",{children:"database."})]})," ",(null==t?void 0:t.active_clone)?"":"Only Foreign keys and Entries can be updated."]}):(0,a.jsx)(s.Fragment,{})}},8453:(e,l,t)=>{t.d(l,{A:()=>a});let a=(0,t(5737).A)("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]])},7845:(e,l,t)=>{t.d(l,{A:()=>a});let a=(0,t(5737).A)("CopyPlus",[["line",{x1:"15",x2:"15",y1:"12",y2:"18",key:"1p7wdc"}],["line",{x1:"12",x2:"18",y1:"15",y2:"15",key:"1nscbv"}],["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},4769:(e,l,t)=>{t.d(l,{A:()=>a});let a=(0,t(5737).A)("FileCog",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v2",key:"17k7jt"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["circle",{cx:"6",cy:"14",r:"3",key:"a1xfv6"}],["path",{d:"M6 10v1",key:"xs0f9j"}],["path",{d:"M6 17v1",key:"idyhc0"}],["path",{d:"M10 14H9",key:"m5fm2q"}],["path",{d:"M3 14H2",key:"19ot09"}],["path",{d:"m9 11-.88.88",key:"lhul2b"}],["path",{d:"M3.88 16.12 3 17",key:"169z9n"}],["path",{d:"m9 17-.88-.88",key:"5io96w"}],["path",{d:"M3.88 11.88 3 11",key:"1ynhy1"}]])},1333:(e,l,t)=>{t.d(l,{A:()=>a});let a=(0,t(5737).A)("FileX2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4",key:"1pf5j1"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"m8 12.5-5 5",key:"b853mi"}],["path",{d:"m3 12.5 5 5",key:"1qls4r"}]])},2276:(e,l,t)=>{t.d(l,{A:()=>a});let a=(0,t(5737).A)("Grid2x2",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 12h18",key:"1i2n21"}],["path",{d:"M12 3v18",key:"108xh3"}]])},2750:(e,l,t)=>{t.d(l,{A:()=>a});let a=(0,t(5737).A)("Server",[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]])},8190:(e,l,t)=>{t.d(l,{A:()=>a});let a=(0,t(5737).A)("Sheet",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["line",{x1:"3",x2:"21",y1:"9",y2:"9",key:"1vqk6q"}],["line",{x1:"3",x2:"21",y1:"15",y2:"15",key:"o2sbyz"}],["line",{x1:"9",x2:"9",y1:"9",y2:"21",key:"1ib60c"}],["line",{x1:"15",x2:"15",y1:"9",y2:"21",key:"1n26ft"}]])},2836:(e,l,t)=>{t.d(l,{A:()=>a});let a=(0,t(5737).A)("SquarePen",[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a2.121 2.121 0 1 1 3 3L12 15l-4 1 1-4Z",key:"1lpok0"}]])},4279:(e,l,t)=>{let a;t.r(l),t.d(l,{TableEntriesContext:()=>w,__N_SSP:()=>N,default:()=>k});var s=t(4848),n=t(6540),i=t(8181),r=t(5844),d=t(3647),c=t(5139),o=t(4639),u=t(8064),m=t(7700),h=t(2438),x=t(1710),p=t(9020),b=t(6206),v=t(3425);function f(){var e,l,a;let{user:i,database:x,table:p,dbSchemaData:f,setTargetEntry:g,richTextEditors:j,jsonTextEditors:N,query:k,confirmedDelegetedUser:A,activeEntries:T,entriesCount:S,setActiveEntries:E}=n.useContext(w),_=t(4327);return null==A||A.delegated,null==A||null===(e=A.priviledges)||void 0===e||e.match(/Edit Tables/i),null==A||null===(l=A.priviledges)||void 0===l||l.match(/Delete Tables/i),null==A||null===(a=A.priviledges)||void 0===a||a.match(/Create Tables/i),(0,s.jsxs)(n.Fragment,{children:[(0,s.jsxs)("div",{className:"flex-col items-start gap-0 w-full relative z-50",children:[(0,s.jsxs)("div",{className:"w-full justify-between flex-wrap",children:[(0,s.jsxs)("div",{className:"flex-wrap",children:[(0,s.jsx)(r.A,{}),(0,s.jsx)("h1",{className:"text-3xl m-0",children:(0,s.jsxs)("span",{className:"flex items-center flex-wrap gap-2",children:["All Entries In"," ",(0,s.jsxs)("span",{className:"bg-slate-100 dark:bg-slate-800 px-2 py-1 border border-solid border-slate-400 dark:border-slate-600 rounded relative",children:[p.tableFullName,(0,s.jsx)("div",{className:"absolute -top-5 -right-4",children:(0,s.jsx)(c.A,{slugText:p.tableName,justIcon:!0})})]})," ","Table"]})})]}),(0,s.jsxs)("div",{className:"w-full sm:w-auto",children:[(0,s.jsxs)("a",{href:"/admin/".concat(null==i?void 0:i.id,"/databases/").concat(x.db_slug,"/tables/").concat(p.tableName,"/entries/add-entry"),className:"button flex items-center gap-2 w-full sm:w-auto justify-center",children:[(0,s.jsx)("span",{className:"symbol",children:"+"}),(0,s.jsx)("span",{children:"Add New Entry"})]}),(0,s.jsx)(b.A,{database:x,table:p}),(0,s.jsx)(v.A,{database:x,table:p,dbSchemaData:f,query:k})]})]}),(0,s.jsx)(d.A,{confirmedDelegetedUser:null==k?void 0:k.delegated,user:i})]}),x.active_clone?(0,s.jsx)(u.A,{database:x,user:i}):(0,s.jsx)(s.Fragment,{}),x.remote_connected?(0,s.jsx)(h.p,{database:x}):(0,s.jsx)(s.Fragment,{}),(0,s.jsx)(m.A,{table:p,database:x,user:i}),(0,s.jsx)(o.A,{user:i,entries:T,database:x,table:p,setTargetEntry:g,dbSchemaData:f,richTextEditors:j,dataTypes:_,query:k,confirmedDelegetedUser:A,jsonTextEditors:N,search:!0}),S>20&&(0,s.jsx)(y,{activeEntries:T,setActiveEntries:E,database:x,table:p,entriesCount:S})]})}function y(e){let{activeEntries:l,setActiveEntries:t,database:i,table:r,entriesCount:d}=e,c=n.useContext(w),o=n.useRef(),u=n.useRef(1),m=20*Number(u.current);return(n.useEffect(()=>{let e=(e,l)=>{var s;if(null==e?void 0:null===(s=e[0])||void 0===s?void 0:s.isIntersecting){let e=document.getElementById("entries-search-input"),l=document.getElementById("entries-search-field-select"),s={tableName:r.tableName,dbName:i.db_slug,page:u.current,tableSchema:r,search:e?e.value:void 0,searchField:l?l.value:void 0,delegated:!!c.query.delegated};(0,p.A)("/api/infiniteScroll",{method:"POST",body:s},!0).then(e=>{e.success&&(e.page&&(u.current=e.page),window.clearTimeout(a),a=setTimeout(()=>{var l,a;(null===(l=e.data)||void 0===l?void 0:l[0])&&(null===(a=e.data)||void 0===a?void 0:a[0])&&t(l=>l?[...l,...e.data]:null)},500))}).catch(e=>{console.log("Infinite Scroll Error =>",e)}).finally(()=>{console.log("Infinite Scroll Done. Page",u.current)})}},l={rootMargin:"0px 0px 0px 0px"};setTimeout(()=>{requestAnimationFrame(()=>{let t=new IntersectionObserver(e,l);o.current&&t.observe(o.current)})},1e3)},[]),m>=d)?(0,s.jsx)(n.Fragment,{}):(0,s.jsx)("div",{className:"w-full flex items-center justify-center",ref:o,children:(0,s.jsx)(x.A,{position:"relative",style:{backgroundColor:"transparent"},width:"20px"})})}var g=t(5211),j=t(4477),N=!0;let w=n.createContext({});function k(e){let{user:l,database:t,table:a,dbSchemaData:r,entries:d,query:c,confirmedDelegetedUser:o,entriesCount:u}=e,m="".concat(a.tableFullName," Table Entries | Datasquirel"),h=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("title",{children:m}),(0,s.jsx)("meta",{name:"description",content:"All Entries in table"})]}),[x,p]=n.useState(null),[b,v]=n.useState(d),y=n.useRef("title"),N=n.useRef(null),k=n.useRef([]),A=n.useRef([]);return(0,s.jsx)(i.A,{head:h,user:l,extraHeaderContent:(0,s.jsx)(g.A,{database:t,query:c,confirmedDelegetedUser:o,user:l}),children:(0,s.jsxs)(w.Provider,{value:{user:l,database:t,table:a,dbSchemaData:r,entries:d,targetEntry:x,setTargetEntry:p,richTextEditors:k,jsonTextEditors:A,query:c,confirmedDelegetedUser:o,activeEntries:b,setActiveEntries:v,targetField:y,searchTerm:N,entriesCount:u},children:[(0,s.jsx)(f,{}),(0,s.jsx)(j.A,{snug:!0})]})})}}}]); \ No newline at end of file diff --git a/dsql-app/.local_dist/static/chunks/4403-fc19b6af6ca4b3fe.js b/dsql-app/.local_dist/static/chunks/4403-fc19b6af6ca4b3fe.js deleted file mode 100644 index d72d0ff..0000000 --- a/dsql-app/.local_dist/static/chunks/4403-fc19b6af6ca4b3fe.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4403],{6206:(e,l,t)=>{t.d(l,{A:()=>c});var a=t(4848),s=t(6540),n=t(1710),i=t(3078),r=t(9020);function d(e){let{paradigm:l,payload:t,setLoading:a,table:s,database:n}=e;a(!0),(0,r.A)("/api/exportTableData",{method:"POST",body:{paradigm:l,dbName:n.db_slug,tableName:s.tableName,payload:t}},!0).then(e=>{if(e.success){if("export"==l){let l=new Blob([JSON.stringify(e.data||[],null,4)],{type:"application/json"}),t=URL.createObjectURL(l),a=document.createElement("a");a.href=t,a.style.display="none",a.download="".concat(n.db_slug,"-").concat(s.tableName,"-").concat(Date.now(),".json"),document.body.appendChild(a),a.click(),document.body.removeChild(a)}else"import"==l&&(window.alert("Data Imported Successfully"),window.location.reload())}else e.msg&&window.alert(e.msg)}).catch(e=>{console.log(e)}).finally(()=>{a(!1)})}function c(e){let{database:l,table:t}=e,[r,c]=s.useState(!1),[o,u]=s.useState(!0),m=s.useRef(null);return s.useRef(null),(0,a.jsxs)("div",{className:"relative",children:[r&&(0,a.jsx)(n.A,{width:"15px"}),(0,a.jsx)("div",{className:"button outlined gray",onClick:e=>{d({paradigm:"export",database:l,setLoading:c,table:t})},children:"Export"}),(0,a.jsx)("div",{className:"button outlined gray",onClick:e=>{var a,s;null===(a=m.current)||void 0===a||a.addEventListener("change",e=>{var a;c(!0);let s=e.target;if(!(null===(a=s.files)||void 0===a?void 0:a[0])){window.alert("No FIles selected"),c(!1);return}(0,i.A)({inputFile:s.files[0]}).then(e=>{window.confirm("Use this file '".concat(e.fileName,"' as your import file?"))?d({paradigm:"import",payload:e.fileBase64,database:l,setLoading:c,table:t}):c(!1),u(!1),setTimeout(()=>{u(!0)},200)})}),null===(s=m.current)||void 0===s||s.click()},children:"Import"}),o&&(0,a.jsx)("input",{type:"file",name:"json_file_input",id:"json_file_input",accept:".json",className:"hidden",ref:m})]})}},3425:(e,l,t)=>{t.d(l,{A:()=>b});var a=t(4848),s=t(6540),n=t(5143),i=t(3238),r=t(1671),d=t(6959),c=t(1710),o=t(9878),u=t(9020),m=t(2543),h=t.n(m);function x(e){let{database:l,table:t,setOpenPopover:n,dbSchemaData:i,query:r}=e,[d,c]=s.useState(!1);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("button",{className:"ghost p-3 justify-start",onClick:()=>{c(!0),setTimeout(()=>{n&&n(!1)},200)},children:"Sync Data"}),(0,a.jsx)(o.A,{open:d,setOpen:c,children:(0,a.jsx)(p,{database:l,table:t,dbSchemaData:i,query:r})})]})}function p(e){let{database:l,table:t,query:n,dbSchemaData:i}=e,[o,m]=s.useState(i),[x,p]=s.useState("Push"),[b,v]=s.useState(null==o?void 0:o[0]),[f,y]=s.useState(null==b?void 0:b.tables),[g,j]=s.useState(null==f?void 0:f[0]),[N,w]=s.useState(!1),[k,A]=s.useState(!1);return s.useEffect(()=>{h().isEqual(null==t?void 0:t.fields,null==g?void 0:g.fields)?A(!0):A(!1)},[g,v]),s.useEffect(()=>{n.delegated&&(0,u.A)("/api/get-authorized-databases").then(e=>{e.success&&e.payload&&m(e.payload)})},[]),(0,a.jsxs)("div",{className:"stack gap-2 relative w-full",children:[N||!o&&(0,a.jsx)(c.A,{width:"20px"}),(0,a.jsx)("h3",{className:"m-0 text-lg",children:"Sync Data with another table"}),k?(0,a.jsxs)("span",{className:"info green inline",children:["The selected table matches ",(0,a.jsx)("b",{children:t.tableFullName})," ","schema"]}):(0,a.jsxs)("span",{className:"info warning inline",children:["The selected table is not compatible with"," ",(0,a.jsx)("b",{children:t.tableFullName})]}),o&&(0,a.jsxs)("form",{onSubmit:e=>{!function(e){var l,t,a;let{e:s,setLoading:n,database:i,table:r,query:d}=e;s.preventDefault(),n(!0);let c=s.target,o=null===(l=c.paradigm)||void 0===l?void 0:l.value,m=null===(t=c.database)||void 0===t?void 0:t.value,h=null===(a=c.table)||void 0===a?void 0:a.value,x={paradigm:o,src:{db:i.db_slug,table:r.tableName},dst:{db:m,table:h},delegated:d.delegated};if(!window.confirm("Pull"==o?"NOTE: This operation will override the current database entries. Continue?":"NOTE: This operation will override the selected database entries. Continue?")){setTimeout(()=>{n(!1)},1e3);return}(0,u.A)("/api/sync-table-data",{method:"POST",body:{...x}},!0).then(e=>{e.success?(window.alert("Data Sync Successful"),window.location.reload()):e.msg&&window.alert("ERROR: "+e.msg)}).finally(()=>{setTimeout(()=>{n(!1)},1e3)})}({e,database:l,setLoading:w,table:t,query:n})},className:"w-full stack gap-2 items-stretch",children:[(0,a.jsxs)("div",{className:"stack gap-2 my-2",children:[(0,a.jsx)(r.A,{radioValues:[{title:"Push",payload:"Push",default:!0},{title:"Pull",payload:"Pull"}],name:"paradigm",smallText:!0,flexRow:!0,onChangeHandler:e=>{p(e.target.value)}}),(0,a.jsx)("span",{className:"text-xs text-slate-500 dark:text-slate-400",children:"Push"==x?(0,a.jsxs)(a.Fragment,{children:["Sync data from the current table(",(0,a.jsx)("b",{children:t.tableFullName}),") to the selected table below"]}):(0,a.jsxs)(a.Fragment,{children:["Sync data from the selected table below to the current table(",(0,a.jsx)("b",{children:t.tableFullName}),")"]})})]}),(0,a.jsx)(d.A,{selectOptions:o.filter(e=>e.dbFullName!==l.db_full_name).map(e=>({title:e.dbName,payload:e.dbSlug})),name:"database",onChangeHandler:e=>{let l=o.find(l=>l.dbSlug==e.target.value);if(l){var t;v(l),y(l.tables),j(null===(t=l.tables)||void 0===t?void 0:t[0])}}}),(0,a.jsx)(d.A,{selectOptions:f.map(e=>({title:e.tableFullName,payload:e.tableName})),name:"table",onChangeHandler:e=>{let l=f.find(l=>l.tableName===e.target.value);l&&j(l)}}),(0,a.jsx)("button",{className:k?"":"disabled",children:"Sync"})]})]})}function b(e){let{database:l,table:t,dbSchemaData:r,query:d}=e,[c,o]=s.useState(!1);return(0,a.jsx)(n.Popover,{isOpen:c,onClickOutside:()=>o(!1),positions:["bottom"],align:"end",content:(0,a.jsxs)("div",{className:"stack items-stretch bg-white rounded shadow-md gap-0 min-w-[200px]",children:[(0,a.jsx)(x,{database:l,table:t,setOpenPopover:o,dbSchemaData:r,query:d}),(0,a.jsx)("hr",{className:"m-0"})]}),containerClassName:"z-[1000]",children:(0,a.jsx)("button",{onClick:()=>{o(!c)},className:"outlined gray px-2 py-1.5",children:(0,a.jsx)(i.A,{})})})}},4639:(e,l,t)=>{let a;t.d(l,{A:()=>b});var s=t(4848),n=t(6540),i=t(8032),r=t(4279),d=t(6959),c=t(9268),o=t(9020),u=t(1710);function m(e){var l,i,m,h;let{data:x}=e,{table:p,entries:b,activeEntries:v,setActiveEntries:f,confirmedDelegetedUser:y,database:g,targetField:j,searchTerm:N}=n.useContext(r.TableEntriesContext);t(4327),null==y||y.delegated,null==y||null===(l=y.priviledges)||void 0===l||l.match(/Edit Tables/i),null==y||null===(i=y.priviledges)||void 0===i||i.match(/Delete Tables/i),null==y||null===(m=y.priviledges)||void 0===m||m.match(/Create Tables/i);let[w,k]=n.useState(!1),A=n.useRef();n.useEffect(()=>{A.current&&A.current.focus()},[]);let[T,S]=n.useState(null);function E(e){var l,t;if(k(!0),v&&f(null),!(null==e?void 0:e.toString().match(/./))){setTimeout(()=>{f&&f(b||[]),k(!1)},500);return}window.clearTimeout(a);let s=null==p?void 0:p.fields.filter(e=>e.fieldName===(null==j?void 0:j.current)),n=s&&s[0]&&(null===(t=s[0].dataType)||void 0===t?void 0:t.match(/int/i))||(null==j?void 0:null===(l=j.current)||void 0===l?void 0:l.match(/^id$/))?"equal":"like";a=setTimeout(()=>{k(!1),(0,o.A)("/api/queryEntriesSearchTerm?db=".concat(null==g?void 0:g.db_full_name,"&table=").concat(null==p?void 0:p.tableName,"&field=").concat(null==j?void 0:j.current,"&term=").concat(e,"&operator=").concat(n)).then(e=>{"number"==typeof e.count&&S(e.count),e.success&&f&&f(e.result),k(!1)})},500)}return(0,s.jsxs)("div",{className:"w-full flex-col items-stretch",children:[(0,s.jsxs)("form",{onSubmit:e=>{e.preventDefault(),(null==N?void 0:N.current)&&E(N.current)},className:"flex flex-row items-stretch gap-4 w-full",children:[(0,s.jsx)("div",{className:"max-w-xs",children:(0,s.jsx)(d.A,{required:!0,selectOptions:p?p.fields.map(e=>({title:e.fieldName||"",payload:e.fieldName||""})):[],name:"database_tables",onChangeHandler:e=>{j&&(j.current=e.target.value)},title:"Select Field",defaultValue:null==j?void 0:j.current,id:"entries-search-field-select"})}),(0,s.jsx)("div",{className:"grow",children:(0,s.jsx)(c.A,{title:"Search Term",placeholder:"Enter search term that corresponds with the selected field type ...",onInputHandler:e=>{var l;let t=e.target;(null===(l=t.value)||void 0===l?void 0:l.match(/./))&&N?N.current=t.value:N&&(N.current=null),E(t.value)},elementRef:A,id:"entries-search-input"})}),w&&(0,s.jsx)("div",{className:"relative items-center justify-center",children:(0,s.jsx)("div",{className:"relative mt-5 w-6",children:(0,s.jsx)(u.A,{width:"20px"})})})]}),(null==N?void 0:null===(h=N.current)||void 0===h?void 0:h.match(/./))&&(0,s.jsx)("div",{className:"py-4",children:(0,s.jsxs)("span",{className:"text-lg",children:["number"==typeof T?T>0?(0,s.jsxs)("b",{children:[T," "]}):(0,s.jsx)(s.Fragment,{children:"No "}):"... ","Search result",T&&1!==T?"s":""," for"," ",(0,s.jsxs)("b",{children:['"',N.current,'"']})]})})]})}var h=t(6206),x=t(3425),p=t(2276);function b(e){var l,t,a,r,d;let{user:c,entries:o,database:b,table:v,setTargetEntry:f,dbSchemaData:y,richTextEditors:g,jsonTextEditors:j,dataTypes:N,title:w,confirmedDelegetedUser:k,query:A,search:T,entriesCount:S}=e;null==k||k.delegated,null==k||null===(l=k.priviledges)||void 0===l||l.match(/Edit Tables/i),null==k||null===(t=k.priviledges)||void 0===t||t.match(/Delete Tables/i),null==k||null===(a=k.priviledges)||void 0===a||a.match(/Create Tables/i),null==k||null===(r=k.priviledges)||void 0===r||r.match(/Edit Entries/i),null==k||null===(d=k.priviledges)||void 0===d||d.match(/Delete Entries/i);let{active_clone:E,active_clone_parent_db:_,remote_connected:F}=b;return(0,s.jsx)(n.Fragment,{children:(0,s.jsxs)("section",{className:"paper gray gray-bg",children:[w&&(0,s.jsxs)("div",{className:"justify-between w-full flex-wrap px-4 sm:px-0 pt-4 sm:pt-0",children:[(0,s.jsx)("h2",{className:"text-xl m-0",children:w}),(0,s.jsxs)("div",{children:[(0,s.jsxs)("a",{className:"button flex gap-2 items-center",href:"/admin/".concat(null==c?void 0:c.id,"/databases/").concat(b.db_slug,"/tables/").concat(v.tableName,"/entries/add-entry"),children:[(0,s.jsx)("span",{className:"symbol",children:"+"}),(0,s.jsx)("span",{children:"Add New Entry"})]}),(0,s.jsx)(h.A,{database:b,table:v}),(0,s.jsx)(x.A,{database:b,table:v,dbSchemaData:y,query:A})]})]}),T&&(0,s.jsx)(m,{}),(0,s.jsxs)("div",{className:"w-full flex-col gap-6",children:[(null==o?void 0:o[0])&&o.map(e=>(0,s.jsx)(n.Fragment,{children:(0,s.jsx)(i.A,{user:c,database:b,table:v,dbSchemaData:y,richTextEditors:g,dataTypes:N,entry:e,query:A,confirmedDelegetedUser:k,jsonTextEditors:j})},e.id)),!o&&(0,s.jsx)("div",{className:"w-full h-[300px]",children:(0,s.jsx)(u.A,{position:"relative"})}),o&&!(null==o?void 0:o[0])&&(0,s.jsxs)("a",{href:"/admin/".concat(null==c?void 0:c.id,"/databases/").concat(b.db_slug,"/tables/").concat(v.tableName,"/entries/add-entry"),className:"border-dotted border-slate-200 border-2 p-4 w-full flex-col rounded flex items-center hover:border-primary/50 gap-2",children:[(0,s.jsx)("span",{className:"text-slate-400 text-center",children:"No Entries Added Yet."}),(0,s.jsx)(p.A,{}),(0,s.jsx)("span",{className:"text-center",children:"Add an Entry to this Table"})]}),S&&S>10?(0,s.jsx)("a",{href:"/admin/".concat(null==c?void 0:c.id,"/databases/").concat(b.db_slug,"/tables/").concat(v.tableName,"/entries"),className:"button outlined gray w-full -mb-4",children:(0,s.jsx)("span",{children:"See All Entries"})}):null,(null==o?void 0:o[0])&&w&&(0,s.jsxs)("a",{className:"button flex gap-2 items-center w-full justify-center mt-2 more-padding",href:"/admin/".concat(null==c?void 0:c.id,"/databases/").concat(b.db_slug,"/tables/").concat(v.tableName,"/entries/add-entry"),style:{borderStyle:"dotted",borderWidth:"2px"},children:[(0,s.jsx)("span",{className:"symbol",children:"+"}),(0,s.jsx)("span",{children:"Add New Entry"})]})]})]})})}},1671:(e,l,t)=>{t.d(l,{A:()=>s});var a=t(4848);function s(e){let{radioValues:l,name:t,onChangeHandler:s,setAlert:n,flexRow:i,labelColor:r,baseText:d,smallText:c,className:o}=e;try{return(0,a.jsx)("div",{className:"flex items-start gap-4 flex-wrap "+(i?"":" flex-col ")+(o||""),children:l.map((e,l)=>{let{payload:i,title:o,jsx:u}=e,m=!1===i?i:i||o||null;return(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)("input",{className:"m-0"+(d?" w-5 h-5":c?" w-4 h-4":" w-6 h-6"),type:"radio",defaultChecked:!!e.default,name:t,id:t+"_"+m,onChange:l=>{n&&n(null),e.onChangeHandler?e.onChangeHandler(l):s&&s(l)},value:"string"==typeof m?m:void 0}),u||(0,a.jsx)("label",{htmlFor:t+"_"+m,className:"text-lg m-0 "+(r||"text-slate-800")+(d?" text-base":c?" text-sm":" text-lg"),children:o})]},l+1)})})}catch(e){return console.log("ERROR in FormRadio =>",e),(0,a.jsx)("div",{children:"Form Radio Error"})}}t(6540)},7700:(e,l,t)=>{t.d(l,{A:()=>n});var a=t(4848),s=t(6540);function n(e){let{table:l,database:t,user:n,activeDbClone:i}=e,r=(null==l?void 0:l.childTableDbFullName)?l.childTableDbFullName.replace(new RegExp(/datasquirel_user_\d+_/),""):null,d=l.childTableDbFullName===t.db_full_name;return r?(0,a.jsxs)("span",{className:"info small green gap-1"+((null==t?void 0:t.active_clone)?" -mt-6":""),style:{fontWeight:"500"},children:["This Table is an active clone of"," ",(0,a.jsx)("a",{href:"/admin/".concat(null==n?void 0:n.id,"/databases/").concat(r,"/tables/").concat(l.childTableName),target:"_blank",className:"button gray outlined small-text",style:{display:"inline-block",fontSize:"12px",padding:"3px 7px"},children:(0,a.jsx)("b",{children:l.childTableName})})," ","in"," ",d?(0,a.jsxs)("span",{children:["this current database(",(0,a.jsx)("b",{children:t.db_name}),")."]}):(0,a.jsxs)(s.Fragment,{children:[(0,a.jsx)("a",{href:"/admin/".concat(null==n?void 0:n.id,"/databases/").concat(r),target:"_blank",className:"button gray outlined small-text",style:{display:"inline-block",fontSize:"12px",padding:"3px 7px"},children:(0,a.jsx)("b",{children:r})}),(0,a.jsx)("span",{children:"database."})]})," ",(null==t?void 0:t.active_clone)?"":"Only Foreign keys and Entries can be updated."]}):(0,a.jsx)(s.Fragment,{})}},8453:(e,l,t)=>{t.d(l,{A:()=>a});let a=(0,t(5737).A)("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]])},7845:(e,l,t)=>{t.d(l,{A:()=>a});let a=(0,t(5737).A)("CopyPlus",[["line",{x1:"15",x2:"15",y1:"12",y2:"18",key:"1p7wdc"}],["line",{x1:"12",x2:"18",y1:"15",y2:"15",key:"1nscbv"}],["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},4769:(e,l,t)=>{t.d(l,{A:()=>a});let a=(0,t(5737).A)("FileCog",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v2",key:"17k7jt"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["circle",{cx:"6",cy:"14",r:"3",key:"a1xfv6"}],["path",{d:"M6 10v1",key:"xs0f9j"}],["path",{d:"M6 17v1",key:"idyhc0"}],["path",{d:"M10 14H9",key:"m5fm2q"}],["path",{d:"M3 14H2",key:"19ot09"}],["path",{d:"m9 11-.88.88",key:"lhul2b"}],["path",{d:"M3.88 16.12 3 17",key:"169z9n"}],["path",{d:"m9 17-.88-.88",key:"5io96w"}],["path",{d:"M3.88 11.88 3 11",key:"1ynhy1"}]])},1333:(e,l,t)=>{t.d(l,{A:()=>a});let a=(0,t(5737).A)("FileX2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4",key:"1pf5j1"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"m8 12.5-5 5",key:"b853mi"}],["path",{d:"m3 12.5 5 5",key:"1qls4r"}]])},2276:(e,l,t)=>{t.d(l,{A:()=>a});let a=(0,t(5737).A)("Grid2x2",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 12h18",key:"1i2n21"}],["path",{d:"M12 3v18",key:"108xh3"}]])},2750:(e,l,t)=>{t.d(l,{A:()=>a});let a=(0,t(5737).A)("Server",[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]])},8190:(e,l,t)=>{t.d(l,{A:()=>a});let a=(0,t(5737).A)("Sheet",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["line",{x1:"3",x2:"21",y1:"9",y2:"9",key:"1vqk6q"}],["line",{x1:"3",x2:"21",y1:"15",y2:"15",key:"o2sbyz"}],["line",{x1:"9",x2:"9",y1:"9",y2:"21",key:"1ib60c"}],["line",{x1:"15",x2:"15",y1:"9",y2:"21",key:"1n26ft"}]])},2836:(e,l,t)=>{t.d(l,{A:()=>a});let a=(0,t(5737).A)("SquarePen",[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a2.121 2.121 0 1 1 3 3L12 15l-4 1 1-4Z",key:"1lpok0"}]])},4279:(e,l,t)=>{let a;t.r(l),t.d(l,{TableEntriesContext:()=>w,__N_SSP:()=>N,default:()=>k});var s=t(4848),n=t(6540),i=t(8181),r=t(5844),d=t(3647),c=t(5139),o=t(4639),u=t(8064),m=t(7700),h=t(2438),x=t(1710),p=t(9020),b=t(6206),v=t(3425);function f(){var e,l,a;let{user:i,database:x,table:p,dbSchemaData:f,setTargetEntry:g,richTextEditors:j,jsonTextEditors:N,query:k,confirmedDelegetedUser:A,activeEntries:T,entriesCount:S,setActiveEntries:E}=n.useContext(w),_=t(4327);return null==A||A.delegated,null==A||null===(e=A.priviledges)||void 0===e||e.match(/Edit Tables/i),null==A||null===(l=A.priviledges)||void 0===l||l.match(/Delete Tables/i),null==A||null===(a=A.priviledges)||void 0===a||a.match(/Create Tables/i),(0,s.jsxs)(n.Fragment,{children:[(0,s.jsxs)("div",{className:"flex-col items-start gap-0 w-full relative z-50",children:[(0,s.jsxs)("div",{className:"w-full justify-between flex-wrap",children:[(0,s.jsxs)("div",{className:"flex-wrap",children:[(0,s.jsx)(r.A,{}),(0,s.jsx)("h1",{className:"text-3xl m-0",children:(0,s.jsxs)("span",{className:"flex items-center flex-wrap gap-2",children:["All Entries In"," ",(0,s.jsxs)("span",{className:"bg-slate-100 dark:bg-slate-800 px-2 py-1 border border-solid border-slate-400 dark:border-slate-600 rounded relative",children:[p.tableFullName,(0,s.jsx)("div",{className:"absolute -top-5 -right-4",children:(0,s.jsx)(c.A,{slugText:p.tableName,justIcon:!0})})]})," ","Table"]})})]}),(0,s.jsxs)("div",{className:"w-full sm:w-auto",children:[(0,s.jsxs)("a",{href:"/admin/".concat(null==i?void 0:i.id,"/databases/").concat(x.db_slug,"/tables/").concat(p.tableName,"/entries/add-entry"),className:"button flex items-center gap-2 w-full sm:w-auto justify-center",children:[(0,s.jsx)("span",{className:"symbol",children:"+"}),(0,s.jsx)("span",{children:"Add New Entry"})]}),(0,s.jsx)(b.A,{database:x,table:p}),(0,s.jsx)(v.A,{database:x,table:p,dbSchemaData:f,query:k})]})]}),(0,s.jsx)(d.A,{confirmedDelegetedUser:null==k?void 0:k.delegated,user:i})]}),x.active_clone?(0,s.jsx)(u.A,{database:x,user:i}):(0,s.jsx)(s.Fragment,{}),x.remote_connected?(0,s.jsx)(h.p,{database:x}):(0,s.jsx)(s.Fragment,{}),(0,s.jsx)(m.A,{table:p,database:x,user:i}),(0,s.jsx)(o.A,{user:i,entries:T,database:x,table:p,setTargetEntry:g,dbSchemaData:f,richTextEditors:j,dataTypes:_,query:k,confirmedDelegetedUser:A,jsonTextEditors:N,search:!0}),S>20&&(0,s.jsx)(y,{activeEntries:T,setActiveEntries:E,database:x,table:p,entriesCount:S})]})}function y(e){let{activeEntries:l,setActiveEntries:t,database:i,table:r,entriesCount:d}=e,c=n.useContext(w),o=n.useRef(),u=n.useRef(1),m=20*Number(u.current);return(n.useEffect(()=>{let e=(e,l)=>{var s;if(null==e?void 0:null===(s=e[0])||void 0===s?void 0:s.isIntersecting){let e=document.getElementById("entries-search-input"),l=document.getElementById("entries-search-field-select"),s={tableName:r.tableName,dbName:i.db_slug,page:u.current,tableSchema:r,search:e?e.value:void 0,searchField:l?l.value:void 0,delegated:!!c.query.delegated};(0,p.A)("/api/infiniteScroll",{method:"POST",body:s},!0).then(e=>{e.success&&(e.page&&(u.current=e.page),window.clearTimeout(a),a=setTimeout(()=>{var l,a;(null===(l=e.data)||void 0===l?void 0:l[0])&&(null===(a=e.data)||void 0===a?void 0:a[0])&&t(l=>l?[...l,...e.data]:null)},500))}).catch(e=>{console.log("Infinite Scroll Error =>",e)}).finally(()=>{console.log("Infinite Scroll Done. Page",u.current)})}},l={rootMargin:"0px 0px 0px 0px"};setTimeout(()=>{requestAnimationFrame(()=>{let t=new IntersectionObserver(e,l);o.current&&t.observe(o.current)})},1e3)},[]),m>=d)?(0,s.jsx)(n.Fragment,{}):(0,s.jsx)("div",{className:"w-full flex items-center justify-center",ref:o,children:(0,s.jsx)(x.A,{position:"relative",style:{backgroundColor:"transparent"},width:"20px"})})}var g=t(5211),j=t(4477),N=!0;let w=n.createContext({});function k(e){let{user:l,database:t,table:a,dbSchemaData:r,entries:d,query:c,confirmedDelegetedUser:o,entriesCount:u}=e,m="".concat(a.tableFullName," Table Entries | Datasquirel"),h=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("title",{children:m}),(0,s.jsx)("meta",{name:"description",content:"All Entries in table"})]}),[x,p]=n.useState(null),[b,v]=n.useState(d),y=n.useRef("title"),N=n.useRef(null),k=n.useRef([]),A=n.useRef([]);return(0,s.jsx)(i.A,{head:h,user:l,extraHeaderContent:(0,s.jsx)(g.A,{database:t,query:c,confirmedDelegetedUser:o,user:l}),children:(0,s.jsxs)(w.Provider,{value:{user:l,database:t,table:a,dbSchemaData:r,entries:d,targetEntry:x,setTargetEntry:p,richTextEditors:k,jsonTextEditors:A,query:c,confirmedDelegetedUser:o,activeEntries:b,setActiveEntries:v,targetField:y,searchTerm:N,entriesCount:u},children:[(0,s.jsx)(f,{}),(0,s.jsx)(j.A,{snug:!0})]})})}}}]); \ No newline at end of file diff --git a/dsql-app/.local_dist/static/chunks/8311-87e8d6ec01c2e05f.js b/dsql-app/.local_dist/static/chunks/8311-87e8d6ec01c2e05f.js new file mode 100644 index 0000000..85d5515 --- /dev/null +++ b/dsql-app/.local_dist/static/chunks/8311-87e8d6ec01c2e05f.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8311],{8034:(e,l,a)=>{a.d(l,{A:()=>o});var t=a(4848),i=a(6540),n=a(809),s=a(1765),d=a(2543),r=a.n(d);function o(e){var l,d,o;let{targetField:c,fieldIndex:u,tableFields:m,setTableFields:x,refreshFieldsListRef:p,setActiveEdit:h,database:f,currentTable:v,user:g}=e,y=(null==c?void 0:c.dataType)?c.dataType.replace(/\d|\(|\)/g,""):null,j=(null==c?void 0:c.dataType)?c.dataType.replace(/[^\d]/g,""):"200",N=a(4327),b=i.useRef(r().cloneDeep(c)),w=i.useRef(),[T,_]=i.useState(c),[F,C]=i.useState(null==c?void 0:c.fieldName),[A,S]=i.useState(y),[k,D]=i.useState(j),[V,I]=i.useState("Varchar is simply letters and numbers within the range 0 - 255"),[E,K]=i.useState((null==c?void 0:c.richText)&&!(null==c?void 0:c.encrypted)?"Yes":"No"),R=!!(null==A?void 0:A.match(/uuid/i));return(0,t.jsx)("div",{className:"w-full -mt-3 bg-white dark:bg-slate-800 flex-wrap",ref:w,children:(0,t.jsxs)("form",{className:"flex flex-col xl:flex-row items-start gap-4 w-full justify-between border border-solid p-4 border-slate-200 dark:border-slate-600 rounded rounded-t-none focus:shadow-lg shadow-slate-700 dark:shadow-black relative flex-wrap",onSubmit:e=>{var l,a;e.preventDefault(),x(e=>(e[u]=T,e)),p.current(e=>e+1),null===(a=e.target.closest(".table-field-wrapper"))||void 0===a||null===(l=a.querySelector(".edit-table-field-section"))||void 0===l||l.classList.toggle("hidden")},children:[(0,t.jsxs)("div",{className:"gap-4 flex-wrap w-full md:w-auto flex-col xl:flex-row items-stretch",children:[(0,t.jsxs)("div",{className:"flex flex-col items-start gap-0.5",children:[(0,t.jsx)("label",{htmlFor:"new_field_name",children:"Field Name"}),(0,t.jsx)("input",{type:"text",name:"new_field_name",id:"new_field_name",placeholder:"Eg. post_title",onInput:async e=>{let l=e.target;l.value=l.value.toLowerCase().replace(/ /g,"_"),_(e=>(e.fieldName=l.value,e.updatedField=!0,e.originName||(e.originName=F),e))},required:!0,defaultValue:F})]}),(0,t.jsxs)("div",{className:"flex flex-col items-start gap-4 xl:gap-0.5",children:[(0,t.jsxs)("div",{className:"flex-wrap xl:flex-nowrap w-full md:w-auto",children:[(0,t.jsx)("label",{htmlFor:"new_field_data_type",children:"Data Type"}),(0,t.jsxs)("div",{className:"dropdown-wrapper reversed text-sm items-start",children:[(0,t.jsx)("span",{className:"px-2 bg-slate-200 dark:bg-slate-700 rounded-full hover:bg-slate-100 dark:hover:bg-slate-600 hidden xl:flex",children:"Info"}),(0,t.jsx)("div",{className:"dropdown mt-0 xl:-mt-2",children:(0,t.jsx)("span",{children:V})})]})]}),(0,t.jsxs)("div",{className:"w-auto",children:[(0,t.jsx)("select",{name:"new_field_data_type",id:"new_field_data_type",className:"w-full xl-w-auto",onChange:e=>{let l=e.target;S(l.value),l.childNodes.forEach(e=>{e.value===l.value&&e.dataset.desc&&I(e.dataset.desc),e.value===l.value&&e.dataset.literal?(T.defaultValueLiteral=e.dataset.literal,T.nullValue=!1):delete T.defaultValueLiteral}),c.dataType=l.value+(l.value.match(/VARCHAR/)?"(".concat(k||200,")"):"")},defaultValue:A||void 0,children:N.map((e,l)=>e.name.match(/VARCHAR/)?(0,t.jsx)("option",{value:e.name,"data-desc":e.description,children:e.title+"("+(k||200)+")"},l+1):(0,t.jsx)("option",{value:e.name,"data-desc":e.description,"data-literal":e.valueLiteral||void 0,children:e.title},l+1))}),(null==A?void 0:A.match(/VARCHAR/))&&(0,t.jsx)("input",{type:"number",defaultValue:k||200,className:"px-2",style:{maxWidth:"60px"},max:255,min:5,onChange:e=>{D(e.target.value),c.dataType=A+"(".concat(e.target.value,")")}})]})]}),(null==A?void 0:A.match(/text/i))&&(0,t.jsx)(i.Fragment,{children:(0,t.jsx)(s.A,{targetField:c})}),!(null===(l=c.dataType)||void 0===l?void 0:l.match(/text/i))&&!R&&(0,t.jsxs)("div",{className:"flex flex-col items-start gap-0.5",style:{minWidth:"70px"},children:[(0,t.jsx)("label",{htmlFor:"new_field_required",children:"Required?"}),(0,t.jsxs)("select",{name:"new_field_required",id:"new_field_required",className:"px-2",defaultValue:(null==c?void 0:c.notNullValue)?"Yes":"No",onChange:e=>{console.log(c),"Yes"===e.target.value?c.notNullValue=!0:(c.notNullValue=!1,delete c.notNullValue)},children:[(0,t.jsx)("option",{value:"No",children:"No"}),(0,t.jsx)("option",{value:"Yes",children:"Yes"})]})]}),!R&&(0,t.jsxs)("div",{className:"flex flex-col items-start gap-0.5",children:[(0,t.jsx)("label",{htmlFor:"new_field_default_value",children:(null==T?void 0:null===(d=T.dataType)||void 0===d?void 0:d.match(/text$/i))?"Can't Set Default for text values":"Default Value (optional)"}),(0,t.jsx)("input",{type:"text",name:"new_field_default_value",id:"new_field_default_value",className:(null==T?void 0:null===(o=T.dataType)||void 0===o?void 0:o.match(/text$/i))?"pointer-events-none opacity-50":"",placeholder:"Default Value",defaultValue:(null==T?void 0:T.defaultValue)?T.defaultValue:(null==T?void 0:T.nullValue)?"NULL":"",onInput:e=>{var l;let a=e.target;null!==(l=T.dataType)&&void 0!==l&&l.match(/text$/i)||_(e=>(a.value.match(/./)?delete e.notNullValue:(delete e.defaultValue,delete e.nullValue),a.value.match(/^null$/i)?(delete e.defaultValue,e.nullValue=!0):a.value.match(/./)&&(delete e.nullValue,e.defaultValue=a.value),e))}})]}),!R&&(0,t.jsx)(n.A,{database:f,setFieldData:_,setTableFields:x,tableFields:m,targetField:c,user:g,currentTable:v,fieldIndex:u})]}),(0,t.jsxs)("div",{className:"secondary mt-auto flex-wrap w-full xl:w-auto",children:[(0,t.jsx)("button",{type:"submit",className:"secondary mt-auto py-3 w-full md:w-auto grow",children:"Save Updates"}),(0,t.jsx)("div",{className:"button outlined gray mt-auto py-2.5 w-full md:w-auto justify-center grow",onClick:e=>{b.current&&(c=r().cloneDeep(b.current)),x(e=>{let l=r().cloneDeep(e);return u&&b.current&&(l[u]=r().cloneDeep(b.current)),l}),h&&h(!1)},children:"Cancel"})]})]})})}},809:(e,l,a)=>{a.d(l,{A:()=>f});var t=a(4848),i=a(6540),n=a(9268),s=a(6897);function d(e){let{targetField:l}=e;if(!(null==l?void 0:l.richText))return null;let[a,d]=i.useState(l.cssFiles||[]),r=i.useRef(null);return i.useEffect(()=>{l.cssFiles=a},[a]),(0,t.jsxs)("div",{className:"flex flex-col items-start gap-2 w-full my-4",style:{minWidth:"70px"},children:[(0,t.jsx)("span",{className:"label text-xs text-slate-500",children:"Add CSS"}),a.map((e,l)=>(0,t.jsxs)("div",{className:"relative border border-solid border-slate-300 text-xs px-2 py-1 rounded-full",children:[(0,t.jsx)("span",{children:e}),(0,t.jsx)(s.A,{size:20,onClick:()=>{d(l=>l.filter(l=>l!==e))},className:"cursor-pointer hover:opacity-60 "})]},l+1)),(0,t.jsxs)("div",{className:"row w-full",children:[(0,t.jsx)(n.A,{name:"css-file",placeholder:"CSS file URL",elementRef:r}),(0,t.jsx)("button",{className:"secondary outlined",onClick:()=>{var e;let l=null===(e=r.current)||void 0===e?void 0:e.value;(null==l?void 0:l.match(/./))&&d(e=>[...new Set([...e,l])])},children:"Add"})]}),(0,t.jsx)("span",{className:"text-sm text-slate-600",children:"Add CSS files to your Rich Text field"})]})}function r(e){let{targetField:l,setFieldData:a}=e;return(0,t.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",style:{minWidth:"70px"},children:[(0,t.jsx)("label",{htmlFor:"encryption_field",children:"Encrypt?"}),(0,t.jsxs)("select",{name:"encryption_field",id:"encryption_field",className:"px-2",defaultValue:(null==l?void 0:l.encrypted)?"Yes":"No",onChange:e=>{a&&a(l=>(e.target.value.match(/yes/i)?l.encrypted=!0:(l.encrypted=!1,delete l.encrypted),l))},children:[(0,t.jsx)("option",{value:"No",children:"No"}),(0,t.jsx)("option",{value:"Yes",children:"Yes"})]})]})}var o=a(2086);function c(e){let{targetField:l,setFieldData:a}=e;return null}function u(e){let{targetField:l}=e;return(0,t.jsxs)("div",{className:"flex flex-col items-start gap-2 w-full",style:{minWidth:"70px"},children:[(0,t.jsx)("label",{htmlFor:"encryption_field",children:"Pattern"}),(0,t.jsx)("span",{className:"text-sm text-slate-500",children:'This describes a pattern that must be matched for this field to be valid. If you add a pattern and make a db entry that doesn\'t match, the entry will be "NULL" or an empty string or the default value.'}),(0,t.jsx)("input",{type:"text",placeholder:"Regex Pattern. Eg: '\\\\.[a-z]+'",onInput:e=>{var a;let t=e.target;(null==t?void 0:null===(a=t.value)||void 0===a?void 0:a.length)>0?l.pattern=t.value:delete l.pattern},defaultValue:null==l?void 0:l.pattern}),(0,t.jsx)("input",{type:"text",placeholder:"Regex Pattern Flags. Eg: igm",onInput:e=>{var a;let t=e.target;(null==t?void 0:null===(a=t.value)||void 0===a?void 0:a.length)>0?l.patternFlags=t.value:delete l.patternFlags},defaultValue:null==l?void 0:l.patternFlags})]})}var m=a(2543),x=a.n(m),p=a(9878);function h(e){let{targetField:l,setFieldData:a}=e;return(0,t.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",style:{minWidth:"70px"},children:[(0,t.jsx)("label",{htmlFor:"unique_field",children:"Unique Field?"}),(0,t.jsxs)("select",{name:"unique_field",id:"unique_field",className:"px-2",defaultValue:(null==l?void 0:l.unique)?"Yes":"No",onChange:e=>{a&&a(l=>(e.target.value.match(/yes/i)?l.unique=!0:(l.unique=!1,delete l.unique),l))},children:[(0,t.jsx)("option",{value:"No",children:"No"}),(0,t.jsx)("option",{value:"Yes",children:"Yes"})]})]})}function f(e){let{targetField:l,currentTable:a,database:n,tableFields:s,setTableFields:m,setFieldData:f,user:v,fieldIndex:g}=e,[y,j]=i.useState(!1),N=i.useRef(x().cloneDeep(l));return i.useEffect(()=>{},[]),(0,t.jsxs)(i.Fragment,{children:[(0,t.jsx)("span",{className:"button outlined gray mt-5 w-full xl:w-auto",onClick:()=>{j(!0)},children:"More"}),(0,t.jsx)(p.A,{open:y,onClose:()=>{N.current&&(l=x().cloneDeep(N.current)),j(!1)},maxWidth:"600px",children:(0,t.jsxs)("div",{className:"m-auto flex flex-col max-w-xl w-full max-h-[90vh] overflow-y-auto",children:[(0,t.jsx)("div",{className:"w-full justify-between",children:(0,t.jsx)("span",{className:"text-xl",children:"More Options"})}),(0,t.jsx)(d,{targetField:l}),(0,t.jsx)(h,{targetField:l,setFieldData:f}),(0,t.jsx)(r,{targetField:l,setFieldData:f}),a&&(0,t.jsx)(o.A,{targetField:l,setFieldData:f,database:n,tableFields:s,setTableFields:m,currentTable:a,user:v}),(0,t.jsx)(c,{targetField:l,setFieldData:f}),(0,t.jsx)(u,{targetField:l}),(0,t.jsx)("button",{className:"w-full outlined more-padding",onClick:()=>{j(!1)},children:"Done"})]})})]})}},8311:(e,l,a)=>{a.d(l,{A:()=>F});var t=a(4848),i=a(6540),n=a(6517);function s(e){let{tableFields:l,setTableFields:a,setRefresh:t,setPageRefresh:i,refreshFieldsListRef:n}=e,s=l.findIndex(e=>"date_created"===e.fieldName);l.splice(s,0,{newTempField:!0}),a(l),(null==n?void 0:n.current)&&n.current(e=>e+1)}var d=a(1342),r=a(1710),o=a(2675),c=a(2086),u=a(9020);function m(e){var l,a,n,s,d,r,m,x,p,h,f;let{field:v,setTargetField:g,fieldIndex:y,tableFields:j,setTableFields:N,refreshFieldsListRef:b,database:w,currentTable:T,user:_,isDelegated:F,setLoading:C}=e,[A,S]=i.useState(v),[k,D]=i.useState(!1);return(0,t.jsxs)("div",{className:"flex-col w-full table-field-wrapper"+(k?" shadow-2xl shadow-slate-700/40 relative z-50":""),children:[(0,t.jsxs)("div",{className:"card no-hover items-center w-full py-4"+(k?" rounded-t":" rounded")+((null===(l=A.fieldName)||void 0===l?void 0:l.match(o.A))?" text-slate-400 pointer-events-none border-slate-200 border":" light-gray"),children:[(0,t.jsx)("span",{className:"font-bold"+((null===(a=A.fieldName)||void 0===a?void 0:a.match(o.A))?" dark:text-slate-500":" dark:text-white"),children:A.fieldName}),(0,t.jsx)("span",{className:"text-xs py-1 px-2 bg-slate-100 dark:bg-slate-700 dark:text-slate-200 rounded ",children:A.dataType}),(null==A?void 0:A.foreignKey)&&(0,t.jsxs)("div",{className:"text-xs bg-primary text-white px-2 py-0.5 rounded-full",children:[(0,t.jsx)("span",{children:"Foreign Key: "}),(0,t.jsxs)("span",{children:[A.foreignKey.destinationTableName," ("," ",(0,t.jsx)("b",{children:A.foreignKey.destinationTableColumnName})," ",")"]})]}),(null===(n=A.fieldName)||void 0===n?void 0:n.match(o.A))&&(0,t.jsx)("span",{className:"text-slate-300 text-sm font-semibold ml-0 md:ml-auto",children:"Default Field"}),!(!F&&!(null===(s=A.fieldName)||void 0===s?void 0:s.match(o.A))&&(null===(d=A.dataType)||void 0===d?void 0:d.match(/INT/)))||A.foreignKey||(null==w?void 0:null===(m=w.active_clone)||void 0===m?void 0:null===(r=m.toString())||void 0===r?void 0:r.match(/1/))?!(!F&&!(null===(x=A.fieldName)||void 0===x?void 0:x.match(o.A))&&(null===(p=A.dataType)||void 0===p?void 0:p.match(/INT/)))||(null==w?void 0:null===(f=w.active_clone)||void 0===f?void 0:null===(h=f.toString())||void 0===h?void 0:h.match(/1/))?(0,t.jsx)(i.Fragment,{}):(0,t.jsx)("div",{className:"ml-0 md:ml-auto flex-wrap",children:(0,t.jsx)("div",{className:"button py-1 text-xs light-gray",onClick:e=>{if(window.confirm("Delete this foreign Key?")){var l,a;delete v.foreignKey,C(!0),(0,u.A)("/api/updateClonedTableForeignKeys",{method:"post",body:{tableData:T,database:w.db_full_name,dbSlug:w.db_slug,delegated:null!==(a=window.location)&&void 0!==a&&null!==(l=a.search)&&void 0!==l&&!!l.match(/delegated=true/i)}},!0).then(e=>{e.success?window.location.reload():window.alert("Update Failed, Please Try again.")})}},style:{color:"var(--slate-500)"},children:"Delete Foreign Key"})}):(0,t.jsx)("div",{className:"ml-0 md:ml-auto flex-wrap",children:(0,t.jsx)("div",{className:"button outlined py-1 text-xs gray",onClick:e=>{k?D(!1):D(!0)},style:{color:"var(--slate-500)"},children:"Add Foreign Key"})})]}),k&&!F&&(0,t.jsx)("div",{className:"card col w-full -mt-5 pt-0 no-hover",children:(0,t.jsx)(c.A,{targetField:v,setFieldData:S,tableFields:j,setTableFields:N,database:w,currentTable:T,user:_,setActiveEdit:D,activeClonedTable:!0})})]})}var x=a(809),p=a(1765);function h(e){let{fieldIndex:l,setTableFields:n,database:s,user:d,isNewField:r,setLiteralValue:o,tempFieldData:c,setTempFieldData:u,dataTypeValue:m,setDataTypeValue:h,dataType:f,setDataType:v,dataTypeDesc:g,setDataTypeDesc:y}=e,j=a(4327),N=i.useRef();i.useEffect(()=>{var e;N.current&&(N.current.scrollIntoView({block:"center",behavior:"smooth"}),null===(e=N.current.querySelector("input"))||void 0===e||e.focus())},[]);let b=!!f.match(/uuid/i);return(0,t.jsxs)(i.Fragment,{children:[r&&(0,t.jsx)("span",{className:"absolute -top-4 text-sm bg-fuchsia-600 dark:bg-white text-white dark:text-fuchsia-800 px-3 py-1 rounded-full",children:"New Field"}),(0,t.jsxs)("div",{className:"gap-4 flex-wrap xl:flex-nowrap flex-col xl:flex-row items-stretch w-full xl:w-auto",children:[(0,t.jsxs)("div",{className:"flex flex-col items-start gap-0.5",children:[(0,t.jsx)("label",{htmlFor:"new_field_name",children:"Field Name"}),(0,t.jsx)("input",{type:"text",name:"new_field_name",id:"new_field_name",placeholder:"Eg. post_title",onInput:async e=>{let l=e.target,a=l.value.toLowerCase().replace(/ /g,"_");l.value=a},required:!0})]}),(0,t.jsxs)("div",{className:"flex flex-col items-start gap-4 xl:gap-0.5",children:[(0,t.jsxs)("div",{className:"items-start flex-wrap xl:flex-nowrap",children:[(0,t.jsx)("label",{htmlFor:"new_field_data_type",children:"Data Type"}),(0,t.jsxs)("div",{className:"dropdown-wrapper reversed text-sm w-full items-start gap-2",children:[(0,t.jsx)("span",{className:"px-2 bg-slate-200 dark:bg-slate-700 rounded-full hover:bg-slate-100 dark:hover:bg-slate-600 hidden xl:flex",children:"Info"}),(0,t.jsx)("div",{className:"dropdown mt-0 xl:-mt-2",children:(0,t.jsx)("span",{children:g})})]})]}),(0,t.jsxs)("div",{className:"w-full xl:w-auto",children:[(0,t.jsx)("select",{name:"new_field_data_type",id:"new_field_data_type",className:"w-full xl:w-auto",onChange:e=>{let l=e.target;v(l.value),l.childNodes.forEach(e=>{e.value===l.value&&y(e.dataset.desc),e.value===l.value&&e.dataset.literal&&o(e.dataset.literal)})},children:j.map((e,l)=>e.name.match(/VARCHAR/)?(0,t.jsx)("option",{value:e.name,"data-desc":e.description,children:e.title+"("+(m||200)+")"},l+1):(0,t.jsx)("option",{value:e.name,"data-desc":e.description,"data-literal":e.valueLiteral||void 0,children:e.title},l+1))}),f.match(/VARCHAR/)&&(0,t.jsx)("input",{type:"number",defaultValue:m,className:"px-2",style:{maxWidth:"60px"},max:255,min:5,onChange:e=>{h(e.target.value)}})]})]}),(null==f?void 0:f.match(/text/i))&&(0,t.jsx)(i.Fragment,{children:(0,t.jsx)(p.A,{targetField:c})}),!b&&(0,t.jsxs)("div",{className:"flex flex-col items-start gap-0.5",style:{minWidth:"70px"},children:[(0,t.jsx)("label",{htmlFor:"new_field_required",children:"Required?"}),(0,t.jsxs)("select",{name:"new_field_required",id:"new_field_required",className:"px-2",children:[(0,t.jsx)("option",{value:"No",children:"No"}),(0,t.jsx)("option",{value:"Yes",children:"Yes"})]})]}),!b&&(0,t.jsxs)("div",{className:"flex flex-col items-start gap-0.5",children:[(0,t.jsx)("label",{htmlFor:"new_field_default_value",children:"Default Value (optional)"}),(0,t.jsx)("input",{type:"text",name:"new_field_default_value",id:"new_field_default_value",placeholder:"Default Value"})]}),!b&&(0,t.jsx)(x.A,{database:s,setFieldData:u,targetField:c,user:d,fieldIndex:l})]}),(0,t.jsxs)("div",{className:"secondary mt-auto flex-wrap xl:flex-nowrap w-full xl:w-auto",children:[(0,t.jsx)("button",{type:"submit",className:"secondary mt-auto py-3 w-full sm:w-auto justify-center grow",children:"Add Field"}),(0,t.jsx)("div",{className:"button outlined-gray mt-auto py-2.5 w-full sm:w-auto justify-center grow",onClick:e=>{n(e=>e.filter((e,a)=>a!=l))},children:"Cancel"})]})]})}function f(e){let{fieldIndex:l,tableFields:a,setTableFields:n,refreshFieldsListRef:s,database:d,currentTable:r,user:o}=e,[c,u]=i.useState("VARCHAR"),[m,x]=i.useState("200"),[p,f]=i.useState("Varchar is simply letters and numbers within the range 0 - 255"),[v,g]=i.useState({}),y=i.useRef(),[j,N]=i.useState("");i.useEffect(()=>{var e;y.current&&(y.current.scrollIntoView({block:"center",behavior:"smooth"}),null===(e=y.current.querySelector("input"))||void 0===e||e.focus())},[]);let b=!!c.match(/uuid/i);return(0,t.jsx)("div",{className:"w-full mt-1 flex-wrap relative z-0 hover:z-20",ref:y,children:(0,t.jsx)("form",{className:"flex flex-row items-start gap-4 w-full justify-between border border-solid p-4 pt-6 border-slate-400 rounded focus:shadow-lg shadow-slate-400/40 dark:shadow-black/30 relative flex-wrap xl:flex-nowrap shadow-xl",onSubmit:e=>{var a,t,i,d,r,o;e.preventDefault();let c=v.foreignKey;c&&!c.destinationTableName&&delete v.foreignKey;let u=e.target,x=u.new_field_name.value,p=u.new_field_data_type.value,h=null===(a=u.new_field_required)||void 0===a?void 0:a.value,f=null===(t=u.new_field_default_value)||void 0===t?void 0:t.value,g=null===(i=u.encryption_field)||void 0===i?void 0:i.value,y=null===(d=u.rich_text_option)||void 0===d?void 0:d.value,N=u.foreign_key_field,w=u.foreign_key_destination_table_name,T=u.foreign_key_destination_table_column_name;null==N||N.value;let _={...v,fieldName:x,dataType:(null==v?void 0:v.dataType)&&(null==v?void 0:v.foreignKey)?v.dataType:(null==p?void 0:p.match(/VARCHAR/))?"".concat(p,"(").concat(m,")"):p};(null==h?void 0:h.match(/yes/i))?_.notNullValue=!0:(null==f?void 0:f.match(/./))||(_.nullValue=!0),(null==f?void 0:f.match(/./))&&(_.defaultValue=f),(null==g?void 0:g.match(/yes/i))&&(_.encrypted=!0),(null==T?void 0:null===(r=T.value)||void 0===r?void 0:r.match(/./i))&&!(null==T?void 0:null===(o=T.value)||void 0===o?void 0:o.match(/^--$/i))&&(_.dataType=T.dataset.dataType,_.foreignKey={foreignKeyName:T.dataset.foreignKeyName,destinationTableName:w.dataset.destinationTableName,destinationTableColumnName:T.dataset.destinationTableColumnName,cascadeDelete:!0}),(null==y?void 0:y.match(/yes/i))&&(_.richText=!0),b?(_.defaultValueLiteral=j,_.nullValue=!1):delete _.defaultValueLiteral,console.log("newFieldObject",_),function(e){let{fieldIndex:l,setTableFields:a,refreshFieldsListRef:t,payload:i}=e;a(e=>(e.splice(l,1,i),e)),(null==t?void 0:t.current)&&t.current(e=>e+1)}({fieldIndex:l,setTableFields:n,refreshFieldsListRef:s,payload:_})},children:(0,t.jsx)(h,{database:d,fieldIndex:l,isNewField:!0,literalValue:j,refreshFieldsListRef:s,setLiteralValue:N,setTableFields:n,user:o,currentTable:r,tableFields:a,tempFieldData:v,setTempFieldData:g,dataTypeValue:m,setDataTypeValue:x,dataType:c,setDataType:u,dataTypeDesc:p,setDataTypeDesc:f})})})}var v=a(2543),g=a.n(v);function y(e){let{tableFields:l,setTableFields:a,refreshFieldsListRef:t,order:i,field:n,e:s}=e,d=g().cloneDeep(l),r=d.findIndex(e=>e.fieldName===n.fieldName);if(r<0)return;let o=d[r];if("up"===i&&r&&r<=1){console.log("Min Reached =>",r);return}if("down"===i&&r&&r>=d.length-7){console.log("Max Reached =>",r);return}try{var c,u;let e;let l=s.target.closest(".table-field-wrapper"),a=l.previousElementSibling,t=l.nextElementSibling,n=window.DSQL.Flip,d=n.getState(l);"up"===i?(e=n.getState(a),null===(c=l.parentNode)||void 0===c||c.insertBefore(l,a)):(null==t?void 0:t.nextElementSibling)&&(e=n.getState(t),null===(u=l.parentNode)||void 0===u||u.insertBefore(l,t.nextElementSibling)),n.from(d,{duration:.3,ease:"power1.inOut"}),n.from(e,{duration:.3,ease:"power1.inOut"})}catch(e){console.log("Error =>",e.message)}if(!r){console.log("No target Field Index =>",r);return}d.splice(r,1),"up"===i?d.splice(r-1,0,o):d.splice(r+1,0,o),setTimeout(()=>{a([...d]),t.current&&t.current(e=>e+1)},500)}var j=a(8034),N=a(900),b=a(2027);function w(e){var l,a,n,s,d,r,c;let{field:u,setTargetField:m,fieldIndex:x,tableFields:p,setTableFields:h,refreshFieldsListRef:f,database:v,currentTable:g,confirmedDelegetedUser:w,user:T}=e,_=null==w?void 0:w.delegated,F=null==w?void 0:null===(l=w.priviledges)||void 0===l?void 0:l.match(/Edit Tables/i);null==w||null===(a=w.priviledges)||void 0===a||a.match(/Delete Tables/i),null==w||null===(n=w.priviledges)||void 0===n||n.match(/Create Tables/i);let{active_clone:C,active_clone_parent_db:A,remote_connected:S}=v,[k,D]=i.useState(u),[V,I]=i.useState(!1);return(0,t.jsxs)("div",{className:"flex-col w-full table-field-wrapper"+(V?" shadow-2xl shadow-slate-300/40 dark:shadow-black/30 relative z-50":""),children:[(0,t.jsxs)("div",{className:"card no-hover items-center w-full py-4"+(V?" rounded-t":" rounded")+((null===(s=k.fieldName)||void 0===s?void 0:s.match(o.A))?" text-slate-400 pointer-events-none border-slate-200 border":" light-gray"),children:[(0,t.jsx)("span",{className:"font-bold"+((null===(d=k.fieldName)||void 0===d?void 0:d.match(o.A))?" dark:text-slate-500":" dark:text-white"),children:k.fieldName}),(0,t.jsx)("span",{className:"text-xs py-1 px-2 bg-slate-100 dark:bg-slate-700 dark:text-slate-200 rounded ",children:k.dataType}),(null==k?void 0:k.foreignKey)&&(0,t.jsxs)("div",{className:"text-xs bg-primary text-white px-2 py-0.5 rounded-full",children:[(0,t.jsx)("span",{children:"Foreign Key: "}),(0,t.jsxs)("span",{children:[k.foreignKey.destinationTableName," ("," ",(0,t.jsx)("b",{children:k.foreignKey.destinationTableColumnName})," ",")"]})]}),(null===(r=k.fieldName)||void 0===r?void 0:r.match(o.A))&&(0,t.jsx)("span",{className:"text-slate-300 text-sm font-semibold ml-0 md:ml-auto",children:"Default Field"}),!(null===(c=k.fieldName)||void 0===c?void 0:c.match(o.A))&&!A&&!S&&(0,t.jsx)("div",{className:"ml-0 md:ml-auto flex-wrap",children:(!_||_&&F)&&(0,t.jsxs)(i.Fragment,{children:[(0,t.jsxs)(N.A,{children:[(0,t.jsx)("div",{className:"button outlined py-1 text-xs gray",onClick:e=>{V?I(!1):I(!0)},style:{color:"var(--slate-500)"},children:"Edit"}),!A&&!S&&(0,t.jsx)("div",{className:"button outlined py-1 text-xs gray",onClick:e=>{window.confirm('Delete "'.concat(u.fieldName,'"?'))&&h(e=>e.filter((e,l)=>l!=x))},style:{color:"var(--slate-500)"},children:"Delete"})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:"button outlined gray p-2 w-8 h-8 rounded-full rotate-180",onClick:e=>{y({tableFields:p,setTableFields:h,refreshFieldsListRef:f,order:"up",field:u,e})},children:(0,t.jsx)(b.A,{size:20})}),(0,t.jsx)("div",{className:"button outlined gray p-2 w-8 h-8 rounded-full",onClick:e=>{y({tableFields:p,setTableFields:h,refreshFieldsListRef:f,order:"down",field:u,e})},children:(0,t.jsx)(b.A,{size:20})})]})]})})]}),V&&(0,t.jsx)("div",{className:"w-full",children:(0,t.jsx)(j.A,{fieldIndex:x,tableFields:p,setTableFields:h,refreshFieldsListRef:f,targetField:u,setActiveEdit:I,database:v,currentTable:g,user:T})})]})}var T=a(8845);let _=1;function F(e){var l,o,c,u;let{user:x,tableFields:p,setTableFields:h,setTargetField:v,refreshFieldsListRef:g,updateTable:y,updateTableAfterFieldsUpdateFunction:j,collapsed:N,database:b,table:F,confirmedDelegetedUser:C,query:A}=e;(null==F?void 0:F.childTable)&&(null===(l=F.childTableDbFullName)||void 0===l||l.replace(new RegExp(/datasquirel_user_\d+_/),""));let S=null==C?void 0:C.delegated,k=null==C?void 0:null===(o=C.priviledges)||void 0===o?void 0:o.match(/Edit Tables/i);null==C||null===(c=C.priviledges)||void 0===c||c.match(/Delete Tables/i),null==C||null===(u=C.priviledges)||void 0===u||u.match(/Create Tables/i);let{active_clone:D,active_clone_parent_db:V,remote_connected:I}=b,[E,K]=i.useState(0);g.current=K;let[R,L]=i.useState(!1),[U,q]=i.useState(N||!1);return(i.useEffect(()=>{let{Flip:e}=a(8383);n.Ay.registerPlugin(e);let l=window.DSQL;l&&(l.Flip=e)},[]),S&&!k)?(0,t.jsx)(t.Fragment,{}):(0,t.jsxs)("section",{className:"paper green",children:[R&&(0,t.jsx)(r.A,{}),(null==F?void 0:F.childTable)?(0,t.jsxs)(i.Fragment,{children:[(0,t.jsxs)("div",{className:"w-full justify-between flex-wrap",children:[(0,t.jsx)("h2",{className:"text-xl m-0 text-left title",children:"Fields"}),(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:"button outlined light-gray",onClick:e=>{let l=(0,T.A)({paradigm:"JavaScript",table:F,query:A,user:x});l&&navigator.clipboard.writeText(l).then(()=>{window.alert("JavaScript Type Definition Copied")})},children:(0,t.jsx)("span",{children:"Copy TypeDef (JS)"})}),(0,t.jsx)("div",{className:"button outlined light-gray",onClick:e=>{let l=(0,T.A)({paradigm:"TypeScript",table:F,query:A,user:x});l&&navigator.clipboard.writeText(l).then(()=>{window.alert("TypeScript Type Definition Copied")})},children:(0,t.jsx)("span",{children:"Copy TypeDef (TS)"})})]})]}),(0,t.jsx)("div",{className:"flex-col w-full",style:U?{maxHeight:"200px"}:{},children:p&&p[0]&&p.map((e,l)=>(_++,(0,t.jsx)(m,{field:e,fieldIndex:l,setTargetField:v,setTableFields:h,refreshFieldsListRef:g,tableFields:p,database:b,setLoading:L,currentTable:F,user:x,isDelegated:S},_)))}),N&&(0,t.jsx)(d.A,{collapse:U||!1,setCollapse:q})]}):(0,t.jsxs)(i.Fragment,{children:[(0,t.jsxs)("div",{className:"w-full justify-between flex-wrap",children:[(0,t.jsx)("h2",{className:"text-xl m-0 text-left title",children:"Fields"}),(0,t.jsxs)("div",{children:[(!S||S&&k)&&!V&&!I&&(0,t.jsxs)("div",{className:"button secondary outlined",onClick:e=>{U&&q(!1),s({setTableFields:h,tableFields:p,setRefresh:K,refreshFieldsListRef:g})},children:[(0,t.jsx)("span",{className:"symbol",children:"+"}),(0,t.jsx)("span",{children:"Add New Field"})]}),(0,t.jsx)("div",{className:"button outlined light-gray",onClick:e=>{if(!F)return;let l=(0,T.A)({paradigm:"JavaScript",table:F,query:A,user:x});l&&navigator.clipboard.writeText(l).then(()=>{window.alert("JavaScript Type Definition Copied")})},children:(0,t.jsx)("span",{children:"Copy TypeDef (JS)"})}),(0,t.jsx)("div",{className:"button outlined light-gray",onClick:e=>{if(!F)return;let l=(0,T.A)({paradigm:"TypeScript",table:F,query:A,user:x});l&&navigator.clipboard.writeText(l).then(()=>{window.alert("TypeScript Type Definition Copied")})},children:(0,t.jsx)("span",{children:"Copy TypeDef (TS)"})})]})]}),(0,t.jsxs)("div",{className:"flex-col w-full",style:U?{maxHeight:"200px"}:{},children:[p&&p[0]&&p.map((e,l)=>(_++,e.newTempField)?(0,t.jsx)(f,{fieldIndex:l,tableFields:p,setTableFields:h,refreshFieldsListRef:g,database:b,currentTable:F,user:x},_):(0,t.jsx)(w,{field:e,fieldIndex:l,setTargetField:v,setTableFields:h,refreshFieldsListRef:g,tableFields:p,database:b,currentTable:F,confirmedDelegetedUser:C,user:x},_)),(!S||S&&k)&&!V&&!I&&(0,t.jsxs)(i.Fragment,{children:[(0,t.jsxs)("div",{className:"button outlined gray w-full more-padding",style:{borderStyle:"dashed"},onClick:e=>{U&&q(!1),s({setTableFields:h,tableFields:p,setRefresh:K,refreshFieldsListRef:g})},children:[(0,t.jsx)("span",{className:"symbol",children:"+"}),(0,t.jsx)("span",{children:"Add New Field"})]}),y&&(0,t.jsx)("button",{className:"secondary w-full py-3",onClick:e=>{window.confirm("Update Table Fields?")&&(L(!0),j&&j(L))},children:"Update Table Fields"})]})]}),N&&(0,t.jsx)(d.A,{collapse:U,setCollapse:q})]})]})}},2086:(e,l,a)=>{a.d(l,{A:()=>r});var t=a(4848),i=a(6540),n=a(9020),s=a(1710),d=a(2408);function r(e){var l,a,r,o;let{targetField:c,setFieldData:u,tableFields:m,setTableFields:x,database:p,currentTable:h,user:f,setActiveEdit:v,activeClonedTable:g}=e,[y,j]=i.useState(null!=c&&!!c.foreignKey),[N,b]=i.useState(null),[w,T]=i.useState(null),[_,F]=i.useState(null),[C,A]=i.useState(null),[S,k]=i.useState(!1),[D,V]=i.useState("boolean"!=typeof(null===(l=c.foreignKey)||void 0===l?void 0:l.cascadeDelete)||c.foreignKey.cascadeDelete),[I,E]=i.useState("boolean"==typeof(null===(a=c.foreignKey)||void 0===a?void 0:a.cascadeUpdate)&&c.foreignKey.cascadeUpdate);return i.useEffect(()=>{c.foreignKey={...c.foreignKey,cascadeDelete:D,cascadeUpdate:I}},[D,I]),i.useEffect(()=>{if(!y&&!(null==c?void 0:c.foreignKey)){b(null),T(null),F(null),A(null);return}(0,n.A)("/api/getUserSchemaData").then(e=>{if(e.success)try{let a=e.schemaData.filter(e=>e.dbFullName===p.db_full_name),t=h?a[0].tables.filter(e=>e.tableName!==h.tableName):a[0].tables;if(b(t),null==c?void 0:c.foreignKey){var l;let e=t.filter(e=>{var l;return e.tableName===(null==c?void 0:null===(l=c.foreignKey)||void 0===l?void 0:l.destinationTableName)});T(e[0]),(null===(l=e[0])||void 0===l?void 0:l.fields)&&F(e[0].fields)}}catch(e){(0,n.A)("/api/admin/clientError",{method:"post",body:{component:"ForeignKey/fetch-error-getUserSchemaData/lines-65-77",message:e.message,user:f}})}})},[y]),(0,t.jsxs)("div",{className:"flex flex-col items-start gap-2 w-full mt-2 relative",style:{minWidth:"70px"},children:[S&&(0,t.jsx)(s.A,{}),(0,t.jsxs)("label",{htmlFor:"foreign_key_field",className:"flex flex-wrap items-center gap-2 mt-2",children:[(0,t.jsx)("span",{children:"Foreign Key?"}),(0,t.jsxs)("div",{className:"dropdown-wrapper reversed text-sm items-start",children:[(0,t.jsx)("span",{className:"px-2 bg-slate-200 rounded-full hover:bg-slate-100 hidden xl:flex text-slate-600",children:"Info"}),(0,t.jsx)("div",{className:"dropdown mt-0 xl:-mt-2",children:(0,t.jsx)("span",{children:"Foriegn key links the current table to another table"})})]})]}),(0,t.jsxs)("select",{name:"foreign_key_field",id:"foreign_key_field",className:"px-2",defaultValue:(null==c?void 0:c.foreignKey)?"Yes":"No",onChange:e=>{e.target.value.match(/yes/i)?(j(!0),u&&u(e=>(e.foreignKey={foreignKeyName:void 0,destinationTableName:void 0,destinationTableColumnName:void 0,cascadeDelete:!0},e))):(j(!1),u&&u(e=>(delete e.foreignKey,e)))},children:[(0,t.jsx)("option",{value:"No",children:"No"}),(0,t.jsx)("option",{value:"Yes",children:"Yes"})]}),y&&N&&(0,t.jsx)(i.Fragment,{children:(0,t.jsxs)("select",{name:"foreign_key_destination_table_name",id:"foreign_key_destination_table_name",className:"px-2",defaultValue:(null==c?void 0:null===(r=c.foreignKey)||void 0===r?void 0:r.destinationTableName)?c.foreignKey.destinationTableName:void 0,onChange:e=>{var l;let a=e.target;if(null===(l=e.target.value)||void 0===l?void 0:l.match(/--/)){u?u(e=>{let l=e.foreignKey;return l&&(l.destinationTableName=void 0),e}):a.dataset.destinationTableName=void 0;return}let t=N.filter(l=>l.tableName===e.target.value)[0];T(t),(null==t?void 0:t.fields)&&F(t.fields),u?u(l=>{let a=l.foreignKey;return a&&(a.destinationTableName=e.target.value),l}):e.target.dataset.destinationTableName=e.target.value},children:[(0,t.jsx)("option",{value:"--",children:"--Select Table--"}),N.map((e,l)=>(0,t.jsx)("option",{value:e.tableName,children:e.tableFullName},l+1))]})}),w&&_&&(0,t.jsxs)(i.Fragment,{children:[(0,t.jsxs)("select",{name:"foreign_key_destination_table_column_name",id:"foreign_key_destination_table_column_name",className:"px-2",defaultValue:(null==c?void 0:null===(o=c.foreignKey)||void 0===o?void 0:o.destinationTableColumnName)?c.foreignKey.destinationTableColumnName:void 0,onChange:e=>{try{var l;let a=_.filter(l=>l.fieldName===e.target.value)[0];if(A(a),null===(l=e.target.value)||void 0===l?void 0:l.match(/--/)){u&&u(e=>{let l=e.foreignKey;return l&&(l.destinationTableColumnName=void 0),e});return}let t="dsql_".concat(p.user_id,"_").concat(p.db_slug,"_").concat(Date.now());u?u(e=>{e.dataType=a.dataType;let l=e.foreignKey;return l&&(l.destinationTableColumnName=a.fieldName,l.destinationTableColumnType=a.dataType,l.foreignKeyName=t),e}):(e.target.dataset.dataType=a.dataType,e.target.dataset.destinationTableColumnName=a.fieldName,e.target.dataset.foreignKeyName=t)}catch(e){(0,n.A)("/api/admin/clientError",{method:"post",body:{component:"ForeignKey/lines-232-264",message:e.message,user:f}})}},children:[(0,t.jsx)("option",{value:"--",children:"--Select Column--"}),_.map((e,l)=>(0,t.jsx)("option",{value:e.fieldName,children:e.fieldName},l+1))]}),g&&C&&(0,t.jsx)("button",{className:"secondary w-full",onClick:e=>{var l,a;k(!0),(0,n.A)("/api/updateClonedTableForeignKeys",{method:"post",body:{tableData:h,database:p.db_full_name,dbSlug:p.db_slug,delegated:null!==(a=window.location)&&void 0!==a&&null!==(l=a.search)&&void 0!==l&&!!l.match(/delegated=true/i)}},!0).then(e=>{e.success?window.alert("Foreign Key Added Successfully!"):window.alert("Update Failed, Please Try again."),setTimeout(()=>{v&&v(!1)},1e3)})},children:"Add Foreign Key"}),(0,t.jsx)(d.A,{checkBoxValues:[{title:"Cascade Delete",default:D,name:"cascade-delete",onChangeHandler:e=>{V(e.target.checked)}},{title:"Cascade Update",name:"cascade-update",default:I,onChangeHandler:e=>{E(e.target.checked)}}],smallText:!0})]}),g&&(0,t.jsx)("button",{className:"light-gray w-full",onClick:e=>{delete c.foreignKey,v&&v(!1)},children:"Cancel"})]})}},1765:(e,l,a)=>{a.d(l,{A:()=>i});var t=a(4848);function i(e){let{targetField:l}=e;return(0,t.jsxs)("div",{className:"flex flex-col items-start gap-0.5",style:{minWidth:"70px"},children:[(0,t.jsx)("label",{htmlFor:"rich_text_option",children:"Text Type"}),(0,t.jsxs)("select",{name:"rich_text_option",id:"rich_text_option",className:"px-2",onChange:e=>{switch(delete l.json,delete l.richText,delete l.yaml,delete l.html,delete l.javascript,delete l.shell,e.target.value){case"plain":break;case"rte":l.richText=!0;break;case"json":l.json=!0;break;case"yaml":l.yaml=!0;break;case"html":l.html=!0;break;case"css":l.css=!0;break;case"javascript":l.javascript=!0;break;case"shell":l.shell=!0}},defaultValue:l.richText?"rte":l.json?"json":l.yaml?"yaml":l.html?"html":l.javascript?"javascript":l.shell?"shell":l.css?"css":"plain",children:[(0,t.jsx)("option",{value:"plain",children:"Plain Text"}),(0,t.jsx)("option",{value:"rte",children:"Rich Text"}),(0,t.jsx)("option",{value:"json",children:"JSON"}),(0,t.jsx)("option",{value:"yaml",children:"YAML"}),(0,t.jsx)("option",{value:"html",children:"HTML"}),(0,t.jsx)("option",{value:"css",children:"CSS"}),(0,t.jsx)("option",{value:"javascript",children:"Javascript"}),(0,t.jsx)("option",{value:"shell",children:"Shell"})]})]})}a(6540)},8845:(e,l,a)=>{a.d(l,{A:()=>i});var t=a(2675);function i(e){let{paradigm:l,table:a,query:i,user:n}=e,s="";try{let e="DSQL_".concat(i.single,"_").concat(i.single_table).toUpperCase(),n=a.fields;function d(e){return(null==e?void 0:e.match(/int/i))?"number":(null==e||e.match(/text|varchar|timestamp/i),"string")}let r=[],o=[];r.push("type ".concat(e," = {")),o.push("/**\n * @typedef {object} ".concat(e)),n.forEach(e=>{var l;let a=e.nullValue?"?":(null===(l=e.fieldName)||void 0===l?void 0:l.match(t.A))?"?":"";r.push(" ".concat(e.fieldName).concat(a,": ").concat(d(e.dataType||""),";")),o.push(" * @property {".concat(d(e.dataType||"")).concat(a,"} ").concat(e.fieldName))}),r.push("}"),o.push(" */"),(null==l?void 0:l.match(/javascript/i))&&(s=o.join("\n")),(null==l?void 0:l.match(/typescript/i))&&(s=r.join("\n"))}catch(e){console.log(e.message),s=null}return s}},2408:(e,l,a)=>{a.d(l,{A:()=>i});var t=a(4848);function i(e){let{name:l,checkBoxValues:a,setAlert:i,labelColor:n,flexRow:s,baseText:d,smallText:r,className:o}=e;return(0,t.jsx)("div",{className:"flex items-start gap-x-4"+(s?" flex-row flex-wrap gap-y-2 ":" flex-col gap-y-4 ")+(o||""),children:a.map((e,a)=>{let{payload:s,title:o,onChangeHandler:c,fixed:u,jsx:m}=e,x=e.name?"".concat(l,"-").concat(e.name):s?l+"-"+s:l;return(0,t.jsxs)("div",{className:"flex items-center"+(e.default&&u?" pointer-events-none":"")+(r?" gap-1 ":" gap-2 ")+((null==e?void 0:e.className)?e.className:""),children:[(0,t.jsx)("input",{className:"m-0"+(r?" w-4 h-4":" w-5 h-5"),type:"checkbox",defaultChecked:!!e.default,name:x,id:x,onChange:l=>{i&&i(null),c&&c(l,e)},value:s,style:{minWidth:"20px"},...e.props}),m||(0,t.jsx)("label",{htmlFor:x,className:"m-0 "+(n||"text-slate-800 dark:text-white/80")+(d||r?" text-base":" text-lg"),children:o})]},a+1)})})}a(6540)},1342:(e,l,a)=>{a.d(l,{A:()=>i});var t=a(4848);function i(e){let{collapse:l,setCollapse:a}=e;return(0,t.jsxs)("div",{className:"collapse-block"+(l?" -mt-16 -mb-6 pt-10":" mt-0 mb-0 p-0"),onClick:e=>{l?a(!1):a(!0)},children:[(0,t.jsx)("span",{children:l?"Expand":"Collapse"}),(0,t.jsx)("img",{src:"/images/down-arrow-dark.svg",alt:"Down Arrow",width:16,className:"dark:hidden opacity-30 "+(l?"":"rotate-180")}),(0,t.jsx)("img",{src:"/images/down-arrow-white.svg",alt:"Down Arrow",width:16,className:"opacity-30 hidden dark:flex "+(l?"":"rotate-180")})]})}a(6540)},9878:(e,l,a)=>{a.d(l,{A:()=>d});var t=a(4848),i=a(6540),n=a(5338),s=a(6897);function d(e){let{children:l,open:a,setOpen:s,onClose:d,maxWidth:o}=e;return i.useEffect(()=>{if(a){let e=document.createElement("div");e.className="modal-wrapper",(0,n.createRoot)(e).render((0,t.jsx)(r,{onClose:d,maxWidth:o,children:l})),document.body.appendChild(e)}else document.querySelectorAll(".modal-wrapper").forEach(e=>{var l;null===(l=e.parentElement)||void 0===l||l.removeChild(e)})},[a]),(0,t.jsx)(t.Fragment,{})}function r(e){let{children:l,onClose:a,maxWidth:n,open:d}=e,r=i.useRef();return(0,t.jsxs)(i.Fragment,{children:[(0,t.jsx)("div",{className:"modal-cancel",onClick:e=>{o({modalEl:e.target.closest(".modal-wrapper"),closeFn:a})}}),(0,t.jsxs)("div",{className:"modal-content",style:{maxWidth:n||void 0},ref:r,children:[l," ",(0,t.jsx)("button",{className:"ghost modal-cancel-button",onClick:e=>{o({modalEl:e.target.closest(".modal-wrapper"),closeFn:a})},children:(0,t.jsx)(s.A,{})})]})]})}function o(e){var l;let{modalEl:a,closeFn:t}=e;t&&t(),null===(l=a.parentElement)||void 0===l||l.removeChild(a)}},2675:(e,l,a)=>{a.d(l,{A:()=>t});let t=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/},4327:e=>{e.exports=JSON.parse('[{"title":"VARCHAR","name":"VARCHAR","value":"0-255","argument":true,"description":"Varchar is simply letters and numbers within the range 0 - 255","maxValue":255},{"title":"TINYINT","name":"TINYINT","value":"0-100","description":"TINYINT means Integers: 0 to 100","maxValue":127},{"title":"SMALLINT","name":"SMALLINT","value":"0-255","description":"SMALLINT means Integers: 0 to 240933","maxValue":32767},{"title":"MEDIUMINT","name":"MEDIUMINT","value":"0-255","description":"MEDIUMINT means Integers: 0 to 1245568545560","maxValue":8388607},{"title":"INT","name":"INT","value":"0-255","description":"INT means Integers: 0 to 12560","maxValue":2147483647},{"title":"BIGINT","name":"BIGINT","value":"0-255","description":"BIGINT means Integers: 0 to 1245569056767568545560","maxValue":2e+63},{"title":"TINYTEXT","name":"TINYTEXT","value":"0-255","description":"Text with 255 max characters","maxValue":127},{"title":"TEXT","name":"TEXT","value":"0-100","description":"MEDIUMTEXT is just text with max length 16,777,215","maxValue":127},{"title":"MEDIUMTEXT","name":"MEDIUMTEXT","value":"0-255","description":"MEDIUMTEXT is just text with max length 16,777,215","maxValue":127},{"title":"LONGTEXT","name":"LONGTEXT","value":"0-255","description":"LONGTEXT is just text with max length 4,294,967,295","maxValue":127},{"title":"UUID","name":"UUID","valueLiteral":"UUID()","description":"A Unique ID"}]')}}]); \ No newline at end of file diff --git a/dsql-app/.local_dist/static/chunks/8311-ae577d4bb030d416.js b/dsql-app/.local_dist/static/chunks/8311-ae577d4bb030d416.js deleted file mode 100644 index d238fb8..0000000 --- a/dsql-app/.local_dist/static/chunks/8311-ae577d4bb030d416.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8311],{8034:(e,l,a)=>{a.d(l,{A:()=>o});var t=a(4848),i=a(6540),n=a(809),s=a(1765),d=a(2543),r=a.n(d);function o(e){var l,d,o;let{targetField:c,fieldIndex:u,tableFields:m,setTableFields:x,refreshFieldsListRef:p,setActiveEdit:h,database:f,currentTable:v,user:g}=e,y=(null==c?void 0:c.dataType)?c.dataType.replace(/\d|\(|\)/g,""):null,j=(null==c?void 0:c.dataType)?c.dataType.replace(/[^\d]/g,""):"200",N=a(4327),b=i.useRef(r().cloneDeep(c)),w=i.useRef(),[T,_]=i.useState(c),[F,C]=i.useState(null==c?void 0:c.fieldName),[A,S]=i.useState(y),[k,D]=i.useState(j),[V,I]=i.useState("Varchar is simply letters and numbers within the range 0 - 255"),[E,K]=i.useState((null==c?void 0:c.richText)&&!(null==c?void 0:c.encrypted)?"Yes":"No"),R=!!(null==A?void 0:A.match(/uuid/i));return(0,t.jsx)("div",{className:"w-full -mt-3 bg-white dark:bg-slate-800 flex-wrap",ref:w,children:(0,t.jsxs)("form",{className:"flex flex-col xl:flex-row items-start gap-4 w-full justify-between border border-solid p-4 border-slate-200 dark:border-slate-600 rounded rounded-t-none focus:shadow-lg shadow-slate-700 dark:shadow-black relative flex-wrap",onSubmit:e=>{var l,a;e.preventDefault(),x(e=>(e[u]=T,e)),p.current(e=>e+1),null===(a=e.target.closest(".table-field-wrapper"))||void 0===a||null===(l=a.querySelector(".edit-table-field-section"))||void 0===l||l.classList.toggle("hidden")},children:[(0,t.jsxs)("div",{className:"gap-4 flex-wrap w-full md:w-auto flex-col xl:flex-row items-stretch",children:[(0,t.jsxs)("div",{className:"flex flex-col items-start gap-0.5",children:[(0,t.jsx)("label",{htmlFor:"new_field_name",children:"Field Name"}),(0,t.jsx)("input",{type:"text",name:"new_field_name",id:"new_field_name",placeholder:"Eg. post_title",onInput:async e=>{let l=e.target;l.value=l.value.toLowerCase().replace(/ /g,"_"),_(e=>(e.fieldName=l.value,e.updatedField=!0,e.originName||(e.originName=F),e))},required:!0,defaultValue:F})]}),(0,t.jsxs)("div",{className:"flex flex-col items-start gap-4 xl:gap-0.5",children:[(0,t.jsxs)("div",{className:"flex-wrap xl:flex-nowrap w-full md:w-auto",children:[(0,t.jsx)("label",{htmlFor:"new_field_data_type",children:"Data Type"}),(0,t.jsxs)("div",{className:"dropdown-wrapper reversed text-sm items-start",children:[(0,t.jsx)("span",{className:"px-2 bg-slate-200 dark:bg-slate-700 rounded-full hover:bg-slate-100 dark:hover:bg-slate-600 hidden xl:flex",children:"Info"}),(0,t.jsx)("div",{className:"dropdown mt-0 xl:-mt-2",children:(0,t.jsx)("span",{children:V})})]})]}),(0,t.jsxs)("div",{className:"w-auto",children:[(0,t.jsx)("select",{name:"new_field_data_type",id:"new_field_data_type",className:"w-full xl-w-auto",onChange:e=>{let l=e.target;S(l.value),l.childNodes.forEach(e=>{e.value===l.value&&e.dataset.desc&&I(e.dataset.desc),e.value===l.value&&e.dataset.literal?(T.defaultValueLiteral=e.dataset.literal,T.nullValue=!1):delete T.defaultValueLiteral}),c.dataType=l.value+(l.value.match(/VARCHAR/)?"(".concat(k||200,")"):"")},defaultValue:A||void 0,children:N.map((e,l)=>e.name.match(/VARCHAR/)?(0,t.jsx)("option",{value:e.name,"data-desc":e.description,children:e.title+"("+(k||200)+")"},l+1):(0,t.jsx)("option",{value:e.name,"data-desc":e.description,"data-literal":e.valueLiteral||void 0,children:e.title},l+1))}),(null==A?void 0:A.match(/VARCHAR/))&&(0,t.jsx)("input",{type:"number",defaultValue:k||200,className:"px-2",style:{maxWidth:"60px"},max:255,min:5,onChange:e=>{D(e.target.value),c.dataType=A+"(".concat(e.target.value,")")}})]})]}),(null==A?void 0:A.match(/text/i))&&(0,t.jsx)(i.Fragment,{children:(0,t.jsx)(s.A,{targetField:c})}),!(null===(l=c.dataType)||void 0===l?void 0:l.match(/text/i))&&!R&&(0,t.jsxs)("div",{className:"flex flex-col items-start gap-0.5",style:{minWidth:"70px"},children:[(0,t.jsx)("label",{htmlFor:"new_field_required",children:"Required?"}),(0,t.jsxs)("select",{name:"new_field_required",id:"new_field_required",className:"px-2",defaultValue:(null==c?void 0:c.notNullValue)?"Yes":"No",onChange:e=>{console.log(c),"Yes"===e.target.value?c.notNullValue=!0:(c.notNullValue=!1,delete c.notNullValue)},children:[(0,t.jsx)("option",{value:"No",children:"No"}),(0,t.jsx)("option",{value:"Yes",children:"Yes"})]})]}),!R&&(0,t.jsxs)("div",{className:"flex flex-col items-start gap-0.5",children:[(0,t.jsx)("label",{htmlFor:"new_field_default_value",children:(null==T?void 0:null===(d=T.dataType)||void 0===d?void 0:d.match(/text$/i))?"Can't Set Default for text values":"Default Value (optional)"}),(0,t.jsx)("input",{type:"text",name:"new_field_default_value",id:"new_field_default_value",className:(null==T?void 0:null===(o=T.dataType)||void 0===o?void 0:o.match(/text$/i))?"pointer-events-none opacity-50":"",placeholder:"Default Value",defaultValue:(null==T?void 0:T.defaultValue)?T.defaultValue:(null==T?void 0:T.nullValue)?"NULL":"",onInput:e=>{var l;let a=e.target;null!==(l=T.dataType)&&void 0!==l&&l.match(/text$/i)||_(e=>(a.value.match(/./)?delete e.notNullValue:(delete e.defaultValue,delete e.nullValue),a.value.match(/^null$/i)?(delete e.defaultValue,e.nullValue=!0):a.value.match(/./)&&(delete e.nullValue,e.defaultValue=a.value),e))}})]}),!R&&(0,t.jsx)(n.A,{database:f,setFieldData:_,setTableFields:x,tableFields:m,targetField:c,user:g,currentTable:v,fieldIndex:u})]}),(0,t.jsxs)("div",{className:"secondary mt-auto flex-wrap w-full xl:w-auto",children:[(0,t.jsx)("button",{type:"submit",className:"secondary mt-auto py-3 w-full md:w-auto grow",children:"Save Updates"}),(0,t.jsx)("div",{className:"button outlined gray mt-auto py-2.5 w-full md:w-auto justify-center grow",onClick:e=>{b.current&&(c=r().cloneDeep(b.current)),x(e=>{let l=r().cloneDeep(e);return u&&b.current&&(l[u]=r().cloneDeep(b.current)),l}),h&&h(!1)},children:"Cancel"})]})]})})}},809:(e,l,a)=>{a.d(l,{A:()=>f});var t=a(4848),i=a(6540),n=a(9268),s=a(6897);function d(e){let{targetField:l}=e;if(!(null==l?void 0:l.richText))return null;let[a,d]=i.useState(l.cssFiles||[]),r=i.useRef(null);return i.useEffect(()=>{l.cssFiles=a},[a]),(0,t.jsxs)("div",{className:"flex flex-col items-start gap-2 w-full my-4",style:{minWidth:"70px"},children:[(0,t.jsx)("span",{className:"label text-xs text-slate-500",children:"Add CSS"}),a.map((e,l)=>(0,t.jsxs)("div",{className:"relative border border-solid border-slate-300 text-xs px-2 py-1 rounded-full",children:[(0,t.jsx)("span",{children:e}),(0,t.jsx)(s.A,{size:20,onClick:()=>{d(l=>l.filter(l=>l!==e))},className:"cursor-pointer hover:opacity-60 "})]},l+1)),(0,t.jsxs)("div",{className:"row w-full",children:[(0,t.jsx)(n.A,{name:"css-file",placeholder:"CSS file URL",elementRef:r}),(0,t.jsx)("button",{className:"secondary outlined",onClick:()=>{var e;let l=null===(e=r.current)||void 0===e?void 0:e.value;(null==l?void 0:l.match(/./))&&d(e=>[...new Set([...e,l])])},children:"Add"})]}),(0,t.jsx)("span",{className:"text-sm text-slate-600",children:"Add CSS files to your Rich Text field"})]})}function r(e){let{targetField:l,setFieldData:a}=e;return(0,t.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",style:{minWidth:"70px"},children:[(0,t.jsx)("label",{htmlFor:"encryption_field",children:"Encrypt?"}),(0,t.jsxs)("select",{name:"encryption_field",id:"encryption_field",className:"px-2",defaultValue:(null==l?void 0:l.encrypted)?"Yes":"No",onChange:e=>{a&&a(l=>(e.target.value.match(/yes/i)?l.encrypted=!0:(l.encrypted=!1,delete l.encrypted),l))},children:[(0,t.jsx)("option",{value:"No",children:"No"}),(0,t.jsx)("option",{value:"Yes",children:"Yes"})]})]})}var o=a(2086);function c(e){let{targetField:l,setFieldData:a}=e;return null}function u(e){let{targetField:l}=e;return(0,t.jsxs)("div",{className:"flex flex-col items-start gap-2 w-full",style:{minWidth:"70px"},children:[(0,t.jsx)("label",{htmlFor:"encryption_field",children:"Pattern"}),(0,t.jsx)("span",{className:"text-sm text-slate-500",children:'This describes a pattern that must be matched for this field to be valid. If you add a pattern and make a db entry that doesn\'t match, the entry will be "NULL" or an empty string or the default value.'}),(0,t.jsx)("input",{type:"text",placeholder:"Regex Pattern. Eg: '\\\\.[a-z]+'",onInput:e=>{var a;let t=e.target;(null==t?void 0:null===(a=t.value)||void 0===a?void 0:a.length)>0?l.pattern=t.value:delete l.pattern},defaultValue:null==l?void 0:l.pattern}),(0,t.jsx)("input",{type:"text",placeholder:"Regex Pattern Flags. Eg: igm",onInput:e=>{var a;let t=e.target;(null==t?void 0:null===(a=t.value)||void 0===a?void 0:a.length)>0?l.patternFlags=t.value:delete l.patternFlags},defaultValue:null==l?void 0:l.patternFlags})]})}var m=a(2543),x=a.n(m),p=a(9878);function h(e){let{targetField:l,setFieldData:a}=e;return(0,t.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",style:{minWidth:"70px"},children:[(0,t.jsx)("label",{htmlFor:"unique_field",children:"Unique Field?"}),(0,t.jsxs)("select",{name:"unique_field",id:"unique_field",className:"px-2",defaultValue:(null==l?void 0:l.unique)?"Yes":"No",onChange:e=>{a&&a(l=>(e.target.value.match(/yes/i)?l.unique=!0:(l.unique=!1,delete l.unique),l))},children:[(0,t.jsx)("option",{value:"No",children:"No"}),(0,t.jsx)("option",{value:"Yes",children:"Yes"})]})]})}function f(e){let{targetField:l,currentTable:a,database:n,tableFields:s,setTableFields:m,setFieldData:f,user:v,fieldIndex:g}=e,[y,j]=i.useState(!1),N=i.useRef(x().cloneDeep(l));return i.useEffect(()=>{},[]),(0,t.jsxs)(i.Fragment,{children:[(0,t.jsx)("span",{className:"button outlined gray mt-5 w-full xl:w-auto",onClick:()=>{j(!0)},children:"More"}),(0,t.jsx)(p.A,{open:y,onClose:()=>{N.current&&(l=x().cloneDeep(N.current)),j(!1)},maxWidth:"600px",children:(0,t.jsxs)("div",{className:"m-auto flex flex-col max-w-xl w-full max-h-[90vh] overflow-y-auto",children:[(0,t.jsx)("div",{className:"w-full justify-between",children:(0,t.jsx)("span",{className:"text-xl",children:"More Options"})}),(0,t.jsx)(d,{targetField:l}),(0,t.jsx)(h,{targetField:l,setFieldData:f}),(0,t.jsx)(r,{targetField:l,setFieldData:f}),a&&(0,t.jsx)(o.A,{targetField:l,setFieldData:f,database:n,tableFields:s,setTableFields:m,currentTable:a,user:v}),(0,t.jsx)(c,{targetField:l,setFieldData:f}),(0,t.jsx)(u,{targetField:l}),(0,t.jsx)("button",{className:"w-full outlined more-padding",onClick:()=>{j(!1)},children:"Done"})]})})]})}},8311:(e,l,a)=>{a.d(l,{A:()=>F});var t=a(4848),i=a(6540),n=a(6517);function s(e){let{tableFields:l,setTableFields:a,setRefresh:t,setPageRefresh:i,refreshFieldsListRef:n}=e,s=l.findIndex(e=>"date_created"===e.fieldName);l.splice(s,0,{newTempField:!0}),a(l),(null==n?void 0:n.current)&&n.current(e=>e+1)}var d=a(1342),r=a(1710),o=a(2675),c=a(2086),u=a(9020);function m(e){var l,a,n,s,d,r,m,x,p,h,f;let{field:v,setTargetField:g,fieldIndex:y,tableFields:j,setTableFields:N,refreshFieldsListRef:b,database:w,currentTable:T,user:_,isDelegated:F,setLoading:C}=e,[A,S]=i.useState(v),[k,D]=i.useState(!1);return(0,t.jsxs)("div",{className:"flex-col w-full table-field-wrapper"+(k?" shadow-2xl shadow-slate-700/40 relative z-50":""),children:[(0,t.jsxs)("div",{className:"card no-hover items-center w-full py-4"+(k?" rounded-t":" rounded")+((null===(l=A.fieldName)||void 0===l?void 0:l.match(o.A))?" text-slate-400 pointer-events-none border-slate-200 border":" light-gray"),children:[(0,t.jsx)("span",{className:"font-bold"+((null===(a=A.fieldName)||void 0===a?void 0:a.match(o.A))?" dark:text-slate-500":" dark:text-white"),children:A.fieldName}),(0,t.jsx)("span",{className:"text-xs py-1 px-2 bg-slate-100 dark:bg-slate-700 dark:text-slate-200 rounded ",children:A.dataType}),(null==A?void 0:A.foreignKey)&&(0,t.jsxs)("div",{className:"text-xs bg-primary text-white px-2 py-0.5 rounded-full",children:[(0,t.jsx)("span",{children:"Foreign Key: "}),(0,t.jsxs)("span",{children:[A.foreignKey.destinationTableName," ("," ",(0,t.jsx)("b",{children:A.foreignKey.destinationTableColumnName})," ",")"]})]}),(null===(n=A.fieldName)||void 0===n?void 0:n.match(o.A))&&(0,t.jsx)("span",{className:"text-slate-300 text-sm font-semibold ml-0 md:ml-auto",children:"Default Field"}),!(!F&&!(null===(s=A.fieldName)||void 0===s?void 0:s.match(o.A))&&(null===(d=A.dataType)||void 0===d?void 0:d.match(/INT/)))||A.foreignKey||(null==w?void 0:null===(m=w.active_clone)||void 0===m?void 0:null===(r=m.toString())||void 0===r?void 0:r.match(/1/))?!(!F&&!(null===(x=A.fieldName)||void 0===x?void 0:x.match(o.A))&&(null===(p=A.dataType)||void 0===p?void 0:p.match(/INT/)))||(null==w?void 0:null===(f=w.active_clone)||void 0===f?void 0:null===(h=f.toString())||void 0===h?void 0:h.match(/1/))?(0,t.jsx)(i.Fragment,{}):(0,t.jsx)("div",{className:"ml-0 md:ml-auto flex-wrap",children:(0,t.jsx)("div",{className:"button py-1 text-xs light-gray",onClick:e=>{if(window.confirm("Delete this foreign Key?")){var l,a;delete v.foreignKey,C(!0),(0,u.A)("/api/updateClonedTableForeignKeys",{method:"post",body:{tableData:T,database:w.db_full_name,dbSlug:w.db_slug,delegated:null!==(a=window.location)&&void 0!==a&&null!==(l=a.search)&&void 0!==l&&!!l.match(/delegated=true/i)}},!0).then(e=>{e.success?window.location.reload():window.alert("Update Failed, Please Try again.")})}},style:{color:"var(--slate-500)"},children:"Delete Foreign Key"})}):(0,t.jsx)("div",{className:"ml-0 md:ml-auto flex-wrap",children:(0,t.jsx)("div",{className:"button outlined py-1 text-xs gray",onClick:e=>{k?D(!1):D(!0)},style:{color:"var(--slate-500)"},children:"Add Foreign Key"})})]}),k&&!F&&(0,t.jsx)("div",{className:"card col w-full -mt-5 pt-0 no-hover",children:(0,t.jsx)(c.A,{targetField:v,setFieldData:S,tableFields:j,setTableFields:N,database:w,currentTable:T,user:_,setActiveEdit:D,activeClonedTable:!0})})]})}var x=a(809),p=a(1765);function h(e){let{fieldIndex:l,setTableFields:n,database:s,user:d,isNewField:r,setLiteralValue:o,tempFieldData:c,setTempFieldData:u,dataTypeValue:m,setDataTypeValue:h,dataType:f,setDataType:v,dataTypeDesc:g,setDataTypeDesc:y}=e,j=a(4327),N=i.useRef();i.useEffect(()=>{var e;N.current&&(N.current.scrollIntoView({block:"center",behavior:"smooth"}),null===(e=N.current.querySelector("input"))||void 0===e||e.focus())},[]);let b=!!f.match(/uuid/i);return(0,t.jsxs)(i.Fragment,{children:[r&&(0,t.jsx)("span",{className:"absolute -top-4 text-sm bg-fuchsia-600 dark:bg-white text-white dark:text-fuchsia-800 px-3 py-1 rounded-full",children:"New Field"}),(0,t.jsxs)("div",{className:"gap-4 flex-wrap xl:flex-nowrap flex-col xl:flex-row items-stretch w-full xl:w-auto",children:[(0,t.jsxs)("div",{className:"flex flex-col items-start gap-0.5",children:[(0,t.jsx)("label",{htmlFor:"new_field_name",children:"Field Name"}),(0,t.jsx)("input",{type:"text",name:"new_field_name",id:"new_field_name",placeholder:"Eg. post_title",onInput:async e=>{let l=e.target,a=l.value.toLowerCase().replace(/ /g,"_");l.value=a},required:!0})]}),(0,t.jsxs)("div",{className:"flex flex-col items-start gap-4 xl:gap-0.5",children:[(0,t.jsxs)("div",{className:"items-start flex-wrap xl:flex-nowrap",children:[(0,t.jsx)("label",{htmlFor:"new_field_data_type",children:"Data Type"}),(0,t.jsxs)("div",{className:"dropdown-wrapper reversed text-sm w-full items-start gap-2",children:[(0,t.jsx)("span",{className:"px-2 bg-slate-200 dark:bg-slate-700 rounded-full hover:bg-slate-100 dark:hover:bg-slate-600 hidden xl:flex",children:"Info"}),(0,t.jsx)("div",{className:"dropdown mt-0 xl:-mt-2",children:(0,t.jsx)("span",{children:g})})]})]}),(0,t.jsxs)("div",{className:"w-full xl:w-auto",children:[(0,t.jsx)("select",{name:"new_field_data_type",id:"new_field_data_type",className:"w-full xl:w-auto",onChange:e=>{let l=e.target;v(l.value),l.childNodes.forEach(e=>{e.value===l.value&&y(e.dataset.desc),e.value===l.value&&e.dataset.literal&&o(e.dataset.literal)})},children:j.map((e,l)=>e.name.match(/VARCHAR/)?(0,t.jsx)("option",{value:e.name,"data-desc":e.description,children:e.title+"("+(m||200)+")"},l+1):(0,t.jsx)("option",{value:e.name,"data-desc":e.description,"data-literal":e.valueLiteral||void 0,children:e.title},l+1))}),f.match(/VARCHAR/)&&(0,t.jsx)("input",{type:"number",defaultValue:m,className:"px-2",style:{maxWidth:"60px"},max:255,min:5,onChange:e=>{h(e.target.value)}})]})]}),(null==f?void 0:f.match(/text/i))&&(0,t.jsx)(i.Fragment,{children:(0,t.jsx)(p.A,{targetField:c})}),!b&&(0,t.jsxs)("div",{className:"flex flex-col items-start gap-0.5",style:{minWidth:"70px"},children:[(0,t.jsx)("label",{htmlFor:"new_field_required",children:"Required?"}),(0,t.jsxs)("select",{name:"new_field_required",id:"new_field_required",className:"px-2",children:[(0,t.jsx)("option",{value:"No",children:"No"}),(0,t.jsx)("option",{value:"Yes",children:"Yes"})]})]}),!b&&(0,t.jsxs)("div",{className:"flex flex-col items-start gap-0.5",children:[(0,t.jsx)("label",{htmlFor:"new_field_default_value",children:"Default Value (optional)"}),(0,t.jsx)("input",{type:"text",name:"new_field_default_value",id:"new_field_default_value",placeholder:"Default Value"})]}),!b&&(0,t.jsx)(x.A,{database:s,setFieldData:u,targetField:c,user:d,fieldIndex:l})]}),(0,t.jsxs)("div",{className:"secondary mt-auto flex-wrap xl:flex-nowrap w-full xl:w-auto",children:[(0,t.jsx)("button",{type:"submit",className:"secondary mt-auto py-3 w-full sm:w-auto justify-center grow",children:"Add Field"}),(0,t.jsx)("div",{className:"button outlined-gray mt-auto py-2.5 w-full sm:w-auto justify-center grow",onClick:e=>{n(e=>e.filter((e,a)=>a!=l))},children:"Cancel"})]})]})}function f(e){let{fieldIndex:l,tableFields:n,setTableFields:s,refreshFieldsListRef:d,database:r,currentTable:o,user:c}=e;a(4327);let[u,m]=i.useState("VARCHAR"),[x,p]=i.useState("200"),[f,v]=i.useState("Varchar is simply letters and numbers within the range 0 - 255"),[g,y]=i.useState({}),j=i.useRef(),[N,b]=i.useState("");i.useEffect(()=>{var e;j.current&&(j.current.scrollIntoView({block:"center",behavior:"smooth"}),null===(e=j.current.querySelector("input"))||void 0===e||e.focus())},[]);let w=!!u.match(/uuid/i);return(0,t.jsx)("div",{className:"w-full mt-1 flex-wrap relative z-0 hover:z-20",ref:j,children:(0,t.jsx)("form",{className:"flex flex-row items-start gap-4 w-full justify-between border border-solid p-4 pt-6 border-slate-400 rounded focus:shadow-lg shadow-slate-400/40 dark:shadow-black/30 relative flex-wrap xl:flex-nowrap shadow-xl",onSubmit:e=>{var a,t,i,n,r,o;e.preventDefault();let c=g.foreignKey;c&&!c.destinationTableName&&delete g.foreignKey;let u=e.target,m=u.new_field_name.value,p=u.new_field_data_type.value,h=null===(a=u.new_field_required)||void 0===a?void 0:a.value,f=null===(t=u.new_field_default_value)||void 0===t?void 0:t.value,v=null===(i=u.encryption_field)||void 0===i?void 0:i.value,y=null===(n=u.rich_text_option)||void 0===n?void 0:n.value,j=u.foreign_key_field,b=u.foreign_key_destination_table_name,T=u.foreign_key_destination_table_column_name;null==j||j.value;let _={...g,fieldName:m,dataType:(null==g?void 0:g.dataType)&&(null==g?void 0:g.foreignKey)?g.dataType:(null==p?void 0:p.match(/VARCHAR/))?"".concat(p,"(").concat(x,")"):p};(null==h?void 0:h.match(/yes/i))?_.notNullValue=!0:(null==f?void 0:f.match(/./))||(_.nullValue=!0),(null==f?void 0:f.match(/./))&&(_.defaultValue=f),(null==v?void 0:v.match(/yes/i))&&(_.encrypted=!0),(null==T?void 0:null===(r=T.value)||void 0===r?void 0:r.match(/./i))&&!(null==T?void 0:null===(o=T.value)||void 0===o?void 0:o.match(/^--$/i))&&(_.dataType=T.dataset.dataType,_.foreignKey={foreignKeyName:T.dataset.foreignKeyName,destinationTableName:b.dataset.destinationTableName,destinationTableColumnName:T.dataset.destinationTableColumnName,cascadeDelete:!0}),(null==y?void 0:y.match(/yes/i))&&(_.richText=!0),w?(_.defaultValueLiteral=N,_.nullValue=!1):delete _.defaultValueLiteral,console.log("newFieldObject",_),function(e){let{fieldIndex:l,setTableFields:a,refreshFieldsListRef:t,payload:i}=e;a(e=>(e.splice(l,1,i),e)),(null==t?void 0:t.current)&&t.current(e=>e+1)}({fieldIndex:l,setTableFields:s,refreshFieldsListRef:d,payload:_})},children:(0,t.jsx)(h,{database:r,fieldIndex:l,isNewField:!0,literalValue:N,refreshFieldsListRef:d,setLiteralValue:b,setTableFields:s,user:c,currentTable:o,tableFields:n,tempFieldData:g,setTempFieldData:y,dataTypeValue:x,setDataTypeValue:p,dataType:u,setDataType:m,dataTypeDesc:f,setDataTypeDesc:v})})})}var v=a(2543),g=a.n(v);function y(e){let{tableFields:l,setTableFields:a,refreshFieldsListRef:t,order:i,field:n,e:s}=e,d=g().cloneDeep(l),r=d.findIndex(e=>e.fieldName===n.fieldName);if(r<0)return;let o=d[r];if("up"===i&&r&&r<=1){console.log("Min Reached =>",r);return}if("down"===i&&r&&r>=d.length-7){console.log("Max Reached =>",r);return}try{var c,u;let e;let l=s.target.closest(".table-field-wrapper"),a=l.previousElementSibling,t=l.nextElementSibling,n=window.DSQL.Flip,d=n.getState(l);"up"===i?(e=n.getState(a),null===(c=l.parentNode)||void 0===c||c.insertBefore(l,a)):(null==t?void 0:t.nextElementSibling)&&(e=n.getState(t),null===(u=l.parentNode)||void 0===u||u.insertBefore(l,t.nextElementSibling)),n.from(d,{duration:.3,ease:"power1.inOut"}),n.from(e,{duration:.3,ease:"power1.inOut"})}catch(e){console.log("Error =>",e.message)}if(!r){console.log("No target Field Index =>",r);return}d.splice(r,1),"up"===i?d.splice(r-1,0,o):d.splice(r+1,0,o),setTimeout(()=>{a([...d]),t.current&&t.current(e=>e+1)},500)}var j=a(8034),N=a(900),b=a(2027);function w(e){var l,a,n,s,d,r,c;let{field:u,setTargetField:m,fieldIndex:x,tableFields:p,setTableFields:h,refreshFieldsListRef:f,database:v,currentTable:g,confirmedDelegetedUser:w,user:T}=e,_=null==w?void 0:w.delegated,F=null==w?void 0:null===(l=w.priviledges)||void 0===l?void 0:l.match(/Edit Tables/i);null==w||null===(a=w.priviledges)||void 0===a||a.match(/Delete Tables/i),null==w||null===(n=w.priviledges)||void 0===n||n.match(/Create Tables/i);let{active_clone:C,active_clone_parent_db:A,remote_connected:S}=v,[k,D]=i.useState(u),[V,I]=i.useState(!1);return(0,t.jsxs)("div",{className:"flex-col w-full table-field-wrapper"+(V?" shadow-2xl shadow-slate-300/40 dark:shadow-black/30 relative z-50":""),children:[(0,t.jsxs)("div",{className:"card no-hover items-center w-full py-4"+(V?" rounded-t":" rounded")+((null===(s=k.fieldName)||void 0===s?void 0:s.match(o.A))?" text-slate-400 pointer-events-none border-slate-200 border":" light-gray"),children:[(0,t.jsx)("span",{className:"font-bold"+((null===(d=k.fieldName)||void 0===d?void 0:d.match(o.A))?" dark:text-slate-500":" dark:text-white"),children:k.fieldName}),(0,t.jsx)("span",{className:"text-xs py-1 px-2 bg-slate-100 dark:bg-slate-700 dark:text-slate-200 rounded ",children:k.dataType}),(null==k?void 0:k.foreignKey)&&(0,t.jsxs)("div",{className:"text-xs bg-primary text-white px-2 py-0.5 rounded-full",children:[(0,t.jsx)("span",{children:"Foreign Key: "}),(0,t.jsxs)("span",{children:[k.foreignKey.destinationTableName," ("," ",(0,t.jsx)("b",{children:k.foreignKey.destinationTableColumnName})," ",")"]})]}),(null===(r=k.fieldName)||void 0===r?void 0:r.match(o.A))&&(0,t.jsx)("span",{className:"text-slate-300 text-sm font-semibold ml-0 md:ml-auto",children:"Default Field"}),!(null===(c=k.fieldName)||void 0===c?void 0:c.match(o.A))&&!A&&!S&&(0,t.jsx)("div",{className:"ml-0 md:ml-auto flex-wrap",children:(!_||_&&F)&&(0,t.jsxs)(i.Fragment,{children:[(0,t.jsxs)(N.A,{children:[(0,t.jsx)("div",{className:"button outlined py-1 text-xs gray",onClick:e=>{V?I(!1):I(!0)},style:{color:"var(--slate-500)"},children:"Edit"}),!A&&!S&&(0,t.jsx)("div",{className:"button outlined py-1 text-xs gray",onClick:e=>{window.confirm('Delete "'.concat(u.fieldName,'"?'))&&h(e=>e.filter((e,l)=>l!=x))},style:{color:"var(--slate-500)"},children:"Delete"})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:"button outlined gray p-2 w-8 h-8 rounded-full rotate-180",onClick:e=>{y({tableFields:p,setTableFields:h,refreshFieldsListRef:f,order:"up",field:u,e})},children:(0,t.jsx)(b.A,{size:20})}),(0,t.jsx)("div",{className:"button outlined gray p-2 w-8 h-8 rounded-full",onClick:e=>{y({tableFields:p,setTableFields:h,refreshFieldsListRef:f,order:"down",field:u,e})},children:(0,t.jsx)(b.A,{size:20})})]})]})})]}),V&&(0,t.jsx)("div",{className:"w-full",children:(0,t.jsx)(j.A,{fieldIndex:x,tableFields:p,setTableFields:h,refreshFieldsListRef:f,targetField:u,setActiveEdit:I,database:v,currentTable:g,user:T})})]})}var T=a(8845);let _=1;function F(e){var l,o,c,u;let{user:x,tableFields:p,setTableFields:h,setTargetField:v,refreshFieldsListRef:g,updateTable:y,updateTableAfterFieldsUpdateFunction:j,collapsed:N,database:b,table:F,confirmedDelegetedUser:C,query:A}=e;(null==F?void 0:F.childTable)&&(null===(l=F.childTableDbFullName)||void 0===l||l.replace(new RegExp(/datasquirel_user_\d+_/),""));let S=null==C?void 0:C.delegated,k=null==C?void 0:null===(o=C.priviledges)||void 0===o?void 0:o.match(/Edit Tables/i);null==C||null===(c=C.priviledges)||void 0===c||c.match(/Delete Tables/i),null==C||null===(u=C.priviledges)||void 0===u||u.match(/Create Tables/i);let{active_clone:D,active_clone_parent_db:V,remote_connected:I}=b,[E,K]=i.useState(0);g.current=K;let[R,L]=i.useState(!1),[U,q]=i.useState(N||!1);return(i.useEffect(()=>{let{Flip:e}=a(8383);n.Ay.registerPlugin(e);let l=window.DSQL;l&&(l.Flip=e)},[]),S&&!k)?(0,t.jsx)(t.Fragment,{}):(0,t.jsxs)("section",{className:"paper green",children:[R&&(0,t.jsx)(r.A,{}),(null==F?void 0:F.childTable)?(0,t.jsxs)(i.Fragment,{children:[(0,t.jsxs)("div",{className:"w-full justify-between flex-wrap",children:[(0,t.jsx)("h2",{className:"text-xl m-0 text-left title",children:"Fields"}),(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:"button outlined light-gray",onClick:e=>{let l=(0,T.A)({paradigm:"JavaScript",table:F,query:A,user:x});l&&navigator.clipboard.writeText(l).then(()=>{window.alert("JavaScript Type Definition Copied")})},children:(0,t.jsx)("span",{children:"Copy TypeDef (JS)"})}),(0,t.jsx)("div",{className:"button outlined light-gray",onClick:e=>{let l=(0,T.A)({paradigm:"TypeScript",table:F,query:A,user:x});l&&navigator.clipboard.writeText(l).then(()=>{window.alert("TypeScript Type Definition Copied")})},children:(0,t.jsx)("span",{children:"Copy TypeDef (TS)"})})]})]}),(0,t.jsx)("div",{className:"flex-col w-full",style:U?{maxHeight:"200px"}:{},children:p&&p[0]&&p.map((e,l)=>(_++,(0,t.jsx)(m,{field:e,fieldIndex:l,setTargetField:v,setTableFields:h,refreshFieldsListRef:g,tableFields:p,database:b,setLoading:L,currentTable:F,user:x,isDelegated:S},_)))}),N&&(0,t.jsx)(d.A,{collapse:U||!1,setCollapse:q})]}):(0,t.jsxs)(i.Fragment,{children:[(0,t.jsxs)("div",{className:"w-full justify-between flex-wrap",children:[(0,t.jsx)("h2",{className:"text-xl m-0 text-left title",children:"Fields"}),(0,t.jsxs)("div",{children:[(!S||S&&k)&&!V&&!I&&(0,t.jsxs)("div",{className:"button secondary outlined",onClick:e=>{U&&q(!1),s({setTableFields:h,tableFields:p,setRefresh:K,refreshFieldsListRef:g})},children:[(0,t.jsx)("span",{className:"symbol",children:"+"}),(0,t.jsx)("span",{children:"Add New Field"})]}),(0,t.jsx)("div",{className:"button outlined light-gray",onClick:e=>{if(!F)return;let l=(0,T.A)({paradigm:"JavaScript",table:F,query:A,user:x});l&&navigator.clipboard.writeText(l).then(()=>{window.alert("JavaScript Type Definition Copied")})},children:(0,t.jsx)("span",{children:"Copy TypeDef (JS)"})}),(0,t.jsx)("div",{className:"button outlined light-gray",onClick:e=>{if(!F)return;let l=(0,T.A)({paradigm:"TypeScript",table:F,query:A,user:x});l&&navigator.clipboard.writeText(l).then(()=>{window.alert("TypeScript Type Definition Copied")})},children:(0,t.jsx)("span",{children:"Copy TypeDef (TS)"})})]})]}),(0,t.jsxs)("div",{className:"flex-col w-full",style:U?{maxHeight:"200px"}:{},children:[p&&p[0]&&p.map((e,l)=>(_++,e.newTempField)?(0,t.jsx)(f,{fieldIndex:l,tableFields:p,setTableFields:h,refreshFieldsListRef:g,database:b,currentTable:F,user:x},_):(0,t.jsx)(w,{field:e,fieldIndex:l,setTargetField:v,setTableFields:h,refreshFieldsListRef:g,tableFields:p,database:b,currentTable:F,confirmedDelegetedUser:C,user:x},_)),(!S||S&&k)&&!V&&!I&&(0,t.jsxs)(i.Fragment,{children:[(0,t.jsxs)("div",{className:"button outlined gray w-full more-padding",style:{borderStyle:"dashed"},onClick:e=>{U&&q(!1),s({setTableFields:h,tableFields:p,setRefresh:K,refreshFieldsListRef:g})},children:[(0,t.jsx)("span",{className:"symbol",children:"+"}),(0,t.jsx)("span",{children:"Add New Field"})]}),y&&(0,t.jsx)("button",{className:"secondary w-full py-3",onClick:e=>{window.confirm("Update Table Fields?")&&(L(!0),j&&j(L))},children:"Update Table Fields"})]})]}),N&&(0,t.jsx)(d.A,{collapse:U,setCollapse:q})]})]})}},2086:(e,l,a)=>{a.d(l,{A:()=>r});var t=a(4848),i=a(6540),n=a(9020),s=a(1710),d=a(2408);function r(e){var l,a,r,o;let{targetField:c,setFieldData:u,tableFields:m,setTableFields:x,database:p,currentTable:h,user:f,setActiveEdit:v,activeClonedTable:g}=e,[y,j]=i.useState(null!=c&&!!c.foreignKey),[N,b]=i.useState(null),[w,T]=i.useState(null),[_,F]=i.useState(null),[C,A]=i.useState(null),[S,k]=i.useState(!1),[D,V]=i.useState("boolean"!=typeof(null===(l=c.foreignKey)||void 0===l?void 0:l.cascadeDelete)||c.foreignKey.cascadeDelete),[I,E]=i.useState("boolean"==typeof(null===(a=c.foreignKey)||void 0===a?void 0:a.cascadeUpdate)&&c.foreignKey.cascadeUpdate);return i.useEffect(()=>{c.foreignKey={...c.foreignKey,cascadeDelete:D,cascadeUpdate:I}},[D,I]),i.useEffect(()=>{if(!y&&!(null==c?void 0:c.foreignKey)){b(null),T(null),F(null),A(null);return}(0,n.A)("/api/getUserSchemaData").then(e=>{if(e.success)try{let a=e.schemaData.filter(e=>e.dbFullName===p.db_full_name),t=h?a[0].tables.filter(e=>e.tableName!==h.tableName):a[0].tables;if(b(t),null==c?void 0:c.foreignKey){var l;let e=t.filter(e=>{var l;return e.tableName===(null==c?void 0:null===(l=c.foreignKey)||void 0===l?void 0:l.destinationTableName)});T(e[0]),(null===(l=e[0])||void 0===l?void 0:l.fields)&&F(e[0].fields)}}catch(e){(0,n.A)("/api/admin/clientError",{method:"post",body:{component:"ForeignKey/fetch-error-getUserSchemaData/lines-65-77",message:e.message,user:f}})}})},[y]),(0,t.jsxs)("div",{className:"flex flex-col items-start gap-2 w-full mt-2 relative",style:{minWidth:"70px"},children:[S&&(0,t.jsx)(s.A,{}),(0,t.jsxs)("label",{htmlFor:"foreign_key_field",className:"flex flex-wrap items-center gap-2 mt-2",children:[(0,t.jsx)("span",{children:"Foreign Key?"}),(0,t.jsxs)("div",{className:"dropdown-wrapper reversed text-sm items-start",children:[(0,t.jsx)("span",{className:"px-2 bg-slate-200 rounded-full hover:bg-slate-100 hidden xl:flex text-slate-600",children:"Info"}),(0,t.jsx)("div",{className:"dropdown mt-0 xl:-mt-2",children:(0,t.jsx)("span",{children:"Foriegn key links the current table to another table"})})]})]}),(0,t.jsxs)("select",{name:"foreign_key_field",id:"foreign_key_field",className:"px-2",defaultValue:(null==c?void 0:c.foreignKey)?"Yes":"No",onChange:e=>{e.target.value.match(/yes/i)?(j(!0),u&&u(e=>(e.foreignKey={foreignKeyName:void 0,destinationTableName:void 0,destinationTableColumnName:void 0,cascadeDelete:!0},e))):(j(!1),u&&u(e=>(delete e.foreignKey,e)))},children:[(0,t.jsx)("option",{value:"No",children:"No"}),(0,t.jsx)("option",{value:"Yes",children:"Yes"})]}),y&&N&&(0,t.jsx)(i.Fragment,{children:(0,t.jsxs)("select",{name:"foreign_key_destination_table_name",id:"foreign_key_destination_table_name",className:"px-2",defaultValue:(null==c?void 0:null===(r=c.foreignKey)||void 0===r?void 0:r.destinationTableName)?c.foreignKey.destinationTableName:void 0,onChange:e=>{var l;let a=e.target;if(null===(l=e.target.value)||void 0===l?void 0:l.match(/--/)){u?u(e=>{let l=e.foreignKey;return l&&(l.destinationTableName=void 0),e}):a.dataset.destinationTableName=void 0;return}let t=N.filter(l=>l.tableName===e.target.value)[0];T(t),(null==t?void 0:t.fields)&&F(t.fields),u?u(l=>{let a=l.foreignKey;return a&&(a.destinationTableName=e.target.value),l}):e.target.dataset.destinationTableName=e.target.value},children:[(0,t.jsx)("option",{value:"--",children:"--Select Table--"}),N.map((e,l)=>(0,t.jsx)("option",{value:e.tableName,children:e.tableFullName},l+1))]})}),w&&_&&(0,t.jsxs)(i.Fragment,{children:[(0,t.jsxs)("select",{name:"foreign_key_destination_table_column_name",id:"foreign_key_destination_table_column_name",className:"px-2",defaultValue:(null==c?void 0:null===(o=c.foreignKey)||void 0===o?void 0:o.destinationTableColumnName)?c.foreignKey.destinationTableColumnName:void 0,onChange:e=>{try{var l;let a=_.filter(l=>l.fieldName===e.target.value)[0];if(A(a),null===(l=e.target.value)||void 0===l?void 0:l.match(/--/)){u&&u(e=>{let l=e.foreignKey;return l&&(l.destinationTableColumnName=void 0),e});return}let t="dsql_".concat(p.user_id,"_").concat(p.db_slug,"_").concat(Date.now());u?u(e=>{e.dataType=a.dataType;let l=e.foreignKey;return l&&(l.destinationTableColumnName=a.fieldName,l.destinationTableColumnType=a.dataType,l.foreignKeyName=t),e}):(e.target.dataset.dataType=a.dataType,e.target.dataset.destinationTableColumnName=a.fieldName,e.target.dataset.foreignKeyName=t)}catch(e){(0,n.A)("/api/admin/clientError",{method:"post",body:{component:"ForeignKey/lines-232-264",message:e.message,user:f}})}},children:[(0,t.jsx)("option",{value:"--",children:"--Select Column--"}),_.map((e,l)=>(0,t.jsx)("option",{value:e.fieldName,children:e.fieldName},l+1))]}),g&&C&&(0,t.jsx)("button",{className:"secondary w-full",onClick:e=>{var l,a;k(!0),(0,n.A)("/api/updateClonedTableForeignKeys",{method:"post",body:{tableData:h,database:p.db_full_name,dbSlug:p.db_slug,delegated:null!==(a=window.location)&&void 0!==a&&null!==(l=a.search)&&void 0!==l&&!!l.match(/delegated=true/i)}},!0).then(e=>{e.success?window.alert("Foreign Key Added Successfully!"):window.alert("Update Failed, Please Try again."),setTimeout(()=>{v&&v(!1)},1e3)})},children:"Add Foreign Key"}),(0,t.jsx)(d.A,{checkBoxValues:[{title:"Cascade Delete",default:D,name:"cascade-delete",onChangeHandler:e=>{V(e.target.checked)}},{title:"Cascade Update",name:"cascade-update",default:I,onChangeHandler:e=>{E(e.target.checked)}}],smallText:!0})]}),g&&(0,t.jsx)("button",{className:"light-gray w-full",onClick:e=>{delete c.foreignKey,v&&v(!1)},children:"Cancel"})]})}},1765:(e,l,a)=>{a.d(l,{A:()=>i});var t=a(4848);function i(e){let{targetField:l}=e;return(0,t.jsxs)("div",{className:"flex flex-col items-start gap-0.5",style:{minWidth:"70px"},children:[(0,t.jsx)("label",{htmlFor:"rich_text_option",children:"Text Type"}),(0,t.jsxs)("select",{name:"rich_text_option",id:"rich_text_option",className:"px-2",onChange:e=>{switch(delete l.json,delete l.richText,delete l.yaml,delete l.html,delete l.javascript,delete l.shell,e.target.value){case"plain":break;case"rte":l.richText=!0;break;case"json":l.json=!0;break;case"yaml":l.yaml=!0;break;case"html":l.html=!0;break;case"css":l.css=!0;break;case"javascript":l.javascript=!0;break;case"shell":l.shell=!0}},defaultValue:l.richText?"rte":l.json?"json":l.yaml?"yaml":l.html?"html":l.javascript?"javascript":l.shell?"shell":l.css?"css":"plain",children:[(0,t.jsx)("option",{value:"plain",children:"Plain Text"}),(0,t.jsx)("option",{value:"rte",children:"Rich Text"}),(0,t.jsx)("option",{value:"json",children:"JSON"}),(0,t.jsx)("option",{value:"yaml",children:"YAML"}),(0,t.jsx)("option",{value:"html",children:"HTML"}),(0,t.jsx)("option",{value:"css",children:"CSS"}),(0,t.jsx)("option",{value:"javascript",children:"Javascript"}),(0,t.jsx)("option",{value:"shell",children:"Shell"})]})]})}a(6540)},8845:(e,l,a)=>{a.d(l,{A:()=>i});var t=a(2675);function i(e){let{paradigm:l,table:a,query:i,user:n}=e,s="";try{let e="DSQL_".concat(i.single,"_").concat(i.single_table).toUpperCase(),n=a.fields;function d(e){return(null==e?void 0:e.match(/int/i))?"number":(null==e||e.match(/text|varchar|timestamp/i),"string")}let r=[],o=[];r.push("type ".concat(e," = {")),o.push("/**\n * @typedef {object} ".concat(e)),n.forEach(e=>{var l;let a=e.nullValue?"?":(null===(l=e.fieldName)||void 0===l?void 0:l.match(t.A))?"?":"";r.push(" ".concat(e.fieldName).concat(a,": ").concat(d(e.dataType||""),";")),o.push(" * @property {".concat(d(e.dataType||"")).concat(a,"} ").concat(e.fieldName))}),r.push("}"),o.push(" */"),(null==l?void 0:l.match(/javascript/i))&&(s=o.join("\n")),(null==l?void 0:l.match(/typescript/i))&&(s=r.join("\n"))}catch(e){console.log(e.message),s=null}return s}},2408:(e,l,a)=>{a.d(l,{A:()=>i});var t=a(4848);function i(e){let{name:l,checkBoxValues:a,setAlert:i,labelColor:n,flexRow:s,baseText:d,smallText:r,className:o}=e;return(0,t.jsx)("div",{className:"flex items-start gap-x-4"+(s?" flex-row flex-wrap gap-y-2 ":" flex-col gap-y-4 ")+(o||""),children:a.map((e,a)=>{let{payload:s,title:o,onChangeHandler:c,fixed:u,jsx:m}=e,x=e.name?"".concat(l,"-").concat(e.name):s?l+"-"+s:l;return(0,t.jsxs)("div",{className:"flex items-center"+(e.default&&u?" pointer-events-none":"")+(r?" gap-1 ":" gap-2 ")+((null==e?void 0:e.className)?e.className:""),children:[(0,t.jsx)("input",{className:"m-0"+(r?" w-4 h-4":" w-5 h-5"),type:"checkbox",defaultChecked:!!e.default,name:x,id:x,onChange:l=>{i&&i(null),c&&c(l,e)},value:s,style:{minWidth:"20px"},...e.props}),m||(0,t.jsx)("label",{htmlFor:x,className:"m-0 "+(n||"text-slate-800 dark:text-white/80")+(d||r?" text-base":" text-lg"),children:o})]},a+1)})})}a(6540)},1342:(e,l,a)=>{a.d(l,{A:()=>i});var t=a(4848);function i(e){let{collapse:l,setCollapse:a}=e;return(0,t.jsxs)("div",{className:"collapse-block"+(l?" -mt-16 -mb-6 pt-10":" mt-0 mb-0 p-0"),onClick:e=>{l?a(!1):a(!0)},children:[(0,t.jsx)("span",{children:l?"Expand":"Collapse"}),(0,t.jsx)("img",{src:"/images/down-arrow-dark.svg",alt:"Down Arrow",width:16,className:"dark:hidden opacity-30 "+(l?"":"rotate-180")}),(0,t.jsx)("img",{src:"/images/down-arrow-white.svg",alt:"Down Arrow",width:16,className:"opacity-30 hidden dark:flex "+(l?"":"rotate-180")})]})}a(6540)},9878:(e,l,a)=>{a.d(l,{A:()=>d});var t=a(4848),i=a(6540),n=a(5338),s=a(6897);function d(e){let{children:l,open:a,setOpen:s,onClose:d,maxWidth:o}=e;return i.useEffect(()=>{if(a){let e=document.createElement("div");e.className="modal-wrapper",(0,n.createRoot)(e).render((0,t.jsx)(r,{onClose:d,maxWidth:o,children:l})),document.body.appendChild(e)}else document.querySelectorAll(".modal-wrapper").forEach(e=>{var l;null===(l=e.parentElement)||void 0===l||l.removeChild(e)})},[a]),(0,t.jsx)(t.Fragment,{})}function r(e){let{children:l,onClose:a,maxWidth:n,open:d}=e,r=i.useRef();return(0,t.jsxs)(i.Fragment,{children:[(0,t.jsx)("div",{className:"modal-cancel",onClick:e=>{o({modalEl:e.target.closest(".modal-wrapper"),closeFn:a})}}),(0,t.jsxs)("div",{className:"modal-content",style:{maxWidth:n||void 0},ref:r,children:[l," ",(0,t.jsx)("button",{className:"ghost modal-cancel-button",onClick:e=>{o({modalEl:e.target.closest(".modal-wrapper"),closeFn:a})},children:(0,t.jsx)(s.A,{})})]})]})}function o(e){var l;let{modalEl:a,closeFn:t}=e;t&&t(),null===(l=a.parentElement)||void 0===l||l.removeChild(a)}},2675:(e,l,a)=>{a.d(l,{A:()=>t});let t=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/},4327:e=>{e.exports=JSON.parse('[{"title":"VARCHAR","name":"VARCHAR","value":"0-255","argument":true,"description":"Varchar is simply letters and numbers within the range 0 - 255","maxValue":255},{"title":"TINYINT","name":"TINYINT","value":"0-100","description":"TINYINT means Integers: 0 to 100","maxValue":127},{"title":"SMALLINT","name":"SMALLINT","value":"0-255","description":"SMALLINT means Integers: 0 to 240933","maxValue":32767},{"title":"MEDIUMINT","name":"MEDIUMINT","value":"0-255","description":"MEDIUMINT means Integers: 0 to 1245568545560","maxValue":8388607},{"title":"INT","name":"INT","value":"0-255","description":"INT means Integers: 0 to 12560","maxValue":2147483647},{"title":"BIGINT","name":"BIGINT","value":"0-255","description":"BIGINT means Integers: 0 to 1245569056767568545560","maxValue":2e+63},{"title":"TINYTEXT","name":"TINYTEXT","value":"0-255","description":"Text with 255 max characters","maxValue":127},{"title":"TEXT","name":"TEXT","value":"0-100","description":"MEDIUMTEXT is just text with max length 16,777,215","maxValue":127},{"title":"MEDIUMTEXT","name":"MEDIUMTEXT","value":"0-255","description":"MEDIUMTEXT is just text with max length 16,777,215","maxValue":127},{"title":"LONGTEXT","name":"LONGTEXT","value":"0-255","description":"LONGTEXT is just text with max length 4,294,967,295","maxValue":127},{"title":"UUID","name":"UUID","valueLiteral":"UUID()","description":"A Unique ID"}]')}}]); \ No newline at end of file diff --git a/dsql-app/.local_dist/static/chunks/pages/admin/[user_id]/databases/[single]/users/add-user-6d9f5bb6c681b082.js b/dsql-app/.local_dist/static/chunks/pages/admin/[user_id]/databases/[single]/users/add-user-4954d7d1ed514dc9.js similarity index 71% rename from dsql-app/.local_dist/static/chunks/pages/admin/[user_id]/databases/[single]/users/add-user-6d9f5bb6c681b082.js rename to dsql-app/.local_dist/static/chunks/pages/admin/[user_id]/databases/[single]/users/add-user-4954d7d1ed514dc9.js index 5db12f3..a3a8801 100644 --- a/dsql-app/.local_dist/static/chunks/pages/admin/[user_id]/databases/[single]/users/add-user-6d9f5bb6c681b082.js +++ b/dsql-app/.local_dist/static/chunks/pages/admin/[user_id]/databases/[single]/users/add-user-4954d7d1ed514dc9.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9582],{596:(e,a,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/[user_id]/databases/[single]/users/add-user",function(){return t(5724)}])},6829:(e,a,t)=>{"use strict";t.d(a,{A:()=>i});var s=t(4848),l=t(6540),r=t(2659);function i(e){let{user:a,userImage:t,setUserImage:i,database:n,className:d}=e,o=l.useRef();return(0,s.jsxs)("div",{className:"card no-hover col"+(d?" "+d:""),children:[(0,s.jsx)("div",{className:"bg-white rounded-full overflow-hidden w-24 h-24",children:(0,s.jsx)("img",{src:t?"string"==typeof t?t:t.imageBase64Full:"/images/user-preset.png",alt:"Database Image",width:100,className:"w-full h-full object-cover",ref:o,"data-imagepreview":"image"})}),(0,s.jsxs)("div",{className:"w-full flex-col image-selector-wrapper",children:[(0,s.jsx)("div",{className:"button outlined secondary w-full whitespace-normal",onClick:e=>{e.target.closest(".image-selector-wrapper").querySelector("input").click()},children:"Upload Image"}),(0,s.jsx)("input",{type:"file",accept:".png,.jpg,.jpeg,.webp",placeholder:"Choose Database Image",className:"hidden",onChange:async e=>{var a;let t=null===(a=e.target.files)||void 0===a?void 0:a[0];if(t){let e=await (0,r.A)({imageInputFile:t,maxWidth:400});null==i||i(e)}else window.alert("No File Provided!")}})]})]})}},6234:(e,a,t)=>{"use strict";t.d(a,{A:()=>l});var s=t(4848);function l(e){let{message:a}=e;return(0,s.jsxs)("div",{className:"p-2 bg-orange-50 w-full justify-center rounded text-sm text-orange-700 border border-orange-400 border-solid",children:[(0,s.jsx)("img",{src:"/images/warning.png",alt:"Warning Image Icon",width:22,className:"-my-2"}),(0,s.jsx)("span",{children:a})]})}t(6540)},2659:(e,a,t)=>{"use strict";t.d(a,{A:()=>l});var s=t(1335);let l=t.n(s)().media.imageInputFileToBase64},7220:(e,a,t)=>{"use strict";t.d(a,{A:()=>s});let s=(0,t(5737).A)("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},7290:(e,a,t)=>{"use strict";t.d(a,{A:()=>s});let s=(0,t(5737).A)("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]])},4266:(e,a,t)=>{"use strict";t.d(a,{A:()=>s});let s=(0,t(5737).A)("FileInput",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4",key:"1pf5j1"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M2 15h10",key:"jfw4w8"}],["path",{d:"m9 18 3-3-3-3",key:"112psh"}]])},3419:(e,a,t)=>{"use strict";t.d(a,{A:()=>s});let s=(0,t(5737).A)("FolderOutput",[["path",{d:"M2 7.5V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-1.5",key:"1yk7aj"}],["path",{d:"M2 13h10",key:"pgb2dq"}],["path",{d:"m5 10-3 3 3 3",key:"1r8ie0"}]])},6051:(e,a,t)=>{"use strict";t.d(a,{A:()=>s});let s=(0,t(5737).A)("SquareTerminal",[["path",{d:"m7 11 2-2-2-2",key:"1lz0vl"}],["path",{d:"M11 13h4",key:"1p7l4v"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}]])},5724:(e,a,t)=>{"use strict";let s;t.r(a),t.d(a,{AddNewDbUserContext:()=>f,__N_SSP:()=>w,default:()=>v});var l=t(4848),r=t(6540),i=t(8181),n=t(3647),d=t(5844),o=t(9020),m=t(1710),u=t(6234),c=t(9268),p=t(6829);function h(e){let{targetDb:a,database:t,user:i,userImage:n,setUserImage:d}=e,[h,x]=r.useState(null),[g,w]=r.useState(!1);return(0,l.jsxs)(r.Fragment,{children:[g&&(0,l.jsx)(m.A,{}),h&&(0,l.jsx)(u.A,{message:h}),(0,l.jsx)("h3",{className:"m-0 text-lg font-semibold mb-1 text-slate-600 mt-4",children:"User information"}),(0,l.jsx)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:(0,l.jsx)(c.A,{title:"First Name",inputType:"text",name:"first_name",autoComplete:"given-name",onInputHandler:e=>{let a=e.target;a.value.match(/./)?(a.classList.remove("warning"),x(null)):a.classList.add("warning")},required:!0})}),(0,l.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:[(0,l.jsx)("label",{htmlFor:"last_name",children:"Last Name"}),(0,l.jsx)("input",{type:"text",name:"last_name",id:"last_name",placeholder:"Last Name",autoComplete:"family-name",onInput:e=>{let a=e.target;a.value.match(/./)?(a.classList.remove("warning"),x(null)):a.classList.add("warning")},required:!0})]}),(0,l.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:[(0,l.jsx)("label",{htmlFor:"username",children:"Username"}),(0,l.jsx)("input",{type:"text",name:"username",id:"username",placeholder:"Username",autoComplete:"username",onInput:e=>{let t=e.target;t.value.match(/./)?(t.classList.remove("warning"),x(null)):t.classList.add("warning"),window.clearTimeout(s),s=setTimeout(()=>{(0,o.A)("/api/checkDuplicateData?type=username&value=".concat(t.value,"&tableName=users&dbFullName=").concat(a)).then(e=>{(null==e?void 0:e.result)?(x("Username Already Exists"),t.classList.add("warning")):(x(null),t.classList.remove("warning"))})},300)}})]}),(0,l.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:[(0,l.jsx)("label",{htmlFor:"email_address",children:"Email Address"}),(0,l.jsx)("input",{type:"email",name:"email_address",id:"email_address",placeholder:"Email Address",autoComplete:"email",onInput:e=>{window.clearTimeout(s);let t=e.target;s=setTimeout(()=>{(0,o.A)("/api/checkDuplicateData?type=email&value=".concat(t.value,"&tableName=users&dbFullName=").concat(a)).then(e=>{(null==e?void 0:e.result)?(x("Email Already Exists"),t.classList.add("warning")):(x(null),t.classList.remove("warning"))})},300)},required:!0})]}),(0,l.jsx)(c.A,{title:"Phone Number",inputType:"text",name:"phone",autoComplete:"tel"}),(0,l.jsx)(c.A,{title:"Address",name:"address",autoComplete:"address"}),(0,l.jsxs)("div",{className:"flex-wrap xl:flex-nowrap",children:[(0,l.jsx)(c.A,{title:"City",name:"city",autoComplete:"city"}),(0,l.jsx)(c.A,{title:"State",name:"state",autoComplete:"state"}),(0,l.jsx)(c.A,{title:"Country",name:"country",autoComplete:"country"}),(0,l.jsx)(c.A,{title:"Zip Code",name:"zip_code",autoComplete:"zip_code"})]}),(0,l.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:[(0,l.jsx)("label",{htmlFor:"password",children:"Password"}),(0,l.jsx)("input",{type:"password",name:"password",id:"password",placeholder:"Password",required:!0})]}),(0,l.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:[(0,l.jsx)("label",{htmlFor:"confirm_password",children:"Confirm Password"}),(0,l.jsx)("input",{type:"password",name:"confirm_password",id:"confirm_password",placeholder:"Confirm Password",onInput:e=>{var a;let t=e.target;(null===(a=t.closest("form"))||void 0===a?void 0:a.password.value)===t.value?t.classList.remove("warning"):t.classList.add("warning")},required:!0})]}),(0,l.jsxs)("div",{className:"paper",children:[(0,l.jsx)("h3",{className:"m-0 text-lg font-semibold mb-1 text-slate-600",children:"User Image"}),(0,l.jsx)(p.A,{userImage:n,setUserImage:d})]})]})}function x(){let{user:e,database:a,table:s,query:i,confirmedDelegetedUser:u}=r.useContext(f);t(9436);let[c,p]=r.useState("invitation"),[x,g]=r.useState(!1),[w,v]=r.useState(!1),[j,y]=r.useState(["Edit"]),[b,N]=r.useState(a.db_slug),[A,_]=r.useState(null),[C,k]=r.useState(null),[I,F]=r.useState([]),[U,D]=r.useState([]);return(0,l.jsxs)(r.Fragment,{children:[(0,l.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,l.jsx)("div",{className:"w-full justify-between flex-wrap",children:(0,l.jsxs)("div",{children:[(0,l.jsx)(d.A,{}),(0,l.jsxs)("h1",{className:"text-3xl m-0",children:["Add A New User to ",a.db_name]})]})}),(0,l.jsx)(n.A,{user:e})]}),(0,l.jsxs)("section",{className:"paper",children:[x&&(0,l.jsx)(m.A,{}),(0,l.jsxs)("form",{onSubmit:t=>{t.preventDefault(),g(!0);let s=Array.from(t.target),l={};s.forEach(e=>{var a,t;(null===(a=e.nodeName)||void 0===a||!a.match(/button/i))&&e.name&&(null===(t=e.value)||void 0===t?void 0:t.match(/./))&&(l[e.name]=e.value)});let r={payload:l,dbFullName:a.db_full_name,dbId:a.id};(0,o.A)("/api/addDbUser",{method:"post",body:r},!0).then(t=>{t.success?C?(C.imageName="".concat(b,"-user-").concat(t.newUserId),C.mimeType="jpeg",delete C.imageBase64Full,(0,o.A)("/api/addUserMedia",{method:"post",body:{media:[C],folder:b.replace(/_/g,"-"),type:"image"}},!0).then(s=>{(0,o.A)("/api/updateDbUser",{method:"post",body:{dbFullName:a.db_full_name,payload:{id:t.newUserId,image:s.mediaData[0].media_url,image_thumbnail:s.mediaData[0].media_thumbnail_url}}},!0).then(t=>{t.success&&(window.location.pathname="/admin/".concat(null==e?void 0:e.id,"/databases/").concat(a.db_slug,"/users")),setTimeout(()=>{g(!1)},500)})})):window.location.pathname="/admin/".concat(null==e?void 0:e.id,"/databases/").concat(a.db_slug,"/users"):setTimeout(()=>{g(!1)},500)})},className:"w-full flex flex-col items-stretch gap-4",children:[(0,l.jsx)(h,{user:e,targetDb:a.db_full_name,database:a,userImage:C,setUserImage:k}),(0,l.jsx)("button",{children:"Add User"})]})]})]})}var g=t(5211),w=!0;let f=r.createContext({});function v(e){let{user:a,database:t,table:s,query:r,confirmedDelegetedUser:n}=e,d=(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("title",{children:"Users | Datasquirel"}),(0,l.jsx)("meta",{name:"description",content:"Welcome to your data app"})]});return(0,l.jsx)(i.A,{head:d,user:a,extraHeaderContent:(0,l.jsx)(g.A,{database:t,query:r,confirmedDelegetedUser:n,user:a}),children:(0,l.jsx)(f.Provider,{value:{user:a,database:t,table:s,query:r,confirmedDelegetedUser:n},children:(0,l.jsx)(x,{})})})}},9436:e=>{"use strict";e.exports=JSON.parse('["Edit Tables","Update Entries","Create Table","Delete Entries","Delete Tables"]')}},e=>{var a=a=>e(e.s=a);e.O(0,[6428,8261,7391,8076,9268,636,6593,8792],()=>a(596)),_N_E=e.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9582],{596:(e,a,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/[user_id]/databases/[single]/users/add-user",function(){return t(5724)}])},6829:(e,a,t)=>{"use strict";t.d(a,{A:()=>i});var s=t(4848),l=t(6540),r=t(2659);function i(e){let{user:a,userImage:t,setUserImage:i,database:n,className:d}=e,o=l.useRef();return(0,s.jsxs)("div",{className:"card no-hover col"+(d?" "+d:""),children:[(0,s.jsx)("div",{className:"bg-white rounded-full overflow-hidden w-24 h-24",children:(0,s.jsx)("img",{src:t?"string"==typeof t?t:t.imageBase64Full:"/images/user-preset.png",alt:"Database Image",width:100,className:"w-full h-full object-cover",ref:o,"data-imagepreview":"image"})}),(0,s.jsxs)("div",{className:"w-full flex-col image-selector-wrapper",children:[(0,s.jsx)("div",{className:"button outlined secondary w-full whitespace-normal",onClick:e=>{e.target.closest(".image-selector-wrapper").querySelector("input").click()},children:"Upload Image"}),(0,s.jsx)("input",{type:"file",accept:".png,.jpg,.jpeg,.webp",placeholder:"Choose Database Image",className:"hidden",onChange:async e=>{var a;let t=null===(a=e.target.files)||void 0===a?void 0:a[0];if(t){let e=await (0,r.A)({imageInputFile:t,maxWidth:400});null==i||i(e)}else window.alert("No File Provided!")}})]})]})}},6234:(e,a,t)=>{"use strict";t.d(a,{A:()=>l});var s=t(4848);function l(e){let{message:a}=e;return(0,s.jsxs)("div",{className:"p-2 bg-orange-50 w-full justify-center rounded text-sm text-orange-700 border border-orange-400 border-solid",children:[(0,s.jsx)("img",{src:"/images/warning.png",alt:"Warning Image Icon",width:22,className:"-my-2"}),(0,s.jsx)("span",{children:a})]})}t(6540)},2659:(e,a,t)=>{"use strict";t.d(a,{A:()=>l});var s=t(1335);let l=t.n(s)().media.imageInputFileToBase64},7220:(e,a,t)=>{"use strict";t.d(a,{A:()=>s});let s=(0,t(5737).A)("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},7290:(e,a,t)=>{"use strict";t.d(a,{A:()=>s});let s=(0,t(5737).A)("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]])},4266:(e,a,t)=>{"use strict";t.d(a,{A:()=>s});let s=(0,t(5737).A)("FileInput",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4",key:"1pf5j1"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M2 15h10",key:"jfw4w8"}],["path",{d:"m9 18 3-3-3-3",key:"112psh"}]])},3419:(e,a,t)=>{"use strict";t.d(a,{A:()=>s});let s=(0,t(5737).A)("FolderOutput",[["path",{d:"M2 7.5V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-1.5",key:"1yk7aj"}],["path",{d:"M2 13h10",key:"pgb2dq"}],["path",{d:"m5 10-3 3 3 3",key:"1r8ie0"}]])},6051:(e,a,t)=>{"use strict";t.d(a,{A:()=>s});let s=(0,t(5737).A)("SquareTerminal",[["path",{d:"m7 11 2-2-2-2",key:"1lz0vl"}],["path",{d:"M11 13h4",key:"1p7l4v"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}]])},5724:(e,a,t)=>{"use strict";let s;t.r(a),t.d(a,{AddNewDbUserContext:()=>f,__N_SSP:()=>w,default:()=>v});var l=t(4848),r=t(6540),i=t(8181),n=t(3647),d=t(5844),o=t(9020),m=t(1710),u=t(6234),c=t(9268),p=t(6829);function h(e){let{targetDb:a,database:t,user:i,userImage:n,setUserImage:d}=e,[h,x]=r.useState(null),[g,w]=r.useState(!1);return(0,l.jsxs)(r.Fragment,{children:[g&&(0,l.jsx)(m.A,{}),h&&(0,l.jsx)(u.A,{message:h}),(0,l.jsx)("h3",{className:"m-0 text-lg font-semibold mb-1 text-slate-600 mt-4",children:"User information"}),(0,l.jsx)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:(0,l.jsx)(c.A,{title:"First Name",inputType:"text",name:"first_name",autoComplete:"given-name",onInputHandler:e=>{let a=e.target;a.value.match(/./)?(a.classList.remove("warning"),x(null)):a.classList.add("warning")},required:!0})}),(0,l.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:[(0,l.jsx)("label",{htmlFor:"last_name",children:"Last Name"}),(0,l.jsx)("input",{type:"text",name:"last_name",id:"last_name",placeholder:"Last Name",autoComplete:"family-name",onInput:e=>{let a=e.target;a.value.match(/./)?(a.classList.remove("warning"),x(null)):a.classList.add("warning")},required:!0})]}),(0,l.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:[(0,l.jsx)("label",{htmlFor:"username",children:"Username"}),(0,l.jsx)("input",{type:"text",name:"username",id:"username",placeholder:"Username",autoComplete:"username",onInput:e=>{let t=e.target;t.value.match(/./)?(t.classList.remove("warning"),x(null)):t.classList.add("warning"),window.clearTimeout(s),s=setTimeout(()=>{(0,o.A)("/api/checkDuplicateData?type=username&value=".concat(t.value,"&tableName=users&dbFullName=").concat(a)).then(e=>{(null==e?void 0:e.result)?(x("Username Already Exists"),t.classList.add("warning")):(x(null),t.classList.remove("warning"))})},300)}})]}),(0,l.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:[(0,l.jsx)("label",{htmlFor:"email_address",children:"Email Address"}),(0,l.jsx)("input",{type:"email",name:"email_address",id:"email_address",placeholder:"Email Address",autoComplete:"email",onInput:e=>{window.clearTimeout(s);let t=e.target;s=setTimeout(()=>{(0,o.A)("/api/checkDuplicateData?type=email&value=".concat(t.value,"&tableName=users&dbFullName=").concat(a)).then(e=>{(null==e?void 0:e.result)?(x("Email Already Exists"),t.classList.add("warning")):(x(null),t.classList.remove("warning"))})},300)},required:!0})]}),(0,l.jsx)(c.A,{title:"Phone Number",inputType:"text",name:"phone",autoComplete:"tel"}),(0,l.jsx)(c.A,{title:"Address",name:"address",autoComplete:"address"}),(0,l.jsxs)("div",{className:"flex-wrap xl:flex-nowrap",children:[(0,l.jsx)(c.A,{title:"City",name:"city",autoComplete:"city"}),(0,l.jsx)(c.A,{title:"State",name:"state",autoComplete:"state"}),(0,l.jsx)(c.A,{title:"Country",name:"country",autoComplete:"country"}),(0,l.jsx)(c.A,{title:"Zip Code",name:"zip_code",autoComplete:"zip_code"})]}),(0,l.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:[(0,l.jsx)("label",{htmlFor:"password",children:"Password"}),(0,l.jsx)("input",{type:"password",name:"password",id:"password",placeholder:"Password",required:!0})]}),(0,l.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:[(0,l.jsx)("label",{htmlFor:"confirm_password",children:"Confirm Password"}),(0,l.jsx)("input",{type:"password",name:"confirm_password",id:"confirm_password",placeholder:"Confirm Password",onInput:e=>{var a;let t=e.target;(null===(a=t.closest("form"))||void 0===a?void 0:a.password.value)===t.value?t.classList.remove("warning"):t.classList.add("warning")},required:!0})]}),(0,l.jsxs)("div",{className:"paper",children:[(0,l.jsx)("h3",{className:"m-0 text-lg font-semibold mb-1 text-slate-600",children:"User Image"}),(0,l.jsx)(p.A,{userImage:n,setUserImage:d})]})]})}function x(){let{user:e,database:a,table:t,query:s,confirmedDelegetedUser:i}=r.useContext(f),[u,c]=r.useState("invitation"),[p,x]=r.useState(!1),[g,w]=r.useState(!1),[v,j]=r.useState(["Edit"]),[y,b]=r.useState(a.db_slug),[A,N]=r.useState(null),[_,k]=r.useState(null),[C,I]=r.useState([]),[F,U]=r.useState([]);return(0,l.jsxs)(r.Fragment,{children:[(0,l.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,l.jsx)("div",{className:"w-full justify-between flex-wrap",children:(0,l.jsxs)("div",{children:[(0,l.jsx)(d.A,{}),(0,l.jsxs)("h1",{className:"text-3xl m-0",children:["Add A New User to ",a.db_name]})]})}),(0,l.jsx)(n.A,{user:e})]}),(0,l.jsxs)("section",{className:"paper",children:[p&&(0,l.jsx)(m.A,{}),(0,l.jsxs)("form",{onSubmit:t=>{t.preventDefault(),x(!0);let s=Array.from(t.target),l={};s.forEach(e=>{var a,t;(null===(a=e.nodeName)||void 0===a||!a.match(/button/i))&&e.name&&(null===(t=e.value)||void 0===t?void 0:t.match(/./))&&(l[e.name]=e.value)});let r={payload:l,dbFullName:a.db_full_name,dbId:a.id};(0,o.A)("/api/addDbUser",{method:"post",body:r},!0).then(t=>{t.success?_?(_.imageName="".concat(y,"-user-").concat(t.newUserId),_.mimeType="jpeg",delete _.imageBase64Full,(0,o.A)("/api/addUserMedia",{method:"post",body:{media:[_],folder:y.replace(/_/g,"-"),type:"image"}},!0).then(s=>{(0,o.A)("/api/updateDbUser",{method:"post",body:{dbFullName:a.db_full_name,payload:{id:t.newUserId,image:s.mediaData[0].media_url,image_thumbnail:s.mediaData[0].media_thumbnail_url}}},!0).then(t=>{t.success&&(window.location.pathname="/admin/".concat(null==e?void 0:e.id,"/databases/").concat(a.db_slug,"/users")),setTimeout(()=>{x(!1)},500)})})):window.location.pathname="/admin/".concat(null==e?void 0:e.id,"/databases/").concat(a.db_slug,"/users"):setTimeout(()=>{x(!1)},500)})},className:"w-full flex flex-col items-stretch gap-4",children:[(0,l.jsx)(h,{user:e,targetDb:a.db_full_name,database:a,userImage:_,setUserImage:k}),(0,l.jsx)("button",{children:"Add User"})]})]})]})}var g=t(5211),w=!0;let f=r.createContext({});function v(e){let{user:a,database:t,table:s,query:r,confirmedDelegetedUser:n}=e,d=(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("title",{children:"Users | Datasquirel"}),(0,l.jsx)("meta",{name:"description",content:"Welcome to your data app"})]});return(0,l.jsx)(i.A,{head:d,user:a,extraHeaderContent:(0,l.jsx)(g.A,{database:t,query:r,confirmedDelegetedUser:n,user:a}),children:(0,l.jsx)(f.Provider,{value:{user:a,database:t,table:s,query:r,confirmedDelegetedUser:n},children:(0,l.jsx)(x,{})})})}}},e=>{var a=a=>e(e.s=a);e.O(0,[6428,8261,7391,8076,9268,636,6593,8792],()=>a(596)),_N_E=e.O()}]); \ No newline at end of file diff --git a/dsql-app/.local_dist/trace b/dsql-app/.local_dist/trace index 3e9fd88..c2ccbda 100644 --- a/dsql-app/.local_dist/trace +++ b/dsql-app/.local_dist/trace @@ -1,27 +1,27 @@ -[{"name":"generate-buildid","duration":346,"timestamp":907781,"id":4,"parentId":1,"tags":{},"startTime":1736835503731,"traceId":"80a02e6b898c9dbf"},{"name":"load-custom-routes","duration":476,"timestamp":908226,"id":5,"parentId":1,"tags":{},"startTime":1736835503731,"traceId":"80a02e6b898c9dbf"},{"name":"create-dist-dir","duration":303,"timestamp":958814,"id":6,"parentId":1,"tags":{},"startTime":1736835503782,"traceId":"80a02e6b898c9dbf"},{"name":"verify-typescript-setup","duration":582878,"timestamp":967313,"id":7,"parentId":1,"tags":{},"startTime":1736835503790,"traceId":"80a02e6b898c9dbf"},{"name":"collect-pages","duration":2216,"timestamp":1550477,"id":8,"parentId":1,"tags":{},"startTime":1736835504374,"traceId":"80a02e6b898c9dbf"},{"name":"create-pages-mapping","duration":1369,"timestamp":1553675,"id":9,"parentId":1,"tags":{},"startTime":1736835504377,"traceId":"80a02e6b898c9dbf"},{"name":"public-dir-conflict-check","duration":4278,"timestamp":1555233,"id":10,"parentId":1,"tags":{},"startTime":1736835504378,"traceId":"80a02e6b898c9dbf"},{"name":"generate-routes-manifest","duration":6273,"timestamp":1559798,"id":11,"parentId":1,"tags":{},"startTime":1736835504383,"traceId":"80a02e6b898c9dbf"},{"name":"create-entrypoints","duration":101046,"timestamp":1578202,"id":14,"parentId":1,"tags":{},"startTime":1736835504401,"traceId":"80a02e6b898c9dbf"},{"name":"generate-webpack-config","duration":545281,"timestamp":1679293,"id":15,"parentId":13,"tags":{},"startTime":1736835504502,"traceId":"80a02e6b898c9dbf"},{"name":"next-trace-entrypoint-plugin","duration":2050,"timestamp":2358455,"id":17,"parentId":16,"tags":{},"startTime":1736835505182,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":141131,"timestamp":2592612,"id":212,"parentId":19,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2F_error&preferredRegion=&absolutePagePath=next%2Fdist%2Fpages%2F_error&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736835505416,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":143713,"timestamp":2594417,"id":213,"parentId":20,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2F404&preferredRegion=&absolutePagePath=private-next-pages%2F404.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736835505418,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":145916,"timestamp":2594605,"id":214,"parentId":22,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2F500&preferredRegion=&absolutePagePath=private-next-pages%2F500.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736835505418,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":146892,"timestamp":2594840,"id":215,"parentId":23,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FacceptUserInvitation&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FacceptUserInvitation.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736835505418,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":147042,"timestamp":2595632,"id":216,"parentId":24,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FaddAdminUserUser&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FaddAdminUserUser.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736835505419,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":147655,"timestamp":2595754,"id":217,"parentId":25,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FaddApiKey&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FaddApiKey.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736835505419,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":148369,"timestamp":2595858,"id":218,"parentId":26,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FaddDbUser&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FaddDbUser.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736835505419,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":162200,"timestamp":2589024,"id":211,"parentId":21,"tags":{"name":"/app/pages/_document.tsx","layer":null},"startTime":1736835505412,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":11183,"timestamp":2762530,"id":219,"parentId":27,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FaddNewMediaFolder&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FaddNewMediaFolder.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736835505586,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":11640,"timestamp":2762761,"id":220,"parentId":28,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FaddSocialLogin&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FaddSocialLogin.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736835505586,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":12250,"timestamp":2762856,"id":221,"parentId":29,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FaddTableEntry&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FaddTableEntry.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736835505586,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":12830,"timestamp":2762954,"id":222,"parentId":30,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FaddUserTable&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FaddUserTable.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736835505586,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":13420,"timestamp":2763065,"id":223,"parentId":31,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FaddUserUser&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FaddUserUser.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736835505586,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":13916,"timestamp":2763148,"id":224,"parentId":32,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FaddUsersTableToDatabase&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FaddUsersTableToDatabase.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736835505586,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":14359,"timestamp":2763236,"id":225,"parentId":33,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fadmin%2FclearErrorLogs&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fadmin%2FclearErrorLogs.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736835505586,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":14803,"timestamp":2763313,"id":226,"parentId":34,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fadmin%2FaddUserBackup&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fadmin%2FaddUserBackup.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736835505586,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":15221,"timestamp":2763387,"id":227,"parentId":35,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fadmin%2FcreateNewBackup&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fadmin%2FcreateNewBackup.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736835505587,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":15636,"timestamp":2763467,"id":228,"parentId":36,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fadmin%2FclientError&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fadmin%2FclientError.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736835505587,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":16105,"timestamp":2763548,"id":229,"parentId":37,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fadmin%2Fdocs%2F%5Baction%5D&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fadmin%2Fdocs%2F%5Baction%5D.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736835505587,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":16624,"timestamp":2763621,"id":230,"parentId":38,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fadmin%2FgetTablesForUserDatabase&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fadmin%2FgetTablesForUserDatabase.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736835505587,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":17064,"timestamp":2763708,"id":231,"parentId":39,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fadmin%2FgetUserBackups&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fadmin%2FgetUserBackups.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736835505587,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":17520,"timestamp":2763777,"id":232,"parentId":40,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fadmin%2FgetUserData&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fadmin%2FgetUserData.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736835505587,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":18282,"timestamp":2763850,"id":233,"parentId":41,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fadmin%2FgrabBackups&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fadmin%2FgrabBackups.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736835505587,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":18807,"timestamp":2763920,"id":234,"parentId":42,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fadmin%2FgrabErrorLogs&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fadmin%2FgrabErrorLogs.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736835505587,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":19234,"timestamp":2763987,"id":235,"parentId":43,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fadmin%2FgrabFile&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fadmin%2FgrabFile.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736835505587,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":19764,"timestamp":2764056,"id":236,"parentId":44,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fadmin%2FloginSuUser&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fadmin%2FloginSuUser.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736835505587,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":20404,"timestamp":2764128,"id":237,"parentId":45,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fadmin%2FrunUserDbQuery&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fadmin%2FrunUserDbQuery.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736835505587,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":21053,"timestamp":2764208,"id":238,"parentId":46,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fadmin%2FupdateEnv&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fadmin%2FupdateEnv.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736835505587,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":21515,"timestamp":2764290,"id":239,"parentId":47,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FcheckDuplicateData&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FcheckDuplicateData.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736835505587,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":22046,"timestamp":2764369,"id":240,"parentId":48,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FchangeDbUserPassword&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FchangeDbUserPassword.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736835505588,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":22608,"timestamp":2764476,"id":241,"parentId":49,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FcheckExistingFolder&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FcheckExistingFolder.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736835505588,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":23127,"timestamp":2764568,"id":242,"parentId":50,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FclientSideAuth&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FclientSideAuth.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736835505588,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":23571,"timestamp":2764669,"id":243,"parentId":51,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fconnect%2Fdisconnect&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fconnect%2Fdisconnect.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736835505588,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":24067,"timestamp":2764774,"id":244,"parentId":52,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fconnect%2Fhandshake&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fconnect%2Fhandshake.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736835505588,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":24485,"timestamp":2764910,"id":245,"parentId":53,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fconnect&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fconnect%2Findex.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736835505588,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":25294,"timestamp":2765078,"id":246,"parentId":54,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fconnect%2Fverify&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fconnect%2Fverify.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736835505588,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":25582,"timestamp":2765252,"id":247,"parentId":55,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fcontact&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fcontact.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736835505588,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":25769,"timestamp":2765533,"id":248,"parentId":56,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FdeleteDbUser&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FdeleteDbUser.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736835505589,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":26088,"timestamp":2765630,"id":249,"parentId":57,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FdeleteApiKey&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FdeleteApiKey.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736835505589,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":26380,"timestamp":2765727,"id":250,"parentId":58,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FcreateUserDatabase&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FcreateUserDatabase.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736835505589,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":26704,"timestamp":2765825,"id":251,"parentId":59,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FdeleteInvitation&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FdeleteInvitation.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736835505589,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":27035,"timestamp":2765910,"id":252,"parentId":60,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FdeleteMediaFolder&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FdeleteMediaFolder.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736835505589,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":27399,"timestamp":2765989,"id":253,"parentId":61,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FdeleteTableEntry&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FdeleteTableEntry.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736835505589,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":27730,"timestamp":2766082,"id":254,"parentId":62,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FdeleteUser&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FdeleteUser.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736835505589,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":28074,"timestamp":2766157,"id":255,"parentId":63,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FdeleteUserDatabase&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FdeleteUserDatabase.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736835505589,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":28436,"timestamp":2766232,"id":256,"parentId":64,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FdeleteUserMedia&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FdeleteUserMedia.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736835505589,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":28739,"timestamp":2766330,"id":257,"parentId":65,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FdeleteUserTable&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FdeleteUserTable.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736835505589,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":29033,"timestamp":2766411,"id":258,"parentId":66,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FdownloadDatabaseSchema&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FdownloadDatabaseSchema.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736835505590,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":29367,"timestamp":2766476,"id":259,"parentId":67,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FdeleteUserUser&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FdeleteUserUser.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736835505590,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":29707,"timestamp":2766544,"id":260,"parentId":68,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FexportDatabase&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FexportDatabase.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736835505590,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":30027,"timestamp":2766609,"id":261,"parentId":69,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Ffetch-entries-basic&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Ffetch-entries-basic.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736835505590,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":30315,"timestamp":2766696,"id":262,"parentId":70,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fget-authorized-databases&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fget-authorized-databases.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736835505590,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":30606,"timestamp":2766772,"id":263,"parentId":71,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FgetDatabaseTables&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FgetDatabaseTables.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736835505590,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":30858,"timestamp":2766851,"id":264,"parentId":72,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FgetDelegatedDatabaseToken&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FgetDelegatedDatabaseToken.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736835505590,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":31119,"timestamp":2766930,"id":265,"parentId":73,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FgetDelegatedDatabases&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FgetDelegatedDatabases.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736835505590,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":31402,"timestamp":2767005,"id":266,"parentId":74,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FgetDiskUsage&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FgetDiskUsage.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736835505590,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":31672,"timestamp":2767081,"id":267,"parentId":75,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FgetUserDatabaseTables&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FgetUserDatabaseTables.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736835505590,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":31958,"timestamp":2767147,"id":268,"parentId":76,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FgetUserDatabases&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FgetUserDatabases.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736835505590,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":32269,"timestamp":2767219,"id":269,"parentId":77,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FgetUserMedia&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FgetUserMedia.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736835505590,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":32681,"timestamp":2767287,"id":270,"parentId":78,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FgetUserSchemaData&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FgetUserSchemaData.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736835505590,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":33075,"timestamp":2767377,"id":271,"parentId":79,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fhealthcheck&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fhealthcheck.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736835505591,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":33418,"timestamp":2767452,"id":272,"parentId":80,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FimportDatabase&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FimportDatabase.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736835505591,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":33920,"timestamp":2767522,"id":273,"parentId":81,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FimportDatabaseSchema&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FimportDatabaseSchema.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736835505591,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":34211,"timestamp":2767607,"id":274,"parentId":82,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FinfiniteScroll&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FinfiniteScroll.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736835505591,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":34536,"timestamp":2767683,"id":275,"parentId":83,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FloginUser&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FloginUser.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736835505591,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":34879,"timestamp":2767761,"id":276,"parentId":84,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FlogoutUser&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FlogoutUser.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736835505591,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":35198,"timestamp":2767837,"id":277,"parentId":85,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fmedia%2FaddPrivateMedia&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fmedia%2FaddPrivateMedia.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736835505591,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":35493,"timestamp":2767923,"id":278,"parentId":86,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fmedia%2FgetPrivateMedia&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fmedia%2FgetPrivateMedia.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736835505591,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":35862,"timestamp":2768000,"id":279,"parentId":87,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FpurgeDb&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FpurgeDb.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736835505591,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":36231,"timestamp":2768080,"id":280,"parentId":88,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fquery%2F%5Buser_id%5D%2Fget&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fquery%2F%5Buser_id%5D%2Fget.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736835505591,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":36639,"timestamp":2768158,"id":281,"parentId":89,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fquery%2F%5Buser_id%5D%2Fget-schema&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fquery%2F%5Buser_id%5D%2Fget-schema.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736835505591,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":8062,"timestamp":2881274,"id":282,"parentId":90,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fquery%2F%5Buser_id%5D%2Fupdate-schema-from-single-database&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fquery%2F%5Buser_id%5D%2Fupdate-schema-from-single-database.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736835505704,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":8177,"timestamp":2881548,"id":283,"parentId":91,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FqueryEntriesSearchTerm&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FqueryEntriesSearchTerm.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736835505705,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":8395,"timestamp":2881646,"id":284,"parentId":92,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FreAuthenticateUser&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FreAuthenticateUser.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736835505705,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":8651,"timestamp":2881713,"id":285,"parentId":93,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FrefreshEntry&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FrefreshEntry.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736835505705,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":8922,"timestamp":2881777,"id":286,"parentId":94,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FrenameMedia&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FrenameMedia.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736835505705,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":9189,"timestamp":2881840,"id":287,"parentId":95,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FregisterUser&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FregisterUser.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736835505705,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":9469,"timestamp":2881900,"id":288,"parentId":96,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FresetDelegatedDatabaseToken&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FresetDelegatedDatabaseToken.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736835505705,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":9725,"timestamp":2881962,"id":289,"parentId":97,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FresetPassword&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FresetPassword.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736835505705,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":9965,"timestamp":2882025,"id":290,"parentId":98,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FrunUserDbQuery&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FrunUserDbQuery.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736835505705,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":10178,"timestamp":2882092,"id":291,"parentId":99,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FsendEmailVerificationLink&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FsendEmailVerificationLink.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736835505705,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":10409,"timestamp":2882149,"id":292,"parentId":100,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FsendPasswordResetLink&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FsendPasswordResetLink.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736835505705,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":10702,"timestamp":2882211,"id":293,"parentId":101,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fsocial-login%2Ffacebook-auth&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fsocial-login%2Ffacebook-auth.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736835505705,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":10969,"timestamp":2882276,"id":294,"parentId":102,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fsocial-login%2Fgithub-auth&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fsocial-login%2Fgithub-auth.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736835505705,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":11272,"timestamp":2882340,"id":295,"parentId":103,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fsocial-login%2Fgoogle-auth&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fsocial-login%2Fgoogle-auth.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736835505705,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":11481,"timestamp":2882406,"id":296,"parentId":104,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fsocial-login%2Futils%2FcheckEmail&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fsocial-login%2Futils%2FcheckEmail.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736835505706,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":11703,"timestamp":2882473,"id":297,"parentId":105,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fsocial-login%2Futils%2FcheckSocialId&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fsocial-login%2Futils%2FcheckSocialId.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736835505706,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":11918,"timestamp":2882540,"id":298,"parentId":106,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fsocial-login%2Futils%2FgetEmailFromSocialId&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fsocial-login%2Futils%2FgetEmailFromSocialId.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736835505706,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":12183,"timestamp":2882604,"id":299,"parentId":107,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fsql-users%2Fcreate&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fsql-users%2Fcreate.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736835505706,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":12419,"timestamp":2882672,"id":300,"parentId":108,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fsql-users%2Fdelete&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fsql-users%2Fdelete.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736835505706,"traceId":"80a02e6b898c9dbf"}] -[{"name":"build-module","duration":12909,"timestamp":2882741,"id":301,"parentId":109,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fsql-users%2Fupdate&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fsql-users%2Fupdate.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736835505706,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":13138,"timestamp":2882799,"id":302,"parentId":110,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fstream%2F%5Bpath%5D&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fstream%2F%5Bpath%5D.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736835505706,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":13349,"timestamp":2882862,"id":303,"parentId":111,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fsync-table-data&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fsync-table-data.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736835505706,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":13565,"timestamp":2882929,"id":304,"parentId":112,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Ftest%2Fcors&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Ftest%2Fcors.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736835505706,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":13821,"timestamp":2882992,"id":305,"parentId":113,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Ftest%2Fmail&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Ftest%2Fmail.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736835505706,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":14067,"timestamp":2883056,"id":306,"parentId":114,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Funsubscribe&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Funsubscribe.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736835505706,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":14288,"timestamp":2883125,"id":307,"parentId":115,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FupdateAdminUserAccess&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FupdateAdminUserAccess.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736835505706,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":14574,"timestamp":2883184,"id":308,"parentId":116,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FupdateClonedTableForeignKeys&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FupdateClonedTableForeignKeys.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736835505706,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":14859,"timestamp":2883243,"id":309,"parentId":117,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FupdateDbSchemaDataForUser&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FupdateDbSchemaDataForUser.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736835505706,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":15138,"timestamp":2883300,"id":310,"parentId":118,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FupdateDbUser&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FupdateDbUser.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736835505706,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":15477,"timestamp":2883366,"id":311,"parentId":119,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FupdateTableEntry&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FupdateTableEntry.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736835505707,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":15742,"timestamp":2883458,"id":312,"parentId":120,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FupdateUserDatabase&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FupdateUserDatabase.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736835505707,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":15941,"timestamp":2883593,"id":313,"parentId":121,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FupdateUser&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FupdateUser.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736835505707,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":16234,"timestamp":2883658,"id":314,"parentId":122,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FupdateUserTable&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FupdateUserTable.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736835505707,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":16577,"timestamp":2883716,"id":315,"parentId":123,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FupdateUserUser&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FupdateUserUser.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736835505707,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":2614,"timestamp":2938112,"id":316,"parentId":124,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fuser-schema%2Freplace-database-schema&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fuser-schema%2Freplace-database-schema.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736835505761,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":2760,"timestamp":2938368,"id":317,"parentId":125,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fuser%2F%5Buser_id%5D%2Fadd-user&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fuser%2F%5Buser_id%5D%2Fadd-user.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736835505762,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":2989,"timestamp":2938482,"id":318,"parentId":126,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fuser%2F%5Buser_id%5D%2Fdelete-user&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fuser%2F%5Buser_id%5D%2Fdelete-user.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736835505762,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":3243,"timestamp":2938581,"id":319,"parentId":127,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fuser%2F%5Buser_id%5D%2Fget-user&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fuser%2F%5Buser_id%5D%2Fget-user.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736835505762,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":3485,"timestamp":2938661,"id":320,"parentId":128,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fuser%2F%5Buser_id%5D%2Fgithub-login&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fuser%2F%5Buser_id%5D%2Fgithub-login.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736835505762,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":3715,"timestamp":2938735,"id":321,"parentId":129,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fuser%2F%5Buser_id%5D%2Fgoogle-login&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fuser%2F%5Buser_id%5D%2Fgoogle-login.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736835505762,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":3939,"timestamp":2938814,"id":322,"parentId":130,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fuser%2F%5Buser_id%5D%2Fgrab-google-user-from-token&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fuser%2F%5Buser_id%5D%2Fgrab-google-user-from-token.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736835505762,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":4122,"timestamp":2938893,"id":323,"parentId":131,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fuser%2F%5Buser_id%5D%2Flogin-user&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fuser%2F%5Buser_id%5D%2Flogin-user.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736835505762,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":3747,"timestamp":2952790,"id":324,"parentId":132,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fuser%2F%5Buser_id%5D%2Freauth-user&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fuser%2F%5Buser_id%5D%2Freauth-user.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736835505776,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":3976,"timestamp":2953027,"id":325,"parentId":133,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fuser%2F%5Buser_id%5D%2Fsend-email-code&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fuser%2F%5Buser_id%5D%2Fsend-email-code.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736835505776,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":4260,"timestamp":2953141,"id":326,"parentId":134,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fuser%2F%5Buser_id%5D%2Fupdate-user&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fuser%2F%5Buser_id%5D%2Fupdate-user.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736835505776,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":4512,"timestamp":2953240,"id":327,"parentId":135,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fwebhooks%2Fgithub-push&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fwebhooks%2Fgithub-push.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736835505776,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":5105,"timestamp":2953321,"id":328,"parentId":137,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fabout&preferredRegion=&absolutePagePath=private-next-pages%2Fabout.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736835505776,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":6962,"timestamp":2961875,"id":329,"parentId":138,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fapi-keys&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fapi-keys%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736835505785,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":2623,"timestamp":2969306,"id":330,"parentId":139,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fedit-database&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fedit-database.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736835505792,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":2982,"timestamp":2969570,"id":331,"parentId":140,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fconnect&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fconnect%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736835505793,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":3045,"timestamp":2973314,"id":332,"parentId":141,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fconnect&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fconnect.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736835505796,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":3366,"timestamp":2973656,"id":333,"parentId":142,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fschema&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fschema.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736835505797,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":3893,"timestamp":2973766,"id":334,"parentId":143,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736835505797,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":4478,"timestamp":2973851,"id":335,"parentId":144,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Fedit-table&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Fedit-table.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736835505797,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":5041,"timestamp":2973960,"id":336,"parentId":145,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fshell&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fshell.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736835505797,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":4206,"timestamp":2990368,"id":337,"parentId":146,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Fentries%2Fadd-entry&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Fentries%2Fadd-entry.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736835505814,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":4651,"timestamp":2990738,"id":338,"parentId":147,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Fentries&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Fentries%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736835505814,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":5243,"timestamp":2990891,"id":339,"parentId":148,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Fentries%2F%5Bsingle_entry%5D&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Fentries%2F%5Bsingle_entry%5D.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736835505814,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":5783,"timestamp":2991077,"id":340,"parentId":149,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Ffields&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Ffields.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736835505814,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":6321,"timestamp":2991200,"id":341,"parentId":150,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers%2F%5Buser%5D%2Fchange-password&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers%2F%5Buser%5D%2Fchange-password.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736835505814,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":6885,"timestamp":2991324,"id":342,"parentId":151,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2Fadd-table&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2Fadd-table.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736835505814,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":7408,"timestamp":2991459,"id":343,"parentId":152,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736835505815,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":7938,"timestamp":2991588,"id":344,"parentId":153,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736835505815,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":8467,"timestamp":2991701,"id":345,"parentId":154,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers%2F%5Buser%5D&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers%2F%5Buser%5D%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736835505815,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":4640,"timestamp":3015184,"id":346,"parentId":155,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers%2Fadd-social-logins&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers%2Fadd-social-logins.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736835505838,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":5067,"timestamp":3015439,"id":347,"parentId":156,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2Fadd-database&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2Fadd-database.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736835505839,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":5496,"timestamp":3015569,"id":348,"parentId":157,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736835505839,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":5937,"timestamp":3015676,"id":349,"parentId":158,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736835505839,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":6494,"timestamp":3015773,"id":350,"parentId":159,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736835505839,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":7063,"timestamp":3015860,"id":351,"parentId":160,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers%2Fadd-user&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers%2Fadd-user.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736835505839,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":7656,"timestamp":3015943,"id":352,"parentId":161,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fmedia%2F%5B...folder%5D&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fmedia%2F%5B...folder%5D.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736835505839,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":8193,"timestamp":3016040,"id":353,"parentId":162,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fschema&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fschema.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736835505839,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":9020,"timestamp":3016125,"id":354,"parentId":163,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fmedia&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fmedia%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736835505839,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":9621,"timestamp":3016206,"id":355,"parentId":164,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fsettings&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fsettings.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736835505839,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":10156,"timestamp":3016283,"id":356,"parentId":165,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fusers%2Fadd-user&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fusers%2Fadd-user.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736835505839,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":10709,"timestamp":3016362,"id":357,"parentId":166,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fusers%2Fdatabases%2F%5Bdatabase%5D%2F%5Buser%5D&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fusers%2Fdatabases%2F%5Bdatabase%5D%2F%5Buser%5D.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736835505840,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":11217,"timestamp":3016455,"id":358,"parentId":167,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fusers%2Fdatabases%2F%5Bdatabase%5D&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fusers%2Fdatabases%2F%5Bdatabase%5D%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736835505840,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":11687,"timestamp":3016543,"id":359,"parentId":168,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fusers%2Fdatabases&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fusers%2Fdatabases%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736835505840,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":12165,"timestamp":3016641,"id":360,"parentId":169,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fusers&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fusers%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736835505840,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":12629,"timestamp":3016729,"id":361,"parentId":170,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fadmin&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736835505840,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":12879,"timestamp":3016818,"id":362,"parentId":171,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FaddUserMedia&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FaddUserMedia.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736835505840,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":3468,"timestamp":3057243,"id":363,"parentId":172,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FexportTableData&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FexportTableData.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736835505880,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":3609,"timestamp":3057431,"id":364,"parentId":173,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Ffetch-media&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Ffetch-media.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736835505881,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":3885,"timestamp":3057497,"id":365,"parentId":174,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fquery%2F%5Buser_id%5D%2Fadd-file&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fquery%2F%5Buser_id%5D%2Fadd-file.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736835505881,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":4184,"timestamp":3057578,"id":366,"parentId":175,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fquery%2F%5Buser_id%5D%2Fadd-image&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fquery%2F%5Buser_id%5D%2Fadd-image.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736835505881,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":4484,"timestamp":3057652,"id":367,"parentId":176,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fquery%2F%5Buser_id%5D%2Fget-private-file&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fquery%2F%5Buser_id%5D%2Fget-private-file.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736835505881,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":4695,"timestamp":3057729,"id":368,"parentId":177,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fquery%2F%5Buser_id%5D%2Fdelete-file&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fquery%2F%5Buser_id%5D%2Fdelete-file.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736835505881,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":4951,"timestamp":3057799,"id":369,"parentId":178,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fquery%2F%5Buser_id%5D%2Fpost&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fquery%2F%5Buser_id%5D%2Fpost.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736835505881,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":5633,"timestamp":3057856,"id":370,"parentId":179,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fblog&preferredRegion=&absolutePagePath=private-next-pages%2Fblog%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736835505881,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":6234,"timestamp":3057937,"id":371,"parentId":180,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fcontact&preferredRegion=&absolutePagePath=private-next-pages%2Fcontact.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736835505881,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":6821,"timestamp":3058001,"id":372,"parentId":181,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fcreate-account&preferredRegion=&absolutePagePath=private-next-pages%2Fcreate-account.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736835505881,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":7551,"timestamp":3058070,"id":373,"parentId":182,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fdocs%2F%5Bpage%5D%2F%5Bsub-page%5D&preferredRegion=&absolutePagePath=private-next-pages%2Fdocs%2F%5Bpage%5D%2F%5Bsub-page%5D%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736835505881,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":8235,"timestamp":3058152,"id":374,"parentId":183,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fdocs&preferredRegion=&absolutePagePath=private-next-pages%2Fdocs%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736835505881,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":9020,"timestamp":3058218,"id":375,"parentId":184,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fdocs%2F%5Bpage%5D&preferredRegion=&absolutePagePath=private-next-pages%2Fdocs%2F%5Bpage%5D%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736835505881,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":9595,"timestamp":3058296,"id":376,"parentId":185,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2F&preferredRegion=&absolutePagePath=private-next-pages%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736835505881,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":10021,"timestamp":3058359,"id":377,"parentId":186,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Femail-verification&preferredRegion=&absolutePagePath=private-next-pages%2Femail-verification%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736835505882,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":10511,"timestamp":3058433,"id":378,"parentId":187,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Flogin&preferredRegion=&absolutePagePath=private-next-pages%2Flogin.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736835505882,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":11075,"timestamp":3058512,"id":379,"parentId":188,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fprivacy&preferredRegion=&absolutePagePath=private-next-pages%2Fprivacy.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736835505882,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":11680,"timestamp":3058590,"id":380,"parentId":189,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fredirect&preferredRegion=&absolutePagePath=private-next-pages%2Fredirect.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736835505882,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":12267,"timestamp":3058659,"id":381,"parentId":190,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Flogout&preferredRegion=&absolutePagePath=private-next-pages%2Flogout.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736835505882,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":12810,"timestamp":3058731,"id":382,"parentId":191,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fsu%2Fbackups&preferredRegion=&absolutePagePath=private-next-pages%2Fsu%2Fbackups.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736835505882,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":13346,"timestamp":3058795,"id":383,"parentId":192,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Freset-password&preferredRegion=&absolutePagePath=private-next-pages%2Freset-password.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736835505882,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":400,"timestamp":3101403,"id":402,"parentId":211,"tags":{"name":"react/jsx-runtime","layer":null},"startTime":1736835505925,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":17,"timestamp":3101838,"id":403,"parentId":211,"tags":{"name":"react","layer":null},"startTime":1736835505925,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":6632,"timestamp":3099689,"id":384,"parentId":193,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fsend-password-reset-link&preferredRegion=&absolutePagePath=private-next-pages%2Fsend-password-reset-link.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736835505923,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":7034,"timestamp":3099896,"id":385,"parentId":194,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fsu%2Fconsole&preferredRegion=&absolutePagePath=private-next-pages%2Fsu%2Fconsole.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736835505923,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":7374,"timestamp":3100010,"id":386,"parentId":195,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fsu%2Fdocs%2Fcreate-page&preferredRegion=&absolutePagePath=private-next-pages%2Fsu%2Fdocs%2Fcreate-page.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736835505923,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":7811,"timestamp":3100088,"id":387,"parentId":196,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fsu%2Fdocs%2Fedit-page&preferredRegion=&absolutePagePath=private-next-pages%2Fsu%2Fdocs%2Fedit-page.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736835505923,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":8344,"timestamp":3100181,"id":388,"parentId":197,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fsu%2Fdocs&preferredRegion=&absolutePagePath=private-next-pages%2Fsu%2Fdocs%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736835505923,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":9150,"timestamp":3100254,"id":389,"parentId":198,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fsu%2Fdocs%2Fpages%2F%5Bid%5D&preferredRegion=&absolutePagePath=private-next-pages%2Fsu%2Fdocs%2Fpages%2F%5Bid%5D.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736835505923,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":9721,"timestamp":3100356,"id":390,"parentId":199,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fsu%2Fdocs%2Fpages&preferredRegion=&absolutePagePath=private-next-pages%2Fsu%2Fdocs%2Fpages%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736835505924,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":10175,"timestamp":3100440,"id":391,"parentId":200,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fsu%2Fenvar&preferredRegion=&absolutePagePath=private-next-pages%2Fsu%2Fenvar.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736835505924,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":10675,"timestamp":3100512,"id":392,"parentId":201,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fsu%2Ferror-logs&preferredRegion=&absolutePagePath=private-next-pages%2Fsu%2Ferror-logs.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736835505924,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":11108,"timestamp":3100577,"id":393,"parentId":202,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fsu&preferredRegion=&absolutePagePath=private-next-pages%2Fsu%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736835505924,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":11507,"timestamp":3100646,"id":394,"parentId":203,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fsu%2Fload-balancing&preferredRegion=&absolutePagePath=private-next-pages%2Fsu%2Fload-balancing.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736835505924,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":11877,"timestamp":3100714,"id":395,"parentId":204,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fsu%2Flogin&preferredRegion=&absolutePagePath=private-next-pages%2Fsu%2Flogin.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736835505924,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":12236,"timestamp":3100786,"id":396,"parentId":205,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fsu%2Fservers&preferredRegion=&absolutePagePath=private-next-pages%2Fsu%2Fservers.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736835505924,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":12604,"timestamp":3100863,"id":397,"parentId":206,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fsu%2Fusers%2F%5Bsingle%5D&preferredRegion=&absolutePagePath=private-next-pages%2Fsu%2Fusers%2F%5Bsingle%5D.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736835505924,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":12949,"timestamp":3100935,"id":398,"parentId":207,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fsu%2Fusers&preferredRegion=&absolutePagePath=private-next-pages%2Fsu%2Fusers%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736835505924,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":13331,"timestamp":3101014,"id":399,"parentId":208,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fsu%2Fusers%2Fnew&preferredRegion=&absolutePagePath=private-next-pages%2Fsu%2Fusers%2Fnew.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736835505924,"traceId":"80a02e6b898c9dbf"}] -[{"name":"build-module","duration":14115,"timestamp":3101098,"id":400,"parentId":209,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fterms&preferredRegion=&absolutePagePath=private-next-pages%2Fterms.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736835505924,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":14515,"timestamp":3101180,"id":401,"parentId":210,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Funsubscribe&preferredRegion=&absolutePagePath=private-next-pages%2Funsubscribe.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736835505924,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":16788,"timestamp":3101957,"id":405,"parentId":212,"tags":{"name":"/app/node_modules/next/dist/server/route-kind.js","layer":null},"startTime":1736835505925,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":16997,"timestamp":3102782,"id":408,"parentId":215,"tags":{"name":"/app/node_modules/next/dist/server/route-kind.js","layer":"api"},"startTime":1736835505926,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":20625,"timestamp":3102736,"id":407,"parentId":212,"tags":{"name":"/app/node_modules/next/dist/build/templates/helpers.js","layer":null},"startTime":1736835505926,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":21041,"timestamp":3103237,"id":409,"parentId":215,"tags":{"name":"/app/node_modules/next/dist/build/templates/helpers.js","layer":"api"},"startTime":1736835505926,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":24424,"timestamp":3101865,"id":404,"parentId":136,"tags":{"name":"/app/pages/_app.tsx","layer":null},"startTime":1736835505925,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":29519,"timestamp":3102673,"id":406,"parentId":212,"tags":{"name":"/app/node_modules/next/dist/pages/_error.js","layer":null},"startTime":1736835505926,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":8768,"timestamp":3169782,"id":410,"parentId":212,"tags":{"name":"/app/node_modules/next/dist/server/route-modules/pages/module.compiled.js","layer":null},"startTime":1736835505993,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":8904,"timestamp":3169937,"id":411,"parentId":211,"tags":{"name":"/app/node_modules/next/document.js","layer":null},"startTime":1736835505993,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":9292,"timestamp":3169962,"id":412,"parentId":215,"tags":{"name":"/app/node_modules/next/dist/server/route-modules/pages-api/module.compiled.js","layer":"api"},"startTime":1736835505993,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":11300,"timestamp":3170013,"id":413,"parentId":213,"tags":{"name":"/app/pages/404.tsx","layer":null},"startTime":1736835505993,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":6240,"timestamp":3187047,"id":416,"parentId":216,"tags":{"name":"/app/pages/api/addAdminUserUser.ts","layer":"api"},"startTime":1736835506010,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":8560,"timestamp":3187129,"id":419,"parentId":219,"tags":{"name":"/app/pages/api/addNewMediaFolder.ts","layer":"api"},"startTime":1736835506010,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":11294,"timestamp":3187095,"id":418,"parentId":218,"tags":{"name":"/app/pages/api/addDbUser.ts","layer":"api"},"startTime":1736835506010,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":14906,"timestamp":3187074,"id":417,"parentId":217,"tags":{"name":"/app/pages/api/addApiKey.ts","layer":"api"},"startTime":1736835506010,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":16895,"timestamp":3186868,"id":414,"parentId":214,"tags":{"name":"/app/pages/500.tsx","layer":null},"startTime":1736835506010,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":19599,"timestamp":3187007,"id":415,"parentId":215,"tags":{"name":"/app/pages/api/acceptUserInvitation.ts","layer":"api"},"startTime":1736835506010,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":20300,"timestamp":3187230,"id":425,"parentId":225,"tags":{"name":"/app/pages/api/admin/clearErrorLogs.ts","layer":"api"},"startTime":1736835506010,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":22151,"timestamp":3187146,"id":420,"parentId":221,"tags":{"name":"/app/pages/api/addTableEntry.ts","layer":"api"},"startTime":1736835506010,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":24698,"timestamp":3187196,"id":423,"parentId":220,"tags":{"name":"/app/pages/api/addSocialLogin.ts","layer":"api"},"startTime":1736835506010,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":26580,"timestamp":3187213,"id":424,"parentId":223,"tags":{"name":"/app/pages/api/addUserUser.ts","layer":"api"},"startTime":1736835506010,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":29802,"timestamp":3187164,"id":421,"parentId":222,"tags":{"name":"/app/pages/api/addUserTable.ts","layer":"api"},"startTime":1736835506010,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":32834,"timestamp":3187180,"id":422,"parentId":224,"tags":{"name":"/app/pages/api/addUsersTableToDatabase.ts","layer":"api"},"startTime":1736835506010,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":3777,"timestamp":3245832,"id":427,"parentId":227,"tags":{"name":"/app/pages/api/admin/createNewBackup.ts","layer":"api"},"startTime":1736835506069,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":6237,"timestamp":3245746,"id":426,"parentId":226,"tags":{"name":"/app/pages/api/admin/addUserBackup.ts","layer":"api"},"startTime":1736835506069,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":2537,"timestamp":3253544,"id":430,"parentId":234,"tags":{"name":"/app/pages/api/admin/grabErrorLogs.ts","layer":"api"},"startTime":1736835506077,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":3174,"timestamp":3253420,"id":428,"parentId":233,"tags":{"name":"/app/pages/api/admin/grabBackups.ts","layer":"api"},"startTime":1736835506077,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":3889,"timestamp":3253518,"id":429,"parentId":228,"tags":{"name":"/app/pages/api/admin/clientError.ts","layer":"api"},"startTime":1736835506077,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":4454,"timestamp":3253561,"id":431,"parentId":230,"tags":{"name":"/app/pages/api/admin/getTablesForUserDatabase.ts","layer":"api"},"startTime":1736835506077,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":5162,"timestamp":3253632,"id":432,"parentId":239,"tags":{"name":"/app/pages/api/checkDuplicateData.ts","layer":"api"},"startTime":1736835506077,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":7268,"timestamp":3259723,"id":433,"parentId":232,"tags":{"name":"/app/pages/api/admin/getUserData.ts","layer":"api"},"startTime":1736835506083,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":3343,"timestamp":3267781,"id":437,"parentId":241,"tags":{"name":"/app/pages/api/checkExistingFolder.ts","layer":"api"},"startTime":1736835506091,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":4402,"timestamp":3267640,"id":434,"parentId":231,"tags":{"name":"/app/pages/api/admin/getUserBackups.ts","layer":"api"},"startTime":1736835506091,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":5242,"timestamp":3267726,"id":435,"parentId":240,"tags":{"name":"/app/pages/api/changeDbUserPassword.ts","layer":"api"},"startTime":1736835506091,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":6468,"timestamp":3267747,"id":436,"parentId":229,"tags":{"name":"/app/pages/api/admin/docs/[action].ts","layer":"api"},"startTime":1736835506091,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":5194,"timestamp":3269338,"id":438,"parentId":242,"tags":{"name":"/app/pages/api/clientSideAuth.ts","layer":"api"},"startTime":1736835506092,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":4817,"timestamp":3281274,"id":440,"parentId":235,"tags":{"name":"/app/pages/api/admin/grabFile.ts","layer":"api"},"startTime":1736835506104,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":5858,"timestamp":3281178,"id":439,"parentId":248,"tags":{"name":"/app/pages/api/deleteDbUser.ts","layer":"api"},"startTime":1736835506104,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":4504,"timestamp":3283868,"id":441,"parentId":249,"tags":{"name":"/app/pages/api/deleteApiKey.ts","layer":"api"},"startTime":1736835506107,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":5426,"timestamp":3283915,"id":442,"parentId":236,"tags":{"name":"/app/pages/api/admin/loginSuUser.ts","layer":"api"},"startTime":1736835506107,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":19709,"timestamp":3301389,"id":446,"parentId":251,"tags":{"name":"/app/pages/api/deleteInvitation.ts","layer":"api"},"startTime":1736835506125,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":20583,"timestamp":3301331,"id":444,"parentId":237,"tags":{"name":"/app/pages/api/admin/runUserDbQuery.ts","layer":"api"},"startTime":1736835506124,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":21381,"timestamp":3301361,"id":445,"parentId":247,"tags":{"name":"/app/pages/api/contact.ts","layer":"api"},"startTime":1736835506125,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":22271,"timestamp":3301409,"id":447,"parentId":238,"tags":{"name":"/app/pages/api/admin/updateEnv.ts","layer":"api"},"startTime":1736835506125,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":24897,"timestamp":3301177,"id":443,"parentId":250,"tags":{"name":"/app/pages/api/createUserDatabase.ts","layer":"api"},"startTime":1736835506124,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":6988,"timestamp":3380974,"id":448,"parentId":253,"tags":{"name":"/app/pages/api/deleteTableEntry.ts","layer":"api"},"startTime":1736835506204,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":5854,"timestamp":3409024,"id":450,"parentId":252,"tags":{"name":"/app/pages/api/deleteMediaFolder.ts","layer":"api"},"startTime":1736835506232,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":7199,"timestamp":3409038,"id":451,"parentId":255,"tags":{"name":"/app/pages/api/deleteUserDatabase.ts","layer":"api"},"startTime":1736835506232,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":8748,"timestamp":3408947,"id":449,"parentId":254,"tags":{"name":"/app/pages/api/deleteUser.ts","layer":"api"},"startTime":1736835506232,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":10091,"timestamp":3409051,"id":452,"parentId":257,"tags":{"name":"/app/pages/api/deleteUserTable.ts","layer":"api"},"startTime":1736835506232,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":13022,"timestamp":3420812,"id":462,"parentId":259,"tags":{"name":"/app/pages/api/deleteUserUser.ts","layer":"api"},"startTime":1736835506244,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":14102,"timestamp":3420484,"id":453,"parentId":263,"tags":{"name":"/app/pages/api/getDatabaseTables.ts","layer":"api"},"startTime":1736835506244,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":14561,"timestamp":3420720,"id":458,"parentId":243,"tags":{"name":"/app/pages/api/connect/disconnect.ts","layer":"api"},"startTime":1736835506244,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":15651,"timestamp":3420698,"id":457,"parentId":258,"tags":{"name":"/app/pages/api/downloadDatabaseSchema.ts","layer":"api"},"startTime":1736835506244,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":16909,"timestamp":3420669,"id":456,"parentId":261,"tags":{"name":"/app/pages/api/fetch-entries-basic.ts","layer":"api"},"startTime":1736835506244,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":17766,"timestamp":3420740,"id":459,"parentId":244,"tags":{"name":"/app/pages/api/connect/handshake.ts","layer":"api"},"startTime":1736835506244,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":18814,"timestamp":3420761,"id":460,"parentId":245,"tags":{"name":"/app/pages/api/connect/index.ts","layer":"api"},"startTime":1736835506244,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":20401,"timestamp":3420645,"id":455,"parentId":265,"tags":{"name":"/app/pages/api/getDelegatedDatabases.ts","layer":"api"},"startTime":1736835506244,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":21828,"timestamp":3420588,"id":454,"parentId":264,"tags":{"name":"/app/pages/api/getDelegatedDatabaseToken.ts","layer":"api"},"startTime":1736835506244,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":22650,"timestamp":3420788,"id":461,"parentId":246,"tags":{"name":"/app/pages/api/connect/verify.ts","layer":"api"},"startTime":1736835506244,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":23965,"timestamp":3420837,"id":463,"parentId":256,"tags":{"name":"/app/pages/api/deleteUserMedia.ts","layer":"api"},"startTime":1736835506244,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":20649,"timestamp":3480918,"id":473,"parentId":271,"tags":{"name":"/app/pages/api/healthcheck.ts","layer":"api"},"startTime":1736835506304,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":21379,"timestamp":3480877,"id":470,"parentId":267,"tags":{"name":"/app/pages/api/getUserDatabaseTables.ts","layer":"api"},"startTime":1736835506304,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":21953,"timestamp":3480785,"id":466,"parentId":268,"tags":{"name":"/app/pages/api/getUserDatabases.ts","layer":"api"},"startTime":1736835506304,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":22431,"timestamp":3480765,"id":465,"parentId":260,"tags":{"name":"/app/pages/api/exportDatabase.ts","layer":"api"},"startTime":1736835506304,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":22913,"timestamp":3480848,"id":468,"parentId":269,"tags":{"name":"/app/pages/api/getUserMedia.ts","layer":"api"},"startTime":1736835506304,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":23835,"timestamp":3480889,"id":471,"parentId":270,"tags":{"name":"/app/pages/api/getUserSchemaData.ts","layer":"api"},"startTime":1736835506304,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":25395,"timestamp":3480905,"id":472,"parentId":272,"tags":{"name":"/app/pages/api/importDatabase.ts","layer":"api"},"startTime":1736835506304,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":25873,"timestamp":3481003,"id":480,"parentId":284,"tags":{"name":"/app/pages/api/reAuthenticateUser.ts","layer":"api"},"startTime":1736835506304,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":27436,"timestamp":3480635,"id":464,"parentId":262,"tags":{"name":"/app/pages/api/get-authorized-databases.ts","layer":"api"},"startTime":1736835506304,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":27755,"timestamp":3481063,"id":484,"parentId":278,"tags":{"name":"/app/pages/api/media/getPrivateMedia.ts","layer":"api"},"startTime":1736835506304,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":28717,"timestamp":3480929,"id":474,"parentId":273,"tags":{"name":"/app/pages/api/importDatabaseSchema.ts","layer":"api"},"startTime":1736835506304,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":29444,"timestamp":3481034,"id":482,"parentId":285,"tags":{"name":"/app/pages/api/refreshEntry.ts","layer":"api"},"startTime":1736835506304,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":30458,"timestamp":3481206,"id":490,"parentId":280,"tags":{"name":"/app/pages/api/query/[user_id]/get.ts","layer":"api"},"startTime":1736835506304,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":32438,"timestamp":3480827,"id":467,"parentId":266,"tags":{"name":"/app/pages/api/getDiskUsage.ts","layer":"api"},"startTime":1736835506304,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":34529,"timestamp":3480863,"id":469,"parentId":275,"tags":{"name":"/app/pages/api/loginUser.ts","layer":"api"},"startTime":1736835506304,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":35627,"timestamp":3480946,"id":475,"parentId":274,"tags":{"name":"/app/pages/api/infiniteScroll.ts","layer":"api"},"startTime":1736835506304,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":35621,"timestamp":3481483,"id":498,"parentId":296,"tags":{"name":"/app/pages/api/social-login/utils/checkEmail.ts","layer":"api"},"startTime":1736835506305,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":36384,"timestamp":3481177,"id":489,"parentId":289,"tags":{"name":"/app/pages/api/resetPassword.ts","layer":"api"},"startTime":1736835506304,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":37636,"timestamp":3480959,"id":476,"parentId":283,"tags":{"name":"/app/pages/api/queryEntriesSearchTerm.ts","layer":"api"},"startTime":1736835506304,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":38628,"timestamp":3481016,"id":481,"parentId":279,"tags":{"name":"/app/pages/api/purgeDb.ts","layer":"api"},"startTime":1736835506304,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":39829,"timestamp":3481237,"id":491,"parentId":281,"tags":{"name":"/app/pages/api/query/[user_id]/get-schema.ts","layer":"api"},"startTime":1736835506304,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":41577,"timestamp":3481048,"id":483,"parentId":277,"tags":{"name":"/app/pages/api/media/addPrivateMedia.ts","layer":"api"},"startTime":1736835506304,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":41428,"timestamp":3481836,"id":515,"parentId":315,"tags":{"name":"/app/pages/api/updateUserUser.ts","layer":"api"},"startTime":1736835506305,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":42617,"timestamp":3480971,"id":477,"parentId":276,"tags":{"name":"/app/pages/api/logoutUser.ts","layer":"api"},"startTime":1736835506304,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":42100,"timestamp":3481897,"id":518,"parentId":318,"tags":{"name":"/app/pages/api/user/[user_id]/delete-user.ts","layer":"api"},"startTime":1736835506305,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":42518,"timestamp":3481929,"id":519,"parentId":319,"tags":{"name":"/app/pages/api/user/[user_id]/get-user.ts","layer":"api"},"startTime":1736835506305,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":43452,"timestamp":3481680,"id":506,"parentId":309,"tags":{"name":"/app/pages/api/updateDbSchemaDataForUser.ts","layer":"api"},"startTime":1736835506305,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":44547,"timestamp":3481160,"id":488,"parentId":292,"tags":{"name":"/app/pages/api/sendPasswordResetLink.ts","layer":"api"},"startTime":1736835506304,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":44562,"timestamp":3481451,"id":497,"parentId":298,"tags":{"name":"/app/pages/api/social-login/utils/getEmailFromSocialId.ts","layer":"api"},"startTime":1736835506305,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":44893,"timestamp":3481846,"id":516,"parentId":316,"tags":{"name":"/app/pages/api/user-schema/replace-database-schema.ts","layer":"api"},"startTime":1736835506305,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":45867,"timestamp":3481640,"id":505,"parentId":308,"tags":{"name":"/app/pages/api/updateClonedTableForeignKeys.ts","layer":"api"},"startTime":1736835506305,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":47640,"timestamp":3480993,"id":479,"parentId":286,"tags":{"name":"/app/pages/api/renameMedia.ts","layer":"api"},"startTime":1736835506304,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":49454,"timestamp":3480982,"id":478,"parentId":287,"tags":{"name":"/app/pages/api/registerUser.ts","layer":"api"},"startTime":1736835506304,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":49319,"timestamp":3481555,"id":502,"parentId":306,"tags":{"name":"/app/pages/api/unsubscribe.ts","layer":"api"},"startTime":1736835506305,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":50193,"timestamp":3481110,"id":486,"parentId":291,"tags":{"name":"/app/pages/api/sendEmailVerificationLink.ts","layer":"api"},"startTime":1736835506304,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":49674,"timestamp":3482094,"id":525,"parentId":326,"tags":{"name":"/app/pages/api/user/[user_id]/update-user.ts","layer":"api"},"startTime":1736835506305,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":50504,"timestamp":3481757,"id":510,"parentId":310,"tags":{"name":"/app/pages/api/updateDbUser.ts","layer":"api"},"startTime":1736835506305,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":51706,"timestamp":3481820,"id":514,"parentId":314,"tags":{"name":"/app/pages/api/updateUserTable.ts","layer":"api"},"startTime":1736835506305,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":52884,"timestamp":3481073,"id":485,"parentId":288,"tags":{"name":"/app/pages/api/resetDelegatedDatabaseToken.ts","layer":"api"},"startTime":1736835506304,"traceId":"80a02e6b898c9dbf"}] -[{"name":"build-module-ts","duration":52833,"timestamp":3482055,"id":524,"parentId":324,"tags":{"name":"/app/pages/api/user/[user_id]/reauth-user.ts","layer":"api"},"startTime":1736835506305,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":53851,"timestamp":3481420,"id":496,"parentId":297,"tags":{"name":"/app/pages/api/social-login/utils/checkSocialId.ts","layer":"api"},"startTime":1736835506305,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":53816,"timestamp":3481791,"id":512,"parentId":305,"tags":{"name":"/app/pages/api/test/mail.ts","layer":"api"},"startTime":1736835506305,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":54219,"timestamp":3481883,"id":517,"parentId":317,"tags":{"name":"/app/pages/api/user/[user_id]/add-user.ts","layer":"api"},"startTime":1736835506305,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":55249,"timestamp":3481615,"id":504,"parentId":307,"tags":{"name":"/app/pages/api/updateAdminUserAccess.ts","layer":"api"},"startTime":1736835506305,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":56201,"timestamp":3481728,"id":508,"parentId":311,"tags":{"name":"/app/pages/api/updateTableEntry.ts","layer":"api"},"startTime":1736835506305,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":57051,"timestamp":3481743,"id":509,"parentId":313,"tags":{"name":"/app/pages/api/updateUser.ts","layer":"api"},"startTime":1736835506305,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":57433,"timestamp":3481970,"id":521,"parentId":321,"tags":{"name":"/app/pages/api/user/[user_id]/google-login.ts","layer":"api"},"startTime":1736835506305,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":59024,"timestamp":3481541,"id":501,"parentId":301,"tags":{"name":"/app/pages/api/sql-users/update.ts","layer":"api"},"startTime":1736835506305,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":59225,"timestamp":3481804,"id":513,"parentId":302,"tags":{"name":"/app/pages/api/stream/[path].ts","layer":"api"},"startTime":1736835506305,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":59741,"timestamp":3482168,"id":528,"parentId":327,"tags":{"name":"/app/pages/api/webhooks/github-push.ts","layer":"api"},"startTime":1736835506305,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":60365,"timestamp":3481999,"id":522,"parentId":323,"tags":{"name":"/app/pages/api/user/[user_id]/login-user.ts","layer":"api"},"startTime":1736835506305,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":61880,"timestamp":3481141,"id":487,"parentId":290,"tags":{"name":"/app/pages/api/runUserDbQuery.ts","layer":"api"},"startTime":1736835506304,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":62457,"timestamp":3481392,"id":495,"parentId":295,"tags":{"name":"/app/pages/api/social-login/google-auth.ts","layer":"api"},"startTime":1736835506305,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":62532,"timestamp":3481941,"id":520,"parentId":320,"tags":{"name":"/app/pages/api/user/[user_id]/github-login.ts","layer":"api"},"startTime":1736835506305,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":63049,"timestamp":3482028,"id":523,"parentId":322,"tags":{"name":"/app/pages/api/user/[user_id]/grab-google-user-from-token.ts","layer":"api"},"startTime":1736835506305,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":64086,"timestamp":3481530,"id":500,"parentId":300,"tags":{"name":"/app/pages/api/sql-users/delete.ts","layer":"api"},"startTime":1736835506305,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":64760,"timestamp":3481331,"id":493,"parentId":293,"tags":{"name":"/app/pages/api/social-login/facebook-auth.ts","layer":"api"},"startTime":1736835506304,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":65614,"timestamp":3481575,"id":503,"parentId":303,"tags":{"name":"/app/pages/api/sync-table-data.ts","layer":"api"},"startTime":1736835506305,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":65613,"timestamp":3482123,"id":526,"parentId":325,"tags":{"name":"/app/pages/api/user/[user_id]/send-email-code.ts","layer":"api"},"startTime":1736835506305,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":66216,"timestamp":3481777,"id":511,"parentId":304,"tags":{"name":"/app/pages/api/test/cors.ts","layer":"api"},"startTime":1736835506305,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":67137,"timestamp":3481362,"id":494,"parentId":294,"tags":{"name":"/app/pages/api/social-login/github-auth.ts","layer":"api"},"startTime":1736835506305,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":67775,"timestamp":3481284,"id":492,"parentId":282,"tags":{"name":"/app/pages/api/query/[user_id]/update-schema-from-single-database.ts","layer":"api"},"startTime":1736835506304,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":68195,"timestamp":3481517,"id":499,"parentId":299,"tags":{"name":"/app/pages/api/sql-users/create.ts","layer":"api"},"startTime":1736835506305,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":68972,"timestamp":3481711,"id":507,"parentId":312,"tags":{"name":"/app/pages/api/updateUserDatabase.ts","layer":"api"},"startTime":1736835506305,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":69536,"timestamp":3482155,"id":527,"parentId":328,"tags":{"name":"/app/pages/about.tsx","layer":null},"startTime":1736835506305,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":27450,"timestamp":3660683,"id":529,"parentId":329,"tags":{"name":"/app/pages/admin/[user_id]/api-keys/index.tsx","layer":null},"startTime":1736835506484,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":28194,"timestamp":3660780,"id":530,"parentId":331,"tags":{"name":"/app/pages/admin/[user_id]/connect/index.tsx","layer":null},"startTime":1736835506484,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":34,"timestamp":3693468,"id":534,"parentId":410,"tags":{"name":"next/dist/compiled/next-server/pages.runtime.prod.js","layer":null},"startTime":1736835506517,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":33,"timestamp":3693521,"id":535,"parentId":412,"tags":{"name":"next/dist/compiled/next-server/pages-api.runtime.prod.js","layer":null},"startTime":1736835506517,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":11,"timestamp":3693679,"id":539,"parentId":419,"tags":{"name":"fs","layer":null},"startTime":1736835506517,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":5,"timestamp":3693734,"id":540,"parentId":419,"tags":{"name":"path","layer":null},"startTime":1736835506517,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":5,"timestamp":3693761,"id":541,"parentId":425,"tags":{"name":"child_process","layer":null},"startTime":1736835506517,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":20726,"timestamp":3693441,"id":533,"parentId":404,"tags":{"name":"/app/node_modules/next/script.js","layer":null},"startTime":1736835506517,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":23002,"timestamp":3693295,"id":531,"parentId":330,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/edit-database.tsx","layer":null},"startTime":1736835506516,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":23825,"timestamp":3693610,"id":537,"parentId":333,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/schema.tsx","layer":null},"startTime":1736835506517,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":24636,"timestamp":3693894,"id":545,"parentId":340,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/tables/[single_table]/fields.tsx","layer":null},"startTime":1736835506517,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":25248,"timestamp":3694198,"id":553,"parentId":346,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/users/add-social-logins.tsx","layer":null},"startTime":1736835506517,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":27018,"timestamp":3693562,"id":536,"parentId":332,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/connect.tsx","layer":null},"startTime":1736835506517,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":27766,"timestamp":3693825,"id":543,"parentId":334,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/index.tsx","layer":null},"startTime":1736835506517,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":28557,"timestamp":3693785,"id":542,"parentId":336,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/shell.tsx","layer":null},"startTime":1736835506517,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":29470,"timestamp":3693854,"id":544,"parentId":335,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/tables/[single_table]/edit-table.tsx","layer":null},"startTime":1736835506517,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":29707,"timestamp":3694176,"id":552,"parentId":347,"tags":{"name":"/app/pages/admin/[user_id]/databases/add-database.tsx","layer":null},"startTime":1736835506517,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":30632,"timestamp":3693972,"id":547,"parentId":342,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/tables/add-table.tsx","layer":null},"startTime":1736835506517,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":31326,"timestamp":3694057,"id":549,"parentId":337,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/add-entry.tsx","layer":null},"startTime":1736835506517,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":32153,"timestamp":3693939,"id":546,"parentId":344,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/tables/index.tsx","layer":null},"startTime":1736835506517,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":32954,"timestamp":3694009,"id":548,"parentId":343,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/tables/[single_table]/index.tsx","layer":null},"startTime":1736835506517,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":33980,"timestamp":3694105,"id":550,"parentId":338,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/index.tsx","layer":null},"startTime":1736835506517,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":34841,"timestamp":3694144,"id":551,"parentId":339,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/[single_entry].tsx","layer":null},"startTime":1736835506517,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":36840,"timestamp":3694252,"id":555,"parentId":341,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/users/[user]/change-password.tsx","layer":null},"startTime":1736835506517,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":37444,"timestamp":3694288,"id":556,"parentId":345,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/users/[user]/index.tsx","layer":null},"startTime":1736835506517,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":38223,"timestamp":3694228,"id":554,"parentId":348,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/users/index.tsx","layer":null},"startTime":1736835506517,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":41591,"timestamp":3693396,"id":532,"parentId":406,"tags":{"name":"/app/node_modules/next/dist/shared/lib/head.js","layer":null},"startTime":1736835506517,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":52272,"timestamp":3693642,"id":538,"parentId":411,"tags":{"name":"/app/node_modules/next/dist/pages/_document.js","layer":null},"startTime":1736835506517,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":1378972,"timestamp":2368755,"id":79,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fhealthcheck&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fhealthcheck.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736835505192,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":1378852,"timestamp":2368931,"id":112,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Ftest%2Fcors&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Ftest%2Fcors.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736835505192,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":1379506,"timestamp":2368331,"id":36,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fadmin%2FclientError&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fadmin%2FclientError.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736835505191,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":1378972,"timestamp":2368925,"id":110,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fstream%2F%5Bpath%5D&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fstream%2F%5Bpath%5D.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736835505192,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":7523,"timestamp":3943090,"id":568,"parentId":357,"tags":{"name":"/app/pages/admin/[user_id]/users/databases/[database]/[user].tsx","layer":null},"startTime":1736835506766,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":8310,"timestamp":3942873,"id":558,"parentId":349,"tags":{"name":"/app/pages/admin/[user_id]/databases/index.tsx","layer":null},"startTime":1736835506766,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":8911,"timestamp":3942806,"id":557,"parentId":350,"tags":{"name":"/app/pages/admin/[user_id]/index.tsx","layer":null},"startTime":1736835506766,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":9220,"timestamp":3943062,"id":567,"parentId":359,"tags":{"name":"/app/pages/admin/[user_id]/users/databases/index.tsx","layer":null},"startTime":1736835506766,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":9761,"timestamp":3943006,"id":564,"parentId":361,"tags":{"name":"/app/pages/admin/index.tsx","layer":null},"startTime":1736835506766,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":10706,"timestamp":3942933,"id":560,"parentId":355,"tags":{"name":"/app/pages/admin/[user_id]/settings.tsx","layer":null},"startTime":1736835506766,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":12478,"timestamp":3943041,"id":566,"parentId":360,"tags":{"name":"/app/pages/admin/[user_id]/users/index.tsx","layer":null},"startTime":1736835506766,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":13972,"timestamp":3942906,"id":559,"parentId":351,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/users/add-user.tsx","layer":null},"startTime":1736835506766,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":15064,"timestamp":3942944,"id":561,"parentId":353,"tags":{"name":"/app/pages/admin/[user_id]/schema.tsx","layer":null},"startTime":1736835506766,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":15816,"timestamp":3943016,"id":565,"parentId":356,"tags":{"name":"/app/pages/admin/[user_id]/users/add-user.tsx","layer":null},"startTime":1736835506766,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":16661,"timestamp":3943110,"id":569,"parentId":358,"tags":{"name":"/app/pages/admin/[user_id]/users/databases/[database]/index.tsx","layer":null},"startTime":1736835506766,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":17888,"timestamp":3943137,"id":570,"parentId":365,"tags":{"name":"/app/pages/api/query/[user_id]/add-file.ts","layer":"api"},"startTime":1736835506766,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":19573,"timestamp":3942979,"id":563,"parentId":354,"tags":{"name":"/app/pages/admin/[user_id]/media/index.tsx","layer":null},"startTime":1736835506766,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":21221,"timestamp":3942956,"id":562,"parentId":352,"tags":{"name":"/app/pages/admin/[user_id]/media/[...folder].tsx","layer":null},"startTime":1736835506766,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":22009,"timestamp":3943183,"id":572,"parentId":367,"tags":{"name":"/app/pages/api/query/[user_id]/get-private-file.ts","layer":"api"},"startTime":1736835506766,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":22949,"timestamp":3943160,"id":571,"parentId":366,"tags":{"name":"/app/pages/api/query/[user_id]/add-image.ts","layer":"api"},"startTime":1736835506766,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":32,"timestamp":4043157,"id":580,"parentId":427,"tags":{"name":"os","layer":null},"startTime":1736835506866,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":16607,"timestamp":4043071,"id":576,"parentId":364,"tags":{"name":"/app/pages/api/fetch-media.ts","layer":"api"},"startTime":1736835506866,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":17021,"timestamp":4043059,"id":575,"parentId":363,"tags":{"name":"/app/pages/api/exportTableData.ts","layer":"api"},"startTime":1736835506866,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":17392,"timestamp":4043209,"id":581,"parentId":374,"tags":{"name":"/app/pages/docs/index.tsx","layer":null},"startTime":1736835506866,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":18089,"timestamp":4043137,"id":579,"parentId":371,"tags":{"name":"/app/pages/contact.tsx","layer":null},"startTime":1736835506866,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":18424,"timestamp":4043222,"id":582,"parentId":370,"tags":{"name":"/app/pages/blog/index.tsx","layer":null},"startTime":1736835506866,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":18944,"timestamp":4043235,"id":583,"parentId":376,"tags":{"name":"/app/pages/index.tsx","layer":null},"startTime":1736835506866,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":19838,"timestamp":4042946,"id":573,"parentId":369,"tags":{"name":"/app/pages/api/query/[user_id]/post.ts","layer":"api"},"startTime":1736835506866,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":20065,"timestamp":4043245,"id":584,"parentId":378,"tags":{"name":"/app/pages/login.tsx","layer":null},"startTime":1736835506866,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":21073,"timestamp":4043089,"id":577,"parentId":368,"tags":{"name":"/app/pages/api/query/[user_id]/delete-file.ts","layer":"api"},"startTime":1736835506866,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":22367,"timestamp":4043118,"id":578,"parentId":372,"tags":{"name":"/app/pages/create-account.tsx","layer":null},"startTime":1736835506866,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":23341,"timestamp":4043255,"id":585,"parentId":375,"tags":{"name":"/app/pages/docs/[page]/index.tsx","layer":null},"startTime":1736835506866,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":24766,"timestamp":4043267,"id":586,"parentId":373,"tags":{"name":"/app/pages/docs/[page]/[sub-page]/index.tsx","layer":null},"startTime":1736835506866,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":26873,"timestamp":4043046,"id":574,"parentId":362,"tags":{"name":"/app/pages/api/addUserMedia.ts","layer":"api"},"startTime":1736835506866,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":1703482,"timestamp":2369229,"id":173,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Ffetch-media&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Ffetch-media.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736835505192,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":15361,"timestamp":4126816,"id":593,"parentId":382,"tags":{"name":"/app/pages/su/backups.tsx","layer":null},"startTime":1736835506950,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":15781,"timestamp":4126849,"id":596,"parentId":392,"tags":{"name":"/app/pages/su/error-logs.tsx","layer":null},"startTime":1736835506950,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":16220,"timestamp":4126830,"id":594,"parentId":385,"tags":{"name":"/app/pages/su/console.tsx","layer":null},"startTime":1736835506950,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":16944,"timestamp":4126744,"id":588,"parentId":379,"tags":{"name":"/app/pages/privacy.tsx","layer":null},"startTime":1736835506950,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":17350,"timestamp":4126840,"id":595,"parentId":393,"tags":{"name":"/app/pages/su/index.tsx","layer":null},"startTime":1736835506950,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":17807,"timestamp":4126874,"id":598,"parentId":386,"tags":{"name":"/app/pages/su/docs/create-page.tsx","layer":null},"startTime":1736835506950,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":18261,"timestamp":4126894,"id":600,"parentId":388,"tags":{"name":"/app/pages/su/docs/index.tsx","layer":null},"startTime":1736835506950,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":19387,"timestamp":4126864,"id":597,"parentId":391,"tags":{"name":"/app/pages/su/envar.tsx","layer":null},"startTime":1736835506950,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":20475,"timestamp":4126646,"id":587,"parentId":380,"tags":{"name":"/app/pages/redirect.tsx","layer":null},"startTime":1736835506950,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":20660,"timestamp":4126885,"id":599,"parentId":387,"tags":{"name":"/app/pages/su/docs/edit-page.tsx","layer":null},"startTime":1736835506950,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":21478,"timestamp":4126808,"id":592,"parentId":384,"tags":{"name":"/app/pages/send-password-reset-link.tsx","layer":null},"startTime":1736835506950,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":22129,"timestamp":4126902,"id":601,"parentId":395,"tags":{"name":"/app/pages/su/login.tsx","layer":null},"startTime":1736835506950,"traceId":"80a02e6b898c9dbf"}] -[{"name":"build-module-tsx","duration":24317,"timestamp":4126761,"id":589,"parentId":381,"tags":{"name":"/app/pages/logout.tsx","layer":null},"startTime":1736835506950,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":25721,"timestamp":4126772,"id":590,"parentId":377,"tags":{"name":"/app/pages/email-verification/index.tsx","layer":null},"startTime":1736835506950,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":27170,"timestamp":4126795,"id":591,"parentId":383,"tags":{"name":"/app/pages/reset-password.tsx","layer":null},"startTime":1736835506950,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":44,"timestamp":4238112,"id":611,"parentId":417,"tags":{"name":"generate-password","layer":null},"startTime":1736835507061,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":7,"timestamp":4238177,"id":612,"parentId":415,"tags":{"name":"lodash","layer":null},"startTime":1736835507061,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-css","duration":1745,"timestamp":4238240,"id":614,"parentId":404,"tags":{"name":"/app/styles/less.css","layer":null},"startTime":1736835507061,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-css","duration":1332,"timestamp":4238771,"id":615,"parentId":404,"tags":{"name":"/app/styles/tailwind.css","layer":null},"startTime":1736835507062,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-json","duration":1799,"timestamp":4238803,"id":616,"parentId":422,"tags":{"name":"/app/package-shared/data/defaultFields.json","layer":"api"},"startTime":1736835507062,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-json","duration":1832,"timestamp":4238847,"id":617,"parentId":422,"tags":{"name":"/app/package-shared/data/presets/users.json","layer":"api"},"startTime":1736835507062,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-cjs","duration":8634,"timestamp":4238194,"id":613,"parentId":406,"tags":{"name":"/app/node_modules/@swc/helpers/cjs/_interop_require_default.cjs","layer":null},"startTime":1736835507061,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":9702,"timestamp":4238029,"id":605,"parentId":390,"tags":{"name":"/app/pages/su/docs/pages/index.tsx","layer":null},"startTime":1736835507061,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":10429,"timestamp":4238015,"id":604,"parentId":389,"tags":{"name":"/app/pages/su/docs/pages/[id].tsx","layer":null},"startTime":1736835507061,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":11125,"timestamp":4238059,"id":607,"parentId":400,"tags":{"name":"/app/pages/terms.tsx","layer":null},"startTime":1736835507061,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":11591,"timestamp":4238875,"id":618,"parentId":404,"tags":{"name":"/app/components/ErrorBoundary.tsx","layer":null},"startTime":1736835507062,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":12847,"timestamp":4238098,"id":610,"parentId":399,"tags":{"name":"/app/pages/su/users/new.tsx","layer":null},"startTime":1736835507061,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":12552,"timestamp":4238897,"id":619,"parentId":413,"tags":{"name":"/app/components/general/PageHeadTags.tsx","layer":null},"startTime":1736835507062,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":13847,"timestamp":4238085,"id":609,"parentId":398,"tags":{"name":"/app/pages/su/users/index.tsx","layer":null},"startTime":1736835507061,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":14492,"timestamp":4237880,"id":602,"parentId":394,"tags":{"name":"/app/pages/su/load-balancing.tsx","layer":null},"startTime":1736835507061,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":14840,"timestamp":4238075,"id":608,"parentId":397,"tags":{"name":"/app/pages/su/users/[single].tsx","layer":null},"startTime":1736835507061,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":15617,"timestamp":4237981,"id":603,"parentId":396,"tags":{"name":"/app/pages/su/servers.tsx","layer":null},"startTime":1736835507061,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":16432,"timestamp":4238041,"id":606,"parentId":401,"tags":{"name":"/app/pages/unsubscribe.tsx","layer":null},"startTime":1736835507061,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":32,"timestamp":4290778,"id":630,"parentId":458,"tags":{"name":"util","layer":null},"startTime":1736835507114,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":6,"timestamp":4290833,"id":631,"parentId":458,"tags":{"name":"url","layer":null},"startTime":1736835507114,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":5611,"timestamp":4290536,"id":621,"parentId":414,"tags":{"name":"/app/functions/frontend/fetchApi.ts","layer":null},"startTime":1736835507114,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":5921,"timestamp":4290678,"id":626,"parentId":418,"tags":{"name":"/app/package-shared/functions/dsql/hashPassword.ts","layer":"api"},"startTime":1736835507114,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":6518,"timestamp":4290465,"id":620,"parentId":413,"tags":{"name":"/app/functions/frontend/clientAuthUser.ts","layer":null},"startTime":1736835507114,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":7012,"timestamp":4290651,"id":625,"parentId":424,"tags":{"name":"/app/package-shared/functions/backend/handleNodemailer.ts","layer":"api"},"startTime":1736835507114,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":7496,"timestamp":4290572,"id":622,"parentId":413,"tags":{"name":"/app/layouts/GeneralLayout.tsx","layer":null},"startTime":1736835507114,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":7863,"timestamp":4290701,"id":627,"parentId":417,"tags":{"name":"/app/package-shared/functions/dsql/encrypt.ts","layer":"api"},"startTime":1736835507114,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":8653,"timestamp":4290589,"id":623,"parentId":417,"tags":{"name":"/app/package-shared/functions/backend/serverError.ts","layer":"api"},"startTime":1736835507114,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":9155,"timestamp":4290847,"id":632,"parentId":432,"tags":{"name":"/app/package-shared/functions/backend/varDatabaseDbHandler.ts","layer":"api"},"startTime":1736835507114,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":10231,"timestamp":4290620,"id":624,"parentId":416,"tags":{"name":"/app/package-shared/functions/backend/addAdminUserOnLogin.ts","layer":"api"},"startTime":1736835507114,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":12104,"timestamp":4290750,"id":629,"parentId":419,"tags":{"name":"/app/package-shared/functions/backend/db/sanitizeSql.ts","layer":"api"},"startTime":1736835507114,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":14119,"timestamp":4290727,"id":628,"parentId":418,"tags":{"name":"/app/package-shared/functions/backend/db/addDbEntry.ts","layer":"api"},"startTime":1736835507114,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":7153,"timestamp":4325132,"id":634,"parentId":421,"tags":{"name":"/app/package-shared/functions/backend/setUserSchemaData.ts","layer":"api"},"startTime":1736835507148,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":7587,"timestamp":4324999,"id":633,"parentId":421,"tags":{"name":"/app/package-shared/functions/backend/grabUserSchemaData.ts","layer":"api"},"startTime":1736835507148,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":7719,"timestamp":4325318,"id":640,"parentId":425,"tags":{"name":"/app/functions/backend/suAdminUserAuth.ts","layer":"api"},"startTime":1736835507148,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":8194,"timestamp":4325300,"id":639,"parentId":420,"tags":{"name":"/app/functions/backend/checkUserRights.ts","layer":"api"},"startTime":1736835507148,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":8945,"timestamp":4325174,"id":635,"parentId":441,"tags":{"name":"/app/package-shared/functions/dsql/decrypt.ts","layer":"api"},"startTime":1736835507148,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":9394,"timestamp":4325266,"id":638,"parentId":420,"tags":{"name":"/app/functions/backend/grabDelegatedUserFromCookie.ts","layer":"api"},"startTime":1736835507148,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":10249,"timestamp":4325208,"id":636,"parentId":441,"tags":{"name":"/app/package-shared/functions/backend/api-cred.ts","layer":"api"},"startTime":1736835507148,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":11237,"timestamp":4325251,"id":637,"parentId":416,"tags":{"name":"/app/functions/backend/userAuth.ts","layer":"api"},"startTime":1736835507148,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":1976390,"timestamp":2368828,"id":89,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fquery%2F%5Buser_id%5D%2Fget-schema&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fquery%2F%5Buser_id%5D%2Fget-schema.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736835505192,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":14872,"timestamp":4339049,"id":645,"parentId":436,"tags":{"name":"/app/functions/backend/admin/grabChildPages.ts","layer":"api"},"startTime":1736835507162,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":15109,"timestamp":4339114,"id":646,"parentId":436,"tags":{"name":"/app/functions/backend/admin/grabParentPages.ts","layer":"api"},"startTime":1736835507162,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":15294,"timestamp":4339149,"id":647,"parentId":436,"tags":{"name":"/app/functions/backend/admin/deleteDocPage.ts","layer":"api"},"startTime":1736835507162,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":15808,"timestamp":4339017,"id":644,"parentId":436,"tags":{"name":"/app/functions/backend/admin/getSnippets.ts","layer":"api"},"startTime":1736835507162,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":16448,"timestamp":4338847,"id":641,"parentId":427,"tags":{"name":"/app/functions/backend/copyFolderRecursively.ts","layer":"api"},"startTime":1736835507162,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":16720,"timestamp":4339181,"id":648,"parentId":436,"tags":{"name":"/app/functions/backend/admin/persistDocs.ts","layer":"api"},"startTime":1736835507162,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":17461,"timestamp":4338984,"id":643,"parentId":436,"tags":{"name":"/app/functions/backend/admin/addDocPage.ts","layer":"api"},"startTime":1736835507162,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":17999,"timestamp":4338944,"id":642,"parentId":420,"tags":{"name":"/app/functions/backend/handleTableEntryOrder.ts","layer":"api"},"startTime":1736835507162,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":31,"timestamp":4359825,"id":653,"parentId":528,"tags":{"name":"http","layer":null},"startTime":1736835507183,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":10,"timestamp":4359868,"id":654,"parentId":528,"tags":{"name":"crypto","layer":null},"startTime":1736835507183,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":11,"timestamp":4360050,"id":661,"parentId":495,"tags":{"name":"google-auth-library","layer":null},"startTime":1736835507183,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":16872,"timestamp":4359750,"id":651,"parentId":441,"tags":{"name":"/app/package-shared/functions/backend/db/deleteDbEntry.ts","layer":"api"},"startTime":1736835507183,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":17455,"timestamp":4359713,"id":650,"parentId":415,"tags":{"name":"/app/package-shared/utils/backend/global-db/DB_HANDLER.ts","layer":"api"},"startTime":1736835507183,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":17580,"timestamp":4359954,"id":657,"parentId":443,"tags":{"name":"/app/package-shared/functions/backend/noDatabaseDbHandler.ts","layer":"api"},"startTime":1736835507183,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":18200,"timestamp":4359782,"id":652,"parentId":442,"tags":{"name":"/app/package-shared/functions/backend/cookies/get-auth-cookie-names.ts","layer":"api"},"startTime":1736835507183,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":18614,"timestamp":4359925,"id":656,"parentId":449,"tags":{"name":"/app/functions/backend/deleteFolderRecursively.ts","layer":"api"},"startTime":1736835507183,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":19289,"timestamp":4359987,"id":658,"parentId":459,"tags":{"name":"/app/functions/backend/dbSchemaExec.ts","layer":"api"},"startTime":1736835507183,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":19969,"timestamp":4360120,"id":663,"parentId":543,"tags":{"name":"/app/functions/backend/grabDelegatedUserFromCookie.ts","layer":null},"startTime":1736835507183,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":20769,"timestamp":4360014,"id":660,"parentId":545,"tags":{"name":"/app/package-shared/functions/backend/serverError.ts","layer":null},"startTime":1736835507183,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":21552,"timestamp":4359999,"id":659,"parentId":537,"tags":{"name":"/app/functions/backend/userAuth.ts","layer":null},"startTime":1736835507183,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":21720,"timestamp":4360201,"id":665,"parentId":529,"tags":{"name":"/app/package-shared/utils/backend/global-db/DB_HANDLER.ts","layer":null},"startTime":1736835507183,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":23252,"timestamp":4359887,"id":655,"parentId":515,"tags":{"name":"/app/package-shared/functions/backend/db/updateDbEntry.ts","layer":"api"},"startTime":1736835507183,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":23602,"timestamp":4360170,"id":664,"parentId":529,"tags":{"name":"/app/package-shared/functions/dsql/decrypt.ts","layer":null},"startTime":1736835507183,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":24149,"timestamp":4360254,"id":667,"parentId":463,"tags":{"name":"/app/functions/backend/grabPaths.ts","layer":"api"},"startTime":1736835507183,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":25490,"timestamp":4360228,"id":666,"parentId":461,"tags":{"name":"/app/package-shared/functions/backend/httpsRequest.ts","layer":"api"},"startTime":1736835507183,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":27979,"timestamp":4359615,"id":649,"parentId":421,"tags":{"name":"/app/package-shared/shell/createDbFromSchema.ts","layer":"api"},"startTime":1736835507183,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":32342,"timestamp":4360070,"id":662,"parentId":533,"tags":{"name":"/app/node_modules/next/dist/client/script.js","layer":null},"startTime":1736835507183,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":2024620,"timestamp":2369060,"id":135,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fwebhooks%2Fgithub-push&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fwebhooks%2Fgithub-push.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736835505192,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":2024732,"timestamp":2369036,"id":130,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fuser%2F%5Buser_id%5D%2Fgrab-google-user-from-token&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fuser%2F%5Buser_id%5D%2Fgrab-google-user-from-token.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736835505192,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":2024981,"timestamp":2368859,"id":97,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FresetPassword&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FresetPassword.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736835505192,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":2024972,"timestamp":2368901,"id":104,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fsocial-login%2Futils%2FcheckEmail&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fsocial-login%2Futils%2FcheckEmail.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736835505192,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":2025002,"timestamp":2368908,"id":106,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fsocial-login%2Futils%2FgetEmailFromSocialId&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fsocial-login%2Futils%2FgetEmailFromSocialId.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736835505192,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":2025034,"timestamp":2368905,"id":105,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fsocial-login%2Futils%2FcheckSocialId&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fsocial-login%2Futils%2FcheckSocialId.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736835505192,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":2025246,"timestamp":2368795,"id":84,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FlogoutUser&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FlogoutUser.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736835505192,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":2026134,"timestamp":2369241,"id":176,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fquery%2F%5Buser_id%5D%2Fget-private-file&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fquery%2F%5Buser_id%5D%2Fget-private-file.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736835505192,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":19907,"timestamp":4395260,"id":669,"parentId":552,"tags":{"name":"/app/package-shared/functions/backend/noDatabaseDbHandler.ts","layer":null},"startTime":1736835507218,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":20697,"timestamp":4395169,"id":668,"parentId":465,"tags":{"name":"/app/functions/backend/exportDb.ts","layer":"api"},"startTime":1736835507218,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":21440,"timestamp":4395308,"id":670,"parentId":537,"tags":{"name":"/app/package-shared/functions/backend/varDatabaseDbHandler.ts","layer":null},"startTime":1736835507218,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-json","duration":1418,"timestamp":4422125,"id":685,"parentId":547,"tags":{"name":"/app/package-shared/data/defaultFields.json","layer":null},"startTime":1736835507245,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":2070507,"timestamp":2368293,"id":33,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fadmin%2FclearErrorLogs&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fadmin%2FclearErrorLogs.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736835505191,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":2070624,"timestamp":2368316,"id":35,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fadmin%2FcreateNewBackup&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fadmin%2FcreateNewBackup.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736835505191,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":2070678,"timestamp":2368303,"id":34,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fadmin%2FaddUserBackup&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fadmin%2FaddUserBackup.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736835505191,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":2070600,"timestamp":2368414,"id":42,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fadmin%2FgrabErrorLogs&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fadmin%2FgrabErrorLogs.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736835505192,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":2070628,"timestamp":2368408,"id":41,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fadmin%2FgrabBackups&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fadmin%2FgrabBackups.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736835505192,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":2070662,"timestamp":2368395,"id":40,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fadmin%2FgetUserData&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fadmin%2FgetUserData.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736835505192,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":2070707,"timestamp":2368373,"id":39,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fadmin%2FgetUserBackups&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fadmin%2FgetUserBackups.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736835505192,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":2070687,"timestamp":2368418,"id":43,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fadmin%2FgrabFile&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fadmin%2FgrabFile.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736835505192,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":2070692,"timestamp":2368436,"id":46,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fadmin%2FupdateEnv&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fadmin%2FupdateEnv.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736835505192,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":2070901,"timestamp":2368249,"id":27,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FaddNewMediaFolder&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FaddNewMediaFolder.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736835505191,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":2070916,"timestamp":2368255,"id":28,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FaddSocialLogin&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FaddSocialLogin.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736835505191,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":2070742,"timestamp":2368450,"id":49,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FcheckExistingFolder&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FcheckExistingFolder.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736835505192,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":2070769,"timestamp":2368445,"id":48,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FchangeDbUserPassword&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FchangeDbUserPassword.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736835505192,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":2070777,"timestamp":2368455,"id":50,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FclientSideAuth&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FclientSideAuth.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736835505192,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":2070597,"timestamp":2368657,"id":59,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FdeleteInvitation&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FdeleteInvitation.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736835505192,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":2070616,"timestamp":2368662,"id":60,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FdeleteMediaFolder&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FdeleteMediaFolder.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736835505192,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":2070629,"timestamp":2368669,"id":62,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FdeleteUser&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FdeleteUser.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736835505192,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":2070634,"timestamp":2368687,"id":67,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FdeleteUserUser&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FdeleteUserUser.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736835505192,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":2070634,"timestamp":2368706,"id":71,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FgetDatabaseTables&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FgetDatabaseTables.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736835505192,"traceId":"80a02e6b898c9dbf"}] -[{"name":"add-entry","duration":2071072,"timestamp":2368681,"id":66,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FdownloadDatabaseSchema&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FdownloadDatabaseSchema.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736835505192,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":2071061,"timestamp":2368727,"id":73,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FgetDelegatedDatabases&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FgetDelegatedDatabases.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736835505192,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":2071093,"timestamp":2368738,"id":75,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FgetUserDatabaseTables&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FgetUserDatabaseTables.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736835505192,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":2071159,"timestamp":2368741,"id":76,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FgetUserDatabases&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FgetUserDatabases.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736835505192,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":2071237,"timestamp":2368692,"id":68,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FexportDatabase&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FexportDatabase.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736835505192,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":2071209,"timestamp":2368747,"id":77,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FgetUserMedia&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FgetUserMedia.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736835505192,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":2071235,"timestamp":2368750,"id":78,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FgetUserSchemaData&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FgetUserSchemaData.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736835505192,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":2071309,"timestamp":2368703,"id":70,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fget-authorized-databases&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fget-authorized-databases.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736835505192,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":2071306,"timestamp":2368732,"id":74,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FgetDiskUsage&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FgetDiskUsage.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736835505192,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":2071251,"timestamp":2368808,"id":87,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FpurgeDb&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FpurgeDb.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736835505192,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":2071284,"timestamp":2368798,"id":85,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fmedia%2FaddPrivateMedia&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fmedia%2FaddPrivateMedia.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736835505192,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":2071262,"timestamp":2368843,"id":94,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FrenameMedia&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FrenameMedia.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736835505192,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":2071286,"timestamp":2368856,"id":96,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FresetDelegatedDatabaseToken&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FresetDelegatedDatabaseToken.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736835505192,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":2071365,"timestamp":2368803,"id":86,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fmedia%2FgetPrivateMedia&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fmedia%2FgetPrivateMedia.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736835505192,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":2071282,"timestamp":2368917,"id":108,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fsql-users%2Fdelete&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fsql-users%2Fdelete.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736835505192,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":24126,"timestamp":4421547,"id":672,"parentId":469,"tags":{"name":"/app/functions/backend/delay.ts","layer":"api"},"startTime":1736835507245,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":24807,"timestamp":4421386,"id":671,"parentId":537,"tags":{"name":"/app/package-shared/functions/backend/grabUserSchemaData.ts","layer":null},"startTime":1736835507245,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":24905,"timestamp":4421885,"id":677,"parentId":519,"tags":{"name":"/app/package-shared/functions/api/users/api-get-user.ts","layer":"api"},"startTime":1736835507245,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":25317,"timestamp":4421851,"id":676,"parentId":518,"tags":{"name":"/app/package-shared/functions/api/users/api-delete-user.ts","layer":"api"},"startTime":1736835507245,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":25804,"timestamp":4421973,"id":680,"parentId":524,"tags":{"name":"/app/package-shared/functions/api/users/api-reauth-user.ts","layer":"api"},"startTime":1736835507245,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":26241,"timestamp":4422007,"id":681,"parentId":478,"tags":{"name":"/app/package-shared/functions/backend/addMariadbUser.ts","layer":"api"},"startTime":1736835507245,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":26867,"timestamp":4421915,"id":678,"parentId":490,"tags":{"name":"/app/package-shared/functions/api/query/get.ts","layer":"api"},"startTime":1736835507245,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":27360,"timestamp":4421944,"id":679,"parentId":525,"tags":{"name":"/app/package-shared/functions/api/users/api-update-user.ts","layer":"api"},"startTime":1736835507245,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":28090,"timestamp":4421776,"id":674,"parentId":480,"tags":{"name":"/app/functions/backend/reAuthUser.ts","layer":"api"},"startTime":1736835507245,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":28188,"timestamp":4422094,"id":684,"parentId":494,"tags":{"name":"/app/package-shared/functions/api/social-login/githubLogin.ts","layer":"api"},"startTime":1736835507245,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":28758,"timestamp":4422064,"id":683,"parentId":509,"tags":{"name":"/app/functions/backend/fsWriteImageToDisk.ts","layer":"api"},"startTime":1736835507245,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":29917,"timestamp":4421805,"id":675,"parentId":506,"tags":{"name":"/app/functions/backend/updateSchemaData.ts","layer":"api"},"startTime":1736835507245,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":29739,"timestamp":4422375,"id":691,"parentId":503,"tags":{"name":"/app/functions/backend/delegatedUser.ts","layer":"api"},"startTime":1736835507246,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":30943,"timestamp":4422036,"id":682,"parentId":517,"tags":{"name":"/app/package-shared/functions/api/users/api-create-user.ts","layer":"api"},"startTime":1736835507245,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":32520,"timestamp":4421588,"id":673,"parentId":472,"tags":{"name":"/app/functions/backend/createDbSchemaFromDb.ts","layer":"api"},"startTime":1736835507245,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":32428,"timestamp":4422289,"id":689,"parentId":521,"tags":{"name":"/app/package-shared/functions/api/users/social/api-google-login.ts","layer":"api"},"startTime":1736835507245,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":33109,"timestamp":4422329,"id":690,"parentId":494,"tags":{"name":"/app/package-shared/shell/utils/camelJoinedtoCamelSpace.ts","layer":"api"},"startTime":1736835507245,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":33561,"timestamp":4422455,"id":693,"parentId":520,"tags":{"name":"/app/package-shared/functions/api/users/social/api-github-login.ts","layer":"api"},"startTime":1736835507246,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":34375,"timestamp":4422188,"id":687,"parentId":503,"tags":{"name":"/app/functions/backend/importExportTableDataFn.ts","layer":"api"},"startTime":1736835507245,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":34985,"timestamp":4422505,"id":694,"parentId":522,"tags":{"name":"/app/package-shared/functions/api/users/api-login.ts","layer":"api"},"startTime":1736835507246,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":35614,"timestamp":4422606,"id":697,"parentId":552,"tags":{"name":"/app/layouts/AdminLayout.tsx","layer":null},"startTime":1736835507246,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":36669,"timestamp":4422404,"id":692,"parentId":526,"tags":{"name":"/app/package-shared/functions/api/users/api-send-email-code.ts","layer":"api"},"startTime":1736835507246,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":37910,"timestamp":4422149,"id":686,"parentId":495,"tags":{"name":"/app/package-shared/functions/api/social-login/handleSocialDb.ts","layer":"api"},"startTime":1736835507245,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":39251,"timestamp":4422250,"id":688,"parentId":501,"tags":{"name":"/app/package-shared/shell/mariadb-users/refreshUsersAndGrants.ts","layer":"api"},"startTime":1736835507245,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":41460,"timestamp":4422572,"id":696,"parentId":532,"tags":{"name":"/app/node_modules/next/dist/shared/lib/amp-mode.js","layer":null},"startTime":1736835507246,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":42190,"timestamp":4422536,"id":695,"parentId":532,"tags":{"name":"/app/node_modules/next/dist/shared/lib/side-effect.js","layer":null},"startTime":1736835507246,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":2112500,"timestamp":2368837,"id":92,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FreAuthenticateUser&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FreAuthenticateUser.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736835505192,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":2113875,"timestamp":2369025,"id":127,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fuser%2F%5Buser_id%5D%2Fget-user&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fuser%2F%5Buser_id%5D%2Fget-user.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736835505192,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":2113899,"timestamp":2369047,"id":132,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fuser%2F%5Buser_id%5D%2Freauth-user&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fuser%2F%5Buser_id%5D%2Freauth-user.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736835505192,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":2114603,"timestamp":2369022,"id":126,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fuser%2F%5Buser_id%5D%2Fdelete-user&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fuser%2F%5Buser_id%5D%2Fdelete-user.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736835505192,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":2114606,"timestamp":2369057,"id":134,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fuser%2F%5Buser_id%5D%2Fupdate-user&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fuser%2F%5Buser_id%5D%2Fupdate-user.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736835505192,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":2136394,"timestamp":2368928,"id":111,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fsync-table-data&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fsync-table-data.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736835505192,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":2136196,"timestamp":2369225,"id":172,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FexportTableData&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FexportTableData.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736835505192,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":2136409,"timestamp":2369039,"id":131,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fuser%2F%5Buser_id%5D%2Flogin-user&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fuser%2F%5Buser_id%5D%2Flogin-user.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736835505192,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":16388,"timestamp":4499966,"id":702,"parentId":538,"tags":{"name":"/app/node_modules/next/dist/server/get-page-files.js","layer":null},"startTime":1736835507323,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":17293,"timestamp":4499994,"id":703,"parentId":538,"tags":{"name":"/app/node_modules/next/dist/server/htmlescape.js","layer":null},"startTime":1736835507323,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":18072,"timestamp":4500060,"id":705,"parentId":538,"tags":{"name":"/app/node_modules/next/dist/lib/is-error.js","layer":null},"startTime":1736835507323,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-cjs","duration":18973,"timestamp":4500091,"id":706,"parentId":532,"tags":{"name":"/app/node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","layer":null},"startTime":1736835507323,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":19528,"timestamp":4500172,"id":707,"parentId":530,"tags":{"name":"/app/components/admin/connect/ConnectContent.tsx","layer":null},"startTime":1736835507323,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":20319,"timestamp":4499919,"id":700,"parentId":527,"tags":{"name":"/app/components/pages/homepage/FooterCta.tsx","layer":null},"startTime":1736835507323,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":20640,"timestamp":4499950,"id":701,"parentId":527,"tags":{"name":"/app/components/pages/about/Hero.tsx","layer":null},"startTime":1736835507323,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":21097,"timestamp":4499884,"id":699,"parentId":527,"tags":{"name":"/app/components/pages/homepage/BriefIntroSection.tsx","layer":null},"startTime":1736835507323,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":21243,"timestamp":4500230,"id":708,"parentId":530,"tags":{"name":"/app/components/admin/connect/EditMariadbUserPopup.tsx","layer":null},"startTime":1736835507323,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":24928,"timestamp":4499774,"id":698,"parentId":532,"tags":{"name":"/app/node_modules/next/dist/shared/lib/utils/warn-once.js","layer":null},"startTime":1736835507323,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":26795,"timestamp":4500027,"id":704,"parentId":538,"tags":{"name":"/app/node_modules/next/dist/shared/lib/constants.js","layer":null},"startTime":1736835507323,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":12919,"timestamp":4529553,"id":712,"parentId":538,"tags":{"name":"/app/node_modules/next/dist/server/utils.js","layer":null},"startTime":1736835507353,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":13803,"timestamp":4529631,"id":714,"parentId":538,"tags":{"name":"/app/node_modules/next/dist/lib/pretty-bytes.js","layer":null},"startTime":1736835507353,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":14560,"timestamp":4529478,"id":710,"parentId":529,"tags":{"name":"/app/components/admin/api-keys/TargetApiKeyPreviewPopup.tsx","layer":null},"startTime":1736835507353,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":15259,"timestamp":4529352,"id":709,"parentId":529,"tags":{"name":"/app/components/admin/api-keys/ApiKeysContent.tsx","layer":null},"startTime":1736835507353,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":16800,"timestamp":4529518,"id":711,"parentId":529,"tags":{"name":"/app/components/admin/api-keys/AddNewApiKeyPopup.tsx","layer":null},"startTime":1736835507353,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":17299,"timestamp":4529588,"id":713,"parentId":538,"tags":{"name":"/app/node_modules/next/dist/shared/lib/encode-uri-path.js","layer":null},"startTime":1736835507353,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":15415,"timestamp":4550436,"id":718,"parentId":538,"tags":{"name":"/app/node_modules/next/dist/server/lib/trace/tracer.js","layer":null},"startTime":1736835507374,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":15988,"timestamp":4550487,"id":719,"parentId":538,"tags":{"name":"/app/node_modules/next/dist/server/lib/trace/utils.js","layer":null},"startTime":1736835507374,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":16881,"timestamp":4550222,"id":715,"parentId":530,"tags":{"name":"/app/components/admin/connect/NewMariadbUserPopup.tsx","layer":null},"startTime":1736835507373,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":17681,"timestamp":4550343,"id":716,"parentId":545,"tags":{"name":"/app/functions/frontend/updateTableAfterFieldsUpdateFunctionExt.ts","layer":null},"startTime":1736835507373,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":19787,"timestamp":4550398,"id":717,"parentId":537,"tags":{"name":"/app/components/general/ExtraContentDatabase.tsx","layer":null},"startTime":1736835507374,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":12622,"timestamp":4571979,"id":720,"parentId":532,"tags":{"name":"/app/node_modules/next/dist/server/route-modules/pages/vendored/contexts/head-manager-context.js","layer":null},"startTime":1736835507395,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":12665,"timestamp":4572096,"id":721,"parentId":532,"tags":{"name":"/app/node_modules/next/dist/server/route-modules/pages/vendored/contexts/amp-context.js","layer":null},"startTime":1736835507395,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":12711,"timestamp":4572178,"id":722,"parentId":538,"tags":{"name":"/app/node_modules/next/dist/server/route-modules/pages/vendored/contexts/html-context.js","layer":null},"startTime":1736835507395,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":13992,"timestamp":4572267,"id":723,"parentId":545,"tags":{"name":"/app/functions/backend/grabTableSchemaData.ts","layer":null},"startTime":1736835507395,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":16095,"timestamp":4572337,"id":724,"parentId":553,"tags":{"name":"/app/components/admin/users/SocialLoginsContent.tsx","layer":null},"startTime":1736835507395,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":20608,"timestamp":4591517,"id":726,"parentId":543,"tags":{"name":"/app/components/admin/databases/DeleteTableConfirmationPopup.tsx","layer":null},"startTime":1736835507415,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":21241,"timestamp":4591406,"id":725,"parentId":552,"tags":{"name":"/app/components/admin/databases/UserMediaPopup.tsx","layer":null},"startTime":1736835507415,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":22009,"timestamp":4591599,"id":728,"parentId":545,"tags":{"name":"/app/components/admin/databases/TableFieldsContent.tsx","layer":null},"startTime":1736835507415,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":23150,"timestamp":4591560,"id":727,"parentId":537,"tags":{"name":"/app/components/admin/databases/DatabaseSchemaContent.tsx","layer":null},"startTime":1736835507415,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":33,"timestamp":4627964,"id":738,"parentId":584,"tags":{"name":"next/head","layer":null},"startTime":1736835507451,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":11065,"timestamp":4628054,"id":740,"parentId":578,"tags":{"name":"/app/package-shared/functions/backend/cookies/get-auth-cookie-names.ts","layer":null},"startTime":1736835507451,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":11740,"timestamp":4627883,"id":735,"parentId":552,"tags":{"name":"/app/components/admin/databases/AddDatabaseContent.tsx","layer":null},"startTime":1736835507451,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":12383,"timestamp":4627610,"id":729,"parentId":531,"tags":{"name":"/app/components/admin/databases/EditDatabaseContent.tsx","layer":null},"startTime":1736835507451,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":12478,"timestamp":4628121,"id":742,"parentId":562,"tags":{"name":"/app/functions/backend/grabPaths.ts","layer":null},"startTime":1736835507451,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":13042,"timestamp":4627936,"id":737,"parentId":547,"tags":{"name":"/app/components/admin/databases/EditFieldPopup.tsx","layer":null},"startTime":1736835507451,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":13358,"timestamp":4627908,"id":736,"parentId":547,"tags":{"name":"/app/components/admin/databases/AddTableContent.tsx","layer":null},"startTime":1736835507451,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":14294,"timestamp":4628020,"id":739,"parentId":578,"tags":{"name":"/app/package-shared/functions/backend/addAdminUserOnLogin.ts","layer":null},"startTime":1736835507451,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":15077,"timestamp":4627728,"id":730,"parentId":536,"tags":{"name":"/app/components/admin/databases/connect/DatabaseConnectContent.tsx","layer":null},"startTime":1736835507451,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":15502,"timestamp":4627771,"id":731,"parentId":543,"tags":{"name":"/app/components/admin/databases/DeleteDatabaseConfirmationPopup.tsx","layer":null},"startTime":1736835507451,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":16025,"timestamp":4627856,"id":734,"parentId":544,"tags":{"name":"/app/components/admin/databases/EditTableContent.tsx","layer":null},"startTime":1736835507451,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":16299,"timestamp":4628092,"id":741,"parentId":549,"tags":{"name":"/app/components/admin/databases/AddTableEntryContent.tsx","layer":null},"startTime":1736835507451,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":16630,"timestamp":4628136,"id":743,"parentId":593,"tags":{"name":"/app/functions/backend/suAdminUserAuth.ts","layer":null},"startTime":1736835507451,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":17959,"timestamp":4627830,"id":733,"parentId":543,"tags":{"name":"/app/components/admin/databases/SingleDatabasesContent.tsx","layer":null},"startTime":1736835507451,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":19186,"timestamp":4627803,"id":732,"parentId":542,"tags":{"name":"/app/components/admin/databases/DatabaseShellContent.tsx","layer":null},"startTime":1736835507451,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":19587,"timestamp":4628149,"id":744,"parentId":546,"tags":{"name":"/app/components/admin/databases/TablesContent.tsx","layer":null},"startTime":1736835507451,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":20949,"timestamp":4628173,"id":745,"parentId":550,"tags":{"name":"/app/components/admin/databases/TableEntriesContent.tsx","layer":null},"startTime":1736835507451,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":39,"timestamp":4734152,"id":749,"parentId":585,"tags":{"name":"serverless-mysql","layer":null},"startTime":1736835507557,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":10,"timestamp":4734370,"id":755,"parentId":585,"tags":{"name":"@moduletrace/datasquirel","layer":null},"startTime":1736835507558,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-css","duration":5880,"timestamp":4734348,"id":754,"parentId":594,"tags":{"name":"/app/node_modules/xterm/css/xterm.css","layer":null},"startTime":1736835507557,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":6557,"timestamp":4734393,"id":756,"parentId":561,"tags":{"name":"/app/components/general/VerificationBanner.tsx","layer":null},"startTime":1736835507558,"traceId":"80a02e6b898c9dbf"}] -[{"name":"build-module-tsx","duration":7608,"timestamp":4734068,"id":747,"parentId":548,"tags":{"name":"/app/layouts/components/GeneralLayout/ScrollToTopButton.tsx","layer":null},"startTime":1736835507557,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":7914,"timestamp":4734250,"id":751,"parentId":554,"tags":{"name":"/app/components/admin/users/DbUsersContent.tsx","layer":null},"startTime":1736835507557,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":8821,"timestamp":4734212,"id":750,"parentId":555,"tags":{"name":"/app/components/admin/users/ChangeDbUserPassword.tsx","layer":null},"startTime":1736835507557,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":9652,"timestamp":4734114,"id":748,"parentId":551,"tags":{"name":"/app/components/admin/databases/SingleEntryContent.tsx","layer":null},"startTime":1736835507557,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":10906,"timestamp":4733948,"id":746,"parentId":548,"tags":{"name":"/app/components/admin/databases/SingleTableContent.tsx","layer":null},"startTime":1736835507557,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":11825,"timestamp":4734315,"id":753,"parentId":556,"tags":{"name":"/app/components/admin/users/SingleDbUserContent.tsx","layer":null},"startTime":1736835507557,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":13452,"timestamp":4734278,"id":752,"parentId":566,"tags":{"name":"/app/components/admin/users/TargetUserPreviewPopup.tsx","layer":null},"startTime":1736835507557,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":13358,"timestamp":4771057,"id":765,"parentId":562,"tags":{"name":"/app/components/general/LoadingBlock.tsx","layer":null},"startTime":1736835507594,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":13947,"timestamp":4771030,"id":764,"parentId":557,"tags":{"name":"/app/components/admin/dashboard/DashboardContent.tsx","layer":null},"startTime":1736835507594,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":14442,"timestamp":4770957,"id":761,"parentId":567,"tags":{"name":"/app/components/admin/users/AllDatabasesUsersContent.tsx","layer":null},"startTime":1736835507594,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":15161,"timestamp":4770905,"id":759,"parentId":560,"tags":{"name":"/app/components/admin/settings/SettingsContent.tsx","layer":null},"startTime":1736835507594,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":16173,"timestamp":4770761,"id":757,"parentId":561,"tags":{"name":"/app/components/general/Breadcrumbs.tsx","layer":null},"startTime":1736835507594,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":16851,"timestamp":4770863,"id":758,"parentId":566,"tags":{"name":"/app/components/admin/users/UsersContent.tsx","layer":null},"startTime":1736835507594,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":17684,"timestamp":4770980,"id":762,"parentId":561,"tags":{"name":"/app/components/admin/databases/UserSchemaContent.tsx","layer":null},"startTime":1736835507594,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":18610,"timestamp":4770932,"id":760,"parentId":559,"tags":{"name":"/app/components/admin/users/DbAddNewUserContent.tsx","layer":null},"startTime":1736835507594,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":20327,"timestamp":4771007,"id":763,"parentId":568,"tags":{"name":"/app/components/admin/users/SingleDatabaseSingleUserContent.tsx","layer":null},"startTime":1736835507594,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":31,"timestamp":4811755,"id":771,"parentId":627,"tags":{"name":"buffer","layer":null},"startTime":1736835507635,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":16,"timestamp":4812278,"id":794,"parentId":666,"tags":{"name":"https","layer":null},"startTime":1736835507635,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":6,"timestamp":4812302,"id":795,"parentId":662,"tags":{"name":"react-dom","layer":null},"startTime":1736835507635,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":7,"timestamp":4812328,"id":797,"parentId":628,"tags":{"name":"sanitize-html","layer":null},"startTime":1736835507635,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":4,"timestamp":4812340,"id":798,"parentId":625,"tags":{"name":"nodemailer","layer":null},"startTime":1736835507635,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":18562,"timestamp":4811669,"id":768,"parentId":558,"tags":{"name":"/app/components/admin/databases/DatabasesContent.tsx","layer":null},"startTime":1736835507635,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":19465,"timestamp":4811542,"id":766,"parentId":562,"tags":{"name":"/app/components/general/UploadFileComponent.tsx","layer":null},"startTime":1736835507635,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":19846,"timestamp":4811640,"id":767,"parentId":562,"tags":{"name":"/app/components/general/UploadImageComponent.tsx","layer":null},"startTime":1736835507635,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":20037,"timestamp":4811805,"id":772,"parentId":563,"tags":{"name":"/app/components/general/UploadVideoComponent.tsx","layer":null},"startTime":1736835507635,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":20631,"timestamp":4811836,"id":773,"parentId":569,"tags":{"name":"/app/components/admin/users/SingleDatabaseUsersContent.tsx","layer":null},"startTime":1736835507635,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":21847,"timestamp":4811864,"id":774,"parentId":574,"tags":{"name":"/app/functions/backend/fsWriteImageToDiskFromBase64.ts","layer":"api"},"startTime":1736835507635,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":22397,"timestamp":4812011,"id":780,"parentId":583,"tags":{"name":"/app/components/pages/homepage/Hero2.tsx","layer":null},"startTime":1736835507635,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":23380,"timestamp":4811985,"id":779,"parentId":563,"tags":{"name":"/app/components/admin/media/MediaContent.tsx","layer":null},"startTime":1736835507635,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":24520,"timestamp":4811911,"id":776,"parentId":562,"tags":{"name":"/app/components/admin/media/NewFolderPopup.tsx","layer":null},"startTime":1736835507635,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":25504,"timestamp":4811940,"id":777,"parentId":562,"tags":{"name":"/app/components/admin/media/ChooseMediaTypePopup.tsx","layer":null},"startTime":1736835507635,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":26238,"timestamp":4811962,"id":778,"parentId":562,"tags":{"name":"/app/components/admin/media/MediaFolderContent.tsx","layer":null},"startTime":1736835507635,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":26221,"timestamp":4812195,"id":789,"parentId":582,"tags":{"name":"/app/components/pages/blog/BlogHero.tsx","layer":null},"startTime":1736835507635,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":27638,"timestamp":4811725,"id":770,"parentId":562,"tags":{"name":"/app/components/admin/media/NewMediaPopup.tsx","layer":null},"startTime":1736835507635,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":27586,"timestamp":4812027,"id":781,"parentId":579,"tags":{"name":"/app/components/pages/contact/ContactHero.tsx","layer":null},"startTime":1736835507635,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":27641,"timestamp":4812206,"id":790,"parentId":584,"tags":{"name":"/app/components/general/LoadingScreen.tsx","layer":null},"startTime":1736835507635,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":28269,"timestamp":4812094,"id":784,"parentId":583,"tags":{"name":"/app/components/pages/homepage/FeaturesSummarySection.tsx","layer":null},"startTime":1736835507635,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":28683,"timestamp":4812060,"id":782,"parentId":584,"tags":{"name":"/app/components/general/Logo.tsx","layer":null},"startTime":1736835507635,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":28833,"timestamp":4812152,"id":787,"parentId":581,"tags":{"name":"/app/components/pages/docs/DocsHomeHero.tsx","layer":null},"startTime":1736835507635,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":29084,"timestamp":4812173,"id":788,"parentId":585,"tags":{"name":"/app/components/pages/docs/DocsGenereicHero.tsx","layer":null},"startTime":1736835507635,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":29754,"timestamp":4812117,"id":785,"parentId":581,"tags":{"name":"/app/components/pages/docs/DocsAside.tsx","layer":null},"startTime":1736835507635,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":30390,"timestamp":4812071,"id":783,"parentId":579,"tags":{"name":"/app/components/pages/contact/ContactForm.tsx","layer":null},"startTime":1736835507635,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":30954,"timestamp":4812243,"id":792,"parentId":584,"tags":{"name":"/app/components/pages/login/LoginForm.tsx","layer":null},"startTime":1736835507635,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":31544,"timestamp":4812218,"id":791,"parentId":573,"tags":{"name":"/app/package-shared/functions/api/query/post.ts","layer":"api"},"startTime":1736835507635,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":31844,"timestamp":4812129,"id":786,"parentId":581,"tags":{"name":"/app/components/pages/docs/DocsHomeLinks.tsx","layer":null},"startTime":1736835507635,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":31995,"timestamp":4812253,"id":793,"parentId":578,"tags":{"name":"/app/components/pages/create-account/Hero.tsx","layer":null},"startTime":1736835507635,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":33759,"timestamp":4811888,"id":775,"parentId":562,"tags":{"name":"/app/components/admin/media/TargetMediaPreviewPopup.tsx","layer":null},"startTime":1736835507635,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":33785,"timestamp":4812314,"id":796,"parentId":593,"tags":{"name":"/app/layouts/SuAdminLayout.tsx","layer":null},"startTime":1736835507635,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":34394,"timestamp":4812350,"id":799,"parentId":593,"tags":{"name":"/app/components/su/SuBackupsContent.tsx","layer":null},"startTime":1736835507636,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":34906,"timestamp":4812436,"id":803,"parentId":596,"tags":{"name":"/app/components/su/SuErrorLogsContent.tsx","layer":null},"startTime":1736835507636,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":35939,"timestamp":4812366,"id":800,"parentId":595,"tags":{"name":"/app/components/su/SuDashboardContent.tsx","layer":null},"startTime":1736835507636,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":38643,"timestamp":4811695,"id":769,"parentId":565,"tags":{"name":"/app/components/admin/users/AddNewUserContent.tsx","layer":null},"startTime":1736835507635,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":39038,"timestamp":4812408,"id":802,"parentId":662,"tags":{"name":"/app/node_modules/next/dist/client/request-idle-callback.js","layer":null},"startTime":1736835507636,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":39848,"timestamp":4812377,"id":801,"parentId":662,"tags":{"name":"/app/node_modules/next/dist/client/set-attributes-from-props.js","layer":null},"startTime":1736835507636,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":2484233,"timestamp":2368423,"id":44,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fadmin%2FloginSuUser&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fadmin%2FloginSuUser.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736835505192,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":2484011,"timestamp":2368714,"id":72,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FgetDelegatedDatabaseToken&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FgetDelegatedDatabaseToken.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736835505192,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":2484270,"timestamp":2368493,"id":53,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fconnect&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fconnect%2Findex.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736835505192,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":2484281,"timestamp":2368517,"id":54,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fconnect%2Fverify&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fconnect%2Fverify.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736835505192,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":2484313,"timestamp":2368544,"id":55,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fcontact&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fcontact.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736835505192,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":2484008,"timestamp":2368880,"id":100,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FsendPasswordResetLink&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FsendPasswordResetLink.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736835505192,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":2484039,"timestamp":2368873,"id":99,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FsendEmailVerificationLink&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FsendEmailVerificationLink.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736835505192,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":2483992,"timestamp":2368941,"id":113,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Ftest%2Fmail&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Ftest%2Fmail.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736835505192,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":35,"timestamp":4894051,"id":808,"parentId":621,"tags":{"name":"@moduletrace/datasquirel/dist/client/fetch","layer":null},"startTime":1736835507717,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":11,"timestamp":4894183,"id":813,"parentId":683,"tags":{"name":"node-fetch","layer":null},"startTime":1736835507717,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":6,"timestamp":4894202,"id":814,"parentId":683,"tags":{"name":"sharp","layer":null},"startTime":1736835507717,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":14815,"timestamp":4894123,"id":810,"parentId":592,"tags":{"name":"/app/components/general/FormSuccessBlock.tsx","layer":null},"startTime":1736835507717,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":14980,"timestamp":4894216,"id":815,"parentId":589,"tags":{"name":"/app/functions/frontend/clearCaches.ts","layer":null},"startTime":1736835507717,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":15225,"timestamp":4894157,"id":811,"parentId":592,"tags":{"name":"/app/components/general/InfoBlock.tsx","layer":null},"startTime":1736835507717,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":15623,"timestamp":4893992,"id":806,"parentId":588,"tags":{"name":"/app/components/pages/privacy/PrivacyHero.tsx","layer":null},"startTime":1736835507717,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":15909,"timestamp":4894172,"id":812,"parentId":597,"tags":{"name":"/app/components/su/SuEnvContent.tsx","layer":null},"startTime":1736835507717,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":16673,"timestamp":4893954,"id":805,"parentId":600,"tags":{"name":"/app/components/su/docs/SuDocsPageListContent.tsx","layer":null},"startTime":1736835507717,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":17140,"timestamp":4894020,"id":807,"parentId":588,"tags":{"name":"/app/components/pages/privacy/PrivacyBody.tsx","layer":null},"startTime":1736835507717,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":17906,"timestamp":4894102,"id":809,"parentId":594,"tags":{"name":"/app/components/su/SuConsoleContent.tsx","layer":null},"startTime":1736835507717,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":19368,"timestamp":4893857,"id":804,"parentId":598,"tags":{"name":"/app/components/su/docs/CreatePageContent.tsx","layer":null},"startTime":1736835507717,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":19609,"timestamp":4894274,"id":817,"parentId":704,"tags":{"name":"/app/node_modules/next/dist/shared/lib/modern-browserslist-target.js","layer":null},"startTime":1736835507717,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":19969,"timestamp":4894233,"id":816,"parentId":705,"tags":{"name":"/app/node_modules/next/dist/shared/lib/is-plain-object.js","layer":null},"startTime":1736835507717,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":11986,"timestamp":4915438,"id":818,"parentId":702,"tags":{"name":"/app/node_modules/next/dist/shared/lib/page-path/denormalize-page-path.js","layer":null},"startTime":1736835507739,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":19,"timestamp":4928374,"id":833,"parentId":688,"tags":{"name":"dotenv","layer":null},"startTime":1736835507752,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":8921,"timestamp":4928347,"id":832,"parentId":718,"tags":{"name":"/app/node_modules/next/dist/server/lib/trace/constants.js","layer":null},"startTime":1736835507751,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":19258,"timestamp":4929243,"id":837,"parentId":718,"tags":{"name":"/app/node_modules/next/dist/compiled/@opentelemetry/api/index.js","layer":null},"startTime":1736835507752,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":23703,"timestamp":4928151,"id":824,"parentId":649,"tags":{"name":"/app/package-shared/utils/ejson.ts","layer":"api"},"startTime":1736835507751,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":23788,"timestamp":4928404,"id":834,"parentId":602,"tags":{"name":"/app/functions/backend/su/get-servers.ts","layer":null},"startTime":1736835507752,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":24375,"timestamp":4928081,"id":820,"parentId":604,"tags":{"name":"/app/components/su/docs/SuSingleDocPageContent.tsx","layer":null},"startTime":1736835507751,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":24652,"timestamp":4928164,"id":825,"parentId":603,"tags":{"name":"/app/package-shared/utils/ejson.ts","layer":null},"startTime":1736835507751,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":25201,"timestamp":4928139,"id":823,"parentId":601,"tags":{"name":"/app/functions/isLocalSuperUser.ts","layer":null},"startTime":1736835507751,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":25787,"timestamp":4928186,"id":827,"parentId":642,"tags":{"name":"/app/package-shared/utils/backend/global-db/DSQL_USER_DB_HANDLER.ts","layer":"api"},"startTime":1736835507751,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":26217,"timestamp":4928114,"id":821,"parentId":607,"tags":{"name":"/app/components/pages/terms/TermsHero.tsx","layer":null},"startTime":1736835507751,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":26543,"timestamp":4928236,"id":828,"parentId":670,"tags":{"name":"/app/package-shared/utils/backend/global-db/DSQL_USER_DB_HANDLER.ts","layer":null},"startTime":1736835507751,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":26803,"timestamp":4928267,"id":829,"parentId":610,"tags":{"name":"/app/components/su/SuNewUserContent.tsx","layer":null},"startTime":1736835507751,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":27234,"timestamp":4928176,"id":826,"parentId":609,"tags":{"name":"/app/components/su/SuUsersContent.tsx","layer":null},"startTime":1736835507751,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":26553,"timestamp":4929295,"id":839,"parentId":602,"tags":{"name":"/app/components/su/load-balancing/index.tsx","layer":null},"startTime":1736835507752,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":27100,"timestamp":4929278,"id":838,"parentId":622,"tags":{"name":"/app/functions/frontend/updateNavLinks.ts","layer":null},"startTime":1736835507752,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":27525,"timestamp":4929332,"id":840,"parentId":622,"tags":{"name":"/app/layouts/components/GeneralLayout/Footer.tsx","layer":null},"startTime":1736835507752,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":27545,"timestamp":4929481,"id":846,"parentId":622,"tags":{"name":"/app/layouts/components/GeneralLayout/ProductionHeadComponent.tsx","layer":null},"startTime":1736835507753,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":29328,"timestamp":4928287,"id":830,"parentId":608,"tags":{"name":"/app/components/su/SuSingleUserContent.tsx","layer":null},"startTime":1736835507751,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":28675,"timestamp":4929358,"id":841,"parentId":632,"tags":{"name":"/app/package-shared/utils/backend/global-db/LOCAL_DB_HANDLER.ts","layer":"api"},"startTime":1736835507753,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":29007,"timestamp":4929394,"id":842,"parentId":670,"tags":{"name":"/app/package-shared/utils/backend/global-db/LOCAL_DB_HANDLER.ts","layer":null},"startTime":1736835507753,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":29304,"timestamp":4929467,"id":845,"parentId":603,"tags":{"name":"/app/components/su/servers/index.tsx","layer":null},"startTime":1736835507753,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":29798,"timestamp":4929444,"id":844,"parentId":670,"tags":{"name":"/app/package-shared/functions/backend/parseDbResults.ts","layer":null},"startTime":1736835507753,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":30220,"timestamp":4929418,"id":843,"parentId":632,"tags":{"name":"/app/package-shared/functions/backend/parseDbResults.ts","layer":"api"},"startTime":1736835507753,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":32599,"timestamp":4928127,"id":822,"parentId":607,"tags":{"name":"/app/components/pages/terms/TermsBody.tsx","layer":null},"startTime":1736835507751,"traceId":"80a02e6b898c9dbf"}] -[{"name":"build-module-tsx","duration":32587,"timestamp":4929526,"id":847,"parentId":622,"tags":{"name":"/app/layouts/components/GeneralLayout/Header.tsx","layer":null},"startTime":1736835507753,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":34240,"timestamp":4928312,"id":831,"parentId":718,"tags":{"name":"/app/node_modules/next/dist/shared/lib/is-thenable.js","layer":null},"startTime":1736835507751,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":35045,"timestamp":4927967,"id":819,"parentId":702,"tags":{"name":"/app/node_modules/next/dist/shared/lib/page-path/normalize-page-path.js","layer":null},"startTime":1736835507751,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":39156,"timestamp":4929194,"id":836,"parentId":717,"tags":{"name":"__barrel_optimize__?names=ChevronDown,Download,FileInput,FolderOutput,SquareTerminal!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736835507752,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":43991,"timestamp":4928434,"id":835,"parentId":700,"tags":{"name":"__barrel_optimize__?names=BookText!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736835507752,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":2605710,"timestamp":2369033,"id":129,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fuser%2F%5Buser_id%5D%2Fgoogle-login&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fuser%2F%5Buser_id%5D%2Fgoogle-login.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736835505192,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":2605501,"timestamp":2369360,"id":204,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fsu%2Flogin&preferredRegion=&absolutePagePath=private-next-pages%2Fsu%2Flogin.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736835505193,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":2161,"timestamp":5007892,"id":857,"parentId":733,"tags":{"name":"__barrel_optimize__?names=FolderOutput!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736835507831,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":11737,"timestamp":5007817,"id":854,"parentId":649,"tags":{"name":"/app/package-shared/shell/utils/noDatabaseDbHandler.ts","layer":"api"},"startTime":1736835507831,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":12109,"timestamp":5007918,"id":858,"parentId":673,"tags":{"name":"/app/package-shared/shell/utils/slugToCamelTitle.ts","layer":"api"},"startTime":1736835507831,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":12800,"timestamp":5007569,"id":848,"parentId":643,"tags":{"name":"/app/package-shared/functions/backend/html/sanitizeHtmlOptions.ts","layer":"api"},"startTime":1736835507831,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":13048,"timestamp":5007718,"id":850,"parentId":649,"tags":{"name":"/app/package-shared/shell/utils/varDatabaseDbHandler.ts","layer":"api"},"startTime":1736835507831,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":13240,"timestamp":5007842,"id":855,"parentId":657,"tags":{"name":"/app/package-shared/utils/backend/global-db/NO_DB_HANDLER.ts","layer":"api"},"startTime":1736835507831,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":13507,"timestamp":5007868,"id":856,"parentId":669,"tags":{"name":"/app/package-shared/utils/backend/global-db/NO_DB_HANDLER.ts","layer":null},"startTime":1736835507831,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":13981,"timestamp":5007768,"id":852,"parentId":649,"tags":{"name":"/app/package-shared/shell/utils/dbHandler.ts","layer":"api"},"startTime":1736835507831,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":14297,"timestamp":5007967,"id":860,"parentId":682,"tags":{"name":"/app/package-shared/functions/backend/updateUsersTableSchema.ts","layer":"api"},"startTime":1736835507831,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":15278,"timestamp":5007794,"id":853,"parentId":649,"tags":{"name":"/app/package-shared/shell/utils/createTable.ts","layer":"api"},"startTime":1736835507831,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":15701,"timestamp":5007941,"id":859,"parentId":697,"tags":{"name":"/app/components/general/DiskUsageComponent.tsx","layer":null},"startTime":1736835507831,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":17080,"timestamp":5007677,"id":849,"parentId":739,"tags":{"name":"/app/package-shared/functions/backend/db/addDbEntry.ts","layer":null},"startTime":1736835507831,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":19061,"timestamp":5007744,"id":851,"parentId":649,"tags":{"name":"/app/package-shared/shell/utils/updateTable.ts","layer":"api"},"startTime":1736835507831,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":2661043,"timestamp":2368759,"id":80,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FimportDatabase&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FimportDatabase.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736835505192,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":2661552,"timestamp":2368339,"id":37,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fadmin%2Fdocs%2F%5Baction%5D&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fadmin%2Fdocs%2F%5Baction%5D.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736835505191,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":2661267,"timestamp":2368672,"id":63,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FdeleteUserDatabase&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FdeleteUserDatabase.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736835505192,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":3160,"timestamp":5043789,"id":874,"parentId":747,"tags":{"name":"__barrel_optimize__?names=ChevronUp!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736835507867,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":16619,"timestamp":5043462,"id":862,"parentId":692,"tags":{"name":"/app/package-shared/utils/serialize-cookies.ts","layer":"api"},"startTime":1736835507867,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":17352,"timestamp":5043357,"id":861,"parentId":693,"tags":{"name":"/app/package-shared/utils/camelJoinedtoCamelSpace.ts","layer":"api"},"startTime":1736835507867,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":17530,"timestamp":5043612,"id":867,"parentId":707,"tags":{"name":"/app/components/admin/connect/MariaDBUsers.tsx","layer":null},"startTime":1736835507867,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":18030,"timestamp":5043636,"id":868,"parentId":686,"tags":{"name":"/app/package-shared/functions/api/social-login/loginSocialUser.ts","layer":"api"},"startTime":1736835507867,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":18166,"timestamp":5043741,"id":872,"parentId":711,"tags":{"name":"/app/functions/frontend/checkUniqueField.ts","layer":null},"startTime":1736835507867,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":19028,"timestamp":5043551,"id":865,"parentId":688,"tags":{"name":"/app/package-shared/shell/mariadb-users/handleGrants.ts","layer":"api"},"startTime":1736835507867,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":19591,"timestamp":5043669,"id":869,"parentId":707,"tags":{"name":"/app/components/admin/connect/ConnectionInfo.tsx","layer":null},"startTime":1736835507867,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":20395,"timestamp":5043522,"id":864,"parentId":682,"tags":{"name":"/app/package-shared/functions/backend/addUsersTableToDb.ts","layer":"api"},"startTime":1736835507867,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":21319,"timestamp":5043494,"id":863,"parentId":678,"tags":{"name":"/app/package-shared/functions/backend/db/runQuery.ts","layer":"api"},"startTime":1736835507867,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":21388,"timestamp":5043856,"id":877,"parentId":709,"tags":{"name":"/app/components/admin/api-keys/ApiKeysList.tsx","layer":null},"startTime":1736835507867,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":21554,"timestamp":5043940,"id":880,"parentId":724,"tags":{"name":"/app/components/general/BackButton.tsx","layer":null},"startTime":1736835507867,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":22658,"timestamp":5043692,"id":870,"parentId":697,"tags":{"name":"/app/layouts/components/AdminLayout/Aside.tsx","layer":null},"startTime":1736835507867,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":23424,"timestamp":5043717,"id":871,"parentId":697,"tags":{"name":"/app/layouts/components/AdminLayout/AdminHeader.tsx","layer":null},"startTime":1736835507867,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":23696,"timestamp":5043817,"id":875,"parentId":717,"tags":{"name":"/app/components/general/CopySlug.tsx","layer":null},"startTime":1736835507867,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":25068,"timestamp":5043587,"id":866,"parentId":708,"tags":{"name":"/app/components/admin/connect/MariDBUserForm.tsx","layer":null},"startTime":1736835507867,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":25262,"timestamp":5043881,"id":878,"parentId":699,"tags":{"name":"/app/components/general/ScreenShotDescriptionCard.tsx","layer":null},"startTime":1736835507867,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":25745,"timestamp":5043907,"id":879,"parentId":699,"tags":{"name":"/app/components/general/ContainedSection.tsx","layer":null},"startTime":1736835507867,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":26370,"timestamp":5043832,"id":876,"parentId":717,"tags":{"name":"/app/functions/frontend/downloadApiStream.ts","layer":null},"startTime":1736835507867,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":27148,"timestamp":5043773,"id":873,"parentId":710,"tags":{"name":"/app/components/general/GeneralPopup.tsx","layer":null},"startTime":1736835507867,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":2704649,"timestamp":2369054,"id":133,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fuser%2F%5Buser_id%5D%2Fsend-email-code&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fuser%2F%5Buser_id%5D%2Fsend-email-code.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736835505192,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":2704788,"timestamp":2369028,"id":128,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fuser%2F%5Buser_id%5D%2Fgithub-login&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fuser%2F%5Buser_id%5D%2Fgithub-login.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736835505192,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":2713927,"timestamp":2368920,"id":109,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fsql-users%2Fupdate&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fsql-users%2Fupdate.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736835505192,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":2714020,"timestamp":2368912,"id":107,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fsql-users%2Fcreate&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fsql-users%2Fcreate.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736835505192,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":2715563,"timestamp":2368895,"id":103,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fsocial-login%2Fgoogle-auth&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fsocial-login%2Fgoogle-auth.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736835505192,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":2715615,"timestamp":2368885,"id":101,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fsocial-login%2Ffacebook-auth&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fsocial-login%2Ffacebook-auth.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736835505192,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":2715630,"timestamp":2368892,"id":102,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fsocial-login%2Fgithub-auth&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fsocial-login%2Fgithub-auth.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736835505192,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":10112,"timestamp":5092577,"id":881,"parentId":728,"tags":{"name":"/app/components/general/ActiveCloneDbBanner.tsx","layer":null},"startTime":1736835507916,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":10398,"timestamp":5092722,"id":884,"parentId":727,"tags":{"name":"/app/components/general/AceEditor.tsx","layer":null},"startTime":1736835507916,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":10876,"timestamp":5092741,"id":885,"parentId":727,"tags":{"name":"/app/components/admin/databases/DatabaseTablesTablePreview.tsx","layer":null},"startTime":1736835507916,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":11363,"timestamp":5092693,"id":883,"parentId":728,"tags":{"name":"/app/components/general/ActiveCloneTableBanner.tsx","layer":null},"startTime":1736835507916,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":11884,"timestamp":5092660,"id":882,"parentId":728,"tags":{"name":"/app/components/admin/databases/DatabasesTablesList.tsx","layer":null},"startTime":1736835507916,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":12143,"timestamp":5092862,"id":887,"parentId":724,"tags":{"name":"/app/components/form/FormCheckboxes.tsx","layer":null},"startTime":1736835507916,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":13481,"timestamp":5092829,"id":886,"parentId":728,"tags":{"name":"/app/components/admin/databases/TableFields.tsx","layer":null},"startTime":1736835507916,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":14912,"timestamp":5107999,"id":888,"parentId":724,"tags":{"name":"/app/components/form/FormRadios.tsx","layer":null},"startTime":1736835507931,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":15996,"timestamp":5108057,"id":889,"parentId":727,"tags":{"name":"/app/components/form/FormSelect.tsx","layer":null},"startTime":1736835507931,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-json","duration":1042,"timestamp":5125940,"id":894,"parentId":745,"tags":{"name":"/app/package-shared/data/dataTypes.json","layer":null},"startTime":1736835507949,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-json","duration":1358,"timestamp":5126067,"id":899,"parentId":752,"tags":{"name":"/app/jsonData/userPriviledges.json","layer":null},"startTime":1736835507949,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":4269,"timestamp":5126008,"id":897,"parentId":777,"tags":{"name":"__barrel_optimize__?names=FileVideo2,Files,Images!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736835507949,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":5232,"timestamp":5126080,"id":900,"parentId":778,"tags":{"name":"__barrel_optimize__?names=Copy!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736835507949,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":6264,"timestamp":5126113,"id":901,"parentId":784,"tags":{"name":"__barrel_optimize__?names=CopyCheck,EarthLock,FileKey2,FolderOutput,Sheet,SquareGanttChart!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736835507949,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":7273,"timestamp":5126140,"id":902,"parentId":782,"tags":{"name":"__barrel_optimize__?names=Menu!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736835507949,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":8456,"timestamp":5126171,"id":903,"parentId":775,"tags":{"name":"__barrel_optimize__?names=ChevronLeft,ChevronRight!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736835507949,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":9481,"timestamp":5126278,"id":907,"parentId":799,"tags":{"name":"__barrel_optimize__?names=FolderSync!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736835507949,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":10510,"timestamp":5126410,"id":912,"parentId":811,"tags":{"name":"__barrel_optimize__?names=Info!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736835507950,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":21860,"timestamp":5126200,"id":904,"parentId":733,"tags":{"name":"/app/components/general/DatabaseSlugCopy.tsx","layer":null},"startTime":1736835507949,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":22179,"timestamp":5126226,"id":905,"parentId":732,"tags":{"name":"/app/components/admin/databases/DatabaseShellQueryResult.tsx","layer":null},"startTime":1736835507949,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":22404,"timestamp":5126383,"id":911,"parentId":745,"tags":{"name":"/app/components/admin/databases/MoreTableOptions.tsx","layer":null},"startTime":1736835507950,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":23264,"timestamp":5125877,"id":892,"parentId":736,"tags":{"name":"/app/components/admin/databases/AddTableForm.tsx","layer":null},"startTime":1736835507949,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":23635,"timestamp":5125842,"id":891,"parentId":729,"tags":{"name":"/app/components/admin/databases/EditDatabaseForm.tsx","layer":null},"startTime":1736835507949,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":23907,"timestamp":5125913,"id":893,"parentId":735,"tags":{"name":"/app/components/admin/databases/AddDatabaseForm.tsx","layer":null},"startTime":1736835507949,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":24072,"timestamp":5126251,"id":906,"parentId":733,"tags":{"name":"/app/components/general/ui/ButtonGroup.tsx","layer":null},"startTime":1736835507949,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":24496,"timestamp":5126305,"id":908,"parentId":745,"tags":{"name":"/app/components/admin/databases/ImportExportEntries.tsx","layer":null},"startTime":1736835507949,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":25054,"timestamp":5126356,"id":910,"parentId":744,"tags":{"name":"/app/components/admin/databases/TablesList.tsx","layer":null},"startTime":1736835507950,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":26235,"timestamp":5126036,"id":898,"parentId":741,"tags":{"name":"/app/components/admin/databases/TableEntryForm.tsx","layer":null},"startTime":1736835507949,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":25986,"timestamp":5126552,"id":916,"parentId":748,"tags":{"name":"/app/components/admin/databases/SingleEntryPrevNext.tsx","layer":null},"startTime":1736835507950,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":26952,"timestamp":5126331,"id":909,"parentId":745,"tags":{"name":"/app/components/admin/databases/TableEntriesList.tsx","layer":null},"startTime":1736835507949,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":27376,"timestamp":5126522,"id":915,"parentId":748,"tags":{"name":"/app/components/admin/databases/SelectNewEntry.tsx","layer":null},"startTime":1736835507950,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":28883,"timestamp":5125978,"id":896,"parentId":734,"tags":{"name":"/app/components/admin/databases/EditTableForm.tsx","layer":null},"startTime":1736835507949,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":29847,"timestamp":5125951,"id":895,"parentId":730,"tags":{"name":"/app/components/admin/databases/connect/ConnectForm.tsx","layer":null},"startTime":1736835507949,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":29873,"timestamp":5126492,"id":914,"parentId":751,"tags":{"name":"/app/components/admin/users/DbUsersList.tsx","layer":null},"startTime":1736835507950,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":31958,"timestamp":5125735,"id":890,"parentId":737,"tags":{"name":"/app/components/admin/databases/ExistingFieldEdit.tsx","layer":null},"startTime":1736835507949,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":31841,"timestamp":5126436,"id":913,"parentId":818,"tags":{"name":"/app/node_modules/next/dist/shared/lib/page-path/normalize-path-sep.js","layer":null},"startTime":1736835507950,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":3688,"timestamp":5202332,"id":920,"parentId":847,"tags":{"name":"__barrel_optimize__?names=ChevronDown!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736835508025,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":3879,"timestamp":5202701,"id":932,"parentId":859,"tags":{"name":"__barrel_optimize__?names=ArrowLeft,HardDrive,RotateCw!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736835508026,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":14321,"timestamp":5202726,"id":933,"parentId":849,"tags":{"name":"/app/package-shared/functions/backend/html/sanitizeHtmlOptions.ts","layer":null},"startTime":1736835508026,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":15087,"timestamp":5202456,"id":924,"parentId":764,"tags":{"name":"/app/components/admin/dashboard/DatabasesSummary.tsx","layer":null},"startTime":1736835508026,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":15381,"timestamp":5202796,"id":936,"parentId":764,"tags":{"name":"/app/components/admin/dashboard/Metrics.tsx","layer":null},"startTime":1736835508026,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":15780,"timestamp":5202821,"id":937,"parentId":758,"tags":{"name":"/app/components/admin/users/InvitationReceivedCard.tsx","layer":null},"startTime":1736835508026,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":16135,"timestamp":5202844,"id":938,"parentId":761,"tags":{"name":"/app/components/admin/users/DatabaseUsers.tsx","layer":null},"startTime":1736835508026,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":16954,"timestamp":5202429,"id":923,"parentId":764,"tags":{"name":"/app/components/admin/databases/DelegatedDatabasesSection.tsx","layer":null},"startTime":1736835508026,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":16976,"timestamp":5202867,"id":939,"parentId":759,"tags":{"name":"/app/components/admin/databases/UserImage.tsx","layer":null},"startTime":1736835508026,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":17425,"timestamp":5202783,"id":935,"parentId":753,"tags":{"name":"/app/components/admin/users/UserImage.tsx","layer":null},"startTime":1736835508026,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":17677,"timestamp":5202896,"id":940,"parentId":758,"tags":{"name":"/app/components/admin/users/UsersList.tsx","layer":null},"startTime":1736835508026,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":18595,"timestamp":5202759,"id":934,"parentId":849,"tags":{"name":"/app/package-shared/functions/backend/db/updateDbEntry.ts","layer":null},"startTime":1736835508026,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":19734,"timestamp":5202365,"id":921,"parentId":746,"tags":{"name":"/app/components/admin/databases/TableIndexes.tsx","layer":null},"startTime":1736835508026,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":20243,"timestamp":5202910,"id":941,"parentId":759,"tags":{"name":"/app/components/pages/create-account/CreateAccountForm.tsx","layer":null},"startTime":1736835508026,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":25192,"timestamp":5200211,"id":917,"parentId":748,"tags":{"name":"/app/components/admin/databases/UpdateEntryForm.tsx","layer":null},"startTime":1736835508023,"traceId":"80a02e6b898c9dbf"}] -[{"name":"build-module-js","duration":23965,"timestamp":5202517,"id":926,"parentId":836,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/chevron-down.js","layer":null},"startTime":1736835508026,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":24096,"timestamp":5202582,"id":928,"parentId":836,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/folder-output.js","layer":null},"startTime":1736835508026,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":24237,"timestamp":5202637,"id":930,"parentId":836,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/square-terminal.js","layer":null},"startTime":1736835508026,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":24485,"timestamp":5202555,"id":927,"parentId":836,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/download.js","layer":null},"startTime":1736835508026,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":24599,"timestamp":5202608,"id":929,"parentId":836,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/file-input.js","layer":null},"startTime":1736835508026,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":25020,"timestamp":5202390,"id":922,"parentId":819,"tags":{"name":"/app/node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","layer":null},"startTime":1736835508026,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":24894,"timestamp":5202671,"id":931,"parentId":835,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/book-text.js","layer":null},"startTime":1736835508026,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":25599,"timestamp":5202261,"id":919,"parentId":818,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/index.js","layer":null},"startTime":1736835508025,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":26813,"timestamp":5202482,"id":925,"parentId":819,"tags":{"name":"/app/node_modules/next/dist/shared/lib/utils.js","layer":null},"startTime":1736835508026,"traceId":"80a02e6b898c9dbf"},{"name":"postcss-process","duration":30008,"timestamp":5413729,"id":943,"parentId":942,"tags":{},"startTime":1736835508237,"traceId":"80a02e6b898c9dbf"},{"name":"postcss-loader","duration":240642,"timestamp":5203140,"id":942,"parentId":918,"tags":{},"startTime":1736835508026,"traceId":"80a02e6b898c9dbf"},{"name":"css-loader","duration":37599,"timestamp":5443942,"id":944,"parentId":918,"tags":{"astUsed":"true"},"startTime":1736835508267,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-css","duration":281564,"timestamp":5200297,"id":918,"parentId":780,"tags":{"name":"/app/components/pages/homepage/Home.module.css","layer":null},"startTime":1736835508023,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":174,"timestamp":5505344,"id":946,"parentId":809,"tags":{"name":"ansi-regex","layer":null},"startTime":1736835508328,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-io-client","duration":12,"timestamp":5505540,"id":947,"parentId":809,"tags":{"name":"socket.io-client","layer":null},"startTime":1736835508329,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":3100,"timestamp":5505620,"id":949,"parentId":880,"tags":{"name":"__barrel_optimize__?names=ArrowLeft!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736835508329,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":3839,"timestamp":5505658,"id":950,"parentId":869,"tags":{"name":"__barrel_optimize__?names=Copy,Download!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736835508329,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":4435,"timestamp":5505720,"id":952,"parentId":873,"tags":{"name":"__barrel_optimize__?names=X!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736835508329,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":5265,"timestamp":5505754,"id":953,"parentId":870,"tags":{"name":"__barrel_optimize__?names=BookText,CircleGauge,Database,FileKey2,Globe,Images,ShieldEllipsis,Users!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736835508329,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":16098,"timestamp":5505781,"id":954,"parentId":767,"tags":{"name":"/app/functions/frontend/imageInputFileToBase64.ts","layer":null},"startTime":1736835508329,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":16892,"timestamp":5505827,"id":955,"parentId":766,"tags":{"name":"/app/functions/frontend/inputFileToBase64.ts","layer":null},"startTime":1736835508329,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":17333,"timestamp":5505852,"id":956,"parentId":780,"tags":{"name":"/app/components/general/FadedImage.tsx","layer":null},"startTime":1736835508329,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":18259,"timestamp":5505571,"id":948,"parentId":849,"tags":{"name":"/app/package-shared/functions/dsql/encrypt.ts","layer":null},"startTime":1736835508329,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":20874,"timestamp":5505198,"id":945,"parentId":760,"tags":{"name":"/app/components/admin/users/DbCreateDbUserForm.tsx","layer":null},"startTime":1736835508328,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":21323,"timestamp":5505686,"id":951,"parentId":874,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/chevron-up.js","layer":null},"startTime":1736835508329,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":40,"timestamp":5531734,"id":959,"parentId":886,"tags":{"name":"gsap/Flip","layer":null},"startTime":1736835508355,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":13,"timestamp":5531795,"id":960,"parentId":875,"tags":{"name":"tailwind-merge","layer":null},"startTime":1736835508355,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":13,"timestamp":5532057,"id":969,"parentId":886,"tags":{"name":"gsap","layer":null},"startTime":1736835508355,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":5418,"timestamp":5531820,"id":961,"parentId":911,"tags":{"name":"__barrel_optimize__?names=Ellipsis!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736835508355,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":38704,"timestamp":5531909,"id":963,"parentId":775,"tags":{"name":"/app/functions/frontend/downloadPrivateFile.ts","layer":null},"startTime":1736835508355,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":39890,"timestamp":5531579,"id":957,"parentId":779,"tags":{"name":"/app/components/admin/media/MediaList.tsx","layer":null},"startTime":1736835508355,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":40342,"timestamp":5531665,"id":958,"parentId":768,"tags":{"name":"/app/components/admin/databases/DatabasesList.tsx","layer":null},"startTime":1736835508355,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":40925,"timestamp":5531870,"id":962,"parentId":792,"tags":{"name":"/app/components/pages/login/SocialLogin.tsx","layer":null},"startTime":1736835508355,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":41674,"timestamp":5531998,"id":966,"parentId":783,"tags":{"name":"/app/components/general/FormAlertBlock.tsx","layer":null},"startTime":1736835508355,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":41946,"timestamp":5531946,"id":964,"parentId":859,"tags":{"name":"/app/functions/frontend/updateDiskUsage.ts","layer":null},"startTime":1736835508355,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":42557,"timestamp":5531983,"id":965,"parentId":792,"tags":{"name":"/app/functions/frontend/userLogin.ts","layer":null},"startTime":1736835508355,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":42978,"timestamp":5532031,"id":967,"parentId":780,"tags":{"name":"/app/components/general/CodeBlock.tsx","layer":null},"startTime":1736835508355,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":43393,"timestamp":5532044,"id":968,"parentId":775,"tags":{"name":"/app/functions/frontend/downloadFile.ts","layer":null},"startTime":1736835508355,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":43676,"timestamp":5532138,"id":971,"parentId":897,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/files.js","layer":null},"startTime":1736835508355,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":43808,"timestamp":5532184,"id":972,"parentId":897,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/images.js","layer":null},"startTime":1736835508355,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":44089,"timestamp":5532078,"id":970,"parentId":897,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/file-video-2.js","layer":null},"startTime":1736835508355,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":44058,"timestamp":5532273,"id":974,"parentId":901,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/copy-check.js","layer":null},"startTime":1736835508355,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":44277,"timestamp":5532229,"id":973,"parentId":900,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/copy.js","layer":null},"startTime":1736835508355,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":44291,"timestamp":5532385,"id":976,"parentId":901,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/square-gantt-chart.js","layer":null},"startTime":1736835508356,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":44564,"timestamp":5532330,"id":975,"parentId":901,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/earth-lock.js","layer":null},"startTime":1736835508355,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":2744,"timestamp":5579953,"id":984,"parentId":910,"tags":{"name":"__barrel_optimize__?names=Copy,CopyPlus,Edit,FileX2,Grid2X2!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736835508403,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":16303,"timestamp":5580013,"id":986,"parentId":770,"tags":{"name":"/app/components/admin/media/NewFileCard.tsx","layer":null},"startTime":1736835508403,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":16961,"timestamp":5580064,"id":988,"parentId":770,"tags":{"name":"/app/components/admin/media/NewMediaCard.tsx","layer":null},"startTime":1736835508403,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":18046,"timestamp":5579989,"id":985,"parentId":796,"tags":{"name":"/app/layouts/components/SuAdminLayout/Aside.tsx","layer":null},"startTime":1736835508403,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":18960,"timestamp":5580040,"id":987,"parentId":796,"tags":{"name":"/app/layouts/components/SuAdminLayout/AdminHeader.tsx","layer":null},"startTime":1736835508403,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":20022,"timestamp":5579607,"id":977,"parentId":901,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/sheet.js","layer":null},"startTime":1736835508403,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":20127,"timestamp":5579728,"id":978,"parentId":902,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/menu.js","layer":null},"startTime":1736835508403,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":20875,"timestamp":5579817,"id":980,"parentId":903,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/chevron-left.js","layer":null},"startTime":1736835508403,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":21033,"timestamp":5579855,"id":981,"parentId":903,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/chevron-right.js","layer":null},"startTime":1736835508403,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":21381,"timestamp":5579772,"id":979,"parentId":901,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/file-key-2.js","layer":null},"startTime":1736835508403,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":21484,"timestamp":5579915,"id":983,"parentId":912,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/info.js","layer":null},"startTime":1736835508403,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":21747,"timestamp":5579887,"id":982,"parentId":907,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/folder-sync.js","layer":null},"startTime":1736835508403,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":32,"timestamp":5603688,"id":1001,"parentId":911,"tags":{"name":"react-tiny-popover","layer":null},"startTime":1736835508427,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":3703,"timestamp":5603364,"id":990,"parentId":909,"tags":{"name":"__barrel_optimize__?names=Grid2x2!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736835508427,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":3989,"timestamp":5603886,"id":1006,"parentId":936,"tags":{"name":"__barrel_optimize__?names=Database,Images,Key,Sheet!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736835508427,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":18158,"timestamp":5603654,"id":1000,"parentId":834,"tags":{"name":"/app/functions/backend/su/get-servers-json-path.ts","layer":null},"startTime":1736835508427,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":18855,"timestamp":5603509,"id":993,"parentId":834,"tags":{"name":"/app/functions/backend/su/check-servers.ts","layer":null},"startTime":1736835508427,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":19817,"timestamp":5603556,"id":995,"parentId":809,"tags":{"name":"/app/components/su/xterm.ts","layer":null},"startTime":1736835508427,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":20307,"timestamp":5603544,"id":994,"parentId":784,"tags":{"name":"/app/components/general/IconText.tsx","layer":null},"startTime":1736835508427,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":20890,"timestamp":5603263,"id":989,"parentId":786,"tags":{"name":"/app/components/cards/LinkCard.tsx","layer":null},"startTime":1736835508426,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":21015,"timestamp":5603786,"id":1003,"parentId":827,"tags":{"name":"/app/package-shared/utils/db/conn-db-handler.ts","layer":"api"},"startTime":1736835508427,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":21874,"timestamp":5603595,"id":997,"parentId":830,"tags":{"name":"/app/components/su/components/UserBackups.tsx","layer":null},"startTime":1736835508427,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":22571,"timestamp":5603476,"id":992,"parentId":775,"tags":{"name":"/app/components/admin/media/card/MediaMoreButton.tsx","layer":null},"startTime":1736835508427,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":22706,"timestamp":5603747,"id":1002,"parentId":804,"tags":{"name":"/app/components/su/components/RichText/DocsRichTextBlock.tsx","layer":null},"startTime":1736835508427,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":23581,"timestamp":5603426,"id":991,"parentId":800,"tags":{"name":"/app/components/su/components/UserCard.tsx","layer":null},"startTime":1736835508427,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":23541,"timestamp":5603819,"id":1004,"parentId":828,"tags":{"name":"/app/package-shared/utils/db/conn-db-handler.ts","layer":null},"startTime":1736835508427,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":24413,"timestamp":5603568,"id":996,"parentId":805,"tags":{"name":"/app/components/su/components/PageCard.tsx","layer":null},"startTime":1736835508427,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":24955,"timestamp":5603624,"id":998,"parentId":812,"tags":{"name":"/app/components/su/SuEnvCard.tsx","layer":null},"startTime":1736835508427,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":25145,"timestamp":5603849,"id":1005,"parentId":839,"tags":{"name":"/app/components/su/load-balancing/(partials)/ServerCard.tsx","layer":null},"startTime":1736835508427,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":26946,"timestamp":5603639,"id":999,"parentId":804,"tags":{"name":"/app/components/form/FormInput.tsx","layer":null},"startTime":1736835508427,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":27139,"timestamp":5603921,"id":1007,"parentId":932,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/arrow-left.js","layer":null},"startTime":1736835508427,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":96,"timestamp":5654965,"id":1032,"parentId":954,"tags":{"name":"@moduletrace/datasquirel/dist/client","layer":null},"startTime":1736835508478,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":3236,"timestamp":5654658,"id":1026,"parentId":957,"tags":{"name":"__barrel_optimize__?names=Plus!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736835508478,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":3975,"timestamp":5654726,"id":1027,"parentId":958,"tags":{"name":"__barrel_optimize__?names=PackagePlus!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736835508478,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":4500,"timestamp":5655092,"id":1033,"parentId":985,"tags":{"name":"__barrel_optimize__?names=BookText,CloudUpload,DatabaseBackup,FileWarning,Home,LockKeyhole,Server,SquareChevronRight,Users!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736835508478,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":16100,"timestamp":5654096,"id":1013,"parentId":843,"tags":{"name":"/app/package-shared/functions/backend/defaultFieldsRegexp.ts","layer":"api"},"startTime":1736835508477,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":16423,"timestamp":5654044,"id":1012,"parentId":844,"tags":{"name":"/app/package-shared/functions/backend/defaultFieldsRegexp.ts","layer":null},"startTime":1736835508477,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":16708,"timestamp":5654140,"id":1014,"parentId":841,"tags":{"name":"/app/package-shared/utils/backend/grabDbSSL.ts","layer":"api"},"startTime":1736835508477,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":16961,"timestamp":5654171,"id":1015,"parentId":842,"tags":{"name":"/app/package-shared/utils/backend/grabDbSSL.ts","layer":null},"startTime":1736835508477,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":16712,"timestamp":5654771,"id":1028,"parentId":853,"tags":{"name":"/app/package-shared/shell/utils/supplementTable.ts","layer":"api"},"startTime":1736835508478,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":17065,"timestamp":5654814,"id":1029,"parentId":853,"tags":{"name":"/app/package-shared/shell/utils/generateColumnDescription.ts","layer":"api"},"startTime":1736835508478,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":18334,"timestamp":5653991,"id":1011,"parentId":830,"tags":{"name":"/app/components/su/components/UserData.tsx","layer":null},"startTime":1736835508477,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":18860,"timestamp":5653960,"id":1010,"parentId":847,"tags":{"name":"/app/components/general/ThemeSelector.tsx","layer":null},"startTime":1736835508477,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":18523,"timestamp":5654865,"id":1030,"parentId":860,"tags":{"name":"/app/package-shared/functions/backend/grabSchemaFieldsFromData.ts","layer":"api"},"startTime":1736835508478,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":19868,"timestamp":5654210,"id":1016,"parentId":847,"tags":{"name":"/app/layouts/components/AdminLayout/AdminUserBlock.tsx","layer":null},"startTime":1736835508477,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":20202,"timestamp":5654369,"id":1020,"parentId":952,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/x.js","layer":null},"startTime":1736835508478,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":20983,"timestamp":5653761,"id":1008,"parentId":932,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/rotate-cw.js","layer":null},"startTime":1736835508477,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":21043,"timestamp":5653895,"id":1009,"parentId":932,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/hard-drive.js","layer":null},"startTime":1736835508477,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":20704,"timestamp":5654400,"id":1021,"parentId":953,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/shield-ellipsis.js","layer":null},"startTime":1736835508478,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":20825,"timestamp":5654441,"id":1022,"parentId":953,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/users.js","layer":null},"startTime":1736835508478,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":21540,"timestamp":5654241,"id":1017,"parentId":926,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/createLucideIcon.js","layer":null},"startTime":1736835508477,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":21501,"timestamp":5654489,"id":1023,"parentId":953,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/globe.js","layer":null},"startTime":1736835508478,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":22058,"timestamp":5654326,"id":1019,"parentId":919,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/is-dynamic.js","layer":null},"startTime":1736835508477,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":22032,"timestamp":5654546,"id":1024,"parentId":953,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/database.js","layer":null},"startTime":1736835508478,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":22145,"timestamp":5654598,"id":1025,"parentId":953,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/circle-gauge.js","layer":null},"startTime":1736835508478,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":21770,"timestamp":5655174,"id":1035,"parentId":984,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/file-x-2.js","layer":null},"startTime":1736835508478,"traceId":"80a02e6b898c9dbf"}] -[{"name":"build-module-js","duration":22547,"timestamp":5654917,"id":1031,"parentId":961,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/ellipsis.js","layer":null},"startTime":1736835508478,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":22415,"timestamp":5655211,"id":1036,"parentId":984,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/square-pen.js","layer":null},"startTime":1736835508478,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":22690,"timestamp":5655136,"id":1034,"parentId":984,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/copy-plus.js","layer":null},"startTime":1736835508478,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":22780,"timestamp":5655254,"id":1037,"parentId":984,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/grid-2x2.js","layer":null},"startTime":1736835508478,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":26144,"timestamp":5654273,"id":1018,"parentId":919,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/sorted-routes.js","layer":null},"startTime":1736835508477,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":3313844,"timestamp":2368440,"id":47,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FcheckDuplicateData&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FcheckDuplicateData.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736835505192,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":3313873,"timestamp":2368566,"id":56,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FdeleteDbUser&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FdeleteDbUser.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736835505192,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":3313788,"timestamp":2368677,"id":65,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FdeleteUserTable&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FdeleteUserTable.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736835505192,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":3313794,"timestamp":2368697,"id":69,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Ffetch-entries-basic&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Ffetch-entries-basic.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736835505192,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":3314154,"timestamp":2368356,"id":38,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fadmin%2FgetTablesForUserDatabase&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fadmin%2FgetTablesForUserDatabase.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736835505192,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":3314100,"timestamp":2368427,"id":45,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fadmin%2FrunUserDbQuery&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fadmin%2FrunUserDbQuery.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736835505192,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":3313703,"timestamp":2368840,"id":93,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FrefreshEntry&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FrefreshEntry.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736835505192,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":3313793,"timestamp":2368768,"id":82,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FinfiniteScroll&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FinfiniteScroll.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736835505192,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":3313743,"timestamp":2368834,"id":91,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FqueryEntriesSearchTerm&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FqueryEntriesSearchTerm.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736835505192,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":3313730,"timestamp":2368866,"id":98,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FrunUserDbQuery&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FrunUserDbQuery.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736835505192,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":3314412,"timestamp":2368205,"id":24,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FaddAdminUserUser&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FaddAdminUserUser.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736835505191,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":3313853,"timestamp":2368781,"id":83,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FloginUser&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FloginUser.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736835505192,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":3314054,"timestamp":2368605,"id":57,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FdeleteApiKey&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FdeleteApiKey.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736835505192,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":3314009,"timestamp":2368665,"id":61,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FdeleteTableEntry&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FdeleteTableEntry.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736835505192,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":3314048,"timestamp":2368675,"id":64,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FdeleteUserMedia&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FdeleteUserMedia.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736835505192,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":3313497,"timestamp":2369244,"id":177,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fquery%2F%5Buser_id%5D%2Fdelete-file&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fquery%2F%5Buser_id%5D%2Fdelete-file.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736835505192,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":3313758,"timestamp":2369005,"id":123,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FupdateUserUser&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FupdateUserUser.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736835505192,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":3313816,"timestamp":2368963,"id":118,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FupdateDbUser&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FupdateDbUser.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736835505192,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":3313825,"timestamp":2368969,"id":119,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FupdateTableEntry&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FupdateTableEntry.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736835505192,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":3313825,"timestamp":2368983,"id":121,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FupdateUser&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FupdateUser.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736835505192,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":3313843,"timestamp":2368979,"id":120,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FupdateUserDatabase&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FupdateUserDatabase.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736835505192,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":3314376,"timestamp":2368463,"id":51,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fconnect%2Fdisconnect&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fconnect%2Fdisconnect.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736835505192,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":3314377,"timestamp":2368478,"id":52,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fconnect%2Fhandshake&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fconnect%2Fhandshake.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736835505192,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":3315208,"timestamp":2368222,"id":26,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FaddDbUser&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FaddDbUser.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736835505191,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":3315266,"timestamp":2368213,"id":25,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FaddApiKey&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FaddApiKey.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736835505191,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":3315340,"timestamp":2368188,"id":23,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FacceptUserInvitation&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FacceptUserInvitation.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736835505191,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":3315289,"timestamp":2368260,"id":29,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FaddTableEntry&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FaddTableEntry.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736835505191,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":3315292,"timestamp":2368274,"id":31,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FaddUserUser&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FaddUserUser.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736835505191,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":3314736,"timestamp":2368847,"id":95,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FregisterUser&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FregisterUser.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736835505192,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":3314651,"timestamp":2368946,"id":114,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Funsubscribe&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Funsubscribe.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736835505192,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":3314667,"timestamp":2368949,"id":115,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FupdateAdminUserAccess&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FupdateAdminUserAccess.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736835505192,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":3314396,"timestamp":2369232,"id":174,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fquery%2F%5Buser_id%5D%2Fadd-file&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fquery%2F%5Buser_id%5D%2Fadd-file.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736835505192,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":3314405,"timestamp":2369238,"id":175,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fquery%2F%5Buser_id%5D%2Fadd-image&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fquery%2F%5Buser_id%5D%2Fadd-image.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736835505192,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":3314437,"timestamp":2369219,"id":171,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FaddUserMedia&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FaddUserMedia.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736835505192,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":3542,"timestamp":5681991,"id":1038,"parentId":996,"tags":{"name":"__barrel_optimize__?names=Layers,Newspaper!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736835508505,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":4376,"timestamp":5682105,"id":1039,"parentId":1005,"tags":{"name":"__barrel_optimize__?names=Server!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736835508505,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":3323072,"timestamp":2368266,"id":30,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FaddUserTable&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FaddUserTable.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736835505191,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":3323140,"timestamp":2368283,"id":32,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FaddUsersTableToDatabase&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FaddUsersTableToDatabase.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736835505191,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":3322816,"timestamp":2368634,"id":58,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FcreateUserDatabase&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FcreateUserDatabase.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736835505192,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":3322713,"timestamp":2368763,"id":81,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FimportDatabaseSchema&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FimportDatabaseSchema.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736835505192,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":3322542,"timestamp":2368955,"id":117,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FupdateDbSchemaDataForUser&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FupdateDbSchemaDataForUser.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736835505192,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":3322562,"timestamp":2368952,"id":116,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FupdateClonedTableForeignKeys&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FupdateClonedTableForeignKeys.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736835505192,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":3322542,"timestamp":2368994,"id":122,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FupdateUserTable&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FupdateUserTable.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736835505192,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":3322540,"timestamp":2369013,"id":124,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fuser-schema%2Freplace-database-schema&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fuser-schema%2Freplace-database-schema.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736835505192,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":3322743,"timestamp":2368831,"id":90,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fquery%2F%5Buser_id%5D%2Fupdate-schema-from-single-database&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fquery%2F%5Buser_id%5D%2Fupdate-schema-from-single-database.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736835505192,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":21665,"timestamp":5682207,"id":1042,"parentId":863,"tags":{"name":"/app/package-shared/functions/backend/varReadOnlyDatabaseDbHandler.ts","layer":"api"},"startTime":1736835508505,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":22175,"timestamp":5682178,"id":1041,"parentId":863,"tags":{"name":"/app/package-shared/functions/backend/fullAccessDbHandler.ts","layer":"api"},"startTime":1736835508505,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":23051,"timestamp":5682248,"id":1043,"parentId":877,"tags":{"name":"/app/components/admin/api-keys/ApiKeyListCard.tsx","layer":null},"startTime":1736835508505,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":24047,"timestamp":5682142,"id":1040,"parentId":867,"tags":{"name":"/app/components/admin/connect/MariaDBUserCard.tsx","layer":null},"startTime":1736835508505,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":61,"timestamp":5712515,"id":1053,"parentId":995,"tags":{"name":"xterm","layer":null},"startTime":1736835508536,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":17446,"timestamp":5712327,"id":1046,"parentId":863,"tags":{"name":"/app/package-shared/utils/trim-sql.ts","layer":"api"},"startTime":1736835508535,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":17688,"timestamp":5712378,"id":1048,"parentId":886,"tags":{"name":"/app/functions/frontend/addNewTempField.ts","layer":null},"startTime":1736835508536,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":18323,"timestamp":5712202,"id":1044,"parentId":864,"tags":{"name":"/app/package-shared/functions/backend/grabNewUsersTableSchema.ts","layer":"api"},"startTime":1736835508535,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":18430,"timestamp":5712403,"id":1049,"parentId":886,"tags":{"name":"/app/components/general/ExpandBlock.tsx","layer":null},"startTime":1736835508536,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":19264,"timestamp":5712450,"id":1051,"parentId":886,"tags":{"name":"/app/components/admin/databases/ClonedSingleTableFieldCard.tsx","layer":null},"startTime":1736835508536,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":20346,"timestamp":5712478,"id":1052,"parentId":886,"tags":{"name":"/app/components/admin/databases/NewFieldTemp.tsx","layer":null},"startTime":1736835508536,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":21820,"timestamp":5712415,"id":1050,"parentId":886,"tags":{"name":"/app/components/admin/databases/SingleTableFieldCard.tsx","layer":null},"startTime":1736835508536,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":24174,"timestamp":5712290,"id":1045,"parentId":866,"tags":{"name":"/app/components/admin/connect/MariDBUserFormGrantsSection.tsx","layer":null},"startTime":1736835508535,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":25155,"timestamp":5712343,"id":1047,"parentId":1006,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/key.js","layer":null},"startTime":1736835508535,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":85,"timestamp":5739845,"id":1057,"parentId":995,"tags":{"name":"xterm-addon-fit","layer":null},"startTime":1736835508563,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":3371682,"timestamp":2368819,"id":88,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fquery%2F%5Buser_id%5D%2Fget&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fquery%2F%5Buser_id%5D%2Fget.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736835505192,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":3371424,"timestamp":2369247,"id":178,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fquery%2F%5Buser_id%5D%2Fpost&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fquery%2F%5Buser_id%5D%2Fpost.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736835505192,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-json","duration":1168,"timestamp":5739680,"id":1054,"parentId":1030,"tags":{"name":"/app/package-shared/data/dataTypes.json","layer":"api"},"startTime":1736835508563,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":16571,"timestamp":5740442,"id":1070,"parentId":1019,"tags":{"name":"/app/node_modules/next/dist/server/lib/interception-routes.js","layer":null},"startTime":1736835508564,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":17866,"timestamp":5740009,"id":1059,"parentId":884,"tags":{"name":"/app/components/admin/databases/fields/text/ace-editor.ts","layer":null},"startTime":1736835508563,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":18476,"timestamp":5739951,"id":1058,"parentId":886,"tags":{"name":"/app/components/admin/databases/functions/generateTypeDefinition.ts","layer":null},"startTime":1736835508563,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":19785,"timestamp":5739735,"id":1055,"parentId":911,"tags":{"name":"/app/components/admin/databases/SyncDataButton.tsx","layer":null},"startTime":1736835508563,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":20947,"timestamp":5739805,"id":1056,"parentId":892,"tags":{"name":"/app/components/admin/databases/CloneTableForm.tsx","layer":null},"startTime":1736835508563,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":21157,"timestamp":5740042,"id":1060,"parentId":1017,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/defaultAttributes.js","layer":null},"startTime":1736835508563,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":21076,"timestamp":5740288,"id":1066,"parentId":1033,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/home.js","layer":null},"startTime":1736835508563,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":21279,"timestamp":5740255,"id":1065,"parentId":1033,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/cloud-upload.js","layer":null},"startTime":1736835508563,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":21610,"timestamp":5740081,"id":1061,"parentId":1026,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/plus.js","layer":null},"startTime":1736835508563,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":21646,"timestamp":5740215,"id":1064,"parentId":1033,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/file-warning.js","layer":null},"startTime":1736835508563,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":21884,"timestamp":5740169,"id":1063,"parentId":1033,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/database-backup.js","layer":null},"startTime":1736835508563,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":22098,"timestamp":5740134,"id":1062,"parentId":1027,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/package-plus.js","layer":null},"startTime":1736835508563,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":22077,"timestamp":5740320,"id":1067,"parentId":1033,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/lock-keyhole.js","layer":null},"startTime":1736835508563,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":22150,"timestamp":5740397,"id":1069,"parentId":1033,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/square-chevron-right.js","layer":null},"startTime":1736835508564,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":22370,"timestamp":5740356,"id":1068,"parentId":1033,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/server.js","layer":null},"startTime":1736835508564,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":22524,"timestamp":5740469,"id":1071,"parentId":1017,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/shared/src/utils.js","layer":null},"startTime":1736835508564,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":3659,"timestamp":5764223,"id":1072,"parentId":1040,"tags":{"name":"__barrel_optimize__?names=CircleX,Copy,Edit!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736835508587,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":3400245,"timestamp":2369350,"id":201,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fsu%2Ferror-logs&preferredRegion=&absolutePagePath=private-next-pages%2Fsu%2Ferror-logs.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736835505193,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":3400413,"timestamp":2369316,"id":194,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fsu%2Fconsole&preferredRegion=&absolutePagePath=private-next-pages%2Fsu%2Fconsole.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736835505192,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":3400413,"timestamp":2369353,"id":202,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fsu&preferredRegion=&absolutePagePath=private-next-pages%2Fsu%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736835505193,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":3400445,"timestamp":2369347,"id":200,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fsu%2Fenvar&preferredRegion=&absolutePagePath=private-next-pages%2Fsu%2Fenvar.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736835505192,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":3400440,"timestamp":2369377,"id":208,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fsu%2Fusers%2Fnew&preferredRegion=&absolutePagePath=private-next-pages%2Fsu%2Fusers%2Fnew.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736835505193,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":3400473,"timestamp":2369369,"id":207,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fsu%2Fusers&preferredRegion=&absolutePagePath=private-next-pages%2Fsu%2Fusers%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736835505193,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":3400539,"timestamp":2369333,"id":198,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fsu%2Fdocs%2Fpages%2F%5Bid%5D&preferredRegion=&absolutePagePath=private-next-pages%2Fsu%2Fdocs%2Fpages%2F%5Bid%5D.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736835505192,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":3407592,"timestamp":2369357,"id":203,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fsu%2Fload-balancing&preferredRegion=&absolutePagePath=private-next-pages%2Fsu%2Fload-balancing.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736835505193,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":3407668,"timestamp":2369363,"id":205,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fsu%2Fservers&preferredRegion=&absolutePagePath=private-next-pages%2Fsu%2Fservers.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736835505193,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":18352,"timestamp":5764425,"id":1077,"parentId":898,"tags":{"name":"/app/functions/frontend/defaultFieldsRegexp.ts","layer":null},"startTime":1736835508588,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":19232,"timestamp":5764472,"id":1079,"parentId":908,"tags":{"name":"/app/components/admin/databases/functions/import-export-handler.ts","layer":null},"startTime":1736835508588,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":19835,"timestamp":5764526,"id":1081,"parentId":910,"tags":{"name":"/app/components/admin/databases/ImportDbComponent.tsx","layer":null},"startTime":1736835508588,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":20592,"timestamp":5764374,"id":1075,"parentId":891,"tags":{"name":"/app/components/admin/databases/DatabaseImage.tsx","layer":null},"startTime":1736835508588,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":21329,"timestamp":5764547,"id":1082,"parentId":898,"tags":{"name":"/app/components/admin/databases/TableEntryField.tsx","layer":null},"startTime":1736835508588,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":22014,"timestamp":5764449,"id":1078,"parentId":910,"tags":{"name":"/app/components/admin/databases/ImportSchemaComponent.tsx","layer":null},"startTime":1736835508588,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":22914,"timestamp":5764337,"id":1074,"parentId":910,"tags":{"name":"/app/components/admin/databases/TableListCard.tsx","layer":null},"startTime":1736835508587,"traceId":"80a02e6b898c9dbf"}] -[{"name":"build-module-tsx","duration":23978,"timestamp":5764305,"id":1073,"parentId":892,"tags":{"name":"/app/components/admin/databases/NewTableForm.tsx","layer":null},"startTime":1736835508587,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":25078,"timestamp":5764399,"id":1076,"parentId":891,"tags":{"name":"/app/components/admin/databases/DatabaseForm.tsx","layer":null},"startTime":1736835508588,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":26491,"timestamp":5764503,"id":1080,"parentId":909,"tags":{"name":"/app/components/admin/databases/SearchEntriesSection.tsx","layer":null},"startTime":1736835508588,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":27481,"timestamp":5764594,"id":1084,"parentId":1038,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/newspaper.js","layer":null},"startTime":1736835508588,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":27690,"timestamp":5764565,"id":1083,"parentId":1038,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/layers.js","layer":null},"startTime":1736835508588,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":3427812,"timestamp":2369330,"id":197,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fsu%2Fdocs&preferredRegion=&absolutePagePath=private-next-pages%2Fsu%2Fdocs%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736835505192,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":3427907,"timestamp":2369344,"id":199,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fsu%2Fdocs%2Fpages&preferredRegion=&absolutePagePath=private-next-pages%2Fsu%2Fdocs%2Fpages%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736835505192,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":18850,"timestamp":5793727,"id":1087,"parentId":898,"tags":{"name":"/app/functions/frontend/newEntryHandler.ts","layer":null},"startTime":1736835508617,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":19418,"timestamp":5793673,"id":1086,"parentId":890,"tags":{"name":"/app/components/admin/databases/MoreOptionsModal.tsx","layer":null},"startTime":1736835508617,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":20111,"timestamp":5793576,"id":1085,"parentId":890,"tags":{"name":"/app/components/admin/databases/fields/text/JSONTextOption.tsx","layer":null},"startTime":1736835508617,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":19,"timestamp":5815650,"id":1095,"parentId":1002,"tags":{"name":"@tinymce/tinymce-react","layer":null},"startTime":1736835508639,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-json","duration":523,"timestamp":5815625,"id":1094,"parentId":1030,"tags":{"name":"/app/package-shared/data/possibleFields.json","layer":"api"},"startTime":1736835508639,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":12659,"timestamp":5815554,"id":1091,"parentId":921,"tags":{"name":"/app/functions/frontend/addNewTemplateIndex.ts","layer":null},"startTime":1736835508639,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":13302,"timestamp":5815521,"id":1090,"parentId":941,"tags":{"name":"/app/functions/frontend/submitNewUserForm.ts","layer":null},"startTime":1736835508639,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":13993,"timestamp":5815489,"id":1089,"parentId":940,"tags":{"name":"/app/components/admin/users/UserListCard.tsx","layer":null},"startTime":1736835508639,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":14522,"timestamp":5815578,"id":1092,"parentId":921,"tags":{"name":"/app/components/admin/databases/SingleTableIndexCard.tsx","layer":null},"startTime":1736835508639,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":15605,"timestamp":5815409,"id":1088,"parentId":923,"tags":{"name":"/app/components/admin/databases/DatabaseListCard.tsx","layer":null},"startTime":1736835508639,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":16900,"timestamp":5815604,"id":1093,"parentId":921,"tags":{"name":"/app/components/admin/databases/NewIndexFieldTemp.tsx","layer":null},"startTime":1736835508639,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":3466513,"timestamp":2369018,"id":125,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fuser%2F%5Buser_id%5D%2Fadd-user&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fuser%2F%5Buser_id%5D%2Fadd-user.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736835505192,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":4536,"timestamp":5834511,"id":1096,"parentId":1082,"tags":{"name":"__barrel_optimize__?names=Lock!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736835508658,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":5405,"timestamp":5834669,"id":1097,"parentId":1078,"tags":{"name":"__barrel_optimize__?names=FileCog!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736835508658,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":5819,"timestamp":5835226,"id":1098,"parentId":1074,"tags":{"name":"__barrel_optimize__?names=ChevronRight,Sheet!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736835508658,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":17500,"timestamp":5835272,"id":1099,"parentId":936,"tags":{"name":"/app/components/general/MetricCard.tsx","layer":null},"startTime":1736835508658,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":17785,"timestamp":5835374,"id":1102,"parentId":986,"tags":{"name":"/app/components/admin/media/TogglePrivacyButton.tsx","layer":null},"startTime":1736835508659,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":18430,"timestamp":5835337,"id":1101,"parentId":957,"tags":{"name":"/app/components/admin/media/MediaFolderCard.tsx","layer":null},"startTime":1736835508658,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":19021,"timestamp":5835294,"id":1100,"parentId":917,"tags":{"name":"/app/components/admin/databases/UpdateEntryMoreOptions.tsx","layer":null},"startTime":1736835508658,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":19263,"timestamp":5835475,"id":1104,"parentId":1072,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/circle-x.js","layer":null},"startTime":1736835508659,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":19856,"timestamp":5835425,"id":1103,"parentId":1070,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/app-paths.js","layer":null},"startTime":1736835508659,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":7017,"timestamp":5856541,"id":1107,"parentId":962,"tags":{"name":"/app/components/pages/login/GoogleIdentityButton.tsx","layer":null},"startTime":1736835508680,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":8133,"timestamp":5856418,"id":1105,"parentId":962,"tags":{"name":"/app/components/pages/login/GithubLogin.tsx","layer":null},"startTime":1736835508680,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":8782,"timestamp":5856510,"id":1106,"parentId":957,"tags":{"name":"/app/components/admin/media/card/MediaListCard.tsx","layer":null},"startTime":1736835508680,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":1625,"timestamp":5866951,"id":1108,"parentId":1088,"tags":{"name":"__barrel_optimize__?names=ChevronRight!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736835508690,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":13409,"timestamp":5867012,"id":1109,"parentId":999,"tags":{"name":"/app/functions/frontend/numberFormat.ts","layer":null},"startTime":1736835508690,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":13932,"timestamp":5867047,"id":1111,"parentId":999,"tags":{"name":"/app/functions/frontend/numberFormatFloat.ts","layer":null},"startTime":1736835508690,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":14324,"timestamp":5867025,"id":1110,"parentId":1016,"tags":{"name":"/app/layouts/components/AdminUserDropdown.tsx","layer":null},"startTime":1736835508690,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":14666,"timestamp":5867071,"id":1112,"parentId":1011,"tags":{"name":"/app/components/su/components/UserFiles.tsx","layer":null},"startTime":1736835508690,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":15621,"timestamp":5867091,"id":1113,"parentId":1002,"tags":{"name":"/app/components/su/components/RichText/RichTextExtensionBlock.tsx","layer":null},"startTime":1736835508690,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":1816,"timestamp":5884186,"id":1114,"parentId":1102,"tags":{"name":"__barrel_optimize__?names=Lock,LockKeyholeOpen!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736835508707,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":2346,"timestamp":5884266,"id":1115,"parentId":1101,"tags":{"name":"__barrel_optimize__?names=Folder,X!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736835508707,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":6714,"timestamp":5884333,"id":1118,"parentId":1052,"tags":{"name":"/app/functions/frontend/addNewField.ts","layer":null},"startTime":1736835508707,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":7324,"timestamp":5884320,"id":1117,"parentId":1050,"tags":{"name":"/app/functions/frontend/reorderField.ts","layer":null},"startTime":1736835508707,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":8441,"timestamp":5884294,"id":1116,"parentId":1011,"tags":{"name":"/app/components/su/components/UserDbShell.tsx","layer":null},"startTime":1736835508707,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":9388,"timestamp":5884348,"id":1119,"parentId":1052,"tags":{"name":"/app/components/admin/databases/NewFieldFormContent.tsx","layer":null},"startTime":1736835508707,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":9614,"timestamp":5884383,"id":1120,"parentId":1096,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/lock.js","layer":null},"startTime":1736835508708,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":9754,"timestamp":5884420,"id":1121,"parentId":1097,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/file-cog.js","layer":null},"startTime":1736835508708,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":10184,"timestamp":5884449,"id":1122,"parentId":1103,"tags":{"name":"/app/node_modules/next/dist/shared/lib/segment.js","layer":null},"startTime":1736835508708,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":3527836,"timestamp":2368171,"id":21,"parentId":18,"tags":{"request":"private-next-pages/_document.tsx"},"startTime":1736835505191,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":11873,"timestamp":5895562,"id":1126,"parentId":1076,"tags":{"name":"/app/functions/frontend/submitUpdateDatabaseForm.ts","layer":null},"startTime":1736835508719,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":12419,"timestamp":5895533,"id":1125,"parentId":1076,"tags":{"name":"/app/functions/frontend/submitNewDatabaseForm.ts","layer":null},"startTime":1736835508719,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":13293,"timestamp":5895356,"id":1123,"parentId":1056,"tags":{"name":"/app/components/admin/databases/NewTableNameSlugAndDescSection.tsx","layer":null},"startTime":1736835508719,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":14010,"timestamp":5895489,"id":1124,"parentId":1082,"tags":{"name":"/app/functions/frontend/generateFormElementsForEntry.tsx","layer":null},"startTime":1736835508719,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":15725,"timestamp":5895590,"id":1127,"parentId":1051,"tags":{"name":"/app/components/admin/databases/fields/fields-inputs/ForeignKey.tsx","layer":null},"startTime":1736835508719,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":2051,"timestamp":5912860,"id":1128,"parentId":1110,"tags":{"name":"__barrel_optimize__?names=CircleGauge!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736835508736,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":2594,"timestamp":5912951,"id":1129,"parentId":1113,"tags":{"name":"__barrel_optimize__?names=CircleX,List,RotateCcw!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736835508736,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":11627,"timestamp":5913040,"id":1132,"parentId":1086,"tags":{"name":"/app/components/admin/databases/fields/fields-inputs/EncryptionSelect.tsx","layer":null},"startTime":1736835508736,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":12286,"timestamp":5913066,"id":1133,"parentId":1082,"tags":{"name":"/app/components/admin/databases/fields/text/JSONEditor.tsx","layer":null},"startTime":1736835508736,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":12852,"timestamp":5913010,"id":1131,"parentId":1086,"tags":{"name":"/app/components/admin/databases/fields/fields-inputs/CSSFiles.tsx","layer":null},"startTime":1736835508736,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":13445,"timestamp":5912983,"id":1130,"parentId":1082,"tags":{"name":"/app/components/admin/databases/TableRichTextEntryField.tsx","layer":null},"startTime":1736835508736,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":3560031,"timestamp":2369311,"id":193,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fsend-password-reset-link&preferredRegion=&absolutePagePath=private-next-pages%2Fsend-password-reset-link.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736835505192,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":3560085,"timestamp":2369380,"id":209,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fterms&preferredRegion=&absolutePagePath=private-next-pages%2Fterms.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736835505193,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":3560446,"timestamp":2369063,"id":136,"parentId":18,"tags":{"request":"private-next-pages/_app.tsx"},"startTime":1736835505192,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":3561933,"timestamp":2367658,"id":19,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2F_error&preferredRegion=&absolutePagePath=next%2Fdist%2Fpages%2F_error&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736835505191,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":3561480,"timestamp":2368151,"id":20,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2F404&preferredRegion=&absolutePagePath=private-next-pages%2F404.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736835505191,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":3561491,"timestamp":2368181,"id":22,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2F500&preferredRegion=&absolutePagePath=private-next-pages%2F500.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736835505191,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":3560649,"timestamp":2369066,"id":137,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fabout&preferredRegion=&absolutePagePath=private-next-pages%2Fabout.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736835505192,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":3560517,"timestamp":2369250,"id":179,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fblog&preferredRegion=&absolutePagePath=private-next-pages%2Fblog%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736835505192,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":3560548,"timestamp":2369257,"id":180,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fcontact&preferredRegion=&absolutePagePath=private-next-pages%2Fcontact.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736835505192,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":3560585,"timestamp":2369260,"id":181,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fcreate-account&preferredRegion=&absolutePagePath=private-next-pages%2Fcreate-account.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736835505192,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":3560604,"timestamp":2369263,"id":182,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fdocs%2F%5Bpage%5D%2F%5Bsub-page%5D&preferredRegion=&absolutePagePath=private-next-pages%2Fdocs%2F%5Bpage%5D%2F%5Bsub-page%5D%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736835505192,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":3560619,"timestamp":2369265,"id":183,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fdocs&preferredRegion=&absolutePagePath=private-next-pages%2Fdocs%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736835505192,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":3560629,"timestamp":2369274,"id":184,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fdocs%2F%5Bpage%5D&preferredRegion=&absolutePagePath=private-next-pages%2Fdocs%2F%5Bpage%5D%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736835505192,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":3560647,"timestamp":2369277,"id":185,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2F&preferredRegion=&absolutePagePath=private-next-pages%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736835505192,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":3560659,"timestamp":2369282,"id":186,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Femail-verification&preferredRegion=&absolutePagePath=private-next-pages%2Femail-verification%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736835505192,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":3560687,"timestamp":2369285,"id":187,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Flogin&preferredRegion=&absolutePagePath=private-next-pages%2Flogin.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736835505192,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":3560708,"timestamp":2369289,"id":188,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fprivacy&preferredRegion=&absolutePagePath=private-next-pages%2Fprivacy.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736835505192,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":3560745,"timestamp":2369295,"id":189,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fredirect&preferredRegion=&absolutePagePath=private-next-pages%2Fredirect.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736835505192,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":3560759,"timestamp":2369299,"id":190,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Flogout&preferredRegion=&absolutePagePath=private-next-pages%2Flogout.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736835505192,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":3560768,"timestamp":2369303,"id":191,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fsu%2Fbackups&preferredRegion=&absolutePagePath=private-next-pages%2Fsu%2Fbackups.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736835505192,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":3560785,"timestamp":2369308,"id":192,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Freset-password&preferredRegion=&absolutePagePath=private-next-pages%2Freset-password.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736835505192,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":3560760,"timestamp":2369383,"id":210,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Funsubscribe&preferredRegion=&absolutePagePath=private-next-pages%2Funsubscribe.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736835505193,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":3561018,"timestamp":2369142,"id":156,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2Fadd-database&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2Fadd-database.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736835505192,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":3561088,"timestamp":2369087,"id":142,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fschema&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fschema.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736835505192,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":3561100,"timestamp":2369091,"id":143,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736835505192,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":3561105,"timestamp":2369101,"id":145,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fshell&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fshell.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736835505192,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":3561082,"timestamp":2369139,"id":155,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers%2Fadd-social-logins&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers%2Fadd-social-logins.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736835505192,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":3561104,"timestamp":2369134,"id":153,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736835505192,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":3561183,"timestamp":2369071,"id":138,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fapi-keys&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fapi-keys%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736835505192,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":3561190,"timestamp":2369078,"id":140,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fconnect&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fconnect%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736835505192,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":3561209,"timestamp":2369074,"id":139,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fedit-database&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fedit-database.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736835505192,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":3561215,"timestamp":2369082,"id":141,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fconnect&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fconnect.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736835505192,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":3561167,"timestamp":2369145,"id":157,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736835505192,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":3561174,"timestamp":2369154,"id":159,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736835505192,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":3561138,"timestamp":2369204,"id":168,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fusers%2Fdatabases&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fusers%2Fdatabases%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736835505192,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":3561164,"timestamp":2369192,"id":166,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fusers%2Fdatabases%2F%5Bdatabase%5D%2F%5Buser%5D&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fusers%2Fdatabases%2F%5Bdatabase%5D%2F%5Buser%5D.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736835505192,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":3561219,"timestamp":2369151,"id":158,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736835505192,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":3561203,"timestamp":2369184,"id":164,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fsettings&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fsettings.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736835505192,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":3561228,"timestamp":2369174,"id":162,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fschema&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fschema.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736835505192,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":3561258,"timestamp":2369157,"id":160,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers%2Fadd-user&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers%2Fadd-user.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736835505192,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":3561236,"timestamp":2369209,"id":169,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fusers&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fusers%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736835505192,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":3561273,"timestamp":2369189,"id":165,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fusers%2Fadd-user&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fusers%2Fadd-user.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736835505192,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":3561265,"timestamp":2369211,"id":170,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fadmin&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736835505192,"traceId":"80a02e6b898c9dbf"}] -[{"name":"add-entry","duration":3561682,"timestamp":2369120,"id":150,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers%2F%5Buser%5D%2Fchange-password&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers%2F%5Buser%5D%2Fchange-password.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736835505192,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":3561685,"timestamp":2369136,"id":154,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers%2F%5Buser%5D&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers%2F%5Buser%5D%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736835505192,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":3561644,"timestamp":2369200,"id":167,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fusers%2Fdatabases%2F%5Bdatabase%5D&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fusers%2Fdatabases%2F%5Bdatabase%5D%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736835505192,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":8846,"timestamp":5927544,"id":1136,"parentId":1093,"tags":{"name":"/app/functions/frontend/addNewIndex.ts","layer":null},"startTime":1736835508751,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":9216,"timestamp":5927598,"id":1139,"parentId":1086,"tags":{"name":"/app/components/admin/databases/fields/fields-inputs/RegexPattern.tsx","layer":null},"startTime":1736835508751,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":9668,"timestamp":5927503,"id":1135,"parentId":1086,"tags":{"name":"/app/components/admin/databases/fields/fields-inputs/AutoIncrement.tsx","layer":null},"startTime":1736835508751,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":10090,"timestamp":5927390,"id":1134,"parentId":1086,"tags":{"name":"/app/components/admin/databases/fields/fields-inputs/UniqueFieldSelect.tsx","layer":null},"startTime":1736835508751,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":10401,"timestamp":5927555,"id":1137,"parentId":1055,"tags":{"name":"/app/components/general/Modal.tsx","layer":null},"startTime":1736835508751,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":11430,"timestamp":5927570,"id":1138,"parentId":1092,"tags":{"name":"/app/components/admin/databases/ExistingIndexEdit.tsx","layer":null},"startTime":1736835508751,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":11793,"timestamp":5927669,"id":1141,"parentId":1115,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/folder.js","layer":null},"startTime":1736835508751,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":11976,"timestamp":5927633,"id":1140,"parentId":1114,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/lock-keyhole-open.js","layer":null},"startTime":1736835508751,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":7038,"timestamp":5940467,"id":1142,"parentId":1055,"tags":{"name":"/app/functions/frontend/syncTableDataFormHandler.ts","layer":null},"startTime":1736835508764,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":3382,"timestamp":5948091,"id":1145,"parentId":1106,"tags":{"name":"/app/components/admin/media/card/MediaPreviewSection.tsx","layer":null},"startTime":1736835508771,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":3923,"timestamp":5947976,"id":1143,"parentId":1106,"tags":{"name":"/app/components/admin/media/card/MediaPrivacyButton.tsx","layer":null},"startTime":1736835508771,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":4252,"timestamp":5948064,"id":1144,"parentId":1106,"tags":{"name":"/app/components/admin/media/card/MediaLinksDropdown.tsx","layer":null},"startTime":1736835508771,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":4419,"timestamp":5948141,"id":1147,"parentId":1129,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/rotate-ccw.js","layer":null},"startTime":1736835508771,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":4661,"timestamp":5948114,"id":1146,"parentId":1129,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/list.js","layer":null},"startTime":1736835508771,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":24,"timestamp":5953320,"id":1148,"parentId":1137,"tags":{"name":"react-dom/client","layer":null},"startTime":1736835508776,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":3586754,"timestamp":2369117,"id":149,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Ffields&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Ffields.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736835505192,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":3586915,"timestamp":2369094,"id":144,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Fedit-table&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Fedit-table.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736835505192,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":3789,"timestamp":5953464,"id":1151,"parentId":1112,"tags":{"name":"/app/components/su/components/UserSingleFile.tsx","layer":null},"startTime":1736835508777,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":4336,"timestamp":5953358,"id":1149,"parentId":1112,"tags":{"name":"/app/components/su/components/UserFolder.tsx","layer":null},"startTime":1736835508777,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":5130,"timestamp":5953422,"id":1150,"parentId":1113,"tags":{"name":"/app/components/su/components/RichText/fns.ts","layer":null},"startTime":1736835508777,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":6179,"timestamp":5953495,"id":1152,"parentId":1113,"tags":{"name":"/app/components/su/components/RichText/ElementStyleModalContent.tsx","layer":null},"startTime":1736835508777,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":3591037,"timestamp":2369125,"id":151,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2Fadd-table&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2Fadd-table.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736835505192,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":2885,"timestamp":5960030,"id":1153,"parentId":1116,"tags":{"name":"/app/components/su/components/UserDbShellQueryResult.tsx","layer":null},"startTime":1736835508783,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":4365,"timestamp":5963154,"id":1154,"parentId":1143,"tags":{"name":"__barrel_optimize__?names=Lock,LockOpen!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736835508786,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":1354,"timestamp":5969392,"id":1155,"parentId":1151,"tags":{"name":"__barrel_optimize__?names=HardDrive!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736835508793,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":1959,"timestamp":5969458,"id":1156,"parentId":1149,"tags":{"name":"__barrel_optimize__?names=Copy,RotateCcw!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736835508793,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":2874,"timestamp":5969484,"id":1157,"parentId":1152,"tags":{"name":"__barrel_optimize__?names=CircleX!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736835508793,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":3604666,"timestamp":2369365,"id":206,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fsu%2Fusers%2F%5Bsingle%5D&preferredRegion=&absolutePagePath=private-next-pages%2Fsu%2Fusers%2F%5Bsingle%5D.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736835505193,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":3604823,"timestamp":2369324,"id":195,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fsu%2Fdocs%2Fcreate-page&preferredRegion=&absolutePagePath=private-next-pages%2Fsu%2Fdocs%2Fcreate-page.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736835505192,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":3604854,"timestamp":2369327,"id":196,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fsu%2Fdocs%2Fedit-page&preferredRegion=&absolutePagePath=private-next-pages%2Fsu%2Fdocs%2Fedit-page.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736835505192,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":5498,"timestamp":5969509,"id":1158,"parentId":1133,"tags":{"name":"/app/components/admin/databases/fields/text/JSONEditorHeader.tsx","layer":null},"startTime":1736835508793,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":1946,"timestamp":5975379,"id":1159,"parentId":1154,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/lock-open.js","layer":null},"startTime":1736835508799,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":1745,"timestamp":5976323,"id":1160,"parentId":1138,"tags":{"name":"/app/components/admin/databases/indexes/indexSelectChange.ts","layer":null},"startTime":1736835508799,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":1646,"timestamp":5978209,"id":1161,"parentId":1158,"tags":{"name":"__barrel_optimize__?names=CircleMinus,CirclePlus,Lock!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736835508801,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":3610967,"timestamp":2369179,"id":163,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fmedia&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fmedia%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736835505192,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":3611048,"timestamp":2369168,"id":161,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fmedia%2F%5B...folder%5D&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fmedia%2F%5B...folder%5D.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736835505192,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":6636,"timestamp":5978273,"id":1162,"parentId":1130,"tags":{"name":"/app/functions/frontend/tinyMCEEditorSetup.ts","layer":null},"startTime":1736835508801,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":1043,"timestamp":5987230,"id":1164,"parentId":1161,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/circle-plus.js","layer":null},"startTime":1736835508810,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":1299,"timestamp":5987153,"id":1163,"parentId":1161,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/circle-minus.js","layer":null},"startTime":1736835508810,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":1056,"timestamp":5988601,"id":1167,"parentId":1162,"tags":{"name":"/app/functions/frontend/handleCopyHTML.ts","layer":null},"startTime":1736835508812,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":1451,"timestamp":5988568,"id":1166,"parentId":1162,"tags":{"name":"/app/functions/frontend/handleEditHTML.tsx","layer":null},"startTime":1736835508812,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":1839,"timestamp":5988544,"id":1165,"parentId":1162,"tags":{"name":"/app/functions/frontend/handleEmbed.tsx","layer":null},"startTime":1736835508812,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":1917,"timestamp":5992967,"id":1168,"parentId":1165,"tags":{"name":"/app/components/general/EmbedPopupContent.tsx","layer":null},"startTime":1736835508816,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":2497,"timestamp":5995050,"id":1169,"parentId":1166,"tags":{"name":"/app/components/general/EditHTMLPopupContent.tsx","layer":null},"startTime":1736835508818,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":26,"timestamp":6002607,"id":1170,"parentId":1169,"tags":{"name":"html-prettify","layer":null},"startTime":1736835508826,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":3633586,"timestamp":2369107,"id":146,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Fentries%2Fadd-entry&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Fentries%2Fadd-entry.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736835505192,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":3633647,"timestamp":2369115,"id":148,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Fentries%2F%5Bsingle_entry%5D&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Fentries%2F%5Bsingle_entry%5D.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736835505192,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":3633668,"timestamp":2369110,"id":147,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Fentries&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Fentries%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736835505192,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":3633666,"timestamp":2369131,"id":152,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736835505192,"traceId":"80a02e6b898c9dbf"},{"name":"make","duration":3635806,"timestamp":2367301,"id":18,"parentId":16,"tags":{},"startTime":1736835505190,"traceId":"80a02e6b898c9dbf"},{"name":"get-entries","duration":1274,"timestamp":6004312,"id":1172,"parentId":1171,"tags":{},"startTime":1736835508827,"traceId":"80a02e6b898c9dbf"},{"name":"node-file-trace-plugin","duration":10559312,"timestamp":6013021,"id":1173,"parentId":1171,"tags":{"traceEntryCount":"382"},"startTime":1736835508836,"traceId":"80a02e6b898c9dbf"},{"name":"collect-traced-files","duration":13510,"timestamp":16572356,"id":1174,"parentId":1171,"tags":{},"startTime":1736835519396,"traceId":"80a02e6b898c9dbf"},{"name":"finish-modules","duration":10581776,"timestamp":6004109,"id":1171,"parentId":17,"tags":{},"startTime":1736835508827,"traceId":"80a02e6b898c9dbf"},{"name":"chunk-graph","duration":470007,"timestamp":16656399,"id":1176,"parentId":1175,"tags":{},"startTime":1736835519480,"traceId":"80a02e6b898c9dbf"},{"name":"optimize-modules","duration":40,"timestamp":17126580,"id":1178,"parentId":1175,"tags":{},"startTime":1736835519950,"traceId":"80a02e6b898c9dbf"},{"name":"optimize-chunks","duration":59484,"timestamp":17126739,"id":1179,"parentId":1175,"tags":{},"startTime":1736835519950,"traceId":"80a02e6b898c9dbf"},{"name":"optimize-tree","duration":78,"timestamp":17186369,"id":1180,"parentId":1175,"tags":{},"startTime":1736835520010,"traceId":"80a02e6b898c9dbf"},{"name":"optimize-chunk-modules","duration":155941,"timestamp":17186580,"id":1181,"parentId":1175,"tags":{},"startTime":1736835520010,"traceId":"80a02e6b898c9dbf"},{"name":"optimize","duration":216186,"timestamp":17126508,"id":1177,"parentId":1175,"tags":{},"startTime":1736835519950,"traceId":"80a02e6b898c9dbf"},{"name":"module-hash","duration":72711,"timestamp":17359778,"id":1182,"parentId":1175,"tags":{},"startTime":1736835520183,"traceId":"80a02e6b898c9dbf"},{"name":"code-generation","duration":404673,"timestamp":17432741,"id":1183,"parentId":1175,"tags":{},"startTime":1736835520256,"traceId":"80a02e6b898c9dbf"},{"name":"hash","duration":20986,"timestamp":17848962,"id":1184,"parentId":1175,"tags":{},"startTime":1736835520672,"traceId":"80a02e6b898c9dbf"},{"name":"code-generation-jobs","duration":1583,"timestamp":17869946,"id":1185,"parentId":1175,"tags":{},"startTime":1736835520693,"traceId":"80a02e6b898c9dbf"},{"name":"module-assets","duration":555,"timestamp":17871435,"id":1186,"parentId":1175,"tags":{},"startTime":1736835520695,"traceId":"80a02e6b898c9dbf"},{"name":"create-chunk-assets","duration":41858,"timestamp":17872009,"id":1187,"parentId":1175,"tags":{},"startTime":1736835520695,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":167217,"timestamp":17971066,"id":1191,"parentId":1188,"tags":{"name":"../pages/_document.js","cache":"MISS"},"startTime":1736835520794,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":167456,"timestamp":17971132,"id":1192,"parentId":1188,"tags":{"name":"../pages/500.js","cache":"MISS"},"startTime":1736835520794,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":168303,"timestamp":17970367,"id":1190,"parentId":1188,"tags":{"name":"../pages/404.js","cache":"MISS"},"startTime":1736835520794,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":166406,"timestamp":17972397,"id":1196,"parentId":1188,"tags":{"name":"../pages/api/addDbUser.js","cache":"MISS"},"startTime":1736835520796,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":165000,"timestamp":17973868,"id":1202,"parentId":1188,"tags":{"name":"../pages/api/addUsersTableToDatabase.js","cache":"MISS"},"startTime":1736835520797,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":167434,"timestamp":17971488,"id":1193,"parentId":1188,"tags":{"name":"../pages/api/acceptUserInvitation.js","cache":"MISS"},"startTime":1736835520795,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":166877,"timestamp":17972093,"id":1195,"parentId":1188,"tags":{"name":"../pages/api/addApiKey.js","cache":"MISS"},"startTime":1736835520795,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":164165,"timestamp":17974849,"id":1206,"parentId":1188,"tags":{"name":"../pages/api/admin/clientError.js","cache":"MISS"},"startTime":1736835520798,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":167243,"timestamp":17971822,"id":1194,"parentId":1188,"tags":{"name":"../pages/api/addAdminUserUser.js","cache":"MISS"},"startTime":1736835520795,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":166487,"timestamp":17972632,"id":1197,"parentId":1188,"tags":{"name":"../pages/api/addNewMediaFolder.js","cache":"MISS"},"startTime":1736835520796,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":165810,"timestamp":17973362,"id":1200,"parentId":1188,"tags":{"name":"../pages/api/addUserTable.js","cache":"MISS"},"startTime":1736835520797,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":166106,"timestamp":17973114,"id":1199,"parentId":1188,"tags":{"name":"../pages/api/addTableEntry.js","cache":"MISS"},"startTime":1736835520796,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":166346,"timestamp":17972918,"id":1198,"parentId":1188,"tags":{"name":"../pages/api/addSocialLogin.js","cache":"MISS"},"startTime":1736835520796,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":172339,"timestamp":17966977,"id":1189,"parentId":1188,"tags":{"name":"../pages/_error.js","cache":"MISS"},"startTime":1736835520790,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":160516,"timestamp":17978843,"id":1225,"parentId":1188,"tags":{"name":"../pages/api/contact.js","cache":"MISS"},"startTime":1736835520802,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":165274,"timestamp":17974124,"id":1203,"parentId":1188,"tags":{"name":"../pages/api/admin/clearErrorLogs.js","cache":"MISS"},"startTime":1736835520797,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":161098,"timestamp":17978386,"id":1223,"parentId":1188,"tags":{"name":"../pages/api/connect.js","cache":"MISS"},"startTime":1736835520802,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":163635,"timestamp":17975897,"id":1209,"parentId":1188,"tags":{"name":"../pages/api/admin/getUserBackups.js","cache":"MISS"},"startTime":1736835520799,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":165022,"timestamp":17974572,"id":1205,"parentId":1188,"tags":{"name":"../pages/api/admin/createNewBackup.js","cache":"MISS"},"startTime":1736835520798,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":163012,"timestamp":17976636,"id":1214,"parentId":1188,"tags":{"name":"../pages/api/admin/loginSuUser.js","cache":"MISS"},"startTime":1736835520800,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":165360,"timestamp":17974340,"id":1204,"parentId":1188,"tags":{"name":"../pages/api/admin/addUserBackup.js","cache":"MISS"},"startTime":1736835520797,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":160377,"timestamp":17979377,"id":1228,"parentId":1188,"tags":{"name":"../pages/api/createUserDatabase.js","cache":"MISS"},"startTime":1736835520803,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":160061,"timestamp":17979742,"id":1230,"parentId":1188,"tags":{"name":"../pages/api/deleteMediaFolder.js","cache":"MISS"},"startTime":1736835520803,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":159559,"timestamp":17980292,"id":1233,"parentId":1188,"tags":{"name":"../pages/api/deleteUserDatabase.js","cache":"MISS"},"startTime":1736835520803,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":159107,"timestamp":17980794,"id":1236,"parentId":1188,"tags":{"name":"../pages/api/downloadDatabaseSchema.js","cache":"MISS"},"startTime":1736835520804,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":159859,"timestamp":17980087,"id":1232,"parentId":1188,"tags":{"name":"../pages/api/deleteUser.js","cache":"MISS"},"startTime":1736835520803,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":166359,"timestamp":17973641,"id":1201,"parentId":1188,"tags":{"name":"../pages/api/addUserUser.js","cache":"MISS"},"startTime":1736835520797,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":164589,"timestamp":17975455,"id":1208,"parentId":1188,"tags":{"name":"../pages/api/admin/getTablesForUserDatabase.js","cache":"MISS"},"startTime":1736835520799,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":157325,"timestamp":17982761,"id":1251,"parentId":1188,"tags":{"name":"../pages/api/importDatabaseSchema.js","cache":"MISS"},"startTime":1736835520806,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":160260,"timestamp":17979901,"id":1231,"parentId":1188,"tags":{"name":"../pages/api/deleteTableEntry.js","cache":"MISS"},"startTime":1736835520803,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":156485,"timestamp":17983772,"id":1256,"parentId":1188,"tags":{"name":"../pages/api/media/getPrivateMedia.js","cache":"MISS"},"startTime":1736835520807,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":159874,"timestamp":17980444,"id":1234,"parentId":1188,"tags":{"name":"../pages/api/deleteUserMedia.js","cache":"MISS"},"startTime":1736835520804,"traceId":"80a02e6b898c9dbf"}] -[{"name":"minify-js","duration":161629,"timestamp":17979609,"id":1229,"parentId":1188,"tags":{"name":"../pages/api/deleteInvitation.js","cache":"MISS"},"startTime":1736835520803,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":162740,"timestamp":17978613,"id":1224,"parentId":1188,"tags":{"name":"../pages/api/connect/verify.js","cache":"MISS"},"startTime":1736835520802,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":154250,"timestamp":17987183,"id":1280,"parentId":1188,"tags":{"name":"../pages/api/stream/[path].js","cache":"MISS"},"startTime":1736835520810,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":157220,"timestamp":17984299,"id":1259,"parentId":1188,"tags":{"name":"../pages/api/query/[user_id]/get-schema.js","cache":"MISS"},"startTime":1736835520807,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":162492,"timestamp":17979155,"id":1227,"parentId":1188,"tags":{"name":"../pages/api/deleteApiKey.js","cache":"MISS"},"startTime":1736835520802,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":156336,"timestamp":17985418,"id":1265,"parentId":1188,"tags":{"name":"../pages/api/registerUser.js","cache":"MISS"},"startTime":1736835520809,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":165315,"timestamp":17976495,"id":1213,"parentId":1188,"tags":{"name":"../pages/api/admin/grabFile.js","cache":"MISS"},"startTime":1736835520800,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":160529,"timestamp":17981340,"id":1240,"parentId":1188,"tags":{"name":"../pages/api/get-authorized-databases.js","cache":"MISS"},"startTime":1736835520804,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":166926,"timestamp":17975000,"id":1207,"parentId":1188,"tags":{"name":"../pages/api/admin/docs/[action].js","cache":"MISS"},"startTime":1736835520798,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":156215,"timestamp":17985785,"id":1267,"parentId":1188,"tags":{"name":"../pages/api/resetPassword.js","cache":"MISS"},"startTime":1736835520809,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":158468,"timestamp":17983600,"id":1255,"parentId":1188,"tags":{"name":"../pages/api/media/addPrivateMedia.js","cache":"MISS"},"startTime":1736835520807,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":160610,"timestamp":17981515,"id":1241,"parentId":1188,"tags":{"name":"../pages/api/getDatabaseTables.js","cache":"MISS"},"startTime":1736835520805,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":156343,"timestamp":17985869,"id":1268,"parentId":1188,"tags":{"name":"../pages/api/runUserDbQuery.js","cache":"MISS"},"startTime":1736835520809,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":158760,"timestamp":17983495,"id":1254,"parentId":1188,"tags":{"name":"../pages/api/logoutUser.js","cache":"MISS"},"startTime":1736835520807,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":156008,"timestamp":17986310,"id":1272,"parentId":1188,"tags":{"name":"../pages/api/social-login/github-auth.js","cache":"MISS"},"startTime":1736835520809,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":158388,"timestamp":17984001,"id":1258,"parentId":1188,"tags":{"name":"../pages/api/query/[user_id]/get.js","cache":"MISS"},"startTime":1736835520807,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":156223,"timestamp":17986216,"id":1271,"parentId":1188,"tags":{"name":"../pages/api/social-login/facebook-auth.js","cache":"MISS"},"startTime":1736835520809,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":156833,"timestamp":17985658,"id":1266,"parentId":1188,"tags":{"name":"../pages/api/resetDelegatedDatabaseToken.js","cache":"MISS"},"startTime":1736835520809,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":157298,"timestamp":17985260,"id":1264,"parentId":1188,"tags":{"name":"../pages/api/renameMedia.js","cache":"MISS"},"startTime":1736835520808,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":154496,"timestamp":17988125,"id":1288,"parentId":1188,"tags":{"name":"../pages/api/updateDbUser.js","cache":"MISS"},"startTime":1736835520811,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":166314,"timestamp":17976356,"id":1212,"parentId":1188,"tags":{"name":"../pages/api/admin/grabErrorLogs.js","cache":"MISS"},"startTime":1736835520800,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":162126,"timestamp":17980615,"id":1235,"parentId":1188,"tags":{"name":"../pages/api/deleteUserTable.js","cache":"MISS"},"startTime":1736835520804,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":163861,"timestamp":17978989,"id":1226,"parentId":1188,"tags":{"name":"../pages/api/deleteDbUser.js","cache":"MISS"},"startTime":1736835520802,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":155285,"timestamp":17987613,"id":1284,"parentId":1188,"tags":{"name":"../pages/api/unsubscribe.js","cache":"MISS"},"startTime":1736835520811,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":154222,"timestamp":17988751,"id":1291,"parentId":1188,"tags":{"name":"../pages/api/updateUser.js","cache":"MISS"},"startTime":1736835520812,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":153792,"timestamp":17989245,"id":1293,"parentId":1188,"tags":{"name":"../pages/api/updateUserUser.js","cache":"MISS"},"startTime":1736835520812,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":165018,"timestamp":17978094,"id":1222,"parentId":1188,"tags":{"name":"../pages/api/connect/handshake.js","cache":"MISS"},"startTime":1736835520801,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":159277,"timestamp":17983891,"id":1257,"parentId":1188,"tags":{"name":"../pages/api/purgeDb.js","cache":"MISS"},"startTime":1736835520807,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":156140,"timestamp":17987073,"id":1279,"parentId":1188,"tags":{"name":"../pages/api/sql-users/update.js","cache":"MISS"},"startTime":1736835520810,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":157147,"timestamp":17986120,"id":1270,"parentId":1188,"tags":{"name":"../pages/api/sendPasswordResetLink.js","cache":"MISS"},"startTime":1736835520809,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":162185,"timestamp":17981165,"id":1239,"parentId":1188,"tags":{"name":"../pages/api/fetch-entries-basic.js","cache":"MISS"},"startTime":1736835520804,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":151836,"timestamp":17991564,"id":1306,"parentId":1188,"tags":{"name":"../pages/_app.js","cache":"MISS"},"startTime":1736835520815,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":155215,"timestamp":17988289,"id":1289,"parentId":1188,"tags":{"name":"../pages/api/updateTableEntry.js","cache":"MISS"},"startTime":1736835520811,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":152081,"timestamp":17991475,"id":1305,"parentId":1188,"tags":{"name":"../pages/api/webhooks/github-push.js","cache":"MISS"},"startTime":1736835520815,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":160419,"timestamp":17983208,"id":1253,"parentId":1188,"tags":{"name":"../pages/api/loginUser.js","cache":"MISS"},"startTime":1736835520806,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":155741,"timestamp":17987943,"id":1287,"parentId":1188,"tags":{"name":"../pages/api/updateDbSchemaDataForUser.js","cache":"MISS"},"startTime":1736835520811,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":155917,"timestamp":17987819,"id":1286,"parentId":1188,"tags":{"name":"../pages/api/updateClonedTableForeignKeys.js","cache":"MISS"},"startTime":1736835520811,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":167606,"timestamp":17976216,"id":1211,"parentId":1188,"tags":{"name":"../pages/api/admin/grabBackups.js","cache":"MISS"},"startTime":1736835520799,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":158824,"timestamp":17985087,"id":1263,"parentId":1188,"tags":{"name":"../pages/api/refreshEntry.js","cache":"MISS"},"startTime":1736835520808,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":147711,"timestamp":17996251,"id":1317,"parentId":1188,"tags":{"name":"../pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries.js","cache":"MISS"},"startTime":1736835520819,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":162987,"timestamp":17981025,"id":1238,"parentId":1188,"tags":{"name":"../pages/api/exportDatabase.js","cache":"MISS"},"startTime":1736835520804,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":158072,"timestamp":17986008,"id":1269,"parentId":1188,"tags":{"name":"../pages/api/sendEmailVerificationLink.js","cache":"MISS"},"startTime":1736835520809,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":156460,"timestamp":17987695,"id":1285,"parentId":1188,"tags":{"name":"../pages/api/updateAdminUserAccess.js","cache":"MISS"},"startTime":1736835520811,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":168171,"timestamp":17976043,"id":1210,"parentId":1188,"tags":{"name":"../pages/api/admin/getUserData.js","cache":"MISS"},"startTime":1736835520799,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":155282,"timestamp":17989017,"id":1292,"parentId":1188,"tags":{"name":"../pages/api/updateUserTable.js","cache":"MISS"},"startTime":1736835520812,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":161811,"timestamp":17982565,"id":1250,"parentId":1188,"tags":{"name":"../pages/api/importDatabase.js","cache":"MISS"},"startTime":1736835520806,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":148021,"timestamp":17996445,"id":1318,"parentId":1188,"tags":{"name":"../pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/[single_entry].js","cache":"MISS"},"startTime":1736835520820,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":157560,"timestamp":17986956,"id":1278,"parentId":1188,"tags":{"name":"../pages/api/sql-users/delete.js","cache":"MISS"},"startTime":1736835520810,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":159690,"timestamp":17984873,"id":1262,"parentId":1188,"tags":{"name":"../pages/api/reAuthenticateUser.js","cache":"MISS"},"startTime":1736835520808,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":163704,"timestamp":17980903,"id":1237,"parentId":1188,"tags":{"name":"../pages/api/deleteUserUser.js","cache":"MISS"},"startTime":1736835520804,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":161765,"timestamp":17982916,"id":1252,"parentId":1188,"tags":{"name":"../pages/api/infiniteScroll.js","cache":"MISS"},"startTime":1736835520806,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":166922,"timestamp":17977837,"id":1221,"parentId":1188,"tags":{"name":"../pages/api/connect/disconnect.js","cache":"MISS"},"startTime":1736835520801,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":162327,"timestamp":17982496,"id":1249,"parentId":1188,"tags":{"name":"../pages/api/healthcheck.js","cache":"MISS"},"startTime":1736835520806,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":153614,"timestamp":17991305,"id":1304,"parentId":1188,"tags":{"name":"../pages/api/user/[user_id]/update-user.js","cache":"MISS"},"startTime":1736835520814,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":136330,"timestamp":18008691,"id":1358,"parentId":1188,"tags":{"name":"../pages/privacy.js","cache":"MISS"},"startTime":1736835520832,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":156614,"timestamp":17988509,"id":1290,"parentId":1188,"tags":{"name":"../pages/api/updateUserDatabase.js","cache":"MISS"},"startTime":1736835520812,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":136003,"timestamp":18009177,"id":1360,"parentId":1188,"tags":{"name":"../pages/logout.js","cache":"MISS"},"startTime":1736835520832,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":130646,"timestamp":18014600,"id":1381,"parentId":1188,"tags":{"name":"../webpack-runtime.js","cache":"MISS"},"startTime":1736835520838,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":149433,"timestamp":17995930,"id":1316,"parentId":1188,"tags":{"name":"../pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/add-entry.js","cache":"MISS"},"startTime":1736835520819,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":158572,"timestamp":17986838,"id":1277,"parentId":1188,"tags":{"name":"../pages/api/sql-users/create.js","cache":"MISS"},"startTime":1736835520810,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":167737,"timestamp":17977732,"id":1220,"parentId":1188,"tags":{"name":"../pages/api/clientSideAuth.js","cache":"MISS"},"startTime":1736835520801,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":157997,"timestamp":17987517,"id":1283,"parentId":1188,"tags":{"name":"../pages/api/test/mail.js","cache":"MISS"},"startTime":1736835520811,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":133240,"timestamp":18012330,"id":1373,"parentId":1188,"tags":{"name":"../pages/su/load-balancing.js","cache":"MISS"},"startTime":1736835520835,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":130727,"timestamp":18014892,"id":1382,"parentId":1188,"tags":{"name":"../webpack-api-runtime.js","cache":"MISS"},"startTime":1736835520838,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":136655,"timestamp":18009014,"id":1359,"parentId":1188,"tags":{"name":"../pages/redirect.js","cache":"MISS"},"startTime":1736835520832,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":158315,"timestamp":17987445,"id":1282,"parentId":1188,"tags":{"name":"../pages/api/test/cors.js","cache":"MISS"},"startTime":1736835520811,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":159097,"timestamp":17986721,"id":1276,"parentId":1188,"tags":{"name":"../pages/api/social-login/utils/getEmailFromSocialId.js","cache":"MISS"},"startTime":1736835520810,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":147988,"timestamp":17997949,"id":1322,"parentId":1188,"tags":{"name":"../pages/admin/[user_id]/databases/[single]/tables/[single_table].js","cache":"MISS"},"startTime":1736835520821,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":136128,"timestamp":18009885,"id":1363,"parentId":1188,"tags":{"name":"../pages/send-password-reset-link.js","cache":"MISS"},"startTime":1736835520833,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":161542,"timestamp":17984545,"id":1261,"parentId":1188,"tags":{"name":"../pages/api/queryEntriesSearchTerm.js","cache":"MISS"},"startTime":1736835520808,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":161718,"timestamp":17984417,"id":1260,"parentId":1188,"tags":{"name":"../pages/api/query/[user_id]/update-schema-from-single-database.js","cache":"MISS"},"startTime":1736835520808,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":145620,"timestamp":18000559,"id":1329,"parentId":1188,"tags":{"name":"../pages/admin/[user_id].js","cache":"MISS"},"startTime":1736835520824,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":145396,"timestamp":18000864,"id":1330,"parentId":1188,"tags":{"name":"../pages/admin/[user_id]/databases/[single]/users/add-user.js","cache":"MISS"},"startTime":1736835520824,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":159655,"timestamp":17986648,"id":1275,"parentId":1188,"tags":{"name":"../pages/api/social-login/utils/checkSocialId.js","cache":"MISS"},"startTime":1736835520810,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":134285,"timestamp":18012060,"id":1372,"parentId":1188,"tags":{"name":"../pages/su.js","cache":"MISS"},"startTime":1736835520835,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":132014,"timestamp":18014415,"id":1380,"parentId":1188,"tags":{"name":"../pages/unsubscribe.js","cache":"MISS"},"startTime":1736835520838,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":128998,"timestamp":18017508,"id":1390,"parentId":1188,"tags":{"name":"6622.js","cache":"MISS"},"startTime":1736835520841,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":164170,"timestamp":17982384,"id":1248,"parentId":1188,"tags":{"name":"../pages/api/getUserSchemaData.js","cache":"MISS"},"startTime":1736835520806,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":146240,"timestamp":18000360,"id":1328,"parentId":1188,"tags":{"name":"../pages/admin/[user_id]/databases.js","cache":"MISS"},"startTime":1736835520824,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":137077,"timestamp":18009609,"id":1362,"parentId":1188,"tags":{"name":"../pages/reset-password.js","cache":"MISS"},"startTime":1736835520833,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":157859,"timestamp":17991113,"id":1303,"parentId":1188,"tags":{"name":"../pages/api/user/[user_id]/send-email-code.js","cache":"MISS"},"startTime":1736835520814,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":171496,"timestamp":17977609,"id":1219,"parentId":1188,"tags":{"name":"../pages/api/checkExistingFolder.js","cache":"MISS"},"startTime":1736835520801,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":161909,"timestamp":17987261,"id":1281,"parentId":1188,"tags":{"name":"../pages/api/sync-table-data.js","cache":"MISS"},"startTime":1736835520810,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":137352,"timestamp":18011871,"id":1371,"parentId":1188,"tags":{"name":"../pages/su/error-logs.js","cache":"MISS"},"startTime":1736835520835,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":162701,"timestamp":17986567,"id":1274,"parentId":1188,"tags":{"name":"../pages/api/social-login/utils/checkEmail.js","cache":"MISS"},"startTime":1736835520810,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":156310,"timestamp":17997377,"id":1321,"parentId":1188,"tags":{"name":"../pages/admin/[user_id]/databases/[single]/tables/add-table.js","cache":"MISS"},"startTime":1736835520821,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":144448,"timestamp":18009364,"id":1361,"parentId":1188,"tags":{"name":"../pages/su/backups.js","cache":"MISS"},"startTime":1736835520833,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":161500,"timestamp":17995591,"id":1315,"parentId":1188,"tags":{"name":"../pages/admin/[user_id]/databases/[single]/shell.js","cache":"MISS"},"startTime":1736835520819,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":136730,"timestamp":18020453,"id":1397,"parentId":1188,"tags":{"name":"5954.js","cache":"MISS"},"startTime":1736835520844,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":138105,"timestamp":18020566,"id":1398,"parentId":1188,"tags":{"name":"6903.js","cache":"MISS"},"startTime":1736835520844,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":147308,"timestamp":18011547,"id":1370,"parentId":1188,"tags":{"name":"../pages/su/envar.js","cache":"MISS"},"startTime":1736835520835,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":139042,"timestamp":18021116,"id":1399,"parentId":1188,"tags":{"name":"6160.js","cache":"MISS"},"startTime":1736835520844,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":205244,"timestamp":17982301,"id":1247,"parentId":1188,"tags":{"name":"../pages/api/getUserMedia.js","cache":"MISS"},"startTime":1736835520805,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":173617,"timestamp":18014085,"id":1379,"parentId":1188,"tags":{"name":"../pages/terms.js","cache":"MISS"},"startTime":1736835520837,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":190580,"timestamp":17997185,"id":1320,"parentId":1188,"tags":{"name":"../pages/admin/[user_id]/databases/[single]/users/[user]/change-password.js","cache":"MISS"},"startTime":1736835520820,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":201346,"timestamp":17986471,"id":1273,"parentId":1188,"tags":{"name":"../pages/api/social-login/google-auth.js","cache":"MISS"},"startTime":1736835520810,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":174069,"timestamp":18013927,"id":1378,"parentId":1188,"tags":{"name":"../pages/su/users/new.js","cache":"MISS"},"startTime":1736835520837,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":210647,"timestamp":17977425,"id":1218,"parentId":1188,"tags":{"name":"../pages/api/changeDbUserPassword.js","cache":"MISS"},"startTime":1736835520801,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":179923,"timestamp":18008220,"id":1357,"parentId":1188,"tags":{"name":"../pages/login.js","cache":"MISS"},"startTime":1736835520831,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":171319,"timestamp":18016877,"id":1387,"parentId":1188,"tags":{"name":"5392.js","cache":"MISS"},"startTime":1736835520840,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":206077,"timestamp":17982203,"id":1246,"parentId":1188,"tags":{"name":"../pages/api/getUserDatabases.js","cache":"MISS"},"startTime":1736835520805,"traceId":"80a02e6b898c9dbf"}] -[{"name":"minify-js","duration":177479,"timestamp":18011315,"id":1369,"parentId":1188,"tags":{"name":"../pages/su/docs/pages.js","cache":"MISS"},"startTime":1736835520834,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":197919,"timestamp":17990982,"id":1302,"parentId":1188,"tags":{"name":"../pages/api/user/[user_id]/reauth-user.js","cache":"MISS"},"startTime":1736835520814,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":170252,"timestamp":18018705,"id":1394,"parentId":1188,"tags":{"name":"3704.js","cache":"MISS"},"startTime":1736835520842,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":175303,"timestamp":18013716,"id":1377,"parentId":1188,"tags":{"name":"../pages/su/users.js","cache":"MISS"},"startTime":1736835520837,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":177929,"timestamp":18011137,"id":1368,"parentId":1188,"tags":{"name":"../pages/su/docs/pages/[id].js","cache":"MISS"},"startTime":1736835520834,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":170689,"timestamp":18018426,"id":1393,"parentId":1188,"tags":{"name":"3791.js","cache":"MISS"},"startTime":1736835520842,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":207114,"timestamp":17982092,"id":1245,"parentId":1188,"tags":{"name":"../pages/api/getUserDatabaseTables.js","cache":"MISS"},"startTime":1736835520805,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":189234,"timestamp":18000050,"id":1327,"parentId":1188,"tags":{"name":"../pages/admin/[user_id]/databases/[single]/users.js","cache":"MISS"},"startTime":1736835520823,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":194126,"timestamp":17995231,"id":1314,"parentId":1188,"tags":{"name":"../pages/admin/[user_id]/databases/[single]/tables/[single_table]/edit-table.js","cache":"MISS"},"startTime":1736835520818,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":172112,"timestamp":18017330,"id":1389,"parentId":1188,"tags":{"name":"3634.js","cache":"MISS"},"startTime":1736835520840,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":212254,"timestamp":17977246,"id":1217,"parentId":1188,"tags":{"name":"../pages/api/checkDuplicateData.js","cache":"MISS"},"startTime":1736835520800,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":166149,"timestamp":18023415,"id":1404,"parentId":1188,"tags":{"name":"3474.js","cache":"MISS"},"startTime":1736835520847,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":171374,"timestamp":18018239,"id":1392,"parentId":1188,"tags":{"name":"3155.js","cache":"MISS"},"startTime":1736835520841,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":178901,"timestamp":18010762,"id":1367,"parentId":1188,"tags":{"name":"../pages/su/docs.js","cache":"MISS"},"startTime":1736835520834,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":194231,"timestamp":17996851,"id":1319,"parentId":1188,"tags":{"name":"../pages/admin/[user_id]/databases/[single]/tables/[single_table]/fields.js","cache":"MISS"},"startTime":1736835520820,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":187188,"timestamp":18019924,"id":1396,"parentId":1188,"tags":{"name":"725.js","cache":"MISS"},"startTime":1736835520843,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":196631,"timestamp":18010599,"id":1366,"parentId":1188,"tags":{"name":"../pages/su/docs/edit-page.js","cache":"MISS"},"startTime":1736835520834,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":207571,"timestamp":17999715,"id":1326,"parentId":1188,"tags":{"name":"../pages/admin/[user_id]/databases/add-database.js","cache":"MISS"},"startTime":1736835520823,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":225411,"timestamp":17981934,"id":1244,"parentId":1188,"tags":{"name":"../pages/api/getDiskUsage.js","cache":"MISS"},"startTime":1736835520805,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":216600,"timestamp":17990808,"id":1301,"parentId":1188,"tags":{"name":"../pages/api/user/[user_id]/login-user.js","cache":"MISS"},"startTime":1736835520814,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":197217,"timestamp":18010437,"id":1365,"parentId":1188,"tags":{"name":"../pages/su/docs/create-page.js","cache":"MISS"},"startTime":1736835520834,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":230656,"timestamp":17977059,"id":1216,"parentId":1188,"tags":{"name":"../pages/api/admin/updateEnv.js","cache":"MISS"},"startTime":1736835520800,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":212930,"timestamp":17994855,"id":1313,"parentId":1188,"tags":{"name":"../pages/admin/[user_id]/databases/[single].js","cache":"MISS"},"startTime":1736835520818,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":191751,"timestamp":18016087,"id":1385,"parentId":1188,"tags":{"name":"6521.js","cache":"MISS"},"startTime":1736835520839,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":199955,"timestamp":18007936,"id":1356,"parentId":1188,"tags":{"name":"../pages/email-verification.js","cache":"MISS"},"startTime":1736835520831,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":190705,"timestamp":18017241,"id":1388,"parentId":1188,"tags":{"name":"1251.js","cache":"MISS"},"startTime":1736835520840,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":197817,"timestamp":18010172,"id":1364,"parentId":1188,"tags":{"name":"../pages/su/console.js","cache":"MISS"},"startTime":1736835520833,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":192223,"timestamp":18015848,"id":1384,"parentId":1188,"tags":{"name":"9821.js","cache":"MISS"},"startTime":1736835520839,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":217463,"timestamp":17990682,"id":1300,"parentId":1188,"tags":{"name":"../pages/api/user/[user_id]/grab-google-user-from-token.js","cache":"MISS"},"startTime":1736835520814,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":187118,"timestamp":18024347,"id":1408,"parentId":1188,"tags":{"name":"3496.js","cache":"MISS"},"startTime":1736835520847,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":198493,"timestamp":18013147,"id":1376,"parentId":1188,"tags":{"name":"../pages/su/users/[single].js","cache":"MISS"},"startTime":1736835520836,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":207625,"timestamp":18022838,"id":1403,"parentId":1188,"tags":{"name":"8704.js","cache":"MISS"},"startTime":1736835520846,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":223167,"timestamp":18007419,"id":1355,"parentId":1188,"tags":{"name":"../pages/index.js","cache":"MISS"},"startTime":1736835520831,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":225147,"timestamp":18005488,"id":1349,"parentId":1188,"tags":{"name":"../pages/blog.js","cache":"MISS"},"startTime":1736835520829,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":225935,"timestamp":18004749,"id":1343,"parentId":1188,"tags":{"name":"../pages/api/fetch-media.js","cache":"MISS"},"startTime":1736835520828,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":213011,"timestamp":18017869,"id":1391,"parentId":1188,"tags":{"name":"2282.js","cache":"MISS"},"startTime":1736835520841,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":249143,"timestamp":17981797,"id":1243,"parentId":1188,"tags":{"name":"../pages/api/getDelegatedDatabases.js","cache":"MISS"},"startTime":1736835520805,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":240455,"timestamp":17990532,"id":1299,"parentId":1188,"tags":{"name":"../pages/api/user/[user_id]/google-login.js","cache":"MISS"},"startTime":1736835520814,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":209436,"timestamp":18021605,"id":1401,"parentId":1188,"tags":{"name":"1579.js","cache":"MISS"},"startTime":1736835520845,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":231863,"timestamp":17999223,"id":1324,"parentId":1188,"tags":{"name":"../pages/admin/[user_id]/databases/[single]/users/[user].js","cache":"MISS"},"startTime":1736835520822,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":207021,"timestamp":18024117,"id":1407,"parentId":1188,"tags":{"name":"194.js","cache":"MISS"},"startTime":1736835520847,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":214909,"timestamp":18016270,"id":1386,"parentId":1188,"tags":{"name":"9796.js","cache":"MISS"},"startTime":1736835520839,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":218271,"timestamp":18012957,"id":1375,"parentId":1188,"tags":{"name":"../pages/su/servers.js","cache":"MISS"},"startTime":1736835520836,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":231964,"timestamp":17999319,"id":1325,"parentId":1188,"tags":{"name":"../pages/admin/[user_id]/databases/[single]/users/add-social-logins.js","cache":"MISS"},"startTime":1736835520822,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":226697,"timestamp":18004645,"id":1342,"parentId":1188,"tags":{"name":"../pages/api/exportTableData.js","cache":"MISS"},"startTime":1736835520828,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":224201,"timestamp":18007187,"id":1354,"parentId":1188,"tags":{"name":"../pages/docs/[page].js","cache":"MISS"},"startTime":1736835520830,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":241098,"timestamp":17990328,"id":1298,"parentId":1188,"tags":{"name":"../pages/api/user/[user_id]/github-login.js","cache":"MISS"},"startTime":1736835520813,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":237041,"timestamp":17994435,"id":1312,"parentId":1188,"tags":{"name":"../pages/admin/[user_id]/databases/[single]/schema.js","cache":"MISS"},"startTime":1736835520818,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":249865,"timestamp":17981655,"id":1242,"parentId":1188,"tags":{"name":"../pages/api/getDelegatedDatabaseToken.js","cache":"MISS"},"startTime":1736835520805,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":207686,"timestamp":18023931,"id":1406,"parentId":1188,"tags":{"name":"6202.js","cache":"MISS"},"startTime":1736835520847,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":256950,"timestamp":17976858,"id":1215,"parentId":1188,"tags":{"name":"../pages/api/admin/runUserDbQuery.js","cache":"MISS"},"startTime":1736835520800,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":215019,"timestamp":18018876,"id":1395,"parentId":1188,"tags":{"name":"9901.js","cache":"MISS"},"startTime":1736835520842,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":231564,"timestamp":18005313,"id":1348,"parentId":1188,"tags":{"name":"../pages/api/query/[user_id]/post.js","cache":"MISS"},"startTime":1736835520828,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":232397,"timestamp":18005081,"id":1346,"parentId":1188,"tags":{"name":"../pages/api/query/[user_id]/get-private-file.js","cache":"MISS"},"startTime":1736835520828,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":226673,"timestamp":18012675,"id":1374,"parentId":1188,"tags":{"name":"../pages/su/login.js","cache":"MISS"},"startTime":1736835520836,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":218421,"timestamp":18021362,"id":1400,"parentId":1188,"tags":{"name":"4627.js","cache":"MISS"},"startTime":1736835520845,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":235597,"timestamp":18005181,"id":1347,"parentId":1188,"tags":{"name":"../pages/api/query/[user_id]/delete-file.js","cache":"MISS"},"startTime":1736835520828,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":243051,"timestamp":17998918,"id":1323,"parentId":1188,"tags":{"name":"../pages/admin/[user_id]/databases/[single]/tables.js","cache":"MISS"},"startTime":1736835520822,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":236019,"timestamp":18006904,"id":1353,"parentId":1188,"tags":{"name":"../pages/docs.js","cache":"MISS"},"startTime":1736835520830,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":254331,"timestamp":17992541,"id":1309,"parentId":1188,"tags":{"name":"../pages/admin/[user_id]/databases/[single]/edit-database.js","cache":"MISS"},"startTime":1736835520816,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":233800,"timestamp":18023669,"id":1405,"parentId":1188,"tags":{"name":"8760.js","cache":"MISS"},"startTime":1736835520847,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":255655,"timestamp":18001939,"id":1333,"parentId":1188,"tags":{"name":"../pages/admin/[user_id]/media.js","cache":"MISS"},"startTime":1736835520825,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":267630,"timestamp":17990088,"id":1297,"parentId":1188,"tags":{"name":"../pages/api/user/[user_id]/get-user.js","cache":"MISS"},"startTime":1736835520813,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":266123,"timestamp":17991640,"id":1307,"parentId":1188,"tags":{"name":"../pages/about.js","cache":"MISS"},"startTime":1736835520815,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":252869,"timestamp":18004948,"id":1345,"parentId":1188,"tags":{"name":"../pages/api/query/[user_id]/add-image.js","cache":"MISS"},"startTime":1736835520828,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":255638,"timestamp":18002224,"id":1334,"parentId":1188,"tags":{"name":"../pages/admin/[user_id]/settings.js","cache":"MISS"},"startTime":1736835520825,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":252257,"timestamp":18005666,"id":1350,"parentId":1188,"tags":{"name":"../pages/contact.js","cache":"MISS"},"startTime":1736835520829,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":255109,"timestamp":18002882,"id":1336,"parentId":1188,"tags":{"name":"../pages/admin/[user_id]/users/databases/[database]/[user].js","cache":"MISS"},"startTime":1736835520826,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":280823,"timestamp":17989423,"id":1294,"parentId":1188,"tags":{"name":"../pages/api/user-schema/replace-database-schema.js","cache":"MISS"},"startTime":1736835520813,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":274991,"timestamp":18001673,"id":1332,"parentId":1188,"tags":{"name":"../pages/admin/[user_id]/schema.js","cache":"MISS"},"startTime":1736835520825,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":271933,"timestamp":18004821,"id":1344,"parentId":1188,"tags":{"name":"../pages/api/query/[user_id]/add-file.js","cache":"MISS"},"startTime":1736835520828,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":272569,"timestamp":18004233,"id":1340,"parentId":1188,"tags":{"name":"../pages/admin.js","cache":"MISS"},"startTime":1736835520827,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":285126,"timestamp":17991823,"id":1308,"parentId":1188,"tags":{"name":"../pages/admin/[user_id]/api-keys.js","cache":"MISS"},"startTime":1736835520815,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":287073,"timestamp":17989920,"id":1296,"parentId":1188,"tags":{"name":"../pages/api/user/[user_id]/delete-user.js","cache":"MISS"},"startTime":1736835520813,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":283293,"timestamp":17993753,"id":1311,"parentId":1188,"tags":{"name":"../pages/admin/[user_id]/databases/[single]/connect.js","cache":"MISS"},"startTime":1736835520817,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":272669,"timestamp":18004429,"id":1341,"parentId":1188,"tags":{"name":"../pages/api/addUserMedia.js","cache":"MISS"},"startTime":1736835520828,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":271201,"timestamp":18005947,"id":1351,"parentId":1188,"tags":{"name":"../pages/create-account.js","cache":"MISS"},"startTime":1736835520829,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":270580,"timestamp":18006601,"id":1352,"parentId":1188,"tags":{"name":"../pages/docs/[page]/[sub-page].js","cache":"MISS"},"startTime":1736835520830,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":287664,"timestamp":17989567,"id":1295,"parentId":1188,"tags":{"name":"../pages/api/user/[user_id]/add-user.js","cache":"MISS"},"startTime":1736835520813,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":275912,"timestamp":18001344,"id":1331,"parentId":1188,"tags":{"name":"../pages/admin/[user_id]/media/[...folder].js","cache":"MISS"},"startTime":1736835520824,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":255637,"timestamp":18021686,"id":1402,"parentId":1188,"tags":{"name":"5839.js","cache":"MISS"},"startTime":1736835520845,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":284448,"timestamp":17992924,"id":1310,"parentId":1188,"tags":{"name":"../pages/admin/[user_id]/connect.js","cache":"MISS"},"startTime":1736835520816,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":273896,"timestamp":18003511,"id":1338,"parentId":1188,"tags":{"name":"../pages/admin/[user_id]/users/databases.js","cache":"MISS"},"startTime":1736835520827,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":274935,"timestamp":18002508,"id":1335,"parentId":1188,"tags":{"name":"../pages/admin/[user_id]/users/add-user.js","cache":"MISS"},"startTime":1736835520826,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":274260,"timestamp":18003224,"id":1337,"parentId":1188,"tags":{"name":"../pages/admin/[user_id]/users/databases/[database].js","cache":"MISS"},"startTime":1736835520826,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":278752,"timestamp":18003795,"id":1339,"parentId":1188,"tags":{"name":"../pages/admin/[user_id]/users.js","cache":"MISS"},"startTime":1736835520827,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":267732,"timestamp":18014957,"id":1383,"parentId":1188,"tags":{"name":"883.js","cache":"MISS"},"startTime":1736835520838,"traceId":"80a02e6b898c9dbf"},{"name":"minify-webpack-plugin-optimize","duration":363991,"timestamp":17918711,"id":1188,"parentId":16,"tags":{"compilationName":"server"},"startTime":1736835520742,"traceId":"80a02e6b898c9dbf"},{"name":"css-minimizer-plugin","duration":299,"timestamp":18283067,"id":1409,"parentId":16,"tags":{},"startTime":1736835521106,"traceId":"80a02e6b898c9dbf"},{"name":"create-trace-assets","duration":10462,"timestamp":18283862,"id":1410,"parentId":17,"tags":{},"startTime":1736835521107,"traceId":"80a02e6b898c9dbf"},{"name":"seal","duration":1676142,"timestamp":16624439,"id":1175,"parentId":16,"tags":{},"startTime":1736835519448,"traceId":"80a02e6b898c9dbf"},{"name":"webpack-compilation","duration":15944249,"timestamp":2356763,"id":16,"parentId":13,"tags":{"name":"server"},"startTime":1736835505180,"traceId":"80a02e6b898c9dbf"},{"name":"emit","duration":26729,"timestamp":18301537,"id":1411,"parentId":13,"tags":{},"startTime":1736835521125,"traceId":"80a02e6b898c9dbf"},{"name":"webpack-close","duration":724485,"timestamp":18330041,"id":1412,"parentId":13,"tags":{"name":"server"},"startTime":1736835521153,"traceId":"80a02e6b898c9dbf"},{"name":"webpack-generate-error-stats","duration":3403,"timestamp":19054643,"id":1413,"parentId":1412,"tags":{},"startTime":1736835521878,"traceId":"80a02e6b898c9dbf"},{"name":"make","duration":116,"timestamp":19073265,"id":1415,"parentId":1414,"tags":{},"startTime":1736835521896,"traceId":"80a02e6b898c9dbf"},{"name":"chunk-graph","duration":85,"timestamp":19074788,"id":1417,"parentId":1416,"tags":{},"startTime":1736835521898,"traceId":"80a02e6b898c9dbf"},{"name":"optimize-modules","duration":11,"timestamp":19074937,"id":1419,"parentId":1416,"tags":{},"startTime":1736835521898,"traceId":"80a02e6b898c9dbf"},{"name":"optimize-chunks","duration":146,"timestamp":19074998,"id":1420,"parentId":1416,"tags":{},"startTime":1736835521898,"traceId":"80a02e6b898c9dbf"},{"name":"optimize-tree","duration":9,"timestamp":19075181,"id":1421,"parentId":1416,"tags":{},"startTime":1736835521898,"traceId":"80a02e6b898c9dbf"},{"name":"optimize-chunk-modules","duration":100,"timestamp":19075235,"id":1422,"parentId":1416,"tags":{},"startTime":1736835521898,"traceId":"80a02e6b898c9dbf"}] -[{"name":"optimize","duration":718,"timestamp":19074914,"id":1418,"parentId":1416,"tags":{},"startTime":1736835521898,"traceId":"80a02e6b898c9dbf"},{"name":"module-hash","duration":26,"timestamp":19076046,"id":1423,"parentId":1416,"tags":{},"startTime":1736835521899,"traceId":"80a02e6b898c9dbf"},{"name":"code-generation","duration":19,"timestamp":19076096,"id":1424,"parentId":1416,"tags":{},"startTime":1736835521899,"traceId":"80a02e6b898c9dbf"},{"name":"hash","duration":85,"timestamp":19076195,"id":1425,"parentId":1416,"tags":{},"startTime":1736835521899,"traceId":"80a02e6b898c9dbf"},{"name":"code-generation-jobs","duration":42,"timestamp":19076280,"id":1426,"parentId":1416,"tags":{},"startTime":1736835521899,"traceId":"80a02e6b898c9dbf"},{"name":"module-assets","duration":21,"timestamp":19076307,"id":1427,"parentId":1416,"tags":{},"startTime":1736835521899,"traceId":"80a02e6b898c9dbf"},{"name":"create-chunk-assets","duration":34,"timestamp":19076344,"id":1428,"parentId":1416,"tags":{},"startTime":1736835521899,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":541,"timestamp":19085997,"id":1430,"parentId":1429,"tags":{"name":"interception-route-rewrite-manifest.js","cache":"MISS"},"startTime":1736835521909,"traceId":"80a02e6b898c9dbf"},{"name":"minify-webpack-plugin-optimize","duration":1178,"timestamp":19085381,"id":1429,"parentId":1414,"tags":{"compilationName":"edge-server"},"startTime":1736835521909,"traceId":"80a02e6b898c9dbf"},{"name":"css-minimizer-plugin","duration":26,"timestamp":19086626,"id":1431,"parentId":1414,"tags":{},"startTime":1736835521910,"traceId":"80a02e6b898c9dbf"},{"name":"seal","duration":13596,"timestamp":19074581,"id":1416,"parentId":1414,"tags":{},"startTime":1736835521898,"traceId":"80a02e6b898c9dbf"},{"name":"webpack-compilation","duration":17185,"timestamp":19071113,"id":1414,"parentId":13,"tags":{"name":"edge-server"},"startTime":1736835521894,"traceId":"80a02e6b898c9dbf"},{"name":"emit","duration":423,"timestamp":19088385,"id":1432,"parentId":13,"tags":{},"startTime":1736835521912,"traceId":"80a02e6b898c9dbf"},{"name":"webpack-close","duration":3163,"timestamp":19089119,"id":1433,"parentId":13,"tags":{"name":"edge-server"},"startTime":1736835521912,"traceId":"80a02e6b898c9dbf"},{"name":"webpack-generate-error-stats","duration":694,"timestamp":19092301,"id":1434,"parentId":1433,"tags":{},"startTime":1736835521915,"traceId":"80a02e6b898c9dbf"},{"name":"next-client-pages-loader","duration":329,"timestamp":19138383,"id":1510,"parentId":1509,"tags":{"absolutePagePath":"next/dist/pages/_error"},"startTime":1736835521962,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":3609,"timestamp":19136699,"id":1509,"parentId":1438,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=next%2Fdist%2Fpages%2F_error&page=%2F_error!","layer":null},"startTime":1736835521960,"traceId":"80a02e6b898c9dbf"},{"name":"next-client-pages-loader","duration":76,"timestamp":19140502,"id":1512,"parentId":1511,"tags":{"absolutePagePath":"private-next-pages/404.tsx"},"startTime":1736835521964,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":652,"timestamp":19140417,"id":1511,"parentId":1439,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2F404.tsx&page=%2F404!","layer":null},"startTime":1736835521964,"traceId":"80a02e6b898c9dbf"},{"name":"next-client-pages-loader","duration":61,"timestamp":19141136,"id":1514,"parentId":1513,"tags":{"absolutePagePath":"private-next-pages/500.tsx"},"startTime":1736835521964,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":367,"timestamp":19141096,"id":1513,"parentId":1440,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2F500.tsx&page=%2F500!","layer":null},"startTime":1736835521964,"traceId":"80a02e6b898c9dbf"},{"name":"next-client-pages-loader","duration":58,"timestamp":19141516,"id":1516,"parentId":1515,"tags":{"absolutePagePath":"private-next-pages/_app.tsx"},"startTime":1736835521965,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":343,"timestamp":19141481,"id":1515,"parentId":1441,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2F_app.tsx&page=%2F_app!","layer":null},"startTime":1736835521965,"traceId":"80a02e6b898c9dbf"},{"name":"next-client-pages-loader","duration":58,"timestamp":19141878,"id":1518,"parentId":1517,"tags":{"absolutePagePath":"private-next-pages/about.tsx"},"startTime":1736835521965,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":330,"timestamp":19141845,"id":1517,"parentId":1443,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fabout.tsx&page=%2Fabout!","layer":null},"startTime":1736835521965,"traceId":"80a02e6b898c9dbf"},{"name":"next-client-pages-loader","duration":117,"timestamp":19142224,"id":1520,"parentId":1519,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/api-keys/index.tsx"},"startTime":1736835521965,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":398,"timestamp":19142191,"id":1519,"parentId":1444,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fapi-keys%2Findex.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fapi-keys!","layer":null},"startTime":1736835521965,"traceId":"80a02e6b898c9dbf"},{"name":"next-client-pages-loader","duration":136,"timestamp":19142642,"id":1522,"parentId":1521,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/databases/[single]/edit-database.tsx"},"startTime":1736835521966,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":437,"timestamp":19142610,"id":1521,"parentId":1445,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fedit-database.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fedit-database!","layer":null},"startTime":1736835521966,"traceId":"80a02e6b898c9dbf"},{"name":"next-client-pages-loader","duration":87,"timestamp":19143097,"id":1524,"parentId":1523,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/connect/index.tsx"},"startTime":1736835521966,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":419,"timestamp":19143065,"id":1523,"parentId":1446,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fconnect%2Findex.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fconnect!","layer":null},"startTime":1736835521966,"traceId":"80a02e6b898c9dbf"},{"name":"next-client-pages-loader","duration":94,"timestamp":19143540,"id":1526,"parentId":1525,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/databases/[single]/connect.tsx"},"startTime":1736835521967,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":400,"timestamp":19143502,"id":1525,"parentId":1447,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fconnect.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fconnect!","layer":null},"startTime":1736835521967,"traceId":"80a02e6b898c9dbf"},{"name":"next-client-pages-loader","duration":96,"timestamp":19143954,"id":1528,"parentId":1527,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/databases/[single]/schema.tsx"},"startTime":1736835521967,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":376,"timestamp":19143920,"id":1527,"parentId":1448,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fschema.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fschema!","layer":null},"startTime":1736835521967,"traceId":"80a02e6b898c9dbf"},{"name":"next-client-pages-loader","duration":93,"timestamp":19144348,"id":1530,"parentId":1529,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/databases/[single]/index.tsx"},"startTime":1736835521967,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":367,"timestamp":19144313,"id":1529,"parentId":1449,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Findex.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D!","layer":null},"startTime":1736835521967,"traceId":"80a02e6b898c9dbf"},{"name":"next-client-pages-loader","duration":114,"timestamp":19144733,"id":1532,"parentId":1531,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/databases/[single]/tables/[single_table]/edit-table.tsx"},"startTime":1736835521968,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":385,"timestamp":19144698,"id":1531,"parentId":1450,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Fedit-table.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Fedit-table!","layer":null},"startTime":1736835521968,"traceId":"80a02e6b898c9dbf"},{"name":"next-client-pages-loader","duration":87,"timestamp":19145140,"id":1534,"parentId":1533,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/databases/[single]/shell.tsx"},"startTime":1736835521968,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":415,"timestamp":19145100,"id":1533,"parentId":1451,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fshell.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fshell!","layer":null},"startTime":1736835521968,"traceId":"80a02e6b898c9dbf"},{"name":"next-client-pages-loader","duration":152,"timestamp":19145585,"id":1536,"parentId":1535,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/add-entry.tsx"},"startTime":1736835521969,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":471,"timestamp":19145538,"id":1535,"parentId":1452,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Fentries%2Fadd-entry.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Fentries%2Fadd-entry!","layer":null},"startTime":1736835521969,"traceId":"80a02e6b898c9dbf"},{"name":"next-client-pages-loader","duration":130,"timestamp":19146072,"id":1538,"parentId":1537,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/index.tsx"},"startTime":1736835521969,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":429,"timestamp":19146029,"id":1537,"parentId":1453,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Fentries%2Findex.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Fentries!","layer":null},"startTime":1736835521969,"traceId":"80a02e6b898c9dbf"},{"name":"next-client-pages-loader","duration":159,"timestamp":19146513,"id":1540,"parentId":1539,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/[single_entry].tsx"},"startTime":1736835521970,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":455,"timestamp":19146478,"id":1539,"parentId":1454,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Fentries%2F%5Bsingle_entry%5D.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Fentries%2F%5Bsingle_entry%5D!","layer":null},"startTime":1736835521970,"traceId":"80a02e6b898c9dbf"},{"name":"next-client-pages-loader","duration":121,"timestamp":19146987,"id":1542,"parentId":1541,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/databases/[single]/tables/[single_table]/fields.tsx"},"startTime":1736835521970,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":441,"timestamp":19146951,"id":1541,"parentId":1455,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Ffields.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Ffields!","layer":null},"startTime":1736835521970,"traceId":"80a02e6b898c9dbf"},{"name":"next-client-pages-loader","duration":102,"timestamp":19147443,"id":1544,"parentId":1543,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/databases/[single]/users/[user]/change-password.tsx"},"startTime":1736835521971,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":390,"timestamp":19147410,"id":1543,"parentId":1456,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers%2F%5Buser%5D%2Fchange-password.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers%2F%5Buser%5D%2Fchange-password!","layer":null},"startTime":1736835521971,"traceId":"80a02e6b898c9dbf"},{"name":"next-client-pages-loader","duration":92,"timestamp":19147851,"id":1546,"parentId":1545,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/databases/[single]/tables/add-table.tsx"},"startTime":1736835521971,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":348,"timestamp":19147817,"id":1545,"parentId":1457,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2Fadd-table.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2Fadd-table!","layer":null},"startTime":1736835521971,"traceId":"80a02e6b898c9dbf"},{"name":"next-client-pages-loader","duration":100,"timestamp":19148220,"id":1548,"parentId":1547,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/databases/[single]/tables/[single_table]/index.tsx"},"startTime":1736835521971,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":378,"timestamp":19148185,"id":1547,"parentId":1458,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Findex.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D!","layer":null},"startTime":1736835521971,"traceId":"80a02e6b898c9dbf"},{"name":"next-client-pages-loader","duration":124,"timestamp":19148615,"id":1550,"parentId":1549,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/databases/[single]/tables/index.tsx"},"startTime":1736835521972,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":449,"timestamp":19148581,"id":1549,"parentId":1459,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2Findex.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables!","layer":null},"startTime":1736835521972,"traceId":"80a02e6b898c9dbf"},{"name":"next-client-pages-loader","duration":180,"timestamp":19149104,"id":1552,"parentId":1551,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/databases/[single]/users/[user]/index.tsx"},"startTime":1736835521972,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":617,"timestamp":19149052,"id":1551,"parentId":1460,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers%2F%5Buser%5D%2Findex.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers%2F%5Buser%5D!","layer":null},"startTime":1736835521972,"traceId":"80a02e6b898c9dbf"},{"name":"next-client-pages-loader","duration":120,"timestamp":19149730,"id":1554,"parentId":1553,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/databases/[single]/users/add-social-logins.tsx"},"startTime":1736835521973,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":484,"timestamp":19149691,"id":1553,"parentId":1461,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers%2Fadd-social-logins.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers%2Fadd-social-logins!","layer":null},"startTime":1736835521973,"traceId":"80a02e6b898c9dbf"},{"name":"next-client-pages-loader","duration":96,"timestamp":19150229,"id":1556,"parentId":1555,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/databases/add-database.tsx"},"startTime":1736835521973,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":448,"timestamp":19150194,"id":1555,"parentId":1462,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2Fadd-database.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2Fadd-database!","layer":null},"startTime":1736835521973,"traceId":"80a02e6b898c9dbf"},{"name":"next-client-pages-loader","duration":126,"timestamp":19150700,"id":1558,"parentId":1557,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/databases/[single]/users/index.tsx"},"startTime":1736835521974,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":427,"timestamp":19150662,"id":1557,"parentId":1463,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers%2Findex.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers!","layer":null},"startTime":1736835521974,"traceId":"80a02e6b898c9dbf"},{"name":"next-client-pages-loader","duration":95,"timestamp":19151150,"id":1560,"parentId":1559,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/databases/index.tsx"},"startTime":1736835521974,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":421,"timestamp":19151108,"id":1559,"parentId":1464,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2Findex.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases!","layer":null},"startTime":1736835521974,"traceId":"80a02e6b898c9dbf"},{"name":"next-client-pages-loader","duration":89,"timestamp":19151597,"id":1562,"parentId":1561,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/index.tsx"},"startTime":1736835521975,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":407,"timestamp":19151551,"id":1561,"parentId":1465,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Findex.tsx&page=%2Fadmin%2F%5Buser_id%5D!","layer":null},"startTime":1736835521975,"traceId":"80a02e6b898c9dbf"},{"name":"next-client-pages-loader","duration":124,"timestamp":19152014,"id":1564,"parentId":1563,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/databases/[single]/users/add-user.tsx"},"startTime":1736835521975,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":431,"timestamp":19151978,"id":1563,"parentId":1466,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers%2Fadd-user.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers%2Fadd-user!","layer":null},"startTime":1736835521975,"traceId":"80a02e6b898c9dbf"},{"name":"next-client-pages-loader","duration":107,"timestamp":19152463,"id":1566,"parentId":1565,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/media/[...folder].tsx"},"startTime":1736835521976,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":410,"timestamp":19152430,"id":1565,"parentId":1467,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fmedia%2F%5B...folder%5D.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fmedia%2F%5B...folder%5D!","layer":null},"startTime":1736835521976,"traceId":"80a02e6b898c9dbf"},{"name":"next-client-pages-loader","duration":88,"timestamp":19152895,"id":1568,"parentId":1567,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/schema.tsx"},"startTime":1736835521976,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":381,"timestamp":19152860,"id":1567,"parentId":1468,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fschema.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fschema!","layer":null},"startTime":1736835521976,"traceId":"80a02e6b898c9dbf"},{"name":"next-client-pages-loader","duration":106,"timestamp":19153298,"id":1570,"parentId":1569,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/media/index.tsx"},"startTime":1736835521976,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":444,"timestamp":19153260,"id":1569,"parentId":1469,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fmedia%2Findex.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fmedia!","layer":null},"startTime":1736835521976,"traceId":"80a02e6b898c9dbf"},{"name":"next-client-pages-loader","duration":76,"timestamp":19153768,"id":1572,"parentId":1571,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/settings.tsx"},"startTime":1736835521977,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":395,"timestamp":19153723,"id":1571,"parentId":1470,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fsettings.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fsettings!","layer":null},"startTime":1736835521977,"traceId":"80a02e6b898c9dbf"},{"name":"next-client-pages-loader","duration":80,"timestamp":19154178,"id":1574,"parentId":1573,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/users/add-user.tsx"},"startTime":1736835521977,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":372,"timestamp":19154139,"id":1573,"parentId":1471,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fusers%2Fadd-user.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fusers%2Fadd-user!","layer":null},"startTime":1736835521977,"traceId":"80a02e6b898c9dbf"},{"name":"next-client-pages-loader","duration":132,"timestamp":19154583,"id":1576,"parentId":1575,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/users/databases/[database]/[user].tsx"},"startTime":1736835521978,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":504,"timestamp":19154530,"id":1575,"parentId":1472,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fusers%2Fdatabases%2F%5Bdatabase%5D%2F%5Buser%5D.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fusers%2Fdatabases%2F%5Bdatabase%5D%2F%5Buser%5D!","layer":null},"startTime":1736835521978,"traceId":"80a02e6b898c9dbf"},{"name":"next-client-pages-loader","duration":121,"timestamp":19155105,"id":1578,"parentId":1577,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/users/databases/[database]/index.tsx"},"startTime":1736835521978,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":450,"timestamp":19155055,"id":1577,"parentId":1473,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fusers%2Fdatabases%2F%5Bdatabase%5D%2Findex.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fusers%2Fdatabases%2F%5Bdatabase%5D!","layer":null},"startTime":1736835521978,"traceId":"80a02e6b898c9dbf"},{"name":"next-client-pages-loader","duration":97,"timestamp":19155580,"id":1580,"parentId":1579,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/users/databases/index.tsx"},"startTime":1736835521979,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":463,"timestamp":19155524,"id":1579,"parentId":1474,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fusers%2Fdatabases%2Findex.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fusers%2Fdatabases!","layer":null},"startTime":1736835521979,"traceId":"80a02e6b898c9dbf"},{"name":"next-client-pages-loader","duration":66,"timestamp":19156044,"id":1582,"parentId":1581,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/users/index.tsx"},"startTime":1736835521979,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":353,"timestamp":19156010,"id":1581,"parentId":1475,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fusers%2Findex.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fusers!","layer":null},"startTime":1736835521979,"traceId":"80a02e6b898c9dbf"},{"name":"next-client-pages-loader","duration":54,"timestamp":19156414,"id":1584,"parentId":1583,"tags":{"absolutePagePath":"private-next-pages/admin/index.tsx"},"startTime":1736835521980,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":324,"timestamp":19156381,"id":1583,"parentId":1476,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fadmin%2Findex.tsx&page=%2Fadmin!","layer":null},"startTime":1736835521980,"traceId":"80a02e6b898c9dbf"},{"name":"next-client-pages-loader","duration":68,"timestamp":19156755,"id":1586,"parentId":1585,"tags":{"absolutePagePath":"private-next-pages/blog/index.tsx"},"startTime":1736835521980,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":328,"timestamp":19156725,"id":1585,"parentId":1477,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fblog%2Findex.tsx&page=%2Fblog!","layer":null},"startTime":1736835521980,"traceId":"80a02e6b898c9dbf"},{"name":"next-client-pages-loader","duration":59,"timestamp":19157105,"id":1588,"parentId":1587,"tags":{"absolutePagePath":"private-next-pages/contact.tsx"},"startTime":1736835521980,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":328,"timestamp":19157070,"id":1587,"parentId":1478,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fcontact.tsx&page=%2Fcontact!","layer":null},"startTime":1736835521980,"traceId":"80a02e6b898c9dbf"},{"name":"next-client-pages-loader","duration":48,"timestamp":19157449,"id":1590,"parentId":1589,"tags":{"absolutePagePath":"private-next-pages/create-account.tsx"},"startTime":1736835521981,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":309,"timestamp":19157415,"id":1589,"parentId":1479,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fcreate-account.tsx&page=%2Fcreate-account!","layer":null},"startTime":1736835521981,"traceId":"80a02e6b898c9dbf"},{"name":"next-client-pages-loader","duration":72,"timestamp":19157779,"id":1592,"parentId":1591,"tags":{"absolutePagePath":"private-next-pages/docs/[page]/[sub-page]/index.tsx"},"startTime":1736835521981,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":354,"timestamp":19157744,"id":1591,"parentId":1480,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fdocs%2F%5Bpage%5D%2F%5Bsub-page%5D%2Findex.tsx&page=%2Fdocs%2F%5Bpage%5D%2F%5Bsub-page%5D!","layer":null},"startTime":1736835521981,"traceId":"80a02e6b898c9dbf"},{"name":"next-client-pages-loader","duration":64,"timestamp":19158154,"id":1594,"parentId":1593,"tags":{"absolutePagePath":"private-next-pages/docs/index.tsx"},"startTime":1736835521981,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":380,"timestamp":19158119,"id":1593,"parentId":1481,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fdocs%2Findex.tsx&page=%2Fdocs!","layer":null},"startTime":1736835521981,"traceId":"80a02e6b898c9dbf"}] -[{"name":"next-client-pages-loader","duration":62,"timestamp":19158828,"id":1596,"parentId":1595,"tags":{"absolutePagePath":"private-next-pages/docs/[page]/index.tsx"},"startTime":1736835521982,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":392,"timestamp":19158761,"id":1595,"parentId":1482,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fdocs%2F%5Bpage%5D%2Findex.tsx&page=%2Fdocs%2F%5Bpage%5D!","layer":null},"startTime":1736835521982,"traceId":"80a02e6b898c9dbf"},{"name":"next-client-pages-loader","duration":75,"timestamp":19159213,"id":1598,"parentId":1597,"tags":{"absolutePagePath":"private-next-pages/index.tsx"},"startTime":1736835521982,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":358,"timestamp":19159171,"id":1597,"parentId":1483,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Findex.tsx&page=%2F!","layer":null},"startTime":1736835521982,"traceId":"80a02e6b898c9dbf"},{"name":"next-client-pages-loader","duration":60,"timestamp":19159582,"id":1600,"parentId":1599,"tags":{"absolutePagePath":"private-next-pages/email-verification/index.tsx"},"startTime":1736835521983,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":313,"timestamp":19159546,"id":1599,"parentId":1484,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Femail-verification%2Findex.tsx&page=%2Femail-verification!","layer":null},"startTime":1736835521983,"traceId":"80a02e6b898c9dbf"},{"name":"next-client-pages-loader","duration":54,"timestamp":19159907,"id":1602,"parentId":1601,"tags":{"absolutePagePath":"private-next-pages/login.tsx"},"startTime":1736835521983,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":354,"timestamp":19159876,"id":1601,"parentId":1485,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Flogin.tsx&page=%2Flogin!","layer":null},"startTime":1736835521983,"traceId":"80a02e6b898c9dbf"},{"name":"next-client-pages-loader","duration":53,"timestamp":19160282,"id":1604,"parentId":1603,"tags":{"absolutePagePath":"private-next-pages/privacy.tsx"},"startTime":1736835521983,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":313,"timestamp":19160248,"id":1603,"parentId":1486,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fprivacy.tsx&page=%2Fprivacy!","layer":null},"startTime":1736835521983,"traceId":"80a02e6b898c9dbf"},{"name":"next-client-pages-loader","duration":52,"timestamp":19160611,"id":1606,"parentId":1605,"tags":{"absolutePagePath":"private-next-pages/redirect.tsx"},"startTime":1736835521984,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":315,"timestamp":19160578,"id":1605,"parentId":1487,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fredirect.tsx&page=%2Fredirect!","layer":null},"startTime":1736835521984,"traceId":"80a02e6b898c9dbf"},{"name":"next-client-pages-loader","duration":49,"timestamp":19160946,"id":1608,"parentId":1607,"tags":{"absolutePagePath":"private-next-pages/logout.tsx"},"startTime":1736835521984,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":309,"timestamp":19160911,"id":1607,"parentId":1488,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Flogout.tsx&page=%2Flogout!","layer":null},"startTime":1736835521984,"traceId":"80a02e6b898c9dbf"},{"name":"next-client-pages-loader","duration":52,"timestamp":19161264,"id":1610,"parentId":1609,"tags":{"absolutePagePath":"private-next-pages/su/backups.tsx"},"startTime":1736835521984,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":308,"timestamp":19161236,"id":1609,"parentId":1489,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fsu%2Fbackups.tsx&page=%2Fsu%2Fbackups!","layer":null},"startTime":1736835521984,"traceId":"80a02e6b898c9dbf"},{"name":"next-client-pages-loader","duration":60,"timestamp":19161592,"id":1612,"parentId":1611,"tags":{"absolutePagePath":"private-next-pages/reset-password.tsx"},"startTime":1736835521985,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":318,"timestamp":19161561,"id":1611,"parentId":1490,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Freset-password.tsx&page=%2Freset-password!","layer":null},"startTime":1736835521985,"traceId":"80a02e6b898c9dbf"},{"name":"next-client-pages-loader","duration":97,"timestamp":19161929,"id":1614,"parentId":1613,"tags":{"absolutePagePath":"private-next-pages/send-password-reset-link.tsx"},"startTime":1736835521985,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":373,"timestamp":19161897,"id":1613,"parentId":1491,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fsend-password-reset-link.tsx&page=%2Fsend-password-reset-link!","layer":null},"startTime":1736835521985,"traceId":"80a02e6b898c9dbf"},{"name":"next-client-pages-loader","duration":80,"timestamp":19162317,"id":1616,"parentId":1615,"tags":{"absolutePagePath":"private-next-pages/su/console.tsx"},"startTime":1736835521985,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":338,"timestamp":19162288,"id":1615,"parentId":1492,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fsu%2Fconsole.tsx&page=%2Fsu%2Fconsole!","layer":null},"startTime":1736835521985,"traceId":"80a02e6b898c9dbf"},{"name":"next-client-pages-loader","duration":65,"timestamp":19162674,"id":1618,"parentId":1617,"tags":{"absolutePagePath":"private-next-pages/su/docs/create-page.tsx"},"startTime":1736835521986,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":338,"timestamp":19162643,"id":1617,"parentId":1493,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fsu%2Fdocs%2Fcreate-page.tsx&page=%2Fsu%2Fdocs%2Fcreate-page!","layer":null},"startTime":1736835521986,"traceId":"80a02e6b898c9dbf"},{"name":"next-client-pages-loader","duration":64,"timestamp":19163031,"id":1620,"parentId":1619,"tags":{"absolutePagePath":"private-next-pages/su/docs/edit-page.tsx"},"startTime":1736835521986,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":357,"timestamp":19162999,"id":1619,"parentId":1494,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fsu%2Fdocs%2Fedit-page.tsx&page=%2Fsu%2Fdocs%2Fedit-page!","layer":null},"startTime":1736835521986,"traceId":"80a02e6b898c9dbf"},{"name":"next-client-pages-loader","duration":71,"timestamp":19163410,"id":1622,"parentId":1621,"tags":{"absolutePagePath":"private-next-pages/su/docs/index.tsx"},"startTime":1736835521987,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":381,"timestamp":19163376,"id":1621,"parentId":1495,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fsu%2Fdocs%2Findex.tsx&page=%2Fsu%2Fdocs!","layer":null},"startTime":1736835521987,"traceId":"80a02e6b898c9dbf"},{"name":"next-client-pages-loader","duration":68,"timestamp":19163806,"id":1624,"parentId":1623,"tags":{"absolutePagePath":"private-next-pages/su/docs/pages/[id].tsx"},"startTime":1736835521987,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":380,"timestamp":19163775,"id":1623,"parentId":1496,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fsu%2Fdocs%2Fpages%2F%5Bid%5D.tsx&page=%2Fsu%2Fdocs%2Fpages%2F%5Bid%5D!","layer":null},"startTime":1736835521987,"traceId":"80a02e6b898c9dbf"},{"name":"next-client-pages-loader","duration":93,"timestamp":19164306,"id":1626,"parentId":1625,"tags":{"absolutePagePath":"private-next-pages/su/docs/pages/index.tsx"},"startTime":1736835521987,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":533,"timestamp":19164176,"id":1625,"parentId":1497,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fsu%2Fdocs%2Fpages%2Findex.tsx&page=%2Fsu%2Fdocs%2Fpages!","layer":null},"startTime":1736835521987,"traceId":"80a02e6b898c9dbf"},{"name":"next-client-pages-loader","duration":70,"timestamp":19164769,"id":1628,"parentId":1627,"tags":{"absolutePagePath":"private-next-pages/su/envar.tsx"},"startTime":1736835521988,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":425,"timestamp":19164732,"id":1627,"parentId":1498,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fsu%2Fenvar.tsx&page=%2Fsu%2Fenvar!","layer":null},"startTime":1736835521988,"traceId":"80a02e6b898c9dbf"},{"name":"next-client-pages-loader","duration":58,"timestamp":19165213,"id":1630,"parentId":1629,"tags":{"absolutePagePath":"private-next-pages/su/error-logs.tsx"},"startTime":1736835521988,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":359,"timestamp":19165176,"id":1629,"parentId":1499,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fsu%2Ferror-logs.tsx&page=%2Fsu%2Ferror-logs!","layer":null},"startTime":1736835521988,"traceId":"80a02e6b898c9dbf"},{"name":"next-client-pages-loader","duration":97,"timestamp":19165589,"id":1632,"parentId":1631,"tags":{"absolutePagePath":"private-next-pages/su/index.tsx"},"startTime":1736835521989,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":388,"timestamp":19165558,"id":1631,"parentId":1500,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fsu%2Findex.tsx&page=%2Fsu!","layer":null},"startTime":1736835521989,"traceId":"80a02e6b898c9dbf"},{"name":"next-client-pages-loader","duration":62,"timestamp":19165997,"id":1634,"parentId":1633,"tags":{"absolutePagePath":"private-next-pages/su/load-balancing.tsx"},"startTime":1736835521989,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":354,"timestamp":19165967,"id":1633,"parentId":1501,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fsu%2Fload-balancing.tsx&page=%2Fsu%2Fload-balancing!","layer":null},"startTime":1736835521989,"traceId":"80a02e6b898c9dbf"},{"name":"next-client-pages-loader","duration":60,"timestamp":19166388,"id":1636,"parentId":1635,"tags":{"absolutePagePath":"private-next-pages/su/login.tsx"},"startTime":1736835521990,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":370,"timestamp":19166342,"id":1635,"parentId":1502,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fsu%2Flogin.tsx&page=%2Fsu%2Flogin!","layer":null},"startTime":1736835521989,"traceId":"80a02e6b898c9dbf"},{"name":"next-client-pages-loader","duration":98,"timestamp":19166762,"id":1638,"parentId":1637,"tags":{"absolutePagePath":"private-next-pages/su/servers.tsx"},"startTime":1736835521990,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":376,"timestamp":19166730,"id":1637,"parentId":1503,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fsu%2Fservers.tsx&page=%2Fsu%2Fservers!","layer":null},"startTime":1736835521990,"traceId":"80a02e6b898c9dbf"},{"name":"next-client-pages-loader","duration":72,"timestamp":19167162,"id":1640,"parentId":1639,"tags":{"absolutePagePath":"private-next-pages/su/users/[single].tsx"},"startTime":1736835521990,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":346,"timestamp":19167127,"id":1639,"parentId":1504,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fsu%2Fusers%2F%5Bsingle%5D.tsx&page=%2Fsu%2Fusers%2F%5Bsingle%5D!","layer":null},"startTime":1736835521990,"traceId":"80a02e6b898c9dbf"},{"name":"next-client-pages-loader","duration":87,"timestamp":19167547,"id":1642,"parentId":1641,"tags":{"absolutePagePath":"private-next-pages/su/users/index.tsx"},"startTime":1736835521991,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":499,"timestamp":19167502,"id":1641,"parentId":1505,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fsu%2Fusers%2Findex.tsx&page=%2Fsu%2Fusers!","layer":null},"startTime":1736835521991,"traceId":"80a02e6b898c9dbf"},{"name":"next-client-pages-loader","duration":68,"timestamp":19168065,"id":1644,"parentId":1643,"tags":{"absolutePagePath":"private-next-pages/su/users/new.tsx"},"startTime":1736835521991,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":427,"timestamp":19168032,"id":1643,"parentId":1506,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fsu%2Fusers%2Fnew.tsx&page=%2Fsu%2Fusers%2Fnew!","layer":null},"startTime":1736835521991,"traceId":"80a02e6b898c9dbf"},{"name":"next-client-pages-loader","duration":76,"timestamp":19168526,"id":1646,"parentId":1645,"tags":{"absolutePagePath":"private-next-pages/terms.tsx"},"startTime":1736835521992,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":431,"timestamp":19168482,"id":1645,"parentId":1507,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fterms.tsx&page=%2Fterms!","layer":null},"startTime":1736835521992,"traceId":"80a02e6b898c9dbf"},{"name":"next-client-pages-loader","duration":72,"timestamp":19168981,"id":1648,"parentId":1647,"tags":{"absolutePagePath":"private-next-pages/unsubscribe.tsx"},"startTime":1736835521992,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":381,"timestamp":19168936,"id":1647,"parentId":1508,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Funsubscribe.tsx&page=%2Funsubscribe!","layer":null},"startTime":1736835521992,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":41923,"timestamp":19169345,"id":1649,"parentId":1437,"tags":{"name":"/app/node_modules/next/dist/client/next.js","layer":null},"startTime":1736835521992,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":3866,"timestamp":19216201,"id":1650,"parentId":1649,"tags":{"name":"/app/node_modules/next/dist/client/webpack.js","layer":null},"startTime":1736835522039,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":6219,"timestamp":19216454,"id":1652,"parentId":1509,"tags":{"name":"/app/node_modules/next/dist/pages/_error.js","layer":null},"startTime":1736835522040,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":9874,"timestamp":19216506,"id":1653,"parentId":1442,"tags":{"name":"/app/node_modules/next/dist/client/router.js","layer":null},"startTime":1736835522040,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":21512,"timestamp":19216393,"id":1651,"parentId":1649,"tags":{"name":"/app/node_modules/next/dist/client/index.js","layer":null},"startTime":1736835522040,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":1860,"timestamp":19259698,"id":1654,"parentId":1653,"tags":{"name":"/app/node_modules/next/dist/lib/is-error.js","layer":null},"startTime":1736835522083,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":9644,"timestamp":19260148,"id":1659,"parentId":1650,"tags":{"name":"/app/node_modules/next/dist/build/deployment-id.js","layer":null},"startTime":1736835522083,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":10795,"timestamp":19260081,"id":1658,"parentId":1651,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/is-dynamic.js","layer":null},"startTime":1736835522083,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":14768,"timestamp":19260025,"id":1657,"parentId":1651,"tags":{"name":"/app/node_modules/next/dist/shared/lib/utils.js","layer":null},"startTime":1736835522083,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":18578,"timestamp":19259858,"id":1655,"parentId":1652,"tags":{"name":"/app/node_modules/next/dist/shared/lib/head.js","layer":null},"startTime":1736835522083,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":19057,"timestamp":19259960,"id":1656,"parentId":1651,"tags":{"name":"/app/node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","layer":null},"startTime":1736835522083,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":19834,"timestamp":19260196,"id":1660,"parentId":1653,"tags":{"name":"/app/node_modules/next/dist/client/with-router.js","layer":null},"startTime":1736835522083,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":5126,"timestamp":19294944,"id":1670,"parentId":1651,"tags":{"name":"/app/node_modules/next/dist/build/polyfills/polyfill-module.js","layer":null},"startTime":1736835522118,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":6436,"timestamp":19294727,"id":1666,"parentId":1651,"tags":{"name":"/app/node_modules/next/dist/shared/lib/runtime-config.external.js","layer":null},"startTime":1736835522118,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":7061,"timestamp":19294623,"id":1664,"parentId":1653,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router-context.shared-runtime.js","layer":null},"startTime":1736835522118,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":8009,"timestamp":19294679,"id":1665,"parentId":1651,"tags":{"name":"/app/node_modules/next/dist/shared/lib/mitt.js","layer":null},"startTime":1736835522118,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":8498,"timestamp":19294831,"id":1668,"parentId":1651,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/handle-smooth-scroll.js","layer":null},"startTime":1736835522118,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":10230,"timestamp":19294576,"id":1663,"parentId":1651,"tags":{"name":"/app/node_modules/next/dist/client/route-announcer.js","layer":null},"startTime":1736835522118,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":11381,"timestamp":19294892,"id":1669,"parentId":1651,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/querystring.js","layer":null},"startTime":1736835522118,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":14556,"timestamp":19294523,"id":1662,"parentId":1651,"tags":{"name":"/app/node_modules/next/dist/client/page-loader.js","layer":null},"startTime":1736835522118,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":17186,"timestamp":19294377,"id":1661,"parentId":1651,"tags":{"name":"/app/node_modules/next/dist/client/head-manager.js","layer":null},"startTime":1736835522118,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":17942,"timestamp":19295031,"id":1672,"parentId":1651,"tags":{"name":"/app/node_modules/next/dist/client/remove-base-path.js","layer":null},"startTime":1736835522118,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":18988,"timestamp":19294988,"id":1671,"parentId":1651,"tags":{"name":"/app/node_modules/next/dist/client/portal/index.js","layer":null},"startTime":1736835522118,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":40984,"timestamp":19294774,"id":1667,"parentId":1653,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/router.js","layer":null},"startTime":1736835522118,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":1741,"timestamp":19369918,"id":1676,"parentId":1652,"tags":{"name":"/app/node_modules/react/jsx-runtime.js","layer":null},"startTime":1736835522193,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":2432,"timestamp":19369940,"id":1677,"parentId":1651,"tags":{"name":"/app/node_modules/react-dom/client.js","layer":null},"startTime":1736835522193,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":4291,"timestamp":19369670,"id":1673,"parentId":1651,"tags":{"name":"/app/node_modules/next/dist/client/has-base-path.js","layer":null},"startTime":1736835522193,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":4821,"timestamp":19369813,"id":1674,"parentId":1651,"tags":{"name":"/app/node_modules/next/dist/shared/lib/image-config-context.shared-runtime.js","layer":null},"startTime":1736835522193,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":7966,"timestamp":19369872,"id":1675,"parentId":1651,"tags":{"name":"/app/node_modules/next/dist/client/script.js","layer":null},"startTime":1736835522193,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":8700,"timestamp":19369978,"id":1679,"parentId":1651,"tags":{"name":"/app/node_modules/next/dist/shared/lib/app-router-context.shared-runtime.js","layer":null},"startTime":1736835522193,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":9766,"timestamp":19369954,"id":1678,"parentId":1651,"tags":{"name":"/app/node_modules/next/dist/pages/_app.js","layer":null},"startTime":1736835522193,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":10194,"timestamp":19370046,"id":1680,"parentId":1651,"tags":{"name":"/app/node_modules/next/dist/shared/lib/hooks-client-context.shared-runtime.js","layer":null},"startTime":1736835522193,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":10519,"timestamp":19370262,"id":1684,"parentId":1651,"tags":{"name":"/app/node_modules/next/dist/client/tracing/report-to-socket.js","layer":null},"startTime":1736835522193,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":11304,"timestamp":19370152,"id":1682,"parentId":1651,"tags":{"name":"/app/node_modules/next/dist/client/react-client-callbacks/shared.js","layer":null},"startTime":1736835522193,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":12348,"timestamp":19370217,"id":1683,"parentId":1651,"tags":{"name":"/app/node_modules/next/dist/client/tracing/tracer.js","layer":null},"startTime":1736835522193,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":14292,"timestamp":19370097,"id":1681,"parentId":1651,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/adapters.js","layer":null},"startTime":1736835522193,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":4722,"timestamp":19402798,"id":1685,"parentId":1651,"tags":{"name":"/app/node_modules/next/dist/client/components/is-next-router-error.js","layer":null},"startTime":1736835522226,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":2601,"timestamp":19405516,"id":1686,"parentId":1654,"tags":{"name":"/app/node_modules/next/dist/shared/lib/is-plain-object.js","layer":null},"startTime":1736835522229,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":2753,"timestamp":19405715,"id":1689,"parentId":1655,"tags":{"name":"/app/node_modules/next/dist/shared/lib/amp-mode.js","layer":null},"startTime":1736835522229,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":3689,"timestamp":19405625,"id":1687,"parentId":1655,"tags":{"name":"/app/node_modules/next/dist/shared/lib/side-effect.js","layer":null},"startTime":1736835522229,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":4002,"timestamp":19405668,"id":1688,"parentId":1655,"tags":{"name":"/app/node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","layer":null},"startTime":1736835522229,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":1436,"timestamp":19410707,"id":1690,"parentId":1658,"tags":{"name":"/app/node_modules/next/dist/server/lib/interception-routes.js","layer":null},"startTime":1736835522234,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":8461,"timestamp":19410840,"id":1692,"parentId":1652,"tags":{"name":"/app/node_modules/react/index.js","layer":null},"startTime":1736835522234,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":9477,"timestamp":19410784,"id":1691,"parentId":1655,"tags":{"name":"/app/node_modules/next/dist/shared/lib/utils/warn-once.js","layer":null},"startTime":1736835522234,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":10916,"timestamp":19410865,"id":1693,"parentId":1661,"tags":{"name":"/app/node_modules/next/dist/client/set-attributes-from-props.js","layer":null},"startTime":1736835522234,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":2503,"timestamp":19422441,"id":1695,"parentId":1667,"tags":{"name":"/app/node_modules/next/dist/shared/lib/page-path/denormalize-page-path.js","layer":null},"startTime":1736835522246,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":3971,"timestamp":19422510,"id":1696,"parentId":1662,"tags":{"name":"/app/node_modules/next/dist/client/add-base-path.js","layer":null},"startTime":1736835522246,"traceId":"80a02e6b898c9dbf"}] -[{"name":"build-module-js","duration":4983,"timestamp":19422567,"id":1697,"parentId":1662,"tags":{"name":"/app/node_modules/next/dist/client/add-locale.js","layer":null},"startTime":1736835522246,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":7599,"timestamp":19422282,"id":1694,"parentId":1662,"tags":{"name":"/app/node_modules/next/dist/shared/lib/constants.js","layer":null},"startTime":1736835522245,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":686,"timestamp":19445223,"id":1705,"parentId":1667,"tags":{"layer":null},"startTime":1736835522268,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":4283,"timestamp":19445124,"id":1704,"parentId":1671,"tags":{"name":"/app/node_modules/react-dom/index.js","layer":null},"startTime":1736835522268,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":3924,"timestamp":19446105,"id":1709,"parentId":1667,"tags":{"name":"/app/node_modules/next/dist/lib/is-api-route.js","layer":null},"startTime":1736835522269,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":7215,"timestamp":19446521,"id":1717,"parentId":1667,"tags":{"name":"/app/node_modules/next/dist/lib/constants.js","layer":null},"startTime":1736835522270,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":9738,"timestamp":19444916,"id":1700,"parentId":1662,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/get-asset-path-from-route.js","layer":null},"startTime":1736835522268,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":10117,"timestamp":19445014,"id":1702,"parentId":1662,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/remove-trailing-slash.js","layer":null},"startTime":1736835522268,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":10792,"timestamp":19445073,"id":1703,"parentId":1667,"tags":{"name":"/app/node_modules/next/dist/shared/lib/i18n/normalize-locale-path.js","layer":null},"startTime":1736835522268,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":11692,"timestamp":19444966,"id":1701,"parentId":1662,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/parse-relative-url.js","layer":null},"startTime":1736835522268,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":12954,"timestamp":19444859,"id":1699,"parentId":1662,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/interpolate-as.js","layer":null},"startTime":1736835522268,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":12591,"timestamp":19445936,"id":1706,"parentId":1667,"tags":{"name":"/app/node_modules/next/dist/client/detect-domain-locale.js","layer":null},"startTime":1736835522269,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":13296,"timestamp":19446059,"id":1708,"parentId":1667,"tags":{"name":"/app/node_modules/next/dist/client/remove-locale.js","layer":null},"startTime":1736835522269,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":13933,"timestamp":19446138,"id":1710,"parentId":1667,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/route-matcher.js","layer":null},"startTime":1736835522269,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":15676,"timestamp":19446013,"id":1707,"parentId":1667,"tags":{"name":"/app/node_modules/next/dist/client/resolve-href.js","layer":null},"startTime":1736835522269,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":15840,"timestamp":19446292,"id":1713,"parentId":1667,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/parse-path.js","layer":null},"startTime":1736835522269,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":16687,"timestamp":19446345,"id":1714,"parentId":1667,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/get-next-pathname-info.js","layer":null},"startTime":1736835522269,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":17231,"timestamp":19446397,"id":1715,"parentId":1667,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/format-next-pathname-info.js","layer":null},"startTime":1736835522270,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":17786,"timestamp":19446446,"id":1716,"parentId":1667,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/compare-states.js","layer":null},"startTime":1736835522270,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":19221,"timestamp":19446242,"id":1712,"parentId":1667,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/format-url.js","layer":null},"startTime":1736835522269,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":24189,"timestamp":19444728,"id":1698,"parentId":1662,"tags":{"name":"/app/node_modules/next/dist/client/route-loader.js","layer":null},"startTime":1736835522268,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":24836,"timestamp":19446192,"id":1711,"parentId":1667,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/route-regex.js","layer":null},"startTime":1736835522269,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":24773,"timestamp":19446622,"id":1719,"parentId":1667,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/is-bot.js","layer":null},"startTime":1736835522270,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":25017,"timestamp":19446664,"id":1720,"parentId":1667,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/omit.js","layer":null},"startTime":1736835522270,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":25450,"timestamp":19446570,"id":1718,"parentId":1667,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/is-local-url.js","layer":null},"startTime":1736835522270,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":26532,"timestamp":19446706,"id":1721,"parentId":1667,"tags":{"name":"/app/node_modules/next/dist/shared/lib/bloom-filter.js","layer":null},"startTime":1736835522270,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":14942,"timestamp":19479637,"id":1726,"parentId":1676,"tags":{"name":"/app/node_modules/react/cjs/react-jsx-runtime.production.min.js","layer":null},"startTime":1736835522303,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":20099,"timestamp":19480027,"id":1735,"parentId":1692,"tags":{"name":"/app/node_modules/react/cjs/react.production.min.js","layer":null},"startTime":1736835522303,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":21058,"timestamp":19479726,"id":1728,"parentId":1681,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/index.js","layer":null},"startTime":1736835522303,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":21821,"timestamp":19480090,"id":1738,"parentId":1515,"tags":{"name":"/app/pages/_app.tsx","layer":null},"startTime":1736835522303,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":22589,"timestamp":19480158,"id":1740,"parentId":1587,"tags":{"name":"/app/pages/contact.tsx","layer":null},"startTime":1736835522303,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":23494,"timestamp":19479911,"id":1732,"parentId":1690,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/app-paths.js","layer":null},"startTime":1736835522303,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":24811,"timestamp":19479360,"id":1722,"parentId":1675,"tags":{"name":"/app/node_modules/next/dist/client/request-idle-callback.js","layer":null},"startTime":1736835522303,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":25033,"timestamp":19480129,"id":1739,"parentId":1517,"tags":{"name":"/app/pages/about.tsx","layer":null},"startTime":1736835522303,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":26080,"timestamp":19480056,"id":1736,"parentId":1511,"tags":{"name":"/app/pages/404.tsx","layer":null},"startTime":1736835522303,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":27205,"timestamp":19480076,"id":1737,"parentId":1513,"tags":{"name":"/app/pages/500.tsx","layer":null},"startTime":1736835522303,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":28476,"timestamp":19479524,"id":1724,"parentId":1673,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/path-has-prefix.js","layer":null},"startTime":1736835522303,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":29100,"timestamp":19479583,"id":1725,"parentId":1682,"tags":{"name":"/app/node_modules/next/dist/client/react-client-callbacks/report-global-error.js","layer":null},"startTime":1736835522303,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":29778,"timestamp":19479471,"id":1723,"parentId":1674,"tags":{"name":"/app/node_modules/next/dist/shared/lib/image-config.js","layer":null},"startTime":1736835522303,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":29841,"timestamp":19479810,"id":1730,"parentId":1681,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/as-path-to-search-params.js","layer":null},"startTime":1736835522303,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":30704,"timestamp":19479675,"id":1727,"parentId":1682,"tags":{"name":"/app/node_modules/next/dist/shared/lib/lazy-dynamic/bailout-to-csr.js","layer":null},"startTime":1736835522303,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":31572,"timestamp":19479945,"id":1733,"parentId":1685,"tags":{"name":"/app/node_modules/next/dist/client/components/redirect-error.js","layer":null},"startTime":1736835522303,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":32887,"timestamp":19479767,"id":1729,"parentId":1684,"tags":{"name":"/app/node_modules/next/dist/client/components/react-dev-overlay/pages/websocket.js","layer":null},"startTime":1736835522303,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":33556,"timestamp":19479983,"id":1734,"parentId":1685,"tags":{"name":"/app/node_modules/next/dist/client/components/http-access-fallback/http-access-fallback.js","layer":null},"startTime":1736835522303,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":34641,"timestamp":19479860,"id":1731,"parentId":1682,"tags":{"name":"/app/node_modules/next/dist/client/components/react-dev-overlay/internal/helpers/stitched-error.js","layer":null},"startTime":1736835522303,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":23637,"timestamp":19526599,"id":1757,"parentId":1695,"tags":{"name":"/app/node_modules/next/dist/shared/lib/page-path/normalize-path-sep.js","layer":null},"startTime":1736835522350,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":24836,"timestamp":19526512,"id":1753,"parentId":1593,"tags":{"name":"/app/pages/docs/index.tsx","layer":null},"startTime":1736835522350,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":25767,"timestamp":19526327,"id":1744,"parentId":1603,"tags":{"name":"/app/pages/privacy.tsx","layer":null},"startTime":1736835522349,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":26346,"timestamp":19526489,"id":1752,"parentId":1585,"tags":{"name":"/app/pages/blog/index.tsx","layer":null},"startTime":1736835522350,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":27609,"timestamp":19526309,"id":1743,"parentId":1601,"tags":{"name":"/app/pages/login.tsx","layer":null},"startTime":1736835522349,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":28455,"timestamp":19526343,"id":1745,"parentId":1605,"tags":{"name":"/app/pages/redirect.tsx","layer":null},"startTime":1736835522349,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":29424,"timestamp":19526282,"id":1742,"parentId":1597,"tags":{"name":"/app/pages/index.tsx","layer":null},"startTime":1736835522349,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":29922,"timestamp":19526474,"id":1751,"parentId":1583,"tags":{"name":"/app/pages/admin/index.tsx","layer":null},"startTime":1736835522350,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":30358,"timestamp":19526581,"id":1756,"parentId":1615,"tags":{"name":"/app/pages/su/console.tsx","layer":null},"startTime":1736835522350,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":31984,"timestamp":19526129,"id":1741,"parentId":1589,"tags":{"name":"/app/pages/create-account.tsx","layer":null},"startTime":1736835522349,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":32821,"timestamp":19526411,"id":1748,"parentId":1613,"tags":{"name":"/app/pages/send-password-reset-link.tsx","layer":null},"startTime":1736835522350,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":33703,"timestamp":19526459,"id":1750,"parentId":1647,"tags":{"name":"/app/pages/unsubscribe.tsx","layer":null},"startTime":1736835522350,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":33917,"timestamp":19526671,"id":1758,"parentId":1627,"tags":{"name":"/app/pages/su/envar.tsx","layer":null},"startTime":1736835522350,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":34157,"timestamp":19526888,"id":1769,"parentId":1619,"tags":{"name":"/app/pages/su/docs/edit-page.tsx","layer":null},"startTime":1736835522350,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":35025,"timestamp":19526561,"id":1755,"parentId":1609,"tags":{"name":"/app/pages/su/backups.tsx","layer":null},"startTime":1736835522350,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":35223,"timestamp":19526943,"id":1772,"parentId":1641,"tags":{"name":"/app/pages/su/users/index.tsx","layer":null},"startTime":1736835522350,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":36869,"timestamp":19526443,"id":1749,"parentId":1645,"tags":{"name":"/app/pages/terms.tsx","layer":null},"startTime":1736835522350,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":36954,"timestamp":19527146,"id":1777,"parentId":1559,"tags":{"name":"/app/pages/admin/[user_id]/databases/index.tsx","layer":null},"startTime":1736835522350,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":39812,"timestamp":19526363,"id":1746,"parentId":1607,"tags":{"name":"/app/pages/logout.tsx","layer":null},"startTime":1736835522350,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":39856,"timestamp":19527027,"id":1775,"parentId":1523,"tags":{"name":"/app/pages/admin/[user_id]/connect/index.tsx","layer":null},"startTime":1736835522350,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":41396,"timestamp":19526531,"id":1754,"parentId":1599,"tags":{"name":"/app/pages/email-verification/index.tsx","layer":null},"startTime":1736835522350,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":41483,"timestamp":19526926,"id":1771,"parentId":1639,"tags":{"name":"/app/pages/su/users/[single].tsx","layer":null},"startTime":1736835522350,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":43269,"timestamp":19526381,"id":1747,"parentId":1611,"tags":{"name":"/app/pages/reset-password.tsx","layer":null},"startTime":1736835522350,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":43299,"timestamp":19527183,"id":1778,"parentId":1565,"tags":{"name":"/app/pages/admin/[user_id]/media/[...folder].tsx","layer":null},"startTime":1736835522350,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":43923,"timestamp":19527102,"id":1776,"parentId":1555,"tags":{"name":"/app/pages/admin/[user_id]/databases/add-database.tsx","layer":null},"startTime":1736835522350,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":44493,"timestamp":19526962,"id":1773,"parentId":1643,"tags":{"name":"/app/pages/su/users/new.tsx","layer":null},"startTime":1736835522350,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":45033,"timestamp":19526908,"id":1770,"parentId":1621,"tags":{"name":"/app/pages/su/docs/index.tsx","layer":null},"startTime":1736835522350,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":45665,"timestamp":19526722,"id":1761,"parentId":1633,"tags":{"name":"/app/pages/su/load-balancing.tsx","layer":null},"startTime":1736835522350,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":46030,"timestamp":19526757,"id":1763,"parentId":1637,"tags":{"name":"/app/pages/su/servers.tsx","layer":null},"startTime":1736835522350,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":46459,"timestamp":19527249,"id":1779,"parentId":1569,"tags":{"name":"/app/pages/admin/[user_id]/media/index.tsx","layer":null},"startTime":1736835522350,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":47527,"timestamp":19526838,"id":1766,"parentId":1571,"tags":{"name":"/app/pages/admin/[user_id]/settings.tsx","layer":null},"startTime":1736835522350,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":48175,"timestamp":19526788,"id":1764,"parentId":1561,"tags":{"name":"/app/pages/admin/[user_id]/index.tsx","layer":null},"startTime":1736835522350,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":48547,"timestamp":19526980,"id":1774,"parentId":1519,"tags":{"name":"/app/pages/admin/[user_id]/api-keys/index.tsx","layer":null},"startTime":1736835522350,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":49184,"timestamp":19526706,"id":1760,"parentId":1631,"tags":{"name":"/app/pages/su/index.tsx","layer":null},"startTime":1736835522350,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":49648,"timestamp":19526690,"id":1759,"parentId":1629,"tags":{"name":"/app/pages/su/error-logs.tsx","layer":null},"startTime":1736835522350,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":50272,"timestamp":19526806,"id":1765,"parentId":1567,"tags":{"name":"/app/pages/admin/[user_id]/schema.tsx","layer":null},"startTime":1736835522350,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":50688,"timestamp":19526872,"id":1768,"parentId":1617,"tags":{"name":"/app/pages/su/docs/create-page.tsx","layer":null},"startTime":1736835522350,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":51686,"timestamp":19526853,"id":1767,"parentId":1595,"tags":{"name":"/app/pages/docs/[page]/index.tsx","layer":null},"startTime":1736835522350,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":52928,"timestamp":19526739,"id":1762,"parentId":1635,"tags":{"name":"/app/pages/su/login.tsx","layer":null},"startTime":1736835522350,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":10163,"timestamp":19651308,"id":1780,"parentId":1694,"tags":{"name":"/app/node_modules/next/dist/shared/lib/modern-browserslist-target.js","layer":null},"startTime":1736835522474,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":10801,"timestamp":19651570,"id":1783,"parentId":1573,"tags":{"name":"/app/pages/admin/[user_id]/users/add-user.tsx","layer":null},"startTime":1736835522475,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":11403,"timestamp":19651517,"id":1782,"parentId":1696,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/add-path-prefix.js","layer":null},"startTime":1736835522475,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":12685,"timestamp":19651460,"id":1781,"parentId":1696,"tags":{"name":"/app/node_modules/next/dist/client/normalize-trailing-slash.js","layer":null},"startTime":1736835522475,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":85341,"timestamp":19671654,"id":1809,"parentId":1704,"tags":{"name":"/app/node_modules/react-dom/cjs/react-dom.production.min.js","layer":null},"startTime":1736835522495,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":86908,"timestamp":19670881,"id":1787,"parentId":1625,"tags":{"name":"/app/pages/su/docs/pages/index.tsx","layer":null},"startTime":1736835522494,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":87387,"timestamp":19670862,"id":1786,"parentId":1623,"tags":{"name":"/app/pages/su/docs/pages/[id].tsx","layer":null},"startTime":1736835522494,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":88116,"timestamp":19670716,"id":1784,"parentId":1581,"tags":{"name":"/app/pages/admin/[user_id]/users/index.tsx","layer":null},"startTime":1736835522494,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":88345,"timestamp":19671040,"id":1793,"parentId":1579,"tags":{"name":"/app/pages/admin/[user_id]/users/databases/index.tsx","layer":null},"startTime":1736835522494,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":89067,"timestamp":19670895,"id":1788,"parentId":1521,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/edit-database.tsx","layer":null},"startTime":1736835522494,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":89539,"timestamp":19671013,"id":1792,"parentId":1533,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/shell.tsx","layer":null},"startTime":1736835522494,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":90136,"timestamp":19670957,"id":1790,"parentId":1527,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/schema.tsx","layer":null},"startTime":1736835522494,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":90536,"timestamp":19671141,"id":1796,"parentId":1553,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/users/add-social-logins.tsx","layer":null},"startTime":1736835522494,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":91323,"timestamp":19670925,"id":1789,"parentId":1525,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/connect.tsx","layer":null},"startTime":1736835522494,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":92019,"timestamp":19671114,"id":1795,"parentId":1549,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/tables/index.tsx","layer":null},"startTime":1736835522494,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":93226,"timestamp":19670985,"id":1791,"parentId":1529,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/index.tsx","layer":null},"startTime":1736835522494,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":93494,"timestamp":19671212,"id":1798,"parentId":1563,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/users/add-user.tsx","layer":null},"startTime":1736835522494,"traceId":"80a02e6b898c9dbf"}] -[{"name":"build-module-tsx","duration":94859,"timestamp":19670822,"id":1785,"parentId":1591,"tags":{"name":"/app/pages/docs/[page]/[sub-page]/index.tsx","layer":null},"startTime":1736835522494,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":95359,"timestamp":19671073,"id":1794,"parentId":1545,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/tables/add-table.tsx","layer":null},"startTime":1736835522494,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":95858,"timestamp":19671181,"id":1797,"parentId":1557,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/users/index.tsx","layer":null},"startTime":1736835522494,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":95913,"timestamp":19671400,"id":1803,"parentId":1698,"tags":{"name":"/app/node_modules/next/dist/shared/lib/encode-uri-path.js","layer":null},"startTime":1736835522495,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":96106,"timestamp":19671687,"id":1810,"parentId":1543,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/users/[user]/change-password.tsx","layer":null},"startTime":1736835522495,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":96995,"timestamp":19671246,"id":1799,"parentId":1575,"tags":{"name":"/app/pages/admin/[user_id]/users/databases/[database]/[user].tsx","layer":null},"startTime":1736835522494,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":97447,"timestamp":19671274,"id":1800,"parentId":1577,"tags":{"name":"/app/pages/admin/[user_id]/users/databases/[database]/index.tsx","layer":null},"startTime":1736835522494,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":97916,"timestamp":19671306,"id":1801,"parentId":1531,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/tables/[single_table]/edit-table.tsx","layer":null},"startTime":1736835522494,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":98438,"timestamp":19671361,"id":1802,"parentId":1541,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/tables/[single_table]/fields.tsx","layer":null},"startTime":1736835522495,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":98715,"timestamp":19671733,"id":1811,"parentId":1547,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/tables/[single_table]/index.tsx","layer":null},"startTime":1736835522495,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":99079,"timestamp":19671813,"id":1813,"parentId":1535,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/add-entry.tsx","layer":null},"startTime":1736835522495,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":99549,"timestamp":19671856,"id":1814,"parentId":1537,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/index.tsx","layer":null},"startTime":1736835522495,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":100056,"timestamp":19671779,"id":1812,"parentId":1551,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/users/[user]/index.tsx","layer":null},"startTime":1736835522495,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":100425,"timestamp":19671894,"id":1815,"parentId":1539,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/[single_entry].tsx","layer":null},"startTime":1736835522495,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":101129,"timestamp":19671470,"id":1805,"parentId":1711,"tags":{"name":"/app/node_modules/next/dist/shared/lib/escape-regexp.js","layer":null},"startTime":1736835522495,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":101387,"timestamp":19671505,"id":1806,"parentId":1715,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/add-path-suffix.js","layer":null},"startTime":1736835522495,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":101617,"timestamp":19671551,"id":1807,"parentId":1714,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/remove-path-prefix.js","layer":null},"startTime":1736835522495,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":101882,"timestamp":19671598,"id":1808,"parentId":1715,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/add-locale.js","layer":null},"startTime":1736835522495,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":102526,"timestamp":19671431,"id":1804,"parentId":1698,"tags":{"name":"/app/node_modules/next/dist/client/trusted-types.js","layer":null},"startTime":1736835522495,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":5507,"timestamp":19831449,"id":1822,"parentId":1738,"tags":{"name":"/app/node_modules/next/script.js","layer":null},"startTime":1736835522655,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":16829,"timestamp":19830255,"id":1816,"parentId":1652,"tags":{"name":"/app/node_modules/@swc/helpers/esm/_interop_require_default.js","layer":null},"startTime":1736835522653,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":17257,"timestamp":19831177,"id":1817,"parentId":1651,"tags":{"name":"/app/node_modules/@swc/helpers/esm/_interop_require_wildcard.js","layer":null},"startTime":1736835522654,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":17884,"timestamp":19831245,"id":1818,"parentId":1655,"tags":{"name":"/app/node_modules/next/dist/build/polyfills/process.js","layer":null},"startTime":1736835522654,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":18379,"timestamp":19831564,"id":1825,"parentId":1729,"tags":{"name":"/app/node_modules/next/dist/server/dev/hot-reloader-types.js","layer":null},"startTime":1736835522655,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":18556,"timestamp":19831596,"id":1826,"parentId":1738,"tags":{"name":"/app/node_modules/next/head.js","layer":null},"startTime":1736835522655,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":14316,"timestamp":19836288,"id":1834,"parentId":1737,"tags":{"name":"/app/functions/frontend/fetchApi.ts","layer":null},"startTime":1736835522659,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":19597,"timestamp":19831350,"id":1820,"parentId":1732,"tags":{"name":"/app/node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","layer":null},"startTime":1736835522655,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":15047,"timestamp":19836318,"id":1835,"parentId":1740,"tags":{"name":"/app/components/pages/contact/ContactHero.tsx","layer":null},"startTime":1736835522659,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":15397,"timestamp":19836410,"id":1837,"parentId":1739,"tags":{"name":"/app/components/pages/about/Hero.tsx","layer":null},"startTime":1736835522660,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":21203,"timestamp":19831288,"id":1819,"parentId":1732,"tags":{"name":"/app/node_modules/next/dist/shared/lib/segment.js","layer":null},"startTime":1736835522654,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":16787,"timestamp":19836222,"id":1831,"parentId":1740,"tags":{"name":"/app/layouts/GeneralLayout.tsx","layer":null},"startTime":1736835522659,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":17262,"timestamp":19836268,"id":1833,"parentId":1740,"tags":{"name":"/app/functions/frontend/clientAuthUser.ts","layer":null},"startTime":1736835522659,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":17945,"timestamp":19836245,"id":1832,"parentId":1740,"tags":{"name":"/app/components/general/PageHeadTags.tsx","layer":null},"startTime":1736835522659,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":18790,"timestamp":19836182,"id":1830,"parentId":1738,"tags":{"name":"/app/components/ErrorBoundary.tsx","layer":null},"startTime":1736835522659,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":19432,"timestamp":19836365,"id":1836,"parentId":1740,"tags":{"name":"/app/components/pages/contact/ContactForm.tsx","layer":null},"startTime":1736835522660,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":26848,"timestamp":19831399,"id":1821,"parentId":1728,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/sorted-routes.js","layer":null},"startTime":1736835522655,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":27424,"timestamp":19831465,"id":1823,"parentId":1733,"tags":{"name":"/app/node_modules/next/dist/client/components/redirect-status-code.js","layer":null},"startTime":1736835522655,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":28206,"timestamp":19831510,"id":1824,"parentId":1729,"tags":{"name":"/app/node_modules/next/dist/client/components/react-dev-overlay/internal/helpers/get-socket-url.js","layer":null},"startTime":1736835522655,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":80654,"timestamp":19892781,"id":1838,"parentId":1747,"tags":{"name":"/app/node_modules/lodash/lodash.js","layer":null},"startTime":1736835522716,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":81031,"timestamp":19893122,"id":1843,"parentId":1748,"tags":{"name":"/app/components/general/LoadingBlock.tsx","layer":null},"startTime":1736835522716,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":81394,"timestamp":19893148,"id":1844,"parentId":1744,"tags":{"name":"/app/components/pages/privacy/PrivacyHero.tsx","layer":null},"startTime":1736835522716,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":82042,"timestamp":19892897,"id":1839,"parentId":1739,"tags":{"name":"/app/components/pages/homepage/BriefIntroSection.tsx","layer":null},"startTime":1736835522716,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":82396,"timestamp":19892991,"id":1840,"parentId":1739,"tags":{"name":"/app/components/pages/homepage/FooterCta.tsx","layer":null},"startTime":1736835522716,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":82771,"timestamp":19893091,"id":1842,"parentId":1743,"tags":{"name":"/app/components/general/Logo.tsx","layer":null},"startTime":1736835522716,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":83468,"timestamp":19893060,"id":1841,"parentId":1756,"tags":{"name":"/app/layouts/SuAdminLayout.tsx","layer":null},"startTime":1736835522716,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":83659,"timestamp":19893340,"id":1848,"parentId":1742,"tags":{"name":"/app/components/pages/homepage/FeaturesSummarySection.tsx","layer":null},"startTime":1736835522716,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":83961,"timestamp":19893389,"id":1849,"parentId":1741,"tags":{"name":"/app/components/pages/create-account/Hero.tsx","layer":null},"startTime":1736835522717,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":84556,"timestamp":19893305,"id":1847,"parentId":1742,"tags":{"name":"/app/components/pages/homepage/Hero2.tsx","layer":null},"startTime":1736835522716,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":84517,"timestamp":19893582,"id":1853,"parentId":1752,"tags":{"name":"/app/components/pages/blog/BlogHero.tsx","layer":null},"startTime":1736835522717,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":84718,"timestamp":19893630,"id":1855,"parentId":1743,"tags":{"name":"/app/components/general/LoadingScreen.tsx","layer":null},"startTime":1736835522717,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":85145,"timestamp":19893485,"id":1851,"parentId":1753,"tags":{"name":"/app/components/pages/docs/DocsHomeHero.tsx","layer":null},"startTime":1736835522717,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":86115,"timestamp":19893275,"id":1846,"parentId":1743,"tags":{"name":"/app/components/pages/login/LoginForm.tsx","layer":null},"startTime":1736835522716,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":86551,"timestamp":19893431,"id":1850,"parentId":1753,"tags":{"name":"/app/components/pages/docs/DocsAside.tsx","layer":null},"startTime":1736835522717,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":87486,"timestamp":19893198,"id":1845,"parentId":1744,"tags":{"name":"/app/components/pages/privacy/PrivacyBody.tsx","layer":null},"startTime":1736835522716,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":87395,"timestamp":19893534,"id":1852,"parentId":1753,"tags":{"name":"/app/components/pages/docs/DocsHomeLinks.tsx","layer":null},"startTime":1736835522717,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":88041,"timestamp":19893609,"id":1854,"parentId":1751,"tags":{"name":"/app/layouts/AdminLayout.tsx","layer":null},"startTime":1736835522717,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":7273,"timestamp":20004715,"id":1857,"parentId":1751,"tags":{"name":"/app/components/admin/dashboard/DashboardContent.tsx","layer":null},"startTime":1736835522828,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":7855,"timestamp":20004781,"id":1858,"parentId":1751,"tags":{"name":"/app/components/admin/databases/DeleteDatabaseConfirmationPopup.tsx","layer":null},"startTime":1736835522828,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":9397,"timestamp":20004584,"id":1856,"parentId":1756,"tags":{"name":"/app/components/su/SuConsoleContent.tsx","layer":null},"startTime":1736835522828,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":920789,"timestamp":19104900,"id":1487,"parentId":1436,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fredirect.tsx&page=%2Fredirect!"},"startTime":1736835521928,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":5285,"timestamp":20026669,"id":1867,"parentId":1746,"tags":{"name":"/app/functions/frontend/clearCaches.ts","layer":null},"startTime":1736835522850,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":5885,"timestamp":20026542,"id":1860,"parentId":1748,"tags":{"name":"/app/components/general/InfoBlock.tsx","layer":null},"startTime":1736835522850,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":6375,"timestamp":20026439,"id":1859,"parentId":1748,"tags":{"name":"/app/components/general/FormSuccessBlock.tsx","layer":null},"startTime":1736835522850,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":6621,"timestamp":20026715,"id":1869,"parentId":1775,"tags":{"name":"/app/components/admin/connect/ConnectContent.tsx","layer":null},"startTime":1736835522850,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":7100,"timestamp":20026598,"id":1863,"parentId":1749,"tags":{"name":"/app/components/pages/terms/TermsHero.tsx","layer":null},"startTime":1736835522850,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":7659,"timestamp":20026584,"id":1862,"parentId":1772,"tags":{"name":"/app/components/su/SuUsersContent.tsx","layer":null},"startTime":1736835522850,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":8286,"timestamp":20026680,"id":1868,"parentId":1777,"tags":{"name":"/app/components/admin/databases/DatabasesContent.tsx","layer":null},"startTime":1736835522850,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":8778,"timestamp":20026742,"id":1870,"parentId":1775,"tags":{"name":"/app/components/admin/connect/EditMariadbUserPopup.tsx","layer":null},"startTime":1736835522850,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":9510,"timestamp":20026653,"id":1866,"parentId":1758,"tags":{"name":"/app/components/su/SuEnvContent.tsx","layer":null},"startTime":1736835522850,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":10542,"timestamp":20026564,"id":1861,"parentId":1755,"tags":{"name":"/app/components/su/SuBackupsContent.tsx","layer":null},"startTime":1736835522850,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":11704,"timestamp":20026609,"id":1864,"parentId":1749,"tags":{"name":"/app/components/pages/terms/TermsBody.tsx","layer":null},"startTime":1736835522850,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":13701,"timestamp":20026623,"id":1865,"parentId":1769,"tags":{"name":"/app/components/su/docs/CreatePageContent.tsx","layer":null},"startTime":1736835522850,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":13339,"timestamp":20057995,"id":1883,"parentId":1773,"tags":{"name":"/app/components/su/SuNewUserContent.tsx","layer":null},"startTime":1736835522881,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":14414,"timestamp":20057537,"id":1871,"parentId":1775,"tags":{"name":"/app/components/admin/connect/NewMariadbUserPopup.tsx","layer":null},"startTime":1736835522881,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":14914,"timestamp":20057943,"id":1881,"parentId":1776,"tags":{"name":"/app/components/admin/databases/AddDatabaseContent.tsx","layer":null},"startTime":1736835522881,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":15761,"timestamp":20058009,"id":1884,"parentId":1778,"tags":{"name":"/app/components/general/UploadVideoComponent.tsx","layer":null},"startTime":1736835522881,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":16719,"timestamp":20057729,"id":1874,"parentId":1778,"tags":{"name":"/app/components/general/UploadFileComponent.tsx","layer":null},"startTime":1736835522881,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":17362,"timestamp":20057693,"id":1873,"parentId":1778,"tags":{"name":"/app/components/general/UploadImageComponent.tsx","layer":null},"startTime":1736835522881,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":17780,"timestamp":20057967,"id":1882,"parentId":1776,"tags":{"name":"/app/components/admin/databases/UserMediaPopup.tsx","layer":null},"startTime":1736835522881,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":18892,"timestamp":20057655,"id":1872,"parentId":1771,"tags":{"name":"/app/components/su/SuSingleUserContent.tsx","layer":null},"startTime":1736835522881,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":19637,"timestamp":20057771,"id":1875,"parentId":1770,"tags":{"name":"/app/components/su/docs/SuDocsPageListContent.tsx","layer":null},"startTime":1736835522881,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":20905,"timestamp":20057858,"id":1878,"parentId":1778,"tags":{"name":"/app/components/admin/media/NewFolderPopup.tsx","layer":null},"startTime":1736835522881,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":21792,"timestamp":20057885,"id":1879,"parentId":1778,"tags":{"name":"/app/components/admin/media/MediaFolderContent.tsx","layer":null},"startTime":1736835522881,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":22867,"timestamp":20057918,"id":1880,"parentId":1778,"tags":{"name":"/app/components/admin/media/ChooseMediaTypePopup.tsx","layer":null},"startTime":1736835522881,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":23134,"timestamp":20058168,"id":1889,"parentId":1774,"tags":{"name":"/app/components/admin/api-keys/ApiKeysContent.tsx","layer":null},"startTime":1736835522881,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":23659,"timestamp":20058126,"id":1887,"parentId":1761,"tags":{"name":"/app/components/su/load-balancing/index.tsx","layer":null},"startTime":1736835522881,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":25597,"timestamp":20057804,"id":1876,"parentId":1778,"tags":{"name":"/app/components/admin/media/NewMediaPopup.tsx","layer":null},"startTime":1736835522881,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":25634,"timestamp":20058194,"id":1890,"parentId":1774,"tags":{"name":"/app/components/admin/api-keys/TargetApiKeyPreviewPopup.tsx","layer":null},"startTime":1736835522881,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":26145,"timestamp":20058153,"id":1888,"parentId":1763,"tags":{"name":"/app/components/su/servers/index.tsx","layer":null},"startTime":1736835522881,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":27026,"timestamp":20058065,"id":1885,"parentId":1766,"tags":{"name":"/app/components/admin/settings/SettingsContent.tsx","layer":null},"startTime":1736835522881,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":27587,"timestamp":20058239,"id":1892,"parentId":1759,"tags":{"name":"/app/components/su/SuErrorLogsContent.tsx","layer":null},"startTime":1736835522881,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":28379,"timestamp":20058098,"id":1886,"parentId":1779,"tags":{"name":"/app/components/admin/media/MediaContent.tsx","layer":null},"startTime":1736835522881,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":29323,"timestamp":20058223,"id":1891,"parentId":1760,"tags":{"name":"/app/components/su/SuDashboardContent.tsx","layer":null},"startTime":1736835522881,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":31691,"timestamp":20057830,"id":1877,"parentId":1778,"tags":{"name":"/app/components/admin/media/TargetMediaPreviewPopup.tsx","layer":null},"startTime":1736835522881,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":8614,"timestamp":20115758,"id":1899,"parentId":1809,"tags":{"name":"/app/node_modules/scheduler/index.js","layer":null},"startTime":1736835522939,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":9288,"timestamp":20115811,"id":1901,"parentId":1786,"tags":{"name":"/app/components/su/docs/SuSingleDocPageContent.tsx","layer":null},"startTime":1736835522939,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":9938,"timestamp":20115456,"id":1893,"parentId":1765,"tags":{"name":"/app/components/general/VerificationBanner.tsx","layer":null},"startTime":1736835522939,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":10047,"timestamp":20115669,"id":1896,"parentId":1767,"tags":{"name":"/app/components/pages/docs/DocsGenereicHero.tsx","layer":null},"startTime":1736835522939,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":11137,"timestamp":20115584,"id":1894,"parentId":1765,"tags":{"name":"/app/components/general/Breadcrumbs.tsx","layer":null},"startTime":1736835522939,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":12369,"timestamp":20115620,"id":1895,"parentId":1765,"tags":{"name":"/app/components/admin/databases/UserSchemaContent.tsx","layer":null},"startTime":1736835522939,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":13943,"timestamp":20115700,"id":1897,"parentId":1774,"tags":{"name":"/app/components/admin/api-keys/AddNewApiKeyPopup.tsx","layer":null},"startTime":1736835522939,"traceId":"80a02e6b898c9dbf"}] -[{"name":"build-module-tsx","duration":16709,"timestamp":20115781,"id":1900,"parentId":1792,"tags":{"name":"/app/components/general/ExtraContentDatabase.tsx","layer":null},"startTime":1736835522939,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":19618,"timestamp":20115730,"id":1898,"parentId":1783,"tags":{"name":"/app/components/admin/users/AddNewUserContent.tsx","layer":null},"startTime":1736835522939,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":11778,"timestamp":20143208,"id":1904,"parentId":1793,"tags":{"name":"/app/components/admin/users/AllDatabasesUsersContent.tsx","layer":null},"startTime":1736835522966,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":12807,"timestamp":20143173,"id":1903,"parentId":1784,"tags":{"name":"/app/components/admin/users/UsersContent.tsx","layer":null},"startTime":1736835522966,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":14442,"timestamp":20143237,"id":1905,"parentId":1792,"tags":{"name":"/app/components/admin/databases/DatabaseShellContent.tsx","layer":null},"startTime":1736835522966,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":15743,"timestamp":20143267,"id":1906,"parentId":1790,"tags":{"name":"/app/components/admin/databases/DatabaseSchemaContent.tsx","layer":null},"startTime":1736835522966,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":18118,"timestamp":20143064,"id":1902,"parentId":1784,"tags":{"name":"/app/components/admin/users/TargetUserPreviewPopup.tsx","layer":null},"startTime":1736835522966,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":10835,"timestamp":20166347,"id":1908,"parentId":1791,"tags":{"name":"/app/components/admin/databases/DeleteTableConfirmationPopup.tsx","layer":null},"startTime":1736835522989,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":11987,"timestamp":20166414,"id":1910,"parentId":1795,"tags":{"name":"/app/components/admin/databases/TablesContent.tsx","layer":null},"startTime":1736835522990,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":13633,"timestamp":20166228,"id":1907,"parentId":1791,"tags":{"name":"/app/components/admin/databases/SingleDatabasesContent.tsx","layer":null},"startTime":1736835522989,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":16113,"timestamp":20166383,"id":1909,"parentId":1796,"tags":{"name":"/app/components/admin/users/SocialLoginsContent.tsx","layer":null},"startTime":1736835522990,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-json","duration":870,"timestamp":20191107,"id":1919,"parentId":1794,"tags":{"name":"/app/package-shared/data/defaultFields.json","layer":null},"startTime":1736835523014,"traceId":"80a02e6b898c9dbf"},{"name":"postcss-process","duration":9801,"timestamp":20192519,"id":1927,"parentId":1926,"tags":{},"startTime":1736835523016,"traceId":"80a02e6b898c9dbf"},{"name":"postcss-loader","duration":10622,"timestamp":20191742,"id":1926,"parentId":1916,"tags":{},"startTime":1736835523015,"traceId":"80a02e6b898c9dbf"},{"name":"css-loader","duration":3370,"timestamp":20202406,"id":1928,"parentId":1916,"tags":{"astUsed":"true"},"startTime":1736835523026,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-css","duration":15605,"timestamp":20190993,"id":1916,"parentId":1827,"tags":{"name":"/app/node_modules/xterm/css/xterm.css.webpack[javascript/auto]!=!/app/node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[7].oneOf[10].use[1]!/app/node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[7].oneOf[10].use[2]!/app/node_modules/xterm/css/xterm.css","layer":null},"startTime":1736835523014,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":27920,"timestamp":20191074,"id":1918,"parentId":1818,"tags":{"name":"/app/node_modules/next/dist/compiled/process/browser.js","layer":null},"startTime":1736835523014,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":28633,"timestamp":20190961,"id":1915,"parentId":1794,"tags":{"name":"/app/components/admin/databases/EditFieldPopup.tsx","layer":null},"startTime":1736835523014,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":29398,"timestamp":20190732,"id":1911,"parentId":1788,"tags":{"name":"/app/components/admin/databases/EditDatabaseContent.tsx","layer":null},"startTime":1736835523014,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":29742,"timestamp":20190914,"id":1914,"parentId":1794,"tags":{"name":"/app/components/admin/databases/AddTableContent.tsx","layer":null},"startTime":1736835523014,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":30604,"timestamp":20190842,"id":1912,"parentId":1789,"tags":{"name":"/app/components/admin/databases/connect/DatabaseConnectContent.tsx","layer":null},"startTime":1736835523014,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":31981,"timestamp":20190883,"id":1913,"parentId":1798,"tags":{"name":"/app/components/admin/users/DbAddNewUserContent.tsx","layer":null},"startTime":1736835523014,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":32463,"timestamp":20191247,"id":1924,"parentId":1802,"tags":{"name":"/app/functions/frontend/updateTableAfterFieldsUpdateFunctionExt.ts","layer":null},"startTime":1736835523014,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":33312,"timestamp":20191188,"id":1922,"parentId":1800,"tags":{"name":"/app/components/admin/users/SingleDatabaseUsersContent.tsx","layer":null},"startTime":1736835523014,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":34137,"timestamp":20191130,"id":1920,"parentId":1797,"tags":{"name":"/app/components/admin/users/DbUsersContent.tsx","layer":null},"startTime":1736835523014,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":35247,"timestamp":20191285,"id":1925,"parentId":1802,"tags":{"name":"/app/components/admin/databases/TableFieldsContent.tsx","layer":null},"startTime":1736835523014,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":36449,"timestamp":20191220,"id":1923,"parentId":1810,"tags":{"name":"/app/components/admin/users/ChangeDbUserPassword.tsx","layer":null},"startTime":1736835523014,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":38936,"timestamp":20191159,"id":1921,"parentId":1799,"tags":{"name":"/app/components/admin/users/SingleDatabaseSingleUserContent.tsx","layer":null},"startTime":1736835523014,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":39587,"timestamp":20191027,"id":1917,"parentId":1824,"tags":{"name":"/app/node_modules/next/dist/shared/lib/normalized-asset-prefix.js","layer":null},"startTime":1736835523014,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":1131228,"timestamp":19104610,"id":1438,"parentId":1436,"tags":{"request":"next-client-pages-loader?absolutePagePath=next%2Fdist%2Fpages%2F_error&page=%2F_error!"},"startTime":1736835521928,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":4805,"timestamp":20251298,"id":1929,"parentId":1801,"tags":{"name":"/app/components/admin/databases/EditTableContent.tsx","layer":null},"startTime":1736835523074,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":7227,"timestamp":20251428,"id":1930,"parentId":1811,"tags":{"name":"/app/components/admin/databases/SingleTableContent.tsx","layer":null},"startTime":1736835523075,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":8095,"timestamp":20279614,"id":1934,"parentId":1842,"tags":{"name":"__barrel_optimize__?names=Menu!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736835523103,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":10253,"timestamp":20279952,"id":1942,"parentId":1860,"tags":{"name":"__barrel_optimize__?names=Info!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736835523103,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":12165,"timestamp":20280092,"id":1945,"parentId":1840,"tags":{"name":"__barrel_optimize__?names=BookText!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736835523103,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":13792,"timestamp":20280200,"id":1946,"parentId":1848,"tags":{"name":"__barrel_optimize__?names=CopyCheck,EarthLock,FileKey2,FolderOutput,Sheet,SquareGanttChart!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736835523103,"traceId":"80a02e6b898c9dbf"},{"name":"postcss-process","duration":95859,"timestamp":20294413,"id":1956,"parentId":1954,"tags":{},"startTime":1736835523118,"traceId":"80a02e6b898c9dbf"},{"name":"postcss-process","duration":83220,"timestamp":20307078,"id":1957,"parentId":1955,"tags":{},"startTime":1736835523130,"traceId":"80a02e6b898c9dbf"},{"name":"postcss-loader","duration":107051,"timestamp":20283283,"id":1954,"parentId":1943,"tags":{},"startTime":1736835523106,"traceId":"80a02e6b898c9dbf"},{"name":"postcss-loader","duration":106993,"timestamp":20283345,"id":1955,"parentId":1944,"tags":{},"startTime":1736835523106,"traceId":"80a02e6b898c9dbf"},{"name":"css-loader","duration":14008,"timestamp":20390393,"id":1958,"parentId":1943,"tags":{"astUsed":"true"},"startTime":1736835523214,"traceId":"80a02e6b898c9dbf"},{"name":"css-loader","duration":13953,"timestamp":20390460,"id":1959,"parentId":1944,"tags":{"astUsed":"true"},"startTime":1736835523214,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-css","duration":125575,"timestamp":20279998,"id":1943,"parentId":1828,"tags":{"name":"/app/styles/less.css.webpack[javascript/auto]!=!/app/node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[7].oneOf[12].use[1]!/app/node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[7].oneOf[12].use[2]!/app/styles/less.css","layer":null},"startTime":1736835523103,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-css","duration":126466,"timestamp":20280060,"id":1944,"parentId":1829,"tags":{"name":"/app/styles/tailwind.css.webpack[javascript/auto]!=!/app/node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[7].oneOf[12].use[1]!/app/node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[7].oneOf[12].use[2]!/app/styles/tailwind.css","layer":null},"startTime":1736835523103,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":136634,"timestamp":20279900,"id":1941,"parentId":1834,"tags":{"name":"/app/node_modules/@moduletrace/datasquirel/dist/client/fetch/index.js","layer":null},"startTime":1736835523103,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":137068,"timestamp":20279853,"id":1940,"parentId":1831,"tags":{"name":"/app/layouts/components/GeneralLayout/ProductionHeadComponent.tsx","layer":null},"startTime":1736835523103,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":138173,"timestamp":20279333,"id":1931,"parentId":1811,"tags":{"name":"/app/layouts/components/GeneralLayout/ScrollToTopButton.tsx","layer":null},"startTime":1736835523102,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":138413,"timestamp":20279751,"id":1937,"parentId":1831,"tags":{"name":"/app/functions/frontend/updateNavLinks.ts","layer":null},"startTime":1736835523103,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":138945,"timestamp":20279817,"id":1939,"parentId":1831,"tags":{"name":"/app/layouts/components/GeneralLayout/Footer.tsx","layer":null},"startTime":1736835523103,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":140296,"timestamp":20279516,"id":1932,"parentId":1813,"tags":{"name":"/app/components/admin/databases/AddTableEntryContent.tsx","layer":null},"startTime":1736835523103,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":141358,"timestamp":20279656,"id":1935,"parentId":1815,"tags":{"name":"/app/components/admin/databases/SingleEntryContent.tsx","layer":null},"startTime":1736835523103,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":142651,"timestamp":20279782,"id":1938,"parentId":1831,"tags":{"name":"/app/layouts/components/GeneralLayout/Header.tsx","layer":null},"startTime":1736835523103,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":144838,"timestamp":20279562,"id":1933,"parentId":1814,"tags":{"name":"/app/components/admin/databases/TableEntriesContent.tsx","layer":null},"startTime":1736835523103,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":146523,"timestamp":20279708,"id":1936,"parentId":1812,"tags":{"name":"/app/components/admin/users/SingleDbUserContent.tsx","layer":null},"startTime":1736835523103,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":146032,"timestamp":20280581,"id":1949,"parentId":1844,"tags":{"name":"/app/components/general/FadedImage.tsx","layer":null},"startTime":1736835523104,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":146659,"timestamp":20280258,"id":1947,"parentId":1836,"tags":{"name":"/app/components/general/FormAlertBlock.tsx","layer":null},"startTime":1736835523103,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":146636,"timestamp":20280778,"id":1953,"parentId":1839,"tags":{"name":"/app/components/general/ScreenShotDescriptionCard.tsx","layer":null},"startTime":1736835523104,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":147663,"timestamp":20280616,"id":1950,"parentId":1841,"tags":{"name":"/app/layouts/components/SuAdminLayout/Aside.tsx","layer":null},"startTime":1736835523104,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":148443,"timestamp":20280665,"id":1951,"parentId":1841,"tags":{"name":"/app/layouts/components/SuAdminLayout/AdminHeader.tsx","layer":null},"startTime":1736835523104,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":150163,"timestamp":20280720,"id":1952,"parentId":1849,"tags":{"name":"/app/components/pages/create-account/CreateAccountForm.tsx","layer":null},"startTime":1736835523104,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":11755,"timestamp":20455685,"id":1961,"parentId":1848,"tags":{"name":"/app/components/general/IconText.tsx","layer":null},"startTime":1736835523279,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":12285,"timestamp":20455717,"id":1963,"parentId":1852,"tags":{"name":"/app/components/cards/LinkCard.tsx","layer":null},"startTime":1736835523279,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":13179,"timestamp":20455517,"id":1960,"parentId":1839,"tags":{"name":"/app/components/general/ContainedSection.tsx","layer":null},"startTime":1736835523279,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":13883,"timestamp":20455729,"id":1964,"parentId":1846,"tags":{"name":"/app/functions/frontend/userLogin.ts","layer":null},"startTime":1736835523279,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":14539,"timestamp":20455703,"id":1962,"parentId":1847,"tags":{"name":"/app/components/general/CodeBlock.tsx","layer":null},"startTime":1736835523279,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":2637,"timestamp":20475912,"id":1974,"parentId":1861,"tags":{"name":"__barrel_optimize__?names=FolderSync!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736835523299,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":3217,"timestamp":20476151,"id":1983,"parentId":1900,"tags":{"name":"__barrel_optimize__?names=ChevronDown,Download,FileInput,FolderOutput,SquareTerminal!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736835523299,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":15396,"timestamp":20475880,"id":1973,"parentId":1856,"tags":{"name":"/app/node_modules/socket.io-client/build/esm/index.js","layer":null},"startTime":1736835523299,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":15944,"timestamp":20475773,"id":1969,"parentId":1857,"tags":{"name":"/app/components/admin/dashboard/DatabasesSummary.tsx","layer":null},"startTime":1736835523299,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":16499,"timestamp":20475974,"id":1976,"parentId":1856,"tags":{"name":"/app/components/su/xterm.ts","layer":null},"startTime":1736835523299,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":17376,"timestamp":20475823,"id":1971,"parentId":1857,"tags":{"name":"/app/components/admin/dashboard/Metrics.tsx","layer":null},"startTime":1736835523299,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":18088,"timestamp":20475799,"id":1970,"parentId":1857,"tags":{"name":"/app/components/admin/databases/DelegatedDatabasesSection.tsx","layer":null},"startTime":1736835523299,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":18931,"timestamp":20475673,"id":1966,"parentId":1854,"tags":{"name":"/app/components/general/DiskUsageComponent.tsx","layer":null},"startTime":1736835523299,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":19749,"timestamp":20475573,"id":1965,"parentId":1846,"tags":{"name":"/app/components/pages/login/SocialLogin.tsx","layer":null},"startTime":1736835523299,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":19702,"timestamp":20476069,"id":1980,"parentId":1869,"tags":{"name":"/app/components/admin/connect/MariaDBUsers.tsx","layer":null},"startTime":1736835523299,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":20912,"timestamp":20475738,"id":1968,"parentId":1854,"tags":{"name":"/app/layouts/components/AdminLayout/AdminHeader.tsx","layer":null},"startTime":1736835523299,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":21660,"timestamp":20476041,"id":1979,"parentId":1869,"tags":{"name":"/app/components/admin/connect/ConnectionInfo.tsx","layer":null},"startTime":1736835523299,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":23383,"timestamp":20475706,"id":1967,"parentId":1854,"tags":{"name":"/app/layouts/components/AdminLayout/Aside.tsx","layer":null},"startTime":1736835523299,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":23620,"timestamp":20476094,"id":1981,"parentId":1868,"tags":{"name":"/app/components/admin/databases/DatabasesList.tsx","layer":null},"startTime":1736835523299,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":24621,"timestamp":20476008,"id":1978,"parentId":1862,"tags":{"name":"/app/components/su/components/UserCard.tsx","layer":null},"startTime":1736835523299,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":25605,"timestamp":20475956,"id":1975,"parentId":1858,"tags":{"name":"/app/components/general/GeneralPopup.tsx","layer":null},"startTime":1736835523299,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":26498,"timestamp":20475996,"id":1977,"parentId":1866,"tags":{"name":"/app/components/su/SuEnvCard.tsx","layer":null},"startTime":1736835523299,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":27824,"timestamp":20476125,"id":1982,"parentId":1870,"tags":{"name":"/app/components/admin/connect/MariDBUserForm.tsx","layer":null},"startTime":1736835523299,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":28715,"timestamp":20475856,"id":1972,"parentId":1856,"tags":{"name":"/app/node_modules/ansi-regex/index.js","layer":null},"startTime":1736835523299,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":2807,"timestamp":20531177,"id":1984,"parentId":1879,"tags":{"name":"__barrel_optimize__?names=Copy!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736835523354,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":3886,"timestamp":20531289,"id":1985,"parentId":1880,"tags":{"name":"__barrel_optimize__?names=FileVideo2,Files,Images!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736835523354,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":4850,"timestamp":20531327,"id":1986,"parentId":1877,"tags":{"name":"__barrel_optimize__?names=ChevronLeft,ChevronRight!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736835523354,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":17026,"timestamp":20531363,"id":1987,"parentId":1899,"tags":{"name":"/app/node_modules/scheduler/cjs/scheduler.production.min.js","layer":null},"startTime":1736835523355,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":17427,"timestamp":20531417,"id":1989,"parentId":1865,"tags":{"name":"/app/components/general/BackButton.tsx","layer":null},"startTime":1736835523355,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":17849,"timestamp":20531499,"id":1992,"parentId":1884,"tags":{"name":"/app/functions/frontend/inputFileToBase64.ts","layer":null},"startTime":1736835523355,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":18665,"timestamp":20531460,"id":1991,"parentId":1865,"tags":{"name":"/app/components/su/components/RichText/DocsRichTextBlock.tsx","layer":null},"startTime":1736835523355,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":19767,"timestamp":20531432,"id":1990,"parentId":1865,"tags":{"name":"/app/components/form/FormSelect.tsx","layer":null},"startTime":1736835523355,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":22497,"timestamp":20531397,"id":1988,"parentId":1865,"tags":{"name":"/app/components/form/FormInput.tsx","layer":null},"startTime":1736835523355,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-json","duration":1403,"timestamp":20560218,"id":2020,"parentId":1898,"tags":{"name":"/app/jsonData/userPriviledges.json","layer":null},"startTime":1736835523383,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":1457287,"timestamp":19104539,"id":1437,"parentId":1436,"tags":{"request":"./node_modules/next/dist/client/next.js"},"startTime":1736835521928,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":1457236,"timestamp":19104669,"id":1442,"parentId":1436,"tags":{"request":"/app/node_modules/next/dist/client/router.js"},"startTime":1736835521928,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":3328,"timestamp":20559702,"id":1999,"parentId":1907,"tags":{"name":"__barrel_optimize__?names=FolderOutput!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736835523383,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":16767,"timestamp":20559934,"id":2010,"parentId":1916,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/css-loader/src/runtime/api.js","layer":null},"startTime":1736835523383,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":17571,"timestamp":20559445,"id":1993,"parentId":1873,"tags":{"name":"/app/functions/frontend/imageInputFileToBase64.ts","layer":null},"startTime":1736835523383,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":17393,"timestamp":20559834,"id":2005,"parentId":1876,"tags":{"name":"/app/functions/frontend/updateDiskUsage.ts","layer":null},"startTime":1736835523383,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":17932,"timestamp":20559741,"id":2001,"parentId":1889,"tags":{"name":"/app/components/admin/api-keys/ApiKeysList.tsx","layer":null},"startTime":1736835523383,"traceId":"80a02e6b898c9dbf"}] -[{"name":"build-module-tsx","duration":18810,"timestamp":20559619,"id":1996,"parentId":1881,"tags":{"name":"/app/components/admin/databases/AddDatabaseForm.tsx","layer":null},"startTime":1736835523383,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":19168,"timestamp":20559791,"id":2003,"parentId":1876,"tags":{"name":"/app/components/admin/media/NewFileCard.tsx","layer":null},"startTime":1736835523383,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":19871,"timestamp":20559586,"id":1995,"parentId":1872,"tags":{"name":"/app/components/su/components/UserData.tsx","layer":null},"startTime":1736835523383,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":20324,"timestamp":20559730,"id":2000,"parentId":1879,"tags":{"name":"/app/components/admin/media/MediaList.tsx","layer":null},"startTime":1736835523383,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":20761,"timestamp":20559876,"id":2007,"parentId":1877,"tags":{"name":"/app/functions/frontend/downloadFile.ts","layer":null},"startTime":1736835523383,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":21715,"timestamp":20559536,"id":1994,"parentId":1872,"tags":{"name":"/app/components/su/components/UserBackups.tsx","layer":null},"startTime":1736835523383,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":22432,"timestamp":20559766,"id":2002,"parentId":1876,"tags":{"name":"/app/components/admin/media/NewMediaCard.tsx","layer":null},"startTime":1736835523383,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":22582,"timestamp":20559888,"id":2008,"parentId":1877,"tags":{"name":"/app/functions/frontend/downloadPrivateFile.ts","layer":null},"startTime":1736835523383,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":23279,"timestamp":20559811,"id":2004,"parentId":1887,"tags":{"name":"/app/components/su/load-balancing/(partials)/ServerCard.tsx","layer":null},"startTime":1736835523383,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":24152,"timestamp":20559678,"id":1998,"parentId":1875,"tags":{"name":"/app/components/general/ui/ButtonGroup.tsx","layer":null},"startTime":1736835523383,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":24057,"timestamp":20560021,"id":2013,"parentId":1945,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/book-text.js","layer":null},"startTime":1736835523383,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":24238,"timestamp":20560086,"id":2016,"parentId":1946,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/file-key-2.js","layer":null},"startTime":1736835523383,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":24420,"timestamp":20560122,"id":2017,"parentId":1946,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/folder-output.js","layer":null},"startTime":1736835523383,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":24577,"timestamp":20560188,"id":2019,"parentId":1946,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/square-gantt-chart.js","layer":null},"startTime":1736835523383,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":24880,"timestamp":20560151,"id":2018,"parentId":1946,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/sheet.js","layer":null},"startTime":1736835523383,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":25954,"timestamp":20559855,"id":2006,"parentId":1885,"tags":{"name":"/app/components/admin/databases/UserImage.tsx","layer":null},"startTime":1736835523383,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":26034,"timestamp":20559995,"id":2012,"parentId":1942,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/info.js","layer":null},"startTime":1736835523383,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":26176,"timestamp":20560065,"id":2015,"parentId":1946,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/earth-lock.js","layer":null},"startTime":1736835523383,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":26474,"timestamp":20559970,"id":2011,"parentId":1934,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/menu.js","layer":null},"startTime":1736835523383,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":27768,"timestamp":20559653,"id":1997,"parentId":1875,"tags":{"name":"/app/components/su/components/PageCard.tsx","layer":null},"startTime":1736835523383,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":27648,"timestamp":20560043,"id":2014,"parentId":1946,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/copy-check.js","layer":null},"startTime":1736835523383,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":28101,"timestamp":20560258,"id":2023,"parentId":1898,"tags":{"name":"/app/components/form/FormCheckboxes.tsx","layer":null},"startTime":1736835523383,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":28527,"timestamp":20560225,"id":2021,"parentId":1900,"tags":{"name":"/app/components/general/CopySlug.tsx","layer":null},"startTime":1736835523383,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":29324,"timestamp":20560238,"id":2022,"parentId":1900,"tags":{"name":"/app/functions/frontend/downloadApiStream.ts","layer":null},"startTime":1736835523383,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":30406,"timestamp":20559910,"id":2009,"parentId":1877,"tags":{"name":"/app/components/admin/media/card/MediaMoreButton.tsx","layer":null},"startTime":1736835523383,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":1485902,"timestamp":19104906,"id":1488,"parentId":1436,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Flogout.tsx&page=%2Flogout!"},"startTime":1736835521928,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":1485921,"timestamp":19104968,"id":1502,"parentId":1436,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fsu%2Flogin.tsx&page=%2Fsu%2Flogin!"},"startTime":1736835521928,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-css","duration":771162,"timestamp":19831615,"id":1827,"parentId":1756,"tags":{"name":"/app/node_modules/xterm/css/xterm.css","layer":null},"startTime":1736835522655,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-css","duration":767773,"timestamp":19835905,"id":1828,"parentId":1738,"tags":{"name":"/app/styles/less.css","layer":null},"startTime":1736835522659,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-css","duration":768337,"timestamp":19836096,"id":1829,"parentId":1738,"tags":{"name":"/app/styles/tailwind.css","layer":null},"startTime":1736835522659,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":3899,"timestamp":20621041,"id":2037,"parentId":1966,"tags":{"name":"__barrel_optimize__?names=ArrowLeft,HardDrive,RotateCw!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736835523444,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":4664,"timestamp":20621076,"id":2038,"parentId":1981,"tags":{"name":"__barrel_optimize__?names=PackagePlus!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736835523444,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":5347,"timestamp":20621103,"id":2039,"parentId":1975,"tags":{"name":"__barrel_optimize__?names=X!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736835523444,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":5961,"timestamp":20621273,"id":2045,"parentId":1971,"tags":{"name":"__barrel_optimize__?names=Database,Images,Key,Sheet!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736835523444,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":6926,"timestamp":20621306,"id":2046,"parentId":1979,"tags":{"name":"__barrel_optimize__?names=Copy,Download!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736835523444,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":16117,"timestamp":20621335,"id":2047,"parentId":1973,"tags":{"name":"/app/node_modules/socket.io-client/build/esm/url.js","layer":null},"startTime":1736835523444,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":20022,"timestamp":20621369,"id":2048,"parentId":1973,"tags":{"name":"/app/node_modules/socket.io-client/build/esm/manager.js","layer":null},"startTime":1736835523445,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":24482,"timestamp":20621394,"id":2049,"parentId":1973,"tags":{"name":"/app/node_modules/socket.io-client/build/esm/socket.js","layer":null},"startTime":1736835523445,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":25023,"timestamp":20621161,"id":2041,"parentId":1983,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/chevron-down.js","layer":null},"startTime":1736835523444,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":25868,"timestamp":20620735,"id":2026,"parentId":1895,"tags":{"name":"/app/package-shared/utils/ejson.ts","layer":null},"startTime":1736835523444,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":25774,"timestamp":20621132,"id":2040,"parentId":1974,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/folder-sync.js","layer":null},"startTime":1736835523444,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":26637,"timestamp":20620569,"id":2024,"parentId":1897,"tags":{"name":"/app/functions/frontend/checkUniqueField.ts","layer":null},"startTime":1736835523444,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":26725,"timestamp":20620876,"id":2031,"parentId":1905,"tags":{"name":"/app/components/admin/databases/DatabaseShellQueryResult.tsx","layer":null},"startTime":1736835523444,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":27257,"timestamp":20620751,"id":2027,"parentId":1906,"tags":{"name":"/app/components/general/ActiveCloneDbBanner.tsx","layer":null},"startTime":1736835523444,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":27842,"timestamp":20620790,"id":2028,"parentId":1904,"tags":{"name":"/app/components/admin/users/DatabaseUsers.tsx","layer":null},"startTime":1736835523444,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":28541,"timestamp":20620714,"id":2025,"parentId":1895,"tags":{"name":"/app/components/general/AceEditor.tsx","layer":null},"startTime":1736835523444,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":28645,"timestamp":20620963,"id":2034,"parentId":1907,"tags":{"name":"/app/components/general/DatabaseSlugCopy.tsx","layer":null},"startTime":1736835523444,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":29264,"timestamp":20620837,"id":2030,"parentId":1903,"tags":{"name":"/app/components/admin/users/InvitationReceivedCard.tsx","layer":null},"startTime":1736835523444,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":29945,"timestamp":20620904,"id":2032,"parentId":1906,"tags":{"name":"/app/components/admin/databases/DatabaseTablesTablePreview.tsx","layer":null},"startTime":1736835523444,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":29982,"timestamp":20621187,"id":2042,"parentId":1983,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/download.js","layer":null},"startTime":1736835523444,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":30185,"timestamp":20621213,"id":2043,"parentId":1983,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/file-input.js","layer":null},"startTime":1736835523444,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":31384,"timestamp":20620819,"id":2029,"parentId":1903,"tags":{"name":"/app/components/admin/users/UsersList.tsx","layer":null},"startTime":1736835523444,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":32429,"timestamp":20620931,"id":2033,"parentId":1906,"tags":{"name":"/app/components/admin/databases/DatabasesTablesList.tsx","layer":null},"startTime":1736835523444,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":32493,"timestamp":20621241,"id":2044,"parentId":1983,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/square-terminal.js","layer":null},"startTime":1736835523444,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":33401,"timestamp":20620995,"id":2035,"parentId":1909,"tags":{"name":"/app/components/form/FormRadios.tsx","layer":null},"startTime":1736835523444,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":33393,"timestamp":20621458,"id":2051,"parentId":1911,"tags":{"name":"/app/components/admin/databases/EditDatabaseForm.tsx","layer":null},"startTime":1736835523445,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":34865,"timestamp":20621011,"id":2036,"parentId":1910,"tags":{"name":"/app/components/admin/databases/TablesList.tsx","layer":null},"startTime":1736835523444,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":37040,"timestamp":20621425,"id":2050,"parentId":1915,"tags":{"name":"/app/components/admin/databases/ExistingFieldEdit.tsx","layer":null},"startTime":1736835523445,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-json","duration":1158,"timestamp":20669170,"id":2063,"parentId":1930,"tags":{"name":"/app/package-shared/data/dataTypes.json","layer":null},"startTime":1736835523492,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":2870,"timestamp":20669205,"id":2065,"parentId":1931,"tags":{"name":"__barrel_optimize__?names=ChevronUp!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736835523492,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":3563,"timestamp":20669264,"id":2066,"parentId":1938,"tags":{"name":"__barrel_optimize__?names=ChevronDown!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736835523492,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":4217,"timestamp":20669290,"id":2067,"parentId":1989,"tags":{"name":"__barrel_optimize__?names=ArrowLeft!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736835523492,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":4841,"timestamp":20669488,"id":2074,"parentId":1950,"tags":{"name":"__barrel_optimize__?names=BookText,CloudUpload,DatabaseBackup,FileWarning,Home,LockKeyhole,Server,SquareChevronRight,Users!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736835523493,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":5502,"timestamp":20669522,"id":2075,"parentId":2000,"tags":{"name":"__barrel_optimize__?names=Plus!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736835523493,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":20090,"timestamp":20669034,"id":2058,"parentId":1976,"tags":{"name":"/app/node_modules/xterm-addon-fit/lib/xterm-addon-fit.js","layer":null},"startTime":1736835523492,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":139978,"timestamp":20669014,"id":2057,"parentId":1976,"tags":{"name":"/app/node_modules/xterm/lib/xterm.js","layer":null},"startTime":1736835523492,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":140131,"timestamp":20669329,"id":2068,"parentId":1984,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/copy.js","layer":null},"startTime":1736835523492,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":140293,"timestamp":20669399,"id":2070,"parentId":1985,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/files.js","layer":null},"startTime":1736835523493,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":140542,"timestamp":20669365,"id":2069,"parentId":1985,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/file-video-2.js","layer":null},"startTime":1736835523493,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":141696,"timestamp":20668791,"id":2052,"parentId":1914,"tags":{"name":"/app/components/admin/databases/AddTableForm.tsx","layer":null},"startTime":1736835523492,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":142041,"timestamp":20669056,"id":2059,"parentId":1925,"tags":{"name":"/app/components/general/ActiveCloneTableBanner.tsx","layer":null},"startTime":1736835523492,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":141911,"timestamp":20669442,"id":2072,"parentId":1986,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/chevron-left.js","layer":null},"startTime":1736835523493,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":142725,"timestamp":20669084,"id":2060,"parentId":1921,"tags":{"name":"/app/components/admin/users/UserImage.tsx","layer":null},"startTime":1736835523492,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":142494,"timestamp":20669463,"id":2073,"parentId":1986,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/chevron-right.js","layer":null},"startTime":1736835523493,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":142705,"timestamp":20669420,"id":2071,"parentId":1985,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/images.js","layer":null},"startTime":1736835523493,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":143843,"timestamp":20668935,"id":2054,"parentId":1920,"tags":{"name":"/app/components/admin/users/DbUsersList.tsx","layer":null},"startTime":1736835523492,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":144919,"timestamp":20668900,"id":2053,"parentId":1913,"tags":{"name":"/app/components/admin/users/DbCreateDbUserForm.tsx","layer":null},"startTime":1736835523492,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":144707,"timestamp":20669546,"id":2076,"parentId":2013,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/createLucideIcon.js","layer":null},"startTime":1736835523493,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":146101,"timestamp":20669141,"id":2062,"parentId":1930,"tags":{"name":"/app/components/admin/databases/TableEntriesList.tsx","layer":null},"startTime":1736835523492,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":147132,"timestamp":20669179,"id":2064,"parentId":1930,"tags":{"name":"/app/components/admin/databases/TableIndexes.tsx","layer":null},"startTime":1736835523492,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":148602,"timestamp":20669100,"id":2061,"parentId":1929,"tags":{"name":"/app/components/admin/databases/EditTableForm.tsx","layer":null},"startTime":1736835523492,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":150143,"timestamp":20668987,"id":2056,"parentId":1912,"tags":{"name":"/app/components/admin/databases/connect/ConnectForm.tsx","layer":null},"startTime":1736835523492,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":152152,"timestamp":20668963,"id":2055,"parentId":1925,"tags":{"name":"/app/components/admin/databases/TableFields.tsx","layer":null},"startTime":1736835523492,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":15848,"timestamp":20830480,"id":2077,"parentId":1993,"tags":{"name":"/app/node_modules/@moduletrace/datasquirel/dist/client/index.js","layer":null},"startTime":1736835523654,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":16411,"timestamp":20830643,"id":2081,"parentId":1935,"tags":{"name":"/app/components/admin/databases/SingleEntryPrevNext.tsx","layer":null},"startTime":1736835523654,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":17467,"timestamp":20830563,"id":2078,"parentId":1938,"tags":{"name":"/app/components/general/ThemeSelector.tsx","layer":null},"startTime":1736835523654,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":18373,"timestamp":20830664,"id":2082,"parentId":1935,"tags":{"name":"/app/components/admin/databases/SelectNewEntry.tsx","layer":null},"startTime":1736835523654,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":19581,"timestamp":20830684,"id":2083,"parentId":1938,"tags":{"name":"/app/layouts/components/AdminLayout/AdminUserBlock.tsx","layer":null},"startTime":1736835523654,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":21631,"timestamp":20830594,"id":2079,"parentId":1932,"tags":{"name":"/app/components/admin/databases/TableEntryForm.tsx","layer":null},"startTime":1736835523654,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":25084,"timestamp":20830621,"id":2080,"parentId":1935,"tags":{"name":"/app/components/admin/databases/UpdateEntryForm.tsx","layer":null},"startTime":1736835523654,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":207,"timestamp":20862493,"id":2087,"parentId":1827,"tags":{},"startTime":1736835523686,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":17,"timestamp":20862714,"id":2088,"parentId":1828,"tags":{},"startTime":1736835523686,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":10,"timestamp":20862737,"id":2089,"parentId":1829,"tags":{},"startTime":1736835523686,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":1939,"timestamp":20862835,"id":2092,"parentId":1967,"tags":{"name":"__barrel_optimize__?names=BookText,CircleGauge,Database,FileKey2,Globe,Images,ShieldEllipsis,Users!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736835523686,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":2786,"timestamp":20862892,"id":2093,"parentId":1997,"tags":{"name":"__barrel_optimize__?names=Layers,Newspaper!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736835523686,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":3625,"timestamp":20862920,"id":2094,"parentId":2036,"tags":{"name":"__barrel_optimize__?names=Copy,CopyPlus,Edit,FileX2,Grid2X2!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736835523686,"traceId":"80a02e6b898c9dbf"},{"name":"postcss-process","duration":2816,"timestamp":20866744,"id":2101,"parentId":2100,"tags":{},"startTime":1736835523690,"traceId":"80a02e6b898c9dbf"},{"name":"postcss-loader","duration":6249,"timestamp":20863326,"id":2100,"parentId":2091,"tags":{},"startTime":1736835523686,"traceId":"80a02e6b898c9dbf"},{"name":"css-loader","duration":7617,"timestamp":20869594,"id":2102,"parentId":2091,"tags":{"astUsed":"true"},"startTime":1736835523693,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-css","duration":14924,"timestamp":20862794,"id":2091,"parentId":1948,"tags":{"name":"/app/components/pages/homepage/Home.module.css.webpack[javascript/auto]!=!/app/node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[7].oneOf[7].use[1]!/app/node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[7].oneOf[7].use[2]!/app/components/pages/homepage/Home.module.css","layer":null},"startTime":1736835523686,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-mjs","duration":34445,"timestamp":20862753,"id":2090,"parentId":2021,"tags":{"name":"/app/node_modules/tailwind-merge/dist/bundle-mjs.mjs","layer":null},"startTime":1736835523686,"traceId":"80a02e6b898c9dbf"}] -[{"name":"build-module-tsx","duration":35704,"timestamp":20862394,"id":2086,"parentId":1933,"tags":{"name":"/app/components/admin/databases/MoreTableOptions.tsx","layer":null},"startTime":1736835523686,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":36413,"timestamp":20862282,"id":2084,"parentId":1952,"tags":{"name":"/app/functions/frontend/submitNewUserForm.ts","layer":null},"startTime":1736835523685,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":35950,"timestamp":20862942,"id":2095,"parentId":2037,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/arrow-left.js","layer":null},"startTime":1736835523686,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":36018,"timestamp":20863036,"id":2099,"parentId":2039,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/x.js","layer":null},"startTime":1736835523686,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":36281,"timestamp":20862966,"id":2096,"parentId":2037,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/hard-drive.js","layer":null},"startTime":1736835523686,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":37537,"timestamp":20862363,"id":2085,"parentId":1933,"tags":{"name":"/app/components/admin/databases/ImportExportEntries.tsx","layer":null},"startTime":1736835523686,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":37098,"timestamp":20862990,"id":2097,"parentId":2037,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/rotate-cw.js","layer":null},"startTime":1736835523686,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":37314,"timestamp":20863013,"id":2098,"parentId":2038,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/package-plus.js","layer":null},"startTime":1736835523686,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":1801731,"timestamp":19104646,"id":1441,"parentId":1436,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2F_app.tsx&page=%2F_app!"},"startTime":1736835521928,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":2148,"timestamp":20909672,"id":2114,"parentId":2062,"tags":{"name":"__barrel_optimize__?names=Grid2x2!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736835523733,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-css","duration":637661,"timestamp":20280315,"id":1948,"parentId":1847,"tags":{"name":"/app/components/pages/homepage/Home.module.css","layer":null},"startTime":1736835523103,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":18294,"timestamp":20909449,"id":2105,"parentId":2048,"tags":{"name":"/app/node_modules/socket.io-client/build/esm/on.js","layer":null},"startTime":1736835523733,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":19004,"timestamp":20909474,"id":2106,"parentId":2048,"tags":{"name":"/app/node_modules/socket.io-client/build/esm/contrib/backo2.js","layer":null},"startTime":1736835523733,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":18915,"timestamp":20910010,"id":2127,"parentId":1973,"tags":{"name":"/app/node_modules/engine.io-client/build/esm/index.js","layer":null},"startTime":1736835523733,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":21171,"timestamp":20910035,"id":2128,"parentId":1973,"tags":{"name":"/app/node_modules/socket.io-parser/build/esm/index.js","layer":null},"startTime":1736835523733,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":21731,"timestamp":20909700,"id":2115,"parentId":2076,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/defaultAttributes.js","layer":null},"startTime":1736835523733,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":22276,"timestamp":20909343,"id":2103,"parentId":2045,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/database.js","layer":null},"startTime":1736835523732,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":22052,"timestamp":20909723,"id":2116,"parentId":2065,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/chevron-up.js","layer":null},"startTime":1736835523733,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":22149,"timestamp":20909800,"id":2119,"parentId":2074,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/file-warning.js","layer":null},"startTime":1736835523733,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":22691,"timestamp":20909421,"id":2104,"parentId":2045,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/key.js","layer":null},"startTime":1736835523733,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":22523,"timestamp":20909749,"id":2117,"parentId":2074,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/cloud-upload.js","layer":null},"startTime":1736835523733,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":23158,"timestamp":20909624,"id":2111,"parentId":1967,"tags":{"name":"/app/functions/isLocalSuperUser.ts","layer":null},"startTime":1736835523733,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":23118,"timestamp":20909827,"id":2120,"parentId":2074,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/home.js","layer":null},"startTime":1736835523733,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":23366,"timestamp":20909775,"id":2118,"parentId":2074,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/database-backup.js","layer":null},"startTime":1736835523733,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":23781,"timestamp":20909635,"id":2112,"parentId":1971,"tags":{"name":"/app/components/general/MetricCard.tsx","layer":null},"startTime":1736835523733,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":23662,"timestamp":20909985,"id":2126,"parentId":2076,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/shared/src/utils.js","layer":null},"startTime":1736835523733,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":23975,"timestamp":20909898,"id":2123,"parentId":2074,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/square-chevron-right.js","layer":null},"startTime":1736835523733,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":24115,"timestamp":20909960,"id":2125,"parentId":2075,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/plus.js","layer":null},"startTime":1736835523733,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":24478,"timestamp":20909875,"id":2122,"parentId":2074,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/server.js","layer":null},"startTime":1736835523733,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":24799,"timestamp":20909852,"id":2121,"parentId":2074,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/lock-keyhole.js","layer":null},"startTime":1736835523733,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":24921,"timestamp":20909932,"id":2124,"parentId":2074,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/users.js","layer":null},"startTime":1736835523733,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":26390,"timestamp":20909542,"id":2108,"parentId":1965,"tags":{"name":"/app/components/pages/login/GoogleIdentityButton.tsx","layer":null},"startTime":1736835523733,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":27307,"timestamp":20909596,"id":2110,"parentId":1980,"tags":{"name":"/app/components/admin/connect/MariaDBUserCard.tsx","layer":null},"startTime":1736835523733,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":28731,"timestamp":20909567,"id":2109,"parentId":1965,"tags":{"name":"/app/components/pages/login/GithubLogin.tsx","layer":null},"startTime":1736835523733,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":30581,"timestamp":20909507,"id":2107,"parentId":1970,"tags":{"name":"/app/components/admin/databases/DatabaseListCard.tsx","layer":null},"startTime":1736835523733,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":32421,"timestamp":20909646,"id":2113,"parentId":1982,"tags":{"name":"/app/components/admin/connect/MariDBUserFormGrantsSection.tsx","layer":null},"startTime":1736835523733,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":1844153,"timestamp":19104947,"id":1498,"parentId":1436,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fsu%2Fenvar.tsx&page=%2Fsu%2Fenvar!"},"startTime":1736835521928,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":1844280,"timestamp":19104909,"id":1489,"parentId":1436,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fsu%2Fbackups.tsx&page=%2Fsu%2Fbackups!"},"startTime":1736835521928,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":1844218,"timestamp":19104993,"id":1505,"parentId":1436,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fsu%2Fusers%2Findex.tsx&page=%2Fsu%2Fusers!"},"startTime":1736835521928,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":1844228,"timestamp":19104996,"id":1506,"parentId":1436,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fsu%2Fusers%2Fnew.tsx&page=%2Fsu%2Fusers%2Fnew!"},"startTime":1736835521928,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":1844289,"timestamp":19104956,"id":1500,"parentId":1436,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fsu%2Findex.tsx&page=%2Fsu!"},"startTime":1736835521928,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":1844309,"timestamp":19104953,"id":1499,"parentId":1436,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fsu%2Ferror-logs.tsx&page=%2Fsu%2Ferror-logs!"},"startTime":1736835521928,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":1844337,"timestamp":19104940,"id":1496,"parentId":1436,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fsu%2Fdocs%2Fpages%2F%5Bid%5D.tsx&page=%2Fsu%2Fdocs%2Fpages%2F%5Bid%5D!"},"startTime":1736835521928,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":2454,"timestamp":20948005,"id":2137,"parentId":2004,"tags":{"name":"__barrel_optimize__?names=Server!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736835523771,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":1849323,"timestamp":19104894,"id":1485,"parentId":1436,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Flogin.tsx&page=%2Flogin!"},"startTime":1736835521928,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":14233,"timestamp":20947791,"id":2130,"parentId":2055,"tags":{"name":"/app/node_modules/gsap/index.js","layer":null},"startTime":1736835523771,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":26655,"timestamp":20947723,"id":2129,"parentId":2055,"tags":{"name":"/app/node_modules/gsap/Flip.js","layer":null},"startTime":1736835523771,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":27703,"timestamp":20947804,"id":2131,"parentId":2077,"tags":{"name":"/app/node_modules/@moduletrace/datasquirel/dist/client/media/imageInputFileToBase64.js","layer":null},"startTime":1736835523771,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":28697,"timestamp":20947855,"id":2132,"parentId":2077,"tags":{"name":"/app/node_modules/@moduletrace/datasquirel/dist/client/media/imageInputToBase64.js","layer":null},"startTime":1736835523771,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":29454,"timestamp":20947888,"id":2133,"parentId":2077,"tags":{"name":"/app/node_modules/@moduletrace/datasquirel/dist/client/media/inputFileToBase64.js","layer":null},"startTime":1736835523771,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":30415,"timestamp":20947918,"id":2134,"parentId":2077,"tags":{"name":"/app/node_modules/@moduletrace/datasquirel/dist/client/auth/logout.js","layer":null},"startTime":1736835523771,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":31156,"timestamp":20947945,"id":2135,"parentId":2077,"tags":{"name":"/app/node_modules/@moduletrace/datasquirel/dist/client/auth/google/getAccessToken.js","layer":null},"startTime":1736835523771,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":31411,"timestamp":20947973,"id":2136,"parentId":2077,"tags":{"name":"/app/node_modules/@moduletrace/datasquirel/dist/client/auth/github/getAccessToken.js","layer":null},"startTime":1736835523771,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":31728,"timestamp":20948046,"id":2138,"parentId":1988,"tags":{"name":"/app/functions/frontend/numberFormat.ts","layer":null},"startTime":1736835523771,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":32050,"timestamp":20948179,"id":2144,"parentId":2003,"tags":{"name":"/app/components/admin/media/TogglePrivacyButton.tsx","layer":null},"startTime":1736835523771,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":32624,"timestamp":20948059,"id":2139,"parentId":1988,"tags":{"name":"/app/functions/frontend/numberFormatFloat.ts","layer":null},"startTime":1736835523771,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":33072,"timestamp":20948157,"id":2143,"parentId":1996,"tags":{"name":"/app/components/admin/databases/DatabaseImage.tsx","layer":null},"startTime":1736835523771,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":33847,"timestamp":20948203,"id":2145,"parentId":1995,"tags":{"name":"/app/components/su/components/UserFiles.tsx","layer":null},"startTime":1736835523771,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":34634,"timestamp":20948110,"id":2141,"parentId":2001,"tags":{"name":"/app/components/admin/api-keys/ApiKeyListCard.tsx","layer":null},"startTime":1736835523771,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":34946,"timestamp":20948258,"id":2147,"parentId":2000,"tags":{"name":"/app/components/admin/media/MediaFolderCard.tsx","layer":null},"startTime":1736835523771,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":36179,"timestamp":20948134,"id":2142,"parentId":1996,"tags":{"name":"/app/components/admin/databases/DatabaseForm.tsx","layer":null},"startTime":1736835523771,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":37101,"timestamp":20948280,"id":2148,"parentId":2000,"tags":{"name":"/app/components/admin/media/card/MediaListCard.tsx","layer":null},"startTime":1736835523771,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":38409,"timestamp":20948081,"id":2140,"parentId":1991,"tags":{"name":"/app/components/su/components/RichText/RichTextExtensionBlock.tsx","layer":null},"startTime":1736835523771,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":39635,"timestamp":20948236,"id":2146,"parentId":1995,"tags":{"name":"/app/components/su/components/UserDbShell.tsx","layer":null},"startTime":1736835523771,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":1893782,"timestamp":19104959,"id":1501,"parentId":1436,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fsu%2Fload-balancing.tsx&page=%2Fsu%2Fload-balancing!"},"startTime":1736835521928,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":1893850,"timestamp":19104975,"id":1503,"parentId":1436,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fsu%2Fservers.tsx&page=%2Fsu%2Fservers!"},"startTime":1736835521928,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":1849,"timestamp":20998207,"id":2149,"parentId":2086,"tags":{"name":"__barrel_optimize__?names=Ellipsis!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736835523821,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":14686,"timestamp":20998546,"id":2159,"parentId":2077,"tags":{"name":"/app/node_modules/@moduletrace/datasquirel/dist/package-shared/utils/serialize-query.js","layer":null},"startTime":1736835523822,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":15336,"timestamp":20998587,"id":2160,"parentId":2077,"tags":{"name":"/app/node_modules/@moduletrace/datasquirel/dist/package-shared/utils/serialize-cookies.js","layer":null},"startTime":1736835523822,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":15615,"timestamp":20998623,"id":2161,"parentId":2077,"tags":{"name":"/app/node_modules/@moduletrace/datasquirel/dist/package-shared/utils/ejson.js","layer":null},"startTime":1736835523822,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":15824,"timestamp":20998657,"id":2162,"parentId":2077,"tags":{"name":"/app/node_modules/@moduletrace/datasquirel/dist/package-shared/utils/numberfy.js","layer":null},"startTime":1736835523822,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":16078,"timestamp":20998691,"id":2163,"parentId":2077,"tags":{"name":"/app/node_modules/@moduletrace/datasquirel/dist/package-shared/utils/slugify.js","layer":null},"startTime":1736835523822,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":16728,"timestamp":20998338,"id":2151,"parentId":2092,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/globe.js","layer":null},"startTime":1736835523821,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":16788,"timestamp":20998470,"id":2156,"parentId":2094,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/square-pen.js","layer":null},"startTime":1736835523822,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":16941,"timestamp":20998521,"id":2158,"parentId":2094,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/grid-2x2.js","layer":null},"startTime":1736835523822,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":17194,"timestamp":20998494,"id":2157,"parentId":2094,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/file-x-2.js","layer":null},"startTime":1736835523822,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":17561,"timestamp":20998302,"id":2150,"parentId":2092,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/circle-gauge.js","layer":null},"startTime":1736835523821,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":17620,"timestamp":20998445,"id":2155,"parentId":2094,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/copy-plus.js","layer":null},"startTime":1736835523822,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":17829,"timestamp":20998418,"id":2154,"parentId":2093,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/newspaper.js","layer":null},"startTime":1736835523822,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":18007,"timestamp":20998393,"id":2153,"parentId":2093,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/layers.js","layer":null},"startTime":1736835523822,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":18208,"timestamp":20998367,"id":2152,"parentId":2092,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/shield-ellipsis.js","layer":null},"startTime":1736835523822,"traceId":"80a02e6b898c9dbf"},{"name":"build-module","duration":34,"timestamp":21020418,"id":2164,"parentId":1948,"tags":{},"startTime":1736835523844,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":1916405,"timestamp":19104934,"id":1495,"parentId":1436,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fsu%2Fdocs%2Findex.tsx&page=%2Fsu%2Fdocs!"},"startTime":1736835521928,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":1916480,"timestamp":19104944,"id":1497,"parentId":1436,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fsu%2Fdocs%2Fpages%2Findex.tsx&page=%2Fsu%2Fdocs%2Fpages!"},"startTime":1736835521928,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":2286,"timestamp":21020472,"id":2165,"parentId":2110,"tags":{"name":"__barrel_optimize__?names=CircleX,Copy,Edit!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736835523844,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":3156,"timestamp":21020564,"id":2166,"parentId":2107,"tags":{"name":"__barrel_optimize__?names=ChevronRight!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736835523844,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":7098,"timestamp":21020602,"id":2167,"parentId":2086,"tags":{"name":"/app/node_modules/react-tiny-popover/dist/Popover.js","layer":null},"startTime":1736835523844,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":11735,"timestamp":21020641,"id":2168,"parentId":2127,"tags":{"name":"/app/node_modules/engine.io-client/build/esm/socket.js","layer":null},"startTime":1736835523844,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":12676,"timestamp":21020670,"id":2169,"parentId":2127,"tags":{"name":"/app/node_modules/engine.io-client/build/esm/transport.js","layer":null},"startTime":1736835523844,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":13376,"timestamp":21020707,"id":2170,"parentId":2127,"tags":{"name":"/app/node_modules/engine.io-client/build/esm/util.js","layer":null},"startTime":1736835523844,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":13767,"timestamp":21020738,"id":2171,"parentId":2127,"tags":{"name":"/app/node_modules/engine.io-client/build/esm/globals.js","layer":null},"startTime":1736835523844,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":14851,"timestamp":21020765,"id":2172,"parentId":2128,"tags":{"name":"/app/node_modules/socket.io-parser/build/esm/binary.js","layer":null},"startTime":1736835523844,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":15391,"timestamp":21020800,"id":2173,"parentId":2128,"tags":{"name":"/app/node_modules/socket.io-parser/build/esm/is-binary.js","layer":null},"startTime":1736835523844,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":15539,"timestamp":21020823,"id":2174,"parentId":2127,"tags":{"name":"/app/node_modules/engine.io-client/build/esm/transports/index.js","layer":null},"startTime":1736835523844,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":16297,"timestamp":21020852,"id":2175,"parentId":2127,"tags":{"name":"/app/node_modules/engine.io-client/build/esm/transports/polling-fetch.js","layer":null},"startTime":1736835523844,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":18211,"timestamp":21020904,"id":2176,"parentId":2127,"tags":{"name":"/app/node_modules/engine.io-client/build/esm/transports/polling-xhr.js","layer":null},"startTime":1736835523844,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":19449,"timestamp":21020937,"id":2177,"parentId":2127,"tags":{"name":"/app/node_modules/engine.io-client/build/esm/transports/websocket.js","layer":null},"startTime":1736835523844,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":20305,"timestamp":21020974,"id":2178,"parentId":2127,"tags":{"name":"/app/node_modules/engine.io-client/build/esm/transports/webtransport.js","layer":null},"startTime":1736835523844,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":21048,"timestamp":21021008,"id":2179,"parentId":2127,"tags":{"name":"/app/node_modules/engine.io-client/build/esm/contrib/parseuri.js","layer":null},"startTime":1736835523844,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":2017,"timestamp":21045068,"id":2180,"parentId":2144,"tags":{"name":"__barrel_optimize__?names=Lock,LockKeyholeOpen!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736835523868,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":2924,"timestamp":21045133,"id":2181,"parentId":2147,"tags":{"name":"__barrel_optimize__?names=Folder,X!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736835523868,"traceId":"80a02e6b898c9dbf"}] -[{"name":"build-module-js","duration":4104,"timestamp":21045161,"id":2182,"parentId":2140,"tags":{"name":"__barrel_optimize__?names=CircleX,List,RotateCcw!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736835523868,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":31151,"timestamp":21045198,"id":2184,"parentId":2130,"tags":{"name":"/app/node_modules/gsap/CSSPlugin.js","layer":null},"startTime":1736835523868,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":71300,"timestamp":21045184,"id":2183,"parentId":2130,"tags":{"name":"/app/node_modules/gsap/gsap-core.js","layer":null},"startTime":1736835523868,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":72554,"timestamp":21045335,"id":2189,"parentId":2050,"tags":{"name":"/app/components/admin/databases/MoreOptionsModal.tsx","layer":null},"startTime":1736835523868,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":73578,"timestamp":21045311,"id":2188,"parentId":2036,"tags":{"name":"/app/components/admin/databases/ImportSchemaComponent.tsx","layer":null},"startTime":1736835523868,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":74888,"timestamp":21045207,"id":2185,"parentId":2029,"tags":{"name":"/app/components/admin/users/UserListCard.tsx","layer":null},"startTime":1736835523868,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":75727,"timestamp":21045276,"id":2187,"parentId":2036,"tags":{"name":"/app/components/admin/databases/ImportDbComponent.tsx","layer":null},"startTime":1736835523868,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":77400,"timestamp":21045238,"id":2186,"parentId":2036,"tags":{"name":"/app/components/admin/databases/TableListCard.tsx","layer":null},"startTime":1736835523868,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":18400,"timestamp":21136963,"id":2191,"parentId":2129,"tags":{"name":"/app/node_modules/gsap/utils/matrix.js","layer":null},"startTime":1736835523960,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":18696,"timestamp":21137072,"id":2194,"parentId":1991,"tags":{"name":"/app/node_modules/@tinymce/tinymce-react/lib/es2015/main/ts/index.js","layer":null},"startTime":1736835523960,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":19247,"timestamp":21137142,"id":2196,"parentId":2064,"tags":{"name":"/app/functions/frontend/addNewTemplateIndex.ts","layer":null},"startTime":1736835523960,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":19897,"timestamp":21136843,"id":2190,"parentId":2149,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/ellipsis.js","layer":null},"startTime":1736835523960,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":20144,"timestamp":21137119,"id":2195,"parentId":2055,"tags":{"name":"/app/components/general/ExpandBlock.tsx","layer":null},"startTime":1736835523960,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":20945,"timestamp":21137035,"id":2193,"parentId":2050,"tags":{"name":"/app/components/admin/databases/fields/text/JSONTextOption.tsx","layer":null},"startTime":1736835523960,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":21808,"timestamp":21136991,"id":2192,"parentId":2025,"tags":{"name":"/app/components/admin/databases/fields/text/ace-editor.ts","layer":null},"startTime":1736835523960,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":14025,"timestamp":21160720,"id":2198,"parentId":2134,"tags":{"name":"/app/node_modules/@moduletrace/datasquirel/dist/client/utils/parseClientCookies.js","layer":null},"startTime":1736835523984,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":15093,"timestamp":21160778,"id":2199,"parentId":2168,"tags":{"name":"/app/node_modules/engine.io-client/build/esm/contrib/parseqs.js","layer":null},"startTime":1736835523984,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":17141,"timestamp":21160815,"id":2200,"parentId":2175,"tags":{"name":"/app/node_modules/engine.io-client/build/esm/transports/polling.js","layer":null},"startTime":1736835523984,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":17521,"timestamp":21160857,"id":2201,"parentId":2176,"tags":{"name":"/app/node_modules/engine.io-client/build/esm/contrib/has-cors.js","layer":null},"startTime":1736835523984,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":20614,"timestamp":21160893,"id":2202,"parentId":2167,"tags":{"name":"/app/node_modules/react-tiny-popover/dist/util.js","layer":null},"startTime":1736835523984,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":21176,"timestamp":21160925,"id":2203,"parentId":2167,"tags":{"name":"/app/node_modules/react-tiny-popover/dist/PopoverPortal.js","layer":null},"startTime":1736835523984,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":23045,"timestamp":21160956,"id":2204,"parentId":2167,"tags":{"name":"/app/node_modules/react-tiny-popover/dist/usePopover.js","layer":null},"startTime":1736835523984,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":23480,"timestamp":21161008,"id":2205,"parentId":2167,"tags":{"name":"/app/node_modules/react-tiny-popover/dist/useMemoizedArray.js","layer":null},"startTime":1736835523984,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":23967,"timestamp":21161054,"id":2206,"parentId":2167,"tags":{"name":"/app/node_modules/react-tiny-popover/dist/useHandlePrevValues.js","layer":null},"startTime":1736835523984,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":25066,"timestamp":21161083,"id":2207,"parentId":2167,"tags":{"name":"/app/node_modules/react-tiny-popover/dist/useArrowContainer.js","layer":null},"startTime":1736835523984,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":25886,"timestamp":21161113,"id":2208,"parentId":2167,"tags":{"name":"/app/node_modules/react-tiny-popover/dist/ArrowContainer.js","layer":null},"startTime":1736835523984,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":26719,"timestamp":21160615,"id":2197,"parentId":2165,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/circle-x.js","layer":null},"startTime":1736835523984,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":26578,"timestamp":21161139,"id":2209,"parentId":2055,"tags":{"name":"/app/functions/frontend/addNewTempField.ts","layer":null},"startTime":1736835523984,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":26739,"timestamp":21161445,"id":2219,"parentId":2083,"tags":{"name":"/app/layouts/components/AdminUserDropdown.tsx","layer":null},"startTime":1736835523985,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":27036,"timestamp":21161471,"id":2220,"parentId":2079,"tags":{"name":"/app/functions/frontend/defaultFieldsRegexp.ts","layer":null},"startTime":1736835523985,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":28062,"timestamp":21161405,"id":2218,"parentId":2055,"tags":{"name":"/app/components/admin/databases/functions/generateTypeDefinition.ts","layer":null},"startTime":1736835523985,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":29235,"timestamp":21161283,"id":2214,"parentId":2064,"tags":{"name":"/app/components/admin/databases/SingleTableIndexCard.tsx","layer":null},"startTime":1736835523984,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":30497,"timestamp":21161175,"id":2210,"parentId":2052,"tags":{"name":"/app/components/admin/databases/NewTableForm.tsx","layer":null},"startTime":1736835523984,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":32793,"timestamp":21161351,"id":2216,"parentId":2055,"tags":{"name":"/app/components/admin/databases/NewFieldTemp.tsx","layer":null},"startTime":1736835523985,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":33477,"timestamp":21161527,"id":2222,"parentId":2080,"tags":{"name":"/app/components/admin/databases/UpdateEntryMoreOptions.tsx","layer":null},"startTime":1736835523985,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":35045,"timestamp":21161316,"id":2215,"parentId":2055,"tags":{"name":"/app/components/admin/databases/ClonedSingleTableFieldCard.tsx","layer":null},"startTime":1736835523984,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":36851,"timestamp":21161229,"id":2212,"parentId":2062,"tags":{"name":"/app/components/admin/databases/SearchEntriesSection.tsx","layer":null},"startTime":1736835523984,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":38000,"timestamp":21161377,"id":2217,"parentId":2055,"tags":{"name":"/app/components/admin/databases/SingleTableFieldCard.tsx","layer":null},"startTime":1736835523985,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":39176,"timestamp":21161497,"id":2221,"parentId":2079,"tags":{"name":"/app/components/admin/databases/TableEntryField.tsx","layer":null},"startTime":1736835523985,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":41810,"timestamp":21161202,"id":2211,"parentId":2052,"tags":{"name":"/app/components/admin/databases/CloneTableForm.tsx","layer":null},"startTime":1736835523984,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":44445,"timestamp":21161256,"id":2213,"parentId":2064,"tags":{"name":"/app/components/admin/databases/NewIndexFieldTemp.tsx","layer":null},"startTime":1736835523984,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":2447,"timestamp":21217494,"id":2223,"parentId":2188,"tags":{"name":"__barrel_optimize__?names=FileCog!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736835524041,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":3301,"timestamp":21217640,"id":2224,"parentId":2186,"tags":{"name":"__barrel_optimize__?names=ChevronRight,Sheet!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736835524041,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":16907,"timestamp":21217702,"id":2226,"parentId":2180,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/lock-keyhole-open.js","layer":null},"startTime":1736835524041,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":17140,"timestamp":21217733,"id":2227,"parentId":2181,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/folder.js","layer":null},"startTime":1736835524041,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":17289,"timestamp":21217786,"id":2229,"parentId":2182,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/rotate-ccw.js","layer":null},"startTime":1736835524041,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":17628,"timestamp":21217672,"id":2225,"parentId":2180,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/lock.js","layer":null},"startTime":1736835524041,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":17823,"timestamp":21217760,"id":2228,"parentId":2182,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/list.js","layer":null},"startTime":1736835524041,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":18497,"timestamp":21217859,"id":2232,"parentId":2085,"tags":{"name":"/app/components/admin/databases/functions/import-export-handler.ts","layer":null},"startTime":1736835524041,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":20066,"timestamp":21217810,"id":2230,"parentId":2079,"tags":{"name":"/app/functions/frontend/newEntryHandler.ts","layer":null},"startTime":1736835524041,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":22333,"timestamp":21217835,"id":2231,"parentId":2086,"tags":{"name":"/app/components/admin/databases/SyncDataButton.tsx","layer":null},"startTime":1736835524041,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":11370,"timestamp":21245020,"id":2237,"parentId":2146,"tags":{"name":"/app/components/su/components/UserDbShellQueryResult.tsx","layer":null},"startTime":1736835524068,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":12072,"timestamp":21245112,"id":2240,"parentId":2148,"tags":{"name":"/app/components/admin/media/card/MediaPrivacyButton.tsx","layer":null},"startTime":1736835524068,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":12698,"timestamp":21244990,"id":2236,"parentId":2145,"tags":{"name":"/app/components/su/components/UserSingleFile.tsx","layer":null},"startTime":1736835524068,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":13263,"timestamp":21244958,"id":2235,"parentId":2145,"tags":{"name":"/app/components/su/components/UserFolder.tsx","layer":null},"startTime":1736835524068,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":14231,"timestamp":21244819,"id":2233,"parentId":2142,"tags":{"name":"/app/functions/frontend/submitUpdateDatabaseForm.ts","layer":null},"startTime":1736835524068,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":14594,"timestamp":21245084,"id":2239,"parentId":2148,"tags":{"name":"/app/components/admin/media/card/MediaLinksDropdown.tsx","layer":null},"startTime":1736835524068,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":15585,"timestamp":21244919,"id":2234,"parentId":2142,"tags":{"name":"/app/functions/frontend/submitNewDatabaseForm.ts","layer":null},"startTime":1736835524068,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":16172,"timestamp":21245048,"id":2238,"parentId":2148,"tags":{"name":"/app/components/admin/media/card/MediaPreviewSection.tsx","layer":null},"startTime":1736835524068,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":17383,"timestamp":21245176,"id":2242,"parentId":2140,"tags":{"name":"/app/components/su/components/RichText/fns.ts","layer":null},"startTime":1736835524068,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":19935,"timestamp":21245139,"id":2241,"parentId":2140,"tags":{"name":"/app/components/su/components/RichText/ElementStyleModalContent.tsx","layer":null},"startTime":1736835524068,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":2558,"timestamp":21270513,"id":2243,"parentId":2221,"tags":{"name":"__barrel_optimize__?names=Lock!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736835524094,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":3562,"timestamp":21270619,"id":2244,"parentId":2219,"tags":{"name":"__barrel_optimize__?names=CircleGauge!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736835524094,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":18242,"timestamp":21270661,"id":2245,"parentId":2194,"tags":{"name":"/app/node_modules/@tinymce/tinymce-react/lib/es2015/main/ts/components/Editor.js","layer":null},"startTime":1736835524094,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":19439,"timestamp":21270711,"id":2246,"parentId":2048,"tags":{"name":"/app/node_modules/@socket.io/component-emitter/lib/esm/index.js","layer":null},"startTime":1736835524094,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":19773,"timestamp":21271002,"id":2252,"parentId":2189,"tags":{"name":"/app/components/admin/databases/fields/fields-inputs/UniqueFieldSelect.tsx","layer":null},"startTime":1736835524094,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":20401,"timestamp":21270836,"id":2248,"parentId":2189,"tags":{"name":"/app/components/admin/databases/fields/fields-inputs/EncryptionSelect.tsx","layer":null},"startTime":1736835524094,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":20772,"timestamp":21270920,"id":2250,"parentId":2189,"tags":{"name":"/app/components/admin/databases/fields/fields-inputs/AutoIncrement.tsx","layer":null},"startTime":1736835524094,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":21230,"timestamp":21270960,"id":2251,"parentId":2189,"tags":{"name":"/app/components/admin/databases/fields/fields-inputs/RegexPattern.tsx","layer":null},"startTime":1736835524094,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":21897,"timestamp":21271036,"id":2253,"parentId":2189,"tags":{"name":"/app/components/general/Modal.tsx","layer":null},"startTime":1736835524094,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":22810,"timestamp":21270784,"id":2247,"parentId":2189,"tags":{"name":"/app/components/admin/databases/fields/fields-inputs/CSSFiles.tsx","layer":null},"startTime":1736835524094,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":25274,"timestamp":21270880,"id":2249,"parentId":2189,"tags":{"name":"/app/components/admin/databases/fields/fields-inputs/ForeignKey.tsx","layer":null},"startTime":1736835524094,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":2194759,"timestamp":19104863,"id":1478,"parentId":1436,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fcontact.tsx&page=%2Fcontact!"},"startTime":1736835521928,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":2195050,"timestamp":19104674,"id":1443,"parentId":1436,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fabout.tsx&page=%2Fabout!"},"startTime":1736835521928,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":2195139,"timestamp":19104629,"id":1439,"parentId":1436,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2F404.tsx&page=%2F404!"},"startTime":1736835521928,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":2195147,"timestamp":19104639,"id":1440,"parentId":1436,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2F500.tsx&page=%2F500!"},"startTime":1736835521928,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":2194915,"timestamp":19104897,"id":1486,"parentId":1436,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fprivacy.tsx&page=%2Fprivacy!"},"startTime":1736835521928,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":2194944,"timestamp":19104888,"id":1483,"parentId":1436,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Findex.tsx&page=%2F!"},"startTime":1736835521928,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":2194982,"timestamp":19104870,"id":1479,"parentId":1436,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fcreate-account.tsx&page=%2Fcreate-account!"},"startTime":1736835521928,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":2194970,"timestamp":19104919,"id":1491,"parentId":1436,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fsend-password-reset-link.tsx&page=%2Fsend-password-reset-link!"},"startTime":1736835521928,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":2194896,"timestamp":19105012,"id":1508,"parentId":1436,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Funsubscribe.tsx&page=%2Funsubscribe!"},"startTime":1736835521928,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":2194918,"timestamp":19105009,"id":1507,"parentId":1436,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fterms.tsx&page=%2Fterms!"},"startTime":1736835521928,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":2195094,"timestamp":19104881,"id":1481,"parentId":1436,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fdocs%2Findex.tsx&page=%2Fdocs!"},"startTime":1736835521928,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":2195136,"timestamp":19104853,"id":1477,"parentId":1436,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fblog%2Findex.tsx&page=%2Fblog!"},"startTime":1736835521928,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":2195089,"timestamp":19104913,"id":1490,"parentId":1436,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Freset-password.tsx&page=%2Freset-password!"},"startTime":1736835521928,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":2195125,"timestamp":19104891,"id":1484,"parentId":1436,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Femail-verification%2Findex.tsx&page=%2Femail-verification!"},"startTime":1736835521928,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":2195149,"timestamp":19104884,"id":1482,"parentId":1436,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fdocs%2F%5Bpage%5D%2Findex.tsx&page=%2Fdocs%2F%5Bpage%5D!"},"startTime":1736835521928,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":2195170,"timestamp":19104876,"id":1480,"parentId":1436,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fdocs%2F%5Bpage%5D%2F%5Bsub-page%5D%2Findex.tsx&page=%2Fdocs%2F%5Bpage%5D%2F%5Bsub-page%5D!"},"startTime":1736835521928,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":2195212,"timestamp":19104848,"id":1476,"parentId":1436,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2Findex.tsx&page=%2Fadmin!"},"startTime":1736835521928,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":2195301,"timestamp":19104771,"id":1464,"parentId":1436,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2Findex.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases!"},"startTime":1736835521928,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":2195399,"timestamp":19104686,"id":1446,"parentId":1436,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fconnect%2Findex.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fconnect!"},"startTime":1736835521928,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":2195344,"timestamp":19104754,"id":1462,"parentId":1436,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2Fadd-database.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2Fadd-database!"},"startTime":1736835521928,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":2195304,"timestamp":19104818,"id":1470,"parentId":1436,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fsettings.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fsettings!"},"startTime":1736835521928,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":2195353,"timestamp":19104785,"id":1465,"parentId":1436,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Findex.tsx&page=%2Fadmin%2F%5Buser_id%5D!"},"startTime":1736835521928,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":2195364,"timestamp":19104797,"id":1468,"parentId":1436,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fschema.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fschema!"},"startTime":1736835521928,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":2195502,"timestamp":19104679,"id":1444,"parentId":1436,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fapi-keys%2Findex.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fapi-keys!"},"startTime":1736835521928,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":2195370,"timestamp":19104822,"id":1471,"parentId":1436,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fusers%2Fadd-user.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fusers%2Fadd-user!"},"startTime":1736835521928,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":2195363,"timestamp":19104843,"id":1475,"parentId":1436,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fusers%2Findex.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fusers!"},"startTime":1736835521928,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":2195380,"timestamp":19104837,"id":1474,"parentId":1436,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fusers%2Fdatabases%2Findex.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fusers%2Fdatabases!"},"startTime":1736835521928,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":2195526,"timestamp":19104706,"id":1451,"parentId":1436,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fshell.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fshell!"},"startTime":1736835521928,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":2195554,"timestamp":19104695,"id":1448,"parentId":1436,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fschema.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fschema!"},"startTime":1736835521928,"traceId":"80a02e6b898c9dbf"}] -[{"name":"add-entry","duration":2195816,"timestamp":19104699,"id":1449,"parentId":1436,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Findex.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D!"},"startTime":1736835521928,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":2195781,"timestamp":19104750,"id":1461,"parentId":1436,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers%2Fadd-social-logins.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers%2Fadd-social-logins!"},"startTime":1736835521928,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":2195862,"timestamp":19104683,"id":1445,"parentId":1436,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fedit-database.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fedit-database!"},"startTime":1736835521928,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":2195864,"timestamp":19104692,"id":1447,"parentId":1436,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fconnect.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fconnect!"},"startTime":1736835521928,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":2195778,"timestamp":19104790,"id":1466,"parentId":1436,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers%2Fadd-user.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers%2Fadd-user!"},"startTime":1736835521928,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":2195822,"timestamp":19104758,"id":1463,"parentId":1436,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers%2Findex.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers!"},"startTime":1736835521928,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":2195860,"timestamp":19104732,"id":1456,"parentId":1436,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers%2F%5Buser%5D%2Fchange-password.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers%2F%5Buser%5D%2Fchange-password!"},"startTime":1736835521928,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":2195782,"timestamp":19104827,"id":1472,"parentId":1436,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fusers%2Fdatabases%2F%5Bdatabase%5D%2F%5Buser%5D.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fusers%2Fdatabases%2F%5Bdatabase%5D%2F%5Buser%5D!"},"startTime":1736835521928,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":2195797,"timestamp":19104831,"id":1473,"parentId":1436,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fusers%2Fdatabases%2F%5Bdatabase%5D%2Findex.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fusers%2Fdatabases%2F%5Bdatabase%5D!"},"startTime":1736835521928,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":2195894,"timestamp":19104747,"id":1460,"parentId":1436,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers%2F%5Buser%5D%2Findex.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers%2F%5Buser%5D!"},"startTime":1736835521928,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":11777,"timestamp":21299445,"id":2255,"parentId":2204,"tags":{"name":"/app/node_modules/react-tiny-popover/dist/useElementRef.js","layer":null},"startTime":1736835524123,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":12385,"timestamp":21299338,"id":2254,"parentId":2223,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/file-cog.js","layer":null},"startTime":1736835524122,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":2210717,"timestamp":19104743,"id":1459,"parentId":1436,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2Findex.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables!"},"startTime":1736835521928,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":3020,"timestamp":21313826,"id":2256,"parentId":2236,"tags":{"name":"__barrel_optimize__?names=HardDrive!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736835524137,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":3807,"timestamp":21313908,"id":2257,"parentId":2235,"tags":{"name":"__barrel_optimize__?names=Copy,RotateCcw!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736835524137,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":4623,"timestamp":21313941,"id":2258,"parentId":2241,"tags":{"name":"__barrel_optimize__?names=CircleX!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736835524137,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":5426,"timestamp":21313969,"id":2259,"parentId":2240,"tags":{"name":"__barrel_optimize__?names=Lock,LockOpen!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736835524137,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":14463,"timestamp":21314059,"id":2263,"parentId":2213,"tags":{"name":"/app/functions/frontend/addNewIndex.ts","layer":null},"startTime":1736835524137,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":14807,"timestamp":21314028,"id":2261,"parentId":2216,"tags":{"name":"/app/functions/frontend/addNewField.ts","layer":null},"startTime":1736835524137,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":15649,"timestamp":21314043,"id":2262,"parentId":2217,"tags":{"name":"/app/functions/frontend/reorderField.ts","layer":null},"startTime":1736835524137,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":16068,"timestamp":21314211,"id":2269,"parentId":2231,"tags":{"name":"/app/functions/frontend/syncTableDataFormHandler.ts","layer":null},"startTime":1736835524137,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":16806,"timestamp":21314182,"id":2268,"parentId":2221,"tags":{"name":"/app/components/admin/databases/fields/text/JSONEditor.tsx","layer":null},"startTime":1736835524137,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":17887,"timestamp":21314096,"id":2265,"parentId":2210,"tags":{"name":"/app/components/admin/databases/NewTableNameSlugAndDescSection.tsx","layer":null},"startTime":1736835524137,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":18580,"timestamp":21314157,"id":2267,"parentId":2221,"tags":{"name":"/app/components/admin/databases/TableRichTextEntryField.tsx","layer":null},"startTime":1736835524137,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":20086,"timestamp":21313997,"id":2260,"parentId":2221,"tags":{"name":"/app/functions/frontend/generateFormElementsForEntry.tsx","layer":null},"startTime":1736835524137,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":21210,"timestamp":21314130,"id":2266,"parentId":2216,"tags":{"name":"/app/components/admin/databases/NewFieldFormContent.tsx","layer":null},"startTime":1736835524137,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":22835,"timestamp":21314071,"id":2264,"parentId":2214,"tags":{"name":"/app/components/admin/databases/ExistingIndexEdit.tsx","layer":null},"startTime":1736835524137,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":2236822,"timestamp":19104736,"id":1457,"parentId":1436,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2Fadd-table.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2Fadd-table!"},"startTime":1736835521928,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":2236671,"timestamp":19104986,"id":1504,"parentId":1436,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fsu%2Fusers%2F%5Bsingle%5D.tsx&page=%2Fsu%2Fusers%2F%5Bsingle%5D!"},"startTime":1736835521928,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":2236951,"timestamp":19104729,"id":1455,"parentId":1436,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Ffields.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Ffields!"},"startTime":1736835521928,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":2236993,"timestamp":19104703,"id":1450,"parentId":1436,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Fedit-table.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Fedit-table!"},"startTime":1736835521928,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":10743,"timestamp":21341256,"id":2270,"parentId":2168,"tags":{"name":"/app/node_modules/engine.io-parser/build/esm/index.js","layer":null},"startTime":1736835524164,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":12287,"timestamp":21341344,"id":2271,"parentId":2245,"tags":{"name":"/app/node_modules/@tinymce/tinymce-react/lib/es2015/main/ts/ScriptLoader2.js","layer":null},"startTime":1736835524164,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":12480,"timestamp":21341394,"id":2272,"parentId":2245,"tags":{"name":"/app/node_modules/@tinymce/tinymce-react/lib/es2015/main/ts/TinyMCE.js","layer":null},"startTime":1736835524165,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":13554,"timestamp":21341429,"id":2273,"parentId":2245,"tags":{"name":"/app/node_modules/@tinymce/tinymce-react/lib/es2015/main/ts/Utils.js","layer":null},"startTime":1736835524165,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":14643,"timestamp":21341467,"id":2274,"parentId":2245,"tags":{"name":"/app/node_modules/@tinymce/tinymce-react/lib/es2015/main/ts/components/EditorPropTypes.js","layer":null},"startTime":1736835524165,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":8002,"timestamp":21360011,"id":2279,"parentId":2270,"tags":{"name":"/app/node_modules/engine.io-parser/build/esm/encodePacket.browser.js","layer":null},"startTime":1736835524183,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":8642,"timestamp":21360055,"id":2280,"parentId":2270,"tags":{"name":"/app/node_modules/engine.io-parser/build/esm/decodePacket.browser.js","layer":null},"startTime":1736835524183,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":8923,"timestamp":21360091,"id":2281,"parentId":2270,"tags":{"name":"/app/node_modules/engine.io-parser/build/esm/commons.js","layer":null},"startTime":1736835524183,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":10094,"timestamp":21359167,"id":2275,"parentId":2259,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/lock-open.js","layer":null},"startTime":1736835524182,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":9772,"timestamp":21359985,"id":2278,"parentId":2267,"tags":{"name":"/app/functions/frontend/tinyMCEEditorSetup.ts","layer":null},"startTime":1736835524183,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":10479,"timestamp":21359887,"id":2276,"parentId":2264,"tags":{"name":"/app/components/admin/databases/indexes/indexSelectChange.ts","layer":null},"startTime":1736835524183,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":10882,"timestamp":21359954,"id":2277,"parentId":2268,"tags":{"name":"/app/components/admin/databases/fields/text/JSONEditorHeader.tsx","layer":null},"startTime":1736835524183,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":2267411,"timestamp":19104794,"id":1467,"parentId":1436,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fmedia%2F%5B...folder%5D.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fmedia%2F%5B...folder%5D!"},"startTime":1736835521928,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":2267490,"timestamp":19104801,"id":1469,"parentId":1436,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fmedia%2Findex.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fmedia!"},"startTime":1736835521928,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":1458,"timestamp":21375096,"id":2282,"parentId":2277,"tags":{"name":"__barrel_optimize__?names=CircleMinus,CirclePlus,Lock!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736835524198,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":2502,"timestamp":21383993,"id":2286,"parentId":2280,"tags":{"name":"/app/node_modules/engine.io-parser/build/esm/contrib/base64-arraybuffer.js","layer":null},"startTime":1736835524207,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-ts","duration":2886,"timestamp":21383975,"id":2285,"parentId":2278,"tags":{"name":"/app/functions/frontend/handleCopyHTML.ts","layer":null},"startTime":1736835524207,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":3373,"timestamp":21383937,"id":2284,"parentId":2278,"tags":{"name":"/app/functions/frontend/handleEmbed.tsx","layer":null},"startTime":1736835524207,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":3886,"timestamp":21383821,"id":2283,"parentId":2278,"tags":{"name":"/app/functions/frontend/handleEditHTML.tsx","layer":null},"startTime":1736835524207,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":2283375,"timestamp":19104923,"id":1492,"parentId":1436,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fsu%2Fconsole.tsx&page=%2Fsu%2Fconsole!"},"startTime":1736835521928,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":1246,"timestamp":21390205,"id":2287,"parentId":2282,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/circle-minus.js","layer":null},"startTime":1736835524213,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":1370,"timestamp":21390276,"id":2288,"parentId":2282,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/circle-plus.js","layer":null},"startTime":1736835524213,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":475,"timestamp":21391885,"id":2289,"parentId":2274,"tags":{"name":"/app/node_modules/prop-types/index.js","layer":null},"startTime":1736835524215,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":6685,"timestamp":21392443,"id":2290,"parentId":2284,"tags":{"name":"/app/components/general/EmbedPopupContent.tsx","layer":null},"startTime":1736835524216,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-tsx","duration":7442,"timestamp":21392495,"id":2291,"parentId":2283,"tags":{"name":"/app/components/general/EditHTMLPopupContent.tsx","layer":null},"startTime":1736835524216,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":614,"timestamp":21402291,"id":2292,"parentId":2289,"tags":{"name":"/app/node_modules/prop-types/factoryWithThrowingShims.js","layer":null},"startTime":1736835524225,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":449,"timestamp":21402978,"id":2293,"parentId":2291,"tags":{"name":"/app/node_modules/html-prettify/src/index.js","layer":null},"startTime":1736835524226,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":199,"timestamp":21404454,"id":2294,"parentId":2292,"tags":{"name":"/app/node_modules/prop-types/lib/ReactPropTypesSecret.js","layer":null},"startTime":1736835524228,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":2299853,"timestamp":19104929,"id":1494,"parentId":1436,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fsu%2Fdocs%2Fedit-page.tsx&page=%2Fsu%2Fdocs%2Fedit-page!"},"startTime":1736835521928,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":2299963,"timestamp":19104926,"id":1493,"parentId":1436,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fsu%2Fdocs%2Fcreate-page.tsx&page=%2Fsu%2Fdocs%2Fcreate-page!"},"startTime":1736835521928,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":804,"timestamp":21404685,"id":2295,"parentId":2293,"tags":{"name":"/app/node_modules/html-prettify/src/utils/addIndentation.js","layer":null},"startTime":1736835524228,"traceId":"80a02e6b898c9dbf"},{"name":"build-module-js","duration":1316,"timestamp":21404727,"id":2296,"parentId":2293,"tags":{"name":"/app/node_modules/html-prettify/src/utils/toLines.js","layer":null},"startTime":1736835524228,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":2301400,"timestamp":19104713,"id":1452,"parentId":1436,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Fentries%2Fadd-entry.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Fentries%2Fadd-entry!"},"startTime":1736835521928,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":2301438,"timestamp":19104725,"id":1454,"parentId":1436,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Fentries%2F%5Bsingle_entry%5D.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Fentries%2F%5Bsingle_entry%5D!"},"startTime":1736835521928,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":2301457,"timestamp":19104740,"id":1458,"parentId":1436,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Findex.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D!"},"startTime":1736835521928,"traceId":"80a02e6b898c9dbf"},{"name":"add-entry","duration":2301497,"timestamp":19104719,"id":1453,"parentId":1436,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Fentries%2Findex.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Fentries!"},"startTime":1736835521928,"traceId":"80a02e6b898c9dbf"},{"name":"make","duration":2302153,"timestamp":19104171,"id":1436,"parentId":1435,"tags":{},"startTime":1736835521927,"traceId":"80a02e6b898c9dbf"},{"name":"chunk-graph","duration":15864,"timestamp":21450929,"id":2298,"parentId":2297,"tags":{},"startTime":1736835524274,"traceId":"80a02e6b898c9dbf"},{"name":"optimize-modules","duration":10,"timestamp":21466882,"id":2300,"parentId":2297,"tags":{},"startTime":1736835524290,"traceId":"80a02e6b898c9dbf"},{"name":"optimize-chunks","duration":17604,"timestamp":21467058,"id":2301,"parentId":2297,"tags":{},"startTime":1736835524290,"traceId":"80a02e6b898c9dbf"},{"name":"optimize-tree","duration":11,"timestamp":21484719,"id":2302,"parentId":2297,"tags":{},"startTime":1736835524308,"traceId":"80a02e6b898c9dbf"},{"name":"optimize-chunk-modules","duration":28239,"timestamp":21484770,"id":2303,"parentId":2297,"tags":{},"startTime":1736835524308,"traceId":"80a02e6b898c9dbf"},{"name":"optimize","duration":46254,"timestamp":21466847,"id":2299,"parentId":2297,"tags":{},"startTime":1736835524290,"traceId":"80a02e6b898c9dbf"},{"name":"module-hash","duration":23583,"timestamp":21522287,"id":2304,"parentId":2297,"tags":{},"startTime":1736835524345,"traceId":"80a02e6b898c9dbf"},{"name":"code-generation","duration":220258,"timestamp":21545911,"id":2305,"parentId":2297,"tags":{},"startTime":1736835524369,"traceId":"80a02e6b898c9dbf"},{"name":"hash","duration":7614,"timestamp":21769724,"id":2306,"parentId":2297,"tags":{},"startTime":1736835524593,"traceId":"80a02e6b898c9dbf"},{"name":"code-generation-jobs","duration":219,"timestamp":21777336,"id":2307,"parentId":2297,"tags":{},"startTime":1736835524600,"traceId":"80a02e6b898c9dbf"},{"name":"module-assets","duration":390,"timestamp":21777513,"id":2308,"parentId":2297,"tags":{},"startTime":1736835524601,"traceId":"80a02e6b898c9dbf"},{"name":"create-chunk-assets","duration":12275,"timestamp":21777911,"id":2309,"parentId":2297,"tags":{},"startTime":1736835524601,"traceId":"80a02e6b898c9dbf"},{"name":"NextJsBuildManifest-generateClientManifest","duration":4980,"timestamp":21808441,"id":2311,"parentId":1435,"tags":{},"startTime":1736835524632,"traceId":"80a02e6b898c9dbf"},{"name":"NextJsBuildManifest-createassets","duration":7840,"timestamp":21805624,"id":2310,"parentId":1435,"tags":{},"startTime":1736835524629,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":108711,"timestamp":21870150,"id":2314,"parentId":2312,"tags":{"name":"static/chunks/pages/_error-158556db7d796075.js","cache":"MISS"},"startTime":1736835524693,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":108754,"timestamp":21870195,"id":2315,"parentId":2312,"tags":{"name":"static/chunks/pages/404-33491b2b2da7f694.js","cache":"MISS"},"startTime":1736835524693,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":108671,"timestamp":21870323,"id":2316,"parentId":2312,"tags":{"name":"static/chunks/pages/500-dd65f34beee2af29.js","cache":"MISS"},"startTime":1736835524693,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":105412,"timestamp":21873630,"id":2318,"parentId":2312,"tags":{"name":"static/chunks/pages/about-175c96e0e3bce811.js","cache":"MISS"},"startTime":1736835524697,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":104854,"timestamp":21874237,"id":2320,"parentId":2312,"tags":{"name":"static/chunks/pages/admin/[user_id]/databases/[single]/edit-database-a16460745888b67d.js","cache":"MISS"},"startTime":1736835524697,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":102374,"timestamp":21876759,"id":2328,"parentId":2312,"tags":{"name":"static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries-935bba1919a775f4.js","cache":"MISS"},"startTime":1736835524700,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":102650,"timestamp":21876562,"id":2327,"parentId":2312,"tags":{"name":"static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/add-entry-3cb64992d90a2310.js","cache":"MISS"},"startTime":1736835524700,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":102906,"timestamp":21876356,"id":2326,"parentId":2312,"tags":{"name":"static/chunks/pages/admin/[user_id]/databases/[single]/shell-7cd77f974c81c458.js","cache":"MISS"},"startTime":1736835524700,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":102226,"timestamp":21877125,"id":2330,"parentId":2312,"tags":{"name":"static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]/fields-90b1d044a8d8a307.js","cache":"MISS"},"startTime":1736835524700,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":102519,"timestamp":21876892,"id":2329,"parentId":2312,"tags":{"name":"static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/[single_entry]-05536984edfd241f.js","cache":"MISS"},"startTime":1736835524700,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":102148,"timestamp":21877310,"id":2331,"parentId":2312,"tags":{"name":"static/chunks/pages/admin/[user_id]/databases/[single]/users/[user]/change-password-98fd96c78886d603.js","cache":"MISS"},"startTime":1736835524700,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":104485,"timestamp":21875023,"id":2322,"parentId":2312,"tags":{"name":"static/chunks/pages/admin/[user_id]/databases/[single]/connect-cbc803a2d049d987.js","cache":"MISS"},"startTime":1736835524698,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":103486,"timestamp":21876071,"id":2325,"parentId":2312,"tags":{"name":"static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]/edit-table-49af600f89c4a62b.js","cache":"MISS"},"startTime":1736835524699,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":105899,"timestamp":21873743,"id":2319,"parentId":2312,"tags":{"name":"static/chunks/pages/admin/[user_id]/api-keys-ebc6dbdf36455187.js","cache":"MISS"},"startTime":1736835524697,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":95278,"timestamp":21884402,"id":2368,"parentId":2312,"tags":{"name":"static/chunks/pages/su/docs/create-page-ec7a474c711f4aab.js","cache":"MISS"},"startTime":1736835524708,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":100356,"timestamp":21879373,"id":2338,"parentId":2312,"tags":{"name":"static/chunks/pages/admin/[user_id]/databases/[single]/users-482a585340c1b89e.js","cache":"MISS"},"startTime":1736835524703,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":104055,"timestamp":21875722,"id":2324,"parentId":2312,"tags":{"name":"static/chunks/pages/admin/[user_id]/databases/[single]-eedb2969902a3df3.js","cache":"MISS"},"startTime":1736835524699,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":95209,"timestamp":21884609,"id":2372,"parentId":2312,"tags":{"name":"static/chunks/pages/su/docs/pages-9d23a704d1108cf4.js","cache":"MISS"},"startTime":1736835524708,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":104557,"timestamp":21875320,"id":2323,"parentId":2312,"tags":{"name":"static/chunks/pages/admin/[user_id]/databases/[single]/schema-abdcfec0b726d5c3.js","cache":"MISS"},"startTime":1736835524698,"traceId":"80a02e6b898c9dbf"}] -[{"name":"minify-js","duration":100696,"timestamp":21879744,"id":2340,"parentId":2312,"tags":{"name":"static/chunks/pages/admin/[user_id]-cb69b2f56865df4e.js","cache":"MISS"},"startTime":1736835524703,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":100902,"timestamp":21879624,"id":2339,"parentId":2312,"tags":{"name":"static/chunks/pages/admin/[user_id]/databases-bf3bc5b18c2bc2ae.js","cache":"MISS"},"startTime":1736835524703,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":96037,"timestamp":21884540,"id":2371,"parentId":2312,"tags":{"name":"static/chunks/pages/su/docs/pages/[id]-88e8fa764087cd8e.js","cache":"MISS"},"startTime":1736835524708,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":96119,"timestamp":21884492,"id":2370,"parentId":2312,"tags":{"name":"static/chunks/pages/su/docs-a820e92d9f236f03.js","cache":"MISS"},"startTime":1736835524708,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":95576,"timestamp":21885076,"id":2376,"parentId":2312,"tags":{"name":"static/chunks/pages/su/load-balancing-f1cbf73ca85f92eb.js","cache":"MISS"},"startTime":1736835524708,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":97413,"timestamp":21883276,"id":2360,"parentId":2312,"tags":{"name":"static/chunks/pages/login-1fe25640c5375fc7.js","cache":"MISS"},"startTime":1736835524706,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":96279,"timestamp":21884443,"id":2369,"parentId":2312,"tags":{"name":"static/chunks/pages/su/docs/edit-page-0d9f864ae1c2491a.js","cache":"MISS"},"startTime":1736835524708,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":95951,"timestamp":21884807,"id":2374,"parentId":2312,"tags":{"name":"static/chunks/pages/su/error-logs-060485b02b78417f.js","cache":"MISS"},"startTime":1736835524708,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":106402,"timestamp":21874460,"id":2321,"parentId":2312,"tags":{"name":"static/chunks/pages/admin/[user_id]/connect-9fc2456ec5b13e38.js","cache":"MISS"},"startTime":1736835524698,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":96759,"timestamp":21884143,"id":2366,"parentId":2312,"tags":{"name":"static/chunks/pages/send-password-reset-link-5bcef21408c821e5.js","cache":"MISS"},"startTime":1736835524707,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":101022,"timestamp":21879936,"id":2341,"parentId":2312,"tags":{"name":"static/chunks/pages/admin/[user_id]/databases/[single]/users/add-user-d54a775573725490.js","cache":"MISS"},"startTime":1736835524703,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":97161,"timestamp":21883831,"id":2364,"parentId":2312,"tags":{"name":"static/chunks/pages/su/backups-7b0ae936f386d60d.js","cache":"MISS"},"startTime":1736835524707,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":95805,"timestamp":21885221,"id":2377,"parentId":2312,"tags":{"name":"static/chunks/pages/su/login-5340c2e7a0c5d584.js","cache":"MISS"},"startTime":1736835524708,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":97005,"timestamp":21884054,"id":2365,"parentId":2312,"tags":{"name":"static/chunks/pages/reset-password-073f6638bd8c602f.js","cache":"MISS"},"startTime":1736835524707,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":96442,"timestamp":21884654,"id":2373,"parentId":2312,"tags":{"name":"static/chunks/pages/su/envar-a744d9ce2e005fcf.js","cache":"MISS"},"startTime":1736835524708,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":103728,"timestamp":21877455,"id":2332,"parentId":2312,"tags":{"name":"static/chunks/pages/admin/[user_id]/databases/[single]/tables/add-table-9ed3b2c1935e7f49.js","cache":"MISS"},"startTime":1736835524701,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":99198,"timestamp":21882028,"id":2351,"parentId":2312,"tags":{"name":"static/chunks/pages/admin-111c2e98619e424d.js","cache":"MISS"},"startTime":1736835524705,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":97506,"timestamp":21883755,"id":2363,"parentId":2312,"tags":{"name":"static/chunks/pages/logout-e5762a243749ad0e.js","cache":"MISS"},"startTime":1736835524707,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":95998,"timestamp":21885294,"id":2378,"parentId":2312,"tags":{"name":"static/chunks/pages/su/servers-9cac9ee9f7118043.js","cache":"MISS"},"startTime":1736835524708,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":99755,"timestamp":21881573,"id":2349,"parentId":2312,"tags":{"name":"static/chunks/pages/admin/[user_id]/users/databases-00c6c7eed959b915.js","cache":"MISS"},"startTime":1736835524705,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":97089,"timestamp":21884271,"id":2367,"parentId":2312,"tags":{"name":"static/chunks/pages/su/console-04bd8655e1f27673.js","cache":"MISS"},"startTime":1736835524707,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":97705,"timestamp":21883694,"id":2362,"parentId":2312,"tags":{"name":"static/chunks/pages/redirect-a083a626f8b277a1.js","cache":"MISS"},"startTime":1736835524707,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":102244,"timestamp":21879204,"id":2337,"parentId":2312,"tags":{"name":"static/chunks/pages/admin/[user_id]/databases/add-database-270e1ab6cc854e71.js","cache":"MISS"},"startTime":1736835524702,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":98833,"timestamp":21882659,"id":2356,"parentId":2312,"tags":{"name":"static/chunks/pages/docs-e3af333a5ec4b7f9.js","cache":"MISS"},"startTime":1736835524706,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":98981,"timestamp":21882545,"id":2355,"parentId":2312,"tags":{"name":"static/chunks/pages/docs/[page]/[sub-page]-e1ce842c0179338f.js","cache":"MISS"},"startTime":1736835524706,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":98363,"timestamp":21883200,"id":2359,"parentId":2312,"tags":{"name":"static/chunks/pages/email-verification-8f76f6e6fcc42bae.js","cache":"MISS"},"startTime":1736835524706,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":95617,"timestamp":21885995,"id":2381,"parentId":2312,"tags":{"name":"static/chunks/pages/su/users/new-34f1b011a190cd7c.js","cache":"MISS"},"startTime":1736835524709,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":95770,"timestamp":21885890,"id":2380,"parentId":2312,"tags":{"name":"static/chunks/pages/su/users-1bbc526bb9d2f8ce.js","cache":"MISS"},"startTime":1736835524709,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":100925,"timestamp":21880784,"id":2345,"parentId":2312,"tags":{"name":"static/chunks/pages/admin/[user_id]/settings-b6101336b603a20f.js","cache":"MISS"},"startTime":1736835524704,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":96835,"timestamp":21884918,"id":2375,"parentId":2312,"tags":{"name":"static/chunks/pages/su-c5ab2df75c7c5c88.js","cache":"MISS"},"startTime":1736835524708,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":95783,"timestamp":21886083,"id":2382,"parentId":2312,"tags":{"name":"static/chunks/pages/terms-84e76b283c94aa00.js","cache":"MISS"},"startTime":1736835524709,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":98489,"timestamp":21883468,"id":2361,"parentId":2312,"tags":{"name":"static/chunks/pages/privacy-159b0695374d3f66.js","cache":"MISS"},"startTime":1736835524707,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":101570,"timestamp":21880439,"id":2343,"parentId":2312,"tags":{"name":"static/chunks/pages/admin/[user_id]/schema-4a210d717b715d1c.js","cache":"MISS"},"startTime":1736835524704,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":99649,"timestamp":21882413,"id":2354,"parentId":2312,"tags":{"name":"static/chunks/pages/create-account-442192a6aa2a5db4.js","cache":"MISS"},"startTime":1736835524706,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":100410,"timestamp":21881732,"id":2350,"parentId":2312,"tags":{"name":"static/chunks/pages/admin/[user_id]/users-3527e3fb682652c8.js","cache":"MISS"},"startTime":1736835524705,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":103440,"timestamp":21878752,"id":2335,"parentId":2312,"tags":{"name":"static/chunks/pages/admin/[user_id]/databases/[single]/users/[user]-7fc284bf9e00bf83.js","cache":"MISS"},"startTime":1736835524702,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":95846,"timestamp":21886393,"id":2384,"parentId":2312,"tags":{"name":"static/chunks/webpack-810c18afc07353bc.js","cache":"MISS"},"startTime":1736835524710,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":102020,"timestamp":21880260,"id":2342,"parentId":2312,"tags":{"name":"static/chunks/pages/admin/[user_id]/media/[...folder]-da544c542cbb5cd2.js","cache":"MISS"},"startTime":1736835524703,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":101687,"timestamp":21880636,"id":2344,"parentId":2312,"tags":{"name":"static/chunks/pages/admin/[user_id]/media-fb4e8c9a85501a29.js","cache":"MISS"},"startTime":1736835524704,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":101380,"timestamp":21880998,"id":2346,"parentId":2312,"tags":{"name":"static/chunks/pages/admin/[user_id]/users/add-user-70dd307f3209487c.js","cache":"MISS"},"startTime":1736835524704,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":103928,"timestamp":21878518,"id":2334,"parentId":2312,"tags":{"name":"static/chunks/pages/admin/[user_id]/databases/[single]/tables-d15e728d6825db77.js","cache":"MISS"},"startTime":1736835524702,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":96189,"timestamp":21886311,"id":2383,"parentId":2312,"tags":{"name":"static/chunks/pages/unsubscribe-68ad8fe99d1086ba.js","cache":"MISS"},"startTime":1736835524709,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":101115,"timestamp":21881432,"id":2348,"parentId":2312,"tags":{"name":"static/chunks/pages/admin/[user_id]/users/databases/[database]-1420681ea698d5b2.js","cache":"MISS"},"startTime":1736835524705,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":99690,"timestamp":21882899,"id":2358,"parentId":2312,"tags":{"name":"static/chunks/pages/index-86ad3ee311b3631e.js","cache":"MISS"},"startTime":1736835524706,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":97250,"timestamp":21885400,"id":2379,"parentId":2312,"tags":{"name":"static/chunks/pages/su/users/[single]-cf2aad9c11ffb529.js","cache":"MISS"},"startTime":1736835524709,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":100479,"timestamp":21882212,"id":2353,"parentId":2312,"tags":{"name":"static/chunks/pages/contact-6b6262f89413ba71.js","cache":"MISS"},"startTime":1736835524705,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":103772,"timestamp":21878974,"id":2336,"parentId":2312,"tags":{"name":"static/chunks/pages/admin/[user_id]/databases/[single]/users/add-social-logins-e8bee178122af0b3.js","cache":"MISS"},"startTime":1736835524702,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":99972,"timestamp":21882814,"id":2357,"parentId":2312,"tags":{"name":"static/chunks/pages/docs/[page]-b8db6e3ae1419f4e.js","cache":"MISS"},"startTime":1736835524706,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":100727,"timestamp":21882110,"id":2352,"parentId":2312,"tags":{"name":"static/chunks/pages/blog-16433f6c50111391.js","cache":"MISS"},"startTime":1736835524705,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":92271,"timestamp":21890645,"id":2395,"parentId":2312,"tags":{"name":"static/chunks/7391-ece848dab78126c0.js","cache":"MISS"},"startTime":1736835524714,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":101726,"timestamp":21881248,"id":2347,"parentId":2312,"tags":{"name":"static/chunks/pages/admin/[user_id]/users/databases/[database]/[user]-37f22546b940d5ff.js","cache":"MISS"},"startTime":1736835524704,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":91721,"timestamp":21891302,"id":2398,"parentId":2312,"tags":{"name":"static/chunks/9268-e50b8b33479f88cf.js","cache":"MISS"},"startTime":1736835524714,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":88942,"timestamp":21894134,"id":2406,"parentId":2312,"tags":{"name":"static/chunks/6999-0459b23ea0165396.js","cache":"MISS"},"startTime":1736835524717,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":95350,"timestamp":21887780,"id":2389,"parentId":2312,"tags":{"name":"static/chunks/8261-c84643bacdc1fa7c.js","cache":"MISS"},"startTime":1736835524711,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":92065,"timestamp":21891105,"id":2397,"parentId":2312,"tags":{"name":"static/chunks/5810-949e2c13b225cb77.js","cache":"MISS"},"startTime":1736835524714,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":118311,"timestamp":21877878,"id":2333,"parentId":2312,"tags":{"name":"static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]-16c952028c5343ce.js","cache":"MISS"},"startTime":1736835524701,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":104885,"timestamp":21891450,"id":2399,"parentId":2312,"tags":{"name":"static/chunks/2438-c9e411c1c189c066.js","cache":"MISS"},"startTime":1736835524715,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":99967,"timestamp":21896416,"id":2414,"parentId":2312,"tags":{"name":"server/dynamic-css-manifest.js","cache":"MISS"},"startTime":1736835524720,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":99972,"timestamp":21896441,"id":2418,"parentId":2312,"tags":{"name":"server/next-font-manifest.js","cache":"MISS"},"startTime":1736835524720,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":105508,"timestamp":21890950,"id":2396,"parentId":2312,"tags":{"name":"static/chunks/8076-348ed73ae542bdcd.js","cache":"MISS"},"startTime":1736835524714,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":103200,"timestamp":21893705,"id":2404,"parentId":2312,"tags":{"name":"static/chunks/9950-dcfa4b8a1cdb0d08.js","cache":"MISS"},"startTime":1736835524717,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":100518,"timestamp":21896435,"id":2417,"parentId":2312,"tags":{"name":"static/YuXZx16H1DusDjnsSaCji/_buildManifest.js","cache":"MISS"},"startTime":1736835524720,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":100582,"timestamp":21896404,"id":2413,"parentId":2312,"tags":{"name":"server/middleware-react-loadable-manifest.js","cache":"MISS"},"startTime":1736835524720,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":100770,"timestamp":21896421,"id":2415,"parentId":2312,"tags":{"name":"static/YuXZx16H1DusDjnsSaCji/_ssgManifest.js","cache":"MISS"},"startTime":1736835524720,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":108922,"timestamp":21889229,"id":2392,"parentId":2312,"tags":{"name":"static/chunks/2829-4502fbb746023c5f.js","cache":"MISS"},"startTime":1736835524712,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":122931,"timestamp":21896428,"id":2416,"parentId":2312,"tags":{"name":"server/middleware-build-manifest.js","cache":"MISS"},"startTime":1736835524720,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":123821,"timestamp":21895713,"id":2409,"parentId":2312,"tags":{"name":"static/chunks/3867-6b3e9323b0262459.js","cache":"MISS"},"startTime":1736835524719,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":123327,"timestamp":21896264,"id":2412,"parentId":2312,"tags":{"name":"static/chunks/4060-5751a2e742d74cb4.js","cache":"MISS"},"startTime":1736835524719,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":125711,"timestamp":21893940,"id":2405,"parentId":2312,"tags":{"name":"static/chunks/6830-9d1d72fda9b42a3d.js","cache":"MISS"},"startTime":1736835524717,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":123587,"timestamp":21896106,"id":2411,"parentId":2312,"tags":{"name":"static/chunks/3298-bf77c986348119d2.js","cache":"MISS"},"startTime":1736835524719,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":126661,"timestamp":21893070,"id":2402,"parentId":2312,"tags":{"name":"static/chunks/6383-1b6c88d49308b969.js","cache":"MISS"},"startTime":1736835524716,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":131739,"timestamp":21888061,"id":2390,"parentId":2312,"tags":{"name":"static/chunks/9660-78c8822b00ea7704.js","cache":"MISS"},"startTime":1736835524711,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":129314,"timestamp":21890536,"id":2394,"parentId":2312,"tags":{"name":"static/chunks/7287-7b891520a18d4b44.js","cache":"MISS"},"startTime":1736835524714,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":127230,"timestamp":21895133,"id":2408,"parentId":2312,"tags":{"name":"static/chunks/4403-6f745851e7a0472d.js","cache":"MISS"},"startTime":1736835524718,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":126549,"timestamp":21895931,"id":2410,"parentId":2312,"tags":{"name":"static/chunks/6099-d50f5ab4ad8155be.js","cache":"MISS"},"startTime":1736835524719,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":145542,"timestamp":21892678,"id":2401,"parentId":2312,"tags":{"name":"static/chunks/1580-7b44e7c7734b23fc.js","cache":"MISS"},"startTime":1736835524716,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":156210,"timestamp":21891745,"id":2400,"parentId":2312,"tags":{"name":"static/chunks/8311-47fb745e7c5ab450.js","cache":"MISS"},"startTime":1736835524715,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":154888,"timestamp":21893216,"id":2403,"parentId":2312,"tags":{"name":"static/chunks/4261-f81c8f64448d27cb.js","cache":"MISS"},"startTime":1736835524716,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":161475,"timestamp":21887474,"id":2388,"parentId":2312,"tags":{"name":"static/chunks/6428-871d12a0e04dc58d.js","cache":"MISS"},"startTime":1736835524711,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":160111,"timestamp":21894281,"id":2407,"parentId":2312,"tags":{"name":"static/chunks/2480-09f0d2bd0b57a837.js","cache":"MISS"},"startTime":1736835524717,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":192550,"timestamp":21888442,"id":2391,"parentId":2312,"tags":{"name":"static/chunks/6460-0885ae654d195c82.js","cache":"MISS"},"startTime":1736835524712,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":194193,"timestamp":21889558,"id":2393,"parentId":2312,"tags":{"name":"static/chunks/2793-e696ad685b3d9b29.js","cache":"MISS"},"startTime":1736835524713,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":235440,"timestamp":21886762,"id":2386,"parentId":2312,"tags":{"name":"static/chunks/94726e6d-32f68157960855f5.js","cache":"MISS"},"startTime":1736835524710,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":255919,"timestamp":21866485,"id":2313,"parentId":2312,"tags":{"name":"static/chunks/main-a0bdd92e7b43604b.js","cache":"MISS"},"startTime":1736835524690,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":300726,"timestamp":21870425,"id":2317,"parentId":2312,"tags":{"name":"static/chunks/pages/_app-c2b51a705261a37d.js","cache":"MISS"},"startTime":1736835524694,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":298749,"timestamp":21886468,"id":2385,"parentId":2312,"tags":{"name":"static/chunks/framework-bd96dea0d6d5688f.js","cache":"MISS"},"startTime":1736835524710,"traceId":"80a02e6b898c9dbf"},{"name":"minify-js","duration":389893,"timestamp":21887326,"id":2387,"parentId":2312,"tags":{"name":"static/chunks/ed150ef9-4bae487078acc5bf.js","cache":"MISS"},"startTime":1736835524710,"traceId":"80a02e6b898c9dbf"},{"name":"minify-webpack-plugin-optimize","duration":462542,"timestamp":21814708,"id":2312,"parentId":1435,"tags":{"compilationName":"client"},"startTime":1736835524638,"traceId":"80a02e6b898c9dbf"},{"name":"minify-css","duration":387891,"timestamp":22277609,"id":2420,"parentId":2419,"tags":{"file":"static/css/bf9db5436f73da1d.css","cache":"MISS"},"startTime":1736835525101,"traceId":"80a02e6b898c9dbf"},{"name":"minify-css","duration":387742,"timestamp":22277772,"id":2421,"parentId":2419,"tags":{"file":"static/css/9b1cffe2c89f6bb5.css","cache":"MISS"},"startTime":1736835525101,"traceId":"80a02e6b898c9dbf"},{"name":"minify-css","duration":387734,"timestamp":22277781,"id":2422,"parentId":2419,"tags":{"file":"static/css/2c3db85a1d7310ee.css","cache":"MISS"},"startTime":1736835525101,"traceId":"80a02e6b898c9dbf"},{"name":"css-minimizer-plugin","duration":388052,"timestamp":22277470,"id":2419,"parentId":1435,"tags":{},"startTime":1736835525101,"traceId":"80a02e6b898c9dbf"},{"name":"seal","duration":1252215,"timestamp":21429202,"id":2297,"parentId":1435,"tags":{},"startTime":1736835524252,"traceId":"80a02e6b898c9dbf"},{"name":"webpack-compilation","duration":3579338,"timestamp":19102171,"id":1435,"parentId":13,"tags":{"name":"client"},"startTime":1736835521925,"traceId":"80a02e6b898c9dbf"},{"name":"emit","duration":3480,"timestamp":22681558,"id":2423,"parentId":13,"tags":{},"startTime":1736835525505,"traceId":"80a02e6b898c9dbf"},{"name":"webpack-close","duration":348573,"timestamp":22685687,"id":2424,"parentId":13,"tags":{"name":"client"},"startTime":1736835525509,"traceId":"80a02e6b898c9dbf"},{"name":"webpack-generate-error-stats","duration":1198,"timestamp":23034280,"id":2425,"parentId":2424,"tags":{},"startTime":1736835525857,"traceId":"80a02e6b898c9dbf"},{"name":"run-webpack-compiler","duration":21457793,"timestamp":1578198,"id":13,"parentId":1,"tags":{},"startTime":1736835504401,"traceId":"80a02e6b898c9dbf"},{"name":"format-webpack-messages","duration":186,"timestamp":23036147,"id":2426,"parentId":1,"tags":{},"startTime":1736835525859,"traceId":"80a02e6b898c9dbf"},{"name":"check-static-error-page","duration":58408,"timestamp":23435526,"id":2429,"parentId":2428,"tags":{},"startTime":1736835526259,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":17107,"timestamp":23550985,"id":2431,"parentId":2428,"tags":{"page":"/_error"},"startTime":1736835526374,"traceId":"80a02e6b898c9dbf"}] -[{"name":"check-page","duration":20241,"timestamp":23548911,"id":2430,"parentId":2428,"tags":{"page":"/_app"},"startTime":1736835526372,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":18478,"timestamp":23551083,"id":2432,"parentId":2428,"tags":{"page":"/_document"},"startTime":1736835526374,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":17247,"timestamp":23553236,"id":2469,"parentId":2428,"tags":{"page":"/api/acceptUserInvitation"},"startTime":1736835526376,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":17467,"timestamp":23553302,"id":2470,"parentId":2428,"tags":{"page":"/api/addAdminUserUser"},"startTime":1736835526376,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":18052,"timestamp":23553461,"id":2472,"parentId":2428,"tags":{"page":"/api/addDbUser"},"startTime":1736835526377,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":19317,"timestamp":23553358,"id":2471,"parentId":2428,"tags":{"page":"/api/addApiKey"},"startTime":1736835526377,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":19737,"timestamp":23553521,"id":2473,"parentId":2428,"tags":{"page":"/api/addNewMediaFolder"},"startTime":1736835526377,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":20771,"timestamp":23553581,"id":2474,"parentId":2428,"tags":{"page":"/api/addSocialLogin"},"startTime":1736835526377,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":21476,"timestamp":23553619,"id":2475,"parentId":2428,"tags":{"page":"/api/addTableEntry"},"startTime":1736835526377,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":22461,"timestamp":23553658,"id":2476,"parentId":2428,"tags":{"page":"/api/addUserMedia"},"startTime":1736835526377,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":23695,"timestamp":23553705,"id":2477,"parentId":2428,"tags":{"page":"/api/addUserTable"},"startTime":1736835526377,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":24425,"timestamp":23553749,"id":2478,"parentId":2428,"tags":{"page":"/api/addUserUser"},"startTime":1736835526377,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":25352,"timestamp":23553794,"id":2479,"parentId":2428,"tags":{"page":"/api/addUsersTableToDatabase"},"startTime":1736835526377,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":26008,"timestamp":23553855,"id":2480,"parentId":2428,"tags":{"page":"/api/admin/addUserBackup"},"startTime":1736835526377,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":26225,"timestamp":23553919,"id":2481,"parentId":2428,"tags":{"page":"/api/admin/clearErrorLogs"},"startTime":1736835526377,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":26502,"timestamp":23553970,"id":2482,"parentId":2428,"tags":{"page":"/api/admin/clientError"},"startTime":1736835526377,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":26825,"timestamp":23554019,"id":2483,"parentId":2428,"tags":{"page":"/api/admin/createNewBackup"},"startTime":1736835526377,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":27240,"timestamp":23554076,"id":2484,"parentId":2428,"tags":{"page":"/api/admin/docs/[action]"},"startTime":1736835526377,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":27439,"timestamp":23554156,"id":2485,"parentId":2428,"tags":{"page":"/api/admin/getTablesForUserDatabase"},"startTime":1736835526377,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":27679,"timestamp":23554211,"id":2486,"parentId":2428,"tags":{"page":"/api/admin/getUserBackups"},"startTime":1736835526377,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":28106,"timestamp":23554263,"id":2487,"parentId":2428,"tags":{"page":"/api/admin/getUserData"},"startTime":1736835526377,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":28322,"timestamp":23554312,"id":2488,"parentId":2428,"tags":{"page":"/api/admin/grabBackups"},"startTime":1736835526377,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":28519,"timestamp":23554372,"id":2489,"parentId":2428,"tags":{"page":"/api/admin/grabErrorLogs"},"startTime":1736835526378,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":28872,"timestamp":23554412,"id":2490,"parentId":2428,"tags":{"page":"/api/admin/grabFile"},"startTime":1736835526378,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":29258,"timestamp":23554444,"id":2491,"parentId":2428,"tags":{"page":"/api/admin/loginSuUser"},"startTime":1736835526378,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":29693,"timestamp":23554501,"id":2492,"parentId":2428,"tags":{"page":"/api/admin/runUserDbQuery"},"startTime":1736835526378,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":30022,"timestamp":23554552,"id":2493,"parentId":2428,"tags":{"page":"/api/admin/updateEnv"},"startTime":1736835526378,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":30373,"timestamp":23554617,"id":2494,"parentId":2428,"tags":{"page":"/api/changeDbUserPassword"},"startTime":1736835526378,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":30683,"timestamp":23554663,"id":2495,"parentId":2428,"tags":{"page":"/api/checkDuplicateData"},"startTime":1736835526378,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":30939,"timestamp":23554706,"id":2496,"parentId":2428,"tags":{"page":"/api/checkExistingFolder"},"startTime":1736835526378,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":31106,"timestamp":23554762,"id":2497,"parentId":2428,"tags":{"page":"/api/clientSideAuth"},"startTime":1736835526378,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":31503,"timestamp":23554807,"id":2498,"parentId":2428,"tags":{"page":"/api/connect/disconnect"},"startTime":1736835526378,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":31986,"timestamp":23554850,"id":2499,"parentId":2428,"tags":{"page":"/api/connect/handshake"},"startTime":1736835526378,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":32430,"timestamp":23554896,"id":2500,"parentId":2428,"tags":{"page":"/api/connect"},"startTime":1736835526378,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":32767,"timestamp":23554984,"id":2502,"parentId":2428,"tags":{"page":"/api/contact"},"startTime":1736835526378,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":33308,"timestamp":23554939,"id":2501,"parentId":2428,"tags":{"page":"/api/connect/verify"},"startTime":1736835526378,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":34502,"timestamp":23555012,"id":2503,"parentId":2428,"tags":{"page":"/api/createUserDatabase"},"startTime":1736835526378,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":34950,"timestamp":23555039,"id":2504,"parentId":2428,"tags":{"page":"/api/deleteApiKey"},"startTime":1736835526378,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":35216,"timestamp":23555063,"id":2505,"parentId":2428,"tags":{"page":"/api/deleteDbUser"},"startTime":1736835526378,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":35449,"timestamp":23555087,"id":2506,"parentId":2428,"tags":{"page":"/api/deleteInvitation"},"startTime":1736835526378,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":36058,"timestamp":23555129,"id":2507,"parentId":2428,"tags":{"page":"/api/deleteMediaFolder"},"startTime":1736835526378,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":36507,"timestamp":23555175,"id":2508,"parentId":2428,"tags":{"page":"/api/deleteTableEntry"},"startTime":1736835526378,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":37261,"timestamp":23555215,"id":2509,"parentId":2428,"tags":{"page":"/api/deleteUser"},"startTime":1736835526378,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":37637,"timestamp":23555269,"id":2510,"parentId":2428,"tags":{"page":"/api/deleteUserDatabase"},"startTime":1736835526378,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":38123,"timestamp":23555312,"id":2511,"parentId":2428,"tags":{"page":"/api/deleteUserMedia"},"startTime":1736835526378,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":38861,"timestamp":23555353,"id":2512,"parentId":2428,"tags":{"page":"/api/deleteUserTable"},"startTime":1736835526379,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":39114,"timestamp":23555399,"id":2513,"parentId":2428,"tags":{"page":"/api/deleteUserUser"},"startTime":1736835526379,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":39408,"timestamp":23555446,"id":2514,"parentId":2428,"tags":{"page":"/api/downloadDatabaseSchema"},"startTime":1736835526379,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":39583,"timestamp":23555497,"id":2515,"parentId":2428,"tags":{"page":"/api/exportDatabase"},"startTime":1736835526379,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":39852,"timestamp":23555525,"id":2516,"parentId":2428,"tags":{"page":"/api/exportTableData"},"startTime":1736835526379,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":40279,"timestamp":23555551,"id":2517,"parentId":2428,"tags":{"page":"/api/fetch-entries-basic"},"startTime":1736835526379,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":40372,"timestamp":23555588,"id":2518,"parentId":2428,"tags":{"page":"/api/fetch-media"},"startTime":1736835526379,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":40939,"timestamp":23555616,"id":2519,"parentId":2428,"tags":{"page":"/api/get-authorized-databases"},"startTime":1736835526379,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":41338,"timestamp":23555647,"id":2520,"parentId":2428,"tags":{"page":"/api/getDatabaseTables"},"startTime":1736835526379,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":41869,"timestamp":23555675,"id":2521,"parentId":2428,"tags":{"page":"/api/getDelegatedDatabaseToken"},"startTime":1736835526379,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":42295,"timestamp":23555699,"id":2522,"parentId":2428,"tags":{"page":"/api/getDelegatedDatabases"},"startTime":1736835526379,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":43118,"timestamp":23555736,"id":2523,"parentId":2428,"tags":{"page":"/api/getDiskUsage"},"startTime":1736835526379,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":43355,"timestamp":23555768,"id":2524,"parentId":2428,"tags":{"page":"/api/getUserDatabaseTables"},"startTime":1736835526379,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":43592,"timestamp":23555797,"id":2525,"parentId":2428,"tags":{"page":"/api/getUserDatabases"},"startTime":1736835526379,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":43686,"timestamp":23555825,"id":2526,"parentId":2428,"tags":{"page":"/api/getUserMedia"},"startTime":1736835526379,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":43861,"timestamp":23555876,"id":2528,"parentId":2428,"tags":{"page":"/api/healthcheck"},"startTime":1736835526379,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":44297,"timestamp":23555848,"id":2527,"parentId":2428,"tags":{"page":"/api/getUserSchemaData"},"startTime":1736835526379,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":44709,"timestamp":23555899,"id":2529,"parentId":2428,"tags":{"page":"/api/importDatabase"},"startTime":1736835526379,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":45285,"timestamp":23555929,"id":2530,"parentId":2428,"tags":{"page":"/api/importDatabaseSchema"},"startTime":1736835526379,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":45862,"timestamp":23555985,"id":2531,"parentId":2428,"tags":{"page":"/api/infiniteScroll"},"startTime":1736835526379,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":47143,"timestamp":23556031,"id":2532,"parentId":2428,"tags":{"page":"/api/loginUser"},"startTime":1736835526379,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":47318,"timestamp":23556064,"id":2533,"parentId":2428,"tags":{"page":"/api/logoutUser"},"startTime":1736835526379,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":48479,"timestamp":23556096,"id":2534,"parentId":2428,"tags":{"page":"/api/media/addPrivateMedia"},"startTime":1736835526379,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":48676,"timestamp":23556130,"id":2535,"parentId":2428,"tags":{"page":"/api/media/getPrivateMedia"},"startTime":1736835526379,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":49088,"timestamp":23556155,"id":2536,"parentId":2428,"tags":{"page":"/api/purgeDb"},"startTime":1736835526379,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":49395,"timestamp":23556194,"id":2537,"parentId":2428,"tags":{"page":"/api/query/[user_id]/add-file"},"startTime":1736835526379,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":49563,"timestamp":23556226,"id":2538,"parentId":2428,"tags":{"page":"/api/query/[user_id]/add-image"},"startTime":1736835526379,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":49720,"timestamp":23556258,"id":2539,"parentId":2428,"tags":{"page":"/api/query/[user_id]/delete-file"},"startTime":1736835526379,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":49832,"timestamp":23556316,"id":2540,"parentId":2428,"tags":{"page":"/api/query/[user_id]/get-private-file"},"startTime":1736835526379,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":50552,"timestamp":23556341,"id":2541,"parentId":2428,"tags":{"page":"/api/query/[user_id]/get-schema"},"startTime":1736835526379,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":50904,"timestamp":23556371,"id":2542,"parentId":2428,"tags":{"page":"/api/query/[user_id]/get"},"startTime":1736835526380,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":51295,"timestamp":23556421,"id":2544,"parentId":2428,"tags":{"page":"/api/query/[user_id]/update-schema-from-single-database"},"startTime":1736835526380,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":51468,"timestamp":23556396,"id":2543,"parentId":2428,"tags":{"page":"/api/query/[user_id]/post"},"startTime":1736835526380,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":51897,"timestamp":23556447,"id":2545,"parentId":2428,"tags":{"page":"/api/queryEntriesSearchTerm"},"startTime":1736835526380,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":52358,"timestamp":23556498,"id":2547,"parentId":2428,"tags":{"page":"/api/refreshEntry"},"startTime":1736835526380,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":52658,"timestamp":23556472,"id":2546,"parentId":2428,"tags":{"page":"/api/reAuthenticateUser"},"startTime":1736835526380,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":54245,"timestamp":23556525,"id":2548,"parentId":2428,"tags":{"page":"/api/registerUser"},"startTime":1736835526380,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":55337,"timestamp":23556550,"id":2549,"parentId":2428,"tags":{"page":"/api/renameMedia"},"startTime":1736835526380,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":55720,"timestamp":23556572,"id":2550,"parentId":2428,"tags":{"page":"/api/resetDelegatedDatabaseToken"},"startTime":1736835526380,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":55970,"timestamp":23556594,"id":2551,"parentId":2428,"tags":{"page":"/api/resetPassword"},"startTime":1736835526380,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":56361,"timestamp":23556619,"id":2552,"parentId":2428,"tags":{"page":"/api/runUserDbQuery"},"startTime":1736835526380,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":56657,"timestamp":23556643,"id":2553,"parentId":2428,"tags":{"page":"/api/sendEmailVerificationLink"},"startTime":1736835526380,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":56935,"timestamp":23556673,"id":2554,"parentId":2428,"tags":{"page":"/api/sendPasswordResetLink"},"startTime":1736835526380,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":57413,"timestamp":23556704,"id":2555,"parentId":2428,"tags":{"page":"/api/social-login/facebook-auth"},"startTime":1736835526380,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":57788,"timestamp":23556731,"id":2556,"parentId":2428,"tags":{"page":"/api/social-login/github-auth"},"startTime":1736835526380,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":58385,"timestamp":23556757,"id":2557,"parentId":2428,"tags":{"page":"/api/social-login/google-auth"},"startTime":1736835526380,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":58634,"timestamp":23556808,"id":2558,"parentId":2428,"tags":{"page":"/api/social-login/utils/checkEmail"},"startTime":1736835526380,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":58908,"timestamp":23556847,"id":2559,"parentId":2428,"tags":{"page":"/api/social-login/utils/checkSocialId"},"startTime":1736835526380,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":59180,"timestamp":23556875,"id":2560,"parentId":2428,"tags":{"page":"/api/social-login/utils/getEmailFromSocialId"},"startTime":1736835526380,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":59841,"timestamp":23556909,"id":2561,"parentId":2428,"tags":{"page":"/api/sql-users/create"},"startTime":1736835526380,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":60227,"timestamp":23556945,"id":2562,"parentId":2428,"tags":{"page":"/api/sql-users/delete"},"startTime":1736835526380,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":60932,"timestamp":23556972,"id":2563,"parentId":2428,"tags":{"page":"/api/sql-users/update"},"startTime":1736835526380,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":61060,"timestamp":23556995,"id":2564,"parentId":2428,"tags":{"page":"/api/stream/[path]"},"startTime":1736835526380,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":61875,"timestamp":23557021,"id":2565,"parentId":2428,"tags":{"page":"/api/sync-table-data"},"startTime":1736835526380,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":61928,"timestamp":23557053,"id":2566,"parentId":2428,"tags":{"page":"/api/test/cors"},"startTime":1736835526380,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":62228,"timestamp":23557086,"id":2567,"parentId":2428,"tags":{"page":"/api/test/mail"},"startTime":1736835526380,"traceId":"80a02e6b898c9dbf"}] -[{"name":"check-page","duration":62826,"timestamp":23557116,"id":2568,"parentId":2428,"tags":{"page":"/api/unsubscribe"},"startTime":1736835526380,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":63342,"timestamp":23557157,"id":2569,"parentId":2428,"tags":{"page":"/api/updateAdminUserAccess"},"startTime":1736835526380,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":63958,"timestamp":23557181,"id":2570,"parentId":2428,"tags":{"page":"/api/updateClonedTableForeignKeys"},"startTime":1736835526380,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":64658,"timestamp":23557212,"id":2571,"parentId":2428,"tags":{"page":"/api/updateDbSchemaDataForUser"},"startTime":1736835526380,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":65042,"timestamp":23557239,"id":2572,"parentId":2428,"tags":{"page":"/api/updateDbUser"},"startTime":1736835526380,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":65721,"timestamp":23557272,"id":2573,"parentId":2428,"tags":{"page":"/api/updateTableEntry"},"startTime":1736835526380,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":66429,"timestamp":23557309,"id":2574,"parentId":2428,"tags":{"page":"/api/updateUser"},"startTime":1736835526380,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":67360,"timestamp":23557335,"id":2575,"parentId":2428,"tags":{"page":"/api/updateUserDatabase"},"startTime":1736835526380,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":68225,"timestamp":23557367,"id":2576,"parentId":2428,"tags":{"page":"/api/updateUserTable"},"startTime":1736835526381,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":68528,"timestamp":23557403,"id":2577,"parentId":2428,"tags":{"page":"/api/updateUserUser"},"startTime":1736835526381,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":69088,"timestamp":23557434,"id":2578,"parentId":2428,"tags":{"page":"/api/user-schema/replace-database-schema"},"startTime":1736835526381,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":69359,"timestamp":23557459,"id":2579,"parentId":2428,"tags":{"page":"/api/user/[user_id]/add-user"},"startTime":1736835526381,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":69605,"timestamp":23557483,"id":2580,"parentId":2428,"tags":{"page":"/api/user/[user_id]/delete-user"},"startTime":1736835526381,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":69870,"timestamp":23557511,"id":2581,"parentId":2428,"tags":{"page":"/api/user/[user_id]/get-user"},"startTime":1736835526381,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":70215,"timestamp":23557543,"id":2582,"parentId":2428,"tags":{"page":"/api/user/[user_id]/github-login"},"startTime":1736835526381,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":70508,"timestamp":23557570,"id":2583,"parentId":2428,"tags":{"page":"/api/user/[user_id]/google-login"},"startTime":1736835526381,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":70894,"timestamp":23557607,"id":2584,"parentId":2428,"tags":{"page":"/api/user/[user_id]/grab-google-user-from-token"},"startTime":1736835526381,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":71221,"timestamp":23557634,"id":2585,"parentId":2428,"tags":{"page":"/api/user/[user_id]/login-user"},"startTime":1736835526381,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":71546,"timestamp":23557658,"id":2586,"parentId":2428,"tags":{"page":"/api/user/[user_id]/reauth-user"},"startTime":1736835526381,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":71913,"timestamp":23557682,"id":2587,"parentId":2428,"tags":{"page":"/api/user/[user_id]/send-email-code"},"startTime":1736835526381,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":72266,"timestamp":23557712,"id":2588,"parentId":2428,"tags":{"page":"/api/user/[user_id]/update-user"},"startTime":1736835526381,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":72597,"timestamp":23557740,"id":2589,"parentId":2428,"tags":{"page":"/api/webhooks/github-push"},"startTime":1736835526381,"traceId":"80a02e6b898c9dbf"},{"name":"is-page-static","duration":860039,"timestamp":23637495,"id":2635,"parentId":2446,"tags":{},"startTime":1736835526461,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":945732,"timestamp":23552004,"id":2446,"parentId":2428,"tags":{"page":"/admin/[user_id]/databases/[single]/tables/[single_table]/entries"},"startTime":1736835526375,"traceId":"80a02e6b898c9dbf"},{"name":"is-page-static","duration":898745,"timestamp":23638142,"id":2636,"parentId":2447,"tags":{},"startTime":1736835526461,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":984949,"timestamp":23552068,"id":2447,"parentId":2428,"tags":{"page":"/admin/[user_id]/databases/[single]/tables/[single_table]/fields"},"startTime":1736835526375,"traceId":"80a02e6b898c9dbf"},{"name":"is-page-static","duration":950200,"timestamp":23640369,"id":2637,"parentId":2449,"tags":{},"startTime":1736835526464,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":1038447,"timestamp":23552174,"id":2449,"parentId":2428,"tags":{"page":"/admin/[user_id]/databases/[single]/tables/add-table"},"startTime":1736835526375,"traceId":"80a02e6b898c9dbf"},{"name":"is-page-static","duration":966090,"timestamp":23641168,"id":2638,"parentId":2448,"tags":{},"startTime":1736835526464,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":1055192,"timestamp":23552113,"id":2448,"parentId":2428,"tags":{"page":"/admin/[user_id]/databases/[single]/tables/[single_table]"},"startTime":1736835526375,"traceId":"80a02e6b898c9dbf"},{"name":"is-page-static","duration":974089,"timestamp":23641445,"id":2639,"parentId":2451,"tags":{},"startTime":1736835526465,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":1063318,"timestamp":23552266,"id":2451,"parentId":2428,"tags":{"page":"/admin/[user_id]/databases/[single]/users/[user]/change-password"},"startTime":1736835526375,"traceId":"80a02e6b898c9dbf"},{"name":"is-page-static","duration":977644,"timestamp":23642754,"id":2641,"parentId":2452,"tags":{},"startTime":1736835526466,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":1068143,"timestamp":23552302,"id":2452,"parentId":2428,"tags":{"page":"/admin/[user_id]/databases/[single]/users/[user]"},"startTime":1736835526375,"traceId":"80a02e6b898c9dbf"},{"name":"is-page-static","duration":983362,"timestamp":23642378,"id":2640,"parentId":2450,"tags":{},"startTime":1736835526466,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":1073568,"timestamp":23552224,"id":2450,"parentId":2428,"tags":{"page":"/admin/[user_id]/databases/[single]/tables"},"startTime":1736835526375,"traceId":"80a02e6b898c9dbf"},{"name":"is-page-static","duration":993066,"timestamp":23643213,"id":2642,"parentId":2453,"tags":{},"startTime":1736835526466,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":1083968,"timestamp":23552357,"id":2453,"parentId":2428,"tags":{"page":"/admin/[user_id]/databases/[single]/users/add-social-logins"},"startTime":1736835526376,"traceId":"80a02e6b898c9dbf"},{"name":"is-page-static","duration":1000718,"timestamp":23644169,"id":2644,"parentId":2455,"tags":{},"startTime":1736835526467,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":1092504,"timestamp":23552431,"id":2455,"parentId":2428,"tags":{"page":"/admin/[user_id]/databases/[single]/users"},"startTime":1736835526376,"traceId":"80a02e6b898c9dbf"},{"name":"is-page-static","duration":1004301,"timestamp":23643747,"id":2643,"parentId":2454,"tags":{},"startTime":1736835526467,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":1095705,"timestamp":23552395,"id":2454,"parentId":2428,"tags":{"page":"/admin/[user_id]/databases/[single]/users/add-user"},"startTime":1736835526376,"traceId":"80a02e6b898c9dbf"},{"name":"is-page-static","duration":1008131,"timestamp":23644529,"id":2645,"parentId":2456,"tags":{},"startTime":1736835526468,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":1100237,"timestamp":23552468,"id":2456,"parentId":2428,"tags":{"page":"/admin/[user_id]/databases/add-database"},"startTime":1736835526376,"traceId":"80a02e6b898c9dbf"},{"name":"is-page-static","duration":1012237,"timestamp":23644944,"id":2646,"parentId":2457,"tags":{},"startTime":1736835526468,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":1104719,"timestamp":23552505,"id":2457,"parentId":2428,"tags":{"page":"/admin/[user_id]/databases"},"startTime":1736835526376,"traceId":"80a02e6b898c9dbf"},{"name":"is-page-static","duration":1025886,"timestamp":23645479,"id":2647,"parentId":2459,"tags":{},"startTime":1736835526469,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":1118835,"timestamp":23552574,"id":2459,"parentId":2428,"tags":{"page":"/admin/[user_id]/media/[...folder]"},"startTime":1736835526376,"traceId":"80a02e6b898c9dbf"},{"name":"is-page-static","duration":1026982,"timestamp":23646086,"id":2648,"parentId":2460,"tags":{},"startTime":1736835526469,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":1120483,"timestamp":23552618,"id":2460,"parentId":2428,"tags":{"page":"/admin/[user_id]/media"},"startTime":1736835526376,"traceId":"80a02e6b898c9dbf"},{"name":"is-page-static","duration":1032038,"timestamp":23646416,"id":2649,"parentId":2458,"tags":{},"startTime":1736835526470,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":1125972,"timestamp":23552537,"id":2458,"parentId":2428,"tags":{"page":"/admin/[user_id]"},"startTime":1736835526376,"traceId":"80a02e6b898c9dbf"},{"name":"is-page-static","duration":1033530,"timestamp":23646752,"id":2650,"parentId":2461,"tags":{},"startTime":1736835526470,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":1127650,"timestamp":23552670,"id":2461,"parentId":2428,"tags":{"page":"/admin/[user_id]/schema"},"startTime":1736835526376,"traceId":"80a02e6b898c9dbf"},{"name":"is-page-static","duration":1038706,"timestamp":23647432,"id":2652,"parentId":2463,"tags":{},"startTime":1736835526471,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":1133444,"timestamp":23552744,"id":2463,"parentId":2428,"tags":{"page":"/admin/[user_id]/users/add-user"},"startTime":1736835526376,"traceId":"80a02e6b898c9dbf"},{"name":"is-page-static","duration":1040451,"timestamp":23647075,"id":2651,"parentId":2462,"tags":{},"startTime":1736835526470,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":1134855,"timestamp":23552707,"id":2462,"parentId":2428,"tags":{"page":"/admin/[user_id]/settings"},"startTime":1736835526376,"traceId":"80a02e6b898c9dbf"},{"name":"is-page-static","duration":1046141,"timestamp":23648332,"id":2654,"parentId":2465,"tags":{},"startTime":1736835526471,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":1141627,"timestamp":23552899,"id":2465,"parentId":2428,"tags":{"page":"/admin/[user_id]/users/databases/[database]"},"startTime":1736835526376,"traceId":"80a02e6b898c9dbf"},{"name":"is-page-static","duration":1048369,"timestamp":23648009,"id":2653,"parentId":2464,"tags":{},"startTime":1736835526471,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":1143589,"timestamp":23552827,"id":2464,"parentId":2428,"tags":{"page":"/admin/[user_id]/users/databases/[database]/[user]"},"startTime":1736835526376,"traceId":"80a02e6b898c9dbf"},{"name":"is-page-static","duration":1052596,"timestamp":23648722,"id":2655,"parentId":2466,"tags":{},"startTime":1736835526472,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":1148386,"timestamp":23552979,"id":2466,"parentId":2428,"tags":{"page":"/admin/[user_id]/users/databases"},"startTime":1736835526376,"traceId":"80a02e6b898c9dbf"},{"name":"is-page-static","duration":1054389,"timestamp":23649038,"id":2656,"parentId":2467,"tags":{},"startTime":1736835526472,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":1150440,"timestamp":23553041,"id":2467,"parentId":2428,"tags":{"page":"/admin/[user_id]/users"},"startTime":1736835526376,"traceId":"80a02e6b898c9dbf"},{"name":"is-page-static","duration":1057879,"timestamp":23650705,"id":2658,"parentId":2590,"tags":{},"startTime":1736835526474,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":1150919,"timestamp":23557772,"id":2590,"parentId":2428,"tags":{"page":"/blog"},"startTime":1736835526381,"traceId":"80a02e6b898c9dbf"},{"name":"is-page-static","duration":1063690,"timestamp":23649334,"id":2657,"parentId":2468,"tags":{},"startTime":1736835526472,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":1159926,"timestamp":23553145,"id":2468,"parentId":2428,"tags":{"page":"/admin"},"startTime":1736835526376,"traceId":"80a02e6b898c9dbf"},{"name":"is-page-static","duration":1079341,"timestamp":23651183,"id":2659,"parentId":2591,"tags":{},"startTime":1736835526474,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":1172774,"timestamp":23557817,"id":2591,"parentId":2428,"tags":{"page":"/contact"},"startTime":1736835526381,"traceId":"80a02e6b898c9dbf"},{"name":"is-page-static","duration":1128018,"timestamp":23632282,"id":2624,"parentId":2434,"tags":{},"startTime":1736835526455,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":1209171,"timestamp":23551196,"id":2434,"parentId":2428,"tags":{"page":"/500"},"startTime":1736835526374,"traceId":"80a02e6b898c9dbf"},{"name":"is-page-static","duration":1178367,"timestamp":23633704,"id":2628,"parentId":2438,"tags":{},"startTime":1736835526457,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":1260675,"timestamp":23551446,"id":2438,"parentId":2428,"tags":{"page":"/admin/[user_id]/databases/[single]/connect"},"startTime":1736835526375,"traceId":"80a02e6b898c9dbf"},{"name":"is-page-static","duration":1181334,"timestamp":23632976,"id":2626,"parentId":2437,"tags":{},"startTime":1736835526456,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":1262961,"timestamp":23551389,"id":2437,"parentId":2428,"tags":{"page":"/admin/[user_id]/connect"},"startTime":1736835526375,"traceId":"80a02e6b898c9dbf"},{"name":"is-page-static","duration":1172339,"timestamp":23654505,"id":2663,"parentId":2595,"tags":{},"startTime":1736835526478,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":1268952,"timestamp":23557949,"id":2595,"parentId":2428,"tags":{"page":"/docs"},"startTime":1736835526381,"traceId":"80a02e6b898c9dbf"},{"name":"is-page-static","duration":1169528,"timestamp":23657603,"id":2664,"parentId":2596,"tags":{},"startTime":1736835526481,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":1269180,"timestamp":23557977,"id":2596,"parentId":2428,"tags":{"page":"/email-verification"},"startTime":1736835526381,"traceId":"80a02e6b898c9dbf"},{"name":"is-page-static","duration":1192123,"timestamp":23635216,"id":2631,"parentId":2440,"tags":{},"startTime":1736835526458,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":1275778,"timestamp":23551583,"id":2440,"parentId":2428,"tags":{"page":"/admin/[user_id]/databases/[single]"},"startTime":1736835526375,"traceId":"80a02e6b898c9dbf"},{"name":"is-page-static","duration":1197219,"timestamp":23630779,"id":2622,"parentId":2433,"tags":{},"startTime":1736835526454,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":1276895,"timestamp":23551139,"id":2433,"parentId":2428,"tags":{"page":"/404"},"startTime":1736835526374,"traceId":"80a02e6b898c9dbf"},{"name":"is-page-static","duration":1174287,"timestamp":23658265,"id":2665,"parentId":2597,"tags":{},"startTime":1736835526481,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":1274604,"timestamp":23558012,"id":2597,"parentId":2428,"tags":{"page":"/"},"startTime":1736835526381,"traceId":"80a02e6b898c9dbf"},{"name":"is-page-static","duration":1199895,"timestamp":23634610,"id":2630,"parentId":2441,"tags":{},"startTime":1736835526458,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":1282922,"timestamp":23551645,"id":2441,"parentId":2428,"tags":{"page":"/admin/[user_id]/databases/[single]/schema"},"startTime":1736835526375,"traceId":"80a02e6b898c9dbf"},{"name":"is-page-static","duration":1182198,"timestamp":23662199,"id":2667,"parentId":2599,"tags":{},"startTime":1736835526485,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":1286399,"timestamp":23558080,"id":2599,"parentId":2428,"tags":{"page":"/logout"},"startTime":1736835526381,"traceId":"80a02e6b898c9dbf"},{"name":"is-page-static","duration":1181875,"timestamp":23663696,"id":2670,"parentId":2602,"tags":{},"startTime":1736835526487,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":1287438,"timestamp":23558167,"id":2602,"parentId":2428,"tags":{"page":"/reset-password"},"startTime":1736835526381,"traceId":"80a02e6b898c9dbf"},{"name":"is-page-static","duration":1200661,"timestamp":23651768,"id":2660,"parentId":2592,"tags":{},"startTime":1736835526475,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":1294630,"timestamp":23557853,"id":2592,"parentId":2428,"tags":{"page":"/create-account"},"startTime":1736835526381,"traceId":"80a02e6b898c9dbf"},{"name":"is-page-static","duration":1192440,"timestamp":23664215,"id":2671,"parentId":2603,"tags":{},"startTime":1736835526487,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":1298516,"timestamp":23558191,"id":2603,"parentId":2428,"tags":{"page":"/send-password-reset-link"},"startTime":1736835526381,"traceId":"80a02e6b898c9dbf"},{"name":"is-page-static","duration":1194892,"timestamp":23663038,"id":2669,"parentId":2601,"tags":{},"startTime":1736835526486,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":1299833,"timestamp":23558144,"id":2601,"parentId":2428,"tags":{"page":"/redirect"},"startTime":1736835526381,"traceId":"80a02e6b898c9dbf"},{"name":"is-page-static","duration":1227142,"timestamp":23634133,"id":2629,"parentId":2442,"tags":{},"startTime":1736835526457,"traceId":"80a02e6b898c9dbf"}] -[{"name":"check-page","duration":1323982,"timestamp":23551778,"id":2442,"parentId":2428,"tags":{"page":"/admin/[user_id]/databases/[single]/shell"},"startTime":1736835526375,"traceId":"80a02e6b898c9dbf"},{"name":"is-page-static","duration":1215929,"timestamp":23660073,"id":2666,"parentId":2598,"tags":{},"startTime":1736835526483,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":1317985,"timestamp":23558048,"id":2598,"parentId":2428,"tags":{"page":"/login"},"startTime":1736835526381,"traceId":"80a02e6b898c9dbf"},{"name":"is-page-static","duration":1210702,"timestamp":23665490,"id":2672,"parentId":2604,"tags":{},"startTime":1736835526489,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":1318000,"timestamp":23558214,"id":2604,"parentId":2428,"tags":{"page":"/su/backups"},"startTime":1736835526381,"traceId":"80a02e6b898c9dbf"},{"name":"is-page-static","duration":1249171,"timestamp":23632630,"id":2625,"parentId":2436,"tags":{},"startTime":1736835526456,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":1330555,"timestamp":23551305,"id":2436,"parentId":2428,"tags":{"page":"/admin/[user_id]/api-keys"},"startTime":1736835526374,"traceId":"80a02e6b898c9dbf"},{"name":"is-page-static","duration":1228381,"timestamp":23662655,"id":2668,"parentId":2600,"tags":{},"startTime":1736835526486,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":1332985,"timestamp":23558117,"id":2600,"parentId":2428,"tags":{"page":"/privacy"},"startTime":1736835526381,"traceId":"80a02e6b898c9dbf"},{"name":"is-page-static","duration":1215926,"timestamp":23675365,"id":2678,"parentId":2610,"tags":{},"startTime":1736835526499,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":1332891,"timestamp":23558432,"id":2610,"parentId":2428,"tags":{"page":"/su/docs/pages"},"startTime":1736835526382,"traceId":"80a02e6b898c9dbf"},{"name":"is-page-static","duration":1223556,"timestamp":23669806,"id":2674,"parentId":2606,"tags":{},"startTime":1736835526493,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":1335116,"timestamp":23558287,"id":2606,"parentId":2428,"tags":{"page":"/su/docs/create-page"},"startTime":1736835526381,"traceId":"80a02e6b898c9dbf"},{"name":"is-page-static","duration":1262624,"timestamp":23633297,"id":2627,"parentId":2439,"tags":{},"startTime":1736835526456,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":1344439,"timestamp":23551523,"id":2439,"parentId":2428,"tags":{"page":"/admin/[user_id]/databases/[single]/edit-database"},"startTime":1736835526375,"traceId":"80a02e6b898c9dbf"},{"name":"is-page-static","duration":1233495,"timestamp":23683770,"id":2681,"parentId":2613,"tags":{},"startTime":1736835526507,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":1358817,"timestamp":23558534,"id":2613,"parentId":2428,"tags":{"page":"/su"},"startTime":1736835526382,"traceId":"80a02e6b898c9dbf"},{"name":"is-page-static","duration":1239296,"timestamp":23678290,"id":2680,"parentId":2612,"tags":{},"startTime":1736835526501,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":1359112,"timestamp":23558503,"id":2612,"parentId":2428,"tags":{"page":"/su/error-logs"},"startTime":1736835526382,"traceId":"80a02e6b898c9dbf"},{"name":"is-page-static","duration":1233219,"timestamp":23684521,"id":2682,"parentId":2614,"tags":{},"startTime":1736835526508,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":1359194,"timestamp":23558567,"id":2614,"parentId":2428,"tags":{"page":"/su/load-balancing"},"startTime":1736835526382,"traceId":"80a02e6b898c9dbf"},{"name":"is-page-static","duration":1245307,"timestamp":23672551,"id":2676,"parentId":2608,"tags":{},"startTime":1736835526496,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":1359506,"timestamp":23558368,"id":2608,"parentId":2428,"tags":{"page":"/su/docs"},"startTime":1736835526382,"traceId":"80a02e6b898c9dbf"},{"name":"is-page-static","duration":1244073,"timestamp":23673900,"id":2677,"parentId":2609,"tags":{},"startTime":1736835526497,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":1359583,"timestamp":23558405,"id":2609,"parentId":2428,"tags":{"page":"/su/docs/pages/[id]"},"startTime":1736835526382,"traceId":"80a02e6b898c9dbf"},{"name":"is-page-static","duration":1263008,"timestamp":23676804,"id":2679,"parentId":2611,"tags":{},"startTime":1736835526500,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":1381407,"timestamp":23558468,"id":2611,"parentId":2428,"tags":{"page":"/su/envar"},"startTime":1736835526382,"traceId":"80a02e6b898c9dbf"},{"name":"is-page-static","duration":1304245,"timestamp":23635735,"id":2632,"parentId":2443,"tags":{},"startTime":1736835526459,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":1388175,"timestamp":23551826,"id":2443,"parentId":2428,"tags":{"page":"/admin/[user_id]/databases/[single]/tables/[single_table]/edit-table"},"startTime":1736835526375,"traceId":"80a02e6b898c9dbf"},{"name":"is-page-static","duration":1250259,"timestamp":23689811,"id":2686,"parentId":2618,"tags":{},"startTime":1736835526513,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":1381399,"timestamp":23558684,"id":2618,"parentId":2428,"tags":{"page":"/su/users"},"startTime":1736835526382,"traceId":"80a02e6b898c9dbf"},{"name":"is-page-static","duration":1249548,"timestamp":23690847,"id":2687,"parentId":2619,"tags":{},"startTime":1736835526514,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":1381707,"timestamp":23558712,"id":2619,"parentId":2428,"tags":{"page":"/su/users/new"},"startTime":1736835526382,"traceId":"80a02e6b898c9dbf"},{"name":"is-page-static","duration":1249150,"timestamp":23691313,"id":2688,"parentId":2620,"tags":{},"startTime":1736835526514,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":1381741,"timestamp":23558740,"id":2620,"parentId":2428,"tags":{"page":"/terms"},"startTime":1736835526382,"traceId":"80a02e6b898c9dbf"},{"name":"is-page-static","duration":1253740,"timestamp":23686767,"id":2684,"parentId":2616,"tags":{},"startTime":1736835526510,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":1381897,"timestamp":23558627,"id":2616,"parentId":2428,"tags":{"page":"/su/servers"},"startTime":1736835526382,"traceId":"80a02e6b898c9dbf"},{"name":"is-page-static","duration":1254415,"timestamp":23686129,"id":2683,"parentId":2615,"tags":{},"startTime":1736835526509,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":1381950,"timestamp":23558600,"id":2615,"parentId":2428,"tags":{"page":"/su/login"},"startTime":1736835526382,"traceId":"80a02e6b898c9dbf"},{"name":"is-page-static","duration":1269355,"timestamp":23671211,"id":2675,"parentId":2607,"tags":{},"startTime":1736835526494,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":1382257,"timestamp":23558317,"id":2607,"parentId":2428,"tags":{"page":"/su/docs/edit-page"},"startTime":1736835526381,"traceId":"80a02e6b898c9dbf"},{"name":"is-page-static","duration":1309047,"timestamp":23631555,"id":2623,"parentId":2435,"tags":{},"startTime":1736835526455,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":1389364,"timestamp":23551248,"id":2435,"parentId":2428,"tags":{"page":"/about"},"startTime":1736835526374,"traceId":"80a02e6b898c9dbf"},{"name":"is-page-static","duration":1304799,"timestamp":23636960,"id":2634,"parentId":2445,"tags":{},"startTime":1736835526460,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":1389842,"timestamp":23551941,"id":2445,"parentId":2428,"tags":{"page":"/admin/[user_id]/databases/[single]/tables/[single_table]/entries/add-entry"},"startTime":1736835526375,"traceId":"80a02e6b898c9dbf"},{"name":"is-page-static","duration":1252477,"timestamp":23694224,"id":2689,"parentId":2621,"tags":{},"startTime":1736835526517,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":1387973,"timestamp":23558770,"id":2621,"parentId":2428,"tags":{"page":"/unsubscribe"},"startTime":1736835526382,"traceId":"80a02e6b898c9dbf"},{"name":"is-page-static","duration":1288525,"timestamp":23668363,"id":2673,"parentId":2605,"tags":{},"startTime":1736835526492,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":1398694,"timestamp":23558249,"id":2605,"parentId":2428,"tags":{"page":"/su/console"},"startTime":1736835526381,"traceId":"80a02e6b898c9dbf"},{"name":"is-page-static","duration":1268538,"timestamp":23688482,"id":2685,"parentId":2617,"tags":{},"startTime":1736835526512,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":1398379,"timestamp":23558653,"id":2617,"parentId":2428,"tags":{"page":"/su/users/[single]"},"startTime":1736835526382,"traceId":"80a02e6b898c9dbf"},{"name":"is-page-static","duration":1331879,"timestamp":23636411,"id":2633,"parentId":2444,"tags":{},"startTime":1736835526460,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":1416450,"timestamp":23551886,"id":2444,"parentId":2428,"tags":{"page":"/admin/[user_id]/databases/[single]/tables/[single_table]/entries/[single_entry]"},"startTime":1736835526375,"traceId":"80a02e6b898c9dbf"},{"name":"is-page-static","duration":1330097,"timestamp":23652668,"id":2661,"parentId":2593,"tags":{},"startTime":1736835526476,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":1425002,"timestamp":23557890,"id":2593,"parentId":2428,"tags":{"page":"/docs/[page]/[sub-page]"},"startTime":1736835526381,"traceId":"80a02e6b898c9dbf"},{"name":"is-page-static","duration":1385238,"timestamp":23653800,"id":2662,"parentId":2594,"tags":{},"startTime":1736835526477,"traceId":"80a02e6b898c9dbf"},{"name":"check-page","duration":1481178,"timestamp":23557921,"id":2594,"parentId":2428,"tags":{"page":"/docs/[page]"},"startTime":1736835526381,"traceId":"80a02e6b898c9dbf"},{"name":"static-check","duration":1610691,"timestamp":23434290,"id":2428,"parentId":1,"tags":{},"startTime":1736835526257,"traceId":"80a02e6b898c9dbf"},{"name":"generate-required-server-files","duration":480,"timestamp":25422990,"id":2691,"parentId":1,"tags":{},"startTime":1736835528246,"traceId":"80a02e6b898c9dbf"},{"name":"write-routes-manifest","duration":2020,"timestamp":25433383,"id":2693,"parentId":1,"tags":{},"startTime":1736835528257,"traceId":"80a02e6b898c9dbf"},{"name":"load-dotenv","duration":158,"timestamp":25449436,"id":2696,"parentId":2695,"tags":{},"startTime":1736835528273,"traceId":"80a02e6b898c9dbf"},{"name":"run-export-path-map","duration":392,"timestamp":25457025,"id":2697,"parentId":2695,"tags":{},"startTime":1736835528280,"traceId":"80a02e6b898c9dbf"},{"name":"next-export","duration":13928556,"timestamp":25447640,"id":2695,"parentId":1,"tags":{},"startTime":1736835528271,"traceId":"80a02e6b898c9dbf"},{"name":"node-file-trace-build","duration":14079612,"timestamp":25424854,"id":2692,"parentId":1,"tags":{"isTurbotrace":"false"},"startTime":1736835528248,"traceId":"80a02e6b898c9dbf"},{"name":"apply-include-excludes","duration":1480,"timestamp":39504508,"id":2698,"parentId":1,"tags":{},"startTime":1736835542328,"traceId":"80a02e6b898c9dbf"},{"name":"move-exported-page","duration":572,"timestamp":39506644,"id":2699,"parentId":2694,"tags":{},"startTime":1736835542330,"traceId":"80a02e6b898c9dbf"},{"name":"move-exported-page","duration":106,"timestamp":39507241,"id":2700,"parentId":2694,"tags":{},"startTime":1736835542330,"traceId":"80a02e6b898c9dbf"},{"name":"move-exported-page","duration":112,"timestamp":39507361,"id":2701,"parentId":2694,"tags":{},"startTime":1736835542331,"traceId":"80a02e6b898c9dbf"},{"name":"move-exported-page","duration":81,"timestamp":39507482,"id":2702,"parentId":2694,"tags":{},"startTime":1736835542331,"traceId":"80a02e6b898c9dbf"},{"name":"move-exported-page","duration":83,"timestamp":39507572,"id":2703,"parentId":2694,"tags":{},"startTime":1736835542331,"traceId":"80a02e6b898c9dbf"},{"name":"move-exported-page","duration":74,"timestamp":39507668,"id":2704,"parentId":2694,"tags":{},"startTime":1736835542331,"traceId":"80a02e6b898c9dbf"},{"name":"move-exported-page","duration":80,"timestamp":39507753,"id":2705,"parentId":2694,"tags":{},"startTime":1736835542331,"traceId":"80a02e6b898c9dbf"},{"name":"move-exported-page","duration":74,"timestamp":39507846,"id":2706,"parentId":2694,"tags":{},"startTime":1736835542331,"traceId":"80a02e6b898c9dbf"},{"name":"move-exported-page","duration":67,"timestamp":39507933,"id":2707,"parentId":2694,"tags":{},"startTime":1736835542331,"traceId":"80a02e6b898c9dbf"},{"name":"static-generation","duration":14064128,"timestamp":25444197,"id":2694,"parentId":1,"tags":{},"startTime":1736835528267,"traceId":"80a02e6b898c9dbf"},{"name":"print-tree-view","duration":12751,"timestamp":39512685,"id":2708,"parentId":1,"tags":{},"startTime":1736835542336,"traceId":"80a02e6b898c9dbf"},{"name":"telemetry-flush","duration":395801,"timestamp":39525465,"id":2709,"parentId":1,"tags":{},"startTime":1736835542349,"traceId":"80a02e6b898c9dbf"},{"name":"next-build","duration":39291950,"timestamp":629364,"id":1,"tags":{"buildMode":"default","isTurboBuild":"false","version":"15.1.4","has-custom-webpack-config":"true","use-build-worker":"false"},"startTime":1736835503453,"traceId":"80a02e6b898c9dbf"}] +[{"name":"generate-buildid","duration":496,"timestamp":928556,"id":4,"parentId":1,"tags":{},"startTime":1736836792868,"traceId":"89448a764ba2dcee"},{"name":"load-custom-routes","duration":579,"timestamp":929177,"id":5,"parentId":1,"tags":{},"startTime":1736836792869,"traceId":"89448a764ba2dcee"},{"name":"create-dist-dir","duration":403,"timestamp":1000364,"id":6,"parentId":1,"tags":{},"startTime":1736836792940,"traceId":"89448a764ba2dcee"},{"name":"verify-typescript-setup","duration":623946,"timestamp":1011633,"id":7,"parentId":1,"tags":{},"startTime":1736836792951,"traceId":"89448a764ba2dcee"},{"name":"collect-pages","duration":1846,"timestamp":1635853,"id":8,"parentId":1,"tags":{},"startTime":1736836793575,"traceId":"89448a764ba2dcee"},{"name":"create-pages-mapping","duration":1252,"timestamp":1638620,"id":9,"parentId":1,"tags":{},"startTime":1736836793578,"traceId":"89448a764ba2dcee"},{"name":"public-dir-conflict-check","duration":6036,"timestamp":1640067,"id":10,"parentId":1,"tags":{},"startTime":1736836793579,"traceId":"89448a764ba2dcee"},{"name":"generate-routes-manifest","duration":5923,"timestamp":1646432,"id":11,"parentId":1,"tags":{},"startTime":1736836793586,"traceId":"89448a764ba2dcee"},{"name":"create-entrypoints","duration":119204,"timestamp":1665506,"id":14,"parentId":1,"tags":{},"startTime":1736836793605,"traceId":"89448a764ba2dcee"},{"name":"generate-webpack-config","duration":685876,"timestamp":1784763,"id":15,"parentId":13,"tags":{},"startTime":1736836793724,"traceId":"89448a764ba2dcee"},{"name":"next-trace-entrypoint-plugin","duration":2239,"timestamp":2605380,"id":17,"parentId":16,"tags":{},"startTime":1736836794545,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":183209,"timestamp":2876344,"id":212,"parentId":19,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2F_error&preferredRegion=&absolutePagePath=next%2Fdist%2Fpages%2F_error&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736836794816,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":184511,"timestamp":2878007,"id":213,"parentId":20,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2F404&preferredRegion=&absolutePagePath=private-next-pages%2F404.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736836794817,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":188200,"timestamp":2878196,"id":214,"parentId":22,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2F500&preferredRegion=&absolutePagePath=private-next-pages%2F500.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736836794818,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":189912,"timestamp":2878469,"id":215,"parentId":23,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FacceptUserInvitation&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FacceptUserInvitation.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736836794818,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":190372,"timestamp":2879376,"id":216,"parentId":24,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FaddAdminUserUser&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FaddAdminUserUser.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736836794819,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":191247,"timestamp":2879523,"id":217,"parentId":25,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FaddApiKey&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FaddApiKey.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736836794819,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":192159,"timestamp":2879636,"id":218,"parentId":26,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FaddDbUser&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FaddDbUser.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736836794819,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":207056,"timestamp":2872608,"id":211,"parentId":21,"tags":{"name":"/app/pages/_document.tsx","layer":null},"startTime":1736836794812,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":12872,"timestamp":3088895,"id":219,"parentId":27,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FaddNewMediaFolder&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FaddNewMediaFolder.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736836795028,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":13645,"timestamp":3089128,"id":220,"parentId":28,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FaddSocialLogin&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FaddSocialLogin.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736836795029,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":14443,"timestamp":3089228,"id":221,"parentId":29,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FaddTableEntry&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FaddTableEntry.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736836795029,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":15431,"timestamp":3089336,"id":222,"parentId":30,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FaddUsersTableToDatabase&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FaddUsersTableToDatabase.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736836795029,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":16303,"timestamp":3089440,"id":223,"parentId":31,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FaddUserUser&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FaddUserUser.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736836795029,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":17072,"timestamp":3089532,"id":224,"parentId":32,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FaddUserTable&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FaddUserTable.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736836795029,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":17610,"timestamp":3089619,"id":225,"parentId":33,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fadmin%2FaddUserBackup&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fadmin%2FaddUserBackup.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736836795029,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":18097,"timestamp":3089693,"id":226,"parentId":34,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fadmin%2FclearErrorLogs&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fadmin%2FclearErrorLogs.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736836795029,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":18575,"timestamp":3089769,"id":227,"parentId":35,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fadmin%2FclientError&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fadmin%2FclientError.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736836795029,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":19034,"timestamp":3089844,"id":228,"parentId":36,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fadmin%2FcreateNewBackup&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fadmin%2FcreateNewBackup.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736836795029,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":19509,"timestamp":3089928,"id":229,"parentId":37,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fadmin%2Fdocs%2F%5Baction%5D&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fadmin%2Fdocs%2F%5Baction%5D.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736836795029,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":20014,"timestamp":3090017,"id":230,"parentId":38,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fadmin%2FgetTablesForUserDatabase&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fadmin%2FgetTablesForUserDatabase.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736836795029,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":20713,"timestamp":3090116,"id":231,"parentId":39,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fadmin%2FgetUserBackups&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fadmin%2FgetUserBackups.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736836795030,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":21606,"timestamp":3090198,"id":232,"parentId":40,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fadmin%2FgetUserData&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fadmin%2FgetUserData.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736836795030,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":22326,"timestamp":3090277,"id":233,"parentId":41,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fadmin%2FgrabBackups&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fadmin%2FgrabBackups.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736836795030,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":22994,"timestamp":3090344,"id":234,"parentId":42,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fadmin%2FgrabErrorLogs&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fadmin%2FgrabErrorLogs.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736836795030,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":23777,"timestamp":3090462,"id":235,"parentId":43,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fadmin%2FgrabFile&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fadmin%2FgrabFile.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736836795030,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":25063,"timestamp":3090590,"id":236,"parentId":44,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fadmin%2FloginSuUser&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fadmin%2FloginSuUser.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736836795030,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":25981,"timestamp":3090710,"id":237,"parentId":45,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fadmin%2FrunUserDbQuery&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fadmin%2FrunUserDbQuery.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736836795030,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":26821,"timestamp":3090822,"id":238,"parentId":46,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fadmin%2FupdateEnv&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fadmin%2FupdateEnv.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736836795030,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":27534,"timestamp":3090926,"id":239,"parentId":47,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FchangeDbUserPassword&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FchangeDbUserPassword.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736836795030,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":28278,"timestamp":3091063,"id":240,"parentId":48,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FcheckDuplicateData&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FcheckDuplicateData.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736836795030,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":29015,"timestamp":3091180,"id":241,"parentId":49,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FcheckExistingFolder&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FcheckExistingFolder.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736836795031,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":29849,"timestamp":3091299,"id":242,"parentId":50,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FclientSideAuth&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FclientSideAuth.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736836795031,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":30465,"timestamp":3091432,"id":243,"parentId":51,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fconnect%2Fdisconnect&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fconnect%2Fdisconnect.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736836795031,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":31207,"timestamp":3091574,"id":244,"parentId":52,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fconnect%2Fhandshake&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fconnect%2Fhandshake.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736836795031,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":31664,"timestamp":3091760,"id":245,"parentId":53,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fconnect&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fconnect%2Findex.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736836795031,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":32227,"timestamp":3092002,"id":246,"parentId":54,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fconnect%2Fverify&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fconnect%2Fverify.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736836795031,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":32476,"timestamp":3092240,"id":247,"parentId":55,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fcontact&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fcontact.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736836795032,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":32753,"timestamp":3092407,"id":248,"parentId":56,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FdeleteApiKey&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FdeleteApiKey.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736836795032,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":33121,"timestamp":3092496,"id":249,"parentId":57,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FcreateUserDatabase&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FcreateUserDatabase.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736836795032,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":33560,"timestamp":3092578,"id":250,"parentId":58,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FdeleteDbUser&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FdeleteDbUser.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736836795032,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":33972,"timestamp":3092664,"id":251,"parentId":59,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FdeleteInvitation&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FdeleteInvitation.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736836795032,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":34377,"timestamp":3092759,"id":252,"parentId":60,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FdeleteMediaFolder&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FdeleteMediaFolder.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736836795032,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":34781,"timestamp":3092833,"id":253,"parentId":61,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FdeleteTableEntry&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FdeleteTableEntry.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736836795032,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":35153,"timestamp":3092901,"id":254,"parentId":62,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FdeleteUser&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FdeleteUser.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736836795032,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":35527,"timestamp":3092981,"id":255,"parentId":63,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FdeleteUserDatabase&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FdeleteUserDatabase.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736836795032,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":36074,"timestamp":3093068,"id":256,"parentId":64,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FdeleteUserMedia&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FdeleteUserMedia.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736836795032,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":36448,"timestamp":3093146,"id":257,"parentId":65,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FdeleteUserTable&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FdeleteUserTable.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736836795033,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":36834,"timestamp":3093235,"id":258,"parentId":66,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FdeleteUserUser&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FdeleteUserUser.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736836795033,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":37307,"timestamp":3093314,"id":259,"parentId":67,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FdownloadDatabaseSchema&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FdownloadDatabaseSchema.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736836795033,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":37846,"timestamp":3093396,"id":260,"parentId":68,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FexportDatabase&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FexportDatabase.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736836795033,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":38721,"timestamp":3093481,"id":261,"parentId":69,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Ffetch-entries-basic&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Ffetch-entries-basic.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736836795033,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":39610,"timestamp":3093561,"id":262,"parentId":70,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FgetDatabaseTables&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FgetDatabaseTables.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736836795033,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":40197,"timestamp":3093628,"id":263,"parentId":71,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fget-authorized-databases&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fget-authorized-databases.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736836795033,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":40653,"timestamp":3093695,"id":264,"parentId":72,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FgetDelegatedDatabaseToken&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FgetDelegatedDatabaseToken.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736836795033,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":41011,"timestamp":3093777,"id":265,"parentId":73,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FgetDelegatedDatabases&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FgetDelegatedDatabases.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736836795033,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":41398,"timestamp":3093857,"id":266,"parentId":74,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FgetDiskUsage&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FgetDiskUsage.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736836795033,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":41776,"timestamp":3093927,"id":267,"parentId":75,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FgetUserDatabaseTables&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FgetUserDatabaseTables.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736836795033,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":42145,"timestamp":3094012,"id":268,"parentId":76,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FgetUserDatabases&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FgetUserDatabases.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736836795033,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":42538,"timestamp":3094077,"id":269,"parentId":77,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FgetUserMedia&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FgetUserMedia.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736836795033,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":42872,"timestamp":3094146,"id":270,"parentId":78,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FgetUserSchemaData&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FgetUserSchemaData.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736836795034,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":43192,"timestamp":3094228,"id":271,"parentId":79,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fhealthcheck&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fhealthcheck.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736836795034,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":43485,"timestamp":3094304,"id":272,"parentId":80,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FimportDatabase&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FimportDatabase.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736836795034,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":43818,"timestamp":3094377,"id":273,"parentId":81,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FimportDatabaseSchema&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FimportDatabaseSchema.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736836795034,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":44108,"timestamp":3094458,"id":274,"parentId":82,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FinfiniteScroll&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FinfiniteScroll.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736836795034,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":44404,"timestamp":3094533,"id":275,"parentId":83,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FlogoutUser&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FlogoutUser.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736836795034,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":44730,"timestamp":3094606,"id":276,"parentId":84,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FloginUser&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FloginUser.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736836795034,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":45088,"timestamp":3094678,"id":277,"parentId":85,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fmedia%2FaddPrivateMedia&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fmedia%2FaddPrivateMedia.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736836795034,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":45482,"timestamp":3094763,"id":278,"parentId":86,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fmedia%2FgetPrivateMedia&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fmedia%2FgetPrivateMedia.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736836795034,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":45905,"timestamp":3094849,"id":279,"parentId":87,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FpurgeDb&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FpurgeDb.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736836795034,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":46454,"timestamp":3094943,"id":280,"parentId":88,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fquery%2F%5Buser_id%5D%2Fget-schema&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fquery%2F%5Buser_id%5D%2Fget-schema.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736836795034,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":46938,"timestamp":3095021,"id":281,"parentId":89,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fquery%2F%5Buser_id%5D%2Fget&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fquery%2F%5Buser_id%5D%2Fget.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736836795034,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":7069,"timestamp":3230492,"id":282,"parentId":90,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fquery%2F%5Buser_id%5D%2Fupdate-schema-from-single-database&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fquery%2F%5Buser_id%5D%2Fupdate-schema-from-single-database.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736836795170,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":7241,"timestamp":3230873,"id":283,"parentId":91,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FqueryEntriesSearchTerm&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FqueryEntriesSearchTerm.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736836795170,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":7451,"timestamp":3231138,"id":284,"parentId":92,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FreAuthenticateUser&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FreAuthenticateUser.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736836795171,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":7696,"timestamp":3231362,"id":285,"parentId":93,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FrefreshEntry&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FrefreshEntry.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736836795171,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":7888,"timestamp":3231561,"id":286,"parentId":94,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FregisterUser&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FregisterUser.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736836795171,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":8082,"timestamp":3231728,"id":287,"parentId":95,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FrenameMedia&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FrenameMedia.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736836795171,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":8282,"timestamp":3231892,"id":288,"parentId":96,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FresetDelegatedDatabaseToken&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FresetDelegatedDatabaseToken.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736836795171,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":8589,"timestamp":3232042,"id":289,"parentId":97,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FresetPassword&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FresetPassword.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736836795171,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":8772,"timestamp":3232180,"id":290,"parentId":98,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FrunUserDbQuery&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FrunUserDbQuery.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736836795172,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":8980,"timestamp":3232303,"id":291,"parentId":99,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FsendEmailVerificationLink&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FsendEmailVerificationLink.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736836795172,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":9160,"timestamp":3232433,"id":292,"parentId":100,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FsendPasswordResetLink&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FsendPasswordResetLink.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736836795172,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":9370,"timestamp":3232557,"id":293,"parentId":101,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fsocial-login%2Ffacebook-auth&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fsocial-login%2Ffacebook-auth.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736836795172,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":9595,"timestamp":3232664,"id":294,"parentId":102,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fsocial-login%2Fgithub-auth&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fsocial-login%2Fgithub-auth.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736836795172,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":9833,"timestamp":3232758,"id":295,"parentId":103,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fsocial-login%2Fgoogle-auth&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fsocial-login%2Fgoogle-auth.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736836795172,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":10039,"timestamp":3232860,"id":296,"parentId":104,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fsocial-login%2Futils%2FcheckEmail&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fsocial-login%2Futils%2FcheckEmail.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736836795172,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":10247,"timestamp":3232975,"id":297,"parentId":105,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fsocial-login%2Futils%2FcheckSocialId&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fsocial-login%2Futils%2FcheckSocialId.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736836795172,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":10461,"timestamp":3233077,"id":298,"parentId":106,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fsocial-login%2Futils%2FgetEmailFromSocialId&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fsocial-login%2Futils%2FgetEmailFromSocialId.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736836795172,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":10816,"timestamp":3233173,"id":299,"parentId":107,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fsql-users%2Fcreate&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fsql-users%2Fcreate.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736836795173,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":11128,"timestamp":3233264,"id":300,"parentId":108,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fsql-users%2Fdelete&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fsql-users%2Fdelete.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736836795173,"traceId":"89448a764ba2dcee"}] +[{"name":"build-module","duration":11645,"timestamp":3233379,"id":301,"parentId":109,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fsql-users%2Fupdate&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fsql-users%2Fupdate.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736836795173,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":11888,"timestamp":3233462,"id":302,"parentId":110,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fstream%2F%5Bpath%5D&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fstream%2F%5Bpath%5D.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736836795173,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":12115,"timestamp":3233553,"id":303,"parentId":111,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fsync-table-data&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fsync-table-data.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736836795173,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":12342,"timestamp":3233647,"id":304,"parentId":112,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Ftest%2Fcors&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Ftest%2Fcors.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736836795173,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":12594,"timestamp":3233770,"id":305,"parentId":113,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Ftest%2Fmail&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Ftest%2Fmail.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736836795173,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":12894,"timestamp":3233884,"id":306,"parentId":114,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Funsubscribe&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Funsubscribe.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736836795173,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":13340,"timestamp":3233972,"id":307,"parentId":115,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FupdateAdminUserAccess&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FupdateAdminUserAccess.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736836795173,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":13878,"timestamp":3234067,"id":308,"parentId":116,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FupdateClonedTableForeignKeys&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FupdateClonedTableForeignKeys.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736836795173,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":14622,"timestamp":3234172,"id":309,"parentId":117,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FupdateDbSchemaDataForUser&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FupdateDbSchemaDataForUser.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736836795174,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":15195,"timestamp":3234260,"id":310,"parentId":118,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FupdateDbUser&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FupdateDbUser.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736836795174,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":15745,"timestamp":3234366,"id":311,"parentId":119,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FupdateTableEntry&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FupdateTableEntry.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736836795174,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":16230,"timestamp":3234509,"id":312,"parentId":120,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FupdateUser&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FupdateUser.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736836795174,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":16568,"timestamp":3234716,"id":313,"parentId":121,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FupdateUserDatabase&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FupdateUserDatabase.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736836795174,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":17014,"timestamp":3234828,"id":314,"parentId":122,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FupdateUserUser&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FupdateUserUser.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736836795174,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":17435,"timestamp":3234920,"id":315,"parentId":123,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fuser%2F%5Buser_id%5D%2Fadd-user&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fuser%2F%5Buser_id%5D%2Fadd-user.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736836795174,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":7807,"timestamp":3298103,"id":316,"parentId":124,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fuser-schema%2Freplace-database-schema&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fuser-schema%2Freplace-database-schema.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736836795237,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":7716,"timestamp":3298608,"id":317,"parentId":125,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fuser%2F%5Buser_id%5D%2Fdelete-user&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fuser%2F%5Buser_id%5D%2Fdelete-user.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736836795238,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":7874,"timestamp":3298794,"id":318,"parentId":126,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fuser%2F%5Buser_id%5D%2Fget-user&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fuser%2F%5Buser_id%5D%2Fget-user.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736836795238,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":8040,"timestamp":3298954,"id":319,"parentId":127,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FupdateUserTable&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FupdateUserTable.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736836795238,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":8300,"timestamp":3299079,"id":320,"parentId":128,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fuser%2F%5Buser_id%5D%2Fgithub-login&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fuser%2F%5Buser_id%5D%2Fgithub-login.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736836795238,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":8512,"timestamp":3299192,"id":321,"parentId":129,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fuser%2F%5Buser_id%5D%2Fgoogle-login&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fuser%2F%5Buser_id%5D%2Fgoogle-login.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736836795239,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":8715,"timestamp":3299316,"id":322,"parentId":130,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fuser%2F%5Buser_id%5D%2Fgrab-google-user-from-token&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fuser%2F%5Buser_id%5D%2Fgrab-google-user-from-token.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736836795239,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":8938,"timestamp":3299431,"id":323,"parentId":131,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fuser%2F%5Buser_id%5D%2Flogin-user&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fuser%2F%5Buser_id%5D%2Flogin-user.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736836795239,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":7016,"timestamp":3317857,"id":324,"parentId":132,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fuser%2F%5Buser_id%5D%2Freauth-user&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fuser%2F%5Buser_id%5D%2Freauth-user.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736836795257,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":7391,"timestamp":3318148,"id":325,"parentId":133,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fuser%2F%5Buser_id%5D%2Fsend-email-code&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fuser%2F%5Buser_id%5D%2Fsend-email-code.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736836795258,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":7916,"timestamp":3318239,"id":326,"parentId":134,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fuser%2F%5Buser_id%5D%2Fupdate-user&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fuser%2F%5Buser_id%5D%2Fupdate-user.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736836795258,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":8404,"timestamp":3318326,"id":327,"parentId":135,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fwebhooks%2Fgithub-push&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fwebhooks%2Fgithub-push.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736836795258,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":9427,"timestamp":3318407,"id":328,"parentId":137,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fabout&preferredRegion=&absolutePagePath=private-next-pages%2Fabout.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736836795258,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":7319,"timestamp":3335800,"id":329,"parentId":138,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fapi-keys&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fapi-keys%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736836795275,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":2482,"timestamp":3343840,"id":330,"parentId":139,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fconnect&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fconnect%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736836795283,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":3025,"timestamp":3344102,"id":331,"parentId":140,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fedit-database&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fedit-database.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736836795283,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":5911,"timestamp":3347562,"id":332,"parentId":141,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fconnect&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fconnect.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736836795287,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":6656,"timestamp":3347800,"id":333,"parentId":142,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fschema&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fschema.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736836795287,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":7375,"timestamp":3348007,"id":334,"parentId":143,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736836795287,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":8291,"timestamp":3348185,"id":335,"parentId":144,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fshell&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fshell.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736836795288,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":8969,"timestamp":3348389,"id":336,"parentId":145,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Fedit-table&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Fedit-table.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736836795288,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":3535,"timestamp":3371432,"id":337,"parentId":146,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Fentries%2F%5Bsingle_entry%5D&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Fentries%2F%5Bsingle_entry%5D.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736836795311,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":3970,"timestamp":3371757,"id":338,"parentId":147,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Fentries%2Fadd-entry&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Fentries%2Fadd-entry.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736836795311,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":4596,"timestamp":3371940,"id":339,"parentId":148,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Ffields&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Ffields.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736836795311,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":5243,"timestamp":3372057,"id":340,"parentId":149,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Fentries&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Fentries%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736836795311,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":5896,"timestamp":3372160,"id":341,"parentId":150,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736836795312,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":6493,"timestamp":3372270,"id":342,"parentId":151,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2Fadd-table&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2Fadd-table.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736836795312,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":7240,"timestamp":3372359,"id":343,"parentId":152,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers%2F%5Buser%5D%2Fchange-password&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers%2F%5Buser%5D%2Fchange-password.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736836795312,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":8240,"timestamp":3372460,"id":344,"parentId":153,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736836795312,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":9483,"timestamp":3372611,"id":345,"parentId":154,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers%2Fadd-social-logins&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers%2Fadd-social-logins.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736836795312,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":9246,"timestamp":3400062,"id":346,"parentId":155,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers%2F%5Buser%5D&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers%2F%5Buser%5D%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736836795339,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":9377,"timestamp":3400622,"id":347,"parentId":156,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736836795340,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":9742,"timestamp":3400917,"id":348,"parentId":157,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers%2Fadd-user&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers%2Fadd-user.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736836795340,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":10199,"timestamp":3401149,"id":349,"parentId":158,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2Fadd-database&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2Fadd-database.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736836795341,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":10716,"timestamp":3401348,"id":350,"parentId":159,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736836795341,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":11307,"timestamp":3401499,"id":351,"parentId":160,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736836795341,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":12231,"timestamp":3401681,"id":352,"parentId":161,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fmedia%2F%5B...folder%5D&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fmedia%2F%5B...folder%5D.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736836795341,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":13583,"timestamp":3401836,"id":353,"parentId":162,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fmedia&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fmedia%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736836795341,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":14879,"timestamp":3401991,"id":354,"parentId":163,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fschema&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fschema.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736836795341,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":15782,"timestamp":3402144,"id":355,"parentId":164,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fsettings&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fsettings.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736836795342,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":16480,"timestamp":3402299,"id":356,"parentId":165,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fusers%2Fdatabases%2F%5Bdatabase%5D%2F%5Buser%5D&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fusers%2Fdatabases%2F%5Bdatabase%5D%2F%5Buser%5D.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736836795342,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":16999,"timestamp":3402494,"id":357,"parentId":166,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fusers%2Fadd-user&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fusers%2Fadd-user.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736836795342,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":17546,"timestamp":3402685,"id":358,"parentId":167,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fusers%2Fdatabases%2F%5Bdatabase%5D&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fusers%2Fdatabases%2F%5Bdatabase%5D%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736836795342,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":18194,"timestamp":3402862,"id":359,"parentId":168,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fusers%2Fdatabases&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fusers%2Fdatabases%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736836795342,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":18831,"timestamp":3403042,"id":360,"parentId":169,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fusers&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fusers%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736836795342,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":19478,"timestamp":3403182,"id":361,"parentId":170,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fadmin&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736836795343,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":19847,"timestamp":3403317,"id":362,"parentId":171,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FaddUserMedia&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FaddUserMedia.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736836795343,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":3200,"timestamp":3456732,"id":363,"parentId":172,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FexportTableData&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FexportTableData.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736836795396,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":3380,"timestamp":3456937,"id":364,"parentId":173,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Ffetch-media&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Ffetch-media.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736836795396,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":3626,"timestamp":3457007,"id":365,"parentId":174,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fquery%2F%5Buser_id%5D%2Fadd-file&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fquery%2F%5Buser_id%5D%2Fadd-file.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736836795396,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":3825,"timestamp":3457078,"id":366,"parentId":175,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fquery%2F%5Buser_id%5D%2Fadd-image&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fquery%2F%5Buser_id%5D%2Fadd-image.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736836795397,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":3978,"timestamp":3457189,"id":367,"parentId":176,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fquery%2F%5Buser_id%5D%2Fget-private-file&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fquery%2F%5Buser_id%5D%2Fget-private-file.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736836795397,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":4216,"timestamp":3457260,"id":368,"parentId":177,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fquery%2F%5Buser_id%5D%2Fdelete-file&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fquery%2F%5Buser_id%5D%2Fdelete-file.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736836795397,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":4443,"timestamp":3457324,"id":369,"parentId":178,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fquery%2F%5Buser_id%5D%2Fpost&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fquery%2F%5Buser_id%5D%2Fpost.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736836795397,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":4956,"timestamp":3457385,"id":370,"parentId":179,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fblog&preferredRegion=&absolutePagePath=private-next-pages%2Fblog%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736836795397,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":5629,"timestamp":3457481,"id":371,"parentId":180,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fcontact&preferredRegion=&absolutePagePath=private-next-pages%2Fcontact.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736836795397,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":6360,"timestamp":3457578,"id":372,"parentId":181,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fcreate-account&preferredRegion=&absolutePagePath=private-next-pages%2Fcreate-account.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736836795397,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":7198,"timestamp":3457663,"id":373,"parentId":182,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fdocs%2F%5Bpage%5D%2F%5Bsub-page%5D&preferredRegion=&absolutePagePath=private-next-pages%2Fdocs%2F%5Bpage%5D%2F%5Bsub-page%5D%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736836795397,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":7935,"timestamp":3457774,"id":374,"parentId":183,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fdocs&preferredRegion=&absolutePagePath=private-next-pages%2Fdocs%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736836795397,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":8562,"timestamp":3457856,"id":375,"parentId":184,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fdocs%2F%5Bpage%5D&preferredRegion=&absolutePagePath=private-next-pages%2Fdocs%2F%5Bpage%5D%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736836795397,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":9075,"timestamp":3457940,"id":376,"parentId":185,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2F&preferredRegion=&absolutePagePath=private-next-pages%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736836795397,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":9602,"timestamp":3458008,"id":377,"parentId":186,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Femail-verification&preferredRegion=&absolutePagePath=private-next-pages%2Femail-verification%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736836795397,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":10094,"timestamp":3458091,"id":378,"parentId":187,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Flogout&preferredRegion=&absolutePagePath=private-next-pages%2Flogout.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736836795397,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":10489,"timestamp":3458207,"id":379,"parentId":188,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Flogin&preferredRegion=&absolutePagePath=private-next-pages%2Flogin.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736836795398,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":10968,"timestamp":3458302,"id":380,"parentId":189,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fprivacy&preferredRegion=&absolutePagePath=private-next-pages%2Fprivacy.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736836795398,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":11428,"timestamp":3458388,"id":381,"parentId":190,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fredirect&preferredRegion=&absolutePagePath=private-next-pages%2Fredirect.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736836795398,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":11963,"timestamp":3458478,"id":382,"parentId":191,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fsend-password-reset-link&preferredRegion=&absolutePagePath=private-next-pages%2Fsend-password-reset-link.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736836795398,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":12389,"timestamp":3458593,"id":383,"parentId":192,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fsu%2Fconsole&preferredRegion=&absolutePagePath=private-next-pages%2Fsu%2Fconsole.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736836795398,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":369,"timestamp":3512464,"id":402,"parentId":211,"tags":{"name":"react/jsx-runtime","layer":null},"startTime":1736836795452,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":22,"timestamp":3512869,"id":403,"parentId":211,"tags":{"name":"react","layer":null},"startTime":1736836795452,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":11575,"timestamp":3510589,"id":384,"parentId":193,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Freset-password&preferredRegion=&absolutePagePath=private-next-pages%2Freset-password.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736836795450,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":12185,"timestamp":3510818,"id":385,"parentId":194,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fsu%2Fbackups&preferredRegion=&absolutePagePath=private-next-pages%2Fsu%2Fbackups.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736836795450,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":12939,"timestamp":3510954,"id":386,"parentId":195,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fsu%2Fdocs%2Fcreate-page&preferredRegion=&absolutePagePath=private-next-pages%2Fsu%2Fdocs%2Fcreate-page.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736836795450,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":13758,"timestamp":3511053,"id":387,"parentId":196,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fsu%2Fdocs%2Fedit-page&preferredRegion=&absolutePagePath=private-next-pages%2Fsu%2Fdocs%2Fedit-page.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736836795450,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":14840,"timestamp":3511139,"id":388,"parentId":197,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fsu%2Fdocs%2Fpages%2F%5Bid%5D&preferredRegion=&absolutePagePath=private-next-pages%2Fsu%2Fdocs%2Fpages%2F%5Bid%5D.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736836795451,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":16054,"timestamp":3511240,"id":389,"parentId":198,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fsu%2Fdocs&preferredRegion=&absolutePagePath=private-next-pages%2Fsu%2Fdocs%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736836795451,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":16816,"timestamp":3511327,"id":390,"parentId":199,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fsu%2Fenvar&preferredRegion=&absolutePagePath=private-next-pages%2Fsu%2Fenvar.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736836795451,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":17592,"timestamp":3511409,"id":391,"parentId":200,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fsu%2Fdocs%2Fpages&preferredRegion=&absolutePagePath=private-next-pages%2Fsu%2Fdocs%2Fpages%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736836795451,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":18357,"timestamp":3511490,"id":392,"parentId":201,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fsu%2Ferror-logs&preferredRegion=&absolutePagePath=private-next-pages%2Fsu%2Ferror-logs.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736836795451,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":19167,"timestamp":3511574,"id":393,"parentId":202,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fsu&preferredRegion=&absolutePagePath=private-next-pages%2Fsu%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736836795451,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":19980,"timestamp":3511656,"id":394,"parentId":203,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fsu%2Fload-balancing&preferredRegion=&absolutePagePath=private-next-pages%2Fsu%2Fload-balancing.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736836795451,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":20764,"timestamp":3511734,"id":395,"parentId":204,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fsu%2Fservers&preferredRegion=&absolutePagePath=private-next-pages%2Fsu%2Fservers.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736836795451,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":21469,"timestamp":3511821,"id":396,"parentId":205,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fsu%2Flogin&preferredRegion=&absolutePagePath=private-next-pages%2Fsu%2Flogin.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736836795451,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":22108,"timestamp":3511908,"id":397,"parentId":206,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fsu%2Fusers%2F%5Bsingle%5D&preferredRegion=&absolutePagePath=private-next-pages%2Fsu%2Fusers%2F%5Bsingle%5D.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736836795451,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":22580,"timestamp":3511993,"id":398,"parentId":207,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fsu%2Fusers&preferredRegion=&absolutePagePath=private-next-pages%2Fsu%2Fusers%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736836795451,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":23078,"timestamp":3512086,"id":399,"parentId":208,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fsu%2Fusers%2Fnew&preferredRegion=&absolutePagePath=private-next-pages%2Fsu%2Fusers%2Fnew.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736836795451,"traceId":"89448a764ba2dcee"}] +[{"name":"build-module","duration":24369,"timestamp":3512166,"id":400,"parentId":209,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fterms&preferredRegion=&absolutePagePath=private-next-pages%2Fterms.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736836795452,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":25198,"timestamp":3512240,"id":401,"parentId":210,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Funsubscribe&preferredRegion=&absolutePagePath=private-next-pages%2Funsubscribe.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736836795452,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":27915,"timestamp":3513000,"id":405,"parentId":212,"tags":{"name":"/app/node_modules/next/dist/server/route-kind.js","layer":null},"startTime":1736836795452,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":27345,"timestamp":3514483,"id":408,"parentId":215,"tags":{"name":"/app/node_modules/next/dist/server/route-kind.js","layer":"api"},"startTime":1736836795454,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":30950,"timestamp":3514364,"id":407,"parentId":212,"tags":{"name":"/app/node_modules/next/dist/build/templates/helpers.js","layer":null},"startTime":1736836795454,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":30991,"timestamp":3515199,"id":409,"parentId":215,"tags":{"name":"/app/node_modules/next/dist/build/templates/helpers.js","layer":"api"},"startTime":1736836795455,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":36726,"timestamp":3512903,"id":404,"parentId":136,"tags":{"name":"/app/pages/_app.tsx","layer":null},"startTime":1736836795452,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":42649,"timestamp":3514215,"id":406,"parentId":212,"tags":{"name":"/app/node_modules/next/dist/pages/_error.js","layer":null},"startTime":1736836795454,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":6073,"timestamp":3594433,"id":410,"parentId":212,"tags":{"name":"/app/node_modules/next/dist/server/route-modules/pages/module.compiled.js","layer":null},"startTime":1736836795534,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":6385,"timestamp":3594562,"id":411,"parentId":211,"tags":{"name":"/app/node_modules/next/document.js","layer":null},"startTime":1736836795534,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":6924,"timestamp":3594584,"id":412,"parentId":215,"tags":{"name":"/app/node_modules/next/dist/server/route-modules/pages-api/module.compiled.js","layer":"api"},"startTime":1736836795534,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":8334,"timestamp":3594756,"id":417,"parentId":216,"tags":{"name":"/app/pages/api/addAdminUserUser.ts","layer":"api"},"startTime":1736836795534,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":10292,"timestamp":3594786,"id":418,"parentId":218,"tags":{"name":"/app/pages/api/addDbUser.ts","layer":"api"},"startTime":1736836795534,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":11539,"timestamp":3594803,"id":419,"parentId":219,"tags":{"name":"/app/pages/api/addNewMediaFolder.ts","layer":"api"},"startTime":1736836795534,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":14134,"timestamp":3594715,"id":415,"parentId":215,"tags":{"name":"/app/pages/api/acceptUserInvitation.ts","layer":"api"},"startTime":1736836795534,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":15322,"timestamp":3594632,"id":413,"parentId":213,"tags":{"name":"/app/pages/404.tsx","layer":null},"startTime":1736836795534,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":16278,"timestamp":3594685,"id":414,"parentId":214,"tags":{"name":"/app/pages/500.tsx","layer":null},"startTime":1736836795534,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":20017,"timestamp":3594740,"id":416,"parentId":217,"tags":{"name":"/app/pages/api/addApiKey.ts","layer":"api"},"startTime":1736836795534,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":20919,"timestamp":3594912,"id":426,"parentId":226,"tags":{"name":"/app/pages/api/admin/clearErrorLogs.ts","layer":"api"},"startTime":1736836795534,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":23256,"timestamp":3594937,"id":428,"parentId":231,"tags":{"name":"/app/pages/api/admin/getUserBackups.ts","layer":"api"},"startTime":1736836795534,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":25190,"timestamp":3594954,"id":429,"parentId":228,"tags":{"name":"/app/pages/api/admin/createNewBackup.ts","layer":"api"},"startTime":1736836795534,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":26592,"timestamp":3594866,"id":423,"parentId":221,"tags":{"name":"/app/pages/api/addTableEntry.ts","layer":"api"},"startTime":1736836795534,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":27490,"timestamp":3594925,"id":427,"parentId":227,"tags":{"name":"/app/pages/api/admin/clientError.ts","layer":"api"},"startTime":1736836795534,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":29381,"timestamp":3594850,"id":422,"parentId":223,"tags":{"name":"/app/pages/api/addUserUser.ts","layer":"api"},"startTime":1736836795534,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":32195,"timestamp":3594880,"id":424,"parentId":220,"tags":{"name":"/app/pages/api/addSocialLogin.ts","layer":"api"},"startTime":1736836795534,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":35013,"timestamp":3594892,"id":425,"parentId":225,"tags":{"name":"/app/pages/api/admin/addUserBackup.ts","layer":"api"},"startTime":1736836795534,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":39077,"timestamp":3594819,"id":420,"parentId":224,"tags":{"name":"/app/pages/api/addUserTable.ts","layer":"api"},"startTime":1736836795534,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":41658,"timestamp":3594832,"id":421,"parentId":222,"tags":{"name":"/app/pages/api/addUsersTableToDatabase.ts","layer":"api"},"startTime":1736836795534,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":2461,"timestamp":3667350,"id":431,"parentId":233,"tags":{"name":"/app/pages/api/admin/grabBackups.ts","layer":"api"},"startTime":1736836795607,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":2936,"timestamp":3667247,"id":430,"parentId":234,"tags":{"name":"/app/pages/api/admin/grabErrorLogs.ts","layer":"api"},"startTime":1736836795607,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":3771,"timestamp":3667419,"id":433,"parentId":239,"tags":{"name":"/app/pages/api/changeDbUserPassword.ts","layer":"api"},"startTime":1736836795607,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":4464,"timestamp":3667373,"id":432,"parentId":230,"tags":{"name":"/app/pages/api/admin/getTablesForUserDatabase.ts","layer":"api"},"startTime":1736836795607,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":7344,"timestamp":3673379,"id":434,"parentId":240,"tags":{"name":"/app/pages/api/checkDuplicateData.ts","layer":"api"},"startTime":1736836795613,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":9684,"timestamp":3673436,"id":435,"parentId":232,"tags":{"name":"/app/pages/api/admin/getUserData.ts","layer":"api"},"startTime":1736836795613,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":9201,"timestamp":3674807,"id":437,"parentId":241,"tags":{"name":"/app/pages/api/checkExistingFolder.ts","layer":"api"},"startTime":1736836795614,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":10540,"timestamp":3674741,"id":436,"parentId":229,"tags":{"name":"/app/pages/api/admin/docs/[action].ts","layer":"api"},"startTime":1736836795614,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":10134,"timestamp":3688784,"id":438,"parentId":242,"tags":{"name":"/app/pages/api/clientSideAuth.ts","layer":"api"},"startTime":1736836795628,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":10557,"timestamp":3688914,"id":439,"parentId":251,"tags":{"name":"/app/pages/api/deleteInvitation.ts","layer":"api"},"startTime":1736836795628,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":8643,"timestamp":3691753,"id":443,"parentId":235,"tags":{"name":"/app/pages/api/admin/grabFile.ts","layer":"api"},"startTime":1736836795631,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":9172,"timestamp":3691737,"id":442,"parentId":250,"tags":{"name":"/app/pages/api/deleteDbUser.ts","layer":"api"},"startTime":1736836795631,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":10015,"timestamp":3691838,"id":445,"parentId":236,"tags":{"name":"/app/pages/api/admin/loginSuUser.ts","layer":"api"},"startTime":1736836795631,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":10666,"timestamp":3691805,"id":444,"parentId":237,"tags":{"name":"/app/pages/api/admin/runUserDbQuery.ts","layer":"api"},"startTime":1736836795631,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":11432,"timestamp":3691703,"id":441,"parentId":247,"tags":{"name":"/app/pages/api/contact.ts","layer":"api"},"startTime":1736836795631,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":12314,"timestamp":3691654,"id":440,"parentId":248,"tags":{"name":"/app/pages/api/deleteApiKey.ts","layer":"api"},"startTime":1736836795631,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":13564,"timestamp":3737063,"id":448,"parentId":238,"tags":{"name":"/app/pages/api/admin/updateEnv.ts","layer":"api"},"startTime":1736836795676,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":15875,"timestamp":3737040,"id":447,"parentId":254,"tags":{"name":"/app/pages/api/deleteUser.ts","layer":"api"},"startTime":1736836795676,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":19062,"timestamp":3736935,"id":446,"parentId":249,"tags":{"name":"/app/pages/api/createUserDatabase.ts","layer":"api"},"startTime":1736836795676,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":4038,"timestamp":3816543,"id":449,"parentId":255,"tags":{"name":"/app/pages/api/deleteUserDatabase.ts","layer":"api"},"startTime":1736836795756,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":4539,"timestamp":3816700,"id":450,"parentId":253,"tags":{"name":"/app/pages/api/deleteTableEntry.ts","layer":"api"},"startTime":1736836795756,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":11589,"timestamp":3826992,"id":456,"parentId":260,"tags":{"name":"/app/pages/api/exportDatabase.ts","layer":"api"},"startTime":1736836795766,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":12272,"timestamp":3827020,"id":459,"parentId":244,"tags":{"name":"/app/pages/api/connect/handshake.ts","layer":"api"},"startTime":1736836795766,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":12900,"timestamp":3827002,"id":457,"parentId":262,"tags":{"name":"/app/pages/api/getDatabaseTables.ts","layer":"api"},"startTime":1736836795766,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":13391,"timestamp":3827011,"id":458,"parentId":243,"tags":{"name":"/app/pages/api/connect/disconnect.ts","layer":"api"},"startTime":1736836795766,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":14298,"timestamp":3826907,"id":452,"parentId":261,"tags":{"name":"/app/pages/api/fetch-entries-basic.ts","layer":"api"},"startTime":1736836795766,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":14853,"timestamp":3827031,"id":460,"parentId":245,"tags":{"name":"/app/pages/api/connect/index.ts","layer":"api"},"startTime":1736836795766,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":15997,"timestamp":3826921,"id":453,"parentId":256,"tags":{"name":"/app/pages/api/deleteUserMedia.ts","layer":"api"},"startTime":1736836795766,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":16744,"timestamp":3826968,"id":455,"parentId":263,"tags":{"name":"/app/pages/api/get-authorized-databases.ts","layer":"api"},"startTime":1736836795766,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":17668,"timestamp":3826931,"id":454,"parentId":264,"tags":{"name":"/app/pages/api/getDelegatedDatabaseToken.ts","layer":"api"},"startTime":1736836795766,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":18721,"timestamp":3827041,"id":461,"parentId":246,"tags":{"name":"/app/pages/api/connect/verify.ts","layer":"api"},"startTime":1736836795766,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":20677,"timestamp":3826852,"id":451,"parentId":252,"tags":{"name":"/app/pages/api/deleteMediaFolder.ts","layer":"api"},"startTime":1736836795766,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":20765,"timestamp":3827258,"id":471,"parentId":269,"tags":{"name":"/app/pages/api/getUserMedia.ts","layer":"api"},"startTime":1736836795767,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":21394,"timestamp":3827202,"id":467,"parentId":267,"tags":{"name":"/app/pages/api/getUserDatabaseTables.ts","layer":"api"},"startTime":1736836795767,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":22513,"timestamp":3827078,"id":464,"parentId":258,"tags":{"name":"/app/pages/api/deleteUserUser.ts","layer":"api"},"startTime":1736836795766,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":23586,"timestamp":3827268,"id":472,"parentId":272,"tags":{"name":"/app/pages/api/importDatabase.ts","layer":"api"},"startTime":1736836795767,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":24819,"timestamp":3827054,"id":462,"parentId":259,"tags":{"name":"/app/pages/api/downloadDatabaseSchema.ts","layer":"api"},"startTime":1736836795766,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":25630,"timestamp":3827065,"id":463,"parentId":265,"tags":{"name":"/app/pages/api/getDelegatedDatabases.ts","layer":"api"},"startTime":1736836795766,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":25878,"timestamp":3827215,"id":468,"parentId":268,"tags":{"name":"/app/pages/api/getUserDatabases.ts","layer":"api"},"startTime":1736836795767,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":27191,"timestamp":3827233,"id":469,"parentId":274,"tags":{"name":"/app/pages/api/infiniteScroll.ts","layer":"api"},"startTime":1736836795767,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":28004,"timestamp":3827244,"id":470,"parentId":273,"tags":{"name":"/app/pages/api/importDatabaseSchema.ts","layer":"api"},"startTime":1736836795767,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":29865,"timestamp":3827131,"id":465,"parentId":257,"tags":{"name":"/app/pages/api/deleteUserTable.ts","layer":"api"},"startTime":1736836795767,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":31872,"timestamp":3827153,"id":466,"parentId":266,"tags":{"name":"/app/pages/api/getDiskUsage.ts","layer":"api"},"startTime":1736836795767,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":22533,"timestamp":3886557,"id":473,"parentId":271,"tags":{"name":"/app/pages/api/healthcheck.ts","layer":"api"},"startTime":1736836795826,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":22836,"timestamp":3886674,"id":475,"parentId":275,"tags":{"name":"/app/pages/api/logoutUser.ts","layer":"api"},"startTime":1736836795826,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":23350,"timestamp":3886651,"id":474,"parentId":270,"tags":{"name":"/app/pages/api/getUserSchemaData.ts","layer":"api"},"startTime":1736836795826,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":25184,"timestamp":3886693,"id":476,"parentId":276,"tags":{"name":"/app/pages/api/loginUser.ts","layer":"api"},"startTime":1736836795826,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":24905,"timestamp":3927657,"id":529,"parentId":404,"tags":{"name":"/app/node_modules/next/script.js","layer":null},"startTime":1736836795867,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":26644,"timestamp":3926701,"id":486,"parentId":289,"tags":{"name":"/app/pages/api/resetPassword.ts","layer":"api"},"startTime":1736836795866,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":27314,"timestamp":3926503,"id":477,"parentId":284,"tags":{"name":"/app/pages/api/reAuthenticateUser.ts","layer":"api"},"startTime":1736836795866,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":27606,"timestamp":3926673,"id":485,"parentId":288,"tags":{"name":"/app/pages/api/resetDelegatedDatabaseToken.ts","layer":"api"},"startTime":1736836795866,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":28113,"timestamp":3926739,"id":488,"parentId":291,"tags":{"name":"/app/pages/api/sendEmailVerificationLink.ts","layer":"api"},"startTime":1736836795866,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":28604,"timestamp":3926715,"id":487,"parentId":290,"tags":{"name":"/app/pages/api/runUserDbQuery.ts","layer":"api"},"startTime":1736836795866,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":29243,"timestamp":3926662,"id":484,"parentId":278,"tags":{"name":"/app/pages/api/media/getPrivateMedia.ts","layer":"api"},"startTime":1736836795866,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":29817,"timestamp":3926772,"id":489,"parentId":292,"tags":{"name":"/app/pages/api/sendPasswordResetLink.ts","layer":"api"},"startTime":1736836795866,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":30671,"timestamp":3926601,"id":479,"parentId":279,"tags":{"name":"/app/pages/api/purgeDb.ts","layer":"api"},"startTime":1736836795866,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":31352,"timestamp":3926624,"id":481,"parentId":283,"tags":{"name":"/app/pages/api/queryEntriesSearchTerm.ts","layer":"api"},"startTime":1736836795866,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":31957,"timestamp":3926638,"id":482,"parentId":285,"tags":{"name":"/app/pages/api/refreshEntry.ts","layer":"api"},"startTime":1736836795866,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":32966,"timestamp":3926580,"id":478,"parentId":287,"tags":{"name":"/app/pages/api/renameMedia.ts","layer":"api"},"startTime":1736836795866,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":32931,"timestamp":3926951,"id":497,"parentId":296,"tags":{"name":"/app/pages/api/social-login/utils/checkEmail.ts","layer":"api"},"startTime":1736836795866,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":32925,"timestamp":3927351,"id":516,"parentId":315,"tags":{"name":"/app/pages/api/user/[user_id]/add-user.ts","layer":"api"},"startTime":1736836795867,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":33260,"timestamp":3927367,"id":517,"parentId":317,"tags":{"name":"/app/pages/api/user/[user_id]/delete-user.ts","layer":"api"},"startTime":1736836795867,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":33597,"timestamp":3927412,"id":519,"parentId":321,"tags":{"name":"/app/pages/api/user/[user_id]/google-login.ts","layer":"api"},"startTime":1736836795867,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":35840,"timestamp":3926648,"id":483,"parentId":277,"tags":{"name":"/app/pages/api/media/addPrivateMedia.ts","layer":"api"},"startTime":1736836795866,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":35884,"timestamp":3927051,"id":503,"parentId":307,"tags":{"name":"/app/pages/api/updateAdminUserAccess.ts","layer":"api"},"startTime":1736836795866,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":36600,"timestamp":3926882,"id":494,"parentId":294,"tags":{"name":"/app/pages/api/social-login/github-auth.ts","layer":"api"},"startTime":1736836795866,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":36977,"timestamp":3927198,"id":510,"parentId":309,"tags":{"name":"/app/pages/api/updateDbSchemaDataForUser.ts","layer":"api"},"startTime":1736836795867,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":38262,"timestamp":3926821,"id":492,"parentId":282,"tags":{"name":"/app/pages/api/query/[user_id]/update-schema-from-single-database.ts","layer":"api"},"startTime":1736836795866,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":40388,"timestamp":3926614,"id":480,"parentId":286,"tags":{"name":"/app/pages/api/registerUser.ts","layer":"api"},"startTime":1736836795866,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":41387,"timestamp":3926786,"id":490,"parentId":280,"tags":{"name":"/app/pages/api/query/[user_id]/get-schema.ts","layer":"api"},"startTime":1736836795866,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":41168,"timestamp":3927480,"id":522,"parentId":322,"tags":{"name":"/app/pages/api/user/[user_id]/grab-google-user-from-token.ts","layer":"api"},"startTime":1736836795867,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":42013,"timestamp":3926929,"id":496,"parentId":297,"tags":{"name":"/app/pages/api/social-login/utils/checkSocialId.ts","layer":"api"},"startTime":1736836795866,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":42055,"timestamp":3927401,"id":518,"parentId":318,"tags":{"name":"/app/pages/api/user/[user_id]/get-user.ts","layer":"api"},"startTime":1736836795867,"traceId":"89448a764ba2dcee"}] +[{"name":"build-module-ts","duration":43220,"timestamp":3927017,"id":500,"parentId":300,"tags":{"name":"/app/pages/api/sql-users/delete.ts","layer":"api"},"startTime":1736836795866,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":43620,"timestamp":3927148,"id":506,"parentId":310,"tags":{"name":"/app/pages/api/updateDbUser.ts","layer":"api"},"startTime":1736836795867,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":44723,"timestamp":3927438,"id":520,"parentId":319,"tags":{"name":"/app/pages/api/updateUserTable.ts","layer":"api"},"startTime":1736836795867,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":46438,"timestamp":3926811,"id":491,"parentId":281,"tags":{"name":"/app/pages/api/query/[user_id]/get.ts","layer":"api"},"startTime":1736836795866,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":47144,"timestamp":3926905,"id":495,"parentId":295,"tags":{"name":"/app/pages/api/social-login/google-auth.ts","layer":"api"},"startTime":1736836795866,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":47699,"timestamp":3926857,"id":493,"parentId":293,"tags":{"name":"/app/pages/api/social-login/facebook-auth.ts","layer":"api"},"startTime":1736836795866,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":47551,"timestamp":3927244,"id":512,"parentId":304,"tags":{"name":"/app/pages/api/test/cors.ts","layer":"api"},"startTime":1736836795867,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":47824,"timestamp":3927255,"id":513,"parentId":305,"tags":{"name":"/app/pages/api/test/mail.ts","layer":"api"},"startTime":1736836795867,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":48498,"timestamp":3927298,"id":515,"parentId":316,"tags":{"name":"/app/pages/api/user-schema/replace-database-schema.ts","layer":"api"},"startTime":1736836795867,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":49000,"timestamp":3927136,"id":505,"parentId":306,"tags":{"name":"/app/pages/api/unsubscribe.ts","layer":"api"},"startTime":1736836795867,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":50139,"timestamp":3927036,"id":502,"parentId":303,"tags":{"name":"/app/pages/api/sync-table-data.ts","layer":"api"},"startTime":1736836795866,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":51103,"timestamp":3927028,"id":501,"parentId":301,"tags":{"name":"/app/pages/api/sql-users/update.ts","layer":"api"},"startTime":1736836795866,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":52139,"timestamp":3927159,"id":507,"parentId":313,"tags":{"name":"/app/pages/api/updateUserDatabase.ts","layer":"api"},"startTime":1736836795867,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":52478,"timestamp":3927626,"id":527,"parentId":328,"tags":{"name":"/app/pages/about.tsx","layer":null},"startTime":1736836795867,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":53428,"timestamp":3926976,"id":498,"parentId":298,"tags":{"name":"/app/pages/api/social-login/utils/getEmailFromSocialId.ts","layer":"api"},"startTime":1736836795866,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":54198,"timestamp":3927735,"id":532,"parentId":331,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/edit-database.tsx","layer":null},"startTime":1736836795867,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":55125,"timestamp":3927452,"id":521,"parentId":320,"tags":{"name":"/app/pages/api/user/[user_id]/github-login.ts","layer":"api"},"startTime":1736836795867,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":56433,"timestamp":3927095,"id":504,"parentId":308,"tags":{"name":"/app/pages/api/updateClonedTableForeignKeys.ts","layer":"api"},"startTime":1736836795866,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":56812,"timestamp":3927281,"id":514,"parentId":314,"tags":{"name":"/app/pages/api/updateUserUser.ts","layer":"api"},"startTime":1736836795867,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":57303,"timestamp":3927229,"id":511,"parentId":302,"tags":{"name":"/app/pages/api/stream/[path].ts","layer":"api"},"startTime":1736836795867,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":57596,"timestamp":3927531,"id":524,"parentId":324,"tags":{"name":"/app/pages/api/user/[user_id]/reauth-user.ts","layer":"api"},"startTime":1736836795867,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":58129,"timestamp":3927564,"id":525,"parentId":326,"tags":{"name":"/app/pages/api/user/[user_id]/update-user.ts","layer":"api"},"startTime":1736836795867,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":58664,"timestamp":3927594,"id":526,"parentId":325,"tags":{"name":"/app/pages/api/user/[user_id]/send-email-code.ts","layer":"api"},"startTime":1736836795867,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":59215,"timestamp":3927505,"id":523,"parentId":323,"tags":{"name":"/app/pages/api/user/[user_id]/login-user.ts","layer":"api"},"startTime":1736836795867,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":60583,"timestamp":3927003,"id":499,"parentId":299,"tags":{"name":"/app/pages/api/sql-users/create.ts","layer":"api"},"startTime":1736836795866,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":60689,"timestamp":3927639,"id":528,"parentId":327,"tags":{"name":"/app/pages/api/webhooks/github-push.ts","layer":"api"},"startTime":1736836795867,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":61800,"timestamp":3927188,"id":509,"parentId":312,"tags":{"name":"/app/pages/api/updateUser.ts","layer":"api"},"startTime":1736836795867,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":62067,"timestamp":3927704,"id":531,"parentId":330,"tags":{"name":"/app/pages/admin/[user_id]/connect/index.tsx","layer":null},"startTime":1736836795867,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":63160,"timestamp":3927174,"id":508,"parentId":311,"tags":{"name":"/app/pages/api/updateTableEntry.ts","layer":"api"},"startTime":1736836795867,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":63375,"timestamp":3927675,"id":530,"parentId":329,"tags":{"name":"/app/pages/admin/[user_id]/api-keys/index.tsx","layer":null},"startTime":1736836795867,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":74,"timestamp":4096693,"id":533,"parentId":419,"tags":{"name":"fs","layer":null},"startTime":1736836796036,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":10,"timestamp":4096819,"id":534,"parentId":419,"tags":{"name":"path","layer":null},"startTime":1736836796036,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":7,"timestamp":4096847,"id":535,"parentId":410,"tags":{"name":"next/dist/compiled/next-server/pages.runtime.prod.js","layer":null},"startTime":1736836796036,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":5,"timestamp":4096862,"id":536,"parentId":412,"tags":{"name":"next/dist/compiled/next-server/pages-api.runtime.prod.js","layer":null},"startTime":1736836796036,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":12325,"timestamp":4096981,"id":538,"parentId":333,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/schema.tsx","layer":null},"startTime":1736836796036,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":13493,"timestamp":4097056,"id":540,"parentId":334,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/index.tsx","layer":null},"startTime":1736836796036,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":14574,"timestamp":4097018,"id":539,"parentId":335,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/shell.tsx","layer":null},"startTime":1736836796036,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":15667,"timestamp":4096876,"id":537,"parentId":332,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/connect.tsx","layer":null},"startTime":1736836796036,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":22901,"timestamp":4097098,"id":541,"parentId":406,"tags":{"name":"/app/node_modules/next/dist/shared/lib/head.js","layer":null},"startTime":1736836796036,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":1504244,"timestamp":2617638,"id":35,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fadmin%2FclientError&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fadmin%2FclientError.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736836794557,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":1503835,"timestamp":2618137,"id":79,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fhealthcheck&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fhealthcheck.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736836794558,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":1503687,"timestamp":2618349,"id":110,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fstream%2F%5Bpath%5D&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fstream%2F%5Bpath%5D.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736836794558,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":1503704,"timestamp":2618362,"id":112,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Ftest%2Fcors&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Ftest%2Fcors.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736836794558,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":48,"timestamp":4167203,"id":543,"parentId":429,"tags":{"name":"os","layer":null},"startTime":1736836796107,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":11,"timestamp":4167289,"id":544,"parentId":429,"tags":{"name":"child_process","layer":null},"startTime":1736836796107,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":28515,"timestamp":4167315,"id":545,"parentId":342,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/tables/add-table.tsx","layer":null},"startTime":1736836796107,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":29532,"timestamp":4167393,"id":546,"parentId":344,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/tables/index.tsx","layer":null},"startTime":1736836796107,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":50641,"timestamp":4166955,"id":542,"parentId":411,"tags":{"name":"/app/node_modules/next/dist/pages/_document.js","layer":null},"startTime":1736836796106,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":16327,"timestamp":4266841,"id":556,"parentId":343,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/users/[user]/change-password.tsx","layer":null},"startTime":1736836796206,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":17987,"timestamp":4266957,"id":558,"parentId":351,"tags":{"name":"/app/pages/admin/[user_id]/index.tsx","layer":null},"startTime":1736836796206,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":19661,"timestamp":4266689,"id":553,"parentId":345,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/users/add-social-logins.tsx","layer":null},"startTime":1736836796206,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":22266,"timestamp":4266213,"id":548,"parentId":339,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/tables/[single_table]/fields.tsx","layer":null},"startTime":1736836796206,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":25320,"timestamp":4265957,"id":547,"parentId":336,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/tables/[single_table]/edit-table.tsx","layer":null},"startTime":1736836796205,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":27052,"timestamp":4266895,"id":557,"parentId":346,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/users/[user]/index.tsx","layer":null},"startTime":1736836796206,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":29259,"timestamp":4266743,"id":554,"parentId":347,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/users/index.tsx","layer":null},"startTime":1736836796206,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":32014,"timestamp":4266441,"id":550,"parentId":338,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/add-entry.tsx","layer":null},"startTime":1736836796206,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":34745,"timestamp":4266788,"id":555,"parentId":348,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/users/add-user.tsx","layer":null},"startTime":1736836796206,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":37256,"timestamp":4266539,"id":551,"parentId":340,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/index.tsx","layer":null},"startTime":1736836796206,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":38940,"timestamp":4266628,"id":552,"parentId":341,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/tables/[single_table]/index.tsx","layer":null},"startTime":1736836796206,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":41312,"timestamp":4266305,"id":549,"parentId":337,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/[single_entry].tsx","layer":null},"startTime":1736836796206,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":41645,"timestamp":4266980,"id":559,"parentId":350,"tags":{"name":"/app/pages/admin/[user_id]/databases/index.tsx","layer":null},"startTime":1736836796206,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":42393,"timestamp":4267124,"id":562,"parentId":355,"tags":{"name":"/app/pages/admin/[user_id]/settings.tsx","layer":null},"startTime":1736836796207,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":43577,"timestamp":4267071,"id":561,"parentId":354,"tags":{"name":"/app/pages/admin/[user_id]/schema.tsx","layer":null},"startTime":1736836796206,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":44579,"timestamp":4267026,"id":560,"parentId":349,"tags":{"name":"/app/pages/admin/[user_id]/databases/add-database.tsx","layer":null},"startTime":1736836796206,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":46075,"timestamp":4267167,"id":563,"parentId":352,"tags":{"name":"/app/pages/admin/[user_id]/media/[...folder].tsx","layer":null},"startTime":1736836796207,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":47701,"timestamp":4267272,"id":564,"parentId":353,"tags":{"name":"/app/pages/admin/[user_id]/media/index.tsx","layer":null},"startTime":1736836796207,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":10111,"timestamp":4517527,"id":574,"parentId":364,"tags":{"name":"/app/pages/api/fetch-media.ts","layer":"api"},"startTime":1736836796457,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":10886,"timestamp":4517499,"id":573,"parentId":363,"tags":{"name":"/app/pages/api/exportTableData.ts","layer":"api"},"startTime":1736836796457,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":11907,"timestamp":4517482,"id":572,"parentId":369,"tags":{"name":"/app/pages/api/query/[user_id]/post.ts","layer":"api"},"startTime":1736836796457,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":12905,"timestamp":4517367,"id":568,"parentId":356,"tags":{"name":"/app/pages/admin/[user_id]/users/databases/[database]/[user].tsx","layer":null},"startTime":1736836796457,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":14084,"timestamp":4517202,"id":565,"parentId":361,"tags":{"name":"/app/pages/admin/index.tsx","layer":null},"startTime":1736836796457,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":15049,"timestamp":4517287,"id":566,"parentId":357,"tags":{"name":"/app/pages/admin/[user_id]/users/add-user.tsx","layer":null},"startTime":1736836796457,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":15888,"timestamp":4517427,"id":570,"parentId":358,"tags":{"name":"/app/pages/admin/[user_id]/users/databases/[database]/index.tsx","layer":null},"startTime":1736836796457,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":16981,"timestamp":4517397,"id":569,"parentId":359,"tags":{"name":"/app/pages/admin/[user_id]/users/databases/index.tsx","layer":null},"startTime":1736836796457,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":17937,"timestamp":4517335,"id":567,"parentId":360,"tags":{"name":"/app/pages/admin/[user_id]/users/index.tsx","layer":null},"startTime":1736836796457,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":18639,"timestamp":4517569,"id":576,"parentId":367,"tags":{"name":"/app/pages/api/query/[user_id]/get-private-file.ts","layer":"api"},"startTime":1736836796457,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":20034,"timestamp":4517455,"id":571,"parentId":366,"tags":{"name":"/app/pages/api/query/[user_id]/add-image.ts","layer":"api"},"startTime":1736836796457,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":21319,"timestamp":4517541,"id":575,"parentId":365,"tags":{"name":"/app/pages/api/query/[user_id]/add-file.ts","layer":"api"},"startTime":1736836796457,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":22085,"timestamp":4517678,"id":582,"parentId":374,"tags":{"name":"/app/pages/docs/index.tsx","layer":null},"startTime":1736836796457,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":22863,"timestamp":4517664,"id":581,"parentId":370,"tags":{"name":"/app/pages/blog/index.tsx","layer":null},"startTime":1736836796457,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":24195,"timestamp":4517638,"id":579,"parentId":371,"tags":{"name":"/app/pages/contact.tsx","layer":null},"startTime":1736836796457,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":25463,"timestamp":4517609,"id":578,"parentId":368,"tags":{"name":"/app/pages/api/query/[user_id]/delete-file.ts","layer":"api"},"startTime":1736836796457,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":26268,"timestamp":4517697,"id":583,"parentId":376,"tags":{"name":"/app/pages/index.tsx","layer":null},"startTime":1736836796457,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":28628,"timestamp":4517719,"id":584,"parentId":375,"tags":{"name":"/app/pages/docs/[page]/index.tsx","layer":null},"startTime":1736836796457,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":30960,"timestamp":4517652,"id":580,"parentId":372,"tags":{"name":"/app/pages/create-account.tsx","layer":null},"startTime":1736836796457,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":33948,"timestamp":4517595,"id":577,"parentId":362,"tags":{"name":"/app/pages/api/addUserMedia.ts","layer":"api"},"startTime":1736836796457,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":36274,"timestamp":4517745,"id":585,"parentId":378,"tags":{"name":"/app/pages/logout.tsx","layer":null},"startTime":1736836796457,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":1943094,"timestamp":2618697,"id":173,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Ffetch-media&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Ffetch-media.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736836794558,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":7348,"timestamp":4680661,"id":595,"parentId":386,"tags":{"name":"/app/pages/su/docs/create-page.tsx","layer":null},"startTime":1736836796620,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":8007,"timestamp":4680632,"id":593,"parentId":383,"tags":{"name":"/app/pages/su/console.tsx","layer":null},"startTime":1736836796620,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":8448,"timestamp":4680645,"id":594,"parentId":385,"tags":{"name":"/app/pages/su/backups.tsx","layer":null},"startTime":1736836796620,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":8932,"timestamp":4680694,"id":597,"parentId":389,"tags":{"name":"/app/pages/su/docs/index.tsx","layer":null},"startTime":1736836796620,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":9675,"timestamp":4680521,"id":587,"parentId":380,"tags":{"name":"/app/pages/privacy.tsx","layer":null},"startTime":1736836796620,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":10477,"timestamp":4680564,"id":589,"parentId":379,"tags":{"name":"/app/pages/login.tsx","layer":null},"startTime":1736836796620,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":11544,"timestamp":4680549,"id":588,"parentId":381,"tags":{"name":"/app/pages/redirect.tsx","layer":null},"startTime":1736836796620,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":12568,"timestamp":4680604,"id":591,"parentId":382,"tags":{"name":"/app/pages/send-password-reset-link.tsx","layer":null},"startTime":1736836796620,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":13056,"timestamp":4680929,"id":605,"parentId":395,"tags":{"name":"/app/pages/su/servers.tsx","layer":null},"startTime":1736836796620,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":14134,"timestamp":4680717,"id":598,"parentId":390,"tags":{"name":"/app/pages/su/envar.tsx","layer":null},"startTime":1736836796620,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":14670,"timestamp":4680781,"id":600,"parentId":393,"tags":{"name":"/app/pages/su/index.tsx","layer":null},"startTime":1736836796620,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":15308,"timestamp":4680816,"id":601,"parentId":388,"tags":{"name":"/app/pages/su/docs/pages/[id].tsx","layer":null},"startTime":1736836796620,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":18233,"timestamp":4680394,"id":586,"parentId":373,"tags":{"name":"/app/pages/docs/[page]/[sub-page]/index.tsx","layer":null},"startTime":1736836796620,"traceId":"89448a764ba2dcee"}] +[{"name":"build-module-tsx","duration":19071,"timestamp":4680841,"id":602,"parentId":391,"tags":{"name":"/app/pages/su/docs/pages/index.tsx","layer":null},"startTime":1736836796620,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":19693,"timestamp":4680977,"id":607,"parentId":400,"tags":{"name":"/app/pages/terms.tsx","layer":null},"startTime":1736836796620,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":20410,"timestamp":4680866,"id":603,"parentId":394,"tags":{"name":"/app/pages/su/load-balancing.tsx","layer":null},"startTime":1736836796620,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":22344,"timestamp":4680583,"id":590,"parentId":377,"tags":{"name":"/app/pages/email-verification/index.tsx","layer":null},"startTime":1736836796620,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":24163,"timestamp":4680618,"id":592,"parentId":384,"tags":{"name":"/app/pages/reset-password.tsx","layer":null},"startTime":1736836796620,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":24632,"timestamp":4680744,"id":599,"parentId":392,"tags":{"name":"/app/pages/su/error-logs.tsx","layer":null},"startTime":1736836796620,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":25391,"timestamp":4680678,"id":596,"parentId":387,"tags":{"name":"/app/pages/su/docs/edit-page.tsx","layer":null},"startTime":1736836796620,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":26168,"timestamp":4680903,"id":604,"parentId":396,"tags":{"name":"/app/pages/su/login.tsx","layer":null},"startTime":1736836796620,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":27171,"timestamp":4680953,"id":606,"parentId":401,"tags":{"name":"/app/pages/unsubscribe.tsx","layer":null},"startTime":1736836796620,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":30,"timestamp":4828921,"id":611,"parentId":416,"tags":{"name":"generate-password","layer":null},"startTime":1736836796768,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":6,"timestamp":4828968,"id":612,"parentId":415,"tags":{"name":"lodash","layer":null},"startTime":1736836796768,"traceId":"89448a764ba2dcee"},{"name":"build-module-cjs","duration":6945,"timestamp":4828983,"id":613,"parentId":406,"tags":{"name":"/app/node_modules/@swc/helpers/cjs/_interop_require_default.cjs","layer":null},"startTime":1736836796768,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":8084,"timestamp":4828893,"id":609,"parentId":398,"tags":{"name":"/app/pages/su/users/index.tsx","layer":null},"startTime":1736836796768,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":8609,"timestamp":4828907,"id":610,"parentId":399,"tags":{"name":"/app/pages/su/users/new.tsx","layer":null},"startTime":1736836796768,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":9273,"timestamp":4828819,"id":608,"parentId":397,"tags":{"name":"/app/pages/su/users/[single].tsx","layer":null},"startTime":1736836796768,"traceId":"89448a764ba2dcee"},{"name":"build-module-css","duration":1079,"timestamp":4845997,"id":614,"parentId":404,"tags":{"name":"/app/styles/less.css","layer":null},"startTime":1736836796785,"traceId":"89448a764ba2dcee"},{"name":"build-module-css","duration":719,"timestamp":4846468,"id":615,"parentId":404,"tags":{"name":"/app/styles/tailwind.css","layer":null},"startTime":1736836796786,"traceId":"89448a764ba2dcee"},{"name":"build-module-json","duration":1110,"timestamp":4846500,"id":616,"parentId":421,"tags":{"name":"/app/package-shared/data/defaultFields.json","layer":"api"},"startTime":1736836796786,"traceId":"89448a764ba2dcee"},{"name":"build-module-json","duration":1152,"timestamp":4846532,"id":617,"parentId":421,"tags":{"name":"/app/package-shared/data/presets/users.json","layer":"api"},"startTime":1736836796786,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":5937,"timestamp":4846618,"id":622,"parentId":414,"tags":{"name":"/app/functions/frontend/fetchApi.ts","layer":null},"startTime":1736836796786,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":6628,"timestamp":4846708,"id":627,"parentId":429,"tags":{"name":"/app/functions/backend/copyFolderRecursively.ts","layer":"api"},"startTime":1736836796786,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":7207,"timestamp":4846690,"id":626,"parentId":426,"tags":{"name":"/app/functions/backend/suAdminUserAuth.ts","layer":"api"},"startTime":1736836796786,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":7703,"timestamp":4846604,"id":621,"parentId":413,"tags":{"name":"/app/functions/frontend/clientAuthUser.ts","layer":null},"startTime":1736836796786,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":7974,"timestamp":4846738,"id":628,"parentId":423,"tags":{"name":"/app/functions/backend/handleTableEntryOrder.ts","layer":"api"},"startTime":1736836796786,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":8482,"timestamp":4846577,"id":619,"parentId":413,"tags":{"name":"/app/layouts/GeneralLayout.tsx","layer":null},"startTime":1736836796786,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":8898,"timestamp":4846590,"id":620,"parentId":413,"tags":{"name":"/app/components/general/PageHeadTags.tsx","layer":null},"startTime":1736836796786,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":9241,"timestamp":4846662,"id":625,"parentId":423,"tags":{"name":"/app/functions/backend/grabDelegatedUserFromCookie.ts","layer":"api"},"startTime":1736836796786,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":9608,"timestamp":4846650,"id":624,"parentId":423,"tags":{"name":"/app/functions/backend/checkUserRights.ts","layer":"api"},"startTime":1736836796786,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":10149,"timestamp":4846762,"id":629,"parentId":415,"tags":{"name":"/app/package-shared/functions/backend/serverError.ts","layer":"api"},"startTime":1736836796786,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":11132,"timestamp":4846557,"id":618,"parentId":404,"tags":{"name":"/app/components/ErrorBoundary.tsx","layer":null},"startTime":1736836796786,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":11887,"timestamp":4846631,"id":623,"parentId":417,"tags":{"name":"/app/functions/backend/userAuth.ts","layer":"api"},"startTime":1736836796786,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":33,"timestamp":4878808,"id":638,"parentId":461,"tags":{"name":"url","layer":null},"startTime":1736836796818,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":23,"timestamp":4879321,"id":654,"parentId":528,"tags":{"name":"crypto","layer":null},"startTime":1736836796819,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":7,"timestamp":4879357,"id":655,"parentId":522,"tags":{"name":"google-auth-library","layer":null},"startTime":1736836796819,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":18997,"timestamp":4878989,"id":643,"parentId":436,"tags":{"name":"/app/functions/backend/admin/deleteDocPage.ts","layer":"api"},"startTime":1736836796818,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":19352,"timestamp":4878961,"id":642,"parentId":436,"tags":{"name":"/app/functions/backend/admin/grabChildPages.ts","layer":"api"},"startTime":1736836796818,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":20014,"timestamp":4878688,"id":634,"parentId":418,"tags":{"name":"/app/package-shared/functions/dsql/hashPassword.ts","layer":"api"},"startTime":1736836796818,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":20394,"timestamp":4878660,"id":633,"parentId":420,"tags":{"name":"/app/package-shared/functions/backend/setUserSchemaData.ts","layer":"api"},"startTime":1736836796818,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":20798,"timestamp":4878629,"id":632,"parentId":420,"tags":{"name":"/app/package-shared/functions/backend/grabUserSchemaData.ts","layer":"api"},"startTime":1736836796818,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":21546,"timestamp":4878744,"id":636,"parentId":440,"tags":{"name":"/app/package-shared/functions/dsql/decrypt.ts","layer":"api"},"startTime":1736836796818,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":22260,"timestamp":4878931,"id":641,"parentId":436,"tags":{"name":"/app/functions/backend/admin/addDocPage.ts","layer":"api"},"startTime":1736836796818,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":23194,"timestamp":4878718,"id":635,"parentId":416,"tags":{"name":"/app/package-shared/functions/dsql/encrypt.ts","layer":"api"},"startTime":1736836796818,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":24032,"timestamp":4878772,"id":637,"parentId":434,"tags":{"name":"/app/package-shared/functions/backend/varDatabaseDbHandler.ts","layer":"api"},"startTime":1736836796818,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":25110,"timestamp":4878463,"id":630,"parentId":422,"tags":{"name":"/app/package-shared/functions/backend/handleNodemailer.ts","layer":"api"},"startTime":1736836796818,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":24979,"timestamp":4879097,"id":647,"parentId":415,"tags":{"name":"/app/package-shared/utils/backend/global-db/DB_HANDLER.ts","layer":"api"},"startTime":1736836796818,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":25477,"timestamp":4879015,"id":644,"parentId":436,"tags":{"name":"/app/functions/backend/admin/getSnippets.ts","layer":"api"},"startTime":1736836796818,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":26739,"timestamp":4878586,"id":631,"parentId":417,"tags":{"name":"/app/package-shared/functions/backend/addAdminUserOnLogin.ts","layer":"api"},"startTime":1736836796818,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":27679,"timestamp":4878901,"id":640,"parentId":419,"tags":{"name":"/app/package-shared/functions/backend/db/sanitizeSql.ts","layer":"api"},"startTime":1736836796818,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":27849,"timestamp":4879215,"id":651,"parentId":445,"tags":{"name":"/app/package-shared/functions/backend/cookies/get-auth-cookie-names.ts","layer":"api"},"startTime":1736836796819,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":28334,"timestamp":4879042,"id":645,"parentId":436,"tags":{"name":"/app/functions/backend/admin/grabParentPages.ts","layer":"api"},"startTime":1736836796818,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":28604,"timestamp":4879254,"id":652,"parentId":447,"tags":{"name":"/app/functions/backend/deleteFolderRecursively.ts","layer":"api"},"startTime":1736836796819,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":29244,"timestamp":4879160,"id":649,"parentId":440,"tags":{"name":"/app/package-shared/functions/backend/api-cred.ts","layer":"api"},"startTime":1736836796819,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":29806,"timestamp":4879073,"id":646,"parentId":436,"tags":{"name":"/app/functions/backend/admin/persistDocs.ts","layer":"api"},"startTime":1736836796818,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":30227,"timestamp":4879374,"id":656,"parentId":538,"tags":{"name":"/app/functions/backend/userAuth.ts","layer":null},"startTime":1736836796819,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":30815,"timestamp":4879188,"id":650,"parentId":440,"tags":{"name":"/app/package-shared/functions/backend/db/deleteDbEntry.ts","layer":"api"},"startTime":1736836796819,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":32415,"timestamp":4878863,"id":639,"parentId":418,"tags":{"name":"/app/package-shared/functions/backend/db/addDbEntry.ts","layer":"api"},"startTime":1736836796818,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":33757,"timestamp":4879129,"id":648,"parentId":420,"tags":{"name":"/app/package-shared/shell/createDbFromSchema.ts","layer":"api"},"startTime":1736836796819,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":36535,"timestamp":4879285,"id":653,"parentId":529,"tags":{"name":"/app/node_modules/next/dist/client/script.js","layer":null},"startTime":1736836796819,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":2304728,"timestamp":2618515,"id":135,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fwebhooks%2Fgithub-push&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fwebhooks%2Fgithub-push.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736836794558,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":2305149,"timestamp":2618310,"id":104,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fsocial-login%2Futils%2FcheckEmail&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fsocial-login%2Futils%2FcheckEmail.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736836794558,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":2305177,"timestamp":2618314,"id":105,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fsocial-login%2Futils%2FcheckSocialId&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fsocial-login%2Futils%2FcheckSocialId.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736836794558,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":2305195,"timestamp":2618320,"id":106,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fsocial-login%2Futils%2FgetEmailFromSocialId&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fsocial-login%2Futils%2FgetEmailFromSocialId.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736836794558,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":2305397,"timestamp":2618172,"id":83,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FlogoutUser&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FlogoutUser.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736836794558,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":2306019,"timestamp":2618264,"id":97,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FresetPassword&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FresetPassword.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736836794558,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":2311835,"timestamp":2618485,"id":130,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fuser%2F%5Buser_id%5D%2Fgrab-google-user-from-token&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fuser%2F%5Buser_id%5D%2Fgrab-google-user-from-token.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736836794558,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":2312217,"timestamp":2618209,"id":88,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fquery%2F%5Buser_id%5D%2Fget-schema&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fquery%2F%5Buser_id%5D%2Fget-schema.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736836794558,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":11002,"timestamp":4946629,"id":658,"parentId":453,"tags":{"name":"/app/functions/backend/grabPaths.ts","layer":"api"},"startTime":1736836796886,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":11617,"timestamp":4946541,"id":657,"parentId":540,"tags":{"name":"/app/functions/backend/grabDelegatedUserFromCookie.ts","layer":null},"startTime":1736836796886,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":2350299,"timestamp":2618722,"id":176,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fquery%2F%5Buser_id%5D%2Fget-private-file&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fquery%2F%5Buser_id%5D%2Fget-private-file.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736836794558,"traceId":"89448a764ba2dcee"},{"name":"build-module-json","duration":1421,"timestamp":4968888,"id":693,"parentId":545,"tags":{"name":"/app/package-shared/data/defaultFields.json","layer":null},"startTime":1736836796908,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":10199,"timestamp":4968274,"id":672,"parentId":542,"tags":{"name":"/app/node_modules/next/dist/server/get-page-files.js","layer":null},"startTime":1736836796908,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":11050,"timestamp":4968299,"id":673,"parentId":542,"tags":{"name":"/app/node_modules/next/dist/server/htmlescape.js","layer":null},"startTime":1736836796908,"traceId":"89448a764ba2dcee"},{"name":"build-module-cjs","duration":12231,"timestamp":4968394,"id":676,"parentId":541,"tags":{"name":"/app/node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","layer":null},"startTime":1736836796908,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":12429,"timestamp":4968444,"id":677,"parentId":541,"tags":{"name":"/app/node_modules/next/dist/server/route-modules/pages/vendored/contexts/amp-context.js","layer":null},"startTime":1736836796908,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":12570,"timestamp":4968486,"id":678,"parentId":541,"tags":{"name":"/app/node_modules/next/dist/server/route-modules/pages/vendored/contexts/head-manager-context.js","layer":null},"startTime":1736836796908,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":13478,"timestamp":4968525,"id":679,"parentId":542,"tags":{"name":"/app/node_modules/next/dist/lib/is-error.js","layer":null},"startTime":1736836796908,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":18187,"timestamp":4968547,"id":680,"parentId":542,"tags":{"name":"/app/node_modules/next/dist/server/lib/trace/tracer.js","layer":null},"startTime":1736836796908,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":18499,"timestamp":4968574,"id":681,"parentId":542,"tags":{"name":"/app/node_modules/next/dist/server/lib/trace/utils.js","layer":null},"startTime":1736836796908,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":18637,"timestamp":4968597,"id":682,"parentId":542,"tags":{"name":"/app/node_modules/next/dist/server/route-modules/pages/vendored/contexts/html-context.js","layer":null},"startTime":1736836796908,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":19177,"timestamp":4968671,"id":685,"parentId":542,"tags":{"name":"/app/node_modules/next/dist/lib/pretty-bytes.js","layer":null},"startTime":1736836796908,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":20016,"timestamp":4968697,"id":686,"parentId":542,"tags":{"name":"/app/node_modules/next/dist/server/utils.js","layer":null},"startTime":1736836796908,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":20320,"timestamp":4968658,"id":684,"parentId":476,"tags":{"name":"/app/functions/backend/delay.ts","layer":"api"},"startTime":1736836796908,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":21117,"timestamp":4968117,"id":667,"parentId":532,"tags":{"name":"/app/package-shared/utils/backend/global-db/DB_HANDLER.ts","layer":null},"startTime":1736836796908,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":21462,"timestamp":4968092,"id":666,"parentId":538,"tags":{"name":"/app/package-shared/functions/backend/grabUserSchemaData.ts","layer":null},"startTime":1736836796907,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":21834,"timestamp":4968032,"id":664,"parentId":446,"tags":{"name":"/app/package-shared/functions/backend/noDatabaseDbHandler.ts","layer":"api"},"startTime":1736836796907,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":22038,"timestamp":4968247,"id":671,"parentId":531,"tags":{"name":"/app/package-shared/functions/dsql/decrypt.ts","layer":null},"startTime":1736836796908,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":22713,"timestamp":4968017,"id":663,"parentId":456,"tags":{"name":"/app/functions/backend/exportDb.ts","layer":"api"},"startTime":1736836796907,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":23368,"timestamp":4967907,"id":660,"parentId":459,"tags":{"name":"/app/functions/backend/dbSchemaExec.ts","layer":"api"},"startTime":1736836796907,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":23680,"timestamp":4968062,"id":665,"parentId":538,"tags":{"name":"/app/package-shared/functions/backend/varDatabaseDbHandler.ts","layer":null},"startTime":1736836796907,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":23570,"timestamp":4968728,"id":687,"parentId":548,"tags":{"name":"/app/package-shared/functions/backend/serverError.ts","layer":null},"startTime":1736836796908,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":24223,"timestamp":4968634,"id":683,"parentId":477,"tags":{"name":"/app/functions/backend/reAuthUser.ts","layer":"api"},"startTime":1736836796908,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":25690,"timestamp":4967807,"id":659,"parentId":461,"tags":{"name":"/app/package-shared/functions/backend/httpsRequest.ts","layer":"api"},"startTime":1736836796907,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":24840,"timestamp":4968957,"id":696,"parentId":517,"tags":{"name":"/app/package-shared/functions/api/users/api-delete-user.ts","layer":"api"},"startTime":1736836796908,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":26803,"timestamp":4967948,"id":661,"parentId":480,"tags":{"name":"/app/package-shared/functions/backend/db/updateDbEntry.ts","layer":"api"},"startTime":1736836796907,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":26251,"timestamp":4968944,"id":695,"parentId":502,"tags":{"name":"/app/functions/backend/delegatedUser.ts","layer":"api"},"startTime":1736836796908,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":28255,"timestamp":4967986,"id":662,"parentId":472,"tags":{"name":"/app/functions/backend/createDbSchemaFromDb.ts","layer":"api"},"startTime":1736836796907,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":27863,"timestamp":4968859,"id":692,"parentId":494,"tags":{"name":"/app/package-shared/shell/utils/camelJoinedtoCamelSpace.ts","layer":"api"},"startTime":1736836796908,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":28285,"timestamp":4968832,"id":691,"parentId":494,"tags":{"name":"/app/package-shared/functions/api/social-login/githubLogin.ts","layer":"api"},"startTime":1736836796908,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":28746,"timestamp":4968920,"id":694,"parentId":502,"tags":{"name":"/app/functions/backend/importExportTableDataFn.ts","layer":"api"},"startTime":1736836796908,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":29363,"timestamp":4968784,"id":689,"parentId":480,"tags":{"name":"/app/package-shared/functions/backend/addMariadbUser.ts","layer":"api"},"startTime":1736836796908,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":30082,"timestamp":4968980,"id":697,"parentId":516,"tags":{"name":"/app/package-shared/functions/api/users/api-create-user.ts","layer":"api"},"startTime":1736836796908,"traceId":"89448a764ba2dcee"}] +[{"name":"build-module-ts","duration":32131,"timestamp":4968759,"id":688,"parentId":510,"tags":{"name":"/app/functions/backend/updateSchemaData.ts","layer":"api"},"startTime":1736836796908,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":33375,"timestamp":4968808,"id":690,"parentId":494,"tags":{"name":"/app/package-shared/functions/api/social-login/handleSocialDb.ts","layer":"api"},"startTime":1736836796908,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":34975,"timestamp":4968176,"id":669,"parentId":541,"tags":{"name":"/app/node_modules/next/dist/shared/lib/amp-mode.js","layer":null},"startTime":1736836796908,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":35296,"timestamp":4968213,"id":670,"parentId":541,"tags":{"name":"/app/node_modules/next/dist/shared/lib/utils/warn-once.js","layer":null},"startTime":1736836796908,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":36250,"timestamp":4968141,"id":668,"parentId":541,"tags":{"name":"/app/node_modules/next/dist/shared/lib/side-effect.js","layer":null},"startTime":1736836796908,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":36276,"timestamp":4968362,"id":675,"parentId":542,"tags":{"name":"/app/node_modules/next/dist/shared/lib/encode-uri-path.js","layer":null},"startTime":1736836796908,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":38321,"timestamp":4968328,"id":674,"parentId":542,"tags":{"name":"/app/node_modules/next/dist/shared/lib/constants.js","layer":null},"startTime":1736836796908,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":2407651,"timestamp":2618458,"id":125,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fuser%2F%5Buser_id%5D%2Fdelete-user&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fuser%2F%5Buser_id%5D%2Fdelete-user.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736836794558,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":9291,"timestamp":5042920,"id":698,"parentId":518,"tags":{"name":"/app/package-shared/functions/api/users/api-get-user.ts","layer":"api"},"startTime":1736836796982,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":9294,"timestamp":5043316,"id":710,"parentId":527,"tags":{"name":"/app/components/pages/about/Hero.tsx","layer":null},"startTime":1736836796983,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":10151,"timestamp":5043078,"id":701,"parentId":491,"tags":{"name":"/app/package-shared/functions/api/query/get.ts","layer":"api"},"startTime":1736836796982,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":10453,"timestamp":5043104,"id":702,"parentId":527,"tags":{"name":"/app/components/pages/homepage/BriefIntroSection.tsx","layer":null},"startTime":1736836796982,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":11103,"timestamp":5043050,"id":700,"parentId":509,"tags":{"name":"/app/functions/backend/fsWriteImageToDisk.ts","layer":"api"},"startTime":1736836796982,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":11371,"timestamp":5043129,"id":703,"parentId":527,"tags":{"name":"/app/components/pages/homepage/FooterCta.tsx","layer":null},"startTime":1736836796983,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":11823,"timestamp":5043231,"id":707,"parentId":521,"tags":{"name":"/app/package-shared/functions/api/users/social/api-github-login.ts","layer":"api"},"startTime":1736836796983,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":12339,"timestamp":5043179,"id":705,"parentId":524,"tags":{"name":"/app/package-shared/functions/api/users/api-reauth-user.ts","layer":"api"},"startTime":1736836796983,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":12845,"timestamp":5043203,"id":706,"parentId":525,"tags":{"name":"/app/package-shared/functions/api/users/api-update-user.ts","layer":"api"},"startTime":1736836796983,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":13627,"timestamp":5043008,"id":699,"parentId":519,"tags":{"name":"/app/package-shared/functions/api/users/social/api-google-login.ts","layer":"api"},"startTime":1736836796982,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":14354,"timestamp":5043266,"id":708,"parentId":526,"tags":{"name":"/app/package-shared/functions/api/users/api-send-email-code.ts","layer":"api"},"startTime":1736836796983,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":14964,"timestamp":5043328,"id":711,"parentId":558,"tags":{"name":"/app/layouts/AdminLayout.tsx","layer":null},"startTime":1736836796983,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":15778,"timestamp":5043294,"id":709,"parentId":523,"tags":{"name":"/app/package-shared/functions/api/users/api-login.ts","layer":"api"},"startTime":1736836796983,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":17297,"timestamp":5043156,"id":704,"parentId":501,"tags":{"name":"/app/package-shared/shell/mariadb-users/refreshUsersAndGrants.ts","layer":"api"},"startTime":1736836796983,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":2451679,"timestamp":2618466,"id":126,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fuser%2F%5Buser_id%5D%2Fget-user&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fuser%2F%5Buser_id%5D%2Fget-user.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736836794558,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":2451744,"timestamp":2618493,"id":132,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fuser%2F%5Buser_id%5D%2Freauth-user&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fuser%2F%5Buser_id%5D%2Freauth-user.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736836794558,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":2451782,"timestamp":2618489,"id":131,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fuser%2F%5Buser_id%5D%2Flogin-user&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fuser%2F%5Buser_id%5D%2Flogin-user.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736836794558,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":2455731,"timestamp":2618510,"id":134,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fuser%2F%5Buser_id%5D%2Fupdate-user&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fuser%2F%5Buser_id%5D%2Fupdate-user.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736836794558,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":38,"timestamp":5088271,"id":732,"parentId":585,"tags":{"name":"next/head","layer":null},"startTime":1736836797028,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":12447,"timestamp":5087692,"id":717,"parentId":531,"tags":{"name":"/app/components/admin/connect/NewMariadbUserPopup.tsx","layer":null},"startTime":1736836797027,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":13314,"timestamp":5087538,"id":713,"parentId":562,"tags":{"name":"/app/package-shared/functions/backend/noDatabaseDbHandler.ts","layer":null},"startTime":1736836797027,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":13231,"timestamp":5088016,"id":725,"parentId":530,"tags":{"name":"/app/components/admin/api-keys/TargetApiKeyPreviewPopup.tsx","layer":null},"startTime":1736836797027,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":13841,"timestamp":5087728,"id":718,"parentId":531,"tags":{"name":"/app/components/admin/connect/ConnectContent.tsx","layer":null},"startTime":1736836797027,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":14237,"timestamp":5087769,"id":719,"parentId":531,"tags":{"name":"/app/components/admin/connect/EditMariadbUserPopup.tsx","layer":null},"startTime":1736836797027,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":14762,"timestamp":5087644,"id":716,"parentId":532,"tags":{"name":"/app/components/admin/databases/EditDatabaseContent.tsx","layer":null},"startTime":1736836797027,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":14928,"timestamp":5087937,"id":723,"parentId":540,"tags":{"name":"/app/components/admin/databases/DeleteTableConfirmationPopup.tsx","layer":null},"startTime":1736836797027,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":15276,"timestamp":5087971,"id":724,"parentId":530,"tags":{"name":"/app/components/admin/api-keys/ApiKeysContent.tsx","layer":null},"startTime":1736836797027,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":15844,"timestamp":5087831,"id":721,"parentId":558,"tags":{"name":"/app/components/admin/databases/DeleteDatabaseConfirmationPopup.tsx","layer":null},"startTime":1736836797027,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":16564,"timestamp":5087798,"id":720,"parentId":532,"tags":{"name":"/app/components/admin/databases/UserMediaPopup.tsx","layer":null},"startTime":1736836797027,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":16682,"timestamp":5088118,"id":727,"parentId":545,"tags":{"name":"/app/components/admin/databases/AddTableContent.tsx","layer":null},"startTime":1736836797028,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":16639,"timestamp":5088517,"id":740,"parentId":558,"tags":{"name":"/app/components/admin/dashboard/DashboardContent.tsx","layer":null},"startTime":1736836797028,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":17082,"timestamp":5088478,"id":738,"parentId":593,"tags":{"name":"/app/functions/backend/suAdminUserAuth.ts","layer":null},"startTime":1736836797028,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":17530,"timestamp":5088541,"id":741,"parentId":554,"tags":{"name":"/app/components/admin/users/DbUsersContent.tsx","layer":null},"startTime":1736836797028,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":19577,"timestamp":5087612,"id":715,"parentId":540,"tags":{"name":"/app/components/admin/databases/SingleDatabasesContent.tsx","layer":null},"startTime":1736836797027,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":19492,"timestamp":5088335,"id":733,"parentId":580,"tags":{"name":"/app/package-shared/functions/backend/addAdminUserOnLogin.ts","layer":null},"startTime":1736836797028,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":19990,"timestamp":5088454,"id":737,"parentId":548,"tags":{"name":"/app/functions/backend/grabTableSchemaData.ts","layer":null},"startTime":1736836797028,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":20441,"timestamp":5088587,"id":743,"parentId":547,"tags":{"name":"/app/components/admin/databases/EditTableContent.tsx","layer":null},"startTime":1736836797028,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":22438,"timestamp":5087576,"id":714,"parentId":538,"tags":{"name":"/app/components/admin/databases/DatabaseSchemaContent.tsx","layer":null},"startTime":1736836797027,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":23286,"timestamp":5087873,"id":722,"parentId":539,"tags":{"name":"/app/components/admin/databases/DatabaseShellContent.tsx","layer":null},"startTime":1736836797027,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":23373,"timestamp":5088255,"id":731,"parentId":563,"tags":{"name":"/app/functions/backend/grabPaths.ts","layer":null},"startTime":1736836797028,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":23951,"timestamp":5088566,"id":742,"parentId":556,"tags":{"name":"/app/components/admin/users/ChangeDbUserPassword.tsx","layer":null},"startTime":1736836797028,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":24571,"timestamp":5088366,"id":734,"parentId":580,"tags":{"name":"/app/package-shared/functions/backend/cookies/get-auth-cookie-names.ts","layer":null},"startTime":1736836797028,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":26006,"timestamp":5088063,"id":726,"parentId":530,"tags":{"name":"/app/components/admin/api-keys/AddNewApiKeyPopup.tsx","layer":null},"startTime":1736836797027,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":26259,"timestamp":5088401,"id":735,"parentId":548,"tags":{"name":"/app/functions/frontend/updateTableAfterFieldsUpdateFunctionExt.ts","layer":null},"startTime":1736836797028,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":26848,"timestamp":5088160,"id":728,"parentId":545,"tags":{"name":"/app/components/admin/databases/EditFieldPopup.tsx","layer":null},"startTime":1736836797028,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":29558,"timestamp":5087387,"id":712,"parentId":538,"tags":{"name":"/app/components/general/ExtraContentDatabase.tsx","layer":null},"startTime":1736836797027,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":29488,"timestamp":5088216,"id":730,"parentId":537,"tags":{"name":"/app/components/admin/databases/connect/DatabaseConnectContent.tsx","layer":null},"startTime":1736836797028,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":30211,"timestamp":5088430,"id":736,"parentId":548,"tags":{"name":"/app/components/admin/databases/TableFieldsContent.tsx","layer":null},"startTime":1736836797028,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":31206,"timestamp":5088189,"id":729,"parentId":546,"tags":{"name":"/app/components/admin/databases/TablesContent.tsx","layer":null},"startTime":1736836797028,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":34587,"timestamp":5088612,"id":744,"parentId":567,"tags":{"name":"/app/components/admin/users/TargetUserPreviewPopup.tsx","layer":null},"startTime":1736836797028,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":37682,"timestamp":5088493,"id":739,"parentId":553,"tags":{"name":"/app/components/admin/users/SocialLoginsContent.tsx","layer":null},"startTime":1736836797028,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":43,"timestamp":5286743,"id":747,"parentId":584,"tags":{"name":"serverless-mysql","layer":null},"startTime":1736836797226,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":14,"timestamp":5286847,"id":749,"parentId":584,"tags":{"name":"@moduletrace/datasquirel","layer":null},"startTime":1736836797226,"traceId":"89448a764ba2dcee"},{"name":"build-module-css","duration":2143,"timestamp":5286813,"id":748,"parentId":593,"tags":{"name":"/app/node_modules/xterm/css/xterm.css","layer":null},"startTime":1736836797226,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":2854,"timestamp":5287007,"id":753,"parentId":561,"tags":{"name":"/app/components/general/VerificationBanner.tsx","layer":null},"startTime":1736836797226,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":3691,"timestamp":5287130,"id":754,"parentId":560,"tags":{"name":"/app/components/admin/databases/AddDatabaseContent.tsx","layer":null},"startTime":1736836797227,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":5380,"timestamp":5286678,"id":746,"parentId":550,"tags":{"name":"/app/components/admin/databases/AddTableEntryContent.tsx","layer":null},"startTime":1736836797226,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":6343,"timestamp":5286873,"id":750,"parentId":555,"tags":{"name":"/app/components/admin/users/DbAddNewUserContent.tsx","layer":null},"startTime":1736836797226,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":7875,"timestamp":5286936,"id":751,"parentId":551,"tags":{"name":"/app/components/admin/databases/TableEntriesContent.tsx","layer":null},"startTime":1736836797226,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":9384,"timestamp":5286971,"id":752,"parentId":552,"tags":{"name":"/app/components/admin/databases/SingleTableContent.tsx","layer":null},"startTime":1736836797226,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":11508,"timestamp":5286542,"id":745,"parentId":557,"tags":{"name":"/app/components/admin/users/SingleDbUserContent.tsx","layer":null},"startTime":1736836797226,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":15484,"timestamp":5323171,"id":755,"parentId":563,"tags":{"name":"/app/components/general/UploadImageComponent.tsx","layer":null},"startTime":1736836797263,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":17090,"timestamp":5323292,"id":756,"parentId":561,"tags":{"name":"/app/components/admin/databases/UserSchemaContent.tsx","layer":null},"startTime":1736836797263,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":13998,"timestamp":5344884,"id":764,"parentId":585,"tags":{"name":"/app/components/general/LoadingBlock.tsx","layer":null},"startTime":1736836797284,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":14745,"timestamp":5344711,"id":759,"parentId":552,"tags":{"name":"/app/layouts/components/GeneralLayout/ScrollToTopButton.tsx","layer":null},"startTime":1736836797284,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":15198,"timestamp":5344818,"id":762,"parentId":559,"tags":{"name":"/app/components/admin/databases/DatabasesContent.tsx","layer":null},"startTime":1736836797284,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":15892,"timestamp":5344783,"id":761,"parentId":563,"tags":{"name":"/app/components/general/UploadFileComponent.tsx","layer":null},"startTime":1736836797284,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":17005,"timestamp":5344656,"id":758,"parentId":549,"tags":{"name":"/app/components/admin/databases/SingleEntryContent.tsx","layer":null},"startTime":1736836797284,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":17946,"timestamp":5344574,"id":757,"parentId":561,"tags":{"name":"/app/components/general/Breadcrumbs.tsx","layer":null},"startTime":1736836797284,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":18642,"timestamp":5344750,"id":760,"parentId":562,"tags":{"name":"/app/components/admin/settings/SettingsContent.tsx","layer":null},"startTime":1736836797284,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":18997,"timestamp":5344953,"id":766,"parentId":563,"tags":{"name":"/app/components/general/UploadVideoComponent.tsx","layer":null},"startTime":1736836797284,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":19639,"timestamp":5345038,"id":769,"parentId":563,"tags":{"name":"/app/components/admin/media/NewFolderPopup.tsx","layer":null},"startTime":1736836797284,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":20660,"timestamp":5344981,"id":767,"parentId":563,"tags":{"name":"/app/components/admin/media/NewMediaPopup.tsx","layer":null},"startTime":1736836797284,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":23095,"timestamp":5344906,"id":765,"parentId":568,"tags":{"name":"/app/components/admin/users/SingleDatabaseSingleUserContent.tsx","layer":null},"startTime":1736836797284,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":25273,"timestamp":5345013,"id":768,"parentId":563,"tags":{"name":"/app/components/admin/media/TargetMediaPreviewPopup.tsx","layer":null},"startTime":1736836797284,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":28629,"timestamp":5344848,"id":763,"parentId":566,"tags":{"name":"/app/components/admin/users/AddNewUserContent.tsx","layer":null},"startTime":1736836797284,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":67,"timestamp":5418602,"id":778,"parentId":636,"tags":{"name":"buffer","layer":null},"startTime":1736836797358,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":7359,"timestamp":5418699,"id":779,"parentId":579,"tags":{"name":"/app/components/pages/contact/ContactHero.tsx","layer":null},"startTime":1736836797358,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":7981,"timestamp":5418480,"id":775,"parentId":569,"tags":{"name":"/app/components/admin/users/AllDatabasesUsersContent.tsx","layer":null},"startTime":1736836797358,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":8527,"timestamp":5418522,"id":776,"parentId":572,"tags":{"name":"/app/package-shared/functions/api/query/post.ts","layer":"api"},"startTime":1736836797358,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":9318,"timestamp":5418403,"id":773,"parentId":577,"tags":{"name":"/app/functions/backend/fsWriteImageToDiskFromBase64.ts","layer":"api"},"startTime":1736836797358,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":9652,"timestamp":5418556,"id":777,"parentId":570,"tags":{"name":"/app/components/admin/users/SingleDatabaseUsersContent.tsx","layer":null},"startTime":1736836797358,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":10354,"timestamp":5418367,"id":772,"parentId":564,"tags":{"name":"/app/components/admin/media/MediaContent.tsx","layer":null},"startTime":1736836797358,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":10934,"timestamp":5418317,"id":771,"parentId":563,"tags":{"name":"/app/components/admin/media/MediaFolderContent.tsx","layer":null},"startTime":1736836797358,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":11424,"timestamp":5418442,"id":774,"parentId":567,"tags":{"name":"/app/components/admin/users/UsersContent.tsx","layer":null},"startTime":1736836797358,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":12318,"timestamp":5418137,"id":770,"parentId":563,"tags":{"name":"/app/components/admin/media/ChooseMediaTypePopup.tsx","layer":null},"startTime":1736836797358,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":12194,"timestamp":5418750,"id":780,"parentId":579,"tags":{"name":"/app/components/pages/contact/ContactForm.tsx","layer":null},"startTime":1736836797358,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":2818716,"timestamp":2617835,"id":53,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fconnect&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fconnect%2Findex.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736836794557,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":2818751,"timestamp":2618090,"id":72,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FgetDelegatedDatabaseToken&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FgetDelegatedDatabaseToken.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736836794557,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":2819130,"timestamp":2617742,"id":44,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fadmin%2FloginSuUser&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fadmin%2FloginSuUser.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736836794557,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":2820043,"timestamp":2617625,"id":34,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fadmin%2FclearErrorLogs&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fadmin%2FclearErrorLogs.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736836794557,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":2820034,"timestamp":2617670,"id":39,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fadmin%2FgetUserBackups&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fadmin%2FgetUserBackups.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736836794557,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":2820108,"timestamp":2617647,"id":36,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fadmin%2FcreateNewBackup&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fadmin%2FcreateNewBackup.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736836794557,"traceId":"89448a764ba2dcee"}] +[{"name":"add-entry","duration":2820480,"timestamp":2617612,"id":33,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fadmin%2FaddUserBackup&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fadmin%2FaddUserBackup.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736836794557,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":2820393,"timestamp":2617719,"id":41,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fadmin%2FgrabBackups&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fadmin%2FgrabBackups.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736836794557,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":2820398,"timestamp":2617730,"id":42,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fadmin%2FgrabErrorLogs&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fadmin%2FgrabErrorLogs.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736836794557,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":2820455,"timestamp":2617688,"id":40,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fadmin%2FgetUserData&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fadmin%2FgetUserData.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736836794557,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":2820422,"timestamp":2617736,"id":43,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fadmin%2FgrabFile&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fadmin%2FgrabFile.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736836794557,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":2820413,"timestamp":2617757,"id":46,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fadmin%2FupdateEnv&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fadmin%2FupdateEnv.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736836794557,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":2820639,"timestamp":2617548,"id":27,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FaddNewMediaFolder&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FaddNewMediaFolder.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736836794557,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":2820641,"timestamp":2617560,"id":28,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FaddSocialLogin&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FaddSocialLogin.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736836794557,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":2820478,"timestamp":2617763,"id":47,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FchangeDbUserPassword&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FchangeDbUserPassword.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736836794557,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":2820484,"timestamp":2617777,"id":49,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FcheckExistingFolder&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FcheckExistingFolder.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736836794557,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":2820506,"timestamp":2617782,"id":50,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FclientSideAuth&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FclientSideAuth.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736836794557,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":2820323,"timestamp":2618016,"id":59,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FdeleteInvitation&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FdeleteInvitation.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736836794557,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":2820334,"timestamp":2618033,"id":62,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FdeleteUser&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FdeleteUser.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736836794557,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":2820323,"timestamp":2618060,"id":68,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FexportDatabase&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FexportDatabase.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736836794557,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":2820326,"timestamp":2618070,"id":70,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FgetDatabaseTables&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FgetDatabaseTables.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736836794557,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":2820337,"timestamp":2618073,"id":71,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fget-authorized-databases&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fget-authorized-databases.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736836794557,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":2820401,"timestamp":2618021,"id":60,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FdeleteMediaFolder&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FdeleteMediaFolder.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736836794557,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":2820304,"timestamp":2618130,"id":77,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FgetUserMedia&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FgetUserMedia.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736836794558,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":2820338,"timestamp":2618114,"id":75,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FgetUserDatabaseTables&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FgetUserDatabaseTables.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736836794557,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":2820413,"timestamp":2618052,"id":66,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FdeleteUserUser&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FdeleteUserUser.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736836794557,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":2820421,"timestamp":2618056,"id":67,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FdownloadDatabaseSchema&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FdownloadDatabaseSchema.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736836794557,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":2820388,"timestamp":2618101,"id":73,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FgetDelegatedDatabases&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FgetDelegatedDatabases.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736836794557,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":2820375,"timestamp":2618126,"id":76,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FgetUserDatabases&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FgetUserDatabases.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736836794558,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":2820404,"timestamp":2618110,"id":74,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FgetDiskUsage&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FgetDiskUsage.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736836794557,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":2820392,"timestamp":2618133,"id":78,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FgetUserSchemaData&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FgetUserSchemaData.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736836794558,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":2820295,"timestamp":2618245,"id":92,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FreAuthenticateUser&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FreAuthenticateUser.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736836794558,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":2820291,"timestamp":2618260,"id":96,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FresetDelegatedDatabaseToken&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FresetDelegatedDatabaseToken.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736836794558,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":2820362,"timestamp":2618205,"id":87,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FpurgeDb&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FpurgeDb.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736836794558,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":2820322,"timestamp":2618257,"id":95,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FrenameMedia&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FrenameMedia.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736836794558,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":2820400,"timestamp":2618190,"id":85,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fmedia%2FaddPrivateMedia&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fmedia%2FaddPrivateMedia.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736836794558,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":2820245,"timestamp":2618356,"id":111,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fsync-table-data&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fsync-table-data.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736836794558,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":2820416,"timestamp":2618197,"id":86,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fmedia%2FgetPrivateMedia&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fmedia%2FgetPrivateMedia.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736836794558,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":2820297,"timestamp":2618333,"id":108,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fsql-users%2Fdelete&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fsql-users%2Fdelete.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736836794558,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":2819976,"timestamp":2618693,"id":172,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FexportTableData&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FexportTableData.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736836794558,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":38,"timestamp":5454454,"id":789,"parentId":653,"tags":{"name":"react-dom","layer":null},"startTime":1736836797394,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":11987,"timestamp":5454362,"id":785,"parentId":585,"tags":{"name":"/app/functions/frontend/clearCaches.ts","layer":null},"startTime":1736836797394,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":12673,"timestamp":5454314,"id":783,"parentId":582,"tags":{"name":"/app/components/pages/docs/DocsHomeLinks.tsx","layer":null},"startTime":1736836797394,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":13231,"timestamp":5454344,"id":784,"parentId":581,"tags":{"name":"/app/components/pages/blog/BlogHero.tsx","layer":null},"startTime":1736836797394,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":13733,"timestamp":5454274,"id":782,"parentId":582,"tags":{"name":"/app/components/pages/docs/DocsHomeHero.tsx","layer":null},"startTime":1736836797394,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":13962,"timestamp":5454419,"id":788,"parentId":584,"tags":{"name":"/app/components/pages/docs/DocsGenereicHero.tsx","layer":null},"startTime":1736836797394,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":14290,"timestamp":5454514,"id":790,"parentId":580,"tags":{"name":"/app/components/pages/create-account/Hero.tsx","layer":null},"startTime":1736836797394,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":14464,"timestamp":5454621,"id":793,"parentId":580,"tags":{"name":"/app/components/general/LoadingScreen.tsx","layer":null},"startTime":1736836797394,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":15189,"timestamp":5454391,"id":787,"parentId":583,"tags":{"name":"/app/components/pages/homepage/FeaturesSummarySection.tsx","layer":null},"startTime":1736836797394,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":15681,"timestamp":5454379,"id":786,"parentId":583,"tags":{"name":"/app/components/pages/homepage/Hero2.tsx","layer":null},"startTime":1736836797394,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":16540,"timestamp":5454183,"id":781,"parentId":582,"tags":{"name":"/app/components/pages/docs/DocsAside.tsx","layer":null},"startTime":1736836797394,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":16742,"timestamp":5454649,"id":794,"parentId":593,"tags":{"name":"/app/layouts/SuAdminLayout.tsx","layer":null},"startTime":1736836797394,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":18075,"timestamp":5454584,"id":792,"parentId":653,"tags":{"name":"/app/node_modules/next/dist/client/request-idle-callback.js","layer":null},"startTime":1736836797394,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":19048,"timestamp":5454546,"id":791,"parentId":653,"tags":{"name":"/app/node_modules/next/dist/client/set-attributes-from-props.js","layer":null},"startTime":1736836797394,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":25,"timestamp":5480152,"id":795,"parentId":659,"tags":{"name":"https","layer":null},"startTime":1736836797420,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":5,"timestamp":5480188,"id":796,"parentId":659,"tags":{"name":"http","layer":null},"startTime":1736836797420,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":2861855,"timestamp":2618519,"id":136,"parentId":18,"tags":{"request":"private-next-pages/_app.tsx"},"startTime":1736836794558,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":2863673,"timestamp":2616774,"id":19,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2F_error&preferredRegion=&absolutePagePath=next%2Fdist%2Fpages%2F_error&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736836794556,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":2861698,"timestamp":2618796,"id":190,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fredirect&preferredRegion=&absolutePagePath=private-next-pages%2Fredirect.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736836794558,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":9751,"timestamp":5480200,"id":797,"parentId":587,"tags":{"name":"/app/components/pages/privacy/PrivacyHero.tsx","layer":null},"startTime":1736836797420,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":10554,"timestamp":5480305,"id":799,"parentId":594,"tags":{"name":"/app/components/su/SuBackupsContent.tsx","layer":null},"startTime":1736836797420,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":11259,"timestamp":5480277,"id":798,"parentId":587,"tags":{"name":"/app/components/pages/privacy/PrivacyBody.tsx","layer":null},"startTime":1736836797420,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":12576,"timestamp":5480335,"id":800,"parentId":595,"tags":{"name":"/app/components/su/docs/CreatePageContent.tsx","layer":null},"startTime":1736836797420,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":2878502,"timestamp":2617863,"id":54,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fconnect%2Fverify&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fconnect%2Fverify.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736836794557,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":31,"timestamp":5497164,"id":805,"parentId":622,"tags":{"name":"@moduletrace/datasquirel/dist/client/fetch","layer":null},"startTime":1736836797437,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":12,"timestamp":5497376,"id":809,"parentId":639,"tags":{"name":"sanitize-html","layer":null},"startTime":1736836797437,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":7,"timestamp":5497400,"id":810,"parentId":630,"tags":{"name":"nodemailer","layer":null},"startTime":1736836797437,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":14833,"timestamp":5497125,"id":804,"parentId":680,"tags":{"name":"/app/node_modules/next/dist/server/lib/trace/constants.js","layer":null},"startTime":1736836797437,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":30356,"timestamp":5497327,"id":808,"parentId":680,"tags":{"name":"/app/node_modules/next/dist/compiled/@opentelemetry/api/index.js","layer":null},"startTime":1736836797437,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":30876,"timestamp":5497487,"id":815,"parentId":648,"tags":{"name":"/app/package-shared/utils/ejson.ts","layer":"api"},"startTime":1736836797437,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":31280,"timestamp":5497478,"id":814,"parentId":605,"tags":{"name":"/app/package-shared/utils/ejson.ts","layer":null},"startTime":1736836797437,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":31537,"timestamp":5497532,"id":817,"parentId":591,"tags":{"name":"/app/components/general/InfoBlock.tsx","layer":null},"startTime":1736836797437,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":31834,"timestamp":5497499,"id":816,"parentId":591,"tags":{"name":"/app/components/general/FormSuccessBlock.tsx","layer":null},"startTime":1736836797437,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":32523,"timestamp":5497416,"id":811,"parentId":598,"tags":{"name":"/app/components/su/SuEnvContent.tsx","layer":null},"startTime":1736836797437,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":32864,"timestamp":5497462,"id":813,"parentId":589,"tags":{"name":"/app/components/general/Logo.tsx","layer":null},"startTime":1736836797437,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":34128,"timestamp":5496890,"id":801,"parentId":597,"tags":{"name":"/app/components/su/docs/SuDocsPageListContent.tsx","layer":null},"startTime":1736836797436,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":34609,"timestamp":5497449,"id":812,"parentId":600,"tags":{"name":"/app/components/su/SuDashboardContent.tsx","layer":null},"startTime":1736836797437,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":35698,"timestamp":5497063,"id":803,"parentId":680,"tags":{"name":"/app/node_modules/next/dist/shared/lib/is-thenable.js","layer":null},"startTime":1736836797436,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":36170,"timestamp":5497019,"id":802,"parentId":679,"tags":{"name":"/app/node_modules/next/dist/shared/lib/is-plain-object.js","layer":null},"startTime":1736836797436,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":36409,"timestamp":5497211,"id":806,"parentId":672,"tags":{"name":"/app/node_modules/next/dist/shared/lib/page-path/denormalize-page-path.js","layer":null},"startTime":1736836797437,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":37132,"timestamp":5497267,"id":807,"parentId":672,"tags":{"name":"/app/node_modules/next/dist/shared/lib/page-path/normalize-page-path.js","layer":null},"startTime":1736836797437,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":2919540,"timestamp":2618775,"id":187,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Flogout&preferredRegion=&absolutePagePath=private-next-pages%2Flogout.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736836794558,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":2920544,"timestamp":2617878,"id":55,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fcontact&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fcontact.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736836794557,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":2920167,"timestamp":2618284,"id":99,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FsendEmailVerificationLink&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FsendEmailVerificationLink.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736836794558,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":2920181,"timestamp":2618287,"id":100,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FsendPasswordResetLink&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FsendPasswordResetLink.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736836794558,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":2920125,"timestamp":2618366,"id":113,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Ftest%2Fmail&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Ftest%2Fmail.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736836794558,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":2920057,"timestamp":2618480,"id":129,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fuser%2F%5Buser_id%5D%2Fgoogle-login&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fuser%2F%5Buser_id%5D%2Fgoogle-login.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736836794558,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":31,"timestamp":5539469,"id":822,"parentId":700,"tags":{"name":"node-fetch","layer":null},"startTime":1736836797479,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":9,"timestamp":5539513,"id":823,"parentId":700,"tags":{"name":"sharp","layer":null},"startTime":1736836797479,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":10712,"timestamp":5539296,"id":819,"parentId":601,"tags":{"name":"/app/components/su/docs/SuSingleDocPageContent.tsx","layer":null},"startTime":1736836797479,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":10990,"timestamp":5539530,"id":824,"parentId":607,"tags":{"name":"/app/components/pages/terms/TermsHero.tsx","layer":null},"startTime":1736836797479,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":12243,"timestamp":5539439,"id":821,"parentId":589,"tags":{"name":"/app/components/pages/login/LoginForm.tsx","layer":null},"startTime":1736836797479,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":14010,"timestamp":5539213,"id":818,"parentId":593,"tags":{"name":"/app/components/su/SuConsoleContent.tsx","layer":null},"startTime":1736836797479,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":14388,"timestamp":5539390,"id":820,"parentId":674,"tags":{"name":"/app/node_modules/next/dist/shared/lib/modern-browserslist-target.js","layer":null},"startTime":1736836797479,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":26,"timestamp":5560686,"id":830,"parentId":704,"tags":{"name":"dotenv","layer":null},"startTime":1736836797500,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":13058,"timestamp":5559762,"id":826,"parentId":605,"tags":{"name":"/app/functions/backend/su/get-servers.ts","layer":null},"startTime":1736836797499,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":12833,"timestamp":5560805,"id":834,"parentId":604,"tags":{"name":"/app/functions/isLocalSuperUser.ts","layer":null},"startTime":1736836797500,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":13387,"timestamp":5560791,"id":833,"parentId":609,"tags":{"name":"/app/components/su/SuUsersContent.tsx","layer":null},"startTime":1736836797500,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":14023,"timestamp":5560643,"id":829,"parentId":603,"tags":{"name":"/app/components/su/load-balancing/index.tsx","layer":null},"startTime":1736836797500,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":14514,"timestamp":5560610,"id":828,"parentId":605,"tags":{"name":"/app/components/su/servers/index.tsx","layer":null},"startTime":1736836797500,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":15061,"timestamp":5560739,"id":831,"parentId":608,"tags":{"name":"/app/components/su/SuSingleUserContent.tsx","layer":null},"startTime":1736836797500,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":15819,"timestamp":5560775,"id":832,"parentId":599,"tags":{"name":"/app/components/su/SuErrorLogsContent.tsx","layer":null},"startTime":1736836797500,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":17936,"timestamp":5559690,"id":825,"parentId":607,"tags":{"name":"/app/components/pages/terms/TermsBody.tsx","layer":null},"startTime":1736836797499,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":2966585,"timestamp":2618875,"id":205,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fsu%2Flogin&preferredRegion=&absolutePagePath=private-next-pages%2Fsu%2Flogin.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736836794558,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":43034,"timestamp":5559782,"id":827,"parentId":703,"tags":{"name":"__barrel_optimize__?names=BookText!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736836797499,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":18169,"timestamp":5586264,"id":835,"parentId":619,"tags":{"name":"/app/functions/frontend/updateNavLinks.ts","layer":null},"startTime":1736836797526,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":4672,"timestamp":5609702,"id":841,"parentId":715,"tags":{"name":"__barrel_optimize__?names=FolderOutput!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736836797549,"traceId":"89448a764ba2dcee"}] +[{"name":"build-module-js","duration":6816,"timestamp":5610063,"id":853,"parentId":712,"tags":{"name":"__barrel_optimize__?names=ChevronDown,Download,FileInput,FolderOutput,SquareTerminal!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736836797549,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":16048,"timestamp":5609439,"id":836,"parentId":619,"tags":{"name":"/app/layouts/components/GeneralLayout/ProductionHeadComponent.tsx","layer":null},"startTime":1736836797549,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":16492,"timestamp":5609638,"id":839,"parentId":665,"tags":{"name":"/app/package-shared/utils/backend/global-db/DSQL_USER_DB_HANDLER.ts","layer":null},"startTime":1736836797549,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":16886,"timestamp":5609598,"id":838,"parentId":628,"tags":{"name":"/app/package-shared/utils/backend/global-db/DSQL_USER_DB_HANDLER.ts","layer":"api"},"startTime":1736836797549,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":16966,"timestamp":5609812,"id":845,"parentId":610,"tags":{"name":"/app/components/su/SuNewUserContent.tsx","layer":null},"startTime":1736836797549,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":17101,"timestamp":5609907,"id":849,"parentId":648,"tags":{"name":"/app/package-shared/shell/utils/noDatabaseDbHandler.ts","layer":"api"},"startTime":1736836797549,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":17415,"timestamp":5609880,"id":848,"parentId":648,"tags":{"name":"/app/package-shared/shell/utils/varDatabaseDbHandler.ts","layer":"api"},"startTime":1736836797549,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":17888,"timestamp":5609827,"id":846,"parentId":637,"tags":{"name":"/app/package-shared/utils/backend/global-db/LOCAL_DB_HANDLER.ts","layer":"api"},"startTime":1736836797549,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":18464,"timestamp":5609760,"id":843,"parentId":637,"tags":{"name":"/app/package-shared/functions/backend/parseDbResults.ts","layer":"api"},"startTime":1736836797549,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":18757,"timestamp":5609856,"id":847,"parentId":665,"tags":{"name":"/app/package-shared/utils/backend/global-db/LOCAL_DB_HANDLER.ts","layer":null},"startTime":1736836797549,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":19279,"timestamp":5609787,"id":844,"parentId":665,"tags":{"name":"/app/package-shared/functions/backend/parseDbResults.ts","layer":null},"startTime":1736836797549,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":20010,"timestamp":5609556,"id":837,"parentId":619,"tags":{"name":"/app/layouts/components/GeneralLayout/Footer.tsx","layer":null},"startTime":1736836797549,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":19710,"timestamp":5610096,"id":854,"parentId":641,"tags":{"name":"/app/package-shared/functions/backend/html/sanitizeHtmlOptions.ts","layer":"api"},"startTime":1736836797549,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":20013,"timestamp":5610163,"id":856,"parentId":664,"tags":{"name":"/app/package-shared/utils/backend/global-db/NO_DB_HANDLER.ts","layer":"api"},"startTime":1736836797550,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":20648,"timestamp":5609938,"id":850,"parentId":648,"tags":{"name":"/app/package-shared/shell/utils/dbHandler.ts","layer":"api"},"startTime":1736836797549,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":20763,"timestamp":5610277,"id":860,"parentId":707,"tags":{"name":"/app/package-shared/utils/camelJoinedtoCamelSpace.ts","layer":"api"},"startTime":1736836797550,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":21137,"timestamp":5610134,"id":855,"parentId":662,"tags":{"name":"/app/package-shared/shell/utils/slugToCamelTitle.ts","layer":"api"},"startTime":1736836797550,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":21379,"timestamp":5610192,"id":857,"parentId":713,"tags":{"name":"/app/package-shared/utils/backend/global-db/NO_DB_HANDLER.ts","layer":null},"startTime":1736836797550,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":22040,"timestamp":5610247,"id":859,"parentId":697,"tags":{"name":"/app/package-shared/functions/backend/addUsersTableToDb.ts","layer":"api"},"startTime":1736836797550,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":22707,"timestamp":5610305,"id":861,"parentId":690,"tags":{"name":"/app/package-shared/functions/api/social-login/loginSocialUser.ts","layer":"api"},"startTime":1736836797550,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":23740,"timestamp":5610375,"id":863,"parentId":697,"tags":{"name":"/app/package-shared/functions/backend/updateUsersTableSchema.ts","layer":"api"},"startTime":1736836797550,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":25045,"timestamp":5610220,"id":858,"parentId":711,"tags":{"name":"/app/components/general/DiskUsageComponent.tsx","layer":null},"startTime":1736836797550,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":27746,"timestamp":5609732,"id":842,"parentId":733,"tags":{"name":"/app/package-shared/functions/backend/db/addDbEntry.ts","layer":null},"startTime":1736836797549,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":29232,"timestamp":5609669,"id":840,"parentId":619,"tags":{"name":"/app/layouts/components/GeneralLayout/Header.tsx","layer":null},"startTime":1736836797549,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":30228,"timestamp":5609964,"id":851,"parentId":648,"tags":{"name":"/app/package-shared/shell/utils/createTable.ts","layer":"api"},"startTime":1736836797549,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":30910,"timestamp":5610348,"id":862,"parentId":701,"tags":{"name":"/app/package-shared/functions/backend/db/runQuery.ts","layer":"api"},"startTime":1736836797550,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":34786,"timestamp":5610015,"id":852,"parentId":648,"tags":{"name":"/app/package-shared/shell/utils/updateTable.ts","layer":"api"},"startTime":1736836797549,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":3031304,"timestamp":2617657,"id":37,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fadmin%2Fdocs%2F%5Baction%5D&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fadmin%2Fdocs%2F%5Baction%5D.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736836794557,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":3031038,"timestamp":2618037,"id":63,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FdeleteUserDatabase&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FdeleteUserDatabase.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736836794557,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":3030645,"timestamp":2618474,"id":128,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fuser%2F%5Buser_id%5D%2Fgithub-login&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fuser%2F%5Buser_id%5D%2Fgithub-login.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736836794558,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":3031012,"timestamp":2618141,"id":80,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FimportDatabase&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FimportDatabase.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736836794558,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":3063200,"timestamp":2618300,"id":102,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fsocial-login%2Fgithub-auth&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fsocial-login%2Fgithub-auth.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736836794558,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":3063314,"timestamp":2618306,"id":103,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fsocial-login%2Fgoogle-auth&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fsocial-login%2Fgoogle-auth.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736836794558,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":3063355,"timestamp":2618291,"id":101,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fsocial-login%2Ffacebook-auth&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fsocial-login%2Ffacebook-auth.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736836794558,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":12637,"timestamp":5692299,"id":871,"parentId":716,"tags":{"name":"/app/components/general/BackButton.tsx","layer":null},"startTime":1736836797632,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":13602,"timestamp":5692057,"id":864,"parentId":708,"tags":{"name":"/app/package-shared/utils/serialize-cookies.ts","layer":"api"},"startTime":1736836797631,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":13937,"timestamp":5692310,"id":872,"parentId":716,"tags":{"name":"/app/components/general/ActiveCloneDbBanner.tsx","layer":null},"startTime":1736836797632,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":14516,"timestamp":5692214,"id":867,"parentId":702,"tags":{"name":"/app/components/general/ScreenShotDescriptionCard.tsx","layer":null},"startTime":1736836797632,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":14858,"timestamp":5692366,"id":874,"parentId":718,"tags":{"name":"/app/components/admin/connect/MariaDBUsers.tsx","layer":null},"startTime":1736836797632,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":15246,"timestamp":5692439,"id":877,"parentId":724,"tags":{"name":"/app/components/admin/api-keys/ApiKeysList.tsx","layer":null},"startTime":1736836797632,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":15691,"timestamp":5692393,"id":875,"parentId":716,"tags":{"name":"/app/components/admin/databases/EditDatabaseForm.tsx","layer":null},"startTime":1736836797632,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":16263,"timestamp":5692250,"id":869,"parentId":702,"tags":{"name":"/app/components/general/ContainedSection.tsx","layer":null},"startTime":1736836797632,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":16924,"timestamp":5692340,"id":873,"parentId":718,"tags":{"name":"/app/components/admin/connect/ConnectionInfo.tsx","layer":null},"startTime":1736836797632,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":17614,"timestamp":5692188,"id":866,"parentId":711,"tags":{"name":"/app/layouts/components/AdminLayout/AdminHeader.tsx","layer":null},"startTime":1736836797632,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":18418,"timestamp":5692275,"id":870,"parentId":704,"tags":{"name":"/app/package-shared/shell/mariadb-users/handleGrants.ts","layer":"api"},"startTime":1736836797632,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":18400,"timestamp":5692538,"id":881,"parentId":740,"tags":{"name":"/app/components/admin/dashboard/DatabasesSummary.tsx","layer":null},"startTime":1736836797632,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":19416,"timestamp":5692237,"id":868,"parentId":725,"tags":{"name":"/app/components/general/GeneralPopup.tsx","layer":null},"startTime":1736836797632,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":19567,"timestamp":5692465,"id":878,"parentId":727,"tags":{"name":"/app/components/admin/databases/AddTableForm.tsx","layer":null},"startTime":1736836797632,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":20705,"timestamp":5692157,"id":865,"parentId":711,"tags":{"name":"/app/layouts/components/AdminLayout/Aside.tsx","layer":null},"startTime":1736836797632,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":20863,"timestamp":5692494,"id":879,"parentId":740,"tags":{"name":"/app/components/admin/dashboard/Metrics.tsx","layer":null},"startTime":1736836797632,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":22170,"timestamp":5692416,"id":876,"parentId":717,"tags":{"name":"/app/components/admin/connect/MariDBUserForm.tsx","layer":null},"startTime":1736836797632,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":22886,"timestamp":5692517,"id":880,"parentId":741,"tags":{"name":"/app/components/admin/users/DbUsersList.tsx","layer":null},"startTime":1736836797632,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":3103564,"timestamp":2618506,"id":133,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fuser%2F%5Buser_id%5D%2Fsend-email-code&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fuser%2F%5Buser_id%5D%2Fsend-email-code.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736836794558,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":3111290,"timestamp":2618338,"id":109,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fsql-users%2Fupdate&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fsql-users%2Fupdate.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736836794558,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":3111388,"timestamp":2618325,"id":107,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fsql-users%2Fcreate&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fsql-users%2Fcreate.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736836794558,"traceId":"89448a764ba2dcee"},{"name":"build-module-json","duration":737,"timestamp":5741007,"id":885,"parentId":744,"tags":{"name":"/app/jsonData/userPriviledges.json","layer":null},"startTime":1736836797680,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":4403,"timestamp":5740961,"id":884,"parentId":759,"tags":{"name":"__barrel_optimize__?names=ChevronUp!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736836797680,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":19171,"timestamp":5741082,"id":888,"parentId":715,"tags":{"name":"/app/components/general/DatabaseSlugCopy.tsx","layer":null},"startTime":1736836797680,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":19949,"timestamp":5741050,"id":887,"parentId":712,"tags":{"name":"/app/functions/frontend/downloadApiStream.ts","layer":null},"startTime":1736836797680,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":20813,"timestamp":5740720,"id":882,"parentId":740,"tags":{"name":"/app/components/admin/databases/DelegatedDatabasesSection.tsx","layer":null},"startTime":1736836797680,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":21340,"timestamp":5740852,"id":883,"parentId":741,"tags":{"name":"/app/components/admin/databases/DatabasesTablesList.tsx","layer":null},"startTime":1736836797680,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":22003,"timestamp":5741022,"id":886,"parentId":741,"tags":{"name":"/app/components/general/ui/ButtonGroup.tsx","layer":null},"startTime":1736836797680,"traceId":"89448a764ba2dcee"},{"name":"build-module-json","duration":1147,"timestamp":5768379,"id":897,"parentId":751,"tags":{"name":"/app/package-shared/data/dataTypes.json","layer":null},"startTime":1736836797708,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":4823,"timestamp":5768102,"id":890,"parentId":768,"tags":{"name":"__barrel_optimize__?names=ChevronLeft,ChevronRight!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736836797707,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":5634,"timestamp":5768411,"id":899,"parentId":771,"tags":{"name":"__barrel_optimize__?names=Copy!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736836797708,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":6986,"timestamp":5768445,"id":900,"parentId":770,"tags":{"name":"__barrel_optimize__?names=FileVideo2,Files,Images!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736836797708,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":8281,"timestamp":5768530,"id":903,"parentId":787,"tags":{"name":"__barrel_optimize__?names=CopyCheck,EarthLock,FileKey2,FolderOutput,Sheet,SquareGanttChart!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736836797708,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":9729,"timestamp":5768601,"id":905,"parentId":799,"tags":{"name":"__barrel_optimize__?names=FolderSync!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736836797708,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":11403,"timestamp":5768641,"id":906,"parentId":817,"tags":{"name":"__barrel_optimize__?names=Info!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736836797708,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":12866,"timestamp":5768669,"id":907,"parentId":813,"tags":{"name":"__barrel_optimize__?names=Menu!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736836797708,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":22781,"timestamp":5768344,"id":896,"parentId":726,"tags":{"name":"/app/functions/frontend/checkUniqueField.ts","layer":null},"startTime":1736836797708,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":23375,"timestamp":5768304,"id":895,"parentId":722,"tags":{"name":"/app/components/admin/databases/DatabaseShellQueryResult.tsx","layer":null},"startTime":1736836797708,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":24010,"timestamp":5768156,"id":891,"parentId":714,"tags":{"name":"/app/components/general/AceEditor.tsx","layer":null},"startTime":1736836797708,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":24095,"timestamp":5768479,"id":901,"parentId":712,"tags":{"name":"/app/components/general/CopySlug.tsx","layer":null},"startTime":1736836797708,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":25126,"timestamp":5767956,"id":889,"parentId":743,"tags":{"name":"/app/components/general/ActiveCloneTableBanner.tsx","layer":null},"startTime":1736836797707,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":25374,"timestamp":5768177,"id":892,"parentId":714,"tags":{"name":"/app/components/admin/databases/DatabaseTablesTablePreview.tsx","layer":null},"startTime":1736836797708,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":25801,"timestamp":5768394,"id":898,"parentId":714,"tags":{"name":"/app/components/form/FormSelect.tsx","layer":null},"startTime":1736836797708,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":27163,"timestamp":5768216,"id":893,"parentId":743,"tags":{"name":"/app/components/admin/databases/EditTableForm.tsx","layer":null},"startTime":1736836797708,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":28218,"timestamp":5768566,"id":904,"parentId":730,"tags":{"name":"/app/components/admin/databases/connect/ConnectForm.tsx","layer":null},"startTime":1736836797708,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":30100,"timestamp":5768256,"id":894,"parentId":743,"tags":{"name":"/app/components/admin/databases/TableFields.tsx","layer":null},"startTime":1736836797708,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":31561,"timestamp":5768498,"id":902,"parentId":728,"tags":{"name":"/app/components/admin/databases/ExistingFieldEdit.tsx","layer":null},"startTime":1736836797708,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":4494,"timestamp":5850211,"id":936,"parentId":858,"tags":{"name":"__barrel_optimize__?names=ArrowLeft,HardDrive,RotateCw!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736836797790,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":5306,"timestamp":5850262,"id":937,"parentId":840,"tags":{"name":"__barrel_optimize__?names=ChevronDown!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736836797790,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":17669,"timestamp":5850081,"id":931,"parentId":761,"tags":{"name":"/app/functions/frontend/inputFileToBase64.ts","layer":null},"startTime":1736836797789,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":20836,"timestamp":5847528,"id":920,"parentId":751,"tags":{"name":"/app/components/admin/databases/MoreTableOptions.tsx","layer":null},"startTime":1736836797787,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":21694,"timestamp":5847361,"id":914,"parentId":754,"tags":{"name":"/app/components/admin/databases/AddDatabaseForm.tsx","layer":null},"startTime":1736836797787,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":19700,"timestamp":5850052,"id":930,"parentId":762,"tags":{"name":"/app/components/admin/databases/DatabasesList.tsx","layer":null},"startTime":1736836797789,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":23081,"timestamp":5847329,"id":912,"parentId":744,"tags":{"name":"/app/components/form/FormCheckboxes.tsx","layer":null},"startTime":1736836797787,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":24052,"timestamp":5847554,"id":921,"parentId":751,"tags":{"name":"/app/components/admin/databases/ImportExportEntries.tsx","layer":null},"startTime":1736836797787,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":24824,"timestamp":5847346,"id":913,"parentId":739,"tags":{"name":"/app/components/form/FormRadios.tsx","layer":null},"startTime":1736836797787,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":25036,"timestamp":5847598,"id":923,"parentId":745,"tags":{"name":"/app/components/admin/users/UserImage.tsx","layer":null},"startTime":1736836797787,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":26094,"timestamp":5847275,"id":911,"parentId":729,"tags":{"name":"/app/components/admin/databases/TablesList.tsx","layer":null},"startTime":1736836797787,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":23970,"timestamp":5850105,"id":932,"parentId":758,"tags":{"name":"/app/components/admin/databases/SelectNewEntry.tsx","layer":null},"startTime":1736836797789,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":24117,"timestamp":5850184,"id":935,"parentId":755,"tags":{"name":"/app/functions/frontend/imageInputFileToBase64.ts","layer":null},"startTime":1736836797790,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":27865,"timestamp":5847444,"id":917,"parentId":751,"tags":{"name":"/app/components/admin/databases/TableEntriesList.tsx","layer":null},"startTime":1736836797787,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":25309,"timestamp":5850324,"id":939,"parentId":842,"tags":{"name":"/app/package-shared/functions/backend/html/sanitizeHtmlOptions.ts","layer":null},"startTime":1736836797790,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":29420,"timestamp":5847389,"id":915,"parentId":746,"tags":{"name":"/app/components/admin/databases/TableEntryForm.tsx","layer":null},"startTime":1736836797787,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":27033,"timestamp":5850129,"id":933,"parentId":758,"tags":{"name":"/app/components/admin/databases/SingleEntryPrevNext.tsx","layer":null},"startTime":1736836797790,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":27355,"timestamp":5850292,"id":938,"parentId":842,"tags":{"name":"/app/package-shared/functions/dsql/encrypt.ts","layer":null},"startTime":1736836797790,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":31369,"timestamp":5847467,"id":918,"parentId":750,"tags":{"name":"/app/components/admin/users/DbCreateDbUserForm.tsx","layer":null},"startTime":1736836797787,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":32310,"timestamp":5847575,"id":922,"parentId":752,"tags":{"name":"/app/components/admin/databases/TableIndexes.tsx","layer":null},"startTime":1736836797787,"traceId":"89448a764ba2dcee"}] +[{"name":"build-module-tsx","duration":32464,"timestamp":5850155,"id":934,"parentId":758,"tags":{"name":"/app/components/admin/databases/UpdateEntryForm.tsx","layer":null},"startTime":1736836797790,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":36054,"timestamp":5847175,"id":909,"parentId":806,"tags":{"name":"/app/node_modules/next/dist/shared/lib/page-path/normalize-path-sep.js","layer":null},"startTime":1736836797787,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":36245,"timestamp":5847226,"id":910,"parentId":807,"tags":{"name":"/app/node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","layer":null},"startTime":1736836797787,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":36401,"timestamp":5847499,"id":919,"parentId":827,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/book-text.js","layer":null},"startTime":1736836797787,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":37055,"timestamp":5847414,"id":916,"parentId":806,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/index.js","layer":null},"startTime":1736836797787,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":34998,"timestamp":5849862,"id":925,"parentId":841,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/folder-output.js","layer":null},"startTime":1736836797789,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":35213,"timestamp":5849920,"id":926,"parentId":853,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/chevron-down.js","layer":null},"startTime":1736836797789,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":36219,"timestamp":5849958,"id":927,"parentId":853,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/square-terminal.js","layer":null},"startTime":1736836797789,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":36496,"timestamp":5849988,"id":928,"parentId":853,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/download.js","layer":null},"startTime":1736836797789,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":36755,"timestamp":5850019,"id":929,"parentId":853,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/file-input.js","layer":null},"startTime":1736836797789,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":42195,"timestamp":5847057,"id":908,"parentId":807,"tags":{"name":"/app/node_modules/next/dist/shared/lib/utils.js","layer":null},"startTime":1736836797786,"traceId":"89448a764ba2dcee"},{"name":"postcss-process","duration":30074,"timestamp":6075976,"id":941,"parentId":940,"tags":{},"startTime":1736836798015,"traceId":"89448a764ba2dcee"},{"name":"postcss-loader","duration":254919,"timestamp":5851183,"id":940,"parentId":924,"tags":{},"startTime":1736836797791,"traceId":"89448a764ba2dcee"},{"name":"css-loader","duration":38104,"timestamp":6106300,"id":942,"parentId":924,"tags":{"astUsed":"true"},"startTime":1736836798046,"traceId":"89448a764ba2dcee"},{"name":"build-module-css","duration":297083,"timestamp":5847614,"id":924,"parentId":786,"tags":{"name":"/app/components/pages/homepage/Home.module.css","layer":null},"startTime":1736836797787,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":105,"timestamp":6180696,"id":944,"parentId":818,"tags":{"name":"ansi-regex","layer":null},"startTime":1736836798120,"traceId":"89448a764ba2dcee"},{"name":"build-module-io-client","duration":9,"timestamp":6180815,"id":945,"parentId":818,"tags":{"name":"socket.io-client","layer":null},"startTime":1736836798120,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":2976,"timestamp":6180913,"id":949,"parentId":871,"tags":{"name":"__barrel_optimize__?names=ArrowLeft!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736836798120,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":4166,"timestamp":6180938,"id":950,"parentId":873,"tags":{"name":"__barrel_optimize__?names=Copy,Download!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736836798120,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":5522,"timestamp":6181000,"id":953,"parentId":868,"tags":{"name":"__barrel_optimize__?names=X!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736836798120,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":6758,"timestamp":6181020,"id":954,"parentId":865,"tags":{"name":"__barrel_optimize__?names=BookText,CircleGauge,Database,FileKey2,Globe,Images,ShieldEllipsis,Users!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736836798120,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":7971,"timestamp":6181041,"id":955,"parentId":879,"tags":{"name":"__barrel_optimize__?names=Database,Images,Key,Sheet!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736836798120,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":14630,"timestamp":6180834,"id":946,"parentId":768,"tags":{"name":"/app/functions/frontend/updateDiskUsage.ts","layer":null},"startTime":1736836798120,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":14673,"timestamp":6181162,"id":961,"parentId":780,"tags":{"name":"/app/components/general/FormAlertBlock.tsx","layer":null},"startTime":1736836798121,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":15162,"timestamp":6181088,"id":957,"parentId":768,"tags":{"name":"/app/functions/frontend/downloadPrivateFile.ts","layer":null},"startTime":1736836798120,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":15818,"timestamp":6181065,"id":956,"parentId":775,"tags":{"name":"/app/components/admin/users/DatabaseUsers.tsx","layer":null},"startTime":1736836798120,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":16386,"timestamp":6181107,"id":958,"parentId":768,"tags":{"name":"/app/functions/frontend/downloadFile.ts","layer":null},"startTime":1736836798120,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":17016,"timestamp":6180978,"id":952,"parentId":767,"tags":{"name":"/app/components/admin/media/NewFileCard.tsx","layer":null},"startTime":1736836798120,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":17765,"timestamp":6180869,"id":947,"parentId":760,"tags":{"name":"/app/components/admin/databases/UserImage.tsx","layer":null},"startTime":1736836798120,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":18317,"timestamp":6180957,"id":951,"parentId":767,"tags":{"name":"/app/components/admin/media/NewMediaCard.tsx","layer":null},"startTime":1736836798120,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":20095,"timestamp":6180582,"id":943,"parentId":842,"tags":{"name":"/app/package-shared/functions/backend/db/updateDbEntry.ts","layer":null},"startTime":1736836798120,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":21364,"timestamp":6181116,"id":959,"parentId":768,"tags":{"name":"/app/components/admin/media/card/MediaMoreButton.tsx","layer":null},"startTime":1736836798121,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":24388,"timestamp":6180891,"id":948,"parentId":760,"tags":{"name":"/app/components/pages/create-account/CreateAccountForm.tsx","layer":null},"startTime":1736836798120,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":24767,"timestamp":6181136,"id":960,"parentId":884,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/chevron-up.js","layer":null},"startTime":1736836798121,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":12329,"timestamp":6243643,"id":979,"parentId":787,"tags":{"name":"/app/components/general/IconText.tsx","layer":null},"startTime":1736836798183,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":12952,"timestamp":6243657,"id":980,"parentId":786,"tags":{"name":"/app/components/general/FadedImage.tsx","layer":null},"startTime":1736836798183,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":13564,"timestamp":6243617,"id":978,"parentId":774,"tags":{"name":"/app/components/admin/users/InvitationReceivedCard.tsx","layer":null},"startTime":1736836798183,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":14608,"timestamp":6243134,"id":962,"parentId":772,"tags":{"name":"/app/components/admin/media/MediaList.tsx","layer":null},"startTime":1736836798183,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":15017,"timestamp":6243197,"id":963,"parentId":774,"tags":{"name":"/app/components/admin/users/UsersList.tsx","layer":null},"startTime":1736836798183,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":15298,"timestamp":6243353,"id":969,"parentId":900,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/images.js","layer":null},"startTime":1736836798183,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":15566,"timestamp":6243301,"id":967,"parentId":899,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/copy.js","layer":null},"startTime":1736836798183,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":15711,"timestamp":6243327,"id":968,"parentId":900,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/files.js","layer":null},"startTime":1736836798183,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":15988,"timestamp":6243212,"id":964,"parentId":890,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/chevron-left.js","layer":null},"startTime":1736836798183,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":15996,"timestamp":6243380,"id":970,"parentId":903,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/copy-check.js","layer":null},"startTime":1736836798183,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":16293,"timestamp":6243245,"id":965,"parentId":890,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/chevron-right.js","layer":null},"startTime":1736836798183,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":16464,"timestamp":6243275,"id":966,"parentId":900,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/file-video-2.js","layer":null},"startTime":1736836798183,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":16486,"timestamp":6243422,"id":971,"parentId":903,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/earth-lock.js","layer":null},"startTime":1736836798183,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":16632,"timestamp":6243483,"id":973,"parentId":903,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/sheet.js","layer":null},"startTime":1736836798183,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":16788,"timestamp":6243510,"id":974,"parentId":903,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/square-gantt-chart.js","layer":null},"startTime":1736836798183,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":17048,"timestamp":6243455,"id":972,"parentId":903,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/file-key-2.js","layer":null},"startTime":1736836798183,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":17126,"timestamp":6243546,"id":975,"parentId":905,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/folder-sync.js","layer":null},"startTime":1736836798183,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":17246,"timestamp":6243570,"id":976,"parentId":906,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/info.js","layer":null},"startTime":1736836798183,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":17365,"timestamp":6243593,"id":977,"parentId":907,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/menu.js","layer":null},"startTime":1736836798183,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":21,"timestamp":6264535,"id":982,"parentId":894,"tags":{"name":"gsap/Flip","layer":null},"startTime":1736836798204,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":7,"timestamp":6264567,"id":983,"parentId":891,"tags":{"name":"tailwind-merge","layer":null},"startTime":1736836798204,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":6,"timestamp":6264583,"id":984,"parentId":894,"tags":{"name":"gsap","layer":null},"startTime":1736836798204,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":3174,"timestamp":6264708,"id":991,"parentId":920,"tags":{"name":"__barrel_optimize__?names=Ellipsis!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736836798204,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":4566,"timestamp":6264734,"id":992,"parentId":930,"tags":{"name":"__barrel_optimize__?names=PackagePlus!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736836798204,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":5538,"timestamp":6264758,"id":993,"parentId":911,"tags":{"name":"__barrel_optimize__?names=Copy,CopyPlus,Edit,FileX2,Grid2X2!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736836798204,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":6142,"timestamp":6264964,"id":1002,"parentId":917,"tags":{"name":"__barrel_optimize__?names=Grid2x2!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736836798204,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":15795,"timestamp":6264595,"id":985,"parentId":783,"tags":{"name":"/app/components/cards/LinkCard.tsx","layer":null},"startTime":1736836798204,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":16149,"timestamp":6264821,"id":996,"parentId":800,"tags":{"name":"/app/components/su/components/RichText/DocsRichTextBlock.tsx","layer":null},"startTime":1736836798204,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":16954,"timestamp":6264697,"id":990,"parentId":818,"tags":{"name":"/app/components/su/xterm.ts","layer":null},"startTime":1736836798204,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":17606,"timestamp":6264464,"id":981,"parentId":786,"tags":{"name":"/app/components/general/CodeBlock.tsx","layer":null},"startTime":1736836798204,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":17597,"timestamp":6264928,"id":1000,"parentId":821,"tags":{"name":"/app/functions/frontend/userLogin.ts","layer":null},"startTime":1736836798204,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":18052,"timestamp":6264941,"id":1001,"parentId":831,"tags":{"name":"/app/components/su/components/UserBackups.tsx","layer":null},"startTime":1736836798204,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":18973,"timestamp":6264616,"id":986,"parentId":794,"tags":{"name":"/app/layouts/components/SuAdminLayout/AdminHeader.tsx","layer":null},"startTime":1736836798204,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":19390,"timestamp":6264781,"id":994,"parentId":812,"tags":{"name":"/app/components/su/components/UserCard.tsx","layer":null},"startTime":1736836798204,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":20134,"timestamp":6264801,"id":995,"parentId":801,"tags":{"name":"/app/components/su/components/PageCard.tsx","layer":null},"startTime":1736836798204,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":21247,"timestamp":6264649,"id":987,"parentId":794,"tags":{"name":"/app/layouts/components/SuAdminLayout/Aside.tsx","layer":null},"startTime":1736836798204,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":22110,"timestamp":6264688,"id":989,"parentId":811,"tags":{"name":"/app/components/su/SuEnvCard.tsx","layer":null},"startTime":1736836798204,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":24204,"timestamp":6264674,"id":988,"parentId":800,"tags":{"name":"/app/components/form/FormInput.tsx","layer":null},"startTime":1736836798204,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":24328,"timestamp":6264896,"id":999,"parentId":936,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/rotate-cw.js","layer":null},"startTime":1736836798204,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":24564,"timestamp":6264841,"id":997,"parentId":936,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/arrow-left.js","layer":null},"startTime":1736836798204,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":24728,"timestamp":6264867,"id":998,"parentId":936,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/hard-drive.js","layer":null},"startTime":1736836798204,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":34,"timestamp":6312802,"id":1007,"parentId":920,"tags":{"name":"react-tiny-popover","layer":null},"startTime":1736836798252,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":8,"timestamp":6312885,"id":1009,"parentId":935,"tags":{"name":"@moduletrace/datasquirel/dist/client","layer":null},"startTime":1736836798252,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":2597,"timestamp":6313468,"id":1030,"parentId":962,"tags":{"name":"__barrel_optimize__?names=Plus!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736836798253,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":10914,"timestamp":6313250,"id":1021,"parentId":844,"tags":{"name":"/app/package-shared/functions/backend/defaultFieldsRegexp.ts","layer":null},"startTime":1736836798253,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":11139,"timestamp":6313227,"id":1020,"parentId":843,"tags":{"name":"/app/package-shared/functions/backend/defaultFieldsRegexp.ts","layer":"api"},"startTime":1736836798253,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":11432,"timestamp":6313275,"id":1022,"parentId":846,"tags":{"name":"/app/package-shared/utils/backend/grabDbSSL.ts","layer":"api"},"startTime":1736836798253,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":11640,"timestamp":6313297,"id":1023,"parentId":847,"tags":{"name":"/app/package-shared/utils/backend/grabDbSSL.ts","layer":null},"startTime":1736836798253,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":12513,"timestamp":6312626,"id":1003,"parentId":826,"tags":{"name":"/app/functions/backend/su/get-servers-json-path.ts","layer":null},"startTime":1736836798252,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":12166,"timestamp":6313413,"id":1028,"parentId":851,"tags":{"name":"/app/package-shared/shell/utils/supplementTable.ts","layer":"api"},"startTime":1736836798253,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":13158,"timestamp":6312747,"id":1005,"parentId":826,"tags":{"name":"/app/functions/backend/su/check-servers.ts","layer":null},"startTime":1736836798252,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":12875,"timestamp":6313433,"id":1029,"parentId":851,"tags":{"name":"/app/package-shared/shell/utils/generateColumnDescription.ts","layer":"api"},"startTime":1736836798253,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":14130,"timestamp":6312718,"id":1004,"parentId":821,"tags":{"name":"/app/components/pages/login/SocialLogin.tsx","layer":null},"startTime":1736836798252,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":14484,"timestamp":6312773,"id":1006,"parentId":831,"tags":{"name":"/app/components/su/components/UserData.tsx","layer":null},"startTime":1736836798252,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":14164,"timestamp":6313505,"id":1031,"parentId":839,"tags":{"name":"/app/package-shared/utils/db/conn-db-handler.ts","layer":null},"startTime":1736836798253,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":14268,"timestamp":6313557,"id":1033,"parentId":862,"tags":{"name":"/app/package-shared/utils/trim-sql.ts","layer":"api"},"startTime":1736836798253,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":15244,"timestamp":6312980,"id":1012,"parentId":829,"tags":{"name":"/app/components/su/load-balancing/(partials)/ServerCard.tsx","layer":null},"startTime":1736836798252,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":15272,"timestamp":6313383,"id":1027,"parentId":863,"tags":{"name":"/app/package-shared/functions/backend/grabSchemaFieldsFromData.ts","layer":"api"},"startTime":1736836798253,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":15756,"timestamp":6313342,"id":1025,"parentId":840,"tags":{"name":"/app/components/general/ThemeSelector.tsx","layer":null},"startTime":1736836798253,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":16287,"timestamp":6313361,"id":1026,"parentId":840,"tags":{"name":"/app/layouts/components/AdminLayout/AdminUserBlock.tsx","layer":null},"startTime":1736836798253,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":16440,"timestamp":6313536,"id":1032,"parentId":838,"tags":{"name":"/app/package-shared/utils/db/conn-db-handler.ts","layer":"api"},"startTime":1736836798253,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":16973,"timestamp":6313317,"id":1024,"parentId":859,"tags":{"name":"/app/package-shared/functions/backend/grabNewUsersTableSchema.ts","layer":"api"},"startTime":1736836798253,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":16940,"timestamp":6313597,"id":1035,"parentId":862,"tags":{"name":"/app/package-shared/functions/backend/fullAccessDbHandler.ts","layer":"api"},"startTime":1736836798253,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":17200,"timestamp":6313570,"id":1034,"parentId":862,"tags":{"name":"/app/package-shared/functions/backend/varReadOnlyDatabaseDbHandler.ts","layer":"api"},"startTime":1736836798253,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":18107,"timestamp":6313021,"id":1013,"parentId":953,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/x.js","layer":null},"startTime":1736836798252,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":18496,"timestamp":6312943,"id":1011,"parentId":916,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/is-dynamic.js","layer":null},"startTime":1736836798252,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":19061,"timestamp":6312854,"id":1008,"parentId":919,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/createLucideIcon.js","layer":null},"startTime":1736836798252,"traceId":"89448a764ba2dcee"}] +[{"name":"build-module-js","duration":20746,"timestamp":6312900,"id":1010,"parentId":916,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/sorted-routes.js","layer":null},"startTime":1736836798252,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":20777,"timestamp":6313135,"id":1017,"parentId":954,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/database.js","layer":null},"startTime":1736836798253,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":21036,"timestamp":6313054,"id":1014,"parentId":955,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/key.js","layer":null},"startTime":1736836798252,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":21172,"timestamp":6313110,"id":1016,"parentId":954,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/globe.js","layer":null},"startTime":1736836798252,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":21406,"timestamp":6313082,"id":1015,"parentId":954,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/users.js","layer":null},"startTime":1736836798252,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":21514,"timestamp":6313162,"id":1018,"parentId":954,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/shield-ellipsis.js","layer":null},"startTime":1736836798253,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":21684,"timestamp":6313192,"id":1019,"parentId":954,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/circle-gauge.js","layer":null},"startTime":1736836798253,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":3723722,"timestamp":2617769,"id":48,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FcheckDuplicateData&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FcheckDuplicateData.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736836794557,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":3723669,"timestamp":2617992,"id":58,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FdeleteDbUser&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FdeleteDbUser.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736836794557,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":3723622,"timestamp":2618063,"id":69,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Ffetch-entries-basic&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Ffetch-entries-basic.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736836794557,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":3724041,"timestamp":2617663,"id":38,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fadmin%2FgetTablesForUserDatabase&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fadmin%2FgetTablesForUserDatabase.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736836794557,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":3723975,"timestamp":2617748,"id":45,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fadmin%2FrunUserDbQuery&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fadmin%2FrunUserDbQuery.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736836794557,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":3723588,"timestamp":2618152,"id":82,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FinfiniteScroll&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FinfiniteScroll.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736836794558,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":3723734,"timestamp":2618048,"id":65,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FdeleteUserTable&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FdeleteUserTable.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736836794557,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":3723529,"timestamp":2618278,"id":98,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FrunUserDbQuery&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FrunUserDbQuery.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736836794558,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":3723597,"timestamp":2618231,"id":91,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FqueryEntriesSearchTerm&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FqueryEntriesSearchTerm.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736836794558,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":3723595,"timestamp":2618249,"id":93,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FrefreshEntry&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FrefreshEntry.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736836794558,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":3724383,"timestamp":2617494,"id":24,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FaddAdminUserUser&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FaddAdminUserUser.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736836794557,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":3723707,"timestamp":2618186,"id":84,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FloginUser&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FloginUser.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736836794558,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":3724005,"timestamp":2617909,"id":56,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FdeleteApiKey&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FdeleteApiKey.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736836794557,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":3723902,"timestamp":2618029,"id":61,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FdeleteTableEntry&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FdeleteTableEntry.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736836794557,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":3723905,"timestamp":2618044,"id":64,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FdeleteUserMedia&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FdeleteUserMedia.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736836794557,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":3723246,"timestamp":2618725,"id":177,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fquery%2F%5Buser_id%5D%2Fdelete-file&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fquery%2F%5Buser_id%5D%2Fdelete-file.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736836794558,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":3723600,"timestamp":2618391,"id":118,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FupdateDbUser&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FupdateDbUser.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736836794558,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":3723590,"timestamp":2618418,"id":121,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FupdateUserDatabase&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FupdateUserDatabase.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736836794558,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":3723634,"timestamp":2618431,"id":122,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FupdateUserUser&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FupdateUserUser.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736836794558,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":3723668,"timestamp":2618414,"id":120,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FupdateUser&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FupdateUser.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736836794558,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":3723689,"timestamp":2618408,"id":119,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FupdateTableEntry&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FupdateTableEntry.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736836794558,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":3724330,"timestamp":2617815,"id":52,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fconnect%2Fhandshake&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fconnect%2Fhandshake.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736836794557,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":3724375,"timestamp":2617797,"id":51,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fconnect%2Fdisconnect&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fconnect%2Fdisconnect.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736836794557,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":3725492,"timestamp":2617510,"id":26,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FaddDbUser&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FaddDbUser.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736836794557,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":3725557,"timestamp":2617474,"id":23,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FacceptUserInvitation&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FacceptUserInvitation.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736836794557,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":3725547,"timestamp":2617503,"id":25,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FaddApiKey&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FaddApiKey.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736836794557,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":3725495,"timestamp":2617569,"id":29,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FaddTableEntry&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FaddTableEntry.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736836794557,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":3725494,"timestamp":2617585,"id":31,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FaddUserUser&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FaddUserUser.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736836794557,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":3724713,"timestamp":2618378,"id":115,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FupdateAdminUserAccess&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FupdateAdminUserAccess.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736836794558,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":3724856,"timestamp":2618253,"id":94,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FregisterUser&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FregisterUser.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736836794558,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":3724753,"timestamp":2618370,"id":114,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Funsubscribe&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Funsubscribe.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736836794558,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":3724417,"timestamp":2618718,"id":175,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fquery%2F%5Buser_id%5D%2Fadd-image&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fquery%2F%5Buser_id%5D%2Fadd-image.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736836794558,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":3724446,"timestamp":2618702,"id":174,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fquery%2F%5Buser_id%5D%2Fadd-file&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fquery%2F%5Buser_id%5D%2Fadd-file.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736836794558,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":3724475,"timestamp":2618686,"id":171,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FaddUserMedia&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FaddUserMedia.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736836794558,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":4288,"timestamp":6340986,"id":1036,"parentId":995,"tags":{"name":"__barrel_optimize__?names=Layers,Newspaper!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736836798280,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":4941,"timestamp":6341085,"id":1037,"parentId":987,"tags":{"name":"__barrel_optimize__?names=BookText,CloudUpload,DatabaseBackup,FileWarning,Home,LockKeyhole,Server,SquareChevronRight,Users!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736836798280,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":3733554,"timestamp":2618216,"id":89,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fquery%2F%5Buser_id%5D%2Fget&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fquery%2F%5Buser_id%5D%2Fget.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736836794558,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":3733152,"timestamp":2618732,"id":178,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fquery%2F%5Buser_id%5D%2Fpost&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fquery%2F%5Buser_id%5D%2Fpost.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736836794558,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":3734918,"timestamp":2617593,"id":32,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FaddUserTable&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FaddUserTable.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736836794557,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":3734985,"timestamp":2617576,"id":30,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FaddUsersTableToDatabase&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FaddUsersTableToDatabase.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736836794557,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":3734632,"timestamp":2617958,"id":57,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FcreateUserDatabase&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FcreateUserDatabase.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736836794557,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":3734460,"timestamp":2618148,"id":81,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FimportDatabaseSchema&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FimportDatabaseSchema.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736836794558,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":3734236,"timestamp":2618388,"id":117,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FupdateDbSchemaDataForUser&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FupdateDbSchemaDataForUser.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736836794558,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":3734173,"timestamp":2618470,"id":127,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FupdateUserTable&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FupdateUserTable.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736836794558,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":3734277,"timestamp":2618382,"id":116,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FupdateClonedTableForeignKeys&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FupdateClonedTableForeignKeys.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736836794558,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":3734453,"timestamp":2618222,"id":90,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fquery%2F%5Buser_id%5D%2Fupdate-schema-from-single-database&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fquery%2F%5Buser_id%5D%2Fupdate-schema-from-single-database.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736836794558,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":3734238,"timestamp":2618454,"id":124,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fuser-schema%2Freplace-database-schema&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fuser-schema%2Freplace-database-schema.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736836794558,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":3734416,"timestamp":2618448,"id":123,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fuser%2F%5Buser_id%5D%2Fadd-user&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fuser%2F%5Buser_id%5D%2Fadd-user.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736836794558,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":20354,"timestamp":6341428,"id":1047,"parentId":875,"tags":{"name":"/app/components/admin/databases/DatabaseImage.tsx","layer":null},"startTime":1736836798281,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":21220,"timestamp":6341369,"id":1045,"parentId":877,"tags":{"name":"/app/components/admin/api-keys/ApiKeyListCard.tsx","layer":null},"startTime":1736836798281,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":22152,"timestamp":6341317,"id":1044,"parentId":874,"tags":{"name":"/app/components/admin/connect/MariaDBUserCard.tsx","layer":null},"startTime":1736836798281,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":23041,"timestamp":6341451,"id":1048,"parentId":878,"tags":{"name":"/app/components/admin/databases/NewTableForm.tsx","layer":null},"startTime":1736836798281,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":24445,"timestamp":6341401,"id":1046,"parentId":875,"tags":{"name":"/app/components/admin/databases/DatabaseForm.tsx","layer":null},"startTime":1736836798281,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":26297,"timestamp":6341119,"id":1038,"parentId":991,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/ellipsis.js","layer":null},"startTime":1736836798281,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":26470,"timestamp":6341218,"id":1041,"parentId":993,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/square-pen.js","layer":null},"startTime":1736836798281,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":26631,"timestamp":6341284,"id":1043,"parentId":993,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/grid-2x2.js","layer":null},"startTime":1736836798281,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":26853,"timestamp":6341253,"id":1042,"parentId":993,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/file-x-2.js","layer":null},"startTime":1736836798281,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":27166,"timestamp":6341154,"id":1039,"parentId":993,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/copy-plus.js","layer":null},"startTime":1736836798281,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":27376,"timestamp":6341189,"id":1040,"parentId":992,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/package-plus.js","layer":null},"startTime":1736836798281,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":48,"timestamp":6373559,"id":1050,"parentId":990,"tags":{"name":"xterm","layer":null},"startTime":1736836798313,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":16323,"timestamp":6373719,"id":1053,"parentId":894,"tags":{"name":"/app/components/general/ExpandBlock.tsx","layer":null},"startTime":1736836798313,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":17871,"timestamp":6373675,"id":1052,"parentId":882,"tags":{"name":"/app/components/admin/databases/DatabaseListCard.tsx","layer":null},"startTime":1736836798313,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":19246,"timestamp":6373457,"id":1049,"parentId":878,"tags":{"name":"/app/components/admin/databases/CloneTableForm.tsx","layer":null},"startTime":1736836798313,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":20705,"timestamp":6373632,"id":1051,"parentId":876,"tags":{"name":"/app/components/admin/connect/MariDBUserFormGrantsSection.tsx","layer":null},"startTime":1736836798313,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":63,"timestamp":6402204,"id":1056,"parentId":990,"tags":{"name":"xterm-addon-fit","layer":null},"startTime":1736836798342,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":3440,"timestamp":6402145,"id":1055,"parentId":1012,"tags":{"name":"__barrel_optimize__?names=Server!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736836798342,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":13370,"timestamp":6402424,"id":1059,"parentId":1011,"tags":{"name":"/app/node_modules/next/dist/server/lib/interception-routes.js","layer":null},"startTime":1736836798342,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":14076,"timestamp":6401992,"id":1054,"parentId":894,"tags":{"name":"/app/functions/frontend/addNewTempField.ts","layer":null},"startTime":1736836798341,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":13793,"timestamp":6402530,"id":1061,"parentId":879,"tags":{"name":"/app/components/general/MetricCard.tsx","layer":null},"startTime":1736836798342,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":14426,"timestamp":6402476,"id":1060,"parentId":902,"tags":{"name":"/app/components/admin/databases/MoreOptionsModal.tsx","layer":null},"startTime":1736836798342,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":15016,"timestamp":6402292,"id":1057,"parentId":1008,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/defaultAttributes.js","layer":null},"startTime":1736836798342,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":15104,"timestamp":6402348,"id":1058,"parentId":1030,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/plus.js","layer":null},"startTime":1736836798342,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":2455,"timestamp":6421887,"id":1062,"parentId":1044,"tags":{"name":"__barrel_optimize__?names=CircleX,Copy,Edit!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736836798361,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":10726,"timestamp":6422475,"id":1077,"parentId":911,"tags":{"name":"/app/components/admin/databases/ImportDbComponent.tsx","layer":null},"startTime":1736836798362,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":11358,"timestamp":6422548,"id":1078,"parentId":911,"tags":{"name":"/app/components/admin/databases/ImportSchemaComponent.tsx","layer":null},"startTime":1736836798362,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":12281,"timestamp":6422572,"id":1079,"parentId":911,"tags":{"name":"/app/components/admin/databases/TableListCard.tsx","layer":null},"startTime":1736836798362,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":14050,"timestamp":6422400,"id":1074,"parentId":894,"tags":{"name":"/app/components/admin/databases/NewFieldTemp.tsx","layer":null},"startTime":1736836798362,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":15016,"timestamp":6422423,"id":1075,"parentId":894,"tags":{"name":"/app/components/admin/databases/ClonedSingleTableFieldCard.tsx","layer":null},"startTime":1736836798362,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":16015,"timestamp":6422366,"id":1073,"parentId":894,"tags":{"name":"/app/components/admin/databases/SingleTableFieldCard.tsx","layer":null},"startTime":1736836798362,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":17126,"timestamp":6422452,"id":1076,"parentId":920,"tags":{"name":"/app/components/admin/databases/SyncDataButton.tsx","layer":null},"startTime":1736836798362,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":18103,"timestamp":6421986,"id":1063,"parentId":1008,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/shared/src/utils.js","layer":null},"startTime":1736836798361,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":18342,"timestamp":6422024,"id":1064,"parentId":1036,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/layers.js","layer":null},"startTime":1736836798361,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":18530,"timestamp":6422061,"id":1065,"parentId":1037,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/cloud-upload.js","layer":null},"startTime":1736836798361,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":18699,"timestamp":6422124,"id":1066,"parentId":1036,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/newspaper.js","layer":null},"startTime":1736836798362,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":18842,"timestamp":6422171,"id":1067,"parentId":1037,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/file-warning.js","layer":null},"startTime":1736836798362,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":19106,"timestamp":6422206,"id":1068,"parentId":1037,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/database-backup.js","layer":null},"startTime":1736836798362,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":19375,"timestamp":6422240,"id":1069,"parentId":1037,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/home.js","layer":null},"startTime":1736836798362,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":19521,"timestamp":6422297,"id":1071,"parentId":1037,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/square-chevron-right.js","layer":null},"startTime":1736836798362,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":19768,"timestamp":6422268,"id":1070,"parentId":1037,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/lock-keyhole.js","layer":null},"startTime":1736836798362,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":19929,"timestamp":6422336,"id":1072,"parentId":1037,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/server.js","layer":null},"startTime":1736836798362,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":4361,"timestamp":6446100,"id":1080,"parentId":1052,"tags":{"name":"__barrel_optimize__?names=ChevronRight!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736836798385,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":3833957,"timestamp":2618806,"id":192,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fsu%2Fconsole&preferredRegion=&absolutePagePath=private-next-pages%2Fsu%2Fconsole.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736836794558,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":3834088,"timestamp":2618814,"id":194,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fsu%2Fbackups&preferredRegion=&absolutePagePath=private-next-pages%2Fsu%2Fbackups.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736836794558,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":3834093,"timestamp":2618844,"id":199,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fsu%2Fenvar&preferredRegion=&absolutePagePath=private-next-pages%2Fsu%2Fenvar.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736836794558,"traceId":"89448a764ba2dcee"}] +[{"name":"add-entry","duration":3834511,"timestamp":2618856,"id":202,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fsu&preferredRegion=&absolutePagePath=private-next-pages%2Fsu%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736836794558,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":3834549,"timestamp":2618853,"id":201,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fsu%2Ferror-logs&preferredRegion=&absolutePagePath=private-next-pages%2Fsu%2Ferror-logs.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736836794558,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":3834593,"timestamp":2618835,"id":198,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fsu%2Fdocs&preferredRegion=&absolutePagePath=private-next-pages%2Fsu%2Fdocs%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736836794558,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":3834595,"timestamp":2618885,"id":207,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fsu%2Fusers&preferredRegion=&absolutePagePath=private-next-pages%2Fsu%2Fusers%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736836794558,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":3834621,"timestamp":2618888,"id":208,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fsu%2Fusers%2Fnew&preferredRegion=&absolutePagePath=private-next-pages%2Fsu%2Fusers%2Fnew.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736836794558,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":3834712,"timestamp":2618827,"id":197,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fsu%2Fdocs%2Fpages%2F%5Bid%5D&preferredRegion=&absolutePagePath=private-next-pages%2Fsu%2Fdocs%2Fpages%2F%5Bid%5D.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736836794558,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":3834761,"timestamp":2618849,"id":200,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fsu%2Fdocs%2Fpages&preferredRegion=&absolutePagePath=private-next-pages%2Fsu%2Fdocs%2Fpages%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736836794558,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":22450,"timestamp":6446320,"id":1085,"parentId":915,"tags":{"name":"/app/functions/frontend/defaultFieldsRegexp.ts","layer":null},"startTime":1736836798386,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":23739,"timestamp":6446233,"id":1082,"parentId":891,"tags":{"name":"/app/components/admin/databases/fields/text/ace-editor.ts","layer":null},"startTime":1736836798386,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":24574,"timestamp":6446196,"id":1081,"parentId":902,"tags":{"name":"/app/components/admin/databases/fields/text/JSONTextOption.tsx","layer":null},"startTime":1736836798386,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":25520,"timestamp":6446290,"id":1084,"parentId":915,"tags":{"name":"/app/components/admin/databases/TableEntryField.tsx","layer":null},"startTime":1736836798386,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":26826,"timestamp":6446262,"id":1083,"parentId":917,"tags":{"name":"/app/components/admin/databases/SearchEntriesSection.tsx","layer":null},"startTime":1736836798386,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":12137,"timestamp":6477832,"id":1090,"parentId":922,"tags":{"name":"/app/functions/frontend/addNewTemplateIndex.ts","layer":null},"startTime":1736836798417,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":13159,"timestamp":6477701,"id":1087,"parentId":921,"tags":{"name":"/app/components/admin/databases/functions/import-export-handler.ts","layer":null},"startTime":1736836798417,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":14147,"timestamp":6477598,"id":1086,"parentId":894,"tags":{"name":"/app/components/admin/databases/functions/generateTypeDefinition.ts","layer":null},"startTime":1736836798417,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":14716,"timestamp":6477910,"id":1092,"parentId":922,"tags":{"name":"/app/components/admin/databases/SingleTableIndexCard.tsx","layer":null},"startTime":1736836798417,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":15624,"timestamp":6477785,"id":1089,"parentId":934,"tags":{"name":"/app/components/admin/databases/UpdateEntryMoreOptions.tsx","layer":null},"startTime":1736836798417,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":17320,"timestamp":6477860,"id":1091,"parentId":922,"tags":{"name":"/app/components/admin/databases/NewIndexFieldTemp.tsx","layer":null},"startTime":1736836798417,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":18645,"timestamp":6477746,"id":1088,"parentId":1059,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/app-paths.js","layer":null},"startTime":1736836798417,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":3879818,"timestamp":2618860,"id":203,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fsu%2Fload-balancing&preferredRegion=&absolutePagePath=private-next-pages%2Fsu%2Fload-balancing.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736836794558,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":3879906,"timestamp":2618871,"id":204,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fsu%2Fservers&preferredRegion=&absolutePagePath=private-next-pages%2Fsu%2Fservers.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736836794558,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":113,"timestamp":6501931,"id":1095,"parentId":996,"tags":{"name":"@tinymce/tinymce-react","layer":null},"startTime":1736836798441,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":3280,"timestamp":6501750,"id":1093,"parentId":1078,"tags":{"name":"__barrel_optimize__?names=FileCog!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736836798441,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":3987,"timestamp":6501876,"id":1094,"parentId":1079,"tags":{"name":"__barrel_optimize__?names=ChevronRight,Sheet!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736836798441,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":13014,"timestamp":6502222,"id":1099,"parentId":988,"tags":{"name":"/app/functions/frontend/numberFormat.ts","layer":null},"startTime":1736836798442,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":13686,"timestamp":6502185,"id":1098,"parentId":948,"tags":{"name":"/app/functions/frontend/submitNewUserForm.ts","layer":null},"startTime":1736836798442,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":13953,"timestamp":6502235,"id":1100,"parentId":952,"tags":{"name":"/app/components/admin/media/TogglePrivacyButton.tsx","layer":null},"startTime":1736836798442,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":14700,"timestamp":6502141,"id":1097,"parentId":915,"tags":{"name":"/app/functions/frontend/newEntryHandler.ts","layer":null},"startTime":1736836798442,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":15291,"timestamp":6502072,"id":1096,"parentId":1062,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/circle-x.js","layer":null},"startTime":1736836798441,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":2150,"timestamp":6522498,"id":1101,"parentId":1084,"tags":{"name":"__barrel_optimize__?names=Lock!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736836798462,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":8860,"timestamp":6522644,"id":1103,"parentId":988,"tags":{"name":"/app/functions/frontend/numberFormatFloat.ts","layer":null},"startTime":1736836798462,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":9503,"timestamp":6522609,"id":1102,"parentId":962,"tags":{"name":"/app/components/admin/media/MediaFolderCard.tsx","layer":null},"startTime":1736836798462,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":10148,"timestamp":6522676,"id":1104,"parentId":963,"tags":{"name":"/app/components/admin/users/UserListCard.tsx","layer":null},"startTime":1736836798462,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":11116,"timestamp":6522697,"id":1105,"parentId":962,"tags":{"name":"/app/components/admin/media/card/MediaListCard.tsx","layer":null},"startTime":1736836798462,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":12450,"timestamp":6522725,"id":1106,"parentId":996,"tags":{"name":"/app/components/su/components/RichText/RichTextExtensionBlock.tsx","layer":null},"startTime":1736836798462,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":12923,"timestamp":6542887,"id":1108,"parentId":1026,"tags":{"name":"/app/layouts/components/AdminUserDropdown.tsx","layer":null},"startTime":1736836798482,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":13801,"timestamp":6542923,"id":1109,"parentId":1004,"tags":{"name":"/app/components/pages/login/GoogleIdentityButton.tsx","layer":null},"startTime":1736836798482,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":15221,"timestamp":6542795,"id":1107,"parentId":1088,"tags":{"name":"/app/node_modules/next/dist/shared/lib/segment.js","layer":null},"startTime":1736836798482,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":3943459,"timestamp":2617453,"id":21,"parentId":18,"tags":{"request":"private-next-pages/_document.tsx"},"startTime":1736836794557,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":2187,"timestamp":6560014,"id":1110,"parentId":1100,"tags":{"name":"__barrel_optimize__?names=Lock,LockKeyholeOpen!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736836798499,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":5958,"timestamp":6560185,"id":1114,"parentId":1006,"tags":{"name":"/app/components/su/components/UserFiles.tsx","layer":null},"startTime":1736836798500,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":6396,"timestamp":6560252,"id":1116,"parentId":1046,"tags":{"name":"/app/functions/frontend/submitNewDatabaseForm.ts","layer":null},"startTime":1736836798500,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":7054,"timestamp":6560160,"id":1113,"parentId":1046,"tags":{"name":"/app/functions/frontend/submitUpdateDatabaseForm.ts","layer":null},"startTime":1736836798500,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":8112,"timestamp":6560130,"id":1112,"parentId":1004,"tags":{"name":"/app/components/pages/login/GithubLogin.tsx","layer":null},"startTime":1736836798500,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":8967,"timestamp":6560279,"id":1117,"parentId":1048,"tags":{"name":"/app/components/admin/databases/NewTableNameSlugAndDescSection.tsx","layer":null},"startTime":1736836798500,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":10711,"timestamp":6560225,"id":1115,"parentId":1006,"tags":{"name":"/app/components/su/components/UserDbShell.tsx","layer":null},"startTime":1736836798500,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":11364,"timestamp":6560093,"id":1111,"parentId":1093,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/file-cog.js","layer":null},"startTime":1736836798499,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":2234,"timestamp":6574724,"id":1118,"parentId":1102,"tags":{"name":"__barrel_optimize__?names=Folder,X!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736836798514,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":2926,"timestamp":6574813,"id":1119,"parentId":1106,"tags":{"name":"__barrel_optimize__?names=CircleX,List,RotateCcw!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736836798514,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":3963618,"timestamp":2618779,"id":188,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Flogin&preferredRegion=&absolutePagePath=private-next-pages%2Flogin.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736836794558,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":15697,"timestamp":6574864,"id":1120,"parentId":1101,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/lock.js","layer":null},"startTime":1736836798514,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":2647,"timestamp":6592671,"id":1121,"parentId":1108,"tags":{"name":"__barrel_optimize__?names=CircleGauge!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736836798532,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":5623,"timestamp":6593127,"id":1132,"parentId":1074,"tags":{"name":"/app/functions/frontend/addNewField.ts","layer":null},"startTime":1736836798533,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":6692,"timestamp":6592764,"id":1122,"parentId":1060,"tags":{"name":"/app/components/admin/databases/fields/fields-inputs/EncryptionSelect.tsx","layer":null},"startTime":1736836798532,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":6932,"timestamp":6592973,"id":1127,"parentId":1060,"tags":{"name":"/app/components/admin/databases/fields/fields-inputs/UniqueFieldSelect.tsx","layer":null},"startTime":1736836798532,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":7397,"timestamp":6592937,"id":1126,"parentId":1060,"tags":{"name":"/app/components/admin/databases/fields/fields-inputs/RegexPattern.tsx","layer":null},"startTime":1736836798532,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":7814,"timestamp":6592897,"id":1125,"parentId":1060,"tags":{"name":"/app/components/admin/databases/fields/fields-inputs/AutoIncrement.tsx","layer":null},"startTime":1736836798532,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":8503,"timestamp":6592814,"id":1123,"parentId":1060,"tags":{"name":"/app/components/admin/databases/fields/fields-inputs/CSSFiles.tsx","layer":null},"startTime":1736836798532,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":9081,"timestamp":6593111,"id":1131,"parentId":1073,"tags":{"name":"/app/functions/frontend/reorderField.ts","layer":null},"startTime":1736836798532,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":9935,"timestamp":6593079,"id":1130,"parentId":1084,"tags":{"name":"/app/components/admin/databases/TableRichTextEntryField.tsx","layer":null},"startTime":1736836798532,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":11388,"timestamp":6593010,"id":1128,"parentId":1084,"tags":{"name":"/app/functions/frontend/generateFormElementsForEntry.tsx","layer":null},"startTime":1736836798532,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":12740,"timestamp":6593042,"id":1129,"parentId":1074,"tags":{"name":"/app/components/admin/databases/NewFieldFormContent.tsx","layer":null},"startTime":1736836798532,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":14998,"timestamp":6592858,"id":1124,"parentId":1060,"tags":{"name":"/app/components/admin/databases/fields/fields-inputs/ForeignKey.tsx","layer":null},"startTime":1736836798532,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":3993249,"timestamp":2617416,"id":20,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2F404&preferredRegion=&absolutePagePath=private-next-pages%2F404.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736836794557,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":3993385,"timestamp":2617465,"id":22,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2F500&preferredRegion=&absolutePagePath=private-next-pages%2F500.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736836794557,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":3992378,"timestamp":2618522,"id":137,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fabout&preferredRegion=&absolutePagePath=private-next-pages%2Fabout.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736836794558,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":3992201,"timestamp":2618749,"id":183,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fdocs&preferredRegion=&absolutePagePath=private-next-pages%2Fdocs%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736836794558,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":3992301,"timestamp":2618739,"id":180,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fcontact&preferredRegion=&absolutePagePath=private-next-pages%2Fcontact.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736836794558,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":3992316,"timestamp":2618763,"id":185,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2F&preferredRegion=&absolutePagePath=private-next-pages%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736836794558,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":3992377,"timestamp":2618735,"id":179,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fblog&preferredRegion=&absolutePagePath=private-next-pages%2Fblog%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736836794558,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":3992413,"timestamp":2618742,"id":181,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fcreate-account&preferredRegion=&absolutePagePath=private-next-pages%2Fcreate-account.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736836794558,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":3992436,"timestamp":2618754,"id":184,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fdocs%2F%5Bpage%5D&preferredRegion=&absolutePagePath=private-next-pages%2Fdocs%2F%5Bpage%5D%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736836794558,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":3992491,"timestamp":2618786,"id":189,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fprivacy&preferredRegion=&absolutePagePath=private-next-pages%2Fprivacy.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736836794558,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":3992522,"timestamp":2618800,"id":191,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fsend-password-reset-link&preferredRegion=&absolutePagePath=private-next-pages%2Fsend-password-reset-link.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736836794558,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":3992615,"timestamp":2618746,"id":182,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fdocs%2F%5Bpage%5D%2F%5Bsub-page%5D&preferredRegion=&absolutePagePath=private-next-pages%2Fdocs%2F%5Bpage%5D%2F%5Bsub-page%5D%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736836794558,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":3992509,"timestamp":2618891,"id":209,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fterms&preferredRegion=&absolutePagePath=private-next-pages%2Fterms.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736836794558,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":3992632,"timestamp":2618809,"id":193,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Freset-password&preferredRegion=&absolutePagePath=private-next-pages%2Freset-password.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736836794558,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":3992733,"timestamp":2618770,"id":186,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Femail-verification&preferredRegion=&absolutePagePath=private-next-pages%2Femail-verification%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736836794558,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":3992648,"timestamp":2618894,"id":210,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Funsubscribe&preferredRegion=&absolutePagePath=private-next-pages%2Funsubscribe.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736836794558,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":3992944,"timestamp":2618633,"id":160,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736836794558,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":3993064,"timestamp":2618549,"id":142,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fschema&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fschema.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736836794558,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":3993092,"timestamp":2618554,"id":143,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736836794558,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":3993126,"timestamp":2618557,"id":144,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fshell&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fshell.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736836794558,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":3993111,"timestamp":2618603,"id":153,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736836794558,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":3993137,"timestamp":2618611,"id":154,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers%2Fadd-social-logins&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers%2Fadd-social-logins.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736836794558,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":3993250,"timestamp":2618532,"id":139,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fconnect&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fconnect%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736836794558,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":3993307,"timestamp":2618528,"id":138,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fapi-keys&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fapi-keys%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736836794558,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":3993319,"timestamp":2618536,"id":140,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fedit-database&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fedit-database.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736836794558,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":3993328,"timestamp":2618545,"id":141,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fconnect&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fconnect.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736836794558,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":3993278,"timestamp":2618617,"id":156,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736836794558,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":3993294,"timestamp":2618623,"id":157,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers%2Fadd-user&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers%2Fadd-user.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736836794558,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":3993333,"timestamp":2618600,"id":152,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers%2F%5Buser%5D%2Fchange-password&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers%2F%5Buser%5D%2Fchange-password.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736836794558,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":3993342,"timestamp":2618614,"id":155,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers%2F%5Buser%5D&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers%2F%5Buser%5D%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736836794558,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":3993319,"timestamp":2618654,"id":164,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fsettings&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fsettings.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736836794558,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":3993348,"timestamp":2618649,"id":163,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fschema&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fschema.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736836794558,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":3993388,"timestamp":2618626,"id":158,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2Fadd-database&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2Fadd-database.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736836794558,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":3993403,"timestamp":2618630,"id":159,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736836794558,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":3993391,"timestamp":2618663,"id":166,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fusers%2Fadd-user&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fusers%2Fadd-user.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736836794558,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":3993417,"timestamp":2618657,"id":165,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fusers%2Fdatabases%2F%5Bdatabase%5D%2F%5Buser%5D&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fusers%2Fdatabases%2F%5Bdatabase%5D%2F%5Buser%5D.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736836794558,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":3993411,"timestamp":2618681,"id":170,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fadmin&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736836794558,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":3993432,"timestamp":2618676,"id":169,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fusers&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fusers%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736836794558,"traceId":"89448a764ba2dcee"}] +[{"name":"add-entry","duration":3993799,"timestamp":2618670,"id":168,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fusers%2Fdatabases&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fusers%2Fdatabases%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736836794558,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":3993823,"timestamp":2618666,"id":167,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fusers%2Fdatabases%2F%5Bdatabase%5D&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fusers%2Fdatabases%2F%5Bdatabase%5D%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736836794558,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":11062,"timestamp":6608672,"id":1135,"parentId":1091,"tags":{"name":"/app/functions/frontend/addNewIndex.ts","layer":null},"startTime":1736836798548,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":16588,"timestamp":6608654,"id":1134,"parentId":1060,"tags":{"name":"/app/components/general/Modal.tsx","layer":null},"startTime":1736836798548,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":17273,"timestamp":6608687,"id":1136,"parentId":1084,"tags":{"name":"/app/components/admin/databases/fields/text/JSONEditor.tsx","layer":null},"startTime":1736836798548,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":18519,"timestamp":6608719,"id":1137,"parentId":1092,"tags":{"name":"/app/components/admin/databases/ExistingIndexEdit.tsx","layer":null},"startTime":1736836798548,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":19203,"timestamp":6608531,"id":1133,"parentId":1110,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/lock-keyhole-open.js","layer":null},"startTime":1736836798548,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":14928,"timestamp":6628340,"id":1138,"parentId":1118,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/folder.js","layer":null},"startTime":1736836798568,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":15160,"timestamp":6628476,"id":1140,"parentId":1119,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/rotate-ccw.js","layer":null},"startTime":1736836798568,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":15432,"timestamp":6628439,"id":1139,"parentId":1119,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/list.js","layer":null},"startTime":1736836798568,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":11327,"timestamp":6633349,"id":1141,"parentId":1076,"tags":{"name":"/app/functions/frontend/syncTableDataFormHandler.ts","layer":null},"startTime":1736836798573,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":11825,"timestamp":6633439,"id":1143,"parentId":1105,"tags":{"name":"/app/components/admin/media/card/MediaLinksDropdown.tsx","layer":null},"startTime":1736836798573,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":12397,"timestamp":6633463,"id":1144,"parentId":1105,"tags":{"name":"/app/components/admin/media/card/MediaPreviewSection.tsx","layer":null},"startTime":1736836798573,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":12928,"timestamp":6633411,"id":1142,"parentId":1105,"tags":{"name":"/app/components/admin/media/card/MediaPrivacyButton.tsx","layer":null},"startTime":1736836798573,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":14283,"timestamp":6633493,"id":1145,"parentId":1106,"tags":{"name":"/app/components/su/components/RichText/ElementStyleModalContent.tsx","layer":null},"startTime":1736836798573,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":24,"timestamp":6648475,"id":1146,"parentId":1134,"tags":{"name":"react-dom/client","layer":null},"startTime":1736836798588,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":6476,"timestamp":6648521,"id":1147,"parentId":1106,"tags":{"name":"/app/components/su/components/RichText/fns.ts","layer":null},"startTime":1736836798588,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":4036851,"timestamp":2618584,"id":149,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Fentries&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Fentries%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736836794558,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":4037784,"timestamp":2618596,"id":151,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2Fadd-table&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2Fadd-table.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736836794558,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":4037868,"timestamp":2618563,"id":145,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Fedit-table&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Fedit-table.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736836794558,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":4037884,"timestamp":2618574,"id":148,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Ffields&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Ffields.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736836794558,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":6381,"timestamp":6655359,"id":1149,"parentId":1115,"tags":{"name":"/app/components/su/components/UserDbShellQueryResult.tsx","layer":null},"startTime":1736836798595,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":7347,"timestamp":6655397,"id":1150,"parentId":1114,"tags":{"name":"/app/components/su/components/UserSingleFile.tsx","layer":null},"startTime":1736836798595,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":8164,"timestamp":6655245,"id":1148,"parentId":1114,"tags":{"name":"/app/components/su/components/UserFolder.tsx","layer":null},"startTime":1736836798595,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":2131,"timestamp":6663853,"id":1151,"parentId":1145,"tags":{"name":"__barrel_optimize__?names=CircleX!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736836798603,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":2765,"timestamp":6663957,"id":1152,"parentId":1142,"tags":{"name":"__barrel_optimize__?names=Lock,LockOpen!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736836798603,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":4052064,"timestamp":2618820,"id":195,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fsu%2Fdocs%2Fcreate-page&preferredRegion=&absolutePagePath=private-next-pages%2Fsu%2Fdocs%2Fcreate-page.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736836794558,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":4052228,"timestamp":2618823,"id":196,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fsu%2Fdocs%2Fedit-page&preferredRegion=&absolutePagePath=private-next-pages%2Fsu%2Fdocs%2Fedit-page.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736836794558,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":1706,"timestamp":6672366,"id":1153,"parentId":1150,"tags":{"name":"__barrel_optimize__?names=HardDrive!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736836798612,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":2707,"timestamp":6672453,"id":1154,"parentId":1148,"tags":{"name":"__barrel_optimize__?names=Copy,RotateCcw!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736836798612,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":4060939,"timestamp":2618878,"id":206,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fsu%2Fusers%2F%5Bsingle%5D&preferredRegion=&absolutePagePath=private-next-pages%2Fsu%2Fusers%2F%5Bsingle%5D.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736836794558,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":4580,"timestamp":6676429,"id":1157,"parentId":1152,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/lock-open.js","layer":null},"startTime":1736836798616,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":5182,"timestamp":6676394,"id":1156,"parentId":1137,"tags":{"name":"/app/components/admin/databases/indexes/indexSelectChange.ts","layer":null},"startTime":1736836798616,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":5623,"timestamp":6676286,"id":1155,"parentId":1136,"tags":{"name":"/app/components/admin/databases/fields/text/JSONEditorHeader.tsx","layer":null},"startTime":1736836798616,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":4063705,"timestamp":2618644,"id":162,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fmedia&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fmedia%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736836794558,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":4063776,"timestamp":2618636,"id":161,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fmedia%2F%5B...folder%5D&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fmedia%2F%5B...folder%5D.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736836794558,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":4065100,"timestamp":2618591,"id":150,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736836794558,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":1893,"timestamp":6684073,"id":1159,"parentId":1155,"tags":{"name":"__barrel_optimize__?names=CircleMinus,CirclePlus,Lock!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736836798623,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":2811,"timestamp":6683807,"id":1158,"parentId":1130,"tags":{"name":"/app/functions/frontend/tinyMCEEditorSetup.ts","layer":null},"startTime":1736836798623,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":1974,"timestamp":6688824,"id":1161,"parentId":1159,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/circle-plus.js","layer":null},"startTime":1736836798628,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":2257,"timestamp":6688740,"id":1160,"parentId":1159,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/circle-minus.js","layer":null},"startTime":1736836798628,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":1851,"timestamp":6691342,"id":1162,"parentId":1158,"tags":{"name":"/app/functions/frontend/handleCopyHTML.ts","layer":null},"startTime":1736836798631,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":2225,"timestamp":6691376,"id":1163,"parentId":1158,"tags":{"name":"/app/functions/frontend/handleEditHTML.tsx","layer":null},"startTime":1736836798631,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":6004,"timestamp":6691409,"id":1164,"parentId":1158,"tags":{"name":"/app/functions/frontend/handleEmbed.tsx","layer":null},"startTime":1736836798631,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":2800,"timestamp":6700469,"id":1165,"parentId":1164,"tags":{"name":"/app/components/general/EmbedPopupContent.tsx","layer":null},"startTime":1736836798640,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":2672,"timestamp":6703470,"id":1166,"parentId":1163,"tags":{"name":"/app/components/general/EditHTMLPopupContent.tsx","layer":null},"startTime":1736836798643,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":19,"timestamp":6707851,"id":1167,"parentId":1166,"tags":{"name":"html-prettify","layer":null},"startTime":1736836798647,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":4089352,"timestamp":2618570,"id":147,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Fentries%2Fadd-entry&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Fentries%2Fadd-entry.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736836794558,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":4089442,"timestamp":2618567,"id":146,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Fentries%2F%5Bsingle_entry%5D&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Fentries%2F%5Bsingle_entry%5D.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736836794558,"traceId":"89448a764ba2dcee"},{"name":"make","duration":4092114,"timestamp":2616311,"id":18,"parentId":16,"tags":{},"startTime":1736836794556,"traceId":"89448a764ba2dcee"},{"name":"get-entries","duration":1531,"timestamp":6709896,"id":1169,"parentId":1168,"tags":{},"startTime":1736836798649,"traceId":"89448a764ba2dcee"},{"name":"node-file-trace-plugin","duration":11036499,"timestamp":6721323,"id":1170,"parentId":1168,"tags":{"traceEntryCount":"382"},"startTime":1736836798661,"traceId":"89448a764ba2dcee"},{"name":"collect-traced-files","duration":13622,"timestamp":17757865,"id":1171,"parentId":1168,"tags":{},"startTime":1736836809697,"traceId":"89448a764ba2dcee"},{"name":"finish-modules","duration":11061916,"timestamp":6709588,"id":1168,"parentId":17,"tags":{},"startTime":1736836798649,"traceId":"89448a764ba2dcee"},{"name":"chunk-graph","duration":487160,"timestamp":17847575,"id":1173,"parentId":1172,"tags":{},"startTime":1736836809787,"traceId":"89448a764ba2dcee"},{"name":"optimize-modules","duration":29,"timestamp":18334901,"id":1175,"parentId":1172,"tags":{},"startTime":1736836810274,"traceId":"89448a764ba2dcee"},{"name":"optimize-chunks","duration":59668,"timestamp":18335057,"id":1176,"parentId":1172,"tags":{},"startTime":1736836810274,"traceId":"89448a764ba2dcee"},{"name":"optimize-tree","duration":71,"timestamp":18394874,"id":1177,"parentId":1172,"tags":{},"startTime":1736836810334,"traceId":"89448a764ba2dcee"},{"name":"optimize-chunk-modules","duration":171833,"timestamp":18395081,"id":1178,"parentId":1172,"tags":{},"startTime":1736836810334,"traceId":"89448a764ba2dcee"},{"name":"optimize","duration":232232,"timestamp":18334828,"id":1174,"parentId":1172,"tags":{},"startTime":1736836810274,"traceId":"89448a764ba2dcee"},{"name":"module-hash","duration":75680,"timestamp":18584894,"id":1179,"parentId":1172,"tags":{},"startTime":1736836810524,"traceId":"89448a764ba2dcee"},{"name":"code-generation","duration":502472,"timestamp":18660855,"id":1180,"parentId":1172,"tags":{},"startTime":1736836810600,"traceId":"89448a764ba2dcee"},{"name":"hash","duration":25172,"timestamp":19174795,"id":1181,"parentId":1172,"tags":{},"startTime":1736836811114,"traceId":"89448a764ba2dcee"},{"name":"code-generation-jobs","duration":2034,"timestamp":19199963,"id":1182,"parentId":1172,"tags":{},"startTime":1736836811139,"traceId":"89448a764ba2dcee"},{"name":"module-assets","duration":632,"timestamp":19201884,"id":1183,"parentId":1172,"tags":{},"startTime":1736836811141,"traceId":"89448a764ba2dcee"},{"name":"create-chunk-assets","duration":40164,"timestamp":19202544,"id":1184,"parentId":1172,"tags":{},"startTime":1736836811142,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":216099,"timestamp":19304055,"id":1188,"parentId":1185,"tags":{"name":"../pages/_document.js","cache":"MISS"},"startTime":1736836811243,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":217113,"timestamp":19303432,"id":1187,"parentId":1185,"tags":{"name":"../pages/404.js","cache":"MISS"},"startTime":1736836811243,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":216574,"timestamp":19304112,"id":1189,"parentId":1185,"tags":{"name":"../pages/500.js","cache":"MISS"},"startTime":1736836811243,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":215421,"timestamp":19305335,"id":1193,"parentId":1185,"tags":{"name":"../pages/api/addDbUser.js","cache":"MISS"},"startTime":1736836811245,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":216346,"timestamp":19304473,"id":1190,"parentId":1185,"tags":{"name":"../pages/api/acceptUserInvitation.js","cache":"MISS"},"startTime":1736836811244,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":214602,"timestamp":19306280,"id":1197,"parentId":1185,"tags":{"name":"../pages/api/addUsersTableToDatabase.js","cache":"MISS"},"startTime":1736836811246,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":216111,"timestamp":19304821,"id":1191,"parentId":1185,"tags":{"name":"../pages/api/addAdminUserUser.js","cache":"MISS"},"startTime":1736836811244,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":215918,"timestamp":19305079,"id":1192,"parentId":1185,"tags":{"name":"../pages/api/addApiKey.js","cache":"MISS"},"startTime":1736836811244,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":215524,"timestamp":19305530,"id":1194,"parentId":1185,"tags":{"name":"../pages/api/addNewMediaFolder.js","cache":"MISS"},"startTime":1736836811245,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":214181,"timestamp":19306930,"id":1200,"parentId":1185,"tags":{"name":"../pages/api/admin/addUserBackup.js","cache":"MISS"},"startTime":1736836811246,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":213903,"timestamp":19307252,"id":1201,"parentId":1185,"tags":{"name":"../pages/api/admin/clearErrorLogs.js","cache":"MISS"},"startTime":1736836811247,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":214547,"timestamp":19306665,"id":1199,"parentId":1185,"tags":{"name":"../pages/api/addUserTable.js","cache":"MISS"},"startTime":1736836811246,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":211987,"timestamp":19309268,"id":1209,"parentId":1185,"tags":{"name":"../pages/api/admin/grabErrorLogs.js","cache":"MISS"},"startTime":1736836811249,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":215456,"timestamp":19305850,"id":1195,"parentId":1185,"tags":{"name":"../pages/api/addSocialLogin.js","cache":"MISS"},"startTime":1736836811245,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":215333,"timestamp":19306028,"id":1196,"parentId":1185,"tags":{"name":"../pages/api/addTableEntry.js","cache":"MISS"},"startTime":1736836811245,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":221207,"timestamp":19300228,"id":1186,"parentId":1185,"tags":{"name":"../pages/_error.js","cache":"MISS"},"startTime":1736836811240,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":210926,"timestamp":19310570,"id":1217,"parentId":1185,"tags":{"name":"../pages/api/clientSideAuth.js","cache":"MISS"},"startTime":1736836811250,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":210026,"timestamp":19311548,"id":1222,"parentId":1185,"tags":{"name":"../pages/api/contact.js","cache":"MISS"},"startTime":1736836811251,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":209799,"timestamp":19311836,"id":1224,"parentId":1185,"tags":{"name":"../pages/api/createUserDatabase.js","cache":"MISS"},"startTime":1736836811251,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":211257,"timestamp":19310435,"id":1216,"parentId":1185,"tags":{"name":"../pages/api/checkExistingFolder.js","cache":"MISS"},"startTime":1736836811250,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":211090,"timestamp":19310663,"id":1218,"parentId":1185,"tags":{"name":"../pages/api/connect/disconnect.js","cache":"MISS"},"startTime":1736836811250,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":213898,"timestamp":19307917,"id":1204,"parentId":1185,"tags":{"name":"../pages/api/admin/docs/[action].js","cache":"MISS"},"startTime":1736836811247,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":211006,"timestamp":19310871,"id":1219,"parentId":1185,"tags":{"name":"../pages/api/connect/handshake.js","cache":"MISS"},"startTime":1736836811250,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":207890,"timestamp":19314062,"id":1234,"parentId":1185,"tags":{"name":"../pages/api/downloadDatabaseSchema.js","cache":"MISS"},"startTime":1736836811253,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":210328,"timestamp":19311672,"id":1223,"parentId":1185,"tags":{"name":"../pages/api/deleteApiKey.js","cache":"MISS"},"startTime":1736836811251,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":210037,"timestamp":19312051,"id":1225,"parentId":1185,"tags":{"name":"../pages/api/deleteDbUser.js","cache":"MISS"},"startTime":1736836811251,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":209771,"timestamp":19312379,"id":1227,"parentId":1185,"tags":{"name":"../pages/api/deleteMediaFolder.js","cache":"MISS"},"startTime":1736836811252,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":209042,"timestamp":19313162,"id":1230,"parentId":1185,"tags":{"name":"../pages/api/deleteUserDatabase.js","cache":"MISS"},"startTime":1736836811253,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":209347,"timestamp":19312910,"id":1229,"parentId":1185,"tags":{"name":"../pages/api/deleteUser.js","cache":"MISS"},"startTime":1736836811252,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":215859,"timestamp":19306469,"id":1198,"parentId":1185,"tags":{"name":"../pages/api/addUserUser.js","cache":"MISS"},"startTime":1736836811246,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":205034,"timestamp":19317401,"id":1255,"parentId":1185,"tags":{"name":"../pages/api/query/[user_id]/get-schema.js","cache":"MISS"},"startTime":1736836811257,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":201555,"timestamp":19320954,"id":1281,"parentId":1185,"tags":{"name":"../pages/api/unsubscribe.js","cache":"MISS"},"startTime":1736836811260,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":211267,"timestamp":19311300,"id":1221,"parentId":1185,"tags":{"name":"../pages/api/connect/verify.js","cache":"MISS"},"startTime":1736836811251,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":215069,"timestamp":19307602,"id":1203,"parentId":1185,"tags":{"name":"../pages/api/admin/createNewBackup.js","cache":"MISS"},"startTime":1736836811247,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":207518,"timestamp":19315217,"id":1241,"parentId":1185,"tags":{"name":"../pages/api/getDiskUsage.js","cache":"MISS"},"startTime":1736836811255,"traceId":"89448a764ba2dcee"}] +[{"name":"minify-js","duration":211005,"timestamp":19313666,"id":1232,"parentId":1185,"tags":{"name":"../pages/api/deleteUserTable.js","cache":"MISS"},"startTime":1736836811253,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":213693,"timestamp":19311098,"id":1220,"parentId":1185,"tags":{"name":"../pages/api/connect.js","cache":"MISS"},"startTime":1736836811250,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":212648,"timestamp":19312198,"id":1226,"parentId":1185,"tags":{"name":"../pages/api/deleteInvitation.js","cache":"MISS"},"startTime":1736836811252,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":210531,"timestamp":19314388,"id":1236,"parentId":1185,"tags":{"name":"../pages/api/fetch-entries-basic.js","cache":"MISS"},"startTime":1736836811254,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":214707,"timestamp":19310262,"id":1215,"parentId":1185,"tags":{"name":"../pages/api/checkDuplicateData.js","cache":"MISS"},"startTime":1736836811250,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":217550,"timestamp":19307465,"id":1202,"parentId":1185,"tags":{"name":"../pages/api/admin/clientError.js","cache":"MISS"},"startTime":1736836811247,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":210856,"timestamp":19314208,"id":1235,"parentId":1185,"tags":{"name":"../pages/api/exportDatabase.js","cache":"MISS"},"startTime":1736836811254,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":216745,"timestamp":19308379,"id":1205,"parentId":1185,"tags":{"name":"../pages/api/admin/getTablesForUserDatabase.js","cache":"MISS"},"startTime":1736836811248,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":204905,"timestamp":19320275,"id":1275,"parentId":1185,"tags":{"name":"../pages/api/sql-users/delete.js","cache":"MISS"},"startTime":1736836811260,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":207113,"timestamp":19318118,"id":1259,"parentId":1185,"tags":{"name":"../pages/api/reAuthenticateUser.js","cache":"MISS"},"startTime":1736836811258,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":211348,"timestamp":19313930,"id":1233,"parentId":1185,"tags":{"name":"../pages/api/deleteUserUser.js","cache":"MISS"},"startTime":1736836811253,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":208076,"timestamp":19317275,"id":1254,"parentId":1185,"tags":{"name":"../pages/api/purgeDb.js","cache":"MISS"},"startTime":1736836811257,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":210321,"timestamp":19315088,"id":1240,"parentId":1185,"tags":{"name":"../pages/api/getDelegatedDatabases.js","cache":"MISS"},"startTime":1736836811254,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":215384,"timestamp":19310087,"id":1214,"parentId":1185,"tags":{"name":"../pages/api/changeDbUserPassword.js","cache":"MISS"},"startTime":1736836811249,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":204672,"timestamp":19320865,"id":1280,"parentId":1185,"tags":{"name":"../pages/api/test/mail.js","cache":"MISS"},"startTime":1736836811260,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":212250,"timestamp":19313354,"id":1231,"parentId":1185,"tags":{"name":"../pages/api/deleteUserMedia.js","cache":"MISS"},"startTime":1736836811253,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":207697,"timestamp":19317971,"id":1258,"parentId":1185,"tags":{"name":"../pages/api/queryEntriesSearchTerm.js","cache":"MISS"},"startTime":1736836811257,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":204942,"timestamp":19320771,"id":1279,"parentId":1185,"tags":{"name":"../pages/api/test/cors.js","cache":"MISS"},"startTime":1736836811260,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":202147,"timestamp":19323636,"id":1295,"parentId":1185,"tags":{"name":"../pages/api/user/[user_id]/github-login.js","cache":"MISS"},"startTime":1736836811263,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":205663,"timestamp":19320168,"id":1274,"parentId":1185,"tags":{"name":"../pages/api/sql-users/create.js","cache":"MISS"},"startTime":1736836811260,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":208720,"timestamp":19317160,"id":1253,"parentId":1185,"tags":{"name":"../pages/api/media/getPrivateMedia.js","cache":"MISS"},"startTime":1736836811257,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":204485,"timestamp":19321455,"id":1285,"parentId":1185,"tags":{"name":"../pages/api/updateDbUser.js","cache":"MISS"},"startTime":1736836811261,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":203215,"timestamp":19322773,"id":1290,"parentId":1185,"tags":{"name":"../pages/api/user/[user_id]/add-user.js","cache":"MISS"},"startTime":1736836811262,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":216917,"timestamp":19309120,"id":1208,"parentId":1185,"tags":{"name":"../pages/api/admin/grabBackups.js","cache":"MISS"},"startTime":1736836811249,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":213471,"timestamp":19312650,"id":1228,"parentId":1185,"tags":{"name":"../pages/api/deleteTableEntry.js","cache":"MISS"},"startTime":1736836811252,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":202993,"timestamp":19323199,"id":1292,"parentId":1185,"tags":{"name":"../pages/api/user/[user_id]/delete-user.js","cache":"MISS"},"startTime":1736836811263,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":206179,"timestamp":19320064,"id":1273,"parentId":1185,"tags":{"name":"../pages/api/social-login/utils/getEmailFromSocialId.js","cache":"MISS"},"startTime":1736836811259,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":208519,"timestamp":19317844,"id":1257,"parentId":1185,"tags":{"name":"../pages/api/query/[user_id]/update-schema-from-single-database.js","cache":"MISS"},"startTime":1736836811257,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":216496,"timestamp":19309922,"id":1213,"parentId":1185,"tags":{"name":"../pages/api/admin/updateEnv.js","cache":"MISS"},"startTime":1736836811249,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":206481,"timestamp":19319980,"id":1272,"parentId":1185,"tags":{"name":"../pages/api/social-login/utils/checkSocialId.js","cache":"MISS"},"startTime":1736836811259,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":211588,"timestamp":19314925,"id":1239,"parentId":1185,"tags":{"name":"../pages/api/getDelegatedDatabaseToken.js","cache":"MISS"},"startTime":1736836811254,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":202622,"timestamp":19323936,"id":1297,"parentId":1185,"tags":{"name":"../pages/api/user/[user_id]/grab-google-user-from-token.js","cache":"MISS"},"startTime":1736836811263,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":203540,"timestamp":19323073,"id":1291,"parentId":1185,"tags":{"name":"../pages/api/user-schema/replace-database-schema.js","cache":"MISS"},"startTime":1736836811262,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":205426,"timestamp":19321284,"id":1284,"parentId":1185,"tags":{"name":"../pages/api/updateDbSchemaDataForUser.js","cache":"MISS"},"startTime":1736836811261,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":204394,"timestamp":19322396,"id":1288,"parentId":1185,"tags":{"name":"../pages/api/updateUserDatabase.js","cache":"MISS"},"startTime":1736836811262,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":202838,"timestamp":19324048,"id":1298,"parentId":1185,"tags":{"name":"../pages/api/user/[user_id]/login-user.js","cache":"MISS"},"startTime":1736836811263,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":207103,"timestamp":19319830,"id":1271,"parentId":1185,"tags":{"name":"../pages/api/social-login/utils/checkEmail.js","cache":"MISS"},"startTime":1736836811259,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":210042,"timestamp":19316945,"id":1252,"parentId":1185,"tags":{"name":"../pages/api/media/addPrivateMedia.js","cache":"MISS"},"startTime":1736836811256,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":206453,"timestamp":19320581,"id":1278,"parentId":1185,"tags":{"name":"../pages/api/sync-table-data.js","cache":"MISS"},"startTime":1736836811260,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":208373,"timestamp":19320495,"id":1277,"parentId":1185,"tags":{"name":"../pages/api/stream/[path].js","cache":"MISS"},"startTime":1736836811260,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":212157,"timestamp":19317534,"id":1256,"parentId":1185,"tags":{"name":"../pages/api/query/[user_id]/get.js","cache":"MISS"},"startTime":1736836811257,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":210139,"timestamp":19319650,"id":1270,"parentId":1185,"tags":{"name":"../pages/api/social-login/google-auth.js","cache":"MISS"},"startTime":1736836811259,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":201894,"timestamp":19327957,"id":1310,"parentId":1185,"tags":{"name":"../pages/admin/[user_id]/databases/[single].js","cache":"MISS"},"startTime":1736836811267,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":215190,"timestamp":19314726,"id":1238,"parentId":1185,"tags":{"name":"../pages/api/get-authorized-databases.js","cache":"MISS"},"startTime":1736836811254,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":220252,"timestamp":19309722,"id":1212,"parentId":1185,"tags":{"name":"../pages/api/admin/runUserDbQuery.js","cache":"MISS"},"startTime":1736836811249,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":209641,"timestamp":19320382,"id":1276,"parentId":1185,"tags":{"name":"../pages/api/sql-users/update.js","cache":"MISS"},"startTime":1736836811260,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":221103,"timestamp":19308962,"id":1207,"parentId":1185,"tags":{"name":"../pages/api/admin/getUserData.js","cache":"MISS"},"startTime":1736836811248,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":206303,"timestamp":19323812,"id":1296,"parentId":1185,"tags":{"name":"../pages/api/user/[user_id]/google-login.js","cache":"MISS"},"startTime":1736836811263,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":206697,"timestamp":19323475,"id":1294,"parentId":1185,"tags":{"name":"../pages/api/updateUserTable.js","cache":"MISS"},"startTime":1736836811263,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":213522,"timestamp":19316699,"id":1251,"parentId":1185,"tags":{"name":"../pages/api/loginUser.js","cache":"MISS"},"startTime":1736836811256,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":208305,"timestamp":19321997,"id":1287,"parentId":1185,"tags":{"name":"../pages/api/updateUser.js","cache":"MISS"},"startTime":1736836811261,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":207776,"timestamp":19322603,"id":1289,"parentId":1185,"tags":{"name":"../pages/api/updateUserUser.js","cache":"MISS"},"startTime":1736836811262,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":195426,"timestamp":19335027,"id":1327,"parentId":1185,"tags":{"name":"../pages/admin/[user_id].js","cache":"MISS"},"startTime":1736836811274,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":220950,"timestamp":19309554,"id":1211,"parentId":1185,"tags":{"name":"../pages/api/admin/loginSuUser.js","cache":"MISS"},"startTime":1736836811249,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":213958,"timestamp":19316605,"id":1250,"parentId":1185,"tags":{"name":"../pages/api/logoutUser.js","cache":"MISS"},"startTime":1736836811256,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":209482,"timestamp":19321166,"id":1283,"parentId":1185,"tags":{"name":"../pages/api/updateClonedTableForeignKeys.js","cache":"MISS"},"startTime":1736836811261,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":211210,"timestamp":19319479,"id":1269,"parentId":1185,"tags":{"name":"../pages/api/social-login/github-auth.js","cache":"MISS"},"startTime":1736836811259,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":216156,"timestamp":19314585,"id":1237,"parentId":1185,"tags":{"name":"../pages/api/getDatabaseTables.js","cache":"MISS"},"startTime":1736836811254,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":205833,"timestamp":19324989,"id":1305,"parentId":1185,"tags":{"name":"../pages/admin/[user_id]/api-keys.js","cache":"MISS"},"startTime":1736836811264,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":200578,"timestamp":19330313,"id":1315,"parentId":1185,"tags":{"name":"../pages/admin/[user_id]/databases/[single]/tables/[single_table]/fields.js","cache":"MISS"},"startTime":1736836811270,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":221532,"timestamp":19309413,"id":1210,"parentId":1185,"tags":{"name":"../pages/api/admin/grabFile.js","cache":"MISS"},"startTime":1736836811249,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":222182,"timestamp":19308807,"id":1206,"parentId":1185,"tags":{"name":"../pages/api/admin/getUserBackups.js","cache":"MISS"},"startTime":1736836811248,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":205418,"timestamp":19325658,"id":1306,"parentId":1185,"tags":{"name":"../pages/admin/[user_id]/connect.js","cache":"MISS"},"startTime":1736836811265,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":206292,"timestamp":19324826,"id":1304,"parentId":1185,"tags":{"name":"../pages/about.js","cache":"MISS"},"startTime":1736836811264,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":211796,"timestamp":19319367,"id":1268,"parentId":1185,"tags":{"name":"../pages/api/social-login/facebook-auth.js","cache":"MISS"},"startTime":1736836811259,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":206430,"timestamp":19324772,"id":1303,"parentId":1185,"tags":{"name":"../pages/_app.js","cache":"MISS"},"startTime":1736836811264,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":209069,"timestamp":19323342,"id":1293,"parentId":1185,"tags":{"name":"../pages/api/user/[user_id]/get-user.js","cache":"MISS"},"startTime":1736836811263,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":197761,"timestamp":19334826,"id":1326,"parentId":1185,"tags":{"name":"../pages/admin/[user_id]/databases.js","cache":"MISS"},"startTime":1736836811274,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":195068,"timestamp":19337582,"id":1335,"parentId":1185,"tags":{"name":"../pages/admin/[user_id]/users/databases.js","cache":"MISS"},"startTime":1736836811277,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":194891,"timestamp":19337859,"id":1336,"parentId":1185,"tags":{"name":"../pages/admin/[user_id]/users.js","cache":"MISS"},"startTime":1736836811277,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":208129,"timestamp":19324684,"id":1302,"parentId":1185,"tags":{"name":"../pages/api/webhooks/github-push.js","cache":"MISS"},"startTime":1736836811264,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":193506,"timestamp":19339376,"id":1345,"parentId":1185,"tags":{"name":"../pages/api/query/[user_id]/post.js","cache":"MISS"},"startTime":1736836811279,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":193920,"timestamp":19339010,"id":1342,"parentId":1185,"tags":{"name":"../pages/api/query/[user_id]/add-image.js","cache":"MISS"},"startTime":1736836811278,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":203167,"timestamp":19329854,"id":1314,"parentId":1185,"tags":{"name":"../pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/add-entry.js","cache":"MISS"},"startTime":1736836811269,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":188375,"timestamp":19344711,"id":1365,"parentId":1185,"tags":{"name":"../pages/su/docs.js","cache":"MISS"},"startTime":1736836811284,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":190983,"timestamp":19342175,"id":1354,"parentId":1185,"tags":{"name":"../pages/logout.js","cache":"MISS"},"startTime":1736836811282,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":212131,"timestamp":19321072,"id":1282,"parentId":1185,"tags":{"name":"../pages/api/updateAdminUserAccess.js","cache":"MISS"},"startTime":1736836811260,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":216859,"timestamp":19316414,"id":1249,"parentId":1185,"tags":{"name":"../pages/api/infiniteScroll.js","cache":"MISS"},"startTime":1736836811256,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":215341,"timestamp":19319260,"id":1267,"parentId":1185,"tags":{"name":"../pages/api/sendPasswordResetLink.js","cache":"MISS"},"startTime":1736836811259,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":200193,"timestamp":19334502,"id":1325,"parentId":1185,"tags":{"name":"../pages/admin/[user_id]/databases/add-database.js","cache":"MISS"},"startTime":1736836811274,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":213218,"timestamp":19321599,"id":1286,"parentId":1185,"tags":{"name":"../pages/api/updateTableEntry.js","cache":"MISS"},"startTime":1736836811261,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":190329,"timestamp":19344543,"id":1364,"parentId":1185,"tags":{"name":"../pages/su/docs/pages/[id].js","cache":"MISS"},"startTime":1736836811284,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":196039,"timestamp":19338889,"id":1341,"parentId":1185,"tags":{"name":"../pages/api/query/[user_id]/add-file.js","cache":"MISS"},"startTime":1736836811278,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":197706,"timestamp":19337310,"id":1334,"parentId":1185,"tags":{"name":"../pages/admin/[user_id]/users/databases/[database].js","cache":"MISS"},"startTime":1736836811277,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":190675,"timestamp":19344397,"id":1363,"parentId":1185,"tags":{"name":"../pages/su/docs/edit-page.js","cache":"MISS"},"startTime":1736836811284,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":218869,"timestamp":19316254,"id":1248,"parentId":1185,"tags":{"name":"../pages/api/importDatabaseSchema.js","cache":"MISS"},"startTime":1736836811256,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":196376,"timestamp":19338796,"id":1340,"parentId":1185,"tags":{"name":"../pages/api/fetch-media.js","cache":"MISS"},"startTime":1736836811278,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":188836,"timestamp":19346407,"id":1371,"parentId":1185,"tags":{"name":"../pages/su/servers.js","cache":"MISS"},"startTime":1736836811286,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":191036,"timestamp":19344270,"id":1362,"parentId":1185,"tags":{"name":"../pages/su/docs/create-page.js","cache":"MISS"},"startTime":1736836811284,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":193488,"timestamp":19341909,"id":1353,"parentId":1185,"tags":{"name":"../pages/email-verification.js","cache":"MISS"},"startTime":1736836811281,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":196201,"timestamp":19339247,"id":1344,"parentId":1185,"tags":{"name":"../pages/api/query/[user_id]/delete-file.js","cache":"MISS"},"startTime":1736836811279,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":216367,"timestamp":19319137,"id":1266,"parentId":1185,"tags":{"name":"../pages/api/sendEmailVerificationLink.js","cache":"MISS"},"startTime":1736836811259,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":191510,"timestamp":19344052,"id":1361,"parentId":1185,"tags":{"name":"../pages/su/backups.js","cache":"MISS"},"startTime":1736836811283,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":212980,"timestamp":19324535,"id":1301,"parentId":1185,"tags":{"name":"../pages/api/user/[user_id]/update-user.js","cache":"MISS"},"startTime":1736836811264,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":190969,"timestamp":19346653,"id":1372,"parentId":1185,"tags":{"name":"../pages/su/login.js","cache":"MISS"},"startTime":1736836811286,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":199041,"timestamp":19338685,"id":1339,"parentId":1185,"tags":{"name":"../pages/api/exportTableData.js","cache":"MISS"},"startTime":1736836811278,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":190822,"timestamp":19346955,"id":1373,"parentId":1185,"tags":{"name":"../pages/su/users/[single].js","cache":"MISS"},"startTime":1736836811286,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":210372,"timestamp":19327497,"id":1309,"parentId":1185,"tags":{"name":"../pages/admin/[user_id]/databases/[single]/schema.js","cache":"MISS"},"startTime":1736836811267,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":191800,"timestamp":19346124,"id":1370,"parentId":1185,"tags":{"name":"../pages/su/load-balancing.js","cache":"MISS"},"startTime":1736836811286,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":189552,"timestamp":19348432,"id":1377,"parentId":1185,"tags":{"name":"../pages/unsubscribe.js","cache":"MISS"},"startTime":1736836811288,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":196749,"timestamp":19341427,"id":1352,"parentId":1185,"tags":{"name":"../pages/index.js","cache":"MISS"},"startTime":1736836811281,"traceId":"89448a764ba2dcee"}] +[{"name":"minify-js","duration":199677,"timestamp":19339134,"id":1343,"parentId":1185,"tags":{"name":"../pages/api/query/[user_id]/get-private-file.js","cache":"MISS"},"startTime":1736836811279,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":189869,"timestamp":19348993,"id":1379,"parentId":1185,"tags":{"name":"../webpack-api-runtime.js","cache":"MISS"},"startTime":1736836811288,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":202048,"timestamp":19336874,"id":1333,"parentId":1185,"tags":{"name":"../pages/admin/[user_id]/users/add-user.js","cache":"MISS"},"startTime":1736836811276,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":223014,"timestamp":19315978,"id":1247,"parentId":1185,"tags":{"name":"../pages/api/importDatabase.js","cache":"MISS"},"startTime":1736836811255,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":209950,"timestamp":19329114,"id":1313,"parentId":1185,"tags":{"name":"../pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/[single_entry].js","cache":"MISS"},"startTime":1736836811268,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":223232,"timestamp":19315881,"id":1246,"parentId":1185,"tags":{"name":"../pages/api/healthcheck.js","cache":"MISS"},"startTime":1736836811255,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":193406,"timestamp":19345749,"id":1369,"parentId":1185,"tags":{"name":"../pages/su.js","cache":"MISS"},"startTime":1736836811285,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":190554,"timestamp":19348640,"id":1378,"parentId":1185,"tags":{"name":"../webpack-runtime.js","cache":"MISS"},"startTime":1736836811288,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":205264,"timestamp":19334033,"id":1324,"parentId":1185,"tags":{"name":"../pages/admin/[user_id]/databases/[single]/users/add-user.js","cache":"MISS"},"startTime":1736836811273,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":198147,"timestamp":19341209,"id":1351,"parentId":1185,"tags":{"name":"../pages/docs/[page].js","cache":"MISS"},"startTime":1736836811281,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":191385,"timestamp":19348064,"id":1376,"parentId":1185,"tags":{"name":"../pages/terms.js","cache":"MISS"},"startTime":1736836811287,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":194030,"timestamp":19345461,"id":1368,"parentId":1185,"tags":{"name":"../pages/su/error-logs.js","cache":"MISS"},"startTime":1736836811285,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":201085,"timestamp":19338477,"id":1338,"parentId":1185,"tags":{"name":"../pages/api/addUserMedia.js","cache":"MISS"},"startTime":1736836811278,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":195379,"timestamp":19347888,"id":1375,"parentId":1185,"tags":{"name":"../pages/su/users/new.js","cache":"MISS"},"startTime":1736836811287,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":227637,"timestamp":19315746,"id":1245,"parentId":1185,"tags":{"name":"../pages/api/getUserSchemaData.js","cache":"MISS"},"startTime":1736836811255,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":219109,"timestamp":19324342,"id":1300,"parentId":1185,"tags":{"name":"../pages/api/user/[user_id]/send-email-code.js","cache":"MISS"},"startTime":1736836811264,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":224518,"timestamp":19318996,"id":1265,"parentId":1185,"tags":{"name":"../pages/api/runUserDbQuery.js","cache":"MISS"},"startTime":1736836811258,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":199823,"timestamp":19343760,"id":1360,"parentId":1185,"tags":{"name":"../pages/reset-password.js","cache":"MISS"},"startTime":1736836811283,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":192693,"timestamp":19350970,"id":1384,"parentId":1185,"tags":{"name":"5392.js","cache":"MISS"},"startTime":1736836811290,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":207188,"timestamp":19336544,"id":1332,"parentId":1185,"tags":{"name":"../pages/admin/[user_id]/users/databases/[database]/[user].js","cache":"MISS"},"startTime":1736836811276,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":196163,"timestamp":19347635,"id":1374,"parentId":1185,"tags":{"name":"../pages/su/users.js","cache":"MISS"},"startTime":1736836811287,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":198585,"timestamp":19345288,"id":1367,"parentId":1185,"tags":{"name":"../pages/su/docs/pages.js","cache":"MISS"},"startTime":1736836811285,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":205633,"timestamp":19338304,"id":1337,"parentId":1185,"tags":{"name":"../pages/admin.js","cache":"MISS"},"startTime":1736836811278,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":225092,"timestamp":19318893,"id":1264,"parentId":1185,"tags":{"name":"../pages/api/resetPassword.js","cache":"MISS"},"startTime":1736836811258,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":203129,"timestamp":19340930,"id":1350,"parentId":1185,"tags":{"name":"../pages/docs.js","cache":"MISS"},"startTime":1736836811280,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":228500,"timestamp":19315632,"id":1244,"parentId":1185,"tags":{"name":"../pages/api/getUserMedia.js","cache":"MISS"},"startTime":1736836811255,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":215508,"timestamp":19328683,"id":1312,"parentId":1185,"tags":{"name":"../pages/admin/[user_id]/databases/[single]/tables/[single_table]/edit-table.js","cache":"MISS"},"startTime":1736836811268,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":208743,"timestamp":19336266,"id":1331,"parentId":1185,"tags":{"name":"../pages/admin/[user_id]/settings.js","cache":"MISS"},"startTime":1736836811276,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":211453,"timestamp":19333651,"id":1323,"parentId":1185,"tags":{"name":"../pages/admin/[user_id]/databases/[single]/users.js","cache":"MISS"},"startTime":1736836811273,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":200126,"timestamp":19345029,"id":1366,"parentId":1185,"tags":{"name":"../pages/su/envar.js","cache":"MISS"},"startTime":1736836811284,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":194831,"timestamp":19350395,"id":1383,"parentId":1185,"tags":{"name":"9796.js","cache":"MISS"},"startTime":1736836811290,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":229744,"timestamp":19315524,"id":1243,"parentId":1185,"tags":{"name":"../pages/api/getUserDatabases.js","cache":"MISS"},"startTime":1736836811255,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":201799,"timestamp":19343508,"id":1359,"parentId":1185,"tags":{"name":"../pages/su/console.js","cache":"MISS"},"startTime":1736836811283,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":229952,"timestamp":19315404,"id":1242,"parentId":1185,"tags":{"name":"../pages/api/getUserDatabaseTables.js","cache":"MISS"},"startTime":1736836811255,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":221208,"timestamp":19324191,"id":1299,"parentId":1185,"tags":{"name":"../pages/api/user/[user_id]/reauth-user.js","cache":"MISS"},"startTime":1736836811264,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":226673,"timestamp":19318795,"id":1263,"parentId":1185,"tags":{"name":"../pages/api/resetDelegatedDatabaseToken.js","cache":"MISS"},"startTime":1736836811258,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":211944,"timestamp":19333565,"id":1322,"parentId":1185,"tags":{"name":"../pages/admin/[user_id]/databases/[single]/users/[user].js","cache":"MISS"},"startTime":1736836811273,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":218898,"timestamp":19326708,"id":1308,"parentId":1185,"tags":{"name":"../pages/admin/[user_id]/databases/[single]/connect.js","cache":"MISS"},"startTime":1736836811266,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":205032,"timestamp":19340634,"id":1349,"parentId":1185,"tags":{"name":"../pages/docs/[page]/[sub-page].js","cache":"MISS"},"startTime":1736836811280,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":202771,"timestamp":19350237,"id":1382,"parentId":1185,"tags":{"name":"6521.js","cache":"MISS"},"startTime":1736836811290,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":217423,"timestamp":19335697,"id":1329,"parentId":1185,"tags":{"name":"../pages/admin/[user_id]/media.js","cache":"MISS"},"startTime":1736836811275,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":200557,"timestamp":19352675,"id":1391,"parentId":1185,"tags":{"name":"3704.js","cache":"MISS"},"startTime":1736836811292,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":220710,"timestamp":19332612,"id":1319,"parentId":1185,"tags":{"name":"../pages/admin/[user_id]/databases/[single]/users/[user]/change-password.js","cache":"MISS"},"startTime":1736836811272,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":214604,"timestamp":19339742,"id":1347,"parentId":1185,"tags":{"name":"../pages/contact.js","cache":"MISS"},"startTime":1736836811279,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":214849,"timestamp":19339566,"id":1346,"parentId":1185,"tags":{"name":"../pages/blog.js","cache":"MISS"},"startTime":1736836811279,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":233720,"timestamp":19326431,"id":1307,"parentId":1185,"tags":{"name":"../pages/admin/[user_id]/databases/[single]/edit-database.js","cache":"MISS"},"startTime":1736836811266,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":235388,"timestamp":19335980,"id":1330,"parentId":1185,"tags":{"name":"../pages/admin/[user_id]/schema.js","cache":"MISS"},"startTime":1736836811275,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":228213,"timestamp":19343283,"id":1358,"parentId":1185,"tags":{"name":"../pages/send-password-reset-link.js","cache":"MISS"},"startTime":1736836811283,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":252912,"timestamp":19318650,"id":1262,"parentId":1185,"tags":{"name":"../pages/api/renameMedia.js","cache":"MISS"},"startTime":1736836811258,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":214516,"timestamp":19357106,"id":1401,"parentId":1185,"tags":{"name":"3474.js","cache":"MISS"},"startTime":1736836811296,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":236328,"timestamp":19335344,"id":1328,"parentId":1185,"tags":{"name":"../pages/admin/[user_id]/media/[...folder].js","cache":"MISS"},"startTime":1736836811275,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":215697,"timestamp":19357587,"id":1403,"parentId":1185,"tags":{"name":"6202.js","cache":"MISS"},"startTime":1736836811297,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":218888,"timestamp":19357769,"id":1404,"parentId":1185,"tags":{"name":"3496.js","cache":"MISS"},"startTime":1736836811297,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":245962,"timestamp":19330778,"id":1316,"parentId":1185,"tags":{"name":"../pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries.js","cache":"MISS"},"startTime":1736836811270,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":224845,"timestamp":19351960,"id":1388,"parentId":1185,"tags":{"name":"2282.js","cache":"MISS"},"startTime":1736836811291,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":219943,"timestamp":19357344,"id":1402,"parentId":1185,"tags":{"name":"8760.js","cache":"MISS"},"startTime":1736836811297,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":245579,"timestamp":19350005,"id":1381,"parentId":1185,"tags":{"name":"9821.js","cache":"MISS"},"startTime":1736836811289,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":269283,"timestamp":19333147,"id":1321,"parentId":1185,"tags":{"name":"../pages/admin/[user_id]/databases/[single]/users/add-social-logins.js","cache":"MISS"},"startTime":1736836811273,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":259545,"timestamp":19343137,"id":1357,"parentId":1185,"tags":{"name":"../pages/redirect.js","cache":"MISS"},"startTime":1736836811283,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":251168,"timestamp":19351627,"id":1387,"parentId":1185,"tags":{"name":"6622.js","cache":"MISS"},"startTime":1736836811291,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":274584,"timestamp":19328329,"id":1311,"parentId":1185,"tags":{"name":"../pages/admin/[user_id]/databases/[single]/shell.js","cache":"MISS"},"startTime":1736836811268,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":263042,"timestamp":19340028,"id":1348,"parentId":1185,"tags":{"name":"../pages/create-account.js","cache":"MISS"},"startTime":1736836811279,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":284725,"timestamp":19318416,"id":1261,"parentId":1185,"tags":{"name":"../pages/api/registerUser.js","cache":"MISS"},"startTime":1736836811258,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":245327,"timestamp":19357911,"id":1405,"parentId":1185,"tags":{"name":"194.js","cache":"MISS"},"startTime":1736836811297,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":251899,"timestamp":19351428,"id":1386,"parentId":1185,"tags":{"name":"3634.js","cache":"MISS"},"startTime":1736836811291,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":271545,"timestamp":19331902,"id":1318,"parentId":1185,"tags":{"name":"../pages/admin/[user_id]/databases/[single]/tables/add-table.js","cache":"MISS"},"startTime":1736836811271,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":270650,"timestamp":19332862,"id":1320,"parentId":1185,"tags":{"name":"../pages/admin/[user_id]/databases/[single]/tables.js","cache":"MISS"},"startTime":1736836811272,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":250783,"timestamp":19352865,"id":1392,"parentId":1185,"tags":{"name":"9901.js","cache":"MISS"},"startTime":1736836811292,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":252372,"timestamp":19351347,"id":1385,"parentId":1185,"tags":{"name":"1251.js","cache":"MISS"},"startTime":1736836811291,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":272861,"timestamp":19330982,"id":1317,"parentId":1185,"tags":{"name":"../pages/admin/[user_id]/databases/[single]/tables/[single_table].js","cache":"MISS"},"startTime":1736836811270,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":261092,"timestamp":19342850,"id":1356,"parentId":1185,"tags":{"name":"../pages/privacy.js","cache":"MISS"},"startTime":1736836811282,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":248668,"timestamp":19355348,"id":1397,"parentId":1185,"tags":{"name":"4627.js","cache":"MISS"},"startTime":1736836811295,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":251682,"timestamp":19352426,"id":1390,"parentId":1185,"tags":{"name":"3791.js","cache":"MISS"},"startTime":1736836811292,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":248656,"timestamp":19355569,"id":1398,"parentId":1185,"tags":{"name":"1579.js","cache":"MISS"},"startTime":1736836811295,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":252015,"timestamp":19352261,"id":1389,"parentId":1185,"tags":{"name":"3155.js","cache":"MISS"},"startTime":1736836811292,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":286106,"timestamp":19318265,"id":1260,"parentId":1185,"tags":{"name":"../pages/api/refreshEntry.js","cache":"MISS"},"startTime":1736836811258,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":249921,"timestamp":19354496,"id":1394,"parentId":1185,"tags":{"name":"5954.js","cache":"MISS"},"startTime":1736836811294,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":270653,"timestamp":19342395,"id":1355,"parentId":1185,"tags":{"name":"../pages/login.js","cache":"MISS"},"startTime":1736836811282,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":258056,"timestamp":19355117,"id":1396,"parentId":1185,"tags":{"name":"6160.js","cache":"MISS"},"startTime":1736836811295,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":258616,"timestamp":19354608,"id":1395,"parentId":1185,"tags":{"name":"6903.js","cache":"MISS"},"startTime":1736836811294,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":256715,"timestamp":19356579,"id":1400,"parentId":1185,"tags":{"name":"8704.js","cache":"MISS"},"startTime":1736836811296,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":260076,"timestamp":19353969,"id":1393,"parentId":1185,"tags":{"name":"725.js","cache":"MISS"},"startTime":1736836811293,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":264469,"timestamp":19355663,"id":1399,"parentId":1185,"tags":{"name":"5839.js","cache":"MISS"},"startTime":1736836811295,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":288374,"timestamp":19349063,"id":1380,"parentId":1185,"tags":{"name":"883.js","cache":"MISS"},"startTime":1736836811288,"traceId":"89448a764ba2dcee"},{"name":"minify-webpack-plugin-optimize","duration":388444,"timestamp":19249025,"id":1185,"parentId":16,"tags":{"compilationName":"server"},"startTime":1736836811188,"traceId":"89448a764ba2dcee"},{"name":"css-minimizer-plugin","duration":232,"timestamp":19637877,"id":1406,"parentId":16,"tags":{},"startTime":1736836811577,"traceId":"89448a764ba2dcee"},{"name":"create-trace-assets","duration":10158,"timestamp":19638459,"id":1407,"parentId":17,"tags":{},"startTime":1736836811578,"traceId":"89448a764ba2dcee"},{"name":"seal","duration":1842020,"timestamp":17812496,"id":1172,"parentId":16,"tags":{},"startTime":1736836809752,"traceId":"89448a764ba2dcee"},{"name":"webpack-compilation","duration":17051432,"timestamp":2603517,"id":16,"parentId":13,"tags":{"name":"server"},"startTime":1736836794543,"traceId":"89448a764ba2dcee"},{"name":"emit","duration":22327,"timestamp":19655492,"id":1408,"parentId":13,"tags":{},"startTime":1736836811595,"traceId":"89448a764ba2dcee"},{"name":"webpack-close","duration":829547,"timestamp":19686416,"id":1409,"parentId":13,"tags":{"name":"server"},"startTime":1736836811626,"traceId":"89448a764ba2dcee"},{"name":"webpack-generate-error-stats","duration":3001,"timestamp":20516083,"id":1410,"parentId":1409,"tags":{},"startTime":1736836812455,"traceId":"89448a764ba2dcee"},{"name":"make","duration":160,"timestamp":20532830,"id":1412,"parentId":1411,"tags":{},"startTime":1736836812472,"traceId":"89448a764ba2dcee"},{"name":"chunk-graph","duration":110,"timestamp":20534950,"id":1414,"parentId":1413,"tags":{},"startTime":1736836812474,"traceId":"89448a764ba2dcee"},{"name":"optimize-modules","duration":36,"timestamp":20535148,"id":1416,"parentId":1413,"tags":{},"startTime":1736836812475,"traceId":"89448a764ba2dcee"},{"name":"optimize-chunks","duration":251,"timestamp":20535248,"id":1417,"parentId":1413,"tags":{},"startTime":1736836812475,"traceId":"89448a764ba2dcee"},{"name":"optimize-tree","duration":11,"timestamp":20535541,"id":1418,"parentId":1413,"tags":{},"startTime":1736836812475,"traceId":"89448a764ba2dcee"},{"name":"optimize-chunk-modules","duration":129,"timestamp":20535612,"id":1419,"parentId":1413,"tags":{},"startTime":1736836812475,"traceId":"89448a764ba2dcee"},{"name":"optimize","duration":671,"timestamp":20535103,"id":1415,"parentId":1413,"tags":{},"startTime":1736836812474,"traceId":"89448a764ba2dcee"},{"name":"module-hash","duration":28,"timestamp":20536197,"id":1420,"parentId":1413,"tags":{},"startTime":1736836812476,"traceId":"89448a764ba2dcee"},{"name":"code-generation","duration":22,"timestamp":20536248,"id":1421,"parentId":1413,"tags":{},"startTime":1736836812476,"traceId":"89448a764ba2dcee"}] +[{"name":"hash","duration":86,"timestamp":20536648,"id":1422,"parentId":1413,"tags":{},"startTime":1736836812476,"traceId":"89448a764ba2dcee"},{"name":"code-generation-jobs","duration":49,"timestamp":20536733,"id":1423,"parentId":1413,"tags":{},"startTime":1736836812476,"traceId":"89448a764ba2dcee"},{"name":"module-assets","duration":25,"timestamp":20536765,"id":1424,"parentId":1413,"tags":{},"startTime":1736836812476,"traceId":"89448a764ba2dcee"},{"name":"create-chunk-assets","duration":53,"timestamp":20536807,"id":1425,"parentId":1413,"tags":{},"startTime":1736836812476,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":518,"timestamp":20544119,"id":1427,"parentId":1426,"tags":{"name":"interception-route-rewrite-manifest.js","cache":"MISS"},"startTime":1736836812484,"traceId":"89448a764ba2dcee"},{"name":"minify-webpack-plugin-optimize","duration":955,"timestamp":20543699,"id":1426,"parentId":1411,"tags":{"compilationName":"edge-server"},"startTime":1736836812483,"traceId":"89448a764ba2dcee"},{"name":"css-minimizer-plugin","duration":21,"timestamp":20544711,"id":1428,"parentId":1411,"tags":{},"startTime":1736836812484,"traceId":"89448a764ba2dcee"},{"name":"seal","duration":11266,"timestamp":20534648,"id":1413,"parentId":1411,"tags":{},"startTime":1736836812474,"traceId":"89448a764ba2dcee"},{"name":"webpack-compilation","duration":15545,"timestamp":20530513,"id":1411,"parentId":13,"tags":{"name":"edge-server"},"startTime":1736836812470,"traceId":"89448a764ba2dcee"},{"name":"emit","duration":332,"timestamp":20546192,"id":1429,"parentId":13,"tags":{},"startTime":1736836812486,"traceId":"89448a764ba2dcee"},{"name":"webpack-close","duration":4496,"timestamp":20546766,"id":1430,"parentId":13,"tags":{"name":"edge-server"},"startTime":1736836812486,"traceId":"89448a764ba2dcee"},{"name":"webpack-generate-error-stats","duration":722,"timestamp":20551289,"id":1431,"parentId":1430,"tags":{},"startTime":1736836812491,"traceId":"89448a764ba2dcee"},{"name":"next-client-pages-loader","duration":420,"timestamp":20593128,"id":1507,"parentId":1506,"tags":{"absolutePagePath":"next/dist/pages/_error"},"startTime":1736836812533,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":3917,"timestamp":20591431,"id":1506,"parentId":1435,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=next%2Fdist%2Fpages%2F_error&page=%2F_error!","layer":null},"startTime":1736836812531,"traceId":"89448a764ba2dcee"},{"name":"next-client-pages-loader","duration":74,"timestamp":20595576,"id":1509,"parentId":1508,"tags":{"absolutePagePath":"private-next-pages/404.tsx"},"startTime":1736836812535,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":734,"timestamp":20595447,"id":1508,"parentId":1436,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2F404.tsx&page=%2F404!","layer":null},"startTime":1736836812535,"traceId":"89448a764ba2dcee"},{"name":"next-client-pages-loader","duration":58,"timestamp":20596235,"id":1511,"parentId":1510,"tags":{"absolutePagePath":"private-next-pages/500.tsx"},"startTime":1736836812536,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":320,"timestamp":20596202,"id":1510,"parentId":1437,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2F500.tsx&page=%2F500!","layer":null},"startTime":1736836812536,"traceId":"89448a764ba2dcee"},{"name":"next-client-pages-loader","duration":51,"timestamp":20596564,"id":1513,"parentId":1512,"tags":{"absolutePagePath":"private-next-pages/_app.tsx"},"startTime":1736836812536,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":288,"timestamp":20596537,"id":1512,"parentId":1438,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2F_app.tsx&page=%2F_app!","layer":null},"startTime":1736836812536,"traceId":"89448a764ba2dcee"},{"name":"next-client-pages-loader","duration":51,"timestamp":20596873,"id":1515,"parentId":1514,"tags":{"absolutePagePath":"private-next-pages/about.tsx"},"startTime":1736836812536,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":300,"timestamp":20596844,"id":1514,"parentId":1440,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fabout.tsx&page=%2Fabout!","layer":null},"startTime":1736836812536,"traceId":"89448a764ba2dcee"},{"name":"next-client-pages-loader","duration":113,"timestamp":20597189,"id":1517,"parentId":1516,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/api-keys/index.tsx"},"startTime":1736836812537,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":367,"timestamp":20597161,"id":1516,"parentId":1441,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fapi-keys%2Findex.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fapi-keys!","layer":null},"startTime":1736836812537,"traceId":"89448a764ba2dcee"},{"name":"next-client-pages-loader","duration":81,"timestamp":20597572,"id":1519,"parentId":1518,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/connect/index.tsx"},"startTime":1736836812537,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":335,"timestamp":20597544,"id":1518,"parentId":1442,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fconnect%2Findex.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fconnect!","layer":null},"startTime":1736836812537,"traceId":"89448a764ba2dcee"},{"name":"next-client-pages-loader","duration":108,"timestamp":20597922,"id":1521,"parentId":1520,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/databases/[single]/edit-database.tsx"},"startTime":1736836812537,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":370,"timestamp":20597894,"id":1520,"parentId":1443,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fedit-database.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fedit-database!","layer":null},"startTime":1736836812537,"traceId":"89448a764ba2dcee"},{"name":"next-client-pages-loader","duration":84,"timestamp":20598313,"id":1523,"parentId":1522,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/databases/[single]/connect.tsx"},"startTime":1736836812538,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":375,"timestamp":20598278,"id":1522,"parentId":1444,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fconnect.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fconnect!","layer":null},"startTime":1736836812538,"traceId":"89448a764ba2dcee"},{"name":"next-client-pages-loader","duration":141,"timestamp":20598709,"id":1525,"parentId":1524,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/databases/[single]/schema.tsx"},"startTime":1736836812538,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":549,"timestamp":20598670,"id":1524,"parentId":1445,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fschema.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fschema!","layer":null},"startTime":1736836812538,"traceId":"89448a764ba2dcee"},{"name":"next-client-pages-loader","duration":211,"timestamp":20599293,"id":1527,"parentId":1526,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/databases/[single]/index.tsx"},"startTime":1736836812539,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":719,"timestamp":20599241,"id":1526,"parentId":1446,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Findex.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D!","layer":null},"startTime":1736836812539,"traceId":"89448a764ba2dcee"},{"name":"next-client-pages-loader","duration":162,"timestamp":20600031,"id":1529,"parentId":1528,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/databases/[single]/shell.tsx"},"startTime":1736836812539,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":655,"timestamp":20599983,"id":1528,"parentId":1447,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fshell.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fshell!","layer":null},"startTime":1736836812539,"traceId":"89448a764ba2dcee"},{"name":"next-client-pages-loader","duration":204,"timestamp":20600708,"id":1531,"parentId":1530,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/databases/[single]/tables/[single_table]/edit-table.tsx"},"startTime":1736836812540,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":654,"timestamp":20600663,"id":1530,"parentId":1448,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Fedit-table.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Fedit-table!","layer":null},"startTime":1736836812540,"traceId":"89448a764ba2dcee"},{"name":"next-client-pages-loader","duration":244,"timestamp":20601383,"id":1533,"parentId":1532,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/[single_entry].tsx"},"startTime":1736836812541,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":674,"timestamp":20601339,"id":1532,"parentId":1449,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Fentries%2F%5Bsingle_entry%5D.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Fentries%2F%5Bsingle_entry%5D!","layer":null},"startTime":1736836812541,"traceId":"89448a764ba2dcee"},{"name":"next-client-pages-loader","duration":222,"timestamp":20602079,"id":1535,"parentId":1534,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/add-entry.tsx"},"startTime":1736836812541,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":574,"timestamp":20602034,"id":1534,"parentId":1450,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Fentries%2Fadd-entry.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Fentries%2Fadd-entry!","layer":null},"startTime":1736836812541,"traceId":"89448a764ba2dcee"},{"name":"next-client-pages-loader","duration":172,"timestamp":20602661,"id":1537,"parentId":1536,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/databases/[single]/tables/[single_table]/fields.tsx"},"startTime":1736836812542,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":531,"timestamp":20602626,"id":1536,"parentId":1451,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Ffields.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Ffields!","layer":null},"startTime":1736836812542,"traceId":"89448a764ba2dcee"},{"name":"next-client-pages-loader","duration":201,"timestamp":20603214,"id":1539,"parentId":1538,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/index.tsx"},"startTime":1736836812543,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":563,"timestamp":20603175,"id":1538,"parentId":1452,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Fentries%2Findex.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Fentries!","layer":null},"startTime":1736836812543,"traceId":"89448a764ba2dcee"},{"name":"next-client-pages-loader","duration":121,"timestamp":20603805,"id":1541,"parentId":1540,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/databases/[single]/tables/[single_table]/index.tsx"},"startTime":1736836812543,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":402,"timestamp":20603771,"id":1540,"parentId":1453,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Findex.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D!","layer":null},"startTime":1736836812543,"traceId":"89448a764ba2dcee"},{"name":"next-client-pages-loader","duration":90,"timestamp":20604223,"id":1543,"parentId":1542,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/databases/[single]/tables/add-table.tsx"},"startTime":1736836812544,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":366,"timestamp":20604189,"id":1542,"parentId":1454,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2Fadd-table.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2Fadd-table!","layer":null},"startTime":1736836812544,"traceId":"89448a764ba2dcee"},{"name":"next-client-pages-loader","duration":147,"timestamp":20604612,"id":1545,"parentId":1544,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/databases/[single]/users/[user]/change-password.tsx"},"startTime":1736836812544,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":453,"timestamp":20604573,"id":1544,"parentId":1455,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers%2F%5Buser%5D%2Fchange-password.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers%2F%5Buser%5D%2Fchange-password!","layer":null},"startTime":1736836812544,"traceId":"89448a764ba2dcee"},{"name":"next-client-pages-loader","duration":93,"timestamp":20605079,"id":1547,"parentId":1546,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/databases/[single]/tables/index.tsx"},"startTime":1736836812544,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":376,"timestamp":20605043,"id":1546,"parentId":1456,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2Findex.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables!","layer":null},"startTime":1736836812544,"traceId":"89448a764ba2dcee"},{"name":"next-client-pages-loader","duration":136,"timestamp":20605473,"id":1549,"parentId":1548,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/databases/[single]/users/add-social-logins.tsx"},"startTime":1736836812545,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":410,"timestamp":20605443,"id":1548,"parentId":1457,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers%2Fadd-social-logins.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers%2Fadd-social-logins!","layer":null},"startTime":1736836812545,"traceId":"89448a764ba2dcee"},{"name":"next-client-pages-loader","duration":105,"timestamp":20605905,"id":1551,"parentId":1550,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/databases/[single]/users/[user]/index.tsx"},"startTime":1736836812545,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":398,"timestamp":20605868,"id":1550,"parentId":1458,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers%2F%5Buser%5D%2Findex.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers%2F%5Buser%5D!","layer":null},"startTime":1736836812545,"traceId":"89448a764ba2dcee"},{"name":"next-client-pages-loader","duration":90,"timestamp":20606318,"id":1553,"parentId":1552,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/databases/[single]/users/index.tsx"},"startTime":1736836812546,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":320,"timestamp":20606283,"id":1552,"parentId":1459,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers%2Findex.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers!","layer":null},"startTime":1736836812546,"traceId":"89448a764ba2dcee"},{"name":"next-client-pages-loader","duration":91,"timestamp":20606648,"id":1555,"parentId":1554,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/databases/[single]/users/add-user.tsx"},"startTime":1736836812546,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":339,"timestamp":20606616,"id":1554,"parentId":1460,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers%2Fadd-user.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers%2Fadd-user!","layer":null},"startTime":1736836812546,"traceId":"89448a764ba2dcee"},{"name":"next-client-pages-loader","duration":97,"timestamp":20606994,"id":1557,"parentId":1556,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/databases/add-database.tsx"},"startTime":1736836812546,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":327,"timestamp":20606969,"id":1556,"parentId":1461,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2Fadd-database.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2Fadd-database!","layer":null},"startTime":1736836812546,"traceId":"89448a764ba2dcee"},{"name":"next-client-pages-loader","duration":89,"timestamp":20607341,"id":1559,"parentId":1558,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/databases/index.tsx"},"startTime":1736836812547,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":353,"timestamp":20607313,"id":1558,"parentId":1462,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2Findex.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases!","layer":null},"startTime":1736836812547,"traceId":"89448a764ba2dcee"},{"name":"next-client-pages-loader","duration":86,"timestamp":20607717,"id":1561,"parentId":1560,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/index.tsx"},"startTime":1736836812547,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":389,"timestamp":20607684,"id":1560,"parentId":1463,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Findex.tsx&page=%2Fadmin%2F%5Buser_id%5D!","layer":null},"startTime":1736836812547,"traceId":"89448a764ba2dcee"},{"name":"next-client-pages-loader","duration":100,"timestamp":20608125,"id":1563,"parentId":1562,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/media/[...folder].tsx"},"startTime":1736836812548,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":396,"timestamp":20608091,"id":1562,"parentId":1464,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fmedia%2F%5B...folder%5D.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fmedia%2F%5B...folder%5D!","layer":null},"startTime":1736836812547,"traceId":"89448a764ba2dcee"},{"name":"next-client-pages-loader","duration":76,"timestamp":20608534,"id":1565,"parentId":1564,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/media/index.tsx"},"startTime":1736836812548,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":343,"timestamp":20608503,"id":1564,"parentId":1465,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fmedia%2Findex.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fmedia!","layer":null},"startTime":1736836812548,"traceId":"89448a764ba2dcee"},{"name":"next-client-pages-loader","duration":71,"timestamp":20608896,"id":1567,"parentId":1566,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/schema.tsx"},"startTime":1736836812548,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":341,"timestamp":20608862,"id":1566,"parentId":1466,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fschema.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fschema!","layer":null},"startTime":1736836812548,"traceId":"89448a764ba2dcee"},{"name":"next-client-pages-loader","duration":103,"timestamp":20609254,"id":1569,"parentId":1568,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/settings.tsx"},"startTime":1736836812549,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":386,"timestamp":20609219,"id":1568,"parentId":1467,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fsettings.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fsettings!","layer":null},"startTime":1736836812549,"traceId":"89448a764ba2dcee"},{"name":"next-client-pages-loader","duration":108,"timestamp":20609653,"id":1571,"parentId":1570,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/users/databases/[database]/[user].tsx"},"startTime":1736836812549,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":368,"timestamp":20609622,"id":1570,"parentId":1468,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fusers%2Fdatabases%2F%5Bdatabase%5D%2F%5Buser%5D.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fusers%2Fdatabases%2F%5Bdatabase%5D%2F%5Buser%5D!","layer":null},"startTime":1736836812549,"traceId":"89448a764ba2dcee"},{"name":"next-client-pages-loader","duration":126,"timestamp":20610056,"id":1573,"parentId":1572,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/users/add-user.tsx"},"startTime":1736836812549,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":475,"timestamp":20610007,"id":1572,"parentId":1469,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fusers%2Fadd-user.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fusers%2Fadd-user!","layer":null},"startTime":1736836812549,"traceId":"89448a764ba2dcee"},{"name":"next-client-pages-loader","duration":101,"timestamp":20610533,"id":1575,"parentId":1574,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/users/databases/[database]/index.tsx"},"startTime":1736836812550,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":370,"timestamp":20610499,"id":1574,"parentId":1470,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fusers%2Fdatabases%2F%5Bdatabase%5D%2Findex.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fusers%2Fdatabases%2F%5Bdatabase%5D!","layer":null},"startTime":1736836812550,"traceId":"89448a764ba2dcee"},{"name":"next-client-pages-loader","duration":95,"timestamp":20610926,"id":1577,"parentId":1576,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/users/databases/index.tsx"},"startTime":1736836812550,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":389,"timestamp":20610885,"id":1576,"parentId":1471,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fusers%2Fdatabases%2Findex.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fusers%2Fdatabases!","layer":null},"startTime":1736836812550,"traceId":"89448a764ba2dcee"},{"name":"next-client-pages-loader","duration":66,"timestamp":20611325,"id":1579,"parentId":1578,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/users/index.tsx"},"startTime":1736836812551,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":311,"timestamp":20611292,"id":1578,"parentId":1472,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fusers%2Findex.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fusers!","layer":null},"startTime":1736836812551,"traceId":"89448a764ba2dcee"},{"name":"next-client-pages-loader","duration":54,"timestamp":20611653,"id":1581,"parentId":1580,"tags":{"absolutePagePath":"private-next-pages/admin/index.tsx"},"startTime":1736836812551,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":296,"timestamp":20611620,"id":1580,"parentId":1473,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fadmin%2Findex.tsx&page=%2Fadmin!","layer":null},"startTime":1736836812551,"traceId":"89448a764ba2dcee"},{"name":"next-client-pages-loader","duration":57,"timestamp":20611963,"id":1583,"parentId":1582,"tags":{"absolutePagePath":"private-next-pages/blog/index.tsx"},"startTime":1736836812551,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":325,"timestamp":20611932,"id":1582,"parentId":1474,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fblog%2Findex.tsx&page=%2Fblog!","layer":null},"startTime":1736836812551,"traceId":"89448a764ba2dcee"},{"name":"next-client-pages-loader","duration":58,"timestamp":20612301,"id":1585,"parentId":1584,"tags":{"absolutePagePath":"private-next-pages/contact.tsx"},"startTime":1736836812552,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":313,"timestamp":20612273,"id":1584,"parentId":1475,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fcontact.tsx&page=%2Fcontact!","layer":null},"startTime":1736836812552,"traceId":"89448a764ba2dcee"},{"name":"next-client-pages-loader","duration":55,"timestamp":20612635,"id":1587,"parentId":1586,"tags":{"absolutePagePath":"private-next-pages/create-account.tsx"},"startTime":1736836812552,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":377,"timestamp":20612604,"id":1586,"parentId":1476,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fcreate-account.tsx&page=%2Fcreate-account!","layer":null},"startTime":1736836812552,"traceId":"89448a764ba2dcee"},{"name":"next-client-pages-loader","duration":86,"timestamp":20613038,"id":1589,"parentId":1588,"tags":{"absolutePagePath":"private-next-pages/docs/[page]/[sub-page]/index.tsx"},"startTime":1736836812552,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":372,"timestamp":20613004,"id":1588,"parentId":1477,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fdocs%2F%5Bpage%5D%2F%5Bsub-page%5D%2Findex.tsx&page=%2Fdocs%2F%5Bpage%5D%2F%5Bsub-page%5D!","layer":null},"startTime":1736836812552,"traceId":"89448a764ba2dcee"},{"name":"next-client-pages-loader","duration":51,"timestamp":20613425,"id":1591,"parentId":1590,"tags":{"absolutePagePath":"private-next-pages/docs/index.tsx"},"startTime":1736836812553,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":313,"timestamp":20613394,"id":1590,"parentId":1478,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fdocs%2Findex.tsx&page=%2Fdocs!","layer":null},"startTime":1736836812553,"traceId":"89448a764ba2dcee"},{"name":"next-client-pages-loader","duration":102,"timestamp":20613866,"id":1593,"parentId":1592,"tags":{"absolutePagePath":"private-next-pages/docs/[page]/index.tsx"},"startTime":1736836812553,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":580,"timestamp":20613723,"id":1592,"parentId":1479,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fdocs%2F%5Bpage%5D%2Findex.tsx&page=%2Fdocs%2F%5Bpage%5D!","layer":null},"startTime":1736836812553,"traceId":"89448a764ba2dcee"},{"name":"next-client-pages-loader","duration":67,"timestamp":20614361,"id":1595,"parentId":1594,"tags":{"absolutePagePath":"private-next-pages/index.tsx"},"startTime":1736836812554,"traceId":"89448a764ba2dcee"}] +[{"name":"build-module","duration":2817,"timestamp":20614322,"id":1594,"parentId":1480,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Findex.tsx&page=%2F!","layer":null},"startTime":1736836812554,"traceId":"89448a764ba2dcee"},{"name":"next-client-pages-loader","duration":110,"timestamp":20617311,"id":1597,"parentId":1596,"tags":{"absolutePagePath":"private-next-pages/email-verification/index.tsx"},"startTime":1736836812557,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":557,"timestamp":20617184,"id":1596,"parentId":1481,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Femail-verification%2Findex.tsx&page=%2Femail-verification!","layer":null},"startTime":1736836812557,"traceId":"89448a764ba2dcee"},{"name":"next-client-pages-loader","duration":58,"timestamp":20617815,"id":1599,"parentId":1598,"tags":{"absolutePagePath":"private-next-pages/logout.tsx"},"startTime":1736836812557,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":327,"timestamp":20617764,"id":1598,"parentId":1482,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Flogout.tsx&page=%2Flogout!","layer":null},"startTime":1736836812557,"traceId":"89448a764ba2dcee"},{"name":"next-client-pages-loader","duration":47,"timestamp":20618137,"id":1601,"parentId":1600,"tags":{"absolutePagePath":"private-next-pages/login.tsx"},"startTime":1736836812558,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":303,"timestamp":20618108,"id":1600,"parentId":1483,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Flogin.tsx&page=%2Flogin!","layer":null},"startTime":1736836812557,"traceId":"89448a764ba2dcee"},{"name":"next-client-pages-loader","duration":50,"timestamp":20618458,"id":1603,"parentId":1602,"tags":{"absolutePagePath":"private-next-pages/privacy.tsx"},"startTime":1736836812558,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":288,"timestamp":20618428,"id":1602,"parentId":1484,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fprivacy.tsx&page=%2Fprivacy!","layer":null},"startTime":1736836812558,"traceId":"89448a764ba2dcee"},{"name":"next-client-pages-loader","duration":55,"timestamp":20618762,"id":1605,"parentId":1604,"tags":{"absolutePagePath":"private-next-pages/redirect.tsx"},"startTime":1736836812558,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":275,"timestamp":20618733,"id":1604,"parentId":1485,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fredirect.tsx&page=%2Fredirect!","layer":null},"startTime":1736836812558,"traceId":"89448a764ba2dcee"},{"name":"next-client-pages-loader","duration":70,"timestamp":20619057,"id":1607,"parentId":1606,"tags":{"absolutePagePath":"private-next-pages/send-password-reset-link.tsx"},"startTime":1736836812558,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":309,"timestamp":20619024,"id":1606,"parentId":1486,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fsend-password-reset-link.tsx&page=%2Fsend-password-reset-link!","layer":null},"startTime":1736836812558,"traceId":"89448a764ba2dcee"},{"name":"next-client-pages-loader","duration":59,"timestamp":20619381,"id":1609,"parentId":1608,"tags":{"absolutePagePath":"private-next-pages/su/console.tsx"},"startTime":1736836812559,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":299,"timestamp":20619348,"id":1608,"parentId":1487,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fsu%2Fconsole.tsx&page=%2Fsu%2Fconsole!","layer":null},"startTime":1736836812559,"traceId":"89448a764ba2dcee"},{"name":"next-client-pages-loader","duration":56,"timestamp":20619688,"id":1611,"parentId":1610,"tags":{"absolutePagePath":"private-next-pages/reset-password.tsx"},"startTime":1736836812559,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":268,"timestamp":20619664,"id":1610,"parentId":1488,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Freset-password.tsx&page=%2Freset-password!","layer":null},"startTime":1736836812559,"traceId":"89448a764ba2dcee"},{"name":"next-client-pages-loader","duration":50,"timestamp":20619970,"id":1613,"parentId":1612,"tags":{"absolutePagePath":"private-next-pages/su/backups.tsx"},"startTime":1736836812559,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":278,"timestamp":20619945,"id":1612,"parentId":1489,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fsu%2Fbackups.tsx&page=%2Fsu%2Fbackups!","layer":null},"startTime":1736836812559,"traceId":"89448a764ba2dcee"},{"name":"next-client-pages-loader","duration":63,"timestamp":20620262,"id":1615,"parentId":1614,"tags":{"absolutePagePath":"private-next-pages/su/docs/create-page.tsx"},"startTime":1736836812560,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":306,"timestamp":20620238,"id":1614,"parentId":1490,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fsu%2Fdocs%2Fcreate-page.tsx&page=%2Fsu%2Fdocs%2Fcreate-page!","layer":null},"startTime":1736836812560,"traceId":"89448a764ba2dcee"},{"name":"next-client-pages-loader","duration":67,"timestamp":20620585,"id":1617,"parentId":1616,"tags":{"absolutePagePath":"private-next-pages/su/docs/edit-page.tsx"},"startTime":1736836812560,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":285,"timestamp":20620559,"id":1616,"parentId":1491,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fsu%2Fdocs%2Fedit-page.tsx&page=%2Fsu%2Fdocs%2Fedit-page!","layer":null},"startTime":1736836812560,"traceId":"89448a764ba2dcee"},{"name":"next-client-pages-loader","duration":64,"timestamp":20620895,"id":1619,"parentId":1618,"tags":{"absolutePagePath":"private-next-pages/su/docs/pages/[id].tsx"},"startTime":1736836812560,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":319,"timestamp":20620864,"id":1618,"parentId":1492,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fsu%2Fdocs%2Fpages%2F%5Bid%5D.tsx&page=%2Fsu%2Fdocs%2Fpages%2F%5Bid%5D!","layer":null},"startTime":1736836812560,"traceId":"89448a764ba2dcee"},{"name":"next-client-pages-loader","duration":56,"timestamp":20621230,"id":1621,"parentId":1620,"tags":{"absolutePagePath":"private-next-pages/su/docs/index.tsx"},"startTime":1736836812561,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":278,"timestamp":20621198,"id":1620,"parentId":1493,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fsu%2Fdocs%2Findex.tsx&page=%2Fsu%2Fdocs!","layer":null},"startTime":1736836812561,"traceId":"89448a764ba2dcee"},{"name":"next-client-pages-loader","duration":61,"timestamp":20621533,"id":1623,"parentId":1622,"tags":{"absolutePagePath":"private-next-pages/su/envar.tsx"},"startTime":1736836812561,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":317,"timestamp":20621491,"id":1622,"parentId":1494,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fsu%2Fenvar.tsx&page=%2Fsu%2Fenvar!","layer":null},"startTime":1736836812561,"traceId":"89448a764ba2dcee"},{"name":"next-client-pages-loader","duration":65,"timestamp":20621856,"id":1625,"parentId":1624,"tags":{"absolutePagePath":"private-next-pages/su/docs/pages/index.tsx"},"startTime":1736836812561,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":300,"timestamp":20621826,"id":1624,"parentId":1495,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fsu%2Fdocs%2Fpages%2Findex.tsx&page=%2Fsu%2Fdocs%2Fpages!","layer":null},"startTime":1736836812561,"traceId":"89448a764ba2dcee"},{"name":"next-client-pages-loader","duration":95,"timestamp":20622167,"id":1627,"parentId":1626,"tags":{"absolutePagePath":"private-next-pages/su/error-logs.tsx"},"startTime":1736836812562,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":330,"timestamp":20622140,"id":1626,"parentId":1496,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fsu%2Ferror-logs.tsx&page=%2Fsu%2Ferror-logs!","layer":null},"startTime":1736836812562,"traceId":"89448a764ba2dcee"},{"name":"next-client-pages-loader","duration":42,"timestamp":20622513,"id":1629,"parentId":1628,"tags":{"absolutePagePath":"private-next-pages/su/index.tsx"},"startTime":1736836812562,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":247,"timestamp":20622488,"id":1628,"parentId":1497,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fsu%2Findex.tsx&page=%2Fsu!","layer":null},"startTime":1736836812562,"traceId":"89448a764ba2dcee"},{"name":"next-client-pages-loader","duration":52,"timestamp":20622785,"id":1631,"parentId":1630,"tags":{"absolutePagePath":"private-next-pages/su/load-balancing.tsx"},"startTime":1736836812562,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":258,"timestamp":20622759,"id":1630,"parentId":1498,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fsu%2Fload-balancing.tsx&page=%2Fsu%2Fload-balancing!","layer":null},"startTime":1736836812562,"traceId":"89448a764ba2dcee"},{"name":"next-client-pages-loader","duration":50,"timestamp":20623060,"id":1633,"parentId":1632,"tags":{"absolutePagePath":"private-next-pages/su/servers.tsx"},"startTime":1736836812562,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":265,"timestamp":20623033,"id":1632,"parentId":1499,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fsu%2Fservers.tsx&page=%2Fsu%2Fservers!","layer":null},"startTime":1736836812562,"traceId":"89448a764ba2dcee"},{"name":"next-client-pages-loader","duration":65,"timestamp":20623336,"id":1635,"parentId":1634,"tags":{"absolutePagePath":"private-next-pages/su/login.tsx"},"startTime":1736836812563,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":280,"timestamp":20623310,"id":1634,"parentId":1500,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fsu%2Flogin.tsx&page=%2Fsu%2Flogin!","layer":null},"startTime":1736836812563,"traceId":"89448a764ba2dcee"},{"name":"next-client-pages-loader","duration":71,"timestamp":20623636,"id":1637,"parentId":1636,"tags":{"absolutePagePath":"private-next-pages/su/users/[single].tsx"},"startTime":1736836812563,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":293,"timestamp":20623609,"id":1636,"parentId":1501,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fsu%2Fusers%2F%5Bsingle%5D.tsx&page=%2Fsu%2Fusers%2F%5Bsingle%5D!","layer":null},"startTime":1736836812563,"traceId":"89448a764ba2dcee"},{"name":"next-client-pages-loader","duration":61,"timestamp":20623983,"id":1639,"parentId":1638,"tags":{"absolutePagePath":"private-next-pages/su/users/index.tsx"},"startTime":1736836812563,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":407,"timestamp":20623936,"id":1638,"parentId":1502,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fsu%2Fusers%2Findex.tsx&page=%2Fsu%2Fusers!","layer":null},"startTime":1736836812563,"traceId":"89448a764ba2dcee"},{"name":"next-client-pages-loader","duration":75,"timestamp":20624398,"id":1641,"parentId":1640,"tags":{"absolutePagePath":"private-next-pages/su/users/new.tsx"},"startTime":1736836812564,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":349,"timestamp":20624373,"id":1640,"parentId":1503,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fsu%2Fusers%2Fnew.tsx&page=%2Fsu%2Fusers%2Fnew!","layer":null},"startTime":1736836812564,"traceId":"89448a764ba2dcee"},{"name":"next-client-pages-loader","duration":71,"timestamp":20624770,"id":1643,"parentId":1642,"tags":{"absolutePagePath":"private-next-pages/terms.tsx"},"startTime":1736836812564,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":319,"timestamp":20624739,"id":1642,"parentId":1504,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fterms.tsx&page=%2Fterms!","layer":null},"startTime":1736836812564,"traceId":"89448a764ba2dcee"},{"name":"next-client-pages-loader","duration":64,"timestamp":20625107,"id":1645,"parentId":1644,"tags":{"absolutePagePath":"private-next-pages/unsubscribe.tsx"},"startTime":1736836812564,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":329,"timestamp":20625075,"id":1644,"parentId":1505,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Funsubscribe.tsx&page=%2Funsubscribe!","layer":null},"startTime":1736836812564,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":42239,"timestamp":20625430,"id":1646,"parentId":1434,"tags":{"name":"/app/node_modules/next/dist/client/next.js","layer":null},"startTime":1736836812565,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":3455,"timestamp":20672293,"id":1649,"parentId":1646,"tags":{"name":"/app/node_modules/next/dist/client/webpack.js","layer":null},"startTime":1736836812612,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":6511,"timestamp":20671507,"id":1647,"parentId":1506,"tags":{"name":"/app/node_modules/next/dist/pages/_error.js","layer":null},"startTime":1736836812611,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":9438,"timestamp":20671651,"id":1648,"parentId":1439,"tags":{"name":"/app/node_modules/next/dist/client/router.js","layer":null},"startTime":1736836812611,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":20266,"timestamp":20672349,"id":1650,"parentId":1646,"tags":{"name":"/app/node_modules/next/dist/client/index.js","layer":null},"startTime":1736836812612,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":5625,"timestamp":20716124,"id":1651,"parentId":1648,"tags":{"name":"/app/node_modules/next/dist/lib/is-error.js","layer":null},"startTime":1736836812656,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":10648,"timestamp":20720080,"id":1656,"parentId":1649,"tags":{"name":"/app/node_modules/next/dist/build/deployment-id.js","layer":null},"startTime":1736836812659,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":11933,"timestamp":20720013,"id":1655,"parentId":1650,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/is-dynamic.js","layer":null},"startTime":1736836812659,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":18031,"timestamp":20717604,"id":1654,"parentId":1650,"tags":{"name":"/app/node_modules/next/dist/shared/lib/utils.js","layer":null},"startTime":1736836812657,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":23427,"timestamp":20716310,"id":1652,"parentId":1647,"tags":{"name":"/app/node_modules/next/dist/shared/lib/head.js","layer":null},"startTime":1736836812656,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":23700,"timestamp":20716463,"id":1653,"parentId":1650,"tags":{"name":"/app/node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","layer":null},"startTime":1736836812656,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":20883,"timestamp":20720127,"id":1657,"parentId":1648,"tags":{"name":"/app/node_modules/next/dist/client/with-router.js","layer":null},"startTime":1736836812660,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":6219,"timestamp":20757628,"id":1667,"parentId":1650,"tags":{"name":"/app/node_modules/next/dist/build/polyfills/polyfill-module.js","layer":null},"startTime":1736836812697,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":7371,"timestamp":20757454,"id":1665,"parentId":1650,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/handle-smooth-scroll.js","layer":null},"startTime":1736836812697,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":8180,"timestamp":20757348,"id":1663,"parentId":1650,"tags":{"name":"/app/node_modules/next/dist/shared/lib/runtime-config.external.js","layer":null},"startTime":1736836812697,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":9074,"timestamp":20757241,"id":1661,"parentId":1648,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router-context.shared-runtime.js","layer":null},"startTime":1736836812697,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":10734,"timestamp":20757300,"id":1662,"parentId":1650,"tags":{"name":"/app/node_modules/next/dist/shared/lib/mitt.js","layer":null},"startTime":1736836812697,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":12751,"timestamp":20757179,"id":1660,"parentId":1650,"tags":{"name":"/app/node_modules/next/dist/client/route-announcer.js","layer":null},"startTime":1736836812697,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":14077,"timestamp":20757518,"id":1666,"parentId":1650,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/querystring.js","layer":null},"startTime":1736836812697,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":17233,"timestamp":20756933,"id":1658,"parentId":1650,"tags":{"name":"/app/node_modules/next/dist/client/head-manager.js","layer":null},"startTime":1736836812696,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":19327,"timestamp":20757110,"id":1659,"parentId":1650,"tags":{"name":"/app/node_modules/next/dist/client/page-loader.js","layer":null},"startTime":1736836812696,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":19623,"timestamp":20757666,"id":1668,"parentId":1650,"tags":{"name":"/app/node_modules/next/dist/client/portal/index.js","layer":null},"startTime":1736836812697,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":20351,"timestamp":20757718,"id":1669,"parentId":1650,"tags":{"name":"/app/node_modules/next/dist/client/remove-base-path.js","layer":null},"startTime":1736836812697,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":39332,"timestamp":20757394,"id":1664,"parentId":1648,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/router.js","layer":null},"startTime":1736836812697,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":2186,"timestamp":20830102,"id":1673,"parentId":1647,"tags":{"name":"/app/node_modules/react/jsx-runtime.js","layer":null},"startTime":1736836812769,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":3073,"timestamp":20830131,"id":1674,"parentId":1650,"tags":{"name":"/app/node_modules/react-dom/client.js","layer":null},"startTime":1736836812770,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":5115,"timestamp":20829983,"id":1671,"parentId":1650,"tags":{"name":"/app/node_modules/next/dist/shared/lib/image-config-context.shared-runtime.js","layer":null},"startTime":1736836812769,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":6443,"timestamp":20829831,"id":1670,"parentId":1650,"tags":{"name":"/app/node_modules/next/dist/client/has-base-path.js","layer":null},"startTime":1736836812769,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":9781,"timestamp":20830050,"id":1672,"parentId":1650,"tags":{"name":"/app/node_modules/next/dist/client/script.js","layer":null},"startTime":1736836812769,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":10209,"timestamp":20830283,"id":1677,"parentId":1650,"tags":{"name":"/app/node_modules/next/dist/shared/lib/hooks-client-context.shared-runtime.js","layer":null},"startTime":1736836812770,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":11016,"timestamp":20830179,"id":1676,"parentId":1650,"tags":{"name":"/app/node_modules/next/dist/shared/lib/app-router-context.shared-runtime.js","layer":null},"startTime":1736836812770,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":11940,"timestamp":20830155,"id":1675,"parentId":1650,"tags":{"name":"/app/node_modules/next/dist/pages/_app.js","layer":null},"startTime":1736836812770,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":12480,"timestamp":20830409,"id":1679,"parentId":1650,"tags":{"name":"/app/node_modules/next/dist/client/react-client-callbacks/shared.js","layer":null},"startTime":1736836812770,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":13666,"timestamp":20830472,"id":1680,"parentId":1650,"tags":{"name":"/app/node_modules/next/dist/client/tracing/tracer.js","layer":null},"startTime":1736836812770,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":15292,"timestamp":20830344,"id":1678,"parentId":1650,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/adapters.js","layer":null},"startTime":1736836812770,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":4424,"timestamp":20865215,"id":1682,"parentId":1650,"tags":{"name":"/app/node_modules/next/dist/client/components/is-next-router-error.js","layer":null},"startTime":1736836812805,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":5404,"timestamp":20865056,"id":1681,"parentId":1650,"tags":{"name":"/app/node_modules/next/dist/client/tracing/report-to-socket.js","layer":null},"startTime":1736836812804,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":7851,"timestamp":20871242,"id":1683,"parentId":1651,"tags":{"name":"/app/node_modules/next/dist/shared/lib/is-plain-object.js","layer":null},"startTime":1736836812811,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":8804,"timestamp":20871370,"id":1684,"parentId":1652,"tags":{"name":"/app/node_modules/next/dist/shared/lib/side-effect.js","layer":null},"startTime":1736836812811,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":9232,"timestamp":20871424,"id":1685,"parentId":1652,"tags":{"name":"/app/node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","layer":null},"startTime":1736836812811,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":2314,"timestamp":20886160,"id":1687,"parentId":1655,"tags":{"name":"/app/node_modules/next/dist/server/lib/interception-routes.js","layer":null},"startTime":1736836812826,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":9783,"timestamp":20886271,"id":1689,"parentId":1647,"tags":{"name":"/app/node_modules/react/index.js","layer":null},"startTime":1736836812826,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":10606,"timestamp":20885991,"id":1686,"parentId":1652,"tags":{"name":"/app/node_modules/next/dist/shared/lib/amp-mode.js","layer":null},"startTime":1736836812825,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":10745,"timestamp":20886220,"id":1688,"parentId":1652,"tags":{"name":"/app/node_modules/next/dist/shared/lib/utils/warn-once.js","layer":null},"startTime":1736836812826,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":905,"timestamp":20901915,"id":1701,"parentId":1664,"tags":{"layer":null},"startTime":1736836812841,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":9176,"timestamp":20902883,"id":1702,"parentId":1668,"tags":{"name":"/app/node_modules/react-dom/index.js","layer":null},"startTime":1736836812842,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":9602,"timestamp":20903202,"id":1706,"parentId":1664,"tags":{"name":"/app/node_modules/next/dist/lib/is-api-route.js","layer":null},"startTime":1736836812843,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":13696,"timestamp":20901215,"id":1692,"parentId":1664,"tags":{"name":"/app/node_modules/next/dist/shared/lib/page-path/denormalize-page-path.js","layer":null},"startTime":1736836812841,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":15362,"timestamp":20900999,"id":1690,"parentId":1658,"tags":{"name":"/app/node_modules/next/dist/client/set-attributes-from-props.js","layer":null},"startTime":1736836812840,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":18545,"timestamp":20901142,"id":1691,"parentId":1659,"tags":{"name":"/app/node_modules/next/dist/shared/lib/constants.js","layer":null},"startTime":1736836812841,"traceId":"89448a764ba2dcee"}] +[{"name":"build-module-js","duration":18770,"timestamp":20901687,"id":1699,"parentId":1659,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/remove-trailing-slash.js","layer":null},"startTime":1736836812841,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":19338,"timestamp":20901564,"id":1697,"parentId":1659,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/get-asset-path-from-route.js","layer":null},"startTime":1736836812841,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":20440,"timestamp":20901354,"id":1694,"parentId":1659,"tags":{"name":"/app/node_modules/next/dist/client/add-locale.js","layer":null},"startTime":1736836812841,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":21340,"timestamp":20901287,"id":1693,"parentId":1659,"tags":{"name":"/app/node_modules/next/dist/client/add-base-path.js","layer":null},"startTime":1736836812841,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":21341,"timestamp":20901753,"id":1700,"parentId":1664,"tags":{"name":"/app/node_modules/next/dist/shared/lib/i18n/normalize-locale-path.js","layer":null},"startTime":1736836812841,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":22108,"timestamp":20901625,"id":1698,"parentId":1659,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/parse-relative-url.js","layer":null},"startTime":1736836812841,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":23008,"timestamp":20901497,"id":1696,"parentId":1659,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/interpolate-as.js","layer":null},"startTime":1736836812841,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":22240,"timestamp":20902950,"id":1703,"parentId":1664,"tags":{"name":"/app/node_modules/next/dist/client/detect-domain-locale.js","layer":null},"startTime":1736836812842,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":22760,"timestamp":20903049,"id":1704,"parentId":1664,"tags":{"name":"/app/node_modules/next/dist/client/remove-locale.js","layer":null},"startTime":1736836812842,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":23926,"timestamp":20903142,"id":1705,"parentId":1664,"tags":{"name":"/app/node_modules/next/dist/client/resolve-href.js","layer":null},"startTime":1736836812843,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":24568,"timestamp":20903247,"id":1707,"parentId":1664,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/route-matcher.js","layer":null},"startTime":1736836812843,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":30642,"timestamp":20901424,"id":1695,"parentId":1659,"tags":{"name":"/app/node_modules/next/dist/client/route-loader.js","layer":null},"startTime":1736836812841,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":29125,"timestamp":20903477,"id":1710,"parentId":1664,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/parse-path.js","layer":null},"startTime":1736836812843,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":29743,"timestamp":20903625,"id":1712,"parentId":1664,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/format-next-pathname-info.js","layer":null},"startTime":1736836812843,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":30339,"timestamp":20903704,"id":1713,"parentId":1664,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/compare-states.js","layer":null},"startTime":1736836812843,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":30606,"timestamp":20903938,"id":1715,"parentId":1664,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/is-bot.js","layer":null},"startTime":1736836812843,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":31217,"timestamp":20903857,"id":1714,"parentId":1664,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/is-local-url.js","layer":null},"startTime":1736836812843,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":33305,"timestamp":20903408,"id":1709,"parentId":1664,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/format-url.js","layer":null},"startTime":1736836812843,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":34124,"timestamp":20903565,"id":1711,"parentId":1664,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/get-next-pathname-info.js","layer":null},"startTime":1736836812843,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":36759,"timestamp":20903322,"id":1708,"parentId":1664,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/route-regex.js","layer":null},"startTime":1736836812843,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":16855,"timestamp":20946288,"id":1717,"parentId":1664,"tags":{"name":"/app/node_modules/next/dist/lib/constants.js","layer":null},"startTime":1736836812886,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":18174,"timestamp":20946551,"id":1723,"parentId":1673,"tags":{"name":"/app/node_modules/react/cjs/react-jsx-runtime.production.min.js","layer":null},"startTime":1736836812886,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":19259,"timestamp":20946641,"id":1725,"parentId":1678,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/index.js","layer":null},"startTime":1736836812886,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":20661,"timestamp":20946371,"id":1719,"parentId":1672,"tags":{"name":"/app/node_modules/next/dist/client/request-idle-callback.js","layer":null},"startTime":1736836812886,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":21772,"timestamp":20946175,"id":1716,"parentId":1664,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/omit.js","layer":null},"startTime":1736836812886,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":22141,"timestamp":20946505,"id":1722,"parentId":1670,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/path-has-prefix.js","layer":null},"startTime":1736836812886,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":22966,"timestamp":20946463,"id":1721,"parentId":1679,"tags":{"name":"/app/node_modules/next/dist/client/react-client-callbacks/report-global-error.js","layer":null},"startTime":1736836812886,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":23578,"timestamp":20946419,"id":1720,"parentId":1671,"tags":{"name":"/app/node_modules/next/dist/shared/lib/image-config.js","layer":null},"startTime":1736836812886,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":25769,"timestamp":20946329,"id":1718,"parentId":1664,"tags":{"name":"/app/node_modules/next/dist/shared/lib/bloom-filter.js","layer":null},"startTime":1736836812886,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":25811,"timestamp":20946671,"id":1726,"parentId":1678,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/as-path-to-search-params.js","layer":null},"startTime":1736836812886,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":26551,"timestamp":20946579,"id":1724,"parentId":1679,"tags":{"name":"/app/node_modules/next/dist/shared/lib/lazy-dynamic/bailout-to-csr.js","layer":null},"startTime":1736836812886,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":27481,"timestamp":20946713,"id":1727,"parentId":1682,"tags":{"name":"/app/node_modules/next/dist/client/components/redirect-error.js","layer":null},"startTime":1736836812886,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":28517,"timestamp":20946751,"id":1728,"parentId":1679,"tags":{"name":"/app/node_modules/next/dist/client/components/react-dev-overlay/internal/helpers/stitched-error.js","layer":null},"startTime":1736836812886,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":29439,"timestamp":20987671,"id":1775,"parentId":1689,"tags":{"name":"/app/node_modules/react/cjs/react.production.min.js","layer":null},"startTime":1736836812927,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":33702,"timestamp":20986627,"id":1735,"parentId":1594,"tags":{"name":"/app/pages/index.tsx","layer":null},"startTime":1736836812926,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":34689,"timestamp":20986529,"id":1731,"parentId":1512,"tags":{"name":"/app/pages/_app.tsx","layer":null},"startTime":1736836812926,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":35563,"timestamp":20986583,"id":1733,"parentId":1584,"tags":{"name":"/app/pages/contact.tsx","layer":null},"startTime":1736836812926,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":36335,"timestamp":20986687,"id":1738,"parentId":1602,"tags":{"name":"/app/pages/privacy.tsx","layer":null},"startTime":1736836812926,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":37352,"timestamp":20986553,"id":1732,"parentId":1514,"tags":{"name":"/app/pages/about.tsx","layer":null},"startTime":1736836812926,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":38404,"timestamp":20986380,"id":1729,"parentId":1508,"tags":{"name":"/app/pages/404.tsx","layer":null},"startTime":1736836812926,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":38893,"timestamp":20986718,"id":1739,"parentId":1604,"tags":{"name":"/app/pages/redirect.tsx","layer":null},"startTime":1736836812926,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":39934,"timestamp":20986494,"id":1730,"parentId":1510,"tags":{"name":"/app/pages/500.tsx","layer":null},"startTime":1736836812926,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":40508,"timestamp":20986668,"id":1737,"parentId":1600,"tags":{"name":"/app/pages/login.tsx","layer":null},"startTime":1736836812926,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":41526,"timestamp":20986609,"id":1734,"parentId":1586,"tags":{"name":"/app/pages/create-account.tsx","layer":null},"startTime":1736836812926,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":42410,"timestamp":20986737,"id":1740,"parentId":1606,"tags":{"name":"/app/pages/send-password-reset-link.tsx","layer":null},"startTime":1736836812926,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":42437,"timestamp":20987170,"id":1756,"parentId":1632,"tags":{"name":"/app/pages/su/servers.tsx","layer":null},"startTime":1736836812927,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":42822,"timestamp":20987292,"id":1762,"parentId":1614,"tags":{"name":"/app/pages/su/docs/create-page.tsx","layer":null},"startTime":1736836812927,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":43527,"timestamp":20987221,"id":1758,"parentId":1560,"tags":{"name":"/app/pages/admin/[user_id]/index.tsx","layer":null},"startTime":1736836812927,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":44238,"timestamp":20987237,"id":1759,"parentId":1566,"tags":{"name":"/app/pages/admin/[user_id]/schema.tsx","layer":null},"startTime":1736836812927,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":44480,"timestamp":20987514,"id":1771,"parentId":1558,"tags":{"name":"/app/pages/admin/[user_id]/databases/index.tsx","layer":null},"startTime":1736836812927,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":45190,"timestamp":20987391,"id":1768,"parentId":1516,"tags":{"name":"/app/pages/admin/[user_id]/api-keys/index.tsx","layer":null},"startTime":1736836812927,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":45647,"timestamp":20987473,"id":1770,"parentId":1556,"tags":{"name":"/app/pages/admin/[user_id]/databases/add-database.tsx","layer":null},"startTime":1736836812927,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":48939,"timestamp":20986646,"id":1736,"parentId":1598,"tags":{"name":"/app/pages/logout.tsx","layer":null},"startTime":1736836812926,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":48705,"timestamp":20987717,"id":1776,"parentId":1572,"tags":{"name":"/app/pages/admin/[user_id]/users/add-user.tsx","layer":null},"startTime":1736836812927,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":49569,"timestamp":20987375,"id":1767,"parentId":1640,"tags":{"name":"/app/pages/su/users/new.tsx","layer":null},"startTime":1736836812927,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":51740,"timestamp":20986756,"id":1741,"parentId":1610,"tags":{"name":"/app/pages/reset-password.tsx","layer":null},"startTime":1736836812926,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":52313,"timestamp":20987203,"id":1757,"parentId":1634,"tags":{"name":"/app/pages/su/login.tsx","layer":null},"startTime":1736836812927,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":53123,"timestamp":20987550,"id":1772,"parentId":1562,"tags":{"name":"/app/pages/admin/[user_id]/media/[...folder].tsx","layer":null},"startTime":1736836812927,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":53446,"timestamp":20988107,"id":1786,"parentId":1576,"tags":{"name":"/app/pages/admin/[user_id]/users/databases/index.tsx","layer":null},"startTime":1736836812927,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":53808,"timestamp":20988463,"id":1792,"parentId":1570,"tags":{"name":"/app/pages/admin/[user_id]/users/databases/[database]/[user].tsx","layer":null},"startTime":1736836812928,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":55552,"timestamp":20987337,"id":1765,"parentId":1636,"tags":{"name":"/app/pages/su/users/[single].tsx","layer":null},"startTime":1736836812927,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":56097,"timestamp":20987631,"id":1774,"parentId":1687,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/app-paths.js","layer":null},"startTime":1736836812927,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":56308,"timestamp":20987896,"id":1780,"parentId":1624,"tags":{"name":"/app/pages/su/docs/pages/index.tsx","layer":null},"startTime":1736836812927,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":57287,"timestamp":20987323,"id":1764,"parentId":1620,"tags":{"name":"/app/pages/su/docs/index.tsx","layer":null},"startTime":1736836812927,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":57892,"timestamp":20987137,"id":1755,"parentId":1630,"tags":{"name":"/app/pages/su/load-balancing.tsx","layer":null},"startTime":1736836812927,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":58554,"timestamp":20987254,"id":1760,"parentId":1568,"tags":{"name":"/app/pages/admin/[user_id]/settings.tsx","layer":null},"startTime":1736836812927,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":58467,"timestamp":20988267,"id":1789,"parentId":1548,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/users/add-social-logins.tsx","layer":null},"startTime":1736836812928,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":60206,"timestamp":20987434,"id":1769,"parentId":1518,"tags":{"name":"/app/pages/admin/[user_id]/connect/index.tsx","layer":null},"startTime":1736836812927,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":60779,"timestamp":20987355,"id":1766,"parentId":1638,"tags":{"name":"/app/pages/su/users/index.tsx","layer":null},"startTime":1736836812927,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":61272,"timestamp":20987306,"id":1763,"parentId":1616,"tags":{"name":"/app/pages/su/docs/edit-page.tsx","layer":null},"startTime":1736836812927,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":61916,"timestamp":20987592,"id":1773,"parentId":1564,"tags":{"name":"/app/pages/admin/[user_id]/media/index.tsx","layer":null},"startTime":1736836812927,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":62830,"timestamp":20987120,"id":1754,"parentId":1628,"tags":{"name":"/app/pages/su/index.tsx","layer":null},"startTime":1736836812927,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":63063,"timestamp":20987832,"id":1778,"parentId":1588,"tags":{"name":"/app/pages/docs/[page]/[sub-page]/index.tsx","layer":null},"startTime":1736836812927,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":63702,"timestamp":20988213,"id":1788,"parentId":1546,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/tables/index.tsx","layer":null},"startTime":1736836812928,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":64989,"timestamp":20988034,"id":1784,"parentId":1526,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/index.tsx","layer":null},"startTime":1736836812927,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":65311,"timestamp":20988709,"id":1796,"parentId":1540,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/tables/[single_table]/index.tsx","layer":null},"startTime":1736836812928,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":66336,"timestamp":20988396,"id":1791,"parentId":1554,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/users/add-user.tsx","layer":null},"startTime":1736836812928,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":67580,"timestamp":20988154,"id":1787,"parentId":1542,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/tables/add-table.tsx","layer":null},"startTime":1736836812928,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":68639,"timestamp":20987776,"id":1777,"parentId":1578,"tags":{"name":"/app/pages/admin/[user_id]/users/index.tsx","layer":null},"startTime":1736836812927,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":68955,"timestamp":20987987,"id":1783,"parentId":1524,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/schema.tsx","layer":null},"startTime":1736836812927,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":70713,"timestamp":20986839,"id":1746,"parentId":1590,"tags":{"name":"/app/pages/docs/index.tsx","layer":null},"startTime":1736836812926,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":70086,"timestamp":20987873,"id":1779,"parentId":1618,"tags":{"name":"/app/pages/su/docs/pages/[id].tsx","layer":null},"startTime":1736836812927,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":70318,"timestamp":20988331,"id":1790,"parentId":1552,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/users/index.tsx","layer":null},"startTime":1736836812928,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":72081,"timestamp":20987062,"id":1752,"parentId":1622,"tags":{"name":"/app/pages/su/envar.tsx","layer":null},"startTime":1736836812926,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":71286,"timestamp":20988581,"id":1794,"parentId":1530,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/tables/[single_table]/edit-table.tsx","layer":null},"startTime":1736836812928,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":72390,"timestamp":20988067,"id":1785,"parentId":1528,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/shell.tsx","layer":null},"startTime":1736836812927,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":73011,"timestamp":20987949,"id":1782,"parentId":1522,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/connect.tsx","layer":null},"startTime":1736836812927,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":74660,"timestamp":20986802,"id":1744,"parentId":1580,"tags":{"name":"/app/pages/admin/index.tsx","layer":null},"startTime":1736836812926,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":73472,"timestamp":20988531,"id":1793,"parentId":1574,"tags":{"name":"/app/pages/admin/[user_id]/users/databases/[database]/index.tsx","layer":null},"startTime":1736836812928,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":75510,"timestamp":20986901,"id":1749,"parentId":1612,"tags":{"name":"/app/pages/su/backups.tsx","layer":null},"startTime":1736836812926,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":76091,"timestamp":20986818,"id":1745,"parentId":1582,"tags":{"name":"/app/pages/blog/index.tsx","layer":null},"startTime":1736836812926,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":75537,"timestamp":20987913,"id":1781,"parentId":1520,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/edit-database.tsx","layer":null},"startTime":1736836812927,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":77233,"timestamp":20986773,"id":1742,"parentId":1642,"tags":{"name":"/app/pages/terms.tsx","layer":null},"startTime":1736836812926,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":77280,"timestamp":20987099,"id":1753,"parentId":1626,"tags":{"name":"/app/pages/su/error-logs.tsx","layer":null},"startTime":1736836812926,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":76434,"timestamp":20988656,"id":1795,"parentId":1536,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/tables/[single_table]/fields.tsx","layer":null},"startTime":1736836812928,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":79251,"timestamp":20986855,"id":1747,"parentId":1596,"tags":{"name":"/app/pages/email-verification/index.tsx","layer":null},"startTime":1736836812926,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":79632,"timestamp":20987274,"id":1761,"parentId":1592,"tags":{"name":"/app/pages/docs/[page]/index.tsx","layer":null},"startTime":1736836812927,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":80540,"timestamp":20986884,"id":1748,"parentId":1608,"tags":{"name":"/app/pages/su/console.tsx","layer":null},"startTime":1736836812926,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":81899,"timestamp":20986788,"id":1743,"parentId":1644,"tags":{"name":"/app/pages/unsubscribe.tsx","layer":null},"startTime":1736836812926,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":82916,"timestamp":20986919,"id":1750,"parentId":1682,"tags":{"name":"/app/node_modules/next/dist/client/components/http-access-fallback/http-access-fallback.js","layer":null},"startTime":1736836812926,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":84105,"timestamp":20986999,"id":1751,"parentId":1681,"tags":{"name":"/app/node_modules/next/dist/client/components/react-dev-overlay/pages/websocket.js","layer":null},"startTime":1736836812926,"traceId":"89448a764ba2dcee"}] +[{"name":"build-module-js","duration":10057,"timestamp":21209493,"id":1798,"parentId":1691,"tags":{"name":"/app/node_modules/next/dist/shared/lib/modern-browserslist-target.js","layer":null},"startTime":1736836813149,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":10778,"timestamp":21209345,"id":1797,"parentId":1695,"tags":{"name":"/app/node_modules/next/dist/shared/lib/encode-uri-path.js","layer":null},"startTime":1736836813149,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":2623,"timestamp":21220683,"id":1799,"parentId":1692,"tags":{"name":"/app/node_modules/next/dist/shared/lib/page-path/normalize-path-sep.js","layer":null},"startTime":1736836813160,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":3537,"timestamp":21221031,"id":1803,"parentId":1708,"tags":{"name":"/app/node_modules/next/dist/shared/lib/escape-regexp.js","layer":null},"startTime":1736836813160,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":4113,"timestamp":21221083,"id":1804,"parentId":1712,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/add-path-suffix.js","layer":null},"startTime":1736836813160,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":4767,"timestamp":21220930,"id":1801,"parentId":1693,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/add-path-prefix.js","layer":null},"startTime":1736836813160,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":5992,"timestamp":21220850,"id":1800,"parentId":1694,"tags":{"name":"/app/node_modules/next/dist/client/normalize-trailing-slash.js","layer":null},"startTime":1736836813160,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":6158,"timestamp":21221136,"id":1805,"parentId":1712,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/add-locale.js","layer":null},"startTime":1736836813161,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":7065,"timestamp":21220990,"id":1802,"parentId":1695,"tags":{"name":"/app/node_modules/next/dist/client/trusted-types.js","layer":null},"startTime":1736836813160,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":97044,"timestamp":21229783,"id":1807,"parentId":1702,"tags":{"name":"/app/node_modules/react-dom/cjs/react-dom.production.min.js","layer":null},"startTime":1736836813169,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":97795,"timestamp":21230034,"id":1813,"parentId":1647,"tags":{"name":"/app/node_modules/@swc/helpers/esm/_interop_require_default.js","layer":null},"startTime":1736836813169,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":98199,"timestamp":21230852,"id":1814,"parentId":1650,"tags":{"name":"/app/node_modules/@swc/helpers/esm/_interop_require_wildcard.js","layer":null},"startTime":1736836813170,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":98896,"timestamp":21230886,"id":1815,"parentId":1652,"tags":{"name":"/app/node_modules/next/dist/build/polyfills/process.js","layer":null},"startTime":1736836813170,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":100775,"timestamp":21229825,"id":1808,"parentId":1544,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/users/[user]/change-password.tsx","layer":null},"startTime":1736836813169,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":101621,"timestamp":21229967,"id":1811,"parentId":1534,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/add-entry.tsx","layer":null},"startTime":1736836813169,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":102451,"timestamp":21229869,"id":1809,"parentId":1550,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/users/[user]/index.tsx","layer":null},"startTime":1736836813169,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":103226,"timestamp":21229999,"id":1812,"parentId":1538,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/index.tsx","layer":null},"startTime":1736836813169,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":104350,"timestamp":21229930,"id":1810,"parentId":1532,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/[single_entry].tsx","layer":null},"startTime":1736836813169,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":105547,"timestamp":21229695,"id":1806,"parentId":1711,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/remove-path-prefix.js","layer":null},"startTime":1736836813169,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":1166,"timestamp":21361757,"id":1817,"parentId":1731,"tags":{"name":"/app/node_modules/next/script.js","layer":null},"startTime":1736836813301,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":11383,"timestamp":21361855,"id":1820,"parentId":1731,"tags":{"name":"/app/node_modules/next/head.js","layer":null},"startTime":1736836813301,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":76413,"timestamp":21361838,"id":1819,"parentId":1741,"tags":{"name":"/app/node_modules/lodash/lodash.js","layer":null},"startTime":1736836813301,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":76633,"timestamp":21362167,"id":1833,"parentId":1730,"tags":{"name":"/app/functions/frontend/fetchApi.ts","layer":null},"startTime":1736836813302,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":77182,"timestamp":21361987,"id":1826,"parentId":1774,"tags":{"name":"/app/node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","layer":null},"startTime":1736836813301,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":77773,"timestamp":21361870,"id":1821,"parentId":1735,"tags":{"name":"/app/layouts/GeneralLayout.tsx","layer":null},"startTime":1736836813301,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":77848,"timestamp":21362094,"id":1830,"parentId":1740,"tags":{"name":"/app/components/general/InfoBlock.tsx","layer":null},"startTime":1736836813301,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":78147,"timestamp":21362064,"id":1829,"parentId":1740,"tags":{"name":"/app/components/general/FormSuccessBlock.tsx","layer":null},"startTime":1736836813301,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":78553,"timestamp":21362045,"id":1828,"parentId":1740,"tags":{"name":"/app/components/general/LoadingBlock.tsx","layer":null},"startTime":1736836813301,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":79297,"timestamp":21361952,"id":1825,"parentId":1774,"tags":{"name":"/app/node_modules/next/dist/shared/lib/segment.js","layer":null},"startTime":1736836813301,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":80112,"timestamp":21361935,"id":1824,"parentId":1735,"tags":{"name":"/app/components/general/PageHeadTags.tsx","layer":null},"startTime":1736836813301,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":80916,"timestamp":21361914,"id":1823,"parentId":1756,"tags":{"name":"/app/layouts/SuAdminLayout.tsx","layer":null},"startTime":1736836813301,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":81310,"timestamp":21362027,"id":1827,"parentId":1737,"tags":{"name":"/app/components/general/Logo.tsx","layer":null},"startTime":1736836813301,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":81687,"timestamp":21362148,"id":1832,"parentId":1735,"tags":{"name":"/app/functions/frontend/clientAuthUser.ts","layer":null},"startTime":1736836813302,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":83032,"timestamp":21361888,"id":1822,"parentId":1731,"tags":{"name":"/app/components/ErrorBoundary.tsx","layer":null},"startTime":1736836813301,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":83015,"timestamp":21362367,"id":1840,"parentId":1738,"tags":{"name":"/app/components/pages/privacy/PrivacyHero.tsx","layer":null},"startTime":1736836813302,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":84687,"timestamp":21362113,"id":1831,"parentId":1758,"tags":{"name":"/app/layouts/AdminLayout.tsx","layer":null},"startTime":1736836813301,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":85001,"timestamp":21362312,"id":1838,"parentId":1733,"tags":{"name":"/app/components/pages/contact/ContactHero.tsx","layer":null},"startTime":1736836813302,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":85503,"timestamp":21362179,"id":1834,"parentId":1735,"tags":{"name":"/app/components/pages/homepage/BriefIntroSection.tsx","layer":null},"startTime":1736836813302,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":85856,"timestamp":21362281,"id":1837,"parentId":1735,"tags":{"name":"/app/components/pages/homepage/FeaturesSummarySection.tsx","layer":null},"startTime":1736836813302,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":86363,"timestamp":21362225,"id":1835,"parentId":1735,"tags":{"name":"/app/components/pages/homepage/FooterCta.tsx","layer":null},"startTime":1736836813302,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":86878,"timestamp":21362266,"id":1836,"parentId":1735,"tags":{"name":"/app/components/pages/homepage/Hero2.tsx","layer":null},"startTime":1736836813302,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":87616,"timestamp":21362338,"id":1839,"parentId":1733,"tags":{"name":"/app/components/pages/contact/ContactForm.tsx","layer":null},"startTime":1736836813302,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":91176,"timestamp":21361639,"id":1816,"parentId":1725,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/sorted-routes.js","layer":null},"startTime":1736836813301,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":91935,"timestamp":21361776,"id":1818,"parentId":1727,"tags":{"name":"/app/node_modules/next/dist/client/components/redirect-status-code.js","layer":null},"startTime":1736836813301,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":10040,"timestamp":21496617,"id":1856,"parentId":1736,"tags":{"name":"/app/functions/frontend/clearCaches.ts","layer":null},"startTime":1736836813436,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":15205,"timestamp":21491871,"id":1845,"parentId":1759,"tags":{"name":"/app/components/general/VerificationBanner.tsx","layer":null},"startTime":1736836813431,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":10847,"timestamp":21496556,"id":1853,"parentId":1737,"tags":{"name":"/app/components/general/LoadingScreen.tsx","layer":null},"startTime":1736836813436,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":15956,"timestamp":21491796,"id":1842,"parentId":1732,"tags":{"name":"/app/components/pages/about/Hero.tsx","layer":null},"startTime":1736836813431,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":11686,"timestamp":21496633,"id":1857,"parentId":1770,"tags":{"name":"/app/components/admin/databases/AddDatabaseContent.tsx","layer":null},"startTime":1736836813436,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":12156,"timestamp":21496602,"id":1855,"parentId":1756,"tags":{"name":"/app/components/su/servers/index.tsx","layer":null},"startTime":1736836813436,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":17329,"timestamp":21491831,"id":1844,"parentId":1734,"tags":{"name":"/app/components/pages/create-account/Hero.tsx","layer":null},"startTime":1736836813431,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":13142,"timestamp":21496569,"id":1854,"parentId":1771,"tags":{"name":"/app/components/admin/databases/DatabasesContent.tsx","layer":null},"startTime":1736836813436,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":13813,"timestamp":21496488,"id":1851,"parentId":1758,"tags":{"name":"/app/components/admin/databases/DeleteDatabaseConfirmationPopup.tsx","layer":null},"startTime":1736836813436,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":19388,"timestamp":21491816,"id":1843,"parentId":1737,"tags":{"name":"/app/components/pages/login/LoginForm.tsx","layer":null},"startTime":1736836813431,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":20256,"timestamp":21491906,"id":1846,"parentId":1759,"tags":{"name":"/app/components/general/Breadcrumbs.tsx","layer":null},"startTime":1736836813431,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":16197,"timestamp":21496450,"id":1850,"parentId":1758,"tags":{"name":"/app/components/admin/dashboard/DashboardContent.tsx","layer":null},"startTime":1736836813436,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":21912,"timestamp":21491684,"id":1841,"parentId":1738,"tags":{"name":"/app/components/pages/privacy/PrivacyBody.tsx","layer":null},"startTime":1736836813431,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":18296,"timestamp":21496528,"id":1852,"parentId":1759,"tags":{"name":"/app/components/admin/databases/UserSchemaContent.tsx","layer":null},"startTime":1736836813436,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":20482,"timestamp":21496383,"id":1849,"parentId":1762,"tags":{"name":"/app/components/su/docs/CreatePageContent.tsx","layer":null},"startTime":1736836813436,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":981600,"timestamp":20562244,"id":1485,"parentId":1433,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fredirect.tsx&page=%2Fredirect!"},"startTime":1736836812502,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":12393,"timestamp":21545266,"id":1862,"parentId":1768,"tags":{"name":"/app/components/admin/api-keys/TargetApiKeyPreviewPopup.tsx","layer":null},"startTime":1736836813485,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":13060,"timestamp":21545212,"id":1860,"parentId":1767,"tags":{"name":"/app/components/su/SuNewUserContent.tsx","layer":null},"startTime":1736836813485,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":13879,"timestamp":21545057,"id":1858,"parentId":1770,"tags":{"name":"/app/components/admin/databases/UserMediaPopup.tsx","layer":null},"startTime":1736836813484,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":14256,"timestamp":21545234,"id":1861,"parentId":1768,"tags":{"name":"/app/components/admin/api-keys/ApiKeysContent.tsx","layer":null},"startTime":1736836813485,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":14760,"timestamp":21545321,"id":1864,"parentId":1772,"tags":{"name":"/app/components/general/UploadImageComponent.tsx","layer":null},"startTime":1736836813485,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":16228,"timestamp":21545292,"id":1863,"parentId":1768,"tags":{"name":"/app/components/admin/api-keys/AddNewApiKeyPopup.tsx","layer":null},"startTime":1736836813485,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":19723,"timestamp":21545176,"id":1859,"parentId":1776,"tags":{"name":"/app/components/admin/users/AddNewUserContent.tsx","layer":null},"startTime":1736836813485,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":10645,"timestamp":21577762,"id":1868,"parentId":1772,"tags":{"name":"/app/components/general/UploadFileComponent.tsx","layer":null},"startTime":1736836813517,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":11603,"timestamp":21577788,"id":1869,"parentId":1764,"tags":{"name":"/app/components/su/docs/SuDocsPageListContent.tsx","layer":null},"startTime":1736836813517,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":12472,"timestamp":21577732,"id":1867,"parentId":1765,"tags":{"name":"/app/components/su/SuSingleUserContent.tsx","layer":null},"startTime":1736836813517,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":13321,"timestamp":21577844,"id":1871,"parentId":1772,"tags":{"name":"/app/components/admin/media/NewFolderPopup.tsx","layer":null},"startTime":1736836813517,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":14946,"timestamp":21577600,"id":1865,"parentId":1772,"tags":{"name":"/app/components/admin/media/NewMediaPopup.tsx","layer":null},"startTime":1736836813517,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":15697,"timestamp":21577818,"id":1870,"parentId":1760,"tags":{"name":"/app/components/admin/settings/SettingsContent.tsx","layer":null},"startTime":1736836813517,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":17881,"timestamp":21577696,"id":1866,"parentId":1772,"tags":{"name":"/app/components/admin/media/TargetMediaPreviewPopup.tsx","layer":null},"startTime":1736836813517,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":9189,"timestamp":21607794,"id":1878,"parentId":1751,"tags":{"name":"/app/node_modules/next/dist/server/dev/hot-reloader-types.js","layer":null},"startTime":1736836813547,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":10072,"timestamp":21607875,"id":1881,"parentId":1755,"tags":{"name":"/app/components/su/load-balancing/index.tsx","layer":null},"startTime":1736836813547,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":11222,"timestamp":21607541,"id":1875,"parentId":1786,"tags":{"name":"/app/components/admin/users/AllDatabasesUsersContent.tsx","layer":null},"startTime":1736836813547,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":11698,"timestamp":21607850,"id":1880,"parentId":1772,"tags":{"name":"/app/components/general/UploadVideoComponent.tsx","layer":null},"startTime":1736836813547,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":13154,"timestamp":21607467,"id":1873,"parentId":1772,"tags":{"name":"/app/components/admin/media/ChooseMediaTypePopup.tsx","layer":null},"startTime":1736836813547,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":14118,"timestamp":21607363,"id":1872,"parentId":1772,"tags":{"name":"/app/components/admin/media/MediaFolderContent.tsx","layer":null},"startTime":1736836813547,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":14480,"timestamp":21607960,"id":1884,"parentId":1754,"tags":{"name":"/app/components/su/SuDashboardContent.tsx","layer":null},"startTime":1736836813547,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":16602,"timestamp":21607898,"id":1882,"parentId":1789,"tags":{"name":"/app/components/general/ExtraContentDatabase.tsx","layer":null},"startTime":1736836813547,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":18990,"timestamp":21607496,"id":1874,"parentId":1786,"tags":{"name":"/app/components/admin/users/TargetUserPreviewPopup.tsx","layer":null},"startTime":1736836813547,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":20761,"timestamp":21607820,"id":1879,"parentId":1792,"tags":{"name":"/app/components/admin/users/SingleDatabaseSingleUserContent.tsx","layer":null},"startTime":1736836813547,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":22869,"timestamp":21607932,"id":1883,"parentId":1789,"tags":{"name":"/app/components/admin/users/SocialLoginsContent.tsx","layer":null},"startTime":1736836813547,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":23675,"timestamp":21607736,"id":1877,"parentId":1751,"tags":{"name":"/app/node_modules/next/dist/client/components/react-dev-overlay/internal/helpers/get-socket-url.js","layer":null},"startTime":1736836813547,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":7425,"timestamp":21653683,"id":1895,"parentId":1807,"tags":{"name":"/app/node_modules/scheduler/index.js","layer":null},"startTime":1736836813593,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":8098,"timestamp":21653509,"id":1888,"parentId":1769,"tags":{"name":"/app/components/admin/connect/NewMariadbUserPopup.tsx","layer":null},"startTime":1736836813593,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":8557,"timestamp":21653438,"id":1886,"parentId":1769,"tags":{"name":"/app/components/admin/connect/ConnectContent.tsx","layer":null},"startTime":1736836813593,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":9002,"timestamp":21653481,"id":1887,"parentId":1769,"tags":{"name":"/app/components/admin/connect/EditMariadbUserPopup.tsx","layer":null},"startTime":1736836813593,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":9204,"timestamp":21653580,"id":1891,"parentId":1778,"tags":{"name":"/app/components/pages/docs/DocsGenereicHero.tsx","layer":null},"startTime":1736836813593,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":9817,"timestamp":21653315,"id":1885,"parentId":1766,"tags":{"name":"/app/components/su/SuUsersContent.tsx","layer":null},"startTime":1736836813593,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":9983,"timestamp":21653633,"id":1893,"parentId":1784,"tags":{"name":"/app/components/admin/databases/DeleteTableConfirmationPopup.tsx","layer":null},"startTime":1736836813593,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":10723,"timestamp":21653541,"id":1889,"parentId":1773,"tags":{"name":"/app/components/admin/media/MediaContent.tsx","layer":null},"startTime":1736836813593,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":11376,"timestamp":21653569,"id":1890,"parentId":1778,"tags":{"name":"/app/components/pages/docs/DocsAside.tsx","layer":null},"startTime":1736836813593,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":12444,"timestamp":21653657,"id":1894,"parentId":1788,"tags":{"name":"/app/components/admin/databases/TablesContent.tsx","layer":null},"startTime":1736836813593,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":14035,"timestamp":21653608,"id":1892,"parentId":1784,"tags":{"name":"/app/components/admin/databases/SingleDatabasesContent.tsx","layer":null},"startTime":1736836813593,"traceId":"89448a764ba2dcee"},{"name":"build-module-json","duration":578,"timestamp":21690000,"id":1900,"parentId":1787,"tags":{"name":"/app/package-shared/data/defaultFields.json","layer":null},"startTime":1736836813629,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":8787,"timestamp":21689975,"id":1899,"parentId":1787,"tags":{"name":"/app/components/admin/databases/EditFieldPopup.tsx","layer":null},"startTime":1736836813629,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":9501,"timestamp":21689948,"id":1898,"parentId":1787,"tags":{"name":"/app/components/admin/databases/AddTableContent.tsx","layer":null},"startTime":1736836813629,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":10847,"timestamp":21689791,"id":1896,"parentId":1777,"tags":{"name":"/app/components/admin/users/UsersContent.tsx","layer":null},"startTime":1736836813629,"traceId":"89448a764ba2dcee"}] +[{"name":"build-module-ts","duration":12120,"timestamp":21690022,"id":1901,"parentId":1796,"tags":{"name":"/app/functions/frontend/updateTableAfterFieldsUpdateFunctionExt.ts","layer":null},"startTime":1736836813629,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":13554,"timestamp":21690059,"id":1902,"parentId":1791,"tags":{"name":"/app/components/admin/users/DbAddNewUserContent.tsx","layer":null},"startTime":1736836813629,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":14971,"timestamp":21689916,"id":1897,"parentId":1783,"tags":{"name":"/app/components/admin/databases/DatabaseSchemaContent.tsx","layer":null},"startTime":1736836813629,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":16456,"timestamp":21690083,"id":1903,"parentId":1796,"tags":{"name":"/app/components/admin/databases/SingleTableContent.tsx","layer":null},"startTime":1736836813629,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":10682,"timestamp":21713526,"id":1905,"parentId":1746,"tags":{"name":"/app/components/pages/docs/DocsHomeHero.tsx","layer":null},"startTime":1736836813653,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":11121,"timestamp":21713559,"id":1906,"parentId":1746,"tags":{"name":"/app/components/pages/docs/DocsHomeLinks.tsx","layer":null},"startTime":1736836813653,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":11809,"timestamp":21713438,"id":1904,"parentId":1796,"tags":{"name":"/app/layouts/components/GeneralLayout/ScrollToTopButton.tsx","layer":null},"startTime":1736836813653,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":5666,"timestamp":21728203,"id":1912,"parentId":1815,"tags":{"name":"/app/node_modules/next/dist/compiled/process/browser.js","layer":null},"startTime":1736836813668,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":6427,"timestamp":21727950,"id":1907,"parentId":1779,"tags":{"name":"/app/components/su/docs/SuSingleDocPageContent.tsx","layer":null},"startTime":1736836813667,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":6491,"timestamp":21728363,"id":1916,"parentId":1742,"tags":{"name":"/app/components/pages/terms/TermsHero.tsx","layer":null},"startTime":1736836813668,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":7508,"timestamp":21728112,"id":1909,"parentId":1752,"tags":{"name":"/app/components/su/SuEnvContent.tsx","layer":null},"startTime":1736836813667,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":8212,"timestamp":21728326,"id":1914,"parentId":1749,"tags":{"name":"/app/components/su/SuBackupsContent.tsx","layer":null},"startTime":1736836813668,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":9159,"timestamp":21728132,"id":1910,"parentId":1790,"tags":{"name":"/app/components/admin/users/DbUsersContent.tsx","layer":null},"startTime":1736836813668,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":9905,"timestamp":21728251,"id":1913,"parentId":1782,"tags":{"name":"/app/components/admin/databases/connect/DatabaseConnectContent.tsx","layer":null},"startTime":1736836813668,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":10679,"timestamp":21728346,"id":1915,"parentId":1753,"tags":{"name":"/app/components/su/SuErrorLogsContent.tsx","layer":null},"startTime":1736836813668,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":11760,"timestamp":21728166,"id":1911,"parentId":1794,"tags":{"name":"/app/components/admin/databases/EditTableContent.tsx","layer":null},"startTime":1736836813668,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":13153,"timestamp":21728054,"id":1908,"parentId":1785,"tags":{"name":"/app/components/admin/databases/DatabaseShellContent.tsx","layer":null},"startTime":1736836813667,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":13841,"timestamp":21728379,"id":1917,"parentId":1742,"tags":{"name":"/app/components/pages/terms/TermsBody.tsx","layer":null},"startTime":1736836813668,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":1186591,"timestamp":20561962,"id":1435,"parentId":1433,"tags":{"request":"next-client-pages-loader?absolutePagePath=next%2Fdist%2Fpages%2F_error&page=%2F_error!"},"startTime":1736836812501,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":3887,"timestamp":21756933,"id":1928,"parentId":1830,"tags":{"name":"__barrel_optimize__?names=Info!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736836813696,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":5158,"timestamp":21756960,"id":1929,"parentId":1827,"tags":{"name":"__barrel_optimize__?names=Menu!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736836813696,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":6583,"timestamp":21756982,"id":1930,"parentId":1837,"tags":{"name":"__barrel_optimize__?names=CopyCheck,EarthLock,FileKey2,FolderOutput,Sheet,SquareGanttChart!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736836813696,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":7592,"timestamp":21757004,"id":1931,"parentId":1835,"tags":{"name":"__barrel_optimize__?names=BookText!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736836813696,"traceId":"89448a764ba2dcee"},{"name":"postcss-process","duration":71802,"timestamp":21779277,"id":1958,"parentId":1956,"tags":{},"startTime":1736836813719,"traceId":"89448a764ba2dcee"},{"name":"postcss-process","duration":60155,"timestamp":21790938,"id":1959,"parentId":1957,"tags":{},"startTime":1736836813730,"traceId":"89448a764ba2dcee"},{"name":"postcss-loader","duration":72495,"timestamp":21778628,"id":1956,"parentId":1949,"tags":{},"startTime":1736836813718,"traceId":"89448a764ba2dcee"},{"name":"postcss-loader","duration":72392,"timestamp":21778733,"id":1957,"parentId":1950,"tags":{},"startTime":1736836813718,"traceId":"89448a764ba2dcee"},{"name":"css-loader","duration":14986,"timestamp":21851363,"id":1960,"parentId":1949,"tags":{"astUsed":"true"},"startTime":1736836813791,"traceId":"89448a764ba2dcee"},{"name":"css-loader","duration":14908,"timestamp":21851452,"id":1961,"parentId":1950,"tags":{"astUsed":"true"},"startTime":1736836813791,"traceId":"89448a764ba2dcee"},{"name":"build-module-css","duration":89865,"timestamp":21777795,"id":1949,"parentId":1847,"tags":{"name":"/app/styles/less.css.webpack[javascript/auto]!=!/app/node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[7].oneOf[12].use[1]!/app/node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[7].oneOf[12].use[2]!/app/styles/less.css","layer":null},"startTime":1736836813717,"traceId":"89448a764ba2dcee"},{"name":"build-module-css","duration":91265,"timestamp":21777830,"id":1950,"parentId":1848,"tags":{"name":"/app/styles/tailwind.css.webpack[javascript/auto]!=!/app/node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[7].oneOf[12].use[1]!/app/node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[7].oneOf[12].use[2]!/app/styles/tailwind.css","layer":null},"startTime":1736836813717,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":122569,"timestamp":21756651,"id":1918,"parentId":1745,"tags":{"name":"/app/components/pages/blog/BlogHero.tsx","layer":null},"startTime":1736836813696,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":123126,"timestamp":21756748,"id":1920,"parentId":1781,"tags":{"name":"/app/components/admin/databases/EditDatabaseContent.tsx","layer":null},"startTime":1736836813696,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":123469,"timestamp":21757049,"id":1933,"parentId":1821,"tags":{"name":"/app/functions/frontend/updateNavLinks.ts","layer":null},"startTime":1736836813696,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":124402,"timestamp":21756788,"id":1921,"parentId":1793,"tags":{"name":"/app/components/admin/users/SingleDatabaseUsersContent.tsx","layer":null},"startTime":1736836813696,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":124634,"timestamp":21757097,"id":1935,"parentId":1821,"tags":{"name":"/app/layouts/components/GeneralLayout/Footer.tsx","layer":null},"startTime":1736836813696,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":125787,"timestamp":21756866,"id":1925,"parentId":1811,"tags":{"name":"/app/components/admin/databases/AddTableEntryContent.tsx","layer":null},"startTime":1736836813696,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":127114,"timestamp":21756713,"id":1919,"parentId":1795,"tags":{"name":"/app/components/admin/databases/TableFieldsContent.tsx","layer":null},"startTime":1736836813696,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":127490,"timestamp":21757025,"id":1932,"parentId":1831,"tags":{"name":"/app/components/general/DiskUsageComponent.tsx","layer":null},"startTime":1736836813696,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":129552,"timestamp":21756907,"id":1927,"parentId":1810,"tags":{"name":"/app/components/admin/databases/SingleEntryContent.tsx","layer":null},"startTime":1736836813696,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":131028,"timestamp":21756823,"id":1923,"parentId":1808,"tags":{"name":"/app/components/admin/users/ChangeDbUserPassword.tsx","layer":null},"startTime":1736836813696,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":132240,"timestamp":21756813,"id":1922,"parentId":1748,"tags":{"name":"/app/components/su/SuConsoleContent.tsx","layer":null},"startTime":1736836813696,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":133999,"timestamp":21756887,"id":1926,"parentId":1812,"tags":{"name":"/app/components/admin/databases/TableEntriesContent.tsx","layer":null},"startTime":1736836813696,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":134969,"timestamp":21757060,"id":1934,"parentId":1821,"tags":{"name":"/app/layouts/components/GeneralLayout/Header.tsx","layer":null},"startTime":1736836813696,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":136792,"timestamp":21756845,"id":1924,"parentId":1809,"tags":{"name":"/app/components/admin/users/SingleDbUserContent.tsx","layer":null},"startTime":1736836813696,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":118145,"timestamp":21777397,"id":1942,"parentId":1833,"tags":{"name":"/app/node_modules/@moduletrace/datasquirel/dist/client/fetch/index.js","layer":null},"startTime":1736836813717,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":118654,"timestamp":21777144,"id":1936,"parentId":1821,"tags":{"name":"/app/layouts/components/GeneralLayout/ProductionHeadComponent.tsx","layer":null},"startTime":1736836813717,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":118655,"timestamp":21777498,"id":1945,"parentId":1837,"tags":{"name":"/app/components/general/IconText.tsx","layer":null},"startTime":1736836813717,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":118685,"timestamp":21777742,"id":1948,"parentId":1839,"tags":{"name":"/app/components/general/FormAlertBlock.tsx","layer":null},"startTime":1736836813717,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":119452,"timestamp":21777315,"id":1939,"parentId":1840,"tags":{"name":"/app/components/general/FadedImage.tsx","layer":null},"startTime":1736836813717,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":119753,"timestamp":21777437,"id":1943,"parentId":1834,"tags":{"name":"/app/components/general/ScreenShotDescriptionCard.tsx","layer":null},"startTime":1736836813717,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":120700,"timestamp":21777251,"id":1937,"parentId":1823,"tags":{"name":"/app/layouts/components/SuAdminLayout/Aside.tsx","layer":null},"startTime":1736836813717,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":120734,"timestamp":21777712,"id":1947,"parentId":1836,"tags":{"name":"/app/components/general/CodeBlock.tsx","layer":null},"startTime":1736836813717,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":121481,"timestamp":21777468,"id":1944,"parentId":1834,"tags":{"name":"/app/components/general/ContainedSection.tsx","layer":null},"startTime":1736836813717,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":122481,"timestamp":21777287,"id":1938,"parentId":1823,"tags":{"name":"/app/layouts/components/SuAdminLayout/AdminHeader.tsx","layer":null},"startTime":1736836813717,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":123043,"timestamp":21777365,"id":1941,"parentId":1831,"tags":{"name":"/app/layouts/components/AdminLayout/AdminHeader.tsx","layer":null},"startTime":1736836813717,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":124242,"timestamp":21777333,"id":1940,"parentId":1831,"tags":{"name":"/app/layouts/components/AdminLayout/Aside.tsx","layer":null},"startTime":1736836813717,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":124109,"timestamp":21777847,"id":1951,"parentId":1857,"tags":{"name":"/app/components/general/BackButton.tsx","layer":null},"startTime":1736836813717,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":124766,"timestamp":21777862,"id":1952,"parentId":1857,"tags":{"name":"/app/components/admin/databases/AddDatabaseForm.tsx","layer":null},"startTime":1736836813717,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":125746,"timestamp":21777912,"id":1954,"parentId":1843,"tags":{"name":"/app/functions/frontend/userLogin.ts","layer":null},"startTime":1736836813717,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":127129,"timestamp":21777897,"id":1953,"parentId":1851,"tags":{"name":"/app/components/general/GeneralPopup.tsx","layer":null},"startTime":1736836813717,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":128884,"timestamp":21777923,"id":1955,"parentId":1844,"tags":{"name":"/app/components/pages/create-account/CreateAccountForm.tsx","layer":null},"startTime":1736836813717,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":1905,"timestamp":21948444,"id":1965,"parentId":1882,"tags":{"name":"__barrel_optimize__?names=ChevronDown,Download,FileInput,FolderOutput,SquareTerminal!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736836813888,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":5729,"timestamp":21948413,"id":1964,"parentId":1855,"tags":{"name":"/app/components/su/load-balancing/(partials)/ServerCard.tsx","layer":null},"startTime":1736836813888,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":6467,"timestamp":21948381,"id":1963,"parentId":1854,"tags":{"name":"/app/components/admin/databases/DelegatedDatabasesSection.tsx","layer":null},"startTime":1736836813888,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":7065,"timestamp":21948290,"id":1962,"parentId":1854,"tags":{"name":"/app/components/admin/databases/DatabasesList.tsx","layer":null},"startTime":1736836813888,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":7488,"timestamp":21948525,"id":1967,"parentId":1843,"tags":{"name":"/app/components/pages/login/SocialLogin.tsx","layer":null},"startTime":1736836813888,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":8233,"timestamp":21948565,"id":1968,"parentId":1852,"tags":{"name":"/app/components/form/FormSelect.tsx","layer":null},"startTime":1736836813888,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":8831,"timestamp":21948476,"id":1966,"parentId":1877,"tags":{"name":"/app/node_modules/next/dist/shared/lib/normalized-asset-prefix.js","layer":null},"startTime":1736836813888,"traceId":"89448a764ba2dcee"},{"name":"build-module-json","duration":1351,"timestamp":21963832,"id":1984,"parentId":1859,"tags":{"name":"/app/jsonData/userPriviledges.json","layer":null},"startTime":1736836813903,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":2890,"timestamp":21963656,"id":1979,"parentId":1892,"tags":{"name":"__barrel_optimize__?names=FolderOutput!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736836813903,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":3814,"timestamp":21963702,"id":1981,"parentId":1866,"tags":{"name":"__barrel_optimize__?names=ChevronLeft,ChevronRight!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736836813903,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":4827,"timestamp":21963764,"id":1982,"parentId":1873,"tags":{"name":"__barrel_optimize__?names=FileVideo2,Files,Images!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736836813903,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":6512,"timestamp":21963808,"id":1983,"parentId":1872,"tags":{"name":"__barrel_optimize__?names=Copy!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736836813903,"traceId":"89448a764ba2dcee"},{"name":"postcss-process","duration":5096,"timestamp":21970736,"id":1990,"parentId":1989,"tags":{},"startTime":1736836813910,"traceId":"89448a764ba2dcee"},{"name":"postcss-loader","duration":11235,"timestamp":21964611,"id":1989,"parentId":1980,"tags":{},"startTime":1736836813904,"traceId":"89448a764ba2dcee"},{"name":"css-loader","duration":686,"timestamp":21975868,"id":1991,"parentId":1980,"tags":{"astUsed":"true"},"startTime":1736836813915,"traceId":"89448a764ba2dcee"},{"name":"build-module-css","duration":13430,"timestamp":21963686,"id":1980,"parentId":1876,"tags":{"name":"/app/node_modules/xterm/css/xterm.css.webpack[javascript/auto]!=!/app/node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[7].oneOf[10].use[1]!/app/node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[7].oneOf[10].use[2]!/app/node_modules/xterm/css/xterm.css","layer":null},"startTime":1736836813903,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":27436,"timestamp":21963531,"id":1974,"parentId":1895,"tags":{"name":"/app/node_modules/scheduler/cjs/scheduler.production.min.js","layer":null},"startTime":1736836813903,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":27778,"timestamp":21963574,"id":1976,"parentId":1864,"tags":{"name":"/app/functions/frontend/imageInputFileToBase64.ts","layer":null},"startTime":1736836813903,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":28109,"timestamp":21963603,"id":1977,"parentId":1863,"tags":{"name":"/app/functions/frontend/checkUniqueField.ts","layer":null},"startTime":1736836813903,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":28609,"timestamp":21963427,"id":1970,"parentId":1850,"tags":{"name":"/app/components/admin/dashboard/DatabasesSummary.tsx","layer":null},"startTime":1736836813903,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":28889,"timestamp":21963559,"id":1975,"parentId":1852,"tags":{"name":"/app/package-shared/utils/ejson.ts","layer":null},"startTime":1736836813903,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":29276,"timestamp":21963626,"id":1978,"parentId":1861,"tags":{"name":"/app/components/admin/api-keys/ApiKeysList.tsx","layer":null},"startTime":1736836813903,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":30075,"timestamp":21963465,"id":1971,"parentId":1850,"tags":{"name":"/app/components/admin/dashboard/Metrics.tsx","layer":null},"startTime":1736836813903,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":30588,"timestamp":21963521,"id":1973,"parentId":1852,"tags":{"name":"/app/components/general/AceEditor.tsx","layer":null},"startTime":1736836813903,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":31107,"timestamp":21963491,"id":1972,"parentId":1849,"tags":{"name":"/app/components/su/components/RichText/DocsRichTextBlock.tsx","layer":null},"startTime":1736836813903,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":31175,"timestamp":21963852,"id":1986,"parentId":1868,"tags":{"name":"/app/functions/frontend/inputFileToBase64.ts","layer":null},"startTime":1736836813903,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":31741,"timestamp":21963842,"id":1985,"parentId":1859,"tags":{"name":"/app/components/form/FormCheckboxes.tsx","layer":null},"startTime":1736836813903,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":32319,"timestamp":21963901,"id":1988,"parentId":1867,"tags":{"name":"/app/components/su/components/UserBackups.tsx","layer":null},"startTime":1736836813903,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":35039,"timestamp":21963375,"id":1969,"parentId":1849,"tags":{"name":"/app/components/form/FormInput.tsx","layer":null},"startTime":1736836813903,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":35180,"timestamp":21963875,"id":1987,"parentId":1867,"tags":{"name":"/app/components/su/components/UserCard.tsx","layer":null},"startTime":1736836813903,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":1442429,"timestamp":20561871,"id":1434,"parentId":1433,"tags":{"request":"./node_modules/next/dist/client/next.js"},"startTime":1736836812501,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":1442369,"timestamp":20562023,"id":1439,"parentId":1433,"tags":{"request":"/app/node_modules/next/dist/client/router.js"},"startTime":1736836812501,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":14233,"timestamp":22003644,"id":1993,"parentId":1866,"tags":{"name":"/app/functions/frontend/updateDiskUsage.ts","layer":null},"startTime":1736836813943,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":15150,"timestamp":22003507,"id":1992,"parentId":1867,"tags":{"name":"/app/components/su/components/UserData.tsx","layer":null},"startTime":1736836813943,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":15822,"timestamp":22003800,"id":1996,"parentId":1865,"tags":{"name":"/app/components/admin/media/NewMediaCard.tsx","layer":null},"startTime":1736836813943,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":16810,"timestamp":22003736,"id":1995,"parentId":1869,"tags":{"name":"/app/components/general/ui/ButtonGroup.tsx","layer":null},"startTime":1736836813943,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":17803,"timestamp":22003695,"id":1994,"parentId":1869,"tags":{"name":"/app/components/su/components/PageCard.tsx","layer":null},"startTime":1736836813943,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":1972,"timestamp":22025634,"id":2002,"parentId":1914,"tags":{"name":"__barrel_optimize__?names=FolderSync!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736836813965,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":4967,"timestamp":22025695,"id":2004,"parentId":1882,"tags":{"name":"/app/components/general/CopySlug.tsx","layer":null},"startTime":1736836813965,"traceId":"89448a764ba2dcee"}] +[{"name":"build-module-ts","duration":6022,"timestamp":22025574,"id":2000,"parentId":1866,"tags":{"name":"/app/functions/frontend/downloadPrivateFile.ts","layer":null},"startTime":1736836813965,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":6398,"timestamp":22025663,"id":2003,"parentId":1875,"tags":{"name":"/app/components/admin/users/DatabaseUsers.tsx","layer":null},"startTime":1736836813965,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":7128,"timestamp":22025427,"id":1997,"parentId":1865,"tags":{"name":"/app/components/admin/media/NewFileCard.tsx","layer":null},"startTime":1736836813965,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":7537,"timestamp":22025562,"id":1999,"parentId":1866,"tags":{"name":"/app/functions/frontend/downloadFile.ts","layer":null},"startTime":1736836813965,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":8316,"timestamp":22025603,"id":2001,"parentId":1866,"tags":{"name":"/app/components/admin/media/card/MediaMoreButton.tsx","layer":null},"startTime":1736836813965,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":9136,"timestamp":22025523,"id":1998,"parentId":1870,"tags":{"name":"/app/components/admin/databases/UserImage.tsx","layer":null},"startTime":1736836813965,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":9883,"timestamp":22025706,"id":2005,"parentId":1882,"tags":{"name":"/app/functions/frontend/downloadApiStream.ts","layer":null},"startTime":1736836813965,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":2819,"timestamp":22041297,"id":2021,"parentId":1932,"tags":{"name":"__barrel_optimize__?names=ArrowLeft,HardDrive,RotateCw!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736836813981,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":3445,"timestamp":22041507,"id":2027,"parentId":1951,"tags":{"name":"__barrel_optimize__?names=ArrowLeft!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736836813981,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":15662,"timestamp":22041328,"id":2022,"parentId":1949,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/css-loader/src/runtime/api.js","layer":null},"startTime":1736836813981,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":16191,"timestamp":22041159,"id":2017,"parentId":1930,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/folder-output.js","layer":null},"startTime":1736836813981,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":16427,"timestamp":22041130,"id":2016,"parentId":1930,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/file-key-2.js","layer":null},"startTime":1736836813981,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":16857,"timestamp":22041029,"id":2013,"parentId":1929,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/menu.js","layer":null},"startTime":1736836813980,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":17093,"timestamp":22040995,"id":2012,"parentId":1928,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/info.js","layer":null},"startTime":1736836813980,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":17198,"timestamp":22041100,"id":2015,"parentId":1930,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/earth-lock.js","layer":null},"startTime":1736836813980,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":17327,"timestamp":22041190,"id":2018,"parentId":1930,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/sheet.js","layer":null},"startTime":1736836813981,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":17684,"timestamp":22041065,"id":2014,"parentId":1930,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/copy-check.js","layer":null},"startTime":1736836813980,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":18222,"timestamp":22040957,"id":2011,"parentId":1886,"tags":{"name":"/app/components/admin/connect/MariaDBUsers.tsx","layer":null},"startTime":1736836813980,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":18977,"timestamp":22040776,"id":2006,"parentId":1872,"tags":{"name":"/app/components/admin/media/MediaList.tsx","layer":null},"startTime":1736836813980,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":19595,"timestamp":22040921,"id":2010,"parentId":1886,"tags":{"name":"/app/components/admin/connect/ConnectionInfo.tsx","layer":null},"startTime":1736836813980,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":20211,"timestamp":22040842,"id":2007,"parentId":1879,"tags":{"name":"/app/components/admin/users/UserImage.tsx","layer":null},"startTime":1736836813980,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":19965,"timestamp":22041264,"id":2020,"parentId":1931,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/book-text.js","layer":null},"startTime":1736836813981,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":20186,"timestamp":22041220,"id":2019,"parentId":1930,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/square-gantt-chart.js","layer":null},"startTime":1736836813981,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":21089,"timestamp":22040865,"id":2008,"parentId":1883,"tags":{"name":"/app/components/form/FormRadios.tsx","layer":null},"startTime":1736836813980,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":20781,"timestamp":22041477,"id":2026,"parentId":1892,"tags":{"name":"/app/components/general/DatabaseSlugCopy.tsx","layer":null},"startTime":1736836813981,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":21191,"timestamp":22041444,"id":2025,"parentId":1894,"tags":{"name":"/app/components/general/ActiveCloneDbBanner.tsx","layer":null},"startTime":1736836813981,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":22033,"timestamp":22041376,"id":2023,"parentId":1894,"tags":{"name":"/app/components/admin/databases/DatabasesTablesList.tsx","layer":null},"startTime":1736836813981,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":23575,"timestamp":22040882,"id":2009,"parentId":1888,"tags":{"name":"/app/components/admin/connect/MariDBUserForm.tsx","layer":null},"startTime":1736836813980,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":23874,"timestamp":22041408,"id":2024,"parentId":1894,"tags":{"name":"/app/components/admin/databases/TablesList.tsx","layer":null},"startTime":1736836813981,"traceId":"89448a764ba2dcee"},{"name":"build-module-json","duration":1135,"timestamp":22072848,"id":2033,"parentId":1903,"tags":{"name":"/app/package-shared/data/dataTypes.json","layer":null},"startTime":1736836814012,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":3071,"timestamp":22072754,"id":2030,"parentId":1953,"tags":{"name":"__barrel_optimize__?names=X!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736836814012,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":3706,"timestamp":22072789,"id":2031,"parentId":1904,"tags":{"name":"__barrel_optimize__?names=ChevronUp!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736836814012,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":4332,"timestamp":22072820,"id":2032,"parentId":1934,"tags":{"name":"__barrel_optimize__?names=ChevronDown!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736836814012,"traceId":"89448a764ba2dcee"},{"name":"build-module-css","duration":590680,"timestamp":21491924,"id":1847,"parentId":1731,"tags":{"name":"/app/styles/less.css","layer":null},"startTime":1736836813431,"traceId":"89448a764ba2dcee"},{"name":"build-module-css","duration":587038,"timestamp":21496235,"id":1848,"parentId":1731,"tags":{"name":"/app/styles/tailwind.css","layer":null},"startTime":1736836813436,"traceId":"89448a764ba2dcee"},{"name":"build-module-css","duration":476228,"timestamp":21607568,"id":1876,"parentId":1748,"tags":{"name":"/app/node_modules/xterm/css/xterm.css","layer":null},"startTime":1736836813547,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":22919,"timestamp":22072715,"id":2029,"parentId":1922,"tags":{"name":"/app/node_modules/socket.io-client/build/esm/index.js","layer":null},"startTime":1736836814012,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":23276,"timestamp":22072965,"id":2038,"parentId":1896,"tags":{"name":"/app/components/admin/users/InvitationReceivedCard.tsx","layer":null},"startTime":1736836814012,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":23804,"timestamp":22072907,"id":2036,"parentId":1898,"tags":{"name":"/app/components/admin/databases/AddTableForm.tsx","layer":null},"startTime":1736836814012,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":24356,"timestamp":22072936,"id":2037,"parentId":1896,"tags":{"name":"/app/components/admin/users/UsersList.tsx","layer":null},"startTime":1736836814012,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":25066,"timestamp":22072856,"id":2034,"parentId":1903,"tags":{"name":"/app/components/general/ActiveCloneTableBanner.tsx","layer":null},"startTime":1736836814012,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":27932,"timestamp":22072882,"id":2035,"parentId":1899,"tags":{"name":"/app/components/admin/databases/ExistingFieldEdit.tsx","layer":null},"startTime":1736836814012,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":28860,"timestamp":22072627,"id":2028,"parentId":1922,"tags":{"name":"/app/node_modules/ansi-regex/index.js","layer":null},"startTime":1736836814012,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":1908,"timestamp":22110937,"id":2043,"parentId":1962,"tags":{"name":"__barrel_optimize__?names=PackagePlus!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736836814050,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":7692,"timestamp":22111129,"id":2049,"parentId":1981,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/chevron-right.js","layer":null},"startTime":1736836814051,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":14595,"timestamp":22111156,"id":2050,"parentId":1982,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/file-video-2.js","layer":null},"startTime":1736836814051,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":14957,"timestamp":22111041,"id":2046,"parentId":1965,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/file-input.js","layer":null},"startTime":1736836814050,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":15179,"timestamp":22111071,"id":2047,"parentId":1965,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/square-terminal.js","layer":null},"startTime":1736836814050,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":15338,"timestamp":22111099,"id":2048,"parentId":1981,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/chevron-left.js","layer":null},"startTime":1736836814050,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":15645,"timestamp":22110976,"id":2044,"parentId":1965,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/chevron-down.js","layer":null},"startTime":1736836814050,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":15808,"timestamp":22111008,"id":2045,"parentId":1965,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/download.js","layer":null},"startTime":1736836814050,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":15837,"timestamp":22111182,"id":2051,"parentId":1982,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/files.js","layer":null},"startTime":1736836814051,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":17037,"timestamp":22110830,"id":2040,"parentId":1897,"tags":{"name":"/app/components/admin/databases/DatabaseTablesTablePreview.tsx","layer":null},"startTime":1736836814050,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":18955,"timestamp":22110872,"id":2041,"parentId":1903,"tags":{"name":"/app/components/admin/databases/TableEntriesList.tsx","layer":null},"startTime":1736836814050,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":20644,"timestamp":22110729,"id":2039,"parentId":1902,"tags":{"name":"/app/components/admin/users/DbCreateDbUserForm.tsx","layer":null},"startTime":1736836814050,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":22640,"timestamp":22110900,"id":2042,"parentId":1903,"tags":{"name":"/app/components/admin/databases/TableFields.tsx","layer":null},"startTime":1736836814050,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":1571804,"timestamp":20562230,"id":1482,"parentId":1433,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Flogout.tsx&page=%2Flogout!"},"startTime":1736836812502,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":1571827,"timestamp":20562313,"id":1500,"parentId":1433,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fsu%2Flogin.tsx&page=%2Fsu%2Flogin!"},"startTime":1736836812502,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":4036,"timestamp":22142978,"id":2055,"parentId":1971,"tags":{"name":"__barrel_optimize__?names=Database,Images,Key,Sheet!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736836814082,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":4813,"timestamp":22143298,"id":2065,"parentId":1937,"tags":{"name":"__barrel_optimize__?names=BookText,CloudUpload,DatabaseBackup,FileWarning,Home,LockKeyhole,Server,SquareChevronRight,Users!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736836814083,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":5860,"timestamp":22143324,"id":2066,"parentId":1940,"tags":{"name":"__barrel_optimize__?names=BookText,CircleGauge,Database,FileKey2,Globe,Images,ShieldEllipsis,Users!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736836814083,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":6925,"timestamp":22143350,"id":2067,"parentId":2006,"tags":{"name":"__barrel_optimize__?names=Plus!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736836814083,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":8021,"timestamp":22143372,"id":2068,"parentId":2024,"tags":{"name":"__barrel_optimize__?names=Copy,CopyPlus,Edit,FileX2,Grid2X2!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736836814083,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":9559,"timestamp":22143488,"id":2073,"parentId":2010,"tags":{"name":"__barrel_optimize__?names=Copy,Download!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736836814083,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":23856,"timestamp":22142945,"id":2054,"parentId":1976,"tags":{"name":"/app/node_modules/@moduletrace/datasquirel/dist/client/index.js","layer":null},"startTime":1736836814082,"traceId":"89448a764ba2dcee"},{"name":"build-module-mjs","duration":34799,"timestamp":22143025,"id":2056,"parentId":1973,"tags":{"name":"/app/node_modules/tailwind-merge/dist/bundle-mjs.mjs","layer":null},"startTime":1736836814082,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":35355,"timestamp":22142909,"id":2053,"parentId":1983,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/copy.js","layer":null},"startTime":1736836814082,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":35117,"timestamp":22143420,"id":2070,"parentId":2021,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/arrow-left.js","layer":null},"startTime":1736836814083,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":35963,"timestamp":22142808,"id":2052,"parentId":1982,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/images.js","layer":null},"startTime":1736836814082,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":35718,"timestamp":22143271,"id":2064,"parentId":2002,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/folder-sync.js","layer":null},"startTime":1736836814083,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":36230,"timestamp":22143102,"id":2058,"parentId":1906,"tags":{"name":"/app/components/cards/LinkCard.tsx","layer":null},"startTime":1736836814082,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":36216,"timestamp":22143443,"id":2071,"parentId":2021,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/hard-drive.js","layer":null},"startTime":1736836814083,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":36945,"timestamp":22143222,"id":2062,"parentId":1908,"tags":{"name":"/app/components/admin/databases/DatabaseShellQueryResult.tsx","layer":null},"startTime":1736836814083,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":37348,"timestamp":22143397,"id":2069,"parentId":2017,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/createLucideIcon.js","layer":null},"startTime":1736836814083,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":37489,"timestamp":22143464,"id":2072,"parentId":2021,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/rotate-cw.js","layer":null},"startTime":1736836814083,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":37683,"timestamp":22143676,"id":2082,"parentId":1926,"tags":{"name":"/app/components/admin/databases/MoreTableOptions.tsx","layer":null},"startTime":1736836814083,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":39061,"timestamp":22143130,"id":2059,"parentId":1909,"tags":{"name":"/app/components/su/SuEnvCard.tsx","layer":null},"startTime":1736836814083,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":40129,"timestamp":22143147,"id":2060,"parentId":1910,"tags":{"name":"/app/components/admin/users/DbUsersList.tsx","layer":null},"startTime":1736836814083,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":40713,"timestamp":22143619,"id":2079,"parentId":1927,"tags":{"name":"/app/components/admin/databases/SelectNewEntry.tsx","layer":null},"startTime":1736836814083,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":41273,"timestamp":22143524,"id":2075,"parentId":1920,"tags":{"name":"/app/components/admin/databases/EditDatabaseForm.tsx","layer":null},"startTime":1736836814083,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":42474,"timestamp":22143654,"id":2081,"parentId":1926,"tags":{"name":"/app/components/admin/databases/ImportExportEntries.tsx","layer":null},"startTime":1736836814083,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":44630,"timestamp":22143054,"id":2057,"parentId":1903,"tags":{"name":"/app/components/admin/databases/TableIndexes.tsx","layer":null},"startTime":1736836814082,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":44916,"timestamp":22143644,"id":2080,"parentId":1934,"tags":{"name":"/app/components/general/ThemeSelector.tsx","layer":null},"startTime":1736836814083,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":45789,"timestamp":22143512,"id":2074,"parentId":1922,"tags":{"name":"/app/components/su/xterm.ts","layer":null},"startTime":1736836814083,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":46692,"timestamp":22143708,"id":2083,"parentId":1934,"tags":{"name":"/app/layouts/components/AdminLayout/AdminUserBlock.tsx","layer":null},"startTime":1736836814083,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":47262,"timestamp":22143594,"id":2078,"parentId":1927,"tags":{"name":"/app/components/admin/databases/SingleEntryPrevNext.tsx","layer":null},"startTime":1736836814083,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":49266,"timestamp":22143184,"id":2061,"parentId":1911,"tags":{"name":"/app/components/admin/databases/EditTableForm.tsx","layer":null},"startTime":1736836814083,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":50147,"timestamp":22143732,"id":2084,"parentId":1952,"tags":{"name":"/app/components/admin/databases/DatabaseForm.tsx","layer":null},"startTime":1736836814083,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":53121,"timestamp":22143246,"id":2063,"parentId":1913,"tags":{"name":"/app/components/admin/databases/connect/ConnectForm.tsx","layer":null},"startTime":1736836814083,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":54561,"timestamp":22143546,"id":2076,"parentId":1925,"tags":{"name":"/app/components/admin/databases/TableEntryForm.tsx","layer":null},"startTime":1736836814083,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":57903,"timestamp":22143569,"id":2077,"parentId":1927,"tags":{"name":"/app/components/admin/databases/UpdateEntryForm.tsx","layer":null},"startTime":1736836814083,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":363,"timestamp":22254608,"id":2088,"parentId":1847,"tags":{},"startTime":1736836814194,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":33,"timestamp":22255003,"id":2089,"parentId":1848,"tags":{},"startTime":1736836814194,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":14,"timestamp":22255056,"id":2090,"parentId":1876,"tags":{},"startTime":1736836814194,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":20279,"timestamp":22255084,"id":2091,"parentId":2030,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/x.js","layer":null},"startTime":1736836814194,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":22515,"timestamp":22254318,"id":2086,"parentId":1940,"tags":{"name":"/app/functions/isLocalSuperUser.ts","layer":null},"startTime":1736836814194,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":24125,"timestamp":22254095,"id":2085,"parentId":1952,"tags":{"name":"/app/components/admin/databases/DatabaseImage.tsx","layer":null},"startTime":1736836814193,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":24960,"timestamp":22254361,"id":2087,"parentId":1955,"tags":{"name":"/app/functions/frontend/submitNewUserForm.ts","layer":null},"startTime":1736836814194,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":1722438,"timestamp":20562006,"id":1438,"parentId":1433,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2F_app.tsx&page=%2F_app!"},"startTime":1736836812501,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":5356,"timestamp":22289076,"id":2097,"parentId":1964,"tags":{"name":"__barrel_optimize__?names=Server!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736836814228,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":6845,"timestamp":22289148,"id":2098,"parentId":2041,"tags":{"name":"__barrel_optimize__?names=Grid2x2!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736836814229,"traceId":"89448a764ba2dcee"}] +[{"name":"build-module-js","duration":8315,"timestamp":22289285,"id":2101,"parentId":1994,"tags":{"name":"__barrel_optimize__?names=Layers,Newspaper!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736836814229,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":9157,"timestamp":22289401,"id":2103,"parentId":2082,"tags":{"name":"__barrel_optimize__?names=Ellipsis!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736836814229,"traceId":"89448a764ba2dcee"},{"name":"postcss-process","duration":4851,"timestamp":22298699,"id":2135,"parentId":2134,"tags":{},"startTime":1736836814238,"traceId":"89448a764ba2dcee"},{"name":"postcss-loader","duration":12491,"timestamp":22291105,"id":2134,"parentId":2096,"tags":{},"startTime":1736836814230,"traceId":"89448a764ba2dcee"},{"name":"css-loader","duration":9858,"timestamp":22303652,"id":2136,"parentId":2096,"tags":{"astUsed":"true"},"startTime":1736836814243,"traceId":"89448a764ba2dcee"},{"name":"build-module-css","duration":25194,"timestamp":22288921,"id":2096,"parentId":1946,"tags":{"name":"/app/components/pages/homepage/Home.module.css.webpack[javascript/auto]!=!/app/node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[7].oneOf[7].use[1]!/app/node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[7].oneOf[7].use[2]!/app/components/pages/homepage/Home.module.css","layer":null},"startTime":1736836814228,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":40118,"timestamp":22288508,"id":2093,"parentId":2029,"tags":{"name":"/app/node_modules/socket.io-client/build/esm/url.js","layer":null},"startTime":1736836814228,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":46495,"timestamp":22288595,"id":2094,"parentId":2029,"tags":{"name":"/app/node_modules/socket.io-client/build/esm/socket.js","layer":null},"startTime":1736836814228,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":50834,"timestamp":22288692,"id":2095,"parentId":2029,"tags":{"name":"/app/node_modules/socket.io-client/build/esm/manager.js","layer":null},"startTime":1736836814228,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":66163,"timestamp":22289257,"id":2100,"parentId":2042,"tags":{"name":"/app/node_modules/gsap/Flip.js","layer":null},"startTime":1736836814229,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":65879,"timestamp":22290402,"id":2124,"parentId":2042,"tags":{"name":"/app/node_modules/gsap/index.js","layer":null},"startTime":1736836814230,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":67232,"timestamp":22290478,"id":2126,"parentId":2074,"tags":{"name":"/app/node_modules/xterm-addon-fit/lib/xterm-addon-fit.js","layer":null},"startTime":1736836814230,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":69543,"timestamp":22290538,"id":2127,"parentId":2082,"tags":{"name":"/app/node_modules/react-tiny-popover/dist/Popover.js","layer":null},"startTime":1736836814230,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":206952,"timestamp":22290457,"id":2125,"parentId":2074,"tags":{"name":"/app/node_modules/xterm/lib/xterm.js","layer":null},"startTime":1736836814230,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":209557,"timestamp":22288309,"id":2092,"parentId":2031,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/chevron-up.js","layer":null},"startTime":1736836814228,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":208574,"timestamp":22289577,"id":2107,"parentId":2065,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/cloud-upload.js","layer":null},"startTime":1736836814229,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":208948,"timestamp":22289444,"id":2104,"parentId":2069,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/defaultAttributes.js","layer":null},"startTime":1736836814229,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":209422,"timestamp":22289200,"id":2099,"parentId":2043,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/package-plus.js","layer":null},"startTime":1736836814229,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":209288,"timestamp":22289532,"id":2106,"parentId":2055,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/key.js","layer":null},"startTime":1736836814229,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":209527,"timestamp":22289487,"id":2105,"parentId":2055,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/database.js","layer":null},"startTime":1736836814229,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":209565,"timestamp":22289644,"id":2108,"parentId":2065,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/database-backup.js","layer":null},"startTime":1736836814229,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":209640,"timestamp":22289746,"id":2110,"parentId":2065,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/home.js","layer":null},"startTime":1736836814229,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":209877,"timestamp":22289692,"id":2109,"parentId":2065,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/file-warning.js","layer":null},"startTime":1736836814229,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":209970,"timestamp":22289788,"id":2111,"parentId":2065,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/lock-keyhole.js","layer":null},"startTime":1736836814229,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":209799,"timestamp":22290139,"id":2118,"parentId":2067,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/plus.js","layer":null},"startTime":1736836814230,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":210074,"timestamp":22290099,"id":2117,"parentId":2066,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/shield-ellipsis.js","layer":null},"startTime":1736836814229,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":210400,"timestamp":22289962,"id":2114,"parentId":2065,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/users.js","layer":null},"startTime":1736836814229,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":210648,"timestamp":22289896,"id":2113,"parentId":2065,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/square-chevron-right.js","layer":null},"startTime":1736836814229,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":210916,"timestamp":22289848,"id":2112,"parentId":2065,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/server.js","layer":null},"startTime":1736836814229,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":210910,"timestamp":22290056,"id":2116,"parentId":2066,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/globe.js","layer":null},"startTime":1736836814229,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":210926,"timestamp":22290228,"id":2120,"parentId":2068,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/square-pen.js","layer":null},"startTime":1736836814230,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":211326,"timestamp":22290010,"id":2115,"parentId":2066,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/circle-gauge.js","layer":null},"startTime":1736836814229,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":211352,"timestamp":22290186,"id":2119,"parentId":2068,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/copy-plus.js","layer":null},"startTime":1736836814230,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":211443,"timestamp":22290272,"id":2121,"parentId":2068,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/file-x-2.js","layer":null},"startTime":1736836814230,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":211578,"timestamp":22290357,"id":2123,"parentId":2069,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/shared/src/utils.js","layer":null},"startTime":1736836814230,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":211842,"timestamp":22290314,"id":2122,"parentId":2068,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/grid-2x2.js","layer":null},"startTime":1736836814230,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":212054,"timestamp":22290699,"id":2130,"parentId":1969,"tags":{"name":"/app/functions/frontend/numberFormat.ts","layer":null},"startTime":1736836814230,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":212883,"timestamp":22290735,"id":2131,"parentId":1969,"tags":{"name":"/app/functions/frontend/numberFormatFloat.ts","layer":null},"startTime":1736836814230,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":213999,"timestamp":22290787,"id":2132,"parentId":1978,"tags":{"name":"/app/components/admin/api-keys/ApiKeyListCard.tsx","layer":null},"startTime":1736836814230,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":215229,"timestamp":22290594,"id":2128,"parentId":1967,"tags":{"name":"/app/components/pages/login/GoogleIdentityButton.tsx","layer":null},"startTime":1736836814230,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":216854,"timestamp":22290652,"id":2129,"parentId":1967,"tags":{"name":"/app/components/pages/login/GithubLogin.tsx","layer":null},"startTime":1736836814230,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":219550,"timestamp":22289345,"id":2102,"parentId":1963,"tags":{"name":"/app/components/admin/databases/DatabaseListCard.tsx","layer":null},"startTime":1736836814229,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":219129,"timestamp":22290837,"id":2133,"parentId":1972,"tags":{"name":"/app/components/su/components/RichText/RichTextExtensionBlock.tsx","layer":null},"startTime":1736836814230,"traceId":"89448a764ba2dcee"},{"name":"build-module-css","duration":749384,"timestamp":21777512,"id":1946,"parentId":1836,"tags":{"name":"/app/components/pages/homepage/Home.module.css","layer":null},"startTime":1736836813717,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":23526,"timestamp":22516733,"id":2142,"parentId":2054,"tags":{"name":"/app/node_modules/@moduletrace/datasquirel/dist/client/media/imageInputToBase64.js","layer":null},"startTime":1736836814456,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":25254,"timestamp":22516780,"id":2143,"parentId":2054,"tags":{"name":"/app/node_modules/@moduletrace/datasquirel/dist/client/media/imageInputFileToBase64.js","layer":null},"startTime":1736836814456,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":26333,"timestamp":22516836,"id":2144,"parentId":2054,"tags":{"name":"/app/node_modules/@moduletrace/datasquirel/dist/client/media/inputFileToBase64.js","layer":null},"startTime":1736836814456,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":28552,"timestamp":22516888,"id":2145,"parentId":2054,"tags":{"name":"/app/node_modules/@moduletrace/datasquirel/dist/client/auth/logout.js","layer":null},"startTime":1736836814456,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":28928,"timestamp":22516941,"id":2146,"parentId":2054,"tags":{"name":"/app/node_modules/@moduletrace/datasquirel/dist/client/auth/github/getAccessToken.js","layer":null},"startTime":1736836814456,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":29978,"timestamp":22516994,"id":2147,"parentId":2054,"tags":{"name":"/app/node_modules/@moduletrace/datasquirel/dist/client/auth/google/getAccessToken.js","layer":null},"startTime":1736836814456,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":30167,"timestamp":22517050,"id":2148,"parentId":1972,"tags":{"name":"/app/node_modules/@tinymce/tinymce-react/lib/es2015/main/ts/index.js","layer":null},"startTime":1736836814456,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":30982,"timestamp":22516634,"id":2138,"parentId":1971,"tags":{"name":"/app/components/general/MetricCard.tsx","layer":null},"startTime":1736836814456,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":31350,"timestamp":22516705,"id":2141,"parentId":1996,"tags":{"name":"/app/components/admin/media/TogglePrivacyButton.tsx","layer":null},"startTime":1736836814456,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":31987,"timestamp":22516651,"id":2139,"parentId":1992,"tags":{"name":"/app/components/su/components/UserFiles.tsx","layer":null},"startTime":1736836814456,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":32879,"timestamp":22516539,"id":2137,"parentId":1973,"tags":{"name":"/app/components/admin/databases/fields/text/ace-editor.ts","layer":null},"startTime":1736836814456,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":32815,"timestamp":22517173,"id":2150,"parentId":2006,"tags":{"name":"/app/components/admin/media/MediaFolderCard.tsx","layer":null},"startTime":1736836814457,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":33981,"timestamp":22517116,"id":2149,"parentId":2011,"tags":{"name":"/app/components/admin/connect/MariaDBUserCard.tsx","layer":null},"startTime":1736836814457,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":34698,"timestamp":22517307,"id":2153,"parentId":2024,"tags":{"name":"/app/components/admin/databases/ImportDbComponent.tsx","layer":null},"startTime":1736836814457,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":35768,"timestamp":22517349,"id":2154,"parentId":2024,"tags":{"name":"/app/components/admin/databases/ImportSchemaComponent.tsx","layer":null},"startTime":1736836814457,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":38315,"timestamp":22516680,"id":2140,"parentId":1992,"tags":{"name":"/app/components/su/components/UserDbShell.tsx","layer":null},"startTime":1736836814456,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":39497,"timestamp":22517261,"id":2152,"parentId":2024,"tags":{"name":"/app/components/admin/databases/TableListCard.tsx","layer":null},"startTime":1736836814457,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":41154,"timestamp":22517393,"id":2155,"parentId":2006,"tags":{"name":"/app/components/admin/media/card/MediaListCard.tsx","layer":null},"startTime":1736836814457,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":43770,"timestamp":22517218,"id":2151,"parentId":2009,"tags":{"name":"/app/components/admin/connect/MariDBUserFormGrantsSection.tsx","layer":null},"startTime":1736836814457,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":2000367,"timestamp":20562233,"id":1483,"parentId":1433,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Flogin.tsx&page=%2Flogin!"},"startTime":1736836812502,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":2000418,"timestamp":20562305,"id":1499,"parentId":1433,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fsu%2Fservers.tsx&page=%2Fsu%2Fservers!"},"startTime":1736836812502,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":2000433,"timestamp":20562334,"id":1503,"parentId":1433,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fsu%2Fusers%2Fnew.tsx&page=%2Fsu%2Fusers%2Fnew!"},"startTime":1736836812502,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":2000507,"timestamp":20562295,"id":1498,"parentId":1433,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fsu%2Fload-balancing.tsx&page=%2Fsu%2Fload-balancing!"},"startTime":1736836812502,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":2000495,"timestamp":20562331,"id":1502,"parentId":1433,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fsu%2Fusers%2Findex.tsx&page=%2Fsu%2Fusers!"},"startTime":1736836812502,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":2000557,"timestamp":20562289,"id":1497,"parentId":1433,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fsu%2Findex.tsx&page=%2Fsu!"},"startTime":1736836812502,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":2000597,"timestamp":20562268,"id":1492,"parentId":1433,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fsu%2Fdocs%2Fpages%2F%5Bid%5D.tsx&page=%2Fsu%2Fdocs%2Fpages%2F%5Bid%5D!"},"startTime":1736836812502,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":2000638,"timestamp":20562277,"id":1494,"parentId":1433,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fsu%2Fenvar.tsx&page=%2Fsu%2Fenvar!"},"startTime":1736836812502,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":2000677,"timestamp":20562258,"id":1489,"parentId":1433,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fsu%2Fbackups.tsx&page=%2Fsu%2Fbackups!"},"startTime":1736836812502,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":2000670,"timestamp":20562284,"id":1496,"parentId":1433,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fsu%2Ferror-logs.tsx&page=%2Fsu%2Ferror-logs!"},"startTime":1736836812502,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":13062,"timestamp":22576507,"id":2156,"parentId":2054,"tags":{"name":"/app/node_modules/@moduletrace/datasquirel/dist/package-shared/utils/serialize-query.js","layer":null},"startTime":1736836814516,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":13573,"timestamp":22576616,"id":2157,"parentId":2054,"tags":{"name":"/app/node_modules/@moduletrace/datasquirel/dist/package-shared/utils/slugify.js","layer":null},"startTime":1736836814516,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":14016,"timestamp":22576679,"id":2158,"parentId":2054,"tags":{"name":"/app/node_modules/@moduletrace/datasquirel/dist/package-shared/utils/numberfy.js","layer":null},"startTime":1736836814516,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":14444,"timestamp":22576729,"id":2159,"parentId":2054,"tags":{"name":"/app/node_modules/@moduletrace/datasquirel/dist/package-shared/utils/ejson.js","layer":null},"startTime":1736836814516,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":15001,"timestamp":22576767,"id":2160,"parentId":2054,"tags":{"name":"/app/node_modules/@moduletrace/datasquirel/dist/package-shared/utils/serialize-cookies.js","layer":null},"startTime":1736836814516,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":3076,"timestamp":22596658,"id":2161,"parentId":2102,"tags":{"name":"__barrel_optimize__?names=ChevronRight!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736836814536,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":4048,"timestamp":22596866,"id":2165,"parentId":2133,"tags":{"name":"__barrel_optimize__?names=CircleX,List,RotateCcw!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736836814536,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":17878,"timestamp":22596897,"id":2166,"parentId":2029,"tags":{"name":"/app/node_modules/socket.io-parser/build/esm/index.js","layer":null},"startTime":1736836814536,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":18455,"timestamp":22596932,"id":2167,"parentId":2029,"tags":{"name":"/app/node_modules/engine.io-client/build/esm/index.js","layer":null},"startTime":1736836814536,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":18620,"timestamp":22596966,"id":2168,"parentId":2094,"tags":{"name":"/app/node_modules/socket.io-client/build/esm/on.js","layer":null},"startTime":1736836814536,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":20586,"timestamp":22597060,"id":2172,"parentId":2127,"tags":{"name":"/app/node_modules/react-tiny-popover/dist/util.js","layer":null},"startTime":1736836814536,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":40094,"timestamp":22597009,"id":2170,"parentId":2124,"tags":{"name":"/app/node_modules/gsap/CSSPlugin.js","layer":null},"startTime":1736836814536,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":80997,"timestamp":22596992,"id":2169,"parentId":2124,"tags":{"name":"/app/node_modules/gsap/gsap-core.js","layer":null},"startTime":1736836814536,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":81528,"timestamp":22597025,"id":2171,"parentId":2127,"tags":{"name":"/app/node_modules/react-tiny-popover/dist/PopoverPortal.js","layer":null},"startTime":1736836814536,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":83113,"timestamp":22597108,"id":2173,"parentId":2127,"tags":{"name":"/app/node_modules/react-tiny-popover/dist/usePopover.js","layer":null},"startTime":1736836814536,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":83430,"timestamp":22597238,"id":2174,"parentId":2127,"tags":{"name":"/app/node_modules/react-tiny-popover/dist/useMemoizedArray.js","layer":null},"startTime":1736836814537,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":83924,"timestamp":22597276,"id":2175,"parentId":2127,"tags":{"name":"/app/node_modules/react-tiny-popover/dist/useHandlePrevValues.js","layer":null},"startTime":1736836814537,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":84846,"timestamp":22597312,"id":2176,"parentId":2127,"tags":{"name":"/app/node_modules/react-tiny-popover/dist/useArrowContainer.js","layer":null},"startTime":1736836814537,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":85509,"timestamp":22597335,"id":2177,"parentId":2127,"tags":{"name":"/app/node_modules/react-tiny-popover/dist/ArrowContainer.js","layer":null},"startTime":1736836814537,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":86173,"timestamp":22597371,"id":2178,"parentId":2095,"tags":{"name":"/app/node_modules/socket.io-client/build/esm/contrib/backo2.js","layer":null},"startTime":1736836814537,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":90097,"timestamp":22597400,"id":2179,"parentId":2100,"tags":{"name":"/app/node_modules/gsap/utils/matrix.js","layer":null},"startTime":1736836814537,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":91124,"timestamp":22596758,"id":2162,"parentId":2101,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/layers.js","layer":null},"startTime":1736836814536,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":91264,"timestamp":22596803,"id":2163,"parentId":2101,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/newspaper.js","layer":null},"startTime":1736836814536,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":91416,"timestamp":22596837,"id":2164,"parentId":2103,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/ellipsis.js","layer":null},"startTime":1736836814536,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":90994,"timestamp":22597571,"id":2186,"parentId":2042,"tags":{"name":"/app/functions/frontend/addNewTempField.ts","layer":null},"startTime":1736836814537,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":91351,"timestamp":22597551,"id":2185,"parentId":2042,"tags":{"name":"/app/components/general/ExpandBlock.tsx","layer":null},"startTime":1736836814537,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":91889,"timestamp":22597527,"id":2184,"parentId":2035,"tags":{"name":"/app/components/admin/databases/fields/text/JSONTextOption.tsx","layer":null},"startTime":1736836814537,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":92514,"timestamp":22597500,"id":2183,"parentId":2035,"tags":{"name":"/app/components/admin/databases/MoreOptionsModal.tsx","layer":null},"startTime":1736836814537,"traceId":"89448a764ba2dcee"}] +[{"name":"build-module-tsx","duration":93743,"timestamp":22597410,"id":2180,"parentId":2036,"tags":{"name":"/app/components/admin/databases/NewTableForm.tsx","layer":null},"startTime":1736836814537,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":94988,"timestamp":22597474,"id":2182,"parentId":2037,"tags":{"name":"/app/components/admin/users/UserListCard.tsx","layer":null},"startTime":1736836814537,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":95908,"timestamp":22597662,"id":2189,"parentId":2042,"tags":{"name":"/app/components/admin/databases/NewFieldTemp.tsx","layer":null},"startTime":1736836814537,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":97681,"timestamp":22597605,"id":2187,"parentId":2041,"tags":{"name":"/app/components/admin/databases/SearchEntriesSection.tsx","layer":null},"startTime":1736836814537,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":98849,"timestamp":22597637,"id":2188,"parentId":2042,"tags":{"name":"/app/components/admin/databases/ClonedSingleTableFieldCard.tsx","layer":null},"startTime":1736836814537,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":100499,"timestamp":22597447,"id":2181,"parentId":2036,"tags":{"name":"/app/components/admin/databases/CloneTableForm.tsx","layer":null},"startTime":1736836814537,"traceId":"89448a764ba2dcee"},{"name":"build-module","duration":44,"timestamp":22707131,"id":2190,"parentId":1946,"tags":{},"startTime":1736836814647,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":2146744,"timestamp":20562274,"id":1493,"parentId":1433,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fsu%2Fdocs%2Findex.tsx&page=%2Fsu%2Fdocs!"},"startTime":1736836812502,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":2146828,"timestamp":20562281,"id":1495,"parentId":1433,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fsu%2Fdocs%2Fpages%2Findex.tsx&page=%2Fsu%2Fdocs%2Fpages!"},"startTime":1736836812502,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":3101,"timestamp":22707202,"id":2191,"parentId":2141,"tags":{"name":"__barrel_optimize__?names=Lock,LockKeyholeOpen!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736836814647,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":3964,"timestamp":22707309,"id":2192,"parentId":2150,"tags":{"name":"__barrel_optimize__?names=Folder,X!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736836814647,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":5091,"timestamp":22707347,"id":2193,"parentId":2149,"tags":{"name":"__barrel_optimize__?names=CircleX,Copy,Edit!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736836814647,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":6228,"timestamp":22707376,"id":2194,"parentId":2154,"tags":{"name":"__barrel_optimize__?names=FileCog!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736836814647,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":7336,"timestamp":22707402,"id":2195,"parentId":2152,"tags":{"name":"__barrel_optimize__?names=ChevronRight,Sheet!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736836814647,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":21735,"timestamp":22707426,"id":2196,"parentId":2145,"tags":{"name":"/app/node_modules/@moduletrace/datasquirel/dist/client/utils/parseClientCookies.js","layer":null},"startTime":1736836814647,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":26628,"timestamp":22707472,"id":2197,"parentId":2148,"tags":{"name":"/app/node_modules/@tinymce/tinymce-react/lib/es2015/main/ts/components/Editor.js","layer":null},"startTime":1736836814647,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":26980,"timestamp":22707594,"id":2201,"parentId":2057,"tags":{"name":"/app/functions/frontend/addNewTemplateIndex.ts","layer":null},"startTime":1736836814647,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":27843,"timestamp":22707570,"id":2200,"parentId":2083,"tags":{"name":"/app/layouts/components/AdminUserDropdown.tsx","layer":null},"startTime":1736836814647,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":28537,"timestamp":22707685,"id":2205,"parentId":2081,"tags":{"name":"/app/components/admin/databases/functions/import-export-handler.ts","layer":null},"startTime":1736836814647,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":29636,"timestamp":22707540,"id":2199,"parentId":2042,"tags":{"name":"/app/components/admin/databases/functions/generateTypeDefinition.ts","layer":null},"startTime":1736836814647,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":31430,"timestamp":22707512,"id":2198,"parentId":2042,"tags":{"name":"/app/components/admin/databases/SingleTableFieldCard.tsx","layer":null},"startTime":1736836814647,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":32431,"timestamp":22707663,"id":2204,"parentId":2057,"tags":{"name":"/app/components/admin/databases/SingleTableIndexCard.tsx","layer":null},"startTime":1736836814647,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":33979,"timestamp":22707618,"id":2202,"parentId":2082,"tags":{"name":"/app/components/admin/databases/SyncDataButton.tsx","layer":null},"startTime":1736836814647,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":35746,"timestamp":22707642,"id":2203,"parentId":2057,"tags":{"name":"/app/components/admin/databases/NewIndexFieldTemp.tsx","layer":null},"startTime":1736836814647,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":5317,"timestamp":22768723,"id":2209,"parentId":2166,"tags":{"name":"/app/node_modules/socket.io-parser/build/esm/binary.js","layer":null},"startTime":1736836814708,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":6125,"timestamp":22768782,"id":2210,"parentId":2166,"tags":{"name":"/app/node_modules/socket.io-parser/build/esm/is-binary.js","layer":null},"startTime":1736836814708,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":10776,"timestamp":22768834,"id":2211,"parentId":2167,"tags":{"name":"/app/node_modules/engine.io-client/build/esm/socket.js","layer":null},"startTime":1736836814708,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":11714,"timestamp":22768885,"id":2212,"parentId":2167,"tags":{"name":"/app/node_modules/engine.io-client/build/esm/transport.js","layer":null},"startTime":1736836814708,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":12428,"timestamp":22768929,"id":2213,"parentId":2167,"tags":{"name":"/app/node_modules/engine.io-client/build/esm/util.js","layer":null},"startTime":1736836814708,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":12762,"timestamp":22768975,"id":2214,"parentId":2167,"tags":{"name":"/app/node_modules/engine.io-client/build/esm/globals.js","layer":null},"startTime":1736836814708,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":13266,"timestamp":22769026,"id":2215,"parentId":2173,"tags":{"name":"/app/node_modules/react-tiny-popover/dist/useElementRef.js","layer":null},"startTime":1736836814708,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":13399,"timestamp":22769072,"id":2216,"parentId":2167,"tags":{"name":"/app/node_modules/engine.io-client/build/esm/transports/index.js","layer":null},"startTime":1736836814708,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":14129,"timestamp":22769116,"id":2217,"parentId":2167,"tags":{"name":"/app/node_modules/engine.io-client/build/esm/transports/polling-fetch.js","layer":null},"startTime":1736836814709,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":16484,"timestamp":22769186,"id":2218,"parentId":2167,"tags":{"name":"/app/node_modules/engine.io-client/build/esm/transports/polling-xhr.js","layer":null},"startTime":1736836814709,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":18861,"timestamp":22769244,"id":2219,"parentId":2167,"tags":{"name":"/app/node_modules/engine.io-client/build/esm/transports/websocket.js","layer":null},"startTime":1736836814709,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":19901,"timestamp":22769305,"id":2220,"parentId":2167,"tags":{"name":"/app/node_modules/engine.io-client/build/esm/transports/webtransport.js","layer":null},"startTime":1736836814709,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":21000,"timestamp":22769388,"id":2221,"parentId":2167,"tags":{"name":"/app/node_modules/engine.io-client/build/esm/contrib/parseuri.js","layer":null},"startTime":1736836814709,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":21185,"timestamp":22769547,"id":2224,"parentId":2076,"tags":{"name":"/app/functions/frontend/defaultFieldsRegexp.ts","layer":null},"startTime":1736836814709,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":22414,"timestamp":22768663,"id":2208,"parentId":2165,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/rotate-ccw.js","layer":null},"startTime":1736836814708,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":22831,"timestamp":22768450,"id":2206,"parentId":2165,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/circle-x.js","layer":null},"startTime":1736836814708,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":22932,"timestamp":22768603,"id":2207,"parentId":2165,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/list.js","layer":null},"startTime":1736836814708,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":22605,"timestamp":22769747,"id":2227,"parentId":2076,"tags":{"name":"/app/functions/frontend/newEntryHandler.ts","layer":null},"startTime":1736836814709,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":23337,"timestamp":22769675,"id":2226,"parentId":2077,"tags":{"name":"/app/components/admin/databases/UpdateEntryMoreOptions.tsx","layer":null},"startTime":1736836814709,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":24182,"timestamp":22769499,"id":2223,"parentId":2084,"tags":{"name":"/app/functions/frontend/submitNewDatabaseForm.ts","layer":null},"startTime":1736836814709,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":24974,"timestamp":22769441,"id":2222,"parentId":2084,"tags":{"name":"/app/functions/frontend/submitUpdateDatabaseForm.ts","layer":null},"startTime":1736836814709,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":25862,"timestamp":22769610,"id":2225,"parentId":2076,"tags":{"name":"/app/components/admin/databases/TableEntryField.tsx","layer":null},"startTime":1736836814709,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":2859,"timestamp":22801016,"id":2232,"parentId":2200,"tags":{"name":"__barrel_optimize__?names=CircleGauge!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736836814740,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":19698,"timestamp":22801067,"id":2233,"parentId":2197,"tags":{"name":"/app/node_modules/@tinymce/tinymce-react/lib/es2015/main/ts/ScriptLoader2.js","layer":null},"startTime":1736836814740,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":21430,"timestamp":22801121,"id":2234,"parentId":2197,"tags":{"name":"/app/node_modules/@tinymce/tinymce-react/lib/es2015/main/ts/Utils.js","layer":null},"startTime":1736836814741,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":21641,"timestamp":22801196,"id":2235,"parentId":2197,"tags":{"name":"/app/node_modules/@tinymce/tinymce-react/lib/es2015/main/ts/TinyMCE.js","layer":null},"startTime":1736836814741,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":23340,"timestamp":22801238,"id":2236,"parentId":2197,"tags":{"name":"/app/node_modules/@tinymce/tinymce-react/lib/es2015/main/ts/components/EditorPropTypes.js","layer":null},"startTime":1736836814741,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":23935,"timestamp":22800962,"id":2230,"parentId":2192,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/folder.js","layer":null},"startTime":1736836814740,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":24283,"timestamp":22800855,"id":2228,"parentId":2191,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/lock.js","layer":null},"startTime":1736836814740,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":24461,"timestamp":22800924,"id":2229,"parentId":2191,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/lock-keyhole-open.js","layer":null},"startTime":1736836814740,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":24669,"timestamp":22800988,"id":2231,"parentId":2194,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/file-cog.js","layer":null},"startTime":1736836814740,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":24663,"timestamp":22801425,"id":2241,"parentId":2140,"tags":{"name":"/app/components/su/components/UserDbShellQueryResult.tsx","layer":null},"startTime":1736836814741,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":25439,"timestamp":22801368,"id":2239,"parentId":2139,"tags":{"name":"/app/components/su/components/UserFolder.tsx","layer":null},"startTime":1736836814741,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":25963,"timestamp":22801399,"id":2240,"parentId":2139,"tags":{"name":"/app/components/su/components/UserSingleFile.tsx","layer":null},"startTime":1736836814741,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":26644,"timestamp":22801451,"id":2242,"parentId":2155,"tags":{"name":"/app/components/admin/media/card/MediaPreviewSection.tsx","layer":null},"startTime":1736836814741,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":27243,"timestamp":22801475,"id":2243,"parentId":2155,"tags":{"name":"/app/components/admin/media/card/MediaLinksDropdown.tsx","layer":null},"startTime":1736836814741,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":28699,"timestamp":22801343,"id":2238,"parentId":2133,"tags":{"name":"/app/components/su/components/RichText/fns.ts","layer":null},"startTime":1736836814741,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":29254,"timestamp":22801501,"id":2244,"parentId":2155,"tags":{"name":"/app/components/admin/media/card/MediaPrivacyButton.tsx","layer":null},"startTime":1736836814741,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":31632,"timestamp":22801291,"id":2237,"parentId":2133,"tags":{"name":"/app/components/su/components/RichText/ElementStyleModalContent.tsx","layer":null},"startTime":1736836814741,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":2279418,"timestamp":20562224,"id":1480,"parentId":1433,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Findex.tsx&page=%2F!"},"startTime":1736836812502,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":2279550,"timestamp":20562200,"id":1475,"parentId":1433,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fcontact.tsx&page=%2Fcontact!"},"startTime":1736836812502,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":2279543,"timestamp":20562236,"id":1484,"parentId":1433,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fprivacy.tsx&page=%2Fprivacy!"},"startTime":1736836812502,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":2279785,"timestamp":20562027,"id":1440,"parentId":1433,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fabout.tsx&page=%2Fabout!"},"startTime":1736836812501,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":2279859,"timestamp":20561991,"id":1436,"parentId":1433,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2F404.tsx&page=%2F404!"},"startTime":1736836812501,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":2279879,"timestamp":20562000,"id":1437,"parentId":1433,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2F500.tsx&page=%2F500!"},"startTime":1736836812501,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":2279700,"timestamp":20562207,"id":1476,"parentId":1433,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fcreate-account.tsx&page=%2Fcreate-account!"},"startTime":1736836812502,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":2279696,"timestamp":20562249,"id":1486,"parentId":1433,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fsend-password-reset-link.tsx&page=%2Fsend-password-reset-link!"},"startTime":1736836812502,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":2279710,"timestamp":20562255,"id":1488,"parentId":1433,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Freset-password.tsx&page=%2Freset-password!"},"startTime":1736836812502,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":2279774,"timestamp":20562210,"id":1477,"parentId":1433,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fdocs%2F%5Bpage%5D%2F%5Bsub-page%5D%2Findex.tsx&page=%2Fdocs%2F%5Bpage%5D%2F%5Bsub-page%5D!"},"startTime":1736836812502,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":2279790,"timestamp":20562215,"id":1478,"parentId":1433,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fdocs%2Findex.tsx&page=%2Fdocs!"},"startTime":1736836812502,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":2279683,"timestamp":20562339,"id":1504,"parentId":1433,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fterms.tsx&page=%2Fterms!"},"startTime":1736836812502,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":2279843,"timestamp":20562194,"id":1474,"parentId":1433,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fblog%2Findex.tsx&page=%2Fblog!"},"startTime":1736836812502,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":2279714,"timestamp":20562342,"id":1505,"parentId":1433,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Funsubscribe.tsx&page=%2Funsubscribe!"},"startTime":1736836812502,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":2280026,"timestamp":20562227,"id":1481,"parentId":1433,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Femail-verification%2Findex.tsx&page=%2Femail-verification!"},"startTime":1736836812502,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":2280052,"timestamp":20562221,"id":1479,"parentId":1433,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fdocs%2F%5Bpage%5D%2Findex.tsx&page=%2Fdocs%2F%5Bpage%5D!"},"startTime":1736836812502,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":2280156,"timestamp":20562132,"id":1463,"parentId":1433,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Findex.tsx&page=%2Fadmin%2F%5Buser_id%5D!"},"startTime":1736836812502,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":2280163,"timestamp":20562142,"id":1466,"parentId":1433,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fschema.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fschema!"},"startTime":1736836812502,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":2280167,"timestamp":20562155,"id":1467,"parentId":1433,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fsettings.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fsettings!"},"startTime":1736836812502,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":2280214,"timestamp":20562129,"id":1462,"parentId":1433,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2Findex.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases!"},"startTime":1736836812502,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":2280236,"timestamp":20562126,"id":1461,"parentId":1433,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2Fadd-database.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2Fadd-database!"},"startTime":1736836812502,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":2280209,"timestamp":20562168,"id":1469,"parentId":1433,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fusers%2Fadd-user.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fusers%2Fadd-user!"},"startTime":1736836812502,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":2280361,"timestamp":20562031,"id":1441,"parentId":1433,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fapi-keys%2Findex.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fapi-keys!"},"startTime":1736836812501,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":2280230,"timestamp":20562177,"id":1471,"parentId":1433,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fusers%2Fdatabases%2Findex.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fusers%2Fdatabases!"},"startTime":1736836812502,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":2280258,"timestamp":20562163,"id":1468,"parentId":1433,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fusers%2Fdatabases%2F%5Bdatabase%5D%2F%5Buser%5D.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fusers%2Fdatabases%2F%5Bdatabase%5D%2F%5Buser%5D!"},"startTime":1736836812502,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":2280328,"timestamp":20562108,"id":1457,"parentId":1433,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers%2Fadd-social-logins.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers%2Fadd-social-logins!"},"startTime":1736836812501,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":2280413,"timestamp":20562038,"id":1442,"parentId":1433,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fconnect%2Findex.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fconnect!"},"startTime":1736836812501,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":2280410,"timestamp":20562063,"id":1446,"parentId":1433,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Findex.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D!"},"startTime":1736836812501,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":2280302,"timestamp":20562187,"id":1472,"parentId":1433,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fusers%2Findex.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fusers!"},"startTime":1736836812502,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":2280481,"timestamp":20562057,"id":1445,"parentId":1433,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fschema.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fschema!"},"startTime":1736836812501,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":2280431,"timestamp":20562122,"id":1460,"parentId":1433,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers%2Fadd-user.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers%2Fadd-user!"},"startTime":1736836812502,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":2280449,"timestamp":20562117,"id":1459,"parentId":1433,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers%2Findex.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers!"},"startTime":1736836812502,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":2280516,"timestamp":20562069,"id":1447,"parentId":1433,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fshell.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fshell!"},"startTime":1736836812501,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":2280556,"timestamp":20562050,"id":1444,"parentId":1433,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fconnect.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fconnect!"},"startTime":1736836812501,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":2280432,"timestamp":20562191,"id":1473,"parentId":1433,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2Findex.tsx&page=%2Fadmin!"},"startTime":1736836812502,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":2280466,"timestamp":20562172,"id":1470,"parentId":1433,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fusers%2Fdatabases%2F%5Bdatabase%5D%2Findex.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fusers%2Fdatabases%2F%5Bdatabase%5D!"},"startTime":1736836812502,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":2280608,"timestamp":20562044,"id":1443,"parentId":1433,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fedit-database.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fedit-database!"},"startTime":1736836812501,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":2280573,"timestamp":20562102,"id":1455,"parentId":1433,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers%2F%5Buser%5D%2Fchange-password.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers%2F%5Buser%5D%2Fchange-password!"},"startTime":1736836812501,"traceId":"89448a764ba2dcee"}] +[{"name":"add-entry","duration":2280884,"timestamp":20562111,"id":1458,"parentId":1433,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers%2F%5Buser%5D%2Findex.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers%2F%5Buser%5D!"},"startTime":1736836812501,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":2280914,"timestamp":20562105,"id":1456,"parentId":1433,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2Findex.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables!"},"startTime":1736836812501,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":2051,"timestamp":22860136,"id":2245,"parentId":2225,"tags":{"name":"__barrel_optimize__?names=Lock!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736836814800,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":11113,"timestamp":22860253,"id":2246,"parentId":2211,"tags":{"name":"/app/node_modules/engine.io-client/build/esm/contrib/parseqs.js","layer":null},"startTime":1736836814800,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":12315,"timestamp":22860293,"id":2247,"parentId":2217,"tags":{"name":"/app/node_modules/engine.io-client/build/esm/transports/polling.js","layer":null},"startTime":1736836814800,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":12593,"timestamp":22860330,"id":2248,"parentId":2218,"tags":{"name":"/app/node_modules/engine.io-client/build/esm/contrib/has-cors.js","layer":null},"startTime":1736836814800,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":13751,"timestamp":22860362,"id":2249,"parentId":2189,"tags":{"name":"/app/functions/frontend/addNewField.ts","layer":null},"startTime":1736836814800,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":3127,"timestamp":22874940,"id":2250,"parentId":2239,"tags":{"name":"__barrel_optimize__?names=Copy,RotateCcw!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736836814814,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":3870,"timestamp":22875032,"id":2251,"parentId":2240,"tags":{"name":"__barrel_optimize__?names=HardDrive!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736836814814,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":4651,"timestamp":22875065,"id":2252,"parentId":2237,"tags":{"name":"__barrel_optimize__?names=CircleX!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736836814814,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":5443,"timestamp":22875094,"id":2253,"parentId":2244,"tags":{"name":"__barrel_optimize__?names=Lock,LockOpen!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736836814814,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":16611,"timestamp":22875435,"id":2264,"parentId":2203,"tags":{"name":"/app/functions/frontend/addNewIndex.ts","layer":null},"startTime":1736836814815,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":17366,"timestamp":22875368,"id":2261,"parentId":2183,"tags":{"name":"/app/components/admin/databases/fields/fields-inputs/UniqueFieldSelect.tsx","layer":null},"startTime":1736836814815,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":18047,"timestamp":22875228,"id":2257,"parentId":2183,"tags":{"name":"/app/components/admin/databases/fields/fields-inputs/EncryptionSelect.tsx","layer":null},"startTime":1736836814815,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":18519,"timestamp":22875294,"id":2259,"parentId":2183,"tags":{"name":"/app/components/admin/databases/fields/fields-inputs/AutoIncrement.tsx","layer":null},"startTime":1736836814815,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":18944,"timestamp":22875469,"id":2266,"parentId":2202,"tags":{"name":"/app/functions/frontend/syncTableDataFormHandler.ts","layer":null},"startTime":1736836814815,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":19658,"timestamp":22875326,"id":2260,"parentId":2183,"tags":{"name":"/app/components/admin/databases/fields/fields-inputs/RegexPattern.tsx","layer":null},"startTime":1736836814815,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":20479,"timestamp":22875192,"id":2256,"parentId":2183,"tags":{"name":"/app/components/admin/databases/fields/fields-inputs/CSSFiles.tsx","layer":null},"startTime":1736836814815,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":21038,"timestamp":22875403,"id":2262,"parentId":2183,"tags":{"name":"/app/components/general/Modal.tsx","layer":null},"startTime":1736836814815,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":21836,"timestamp":22875420,"id":2263,"parentId":2198,"tags":{"name":"/app/functions/frontend/reorderField.ts","layer":null},"startTime":1736836814815,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":23033,"timestamp":22875124,"id":2254,"parentId":2180,"tags":{"name":"/app/components/admin/databases/NewTableNameSlugAndDescSection.tsx","layer":null},"startTime":1736836814815,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":23306,"timestamp":22875518,"id":2268,"parentId":2225,"tags":{"name":"/app/components/admin/databases/TableRichTextEntryField.tsx","layer":null},"startTime":1736836814815,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":24577,"timestamp":22875494,"id":2267,"parentId":2225,"tags":{"name":"/app/functions/frontend/generateFormElementsForEntry.tsx","layer":null},"startTime":1736836814815,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":25137,"timestamp":22875552,"id":2269,"parentId":2225,"tags":{"name":"/app/components/admin/databases/fields/text/JSONEditor.tsx","layer":null},"startTime":1736836814815,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":26822,"timestamp":22875161,"id":2255,"parentId":2189,"tags":{"name":"/app/components/admin/databases/NewFieldFormContent.tsx","layer":null},"startTime":1736836814815,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":28320,"timestamp":22875444,"id":2265,"parentId":2204,"tags":{"name":"/app/components/admin/databases/ExistingIndexEdit.tsx","layer":null},"startTime":1736836814815,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":31486,"timestamp":22875265,"id":2258,"parentId":2183,"tags":{"name":"/app/components/admin/databases/fields/fields-inputs/ForeignKey.tsx","layer":null},"startTime":1736836814815,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":2349597,"timestamp":20562323,"id":1501,"parentId":1433,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fsu%2Fusers%2F%5Bsingle%5D.tsx&page=%2Fsu%2Fusers%2F%5Bsingle%5D!"},"startTime":1736836812502,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":14386,"timestamp":22911789,"id":2270,"parentId":2094,"tags":{"name":"/app/node_modules/@socket.io/component-emitter/lib/esm/index.js","layer":null},"startTime":1736836814851,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":2366664,"timestamp":20562098,"id":1454,"parentId":1433,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2Fadd-table.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2Fadd-table!"},"startTime":1736836812501,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":2366775,"timestamp":20562074,"id":1448,"parentId":1433,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Fedit-table.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Fedit-table!"},"startTime":1736836812501,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":2366788,"timestamp":20562086,"id":1451,"parentId":1433,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Ffields.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Ffields!"},"startTime":1736836812501,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":3261,"timestamp":22926268,"id":2271,"parentId":2236,"tags":{"name":"/app/node_modules/prop-types/index.js","layer":null},"startTime":1736836814866,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":5053,"timestamp":22926336,"id":2272,"parentId":2211,"tags":{"name":"/app/node_modules/engine.io-parser/build/esm/index.js","layer":null},"startTime":1736836814866,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":1809,"timestamp":22931593,"id":2273,"parentId":2253,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/lock-open.js","layer":null},"startTime":1736836814871,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":2372824,"timestamp":20562136,"id":1464,"parentId":1433,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fmedia%2F%5B...folder%5D.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fmedia%2F%5B...folder%5D!"},"startTime":1736836812502,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":2372904,"timestamp":20562139,"id":1465,"parentId":1433,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fmedia%2Findex.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fmedia!"},"startTime":1736836812502,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":9856,"timestamp":22935326,"id":2277,"parentId":2272,"tags":{"name":"/app/node_modules/engine.io-parser/build/esm/encodePacket.browser.js","layer":null},"startTime":1736836814875,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":10515,"timestamp":22935371,"id":2278,"parentId":2272,"tags":{"name":"/app/node_modules/engine.io-parser/build/esm/decodePacket.browser.js","layer":null},"startTime":1736836814875,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":10786,"timestamp":22935422,"id":2279,"parentId":2272,"tags":{"name":"/app/node_modules/engine.io-parser/build/esm/commons.js","layer":null},"startTime":1736836814875,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":11253,"timestamp":22935470,"id":2280,"parentId":2271,"tags":{"name":"/app/node_modules/prop-types/factoryWithThrowingShims.js","layer":null},"startTime":1736836814875,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":12014,"timestamp":22935293,"id":2276,"parentId":2268,"tags":{"name":"/app/functions/frontend/tinyMCEEditorSetup.ts","layer":null},"startTime":1736836814875,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":12718,"timestamp":22935150,"id":2274,"parentId":2265,"tags":{"name":"/app/components/admin/databases/indexes/indexSelectChange.ts","layer":null},"startTime":1736836814875,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":13036,"timestamp":22935251,"id":2275,"parentId":2269,"tags":{"name":"/app/components/admin/databases/fields/text/JSONEditorHeader.tsx","layer":null},"startTime":1736836814875,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":2109,"timestamp":22951886,"id":2281,"parentId":2275,"tags":{"name":"__barrel_optimize__?names=CircleMinus,CirclePlus,Lock!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736836814891,"traceId":"89448a764ba2dcee"},{"name":"build-module-ts","duration":1818,"timestamp":22962115,"id":2284,"parentId":2276,"tags":{"name":"/app/functions/frontend/handleCopyHTML.ts","layer":null},"startTime":1736836814902,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":2429,"timestamp":22961982,"id":2282,"parentId":2276,"tags":{"name":"/app/functions/frontend/handleEditHTML.tsx","layer":null},"startTime":1736836814901,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":2719,"timestamp":22962081,"id":2283,"parentId":2276,"tags":{"name":"/app/functions/frontend/handleEmbed.tsx","layer":null},"startTime":1736836814901,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":2665,"timestamp":22965367,"id":2285,"parentId":2278,"tags":{"name":"/app/node_modules/engine.io-parser/build/esm/contrib/base64-arraybuffer.js","layer":null},"startTime":1736836814905,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":2406070,"timestamp":20562252,"id":1487,"parentId":1433,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fsu%2Fconsole.tsx&page=%2Fsu%2Fconsole!"},"startTime":1736836812502,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":1536,"timestamp":22968195,"id":2288,"parentId":2280,"tags":{"name":"/app/node_modules/prop-types/lib/ReactPropTypesSecret.js","layer":null},"startTime":1736836814908,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":2189,"timestamp":22968082,"id":2286,"parentId":2281,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/circle-minus.js","layer":null},"startTime":1736836814907,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":2487,"timestamp":22968161,"id":2287,"parentId":2281,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/circle-plus.js","layer":null},"startTime":1736836814908,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":2408900,"timestamp":20562261,"id":1490,"parentId":1433,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fsu%2Fdocs%2Fcreate-page.tsx&page=%2Fsu%2Fdocs%2Fcreate-page!"},"startTime":1736836812502,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":2408994,"timestamp":20562264,"id":1491,"parentId":1433,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fsu%2Fdocs%2Fedit-page.tsx&page=%2Fsu%2Fdocs%2Fedit-page!"},"startTime":1736836812502,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":8572,"timestamp":22971336,"id":2289,"parentId":2283,"tags":{"name":"/app/components/general/EmbedPopupContent.tsx","layer":null},"startTime":1736836814911,"traceId":"89448a764ba2dcee"},{"name":"build-module-tsx","duration":9456,"timestamp":22971431,"id":2290,"parentId":2282,"tags":{"name":"/app/components/general/EditHTMLPopupContent.tsx","layer":null},"startTime":1736836814911,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":613,"timestamp":22983267,"id":2291,"parentId":2290,"tags":{"name":"/app/node_modules/html-prettify/src/index.js","layer":null},"startTime":1736836814923,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":704,"timestamp":22984880,"id":2292,"parentId":2291,"tags":{"name":"/app/node_modules/html-prettify/src/utils/addIndentation.js","layer":null},"startTime":1736836814924,"traceId":"89448a764ba2dcee"},{"name":"build-module-js","duration":1742,"timestamp":22984931,"id":2293,"parentId":2291,"tags":{"name":"/app/node_modules/html-prettify/src/utils/toLines.js","layer":null},"startTime":1736836814924,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":2424714,"timestamp":20562081,"id":1450,"parentId":1433,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Fentries%2Fadd-entry.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Fentries%2Fadd-entry!"},"startTime":1736836812501,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":2424815,"timestamp":20562077,"id":1449,"parentId":1433,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Fentries%2F%5Bsingle_entry%5D.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Fentries%2F%5Bsingle_entry%5D!"},"startTime":1736836812501,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":2424843,"timestamp":20562093,"id":1453,"parentId":1433,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Findex.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D!"},"startTime":1736836812501,"traceId":"89448a764ba2dcee"},{"name":"add-entry","duration":2424867,"timestamp":20562089,"id":1452,"parentId":1433,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Fentries%2Findex.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Fentries!"},"startTime":1736836812501,"traceId":"89448a764ba2dcee"},{"name":"make","duration":2425657,"timestamp":20561456,"id":1433,"parentId":1432,"tags":{},"startTime":1736836812501,"traceId":"89448a764ba2dcee"},{"name":"chunk-graph","duration":15939,"timestamp":23030154,"id":2295,"parentId":2294,"tags":{},"startTime":1736836814970,"traceId":"89448a764ba2dcee"},{"name":"optimize-modules","duration":31,"timestamp":23046197,"id":2297,"parentId":2294,"tags":{},"startTime":1736836814986,"traceId":"89448a764ba2dcee"},{"name":"optimize-chunks","duration":17454,"timestamp":23046382,"id":2298,"parentId":2294,"tags":{},"startTime":1736836814986,"traceId":"89448a764ba2dcee"},{"name":"optimize-tree","duration":11,"timestamp":23063891,"id":2299,"parentId":2294,"tags":{},"startTime":1736836815003,"traceId":"89448a764ba2dcee"},{"name":"optimize-chunk-modules","duration":29532,"timestamp":23063935,"id":2300,"parentId":2294,"tags":{},"startTime":1736836815003,"traceId":"89448a764ba2dcee"},{"name":"optimize","duration":47360,"timestamp":23046160,"id":2296,"parentId":2294,"tags":{},"startTime":1736836814986,"traceId":"89448a764ba2dcee"},{"name":"module-hash","duration":24733,"timestamp":23101447,"id":2301,"parentId":2294,"tags":{},"startTime":1736836815041,"traceId":"89448a764ba2dcee"},{"name":"code-generation","duration":250446,"timestamp":23126226,"id":2302,"parentId":2294,"tags":{},"startTime":1736836815066,"traceId":"89448a764ba2dcee"},{"name":"hash","duration":9704,"timestamp":23380636,"id":2303,"parentId":2294,"tags":{},"startTime":1736836815320,"traceId":"89448a764ba2dcee"},{"name":"code-generation-jobs","duration":346,"timestamp":23390335,"id":2304,"parentId":2294,"tags":{},"startTime":1736836815330,"traceId":"89448a764ba2dcee"},{"name":"module-assets","duration":409,"timestamp":23390639,"id":2305,"parentId":2294,"tags":{},"startTime":1736836815330,"traceId":"89448a764ba2dcee"},{"name":"create-chunk-assets","duration":14413,"timestamp":23391061,"id":2306,"parentId":2294,"tags":{},"startTime":1736836815330,"traceId":"89448a764ba2dcee"},{"name":"NextJsBuildManifest-generateClientManifest","duration":5791,"timestamp":23427745,"id":2308,"parentId":1432,"tags":{},"startTime":1736836815367,"traceId":"89448a764ba2dcee"},{"name":"NextJsBuildManifest-createassets","duration":9210,"timestamp":23424358,"id":2307,"parentId":1432,"tags":{},"startTime":1736836815364,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":102394,"timestamp":23506702,"id":2311,"parentId":2309,"tags":{"name":"static/chunks/pages/_error-158556db7d796075.js","cache":"MISS"},"startTime":1736836815446,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":102432,"timestamp":23506777,"id":2312,"parentId":2309,"tags":{"name":"static/chunks/pages/404-33491b2b2da7f694.js","cache":"MISS"},"startTime":1736836815446,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":102289,"timestamp":23506975,"id":2313,"parentId":2309,"tags":{"name":"static/chunks/pages/500-dd65f34beee2af29.js","cache":"MISS"},"startTime":1736836815446,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":97830,"timestamp":23511482,"id":2315,"parentId":2309,"tags":{"name":"static/chunks/pages/about-175c96e0e3bce811.js","cache":"MISS"},"startTime":1736836815451,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":96300,"timestamp":23513063,"id":2318,"parentId":2309,"tags":{"name":"static/chunks/pages/admin/[user_id]/databases/[single]/edit-database-a16460745888b67d.js","cache":"MISS"},"startTime":1736836815452,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":94709,"timestamp":23514720,"id":2322,"parentId":2309,"tags":{"name":"static/chunks/pages/admin/[user_id]/databases/[single]/shell-7cd77f974c81c458.js","cache":"MISS"},"startTime":1736836815454,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":93623,"timestamp":23515891,"id":2326,"parentId":2309,"tags":{"name":"static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]/fields-90b1d044a8d8a307.js","cache":"MISS"},"startTime":1736836815455,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":93928,"timestamp":23515648,"id":2325,"parentId":2309,"tags":{"name":"static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/add-entry-3cb64992d90a2310.js","cache":"MISS"},"startTime":1736836815455,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":96351,"timestamp":23513328,"id":2319,"parentId":2309,"tags":{"name":"static/chunks/pages/admin/[user_id]/databases/[single]/connect-cbc803a2d049d987.js","cache":"MISS"},"startTime":1736836815453,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":94438,"timestamp":23515306,"id":2324,"parentId":2309,"tags":{"name":"static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/[single_entry]-05536984edfd241f.js","cache":"MISS"},"startTime":1736836815455,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":98174,"timestamp":23511627,"id":2316,"parentId":2309,"tags":{"name":"static/chunks/pages/admin/[user_id]/api-keys-ebc6dbdf36455187.js","cache":"MISS"},"startTime":1736836815451,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":94866,"timestamp":23514993,"id":2323,"parentId":2309,"tags":{"name":"static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]/edit-table-49af600f89c4a62b.js","cache":"MISS"},"startTime":1736836815454,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":96130,"timestamp":23513789,"id":2320,"parentId":2309,"tags":{"name":"static/chunks/pages/admin/[user_id]/databases/[single]/schema-abdcfec0b726d5c3.js","cache":"MISS"},"startTime":1736836815453,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":95670,"timestamp":23514320,"id":2321,"parentId":2309,"tags":{"name":"static/chunks/pages/admin/[user_id]/databases/[single]-eedb2969902a3df3.js","cache":"MISS"},"startTime":1736836815454,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":86613,"timestamp":23523431,"id":2350,"parentId":2309,"tags":{"name":"static/chunks/pages/contact-6b6262f89413ba71.js","cache":"MISS"},"startTime":1736836815463,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":83077,"timestamp":23527032,"id":2368,"parentId":2309,"tags":{"name":"static/chunks/pages/su/docs-a820e92d9f236f03.js","cache":"MISS"},"startTime":1736836815466,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":86486,"timestamp":23523671,"id":2351,"parentId":2309,"tags":{"name":"static/chunks/pages/create-account-442192a6aa2a5db4.js","cache":"MISS"},"startTime":1736836815463,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":97974,"timestamp":23512301,"id":2317,"parentId":2309,"tags":{"name":"static/chunks/pages/admin/[user_id]/connect-9fc2456ec5b13e38.js","cache":"MISS"},"startTime":1736836815452,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":87729,"timestamp":23522602,"id":2346,"parentId":2309,"tags":{"name":"static/chunks/pages/admin/[user_id]/users/databases-00c6c7eed959b915.js","cache":"MISS"},"startTime":1736836815462,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":87253,"timestamp":23523132,"id":2348,"parentId":2309,"tags":{"name":"static/chunks/pages/admin-111c2e98619e424d.js","cache":"MISS"},"startTime":1736836815463,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":83880,"timestamp":23526568,"id":2364,"parentId":2309,"tags":{"name":"static/chunks/pages/su/backups-7b0ae936f386d60d.js","cache":"MISS"},"startTime":1736836815466,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":84919,"timestamp":23525633,"id":2359,"parentId":2309,"tags":{"name":"static/chunks/pages/privacy-159b0695374d3f66.js","cache":"MISS"},"startTime":1736836815465,"traceId":"89448a764ba2dcee"}] +[{"name":"minify-js","duration":83218,"timestamp":23527996,"id":2375,"parentId":2309,"tags":{"name":"static/chunks/pages/su/login-5340c2e7a0c5d584.js","cache":"MISS"},"startTime":1736836815467,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":84337,"timestamp":23526938,"id":2367,"parentId":2309,"tags":{"name":"static/chunks/pages/su/docs/pages/[id]-88e8fa764087cd8e.js","cache":"MISS"},"startTime":1736836815466,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":88062,"timestamp":23523297,"id":2349,"parentId":2309,"tags":{"name":"static/chunks/pages/blog-16433f6c50111391.js","cache":"MISS"},"startTime":1736836815463,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":84316,"timestamp":23527104,"id":2369,"parentId":2309,"tags":{"name":"static/chunks/pages/su/envar-a744d9ce2e005fcf.js","cache":"MISS"},"startTime":1736836815466,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":84592,"timestamp":23526878,"id":2366,"parentId":2309,"tags":{"name":"static/chunks/pages/su/docs/edit-page-0d9f864ae1c2491a.js","cache":"MISS"},"startTime":1736836815466,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":84022,"timestamp":23527494,"id":2372,"parentId":2309,"tags":{"name":"static/chunks/pages/su-c5ab2df75c7c5c88.js","cache":"MISS"},"startTime":1736836815467,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":93534,"timestamp":23518037,"id":2332,"parentId":2309,"tags":{"name":"static/chunks/pages/admin/[user_id]/databases/[single]/users/add-social-logins-e8bee178122af0b3.js","cache":"MISS"},"startTime":1736836815457,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":86262,"timestamp":23525370,"id":2358,"parentId":2309,"tags":{"name":"static/chunks/pages/login-1fe25640c5375fc7.js","cache":"MISS"},"startTime":1736836815465,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":84857,"timestamp":23526820,"id":2365,"parentId":2309,"tags":{"name":"static/chunks/pages/su/docs/create-page-ec7a474c711f4aab.js","cache":"MISS"},"startTime":1736836815466,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":85277,"timestamp":23526449,"id":2363,"parentId":2309,"tags":{"name":"static/chunks/pages/reset-password-073f6638bd8c602f.js","cache":"MISS"},"startTime":1736836815466,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":94242,"timestamp":23517534,"id":2330,"parentId":2309,"tags":{"name":"static/chunks/pages/admin/[user_id]/databases/[single]/users/[user]/change-password-98fd96c78886d603.js","cache":"MISS"},"startTime":1736836815457,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":95702,"timestamp":23516125,"id":2327,"parentId":2309,"tags":{"name":"static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries-935bba1919a775f4.js","cache":"MISS"},"startTime":1736836815456,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":84518,"timestamp":23527360,"id":2371,"parentId":2309,"tags":{"name":"static/chunks/pages/su/error-logs-060485b02b78417f.js","cache":"MISS"},"startTime":1736836815467,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":95743,"timestamp":23516247,"id":2328,"parentId":2309,"tags":{"name":"static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]-16c952028c5343ce.js","cache":"MISS"},"startTime":1736836815456,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":84158,"timestamp":23527876,"id":2374,"parentId":2309,"tags":{"name":"static/chunks/pages/su/servers-9cac9ee9f7118043.js","cache":"MISS"},"startTime":1736836815467,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":84772,"timestamp":23527306,"id":2370,"parentId":2309,"tags":{"name":"static/chunks/pages/su/docs/pages-9d23a704d1108cf4.js","cache":"MISS"},"startTime":1736836815467,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":89688,"timestamp":23522431,"id":2345,"parentId":2309,"tags":{"name":"static/chunks/pages/admin/[user_id]/users/databases/[database]-1420681ea698d5b2.js","cache":"MISS"},"startTime":1736836815462,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":85903,"timestamp":23526256,"id":2362,"parentId":2309,"tags":{"name":"static/chunks/pages/su/console-04bd8655e1f27673.js","cache":"MISS"},"startTime":1736836815466,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":89473,"timestamp":23522781,"id":2347,"parentId":2309,"tags":{"name":"static/chunks/pages/admin/[user_id]/users-3527e3fb682652c8.js","cache":"MISS"},"startTime":1736836815462,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":87055,"timestamp":23525258,"id":2357,"parentId":2309,"tags":{"name":"static/chunks/pages/logout-e5762a243749ad0e.js","cache":"MISS"},"startTime":1736836815465,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":94655,"timestamp":23517736,"id":2331,"parentId":2309,"tags":{"name":"static/chunks/pages/admin/[user_id]/databases/[single]/tables-d15e728d6825db77.js","cache":"MISS"},"startTime":1736836815457,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":86345,"timestamp":23526089,"id":2361,"parentId":2309,"tags":{"name":"static/chunks/pages/send-password-reset-link-5bcef21408c821e5.js","cache":"MISS"},"startTime":1736836815465,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":84772,"timestamp":23527706,"id":2373,"parentId":2309,"tags":{"name":"static/chunks/pages/su/load-balancing-f1cbf73ca85f92eb.js","cache":"MISS"},"startTime":1736836815467,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":87402,"timestamp":23525122,"id":2356,"parentId":2309,"tags":{"name":"static/chunks/pages/email-verification-8f76f6e6fcc42bae.js","cache":"MISS"},"startTime":1736836815465,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":86577,"timestamp":23525996,"id":2360,"parentId":2309,"tags":{"name":"static/chunks/pages/redirect-a083a626f8b277a1.js","cache":"MISS"},"startTime":1736836815465,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":87682,"timestamp":23528080,"id":2376,"parentId":2309,"tags":{"name":"static/chunks/pages/su/users/[single]-cf2aad9c11ffb529.js","cache":"MISS"},"startTime":1736836815467,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":92839,"timestamp":23534490,"id":2391,"parentId":2309,"tags":{"name":"static/chunks/7287-7b891520a18d4b44.js","cache":"MISS"},"startTime":1736836815474,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":105295,"timestamp":23522133,"id":2344,"parentId":2309,"tags":{"name":"static/chunks/pages/admin/[user_id]/users/add-user-70dd307f3209487c.js","cache":"MISS"},"startTime":1736836815462,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":110824,"timestamp":23516971,"id":2329,"parentId":2309,"tags":{"name":"static/chunks/pages/admin/[user_id]/databases/[single]/tables/add-table-9ed3b2c1935e7f49.js","cache":"MISS"},"startTime":1736836815456,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":98696,"timestamp":23529158,"id":2381,"parentId":2309,"tags":{"name":"static/chunks/webpack-810c18afc07353bc.js","cache":"MISS"},"startTime":1736836815469,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":85962,"timestamp":23541952,"id":2407,"parentId":2309,"tags":{"name":"static/chunks/6099-d50f5ab4ad8155be.js","cache":"MISS"},"startTime":1736836815481,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":85389,"timestamp":23542566,"id":2415,"parentId":2309,"tags":{"name":"server/next-font-manifest.js","cache":"MISS"},"startTime":1736836815482,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":90250,"timestamp":23537778,"id":2398,"parentId":2309,"tags":{"name":"static/chunks/1580-7b44e7c7734b23fc.js","cache":"MISS"},"startTime":1736836815477,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":88963,"timestamp":23539176,"id":2401,"parentId":2309,"tags":{"name":"static/chunks/9950-dcfa4b8a1cdb0d08.js","cache":"MISS"},"startTime":1736836815479,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":88440,"timestamp":23542560,"id":2414,"parentId":2309,"tags":{"name":"static/Vwi6iXhX7A60Ca2R9JTQV/_buildManifest.js","cache":"MISS"},"startTime":1736836815482,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":106492,"timestamp":23524600,"id":2355,"parentId":2309,"tags":{"name":"static/chunks/pages/index-86ad3ee311b3631e.js","cache":"MISS"},"startTime":1736836815464,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":92001,"timestamp":23539715,"id":2403,"parentId":2309,"tags":{"name":"static/chunks/6999-0459b23ea0165396.js","cache":"MISS"},"startTime":1736836815479,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":103140,"timestamp":23529066,"id":2380,"parentId":2309,"tags":{"name":"static/chunks/pages/unsubscribe-68ad8fe99d1086ba.js","cache":"MISS"},"startTime":1736836815468,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":91922,"timestamp":23542554,"id":2413,"parentId":2309,"tags":{"name":"server/middleware-build-manifest.js","cache":"MISS"},"startTime":1736836815482,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":92041,"timestamp":23542548,"id":2412,"parentId":2309,"tags":{"name":"static/Vwi6iXhX7A60Ca2R9JTQV/_ssgManifest.js","cache":"MISS"},"startTime":1736836815482,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":92163,"timestamp":23542541,"id":2411,"parentId":2309,"tags":{"name":"server/dynamic-css-manifest.js","cache":"MISS"},"startTime":1736836815482,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":92283,"timestamp":23542528,"id":2410,"parentId":2309,"tags":{"name":"server/middleware-react-loadable-manifest.js","cache":"MISS"},"startTime":1736836815482,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":104702,"timestamp":23530939,"id":2386,"parentId":2309,"tags":{"name":"static/chunks/8261-c84643bacdc1fa7c.js","cache":"MISS"},"startTime":1736836815470,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":149056,"timestamp":23521873,"id":2343,"parentId":2309,"tags":{"name":"static/chunks/pages/admin/[user_id]/users/databases/[database]/[user]-37f22546b940d5ff.js","cache":"MISS"},"startTime":1736836815461,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":146613,"timestamp":23524422,"id":2354,"parentId":2309,"tags":{"name":"static/chunks/pages/docs/[page]-b8db6e3ae1419f4e.js","cache":"MISS"},"startTime":1736836815464,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":142386,"timestamp":23528795,"id":2379,"parentId":2309,"tags":{"name":"static/chunks/pages/terms-84e76b283c94aa00.js","cache":"MISS"},"startTime":1736836815468,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":128886,"timestamp":23542354,"id":2409,"parentId":2309,"tags":{"name":"static/chunks/4060-5751a2e742d74cb4.js","cache":"MISS"},"startTime":1736836815482,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":132902,"timestamp":23538546,"id":2400,"parentId":2309,"tags":{"name":"static/chunks/4261-f81c8f64448d27cb.js","cache":"MISS"},"startTime":1736836815478,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":133158,"timestamp":23538340,"id":2399,"parentId":2309,"tags":{"name":"static/chunks/6383-1b6c88d49308b969.js","cache":"MISS"},"startTime":1736836815478,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":142850,"timestamp":23528689,"id":2378,"parentId":2309,"tags":{"name":"static/chunks/pages/su/users/new-34f1b011a190cd7c.js","cache":"MISS"},"startTime":1736836815468,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":132137,"timestamp":23539464,"id":2402,"parentId":2309,"tags":{"name":"static/chunks/6830-9d1d72fda9b42a3d.js","cache":"MISS"},"startTime":1736836815479,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":147594,"timestamp":23524055,"id":2353,"parentId":2309,"tags":{"name":"static/chunks/pages/docs-e3af333a5ec4b7f9.js","cache":"MISS"},"startTime":1736836815463,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":129515,"timestamp":23542172,"id":2408,"parentId":2309,"tags":{"name":"static/chunks/3298-bf77c986348119d2.js","cache":"MISS"},"startTime":1736836815482,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":136473,"timestamp":23535263,"id":2394,"parentId":2309,"tags":{"name":"static/chunks/5810-949e2c13b225cb77.js","cache":"MISS"},"startTime":1736836815475,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":150229,"timestamp":23521556,"id":2342,"parentId":2309,"tags":{"name":"static/chunks/pages/admin/[user_id]/settings-b6101336b603a20f.js","cache":"MISS"},"startTime":1736836815461,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":148015,"timestamp":23523848,"id":2352,"parentId":2309,"tags":{"name":"static/chunks/pages/docs/[page]/[sub-page]-e1ce842c0179338f.js","cache":"MISS"},"startTime":1736836815463,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":143341,"timestamp":23528569,"id":2377,"parentId":2309,"tags":{"name":"static/chunks/pages/su/users-1bbc526bb9d2f8ce.js","cache":"MISS"},"startTime":1736836815468,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":151945,"timestamp":23520008,"id":2337,"parentId":2309,"tags":{"name":"static/chunks/pages/admin/[user_id]/databases-bf3bc5b18c2bc2ae.js","cache":"MISS"},"startTime":1736836815459,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":130330,"timestamp":23541687,"id":2406,"parentId":2309,"tags":{"name":"static/chunks/3867-0105e8d1848e8933.js","cache":"MISS"},"startTime":1736836815481,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":149947,"timestamp":23535536,"id":2395,"parentId":2309,"tags":{"name":"static/chunks/9268-e50b8b33479f88cf.js","cache":"MISS"},"startTime":1736836815475,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":149864,"timestamp":23535718,"id":2396,"parentId":2309,"tags":{"name":"static/chunks/2438-c9e411c1c189c066.js","cache":"MISS"},"startTime":1736836815475,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":164661,"timestamp":23520962,"id":2340,"parentId":2309,"tags":{"name":"static/chunks/pages/admin/[user_id]/media-fb4e8c9a85501a29.js","cache":"MISS"},"startTime":1736836815460,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":150593,"timestamp":23535079,"id":2393,"parentId":2309,"tags":{"name":"static/chunks/8076-348ed73ae542bdcd.js","cache":"MISS"},"startTime":1736836815474,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":151102,"timestamp":23534649,"id":2392,"parentId":2309,"tags":{"name":"static/chunks/7391-ece848dab78126c0.js","cache":"MISS"},"startTime":1736836815474,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":164639,"timestamp":23521266,"id":2341,"parentId":2309,"tags":{"name":"static/chunks/pages/admin/[user_id]/schema-dea2faec1b97303d.js","cache":"MISS"},"startTime":1736836815461,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":165646,"timestamp":23520310,"id":2338,"parentId":2309,"tags":{"name":"static/chunks/pages/admin/[user_id]-cb69b2f56865df4e.js","cache":"MISS"},"startTime":1736836815460,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":146121,"timestamp":23539897,"id":2404,"parentId":2309,"tags":{"name":"static/chunks/2480-09f0d2bd0b57a837.js","cache":"MISS"},"startTime":1736836815479,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":165435,"timestamp":23520638,"id":2339,"parentId":2309,"tags":{"name":"static/chunks/pages/admin/[user_id]/media/[...folder]-da544c542cbb5cd2.js","cache":"MISS"},"startTime":1736836815460,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":166452,"timestamp":23519657,"id":2336,"parentId":2309,"tags":{"name":"static/chunks/pages/admin/[user_id]/databases/add-database-7f176798fb3892dd.js","cache":"MISS"},"startTime":1736836815459,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":183727,"timestamp":23518908,"id":2335,"parentId":2309,"tags":{"name":"static/chunks/pages/admin/[user_id]/databases/[single]/users/add-user-720739e734176d54.js","cache":"MISS"},"startTime":1736836815458,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":184467,"timestamp":23518354,"id":2333,"parentId":2309,"tags":{"name":"static/chunks/pages/admin/[user_id]/databases/[single]/users/[user]-7fc284bf9e00bf83.js","cache":"MISS"},"startTime":1736836815458,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":184338,"timestamp":23518615,"id":2334,"parentId":2309,"tags":{"name":"static/chunks/pages/admin/[user_id]/databases/[single]/users-482a585340c1b89e.js","cache":"MISS"},"startTime":1736836815458,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":170460,"timestamp":23532561,"id":2389,"parentId":2309,"tags":{"name":"static/chunks/2829-4502fbb746023c5f.js","cache":"MISS"},"startTime":1736836815472,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":189926,"timestamp":23531256,"id":2387,"parentId":2309,"tags":{"name":"static/chunks/9660-78c8822b00ea7704.js","cache":"MISS"},"startTime":1736836815471,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":185252,"timestamp":23536228,"id":2397,"parentId":2309,"tags":{"name":"static/chunks/8311-54cf225740f6b2c6.js","cache":"MISS"},"startTime":1736836815476,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":180580,"timestamp":23540984,"id":2405,"parentId":2309,"tags":{"name":"static/chunks/4403-6d995a5674a1315a.js","cache":"MISS"},"startTime":1736836815480,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":209380,"timestamp":23530588,"id":2385,"parentId":2309,"tags":{"name":"static/chunks/6428-871d12a0e04dc58d.js","cache":"MISS"},"startTime":1736836815470,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":207295,"timestamp":23532985,"id":2390,"parentId":2309,"tags":{"name":"static/chunks/2793-e696ad685b3d9b29.js","cache":"MISS"},"startTime":1736836815472,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":264680,"timestamp":23529650,"id":2383,"parentId":2309,"tags":{"name":"static/chunks/94726e6d-32f68157960855f5.js","cache":"MISS"},"startTime":1736836815469,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":293406,"timestamp":23501256,"id":2310,"parentId":2309,"tags":{"name":"static/chunks/main-a0bdd92e7b43604b.js","cache":"MISS"},"startTime":1736836815441,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":265741,"timestamp":23531686,"id":2388,"parentId":2309,"tags":{"name":"static/chunks/6460-0885ae654d195c82.js","cache":"MISS"},"startTime":1736836815471,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":365688,"timestamp":23507142,"id":2314,"parentId":2309,"tags":{"name":"static/chunks/pages/_app-c2b51a705261a37d.js","cache":"MISS"},"startTime":1736836815447,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":359766,"timestamp":23529246,"id":2382,"parentId":2309,"tags":{"name":"static/chunks/framework-bd96dea0d6d5688f.js","cache":"MISS"},"startTime":1736836815469,"traceId":"89448a764ba2dcee"},{"name":"minify-js","duration":460794,"timestamp":23530323,"id":2384,"parentId":2309,"tags":{"name":"static/chunks/ed150ef9-4bae487078acc5bf.js","cache":"MISS"},"startTime":1736836815470,"traceId":"89448a764ba2dcee"},{"name":"minify-webpack-plugin-optimize","duration":555698,"timestamp":23435450,"id":2309,"parentId":1432,"tags":{"compilationName":"client"},"startTime":1736836815375,"traceId":"89448a764ba2dcee"},{"name":"minify-css","duration":412396,"timestamp":23991609,"id":2417,"parentId":2416,"tags":{"file":"static/css/bf9db5436f73da1d.css","cache":"MISS"},"startTime":1736836815931,"traceId":"89448a764ba2dcee"},{"name":"minify-css","duration":412195,"timestamp":23991825,"id":2418,"parentId":2416,"tags":{"file":"static/css/9b1cffe2c89f6bb5.css","cache":"MISS"},"startTime":1736836815931,"traceId":"89448a764ba2dcee"},{"name":"minify-css","duration":412179,"timestamp":23991842,"id":2419,"parentId":2416,"tags":{"file":"static/css/2c3db85a1d7310ee.css","cache":"MISS"},"startTime":1736836815931,"traceId":"89448a764ba2dcee"},{"name":"css-minimizer-plugin","duration":412628,"timestamp":23991399,"id":2416,"parentId":1432,"tags":{},"startTime":1736836815931,"traceId":"89448a764ba2dcee"},{"name":"seal","duration":1411983,"timestamp":23008923,"id":2294,"parentId":1432,"tags":{},"startTime":1736836814948,"traceId":"89448a764ba2dcee"},{"name":"webpack-compilation","duration":3861455,"timestamp":20559538,"id":1432,"parentId":13,"tags":{"name":"client"},"startTime":1736836812499,"traceId":"89448a764ba2dcee"},{"name":"emit","duration":14383,"timestamp":24421051,"id":2420,"parentId":13,"tags":{},"startTime":1736836816360,"traceId":"89448a764ba2dcee"},{"name":"webpack-close","duration":395172,"timestamp":24436228,"id":2421,"parentId":13,"tags":{"name":"client"},"startTime":1736836816376,"traceId":"89448a764ba2dcee"},{"name":"webpack-generate-error-stats","duration":1437,"timestamp":24831421,"id":2422,"parentId":2421,"tags":{},"startTime":1736836816771,"traceId":"89448a764ba2dcee"},{"name":"run-webpack-compiler","duration":23174734,"timestamp":1665499,"id":13,"parentId":1,"tags":{},"startTime":1736836793605,"traceId":"89448a764ba2dcee"},{"name":"format-webpack-messages","duration":168,"timestamp":24840302,"id":2423,"parentId":1,"tags":{},"startTime":1736836816780,"traceId":"89448a764ba2dcee"},{"name":"check-static-error-page","duration":69801,"timestamp":25245683,"id":2426,"parentId":2425,"tags":{},"startTime":1736836817185,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":15952,"timestamp":25360851,"id":2428,"parentId":2425,"tags":{"page":"/_error"},"startTime":1736836817300,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":18161,"timestamp":25359236,"id":2427,"parentId":2425,"tags":{"page":"/_app"},"startTime":1736836817299,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":16802,"timestamp":25360942,"id":2429,"parentId":2425,"tags":{"page":"/_document"},"startTime":1736836817300,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":15271,"timestamp":25362622,"id":2467,"parentId":2425,"tags":{"page":"/api/addAdminUserUser"},"startTime":1736836817302,"traceId":"89448a764ba2dcee"}] +[{"name":"check-page","duration":16197,"timestamp":25362598,"id":2466,"parentId":2425,"tags":{"page":"/api/acceptUserInvitation"},"startTime":1736836817302,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":16738,"timestamp":25362667,"id":2468,"parentId":2425,"tags":{"page":"/api/addApiKey"},"startTime":1736836817302,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":17086,"timestamp":25362693,"id":2469,"parentId":2425,"tags":{"page":"/api/addDbUser"},"startTime":1736836817302,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":17361,"timestamp":25362716,"id":2470,"parentId":2425,"tags":{"page":"/api/addNewMediaFolder"},"startTime":1736836817302,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":18105,"timestamp":25362738,"id":2471,"parentId":2425,"tags":{"page":"/api/addSocialLogin"},"startTime":1736836817302,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":18662,"timestamp":25362769,"id":2472,"parentId":2425,"tags":{"page":"/api/addTableEntry"},"startTime":1736836817302,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":19181,"timestamp":25362808,"id":2473,"parentId":2425,"tags":{"page":"/api/addUserMedia"},"startTime":1736836817302,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":20405,"timestamp":25362837,"id":2474,"parentId":2425,"tags":{"page":"/api/addUserTable"},"startTime":1736836817302,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":21334,"timestamp":25362865,"id":2475,"parentId":2425,"tags":{"page":"/api/addUserUser"},"startTime":1736836817302,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":22339,"timestamp":25362898,"id":2476,"parentId":2425,"tags":{"page":"/api/addUsersTableToDatabase"},"startTime":1736836817302,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":22610,"timestamp":25362938,"id":2478,"parentId":2425,"tags":{"page":"/api/admin/clearErrorLogs"},"startTime":1736836817302,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":23261,"timestamp":25362920,"id":2477,"parentId":2425,"tags":{"page":"/api/admin/addUserBackup"},"startTime":1736836817302,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":23537,"timestamp":25362961,"id":2479,"parentId":2425,"tags":{"page":"/api/admin/clientError"},"startTime":1736836817302,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":23918,"timestamp":25362980,"id":2480,"parentId":2425,"tags":{"page":"/api/admin/createNewBackup"},"startTime":1736836817302,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":24373,"timestamp":25363014,"id":2481,"parentId":2425,"tags":{"page":"/api/admin/docs/[action]"},"startTime":1736836817302,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":24615,"timestamp":25363042,"id":2482,"parentId":2425,"tags":{"page":"/api/admin/getTablesForUserDatabase"},"startTime":1736836817302,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":24873,"timestamp":25363064,"id":2483,"parentId":2425,"tags":{"page":"/api/admin/getUserBackups"},"startTime":1736836817302,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":25310,"timestamp":25363098,"id":2484,"parentId":2425,"tags":{"page":"/api/admin/getUserData"},"startTime":1736836817302,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":25540,"timestamp":25363120,"id":2485,"parentId":2425,"tags":{"page":"/api/admin/grabBackups"},"startTime":1736836817303,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":25775,"timestamp":25363138,"id":2486,"parentId":2425,"tags":{"page":"/api/admin/grabErrorLogs"},"startTime":1736836817303,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":26025,"timestamp":25363169,"id":2487,"parentId":2425,"tags":{"page":"/api/admin/grabFile"},"startTime":1736836817303,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":26322,"timestamp":25363189,"id":2488,"parentId":2425,"tags":{"page":"/api/admin/loginSuUser"},"startTime":1736836817303,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":26711,"timestamp":25363212,"id":2489,"parentId":2425,"tags":{"page":"/api/admin/runUserDbQuery"},"startTime":1736836817303,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":27010,"timestamp":25363266,"id":2491,"parentId":2425,"tags":{"page":"/api/changeDbUserPassword"},"startTime":1736836817303,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":27376,"timestamp":25363232,"id":2490,"parentId":2425,"tags":{"page":"/api/admin/updateEnv"},"startTime":1736836817303,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":27616,"timestamp":25363286,"id":2492,"parentId":2425,"tags":{"page":"/api/checkDuplicateData"},"startTime":1736836817303,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":27846,"timestamp":25363308,"id":2493,"parentId":2425,"tags":{"page":"/api/checkExistingFolder"},"startTime":1736836817303,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":28114,"timestamp":25363348,"id":2495,"parentId":2425,"tags":{"page":"/api/connect/disconnect"},"startTime":1736836817303,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":28300,"timestamp":25363329,"id":2494,"parentId":2425,"tags":{"page":"/api/clientSideAuth"},"startTime":1736836817303,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":28548,"timestamp":25363370,"id":2496,"parentId":2425,"tags":{"page":"/api/connect/handshake"},"startTime":1736836817303,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":28907,"timestamp":25363399,"id":2497,"parentId":2425,"tags":{"page":"/api/connect"},"startTime":1736836817303,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":29323,"timestamp":25363418,"id":2498,"parentId":2425,"tags":{"page":"/api/connect/verify"},"startTime":1736836817303,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":29697,"timestamp":25363440,"id":2499,"parentId":2425,"tags":{"page":"/api/contact"},"startTime":1736836817303,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":30593,"timestamp":25363461,"id":2500,"parentId":2425,"tags":{"page":"/api/createUserDatabase"},"startTime":1736836817303,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":30981,"timestamp":25363481,"id":2501,"parentId":2425,"tags":{"page":"/api/deleteApiKey"},"startTime":1736836817303,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":31204,"timestamp":25363499,"id":2502,"parentId":2425,"tags":{"page":"/api/deleteDbUser"},"startTime":1736836817303,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":31402,"timestamp":25363519,"id":2503,"parentId":2425,"tags":{"page":"/api/deleteInvitation"},"startTime":1736836817303,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":31924,"timestamp":25363545,"id":2504,"parentId":2425,"tags":{"page":"/api/deleteMediaFolder"},"startTime":1736836817303,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":32316,"timestamp":25363567,"id":2505,"parentId":2425,"tags":{"page":"/api/deleteTableEntry"},"startTime":1736836817303,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":32995,"timestamp":25363589,"id":2506,"parentId":2425,"tags":{"page":"/api/deleteUser"},"startTime":1736836817303,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":33366,"timestamp":25363608,"id":2507,"parentId":2425,"tags":{"page":"/api/deleteUserDatabase"},"startTime":1736836817303,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":33842,"timestamp":25363628,"id":2508,"parentId":2425,"tags":{"page":"/api/deleteUserMedia"},"startTime":1736836817303,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":34613,"timestamp":25363648,"id":2509,"parentId":2425,"tags":{"page":"/api/deleteUserTable"},"startTime":1736836817303,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":34883,"timestamp":25363671,"id":2510,"parentId":2425,"tags":{"page":"/api/deleteUserUser"},"startTime":1736836817303,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":35273,"timestamp":25363695,"id":2511,"parentId":2425,"tags":{"page":"/api/downloadDatabaseSchema"},"startTime":1736836817303,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":35492,"timestamp":25363723,"id":2512,"parentId":2425,"tags":{"page":"/api/exportDatabase"},"startTime":1736836817303,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":35870,"timestamp":25363758,"id":2513,"parentId":2425,"tags":{"page":"/api/exportTableData"},"startTime":1736836817303,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":36417,"timestamp":25363782,"id":2514,"parentId":2425,"tags":{"page":"/api/fetch-entries-basic"},"startTime":1736836817303,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":36672,"timestamp":25363804,"id":2515,"parentId":2425,"tags":{"page":"/api/fetch-media"},"startTime":1736836817303,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":37382,"timestamp":25363822,"id":2516,"parentId":2425,"tags":{"page":"/api/get-authorized-databases"},"startTime":1736836817303,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":37750,"timestamp":25363841,"id":2517,"parentId":2425,"tags":{"page":"/api/getDatabaseTables"},"startTime":1736836817303,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":38315,"timestamp":25363862,"id":2518,"parentId":2425,"tags":{"page":"/api/getDelegatedDatabaseToken"},"startTime":1736836817303,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":38757,"timestamp":25363885,"id":2519,"parentId":2425,"tags":{"page":"/api/getDelegatedDatabases"},"startTime":1736836817303,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":39582,"timestamp":25363907,"id":2520,"parentId":2425,"tags":{"page":"/api/getDiskUsage"},"startTime":1736836817303,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":39764,"timestamp":25363933,"id":2521,"parentId":2425,"tags":{"page":"/api/getUserDatabaseTables"},"startTime":1736836817303,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":39955,"timestamp":25363957,"id":2522,"parentId":2425,"tags":{"page":"/api/getUserDatabases"},"startTime":1736836817303,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":40044,"timestamp":25363982,"id":2523,"parentId":2425,"tags":{"page":"/api/getUserMedia"},"startTime":1736836817303,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":40348,"timestamp":25364004,"id":2524,"parentId":2425,"tags":{"page":"/api/getUserSchemaData"},"startTime":1736836817303,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":40470,"timestamp":25364024,"id":2525,"parentId":2425,"tags":{"page":"/api/healthcheck"},"startTime":1736836817303,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":40846,"timestamp":25364041,"id":2526,"parentId":2425,"tags":{"page":"/api/importDatabase"},"startTime":1736836817303,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":41275,"timestamp":25364065,"id":2527,"parentId":2425,"tags":{"page":"/api/importDatabaseSchema"},"startTime":1736836817303,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":41728,"timestamp":25364100,"id":2528,"parentId":2425,"tags":{"page":"/api/infiniteScroll"},"startTime":1736836817303,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":43258,"timestamp":25364131,"id":2529,"parentId":2425,"tags":{"page":"/api/loginUser"},"startTime":1736836817304,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":43333,"timestamp":25364153,"id":2530,"parentId":2425,"tags":{"page":"/api/logoutUser"},"startTime":1736836817304,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":44197,"timestamp":25364172,"id":2531,"parentId":2425,"tags":{"page":"/api/media/addPrivateMedia"},"startTime":1736836817304,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":44352,"timestamp":25364193,"id":2532,"parentId":2425,"tags":{"page":"/api/media/getPrivateMedia"},"startTime":1736836817304,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":44704,"timestamp":25364219,"id":2533,"parentId":2425,"tags":{"page":"/api/purgeDb"},"startTime":1736836817304,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":44926,"timestamp":25364241,"id":2534,"parentId":2425,"tags":{"page":"/api/query/[user_id]/add-file"},"startTime":1736836817304,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":45041,"timestamp":25364290,"id":2535,"parentId":2425,"tags":{"page":"/api/query/[user_id]/add-image"},"startTime":1736836817304,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":45141,"timestamp":25364311,"id":2536,"parentId":2425,"tags":{"page":"/api/query/[user_id]/delete-file"},"startTime":1736836817304,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":45225,"timestamp":25364334,"id":2537,"parentId":2425,"tags":{"page":"/api/query/[user_id]/get-private-file"},"startTime":1736836817304,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":45775,"timestamp":25364375,"id":2538,"parentId":2425,"tags":{"page":"/api/query/[user_id]/get-schema"},"startTime":1736836817304,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":46079,"timestamp":25364407,"id":2539,"parentId":2425,"tags":{"page":"/api/query/[user_id]/get"},"startTime":1736836817304,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":46187,"timestamp":25364428,"id":2540,"parentId":2425,"tags":{"page":"/api/query/[user_id]/post"},"startTime":1736836817304,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":46525,"timestamp":25364456,"id":2541,"parentId":2425,"tags":{"page":"/api/query/[user_id]/update-schema-from-single-database"},"startTime":1736836817304,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":46904,"timestamp":25364480,"id":2542,"parentId":2425,"tags":{"page":"/api/queryEntriesSearchTerm"},"startTime":1736836817304,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":47133,"timestamp":25364504,"id":2543,"parentId":2425,"tags":{"page":"/api/reAuthenticateUser"},"startTime":1736836817304,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":47557,"timestamp":25364523,"id":2544,"parentId":2425,"tags":{"page":"/api/refreshEntry"},"startTime":1736836817304,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":48913,"timestamp":25364548,"id":2545,"parentId":2425,"tags":{"page":"/api/registerUser"},"startTime":1736836817304,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":49529,"timestamp":25364576,"id":2546,"parentId":2425,"tags":{"page":"/api/renameMedia"},"startTime":1736836817304,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":49789,"timestamp":25364613,"id":2547,"parentId":2425,"tags":{"page":"/api/resetDelegatedDatabaseToken"},"startTime":1736836817304,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":50010,"timestamp":25364643,"id":2548,"parentId":2425,"tags":{"page":"/api/resetPassword"},"startTime":1736836817304,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":50330,"timestamp":25364675,"id":2549,"parentId":2425,"tags":{"page":"/api/runUserDbQuery"},"startTime":1736836817304,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":50502,"timestamp":25364714,"id":2550,"parentId":2425,"tags":{"page":"/api/sendEmailVerificationLink"},"startTime":1736836817304,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":50761,"timestamp":25364745,"id":2551,"parentId":2425,"tags":{"page":"/api/sendPasswordResetLink"},"startTime":1736836817304,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":51340,"timestamp":25364781,"id":2552,"parentId":2425,"tags":{"page":"/api/social-login/facebook-auth"},"startTime":1736836817304,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":51786,"timestamp":25364821,"id":2553,"parentId":2425,"tags":{"page":"/api/social-login/github-auth"},"startTime":1736836817304,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":52619,"timestamp":25364849,"id":2554,"parentId":2425,"tags":{"page":"/api/social-login/google-auth"},"startTime":1736836817304,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":52985,"timestamp":25364871,"id":2555,"parentId":2425,"tags":{"page":"/api/social-login/utils/checkEmail"},"startTime":1736836817304,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":53285,"timestamp":25364904,"id":2556,"parentId":2425,"tags":{"page":"/api/social-login/utils/checkSocialId"},"startTime":1736836817304,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":53981,"timestamp":25364950,"id":2558,"parentId":2425,"tags":{"page":"/api/sql-users/create"},"startTime":1736836817304,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":54303,"timestamp":25364926,"id":2557,"parentId":2425,"tags":{"page":"/api/social-login/utils/getEmailFromSocialId"},"startTime":1736836817304,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":54611,"timestamp":25364975,"id":2559,"parentId":2425,"tags":{"page":"/api/sql-users/delete"},"startTime":1736836817304,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":55242,"timestamp":25364997,"id":2560,"parentId":2425,"tags":{"page":"/api/sql-users/update"},"startTime":1736836817304,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":55343,"timestamp":25365022,"id":2561,"parentId":2425,"tags":{"page":"/api/stream/[path]"},"startTime":1736836817304,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":56025,"timestamp":25365044,"id":2562,"parentId":2425,"tags":{"page":"/api/sync-table-data"},"startTime":1736836817304,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":56064,"timestamp":25365070,"id":2563,"parentId":2425,"tags":{"page":"/api/test/cors"},"startTime":1736836817304,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":56129,"timestamp":25365287,"id":2564,"parentId":2425,"tags":{"page":"/api/test/mail"},"startTime":1736836817305,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":56352,"timestamp":25365320,"id":2565,"parentId":2425,"tags":{"page":"/api/unsubscribe"},"startTime":1736836817305,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":56674,"timestamp":25365377,"id":2566,"parentId":2425,"tags":{"page":"/api/updateAdminUserAccess"},"startTime":1736836817305,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":57076,"timestamp":25365445,"id":2567,"parentId":2425,"tags":{"page":"/api/updateClonedTableForeignKeys"},"startTime":1736836817305,"traceId":"89448a764ba2dcee"}] +[{"name":"check-page","duration":57900,"timestamp":25365487,"id":2568,"parentId":2425,"tags":{"page":"/api/updateDbSchemaDataForUser"},"startTime":1736836817305,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":58222,"timestamp":25365511,"id":2569,"parentId":2425,"tags":{"page":"/api/updateDbUser"},"startTime":1736836817305,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":58806,"timestamp":25365557,"id":2570,"parentId":2425,"tags":{"page":"/api/updateTableEntry"},"startTime":1736836817305,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":59420,"timestamp":25365607,"id":2571,"parentId":2425,"tags":{"page":"/api/updateUser"},"startTime":1736836817305,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":60229,"timestamp":25365653,"id":2572,"parentId":2425,"tags":{"page":"/api/updateUserDatabase"},"startTime":1736836817305,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":61047,"timestamp":25365692,"id":2573,"parentId":2425,"tags":{"page":"/api/updateUserTable"},"startTime":1736836817305,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":61333,"timestamp":25365731,"id":2574,"parentId":2425,"tags":{"page":"/api/updateUserUser"},"startTime":1736836817305,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":61802,"timestamp":25365765,"id":2575,"parentId":2425,"tags":{"page":"/api/user-schema/replace-database-schema"},"startTime":1736836817305,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":62049,"timestamp":25365794,"id":2576,"parentId":2425,"tags":{"page":"/api/user/[user_id]/add-user"},"startTime":1736836817305,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":62283,"timestamp":25365816,"id":2577,"parentId":2425,"tags":{"page":"/api/user/[user_id]/delete-user"},"startTime":1736836817305,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":62523,"timestamp":25365856,"id":2578,"parentId":2425,"tags":{"page":"/api/user/[user_id]/get-user"},"startTime":1736836817305,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":62841,"timestamp":25365895,"id":2579,"parentId":2425,"tags":{"page":"/api/user/[user_id]/github-login"},"startTime":1736836817305,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":63112,"timestamp":25365927,"id":2580,"parentId":2425,"tags":{"page":"/api/user/[user_id]/google-login"},"startTime":1736836817305,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":63451,"timestamp":25365965,"id":2581,"parentId":2425,"tags":{"page":"/api/user/[user_id]/grab-google-user-from-token"},"startTime":1736836817305,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":63731,"timestamp":25365995,"id":2582,"parentId":2425,"tags":{"page":"/api/user/[user_id]/login-user"},"startTime":1736836817305,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":64036,"timestamp":25366024,"id":2583,"parentId":2425,"tags":{"page":"/api/user/[user_id]/reauth-user"},"startTime":1736836817305,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":64381,"timestamp":25366063,"id":2584,"parentId":2425,"tags":{"page":"/api/user/[user_id]/send-email-code"},"startTime":1736836817305,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":64711,"timestamp":25366099,"id":2585,"parentId":2425,"tags":{"page":"/api/user/[user_id]/update-user"},"startTime":1736836817305,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":65009,"timestamp":25366125,"id":2586,"parentId":2425,"tags":{"page":"/api/webhooks/github-push"},"startTime":1736836817306,"traceId":"89448a764ba2dcee"},{"name":"is-page-static","duration":832068,"timestamp":25439090,"id":2632,"parentId":2443,"tags":{},"startTime":1736836817378,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":909932,"timestamp":25361600,"id":2443,"parentId":2425,"tags":{"page":"/admin/[user_id]/databases/[single]/tables/[single_table]/entries"},"startTime":1736836817301,"traceId":"89448a764ba2dcee"},{"name":"is-page-static","duration":832012,"timestamp":25439673,"id":2633,"parentId":2444,"tags":{},"startTime":1736836817379,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":910090,"timestamp":25361662,"id":2444,"parentId":2425,"tags":{"page":"/admin/[user_id]/databases/[single]/tables/[single_table]/fields"},"startTime":1736836817301,"traceId":"89448a764ba2dcee"},{"name":"is-page-static","duration":853475,"timestamp":25440939,"id":2635,"parentId":2446,"tags":{},"startTime":1736836817380,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":932682,"timestamp":25361774,"id":2446,"parentId":2425,"tags":{"page":"/admin/[user_id]/databases/[single]/tables/add-table"},"startTime":1736836817301,"traceId":"89448a764ba2dcee"},{"name":"is-page-static","duration":863378,"timestamp":25441574,"id":2636,"parentId":2447,"tags":{},"startTime":1736836817381,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":943185,"timestamp":25361815,"id":2447,"parentId":2425,"tags":{"page":"/admin/[user_id]/databases/[single]/tables"},"startTime":1736836817301,"traceId":"89448a764ba2dcee"},{"name":"is-page-static","duration":884026,"timestamp":25441779,"id":2637,"parentId":2448,"tags":{},"startTime":1736836817381,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":976359,"timestamp":25361853,"id":2448,"parentId":2425,"tags":{"page":"/admin/[user_id]/databases/[single]/users/[user]/change-password"},"startTime":1736836817301,"traceId":"89448a764ba2dcee"},{"name":"is-page-static","duration":896785,"timestamp":25442164,"id":2638,"parentId":2449,"tags":{},"startTime":1736836817382,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":977104,"timestamp":25361885,"id":2449,"parentId":2425,"tags":{"page":"/admin/[user_id]/databases/[single]/users/[user]"},"startTime":1736836817301,"traceId":"89448a764ba2dcee"},{"name":"is-page-static","duration":909099,"timestamp":25440312,"id":2634,"parentId":2445,"tags":{},"startTime":1736836817380,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":987752,"timestamp":25361718,"id":2445,"parentId":2425,"tags":{"page":"/admin/[user_id]/databases/[single]/tables/[single_table]"},"startTime":1736836817301,"traceId":"89448a764ba2dcee"},{"name":"is-page-static","duration":909037,"timestamp":25442639,"id":2639,"parentId":2450,"tags":{},"startTime":1736836817382,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":989792,"timestamp":25361938,"id":2450,"parentId":2425,"tags":{"page":"/admin/[user_id]/databases/[single]/users/add-social-logins"},"startTime":1736836817301,"traceId":"89448a764ba2dcee"},{"name":"is-page-static","duration":924228,"timestamp":25443169,"id":2640,"parentId":2451,"tags":{},"startTime":1736836817383,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":1005483,"timestamp":25361973,"id":2451,"parentId":2425,"tags":{"page":"/admin/[user_id]/databases/[single]/users/add-user"},"startTime":1736836817301,"traceId":"89448a764ba2dcee"},{"name":"is-page-static","duration":928198,"timestamp":25443598,"id":2641,"parentId":2452,"tags":{},"startTime":1736836817383,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":1009841,"timestamp":25362010,"id":2452,"parentId":2425,"tags":{"page":"/admin/[user_id]/databases/[single]/users"},"startTime":1736836817301,"traceId":"89448a764ba2dcee"},{"name":"is-page-static","duration":936059,"timestamp":25444410,"id":2643,"parentId":2454,"tags":{},"startTime":1736836817384,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":1034112,"timestamp":25362079,"id":2454,"parentId":2425,"tags":{"page":"/admin/[user_id]/databases"},"startTime":1736836817301,"traceId":"89448a764ba2dcee"},{"name":"is-page-static","duration":951760,"timestamp":25444721,"id":2644,"parentId":2455,"tags":{},"startTime":1736836817384,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":1034401,"timestamp":25362108,"id":2455,"parentId":2425,"tags":{"page":"/admin/[user_id]"},"startTime":1736836817301,"traceId":"89448a764ba2dcee"},{"name":"is-page-static","duration":952620,"timestamp":25443992,"id":2642,"parentId":2453,"tags":{},"startTime":1736836817383,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":1034580,"timestamp":25362047,"id":2453,"parentId":2425,"tags":{"page":"/admin/[user_id]/databases/add-database"},"startTime":1736836817301,"traceId":"89448a764ba2dcee"},{"name":"is-page-static","duration":969723,"timestamp":25445256,"id":2645,"parentId":2456,"tags":{},"startTime":1736836817385,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":1052900,"timestamp":25362139,"id":2456,"parentId":2425,"tags":{"page":"/admin/[user_id]/media/[...folder]"},"startTime":1736836817302,"traceId":"89448a764ba2dcee"},{"name":"is-page-static","duration":977841,"timestamp":25445849,"id":2646,"parentId":2457,"tags":{},"startTime":1736836817385,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":1077681,"timestamp":25362179,"id":2457,"parentId":2425,"tags":{"page":"/admin/[user_id]/media"},"startTime":1736836817302,"traceId":"89448a764ba2dcee"},{"name":"is-page-static","duration":994417,"timestamp":25446184,"id":2647,"parentId":2459,"tags":{},"startTime":1736836817386,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":1078388,"timestamp":25362247,"id":2459,"parentId":2425,"tags":{"page":"/admin/[user_id]/settings"},"startTime":1736836817302,"traceId":"89448a764ba2dcee"},{"name":"is-page-static","duration":1008610,"timestamp":25446483,"id":2648,"parentId":2458,"tags":{},"startTime":1736836817386,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":1092956,"timestamp":25362217,"id":2458,"parentId":2425,"tags":{"page":"/admin/[user_id]/schema"},"startTime":1736836817302,"traceId":"89448a764ba2dcee"},{"name":"is-page-static","duration":1009444,"timestamp":25446842,"id":2649,"parentId":2460,"tags":{},"startTime":1736836817386,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":1094039,"timestamp":25362280,"id":2460,"parentId":2425,"tags":{"page":"/admin/[user_id]/users/add-user"},"startTime":1736836817302,"traceId":"89448a764ba2dcee"},{"name":"is-page-static","duration":1020690,"timestamp":25447282,"id":2650,"parentId":2461,"tags":{},"startTime":1736836817387,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":1105702,"timestamp":25362342,"id":2461,"parentId":2425,"tags":{"page":"/admin/[user_id]/users/databases/[database]/[user]"},"startTime":1736836817302,"traceId":"89448a764ba2dcee"},{"name":"is-page-static","duration":1023622,"timestamp":25447617,"id":2651,"parentId":2462,"tags":{},"startTime":1736836817387,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":1108897,"timestamp":25362393,"id":2462,"parentId":2425,"tags":{"page":"/admin/[user_id]/users/databases/[database]"},"startTime":1736836817302,"traceId":"89448a764ba2dcee"},{"name":"is-page-static","duration":1027875,"timestamp":25448295,"id":2653,"parentId":2465,"tags":{},"startTime":1736836817388,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":1113656,"timestamp":25362559,"id":2465,"parentId":2425,"tags":{"page":"/admin"},"startTime":1736836817302,"traceId":"89448a764ba2dcee"},{"name":"is-page-static","duration":1034270,"timestamp":25447996,"id":2652,"parentId":2463,"tags":{},"startTime":1736836817387,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":1119856,"timestamp":25362466,"id":2463,"parentId":2425,"tags":{"page":"/admin/[user_id]/users/databases"},"startTime":1736836817302,"traceId":"89448a764ba2dcee"},{"name":"is-page-static","duration":1036090,"timestamp":25449925,"id":2655,"parentId":2587,"tags":{},"startTime":1736836817389,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":1120012,"timestamp":25366156,"id":2587,"parentId":2425,"tags":{"page":"/blog"},"startTime":1736836817306,"traceId":"89448a764ba2dcee"},{"name":"is-page-static","duration":1039789,"timestamp":25450391,"id":2656,"parentId":2588,"tags":{},"startTime":1736836817390,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":1124040,"timestamp":25366204,"id":2588,"parentId":2425,"tags":{"page":"/contact"},"startTime":1736836817306,"traceId":"89448a764ba2dcee"},{"name":"is-page-static","duration":1043089,"timestamp":25448634,"id":2654,"parentId":2464,"tags":{},"startTime":1736836817388,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":1129251,"timestamp":25362512,"id":2464,"parentId":2425,"tags":{"page":"/admin/[user_id]/users"},"startTime":1736836817302,"traceId":"89448a764ba2dcee"},{"name":"is-page-static","duration":1120190,"timestamp":25432494,"id":2620,"parentId":2432,"tags":{},"startTime":1736836817372,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":1191674,"timestamp":25361062,"id":2432,"parentId":2425,"tags":{"page":"/about"},"startTime":1736836817300,"traceId":"89448a764ba2dcee"},{"name":"is-page-static","duration":1165501,"timestamp":25433022,"id":2621,"parentId":2433,"tags":{},"startTime":1736836817372,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":1237470,"timestamp":25361115,"id":2433,"parentId":2425,"tags":{"page":"/admin/[user_id]/api-keys"},"startTime":1736836817300,"traceId":"89448a764ba2dcee"},{"name":"is-page-static","duration":1186633,"timestamp":25431601,"id":2619,"parentId":2430,"tags":{},"startTime":1736836817371,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":1257320,"timestamp":25360980,"id":2430,"parentId":2425,"tags":{"page":"/404"},"startTime":1736836817300,"traceId":"89448a764ba2dcee"},{"name":"is-page-static","duration":1173747,"timestamp":25451002,"id":2657,"parentId":2589,"tags":{},"startTime":1736836817390,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":1258558,"timestamp":25366244,"id":2589,"parentId":2425,"tags":{"page":"/create-account"},"startTime":1736836817306,"traceId":"89448a764ba2dcee"},{"name":"is-page-static","duration":1171356,"timestamp":25453543,"id":2660,"parentId":2592,"tags":{},"startTime":1736836817393,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":1258515,"timestamp":25366396,"id":2592,"parentId":2425,"tags":{"page":"/docs"},"startTime":1736836817306,"traceId":"89448a764ba2dcee"},{"name":"is-page-static","duration":1170515,"timestamp":25456736,"id":2661,"parentId":2593,"tags":{},"startTime":1736836817396,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":1260848,"timestamp":25366437,"id":2593,"parentId":2425,"tags":{"page":"/email-verification"},"startTime":1736836817306,"traceId":"89448a764ba2dcee"},{"name":"is-page-static","duration":1171461,"timestamp":25459086,"id":2663,"parentId":2595,"tags":{},"startTime":1736836817398,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":1264071,"timestamp":25366511,"id":2595,"parentId":2425,"tags":{"page":"/login"},"startTime":1736836817306,"traceId":"89448a764ba2dcee"},{"name":"is-page-static","duration":1174056,"timestamp":25457415,"id":2662,"parentId":2594,"tags":{},"startTime":1736836817397,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":1265047,"timestamp":25366472,"id":2594,"parentId":2425,"tags":{"page":"/"},"startTime":1736836817306,"traceId":"89448a764ba2dcee"},{"name":"is-page-static","duration":1171958,"timestamp":25461142,"id":2664,"parentId":2596,"tags":{},"startTime":1736836817401,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":1266588,"timestamp":25366557,"id":2596,"parentId":2425,"tags":{"page":"/logout"},"startTime":1736836817306,"traceId":"89448a764ba2dcee"},{"name":"is-page-static","duration":1175494,"timestamp":25461640,"id":2665,"parentId":2597,"tags":{},"startTime":1736836817401,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":1270592,"timestamp":25366597,"id":2597,"parentId":2425,"tags":{"page":"/privacy"},"startTime":1736836817306,"traceId":"89448a764ba2dcee"},{"name":"is-page-static","duration":1179245,"timestamp":25463189,"id":2668,"parentId":2600,"tags":{},"startTime":1736836817403,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":1275722,"timestamp":25366750,"id":2600,"parentId":2425,"tags":{"page":"/send-password-reset-link"},"startTime":1736836817306,"traceId":"89448a764ba2dcee"},{"name":"is-page-static","duration":1184535,"timestamp":25464456,"id":2669,"parentId":2601,"tags":{},"startTime":1736836817404,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":1282271,"timestamp":25366782,"id":2601,"parentId":2425,"tags":{"page":"/su/backups"},"startTime":1736836817306,"traceId":"89448a764ba2dcee"},{"name":"is-page-static","duration":1188429,"timestamp":25462066,"id":2666,"parentId":2598,"tags":{},"startTime":1736836817401,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":1283886,"timestamp":25366660,"id":2598,"parentId":2425,"tags":{"page":"/redirect"},"startTime":1736836817306,"traceId":"89448a764ba2dcee"},{"name":"is-page-static","duration":1214207,"timestamp":25437511,"id":2629,"parentId":2440,"tags":{},"startTime":1736836817377,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":1290303,"timestamp":25361451,"id":2440,"parentId":2425,"tags":{"page":"/admin/[user_id]/databases/[single]/tables/[single_table]/edit-table"},"startTime":1736836817301,"traceId":"89448a764ba2dcee"},{"name":"is-page-static","duration":1191689,"timestamp":25462670,"id":2667,"parentId":2599,"tags":{},"startTime":1736836817402,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":1287687,"timestamp":25366710,"id":2599,"parentId":2425,"tags":{"page":"/reset-password"},"startTime":1736836817306,"traceId":"89448a764ba2dcee"},{"name":"is-page-static","duration":1194379,"timestamp":25470079,"id":2673,"parentId":2605,"tags":{},"startTime":1736836817409,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":1297537,"timestamp":25366967,"id":2605,"parentId":2425,"tags":{"page":"/su/docs"},"startTime":1736836817306,"traceId":"89448a764ba2dcee"}] +[{"name":"is-page-static","duration":1232729,"timestamp":25435194,"id":2624,"parentId":2435,"tags":{},"startTime":1736836817375,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":1306753,"timestamp":25361213,"id":2435,"parentId":2425,"tags":{"page":"/admin/[user_id]/databases/[single]/connect"},"startTime":1736836817301,"traceId":"89448a764ba2dcee"},{"name":"is-page-static","duration":1202789,"timestamp":25467232,"id":2671,"parentId":2603,"tags":{},"startTime":1736836817407,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":1303200,"timestamp":25366862,"id":2603,"parentId":2425,"tags":{"page":"/su/docs/create-page"},"startTime":1736836817306,"traceId":"89448a764ba2dcee"},{"name":"is-page-static","duration":1207481,"timestamp":25468639,"id":2672,"parentId":2604,"tags":{},"startTime":1736836817408,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":1309268,"timestamp":25366907,"id":2604,"parentId":2425,"tags":{"page":"/su/docs/edit-page"},"startTime":1736836817306,"traceId":"89448a764ba2dcee"},{"name":"is-page-static","duration":1243397,"timestamp":25434117,"id":2622,"parentId":2431,"tags":{},"startTime":1736836817374,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":1316549,"timestamp":25361011,"id":2431,"parentId":2425,"tags":{"page":"/500"},"startTime":1736836817300,"traceId":"89448a764ba2dcee"},{"name":"is-page-static","duration":1212763,"timestamp":25474215,"id":2676,"parentId":2608,"tags":{},"startTime":1736836817414,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":1319848,"timestamp":25367182,"id":2608,"parentId":2425,"tags":{"page":"/su/envar"},"startTime":1736836817307,"traceId":"89448a764ba2dcee"},{"name":"is-page-static","duration":1213329,"timestamp":25475568,"id":2677,"parentId":2609,"tags":{},"startTime":1736836817415,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":1321712,"timestamp":25367228,"id":2609,"parentId":2425,"tags":{"page":"/su/error-logs"},"startTime":1736836817307,"traceId":"89448a764ba2dcee"},{"name":"is-page-static","duration":1254347,"timestamp":25438128,"id":2630,"parentId":2441,"tags":{},"startTime":1736836817378,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":1331019,"timestamp":25361498,"id":2441,"parentId":2425,"tags":{"page":"/admin/[user_id]/databases/[single]/tables/[single_table]/entries/[single_entry]"},"startTime":1736836817301,"traceId":"89448a764ba2dcee"},{"name":"is-page-static","duration":1215862,"timestamp":25479393,"id":2680,"parentId":2612,"tags":{},"startTime":1736836817419,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":1327948,"timestamp":25367351,"id":2612,"parentId":2425,"tags":{"page":"/su/login"},"startTime":1736836817307,"traceId":"89448a764ba2dcee"},{"name":"is-page-static","duration":1218092,"timestamp":25477741,"id":2679,"parentId":2611,"tags":{},"startTime":1736836817417,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":1328550,"timestamp":25367318,"id":2611,"parentId":2425,"tags":{"page":"/su/load-balancing"},"startTime":1736836817307,"traceId":"89448a764ba2dcee"},{"name":"is-page-static","duration":1226655,"timestamp":25471502,"id":2674,"parentId":2606,"tags":{},"startTime":1736836817411,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":1331161,"timestamp":25367038,"id":2606,"parentId":2425,"tags":{"page":"/su/docs/pages/[id]"},"startTime":1736836817306,"traceId":"89448a764ba2dcee"},{"name":"is-page-static","duration":1229158,"timestamp":25484069,"id":2684,"parentId":2616,"tags":{},"startTime":1736836817423,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":1345790,"timestamp":25367505,"id":2616,"parentId":2425,"tags":{"page":"/su/users/new"},"startTime":1736836817307,"traceId":"89448a764ba2dcee"},{"name":"is-page-static","duration":1241428,"timestamp":25472896,"id":2675,"parentId":2607,"tags":{},"startTime":1736836817412,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":1347254,"timestamp":25367113,"id":2607,"parentId":2425,"tags":{"page":"/su/docs/pages"},"startTime":1736836817306,"traceId":"89448a764ba2dcee"},{"name":"is-page-static","duration":1237438,"timestamp":25476998,"id":2678,"parentId":2610,"tags":{},"startTime":1736836817416,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":1347175,"timestamp":25367276,"id":2610,"parentId":2425,"tags":{"page":"/su"},"startTime":1736836817307,"traceId":"89448a764ba2dcee"},{"name":"is-page-static","duration":1234436,"timestamp":25480055,"id":2681,"parentId":2613,"tags":{},"startTime":1736836817419,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":1347112,"timestamp":25367391,"id":2613,"parentId":2425,"tags":{"page":"/su/servers"},"startTime":1736836817307,"traceId":"89448a764ba2dcee"},{"name":"is-page-static","duration":1279914,"timestamp":25434619,"id":2623,"parentId":2434,"tags":{},"startTime":1736836817374,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":1353386,"timestamp":25361158,"id":2434,"parentId":2425,"tags":{"page":"/admin/[user_id]/connect"},"startTime":1736836817301,"traceId":"89448a764ba2dcee"},{"name":"is-page-static","duration":1232953,"timestamp":25481618,"id":2682,"parentId":2614,"tags":{},"startTime":1736836817421,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":1347154,"timestamp":25367426,"id":2614,"parentId":2425,"tags":{"page":"/su/users/[single]"},"startTime":1736836817307,"traceId":"89448a764ba2dcee"},{"name":"is-page-static","duration":1231668,"timestamp":25482944,"id":2683,"parentId":2615,"tags":{},"startTime":1736836817422,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":1347161,"timestamp":25367463,"id":2615,"parentId":2425,"tags":{"page":"/su/users"},"startTime":1736836817307,"traceId":"89448a764ba2dcee"},{"name":"is-page-static","duration":1237227,"timestamp":25484567,"id":2685,"parentId":2617,"tags":{},"startTime":1736836817424,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":1354313,"timestamp":25367536,"id":2617,"parentId":2425,"tags":{"page":"/terms"},"startTime":1736836817307,"traceId":"89448a764ba2dcee"},{"name":"is-page-static","duration":1236080,"timestamp":25487604,"id":2686,"parentId":2618,"tags":{},"startTime":1736836817427,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":1356166,"timestamp":25367567,"id":2618,"parentId":2425,"tags":{"page":"/unsubscribe"},"startTime":1736836817307,"traceId":"89448a764ba2dcee"},{"name":"is-page-static","duration":1288447,"timestamp":25438600,"id":2631,"parentId":2442,"tags":{},"startTime":1736836817378,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":1365548,"timestamp":25361557,"id":2442,"parentId":2425,"tags":{"page":"/admin/[user_id]/databases/[single]/tables/[single_table]/entries/add-entry"},"startTime":1736836817301,"traceId":"89448a764ba2dcee"},{"name":"is-page-static","duration":1291290,"timestamp":25436341,"id":2626,"parentId":2437,"tags":{},"startTime":1736836817376,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":1366330,"timestamp":25361334,"id":2437,"parentId":2425,"tags":{"page":"/admin/[user_id]/databases/[single]"},"startTime":1736836817301,"traceId":"89448a764ba2dcee"},{"name":"is-page-static","duration":1262264,"timestamp":25465840,"id":2670,"parentId":2602,"tags":{},"startTime":1736836817405,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":1361319,"timestamp":25366818,"id":2602,"parentId":2425,"tags":{"page":"/su/console"},"startTime":1736836817306,"traceId":"89448a764ba2dcee"},{"name":"is-page-static","duration":1293794,"timestamp":25436710,"id":2627,"parentId":2438,"tags":{},"startTime":1736836817376,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":1369164,"timestamp":25361373,"id":2438,"parentId":2425,"tags":{"page":"/admin/[user_id]/databases/[single]/schema"},"startTime":1736836817301,"traceId":"89448a764ba2dcee"},{"name":"is-page-static","duration":1302331,"timestamp":25435698,"id":2625,"parentId":2436,"tags":{},"startTime":1736836817375,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":1376770,"timestamp":25361292,"id":2436,"parentId":2425,"tags":{"page":"/admin/[user_id]/databases/[single]/edit-database"},"startTime":1736836817301,"traceId":"89448a764ba2dcee"},{"name":"is-page-static","duration":1300247,"timestamp":25451863,"id":2658,"parentId":2590,"tags":{},"startTime":1736836817391,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":1385920,"timestamp":25366300,"id":2590,"parentId":2425,"tags":{"page":"/docs/[page]/[sub-page]"},"startTime":1736836817306,"traceId":"89448a764ba2dcee"},{"name":"is-page-static","duration":1315798,"timestamp":25437073,"id":2628,"parentId":2439,"tags":{},"startTime":1736836817376,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":1391477,"timestamp":25361405,"id":2439,"parentId":2425,"tags":{"page":"/admin/[user_id]/databases/[single]/shell"},"startTime":1736836817301,"traceId":"89448a764ba2dcee"},{"name":"is-page-static","duration":1334883,"timestamp":25452935,"id":2659,"parentId":2591,"tags":{},"startTime":1736836817392,"traceId":"89448a764ba2dcee"},{"name":"check-page","duration":1421531,"timestamp":25366341,"id":2591,"parentId":2425,"tags":{"page":"/docs/[page]"},"startTime":1736836817306,"traceId":"89448a764ba2dcee"},{"name":"static-check","duration":1543485,"timestamp":25244486,"id":2425,"parentId":1,"tags":{},"startTime":1736836817184,"traceId":"89448a764ba2dcee"},{"name":"generate-required-server-files","duration":487,"timestamp":27116790,"id":2688,"parentId":1,"tags":{},"startTime":1736836819056,"traceId":"89448a764ba2dcee"},{"name":"write-routes-manifest","duration":1852,"timestamp":27131820,"id":2690,"parentId":1,"tags":{},"startTime":1736836819071,"traceId":"89448a764ba2dcee"},{"name":"load-dotenv","duration":155,"timestamp":27147833,"id":2693,"parentId":2692,"tags":{},"startTime":1736836819087,"traceId":"89448a764ba2dcee"},{"name":"run-export-path-map","duration":443,"timestamp":27155296,"id":2694,"parentId":2692,"tags":{},"startTime":1736836819095,"traceId":"89448a764ba2dcee"},{"name":"next-export","duration":14197044,"timestamp":27146123,"id":2692,"parentId":1,"tags":{},"startTime":1736836819086,"traceId":"89448a764ba2dcee"},{"name":"node-file-trace-build","duration":14352150,"timestamp":27122352,"id":2689,"parentId":1,"tags":{"isTurbotrace":"false"},"startTime":1736836819062,"traceId":"89448a764ba2dcee"},{"name":"apply-include-excludes","duration":1497,"timestamp":41474549,"id":2695,"parentId":1,"tags":{},"startTime":1736836833414,"traceId":"89448a764ba2dcee"},{"name":"move-exported-page","duration":539,"timestamp":41476652,"id":2696,"parentId":2691,"tags":{},"startTime":1736836833416,"traceId":"89448a764ba2dcee"},{"name":"move-exported-page","duration":154,"timestamp":41477216,"id":2697,"parentId":2691,"tags":{},"startTime":1736836833417,"traceId":"89448a764ba2dcee"},{"name":"move-exported-page","duration":94,"timestamp":41477400,"id":2698,"parentId":2691,"tags":{},"startTime":1736836833417,"traceId":"89448a764ba2dcee"},{"name":"move-exported-page","duration":97,"timestamp":41477515,"id":2699,"parentId":2691,"tags":{},"startTime":1736836833417,"traceId":"89448a764ba2dcee"},{"name":"move-exported-page","duration":79,"timestamp":41477624,"id":2700,"parentId":2691,"tags":{},"startTime":1736836833417,"traceId":"89448a764ba2dcee"},{"name":"move-exported-page","duration":97,"timestamp":41477710,"id":2701,"parentId":2691,"tags":{},"startTime":1736836833417,"traceId":"89448a764ba2dcee"},{"name":"move-exported-page","duration":77,"timestamp":41477815,"id":2702,"parentId":2691,"tags":{},"startTime":1736836833417,"traceId":"89448a764ba2dcee"},{"name":"move-exported-page","duration":64,"timestamp":41477900,"id":2703,"parentId":2691,"tags":{},"startTime":1736836833417,"traceId":"89448a764ba2dcee"},{"name":"move-exported-page","duration":54,"timestamp":41477971,"id":2704,"parentId":2691,"tags":{},"startTime":1736836833417,"traceId":"89448a764ba2dcee"},{"name":"static-generation","duration":14335922,"timestamp":27142379,"id":2691,"parentId":1,"tags":{},"startTime":1736836819082,"traceId":"89448a764ba2dcee"},{"name":"print-tree-view","duration":15216,"timestamp":41482091,"id":2705,"parentId":1,"tags":{},"startTime":1736836833421,"traceId":"89448a764ba2dcee"},{"name":"telemetry-flush","duration":381791,"timestamp":41497336,"id":2706,"parentId":1,"tags":{},"startTime":1736836833437,"traceId":"89448a764ba2dcee"},{"name":"next-build","duration":41312355,"timestamp":566813,"id":1,"tags":{"buildMode":"default","isTurboBuild":"false","version":"15.1.4","has-custom-webpack-config":"true","use-build-worker":"false"},"startTime":1736836792506,"traceId":"89448a764ba2dcee"}] diff --git a/dsql-app/package-shared/functions/backend/grabSchemaFieldsFromData.ts b/dsql-app/package-shared/functions/backend/grabSchemaFieldsFromData.ts index 6cb8820..b666695 100755 --- a/dsql-app/package-shared/functions/backend/grabSchemaFieldsFromData.ts +++ b/dsql-app/package-shared/functions/backend/grabSchemaFieldsFromData.ts @@ -18,9 +18,6 @@ export default function grabSchemaFieldsFromData({ excludeFields, }: Param): DSQL_FieldSchemaType[] { try { - const possibleFields = require("../../data/possibleFields.json"); - const dataTypes = require("../../data/dataTypes.json"); - /** @type {DSQL_FieldSchemaType[]} */ const finalFields: DSQL_FieldSchemaType[] = [];